Automatic Quality Estimation for Natural Language Generation: Ranting (Jointly Rating and Ranking)

Ondrej Dusek, Karin Sevegnani, Ioannis Konstas, Verena Rieser

Abstract

We present a recurrent neural network based system for automatic quality estimation of natural language generation (NLG) outputs, which jointly learns to assign numerical ratings to individual outputs and to provide pairwise rankings of two different outputs. The latter is trained using pairwise hinge loss over scores from two copies of the rating network. We use learning to rank and synthetic data to improve the quality of ratings assigned by our system: we synthesise training pairs of distorted system outputs and train the system to rank the less distorted one higher. This leads to a 12% increase in correlation with human ratings over the previous benchmark. We also establish the state of the art on the dataset of relative rankings from the E2E NLG Challenge (Dušek et al., 2019), where synthetic data lead to a 4% accuracy increase over the base model.

Introduction

Evaluating the quality of computer-generated language is a persistent challenge in Natural Language Processing. Traditional metrics like BLEU or METEOR rely on comparing system outputs to human-authored "gold standard" references. However, these references are costly to produce, often fail to capture the full range of valid linguistic variations, and frequently show poor correlation with actual human judgments of quality.

Quality Estimation (QE) addresses these issues through "referenceless" evaluation, assessing output quality based solely on the input Meaning Representation (MR) and the generated text. While previous QE approaches focused on either absolute scoring (rating) or relative comparison (ranking), this research introduces Ranting (Jointly Rating and Ranking), a system that treats these tasks as complementary objectives to improve overall evaluative performance.

Methodology

The Ranting architecture employs a dual-encoder framework to process both the semantic input and the linguistic output.

The Ranting model architecture, showing the joint rating and ranking mechanism.

Architecture and Joint Learning

The system uses GRU-based recurrent neural networks to encode the input MR and the generated system output. For the ranking task, the model utilizes two copies of the output encoder with shared weights. It calculates scores for two candidate sentences, and the difference between these scores determines the relative rank. The model is optimized using a combined loss function: a squared error loss for ratings and a pairwise hinge loss for rankings.

Synthetic Data Generation

A core innovation of this work is the use of synthetic data to overcome the scarcity of human-annotated examples. The researchers generated training pairs by applying "artificial" distortions to existing sentences—such as word deletions, additions, or duplications. The model was then trained to rank the original or less-distorted sentence higher, effectively learning a "common sense" understanding of linguistic errors without requiring extensive human labeling.

Datasets

The system was evaluated using two primary datasets in the restaurant and hotel domains:

  • NEM (New Evaluation Metrics): Comprising 2,460 instances with human Likert-scale ratings (1–6) evaluating informativeness, naturalness, and overall quality.
  • E2E NLG Challenge Rankings: Consisting of 2,979 5-way relative rankings of outputs from 21 different NLG systems, converted into over 15,000 pairwise ranking instances.

Results

The joint learning approach and synthetic data augmentation yielded significant performance gains across both rating and ranking tasks.

Performance comparison on the NEM dataset, showing correlation with human ratings.

On the NEM dataset, the Ranting model achieved a 12% relative improvement in Pearson correlation with human ratings compared to the previous state-of-the-art benchmark (RatPred). Furthermore, on the E2E ranking task, the inclusion of synthetic ranking data resulted in a 4% increase in accuracy over the base model. Notably, the system's correlation with human judgment remained significantly higher than traditional overlap metrics like BLEU, which showed near-zero correlation in these specific contexts.

Discussion

The results suggest that ranking acts as an effective regularizer for the rating task. By forcing the model to distinguish between better and worse sentences, it develops more robust internal representations than it would by simply memorizing absolute scores. The success of synthetic errors demonstrates that models can learn to identify "bad" language through systematically generated noise, reducing the dependency on expensive human annotation.

Conclusion

While Ranting establishes a new state of the art for NLG quality estimation, absolute correlation with human judgment remains limited by the inherent subjectivity of human raters. Future work will explore the model's performance on more diverse datasets like WebNLG and investigate its utility for real-time re-ranking of NLG system outputs to ensure high-quality user experiences.

Summary updated

BibTeX
@inproceedings{dusek2019automatic,
  author = {Ondrej Dusek and Karin Sevegnani and Ioannis Konstas and Verena Rieser},
  title = {{Automatic Quality Estimation for Natural Language Generation: Ranting (Jointly Rating and Ranking)}},
  booktitle = {INLG},
  year = {2019},
  url = {https://openreview.net/forum?id=rfZreT0aM9},
}
Figure