Abstract
Evaluating Natural Language Generation (NLG) outputs typically requires expensive human references. This paper presents "Ranting," a dual-encoder neural network architecture that jointly learns to rate individual outputs and rank pairs of outputs. By leveraging synthetic training data generated through error injection, the model achieves a significant improvement in correlation with human judgments without requiring reference texts at inference time.
Introduction
Evaluating the quality of text generated by AI (NLG) is notoriously difficult. Traditional metrics like BLEU or METEOR rely on comparing machine output to "gold-standard" human references. However, human references are expensive to produce, do not cover all possible correct ways to say something, and often correlate poorly with actual human quality ratings at the individual sentence level.
Quality Estimation (QE) aims to predict the quality of a generated sentence "on the fly" without needing a reference. This is crucial for real-world applications such as filtering generated responses or reranking "n-best" outputs to ensure the highest quality response is delivered to the user.
Methods and Architecture
The authors extend the RatPred system with a dual-encoder architecture using bidirectional Gated Recurrent Units (GRUs). One encoder processes the "Meaning Representation" (MR)—the structured data the AI is intended to verbalize—while the other processes the generated text.
The core innovation is the joint learning approach, termed "Ranting":
- Rating: The model predicts a numerical score (e.g., 1–6) for a single output using a squared error loss.
- Ranking: The model uses two copies of the text encoder (sharing weights) to score two different outputs for the same input. It then employs a pairwise hinge loss to ensure the superior output receives a higher score.
By using a mask in the loss function, the model can be trained on a mix of individual ratings and pairwise rankings simultaneously. This joint task forces the model to notice subtle differences between similar outputs while anchoring those differences to an absolute scale.
Synthetic Error Injection
To overcome the scarcity of human-annotated datasets, the authors created synthetic training data. They took high-quality sentences and intentionally introduced errors—deleting words, duplicating them, or swapping them with random dictionary words. The model was then trained to recognize the original sentence as "better" than the corrupted version, significantly expanding the training signal.
Experimental Setup
The researchers evaluated their model on two primary datasets in the restaurant and hotel information domains:
- NEM: Contains 2,460 instances of NLG outputs with human-assigned Likert-scale ratings (1–6).
- E2E Rankings: Contains nearly 3,000 5-way relative rankings of different NLG systems, converted into over 15,000 pairwise comparisons.
Results
The "Ranting" model achieved a 12% higher Pearson correlation with human ratings on the NEM dataset compared to the previous state-of-the-art. On the E2E ranking dataset, the inclusion of synthetic training data led to a 4% increase in ranking accuracy over the base model.
As shown in the results table, the model's correlation with human judgment significantly exceeds word-overlap metrics like BLEU, METEOR, and ROUGE-L, which all remained below a 0.1 correlation coefficient on these datasets. This confirms that a well-designed neural evaluator can understand fluency and adequacy just by looking at the input data and the resulting text.
Limitations and Future Work
While correlation with human judgment improved, the Mean Absolute Error (MAE) and Root Mean Squared Error (RMSE) increased slightly when ranking pairs were added. This suggests that while the model is better at relative ranking, it is slightly less precise at predicting exact integer scores on a fixed scale.
Furthermore, the experiments were limited to specific domains. Future work will explore more complex Meaning Representation formats (such as WebNLG) and investigate methods to improve generalization across different linguistic styles and domains.
Summary updated