BLEURT: Learning Robust Metrics for Text Generation
Text generation has made significant advances in the last few years. Yet, evaluation metrics have lagged behind, as the most popular choices (e.g., BLEU and ROUGE) may correlate poorly with human judgments. We propose Bleurt, a learned evaluation metric based on BERT that can model human judgments with a few thousand possibly biased training examples. A key aspect of our approach is a novel pre-training scheme that uses millions of synthetic examples to help the model generalize. Bleurt provides state-of-the-art results on the last three years of the WMT Metrics shared task and the WebNLG Competition dataset. In contrast to a vanilla BERT-based approach, it yields superior results even when the training data is scarce and out-of-distribution.
In the last few years, research in natural text generation (NLG) has made significant progress, driven largely by the neural encoder-decoder paradigm (Sutskever et al., 2014; Bahdanau et al., 2015) which can tackle a wide array of tasks including translation (Koehn, 2009), summarization (Mani, 1999; Chopra et al., 2016), structured-data-to-text generation McKeown (1992); Kukich (1983); Wiseman et al. (2017) dialog Smith and Hipp (1994); Vinyals and Le (2015) and image captioning Fang et al. (2015). However, progress is increasingly impeded by the shortcomings of existing metrics (Wiseman et al., 2017; Ma et al., 2019; Tian et al., 2019).
Human evaluation is often the best indicator of the quality of a system. However, designing crowd sourcing experiments is an expensive and high-latency process, which does not easily fit in a daily model development pipeline. Therefore, NLG researchers commonly use automatic evaluation metrics, which provide an acceptable proxy for quality and are very cheap to compute. This paper investigates sentence-level, reference-based metrics, which describe the extent to which a candidate sentence is similar to a reference one. The exact definition of similarity may range from string overlap to logical entailment.
The first generation of metrics relied on handcrafted rules that measure the surface similarity between the sentences. To illustrate, BLEU (Papineni et al., 2002) and ROUGE (Lin, 2004), two popular metrics, rely on N-gram overlap. Because those metrics are only sensitive to lexical variation, they cannot appropriately reward semantic or syntactic variations of a given reference. Thus, they have been repeatedly shown to correlate poorly with human judgment, in particular when all the systems to compare have a similar level of accuracy Liu et al. (2016); Novikova et al. (2017); Chaganty et al. (2018).
Increasingly, NLG researchers have addressed those problems by injecting learned components in their metrics. To illustrate, consider the WMT Metrics Shared Task, an annual benchmark in which translation metrics are compared on their ability to imitate human assessments. The last two years of the competition were largely dominated by neural net-based approaches, RUSE, YiSi and ESIM Ma et al. (2018, 2019). Current approaches largely fall into two categories. Fully learned metrics, such as BEER, RUSE, and ESIM are trained end-to-end, and they typically rely on handcrafted features and/or learned embeddings. Conversely, hybrid metrics, such as YiSi and BERTscore combine trained elements, e.g., contextual embeddings, with handwritten logic, e.g., as token alignment rules. The first category typically offers great expressivity: if a training set of human ratings data is available, the metrics may take full advantage of it and fit the ratings distribution tightly. Furthermore, learned metrics can be tuned to measure task-specific properties, such as fluency, faithfulness, grammatically, or style. On the other hand, hybrid metrics offer robustness. They may provide better results when there is little to no training data, and they do not rely on the assumption that training and test data are identically distributed.
And indeed, the iid assumption is particularly problematic in NLG evaluation because of domain drifts, that have been the main target of the metrics literature, but also because of quality drifts: NLG systems tend to get better over time, and therefore a model trained on ratings data from 2015 may fail to distinguish top performing systems in 2019, especially for newer research tasks. An ideal learned metric would be able to both take full advantage of available ratings data for training, and be robust to distribution drifts, i.e., it should be able to extrapolate.
Our insight is that it is possible to combine expressivity and robustness by pre-training a fully learned metric on large amounts of synthetic data, before fine-tuning it on human ratings. To this end, we introduce Bleurt,
To demonstrate our approach, we train Bleurt for English and evaluate it under different generalization regimes. We first verify that it provides state-of-the-art results on all recent years of the WMT Metrics Shared task (2017 to 2019, to-English language pairs). We then stress-test its ability to cope with quality drifts with a synthetic benchmark based on WMT 2017. Finally, we show that it can easily adapt to a different domain with three tasks from a data-to-text dataset, WebNLG 2017 Gardent et al. (2017). Ablations show that our synthetic pretraining scheme increases performance in the iid setting, and is critical to ensure robustness when the training data is scarce, skewed, or out-of-domain.
Define to be the reference sentence of length where each is a token and let be a prediction sentence of length . Let be a training dataset of size where is the human rating that indicates how good is with respect to . Given the training data, our goal is to learn a function that predicts the human rating.
3 Fine-Tuning BERT for Quality Evaluation
Given the small amounts of rating data available, it is natural to leverage unsupervised representations for this task. In our model, we use BERT (Bidirectional Encoder Representations from Transformers) (Devlin et al., 2019), which is an unsupervised technique that learns contextualized representations of sequences of text. Given and , BERT is a Transformer (Vaswani et al., 2017) that returns a sequence of contextualized vectors:
where is the representation for the special token. As described by \newcitedevlin2018bert, we add a linear layer on top of the vector to predict the rating:
where and are the weight matrix and bias vector respectively. Both the above linear layer as well as the BERT parameters are trained (i.e. fine-tuned) on the supervised data which typically numbers in a few thousand examples. We use the regression loss .
Although this approach is quite straightforward, we will show in Section 5 that it gives state-of-the-art results on WMT Metrics Shared Task 17-19, which makes it a high-performing evaluation metric. However, fine-tuning BERT requires a sizable amount of iid data, which is less than ideal for a metric that should generalize to a variety of tasks and model drift.
4 Pre-Training on Synthetic Data
The key aspect of our approach is a pre-training technique that we use to “warm up” BERT before fine-tuning on rating data.
Any pre-training approach requires a dataset and a set of pre-training tasks. Ideally, the setup should resemble the final NLG evaluation task, i.e., the sentence pairs should be distributed similarly and the pre-training signals should correlate with human ratings. Unfortunately, we cannot have access to the NLG models that we will evaluate in the future. Therefore, we optimized our scheme for generality, with three requirements. (1) The set of reference sentences should be large and diverse, so that Bleurt can cope with a wide range of NLG domains and tasks. (2) The sentence pairs should contain a wide variety of lexical, syntactic, and semantic dissimilarities. The aim here is to anticipate all variations that an NLG system may produce, e.g., phrase substitution, paraphrases, noise, or omissions. (3) The pre-training objectives should effectively capture those phenomena, so that Bleurt can learn to identify them. The following sections present our approach.
|Task Type||Pre-training Signals||Loss Type|
|Backtrans. likelihood||, , ,||Regression|
4.1 Generating Sentence Pairs
One way to expose Bleurt to a wide variety of sentence differences is to use existing sentence pairs datasets (Bowman et al., 2015; Williams et al., 2018; Wang et al., 2019). These sets are a rich source of related sentences, but they may fail to capture the errors and alterations that NLG systems produce (e.g., omissions, repetitions, nonsensical substitutions). We opted for an automatic approach instead, that can be scaled arbitrarily and at little cost: we generate synthetic sentence pairs by randomly perturbing 1.8 million segments from Wikipedia. We use three techniques: mask-filling with BERT, backtranslation, and randomly dropping out words. We obtain about 6.5 million perturbations . Let us describe those techniques.
Mask-filling with BERT:
BERT’s initial training task is to fill gaps (i.e., masked tokens) in tokenized sentences. We leverage this functionality by inserting masks at random positions in the Wikipedia sentences, and fill them with the language model. Thus, we introduce lexical alterations while maintaining the fluency of the sentence. We use two masking strategies—we either introduce the masks at random positions in the sentences, or we create contiguous sequences of masked tokens. More details are provided in the Appendix.
We generate paraphrases and perturbations with backtranslation, that is, round trips from English to another language and then back to English with a translation model (Bannard and Callison-Burch, 2005; Ganitkevitch et al., 2013; Sennrich et al., 2016). Our primary aim is to create variants of the reference sentence that preserves semantics. Additionally, we use the mispredictions of the backtranslation models as a source of realistic alterations.
We found it useful in our experiments to randomly drop words from the synthetic examples above to create other examples. This method prepares Bleurt for “pathological” behaviors or NLG systems, e.g., void predictions, or sentence truncation.
4.2 Pre-Training Signals
The next step is to augment each sentence pair with a set of pre-training signals , where is the target vector of pre-training task . Good pre-training signals should capture a wide variety of lexical and semantic differences. They should also be cheap to obtain, so that the approach can scale to large amounts of synthetic data. The following section presents our 9 pre-training tasks, summarized in Table 1. Additional implementation details are in the Appendix.
The idea behind this signal is to leverage existing translation models to measure semantic equivalence. Given a pair , this training signal measures the probability that is a backtranslation of , , normalized by the length of . Let be a translation model that assigns probabilities to French sentences conditioned on English sentences and let be a translation model that assigns probabilities to English sentences given french sentences. If is the number of tokens in , we define our score as , with:
Because computing the summation over all possible French sentences is intractable, we approximate the sum using and we assume that :
We can trivially reverse the procedure to compute , thus we create 4 pre-training signals , , , with two pairs of languages ( and ) in both directions.
The signal is a Boolean that indicates whether the perturbation was generated with backtranslation or with mask-filling.
For each pre-training task, our model uses either a regression or a classification loss. We then aggregate the task-level losses with a weighted sum.
Let describe the target vector for each task, e.g., the probabilities for the classes Entail, Contradict, Neutral, or the precision, recall, and F-score for ROUGE. If is a regression task, then the loss used is the loss i.e. where is the dimension of and is computed by using a task-specific linear layer on top of the [CLS] embedding: . If is a classification task, we use a separate linear layer to predict a logit for each class : , and we use the multiclass cross-entropy loss. We define our aggregate pre-training loss function as follows:
where is the target vector for example , is number of synthetic examples, and are hyperparameter weights obtained with grid search (more details in the Appendix).
|sentBLEU||29.6 / 43.2||28.9 / 42.2||38.6 / 56.0||23.9 / 38.2||34.3 / 47.7||34.3 / 54.0||37.4 / 51.3||32.4 / 47.5|
|MoverScore||47.6 / 67.0||51.2 / 70.8||NA||NA||53.4 / 73.8||56.1 / 76.2||53.1 / 74.4||52.3 / 72.4|
|BERTscore w/ BERT||48.0 / 66.6||50.3 / 70.1||61.4 / 81.4||51.6 / 72.3||53.7 / 73.0||55.6 / 76.0||52.2 / 73.1||53.3 / 73.2|
|BERTscore w/ roBERTa||54.2 / 72.6||56.9 / 76.0||64.8 / 83.2||56.2 / 75.7||57.2 / 75.2||57.9 / 76.1||58.8 / 78.9||58.0 / 76.8|
|chrF++||35.0 / 52.3||36.5 / 53.4||47.5 / 67.8||33.3 / 52.0||41.5 / 58.8||43.2 / 61.4||40.5 / 59.3||39.6 / 57.9|
|BEER||34.0 / 51.1||36.1 / 53.0||48.3 / 68.1||32.8 / 51.5||40.2 / 57.7||42.8 / 60.0||39.5 / 58.2||39.1 / 57.1|
|BLEURTbase -pre||51.5 / 68.2||52.0 / 70.7||66.6 / 85.1||60.8 / 80.5||57.5 / 77.7||56.9 / 76.0||52.1 / 72.1||56.8 / 75.8|
|BLEURTbase||55.7 / 73.4||56.3 / 75.7||68.0 / 86.8||64.7 / 83.3||60.1 / 80.1||62.4 / 81.7||59.5 / 80.5||61.0 / 80.2|
|BLEURT -pre||56.0 / 74.7||57.1 / 75.7||67.2 / 86.1||62.3 / 81.7||58.4 / 78.3||61.6 / 81.4||55.9 / 76.5||59.8 / 79.2|
|BLEURT||59.3 / 77.3||59.9 / 79.2||69.5 / 87.8||64.4 / 83.5||61.3 / 81.1||62.9 / 82.4||60.2 / 81.4||62.5 / 81.8|
|/ DA||/ DA||/ DA||/ DA||/ DA||/ DA||/ DA||/ DA|
|sentBLEU||20.0 / 22.5||31.6 / 41.5||26.0 / 28.2||17.1 / 15.6||20.5 / 22.4||22.9 / 13.6||21.6 / 17.6||22.8 / 23.2|
|BERTscore w/ BERT||29.5 / 40.0||39.9 / 53.8||34.7 / 39.0||26.0 / 29.7||27.8 / 34.7||31.7 / 27.5||27.5 / 25.2||31.0 / 35.7|
|BERTscore w/ roBERTa||31.2 / 41.1||42.2 / 55.5||37.0 / 40.3||27.8 / 30.8||30.2 / 35.4||32.8 / 30.2||29.2 / 26.3||32.9 / 37.1|
|Meteor++||22.4 / 26.8||34.7 / 45.7||29.7 / 32.9||21.6 / 20.6||22.8 / 25.3||27.3 / 20.4||23.6 / 17.5*||26.0 / 27.0|
|RUSE||27.0 / 34.5||36.1 / 49.8||32.9 / 36.8||25.5 / 27.5||25.0 / 31.1||29.1 / 25.9||24.6 / 21.5*||28.6 / 32.4|
|YiSi1||23.5 / 31.7||35.5 / 48.8||30.2 / 35.1||21.5 / 23.1||23.3 / 30.0||26.8 / 23.4||23.1 / 20.9||26.3 / 30.4|
|YiSi1 SRL 18||23.3 / 31.5||34.3 / 48.3||29.8 / 34.5||21.2 / 23.7||22.6 / 30.6||26.1 / 23.3||22.9 / 20.7||25.7 / 30.4|
|BLEURTbase -pre||33.0 / 39.0||41.5 / 54.6||38.2 / 39.6||30.7 / 31.1||30.7 / 34.9||32.9 / 29.8||28.3 / 25.6||33.6 / 36.4|
|BLEURTbase||34.5 / 42.9||43.5 / 55.6||39.2 / 40.5||31.5 / 30.9||31.0 / 35.7||35.0 / 29.4||29.6 / 26.9||34.9 / 37.4|
|BLEURT -pre||34.5 / 42.1||42.7 / 55.4||39.2 / 40.6||31.4 / 31.6||31.4 / 34.2||33.4 / 29.3||28.9 / 25.6||34.5 / 37.0|
|BLEURT||35.6 / 42.3||44.2 / 56.7||40.0 / 41.4||32.1 / 32.5||31.9 / 36.0||35.5 / 31.5||29.7 / 26.0||35.6 / 38.1|
|/ DA||/ DA||/ DA||/ DA||/ DA||/ DA||/ DA||/ DA|
|sentBLEU||19.4 / 5.4||20.6 / 23.3||17.3 / 18.9||30.0 / 37.6||23.8 / 26.2||19.4 / 12.4||28.7 / 32.2||22.7 / 22.3|
|BERTscore w/ BERT||26.2 / 17.3||27.6 / 34.7||25.8 / 29.3||36.9 / 44.0||30.8 / 37.4||25.2 / 20.6||37.5 / 41.4||30.0 / 32.1|
|BERTscore w/ roBERTa||29.1 / 19.3||29.7 / 35.3||27.7 / 32.4||37.1 / 43.1||32.6 / 38.2||26.3 / 22.7||41.4 / 43.8||32.0 / 33.6|
|ESIM||28.4 / 16.6||28.9 / 33.7||27.1 / 30.4||38.4 / 43.3||33.2 / 35.9||26.6 / 19.9||38.7 / 39.6||31.6 / 31.3|
|YiSi1 SRL 19||26.3 / 19.8||27.8 / 34.6||26.6 / 30.6||36.9 / 44.1||30.9 / 38.0||25.3 / 22.0||38.9 / 43.1||30.4 / 33.2|
|BLEURTbase -pre||30.1 / 15.8||30.4 / 35.4||26.8 / 29.7||37.8 / 41.8||34.2 / 39.0||27.0 / 20.7||40.1 / 39.8||32.3 / 31.7|
|BLEURTbase||31.0 / 16.6||31.3 / 36.2||27.9 / 30.6||39.5 / 44.6||35.2 / 39.4||28.5 / 21.5||41.7 / 41.6||33.6 / 32.9|
|BLEURT -pre||31.1 / 16.9||31.3 / 36.5||27.6 / 31.3||38.4 / 42.8||35.0 / 40.0||27.5 / 21.4||41.6 / 41.4||33.2 / 32.9|
|BLEURT||31.2 / 16.9||31.7 / 36.3||28.3 / 31.9||39.5 / 44.6||35.2 / 40.6||28.3 / 22.3||42.7 / 42.4||33.8 / 33.6|
In this section, we report our experimental results for two tasks, translation and data-to-text. First, we benchmark Bleurt against existing text generation metrics on the last 3 years of the WMT Metrics Shared Task Bojar et al. (2017). We then evaluate its robustness to quality drifts with a series of synthetic datasets based on WMT17. We test Bleurt’s ability to adapt to different tasks with the WebNLG 2017 Challenge Dataset Gardent et al. (2017). Finally, we measure the contribution of each pre-training task with ablation experiments.
Unless specified otherwise, all Bleurt models are trained in three steps: regular BERT pre-training Devlin et al. (2019), pre-training on synthetic data (as explained in Section 4), and fine-tuning on task-specific ratings (translation and/or data-to-text). We experiment with two versions of Bleurt, BLEURT and BLEURTbase, respectively based on BERT-Large (24 layers, 1024 hidden units, 16 heads) and BERT-Base (12 layers, 768 hidden units, 12 heads) Devlin et al. (2019), both uncased. We use batch size 32, learning rate 1e-5, and 800,000 steps for pre-training and 40,000 steps for fine-tuning. We provide the full detail of our training setup in the Appendix.
5.1 WMT Metrics Shared Task
Datasets and Metrics:
We use years 2017 to 2019 of the WMT Metrics Shared Task, to-English language pairs. For each year, we used the official WMT test set, which include several thousand pairs of sentences with human ratings from the news domain. The training sets contain 5,360, 9,492, and 147,691 records for each year. The test sets for years 2018 and 2019 are noisier, as reported by the organizers and shown by the overall lower correlations.
We evaluate the agreement between the automatic metrics and the human ratings. For each year, we report two metrics: Kendall’s Tau (for consistency across experiments), and the official WMT metric for that year (for completeness). The official WMT metric is either Pearson’s correlation or a robust variant of Kendall’s Tau called DARR, described in the Appendix. All the numbers come from our own implementation of the benchmark.
We experiment with four versions of Bleurt: BLEURT, BLEURTbase, BLEURT -pre and BLEURTbase -pre. The first two models are based on BERT-large and BERT-base. In the latter two versions, we skip the pre-training phase and fine-tune directly on the WMT ratings. For each year of the WMT shared task, we use the test set from the previous years for training and validation. We describe our setup in further detail in the Appendix. We compare Bleurt to participant data from the shared task and automatic metrics that we ran ourselves. In the former case, we use the the best-performing contestants for each year, that is, chrF++, BEER, Meteor++, RUSE, Yisi1, ESIM and Yisi1-SRL (Mathur et al., 2019). All the contestants use the same WMT training data, in addition to existing sentence or token embeddings. In the latter case, we use Moses sentenceBLEU, BERTscore Zhang et al. (2020), and MoverScore (Zhao et al., 2019). For BERTscore, we use BERT-large uncased for fairness, and roBERTa (the recommended version) for completeness (Liu et al., 2019). We run MoverScore on WMT 2017 using the scripts published by the authors.
Tables 2, 3, 4 show the results. For years 2017 and 2018, a Bleurt-based metric dominates the benchmark for each language pair (Tables 2 and 3). BLEURT and BLEURTbase are also competitive for year 2019: they yield the best results for every language pair on Kendall’s Tau, and they come first for 4 out of 7 pairs on DARR. As expected, BLEURT dominates BLEURTbase in the majority of cases. Pre-training consistently improves the results of BLEURT and BLEURTbase. We observe the largest effect on year 2017, where it adds up to 7.4 Kendall Tau points for BLEURTbase (zh-en). The effect is milder on years 2018 and 2019, up to 2.1 points (tr-en, 2018). We explain the difference by the fact that the training data used for 2017 is smaller than the datasets used for the following years, so pre-training is likelier to help. In general pre-training yields higher returns for BERT-base than for BERT-large—in fact, BLEURTbase with pre-training is often better than BLEURT without.
Takeaways: Pre-training delivers consistent improvements, especially for BERT-base. Bleurt yields state-of-the art performance for all years of the WMT Metrics Shared task.
5.2 Robustness to Quality Drift
We assess our claim that pre-training makes Bleurt robust to quality drifts, by constructing a series of tasks for which it is increasingly pressured to extrapolate. All the experiments that follow are based on the WMT Metrics Shared Task 2017, because the ratings for this edition are particularly reliable.
We create increasingly challenging datasets by sub-sampling the records from the WMT Metrics shared task, keeping low-rated translations for training and high-rated translations for test. The key parameter is the skew factor , that measures how much the training data is left-skewed and the test data is right-skewed. Figure 1 demonstrates the ratings distribution that we used in our experiments. The training data shrinks as increases: in the most extreme case (), we use only 11.9% of the original 5,344 training records. We give the full detail of our sampling methodology in the Appendix.
We use BLEURT with and without pre-training and we compare to Moses sentBLEU and BERTscore. We use BERT-large uncased for both BLEURT and BERTscore.
Figure 2 presents Bleurt’s performance as we vary the train and test skew independently. Our first observation is that the agreements fall for all metrics as we increase the test skew. This effect was already described is the 2019 WMT Metrics report Ma et al. (2019). A common explanation is that the task gets more difficult as the ratings get closer—it is easier to discriminate between “good” and “bad” systems than to rank “good” systems.
Training skew has a disastrous effect on Bleurt without pre-training: it is below BERTscore for , and it falls under sentBLEU for . Pre-trained Bleurt is much more robust: the only case in which it falls under the baselines is , the most extreme drift, for which incorrect translations are used for train while excellent ones for test.
Pre-training makes BLEURT significantly more robust to quality drifts.
5.3 WebNLG Experiments
In this section, we evaluate Bleurt’s performance on three tasks from a data-to-text dataset, the WebNLG Challenge 2017 Shimorina et al. (2019). The aim is to assess Bleurt’s capacity to adapt to new tasks with limited training data.
Dataset and Evaluation Tasks:
The WebNLG challenge benchmarks systems that produce natural language description of entities (e.g., buildings, cities, artists) from sets of 1 to 5 RDF triples. The organizers released the human assessments for 9 systems over 223 inputs, that is, 4,677 sentence pairs in total (we removed null values). Each input comes with 1 to 3 reference descriptions. The submissions are evaluated on 3 aspects: semantics, grammar, and fluency. We treat each type of rating as a separate modeling task. The data has no natural split between train and test, therefore we experiment with several schemes. We allocate 0% to about 50% of the data to training, and we split on both the evaluated systems or the RDF inputs in order to test different generalization regimes.
Systems and Baselines:
BLEURT -pre -wmt, is a public BERT-large uncased checkpoint directly trained on the WebNLG ratings. BLEURT -wmtwas first pre-trained on synthetic data, then fine-tuned on WebNLG data. BLEURT was trained in three steps: first on synthetic data, then on WMT data (16-18), and finally on WebNLG data. When a record comes with several references, we run BLEURT on each reference and report the highest value Zhang et al. (2020).
We report four baselines: BLEU, TER, Meteor, and BERTscore. The first three were computed by the WebNLG competition organizers. We ran the latter one ourselves, using BERT-large uncased for a fair comparison.
Figure 3 presents the correlation of the metrics with human assessments as we vary the share of data allocated to training. The more pre-trained Bleurt is, the quicker it adapts. The vanilla BERT approach BLEURT -pre -wmt requires about a third of the WebNLG data to dominate the baselines on the majority of tasks, and it still lags behind on semantics (split by system). In contrast, BLEURT -wmt is competitive with as little as 836 records, and Bleurt is comparable with BERTscore with zero fine-tuning.
Thanks to pre-training, Bleurt can quickly adapt to the new tasks. Bleurt fine-tuned twice (first on synthetic data, then on WMT data) provides acceptable results on all tasks without training data.
5.4 Ablation Experiments
Figure 4 presents our ablation experiments on WMT 2017, which highlight the relative importance of each pre-training task. On the left side, we compare Bleurt pre-trained on a single task to Bleurt without pre-training. On the right side, we compare full Bleurt to Bleurt pre-trained on all tasks except one. Pre-training on BERTscore, entailment, and the backtranslation scores yield improvements (symmetrically, ablating them degrades Bleurt). Oppositely, BLEU and ROUGE have a negative impact. We conclude that pre-training on high quality signals helps BLEURT, but that metrics that correlate less well with human judgment may in fact harm the model.
6 Related Work
The WMT shared metrics competition (Bojar et al., 2016; Ma et al., 2018, 2019) has inspired the creation of many learned metrics, some of which use regression or deep learning (Stanojevic and Simaâan, 2014; Ma et al., 2017; Shimanaka et al., 2018; Chen et al., 2017; Mathur et al., 2019). Other metrics have been introduced, such as the recent MoverScore Zhao et al. (2019) which combines contextual embeddings and Earth Mover’s Distance. We provide a head-to-head comparison with the best performing of those in our experiments. Other approaches do not attempt to estimate quality directly, but use information extraction or question answering as a proxy (Wiseman et al., 2017; Goodrich et al., 2019; Eyal et al., 2019). Those are complementary to our work.
There has been recent work that uses BERT for evaluation. BERTScore Zhang et al. (2020) proposes replacing the hard n-gram overlap of BLEU with a soft-overlap using BERT embeddings. We use it in all our experiments. Bertr (Mathur et al., 2019) and YiSi Mathur et al. (2019) also make use of BERT embeddings to compute a similarity score. Sum-QE (Xenouleas et al., 2019) fine-tunes BERT for quality estimation as we describe in Section 3. Our focus is different—we train metrics that are not only state-of-the-art in conventional iid experimental setups, but also robust in the presence of scarce and out-of-distribution training data. To our knowledge no existing work has explored pre-training and extrapolation in the context of NLG.
Noisy pre-training has been proposed before for other tasks such as paraphrasing Wieting et al. (2016); Tomar et al. (2017) but generally not with synthetic data. Generating synthetic data via paraphrases and perturbations has been commonly used for generating adversarial examples Jia and Liang (2017); Iyyer et al. (2018); Belinkov and Bisk (2018); Ribeiro et al. (2018), an orthogonal line of research.
We presented Bleurt, a reference-based text generation metric for English. Because the metric is trained end-to-end, Bleurt can model human assessment with superior accuracy. Furthermore, pre-training makes the metrics robust particularly robust to both domain and quality drifts. Future research directions include multilingual NLG evaluation, and hybrid methods involving both humans and classifiers.
Thanks to Eunsol Choi, Nicholas FitzGerald, Jacob Devlin, and to the members of the Google AI Language team for the proof-reading, feedback, and suggestions. We also thank Madhavan Kidambi and Ming-Wei Chang, who implemented blank-filling with BERT.
Appendix A Implementation Details of the Pre-Training Phase
This section provides implementation details for some of the pre-training techniques described in the main paper.
a.1 Data Generation
We use two masking strategies. The first strategy samples random words in the sentence and it replaces them with masks (one for each token). Thus, the masks are scattered across the sentence. The second strategy creates contiguous sequences: it samples a start position , a length (uniformly distributed), and it masks all the tokens spanned by words between positions and . In both cases, we use up to 15 masks per sentence. Instead of running the language model once and picking the most likely token at each position, we use beam search (the beam size 8 by default). This enforces consistency and avoids repeated sequences, e.g., “,,,”.
Consider English and French. Given a forward translation model and backward translation model , we generate as follows:
For the translations, we use a Transformer model (Vaswani et al., 2017), trained on English-German with the tensor2tensor framework.
Given a synthetic example we generate a pair , by randomly dropping words from . We draw the number of words to drop uniformly, up to the length of the sentence. We apply this transformation on about 30% of the data generated with the previous method.
Setting the weights of the pre-training tasks:
We set the weights with grid search, optimizing Bleurt’s performance on WMT 17’s validation set. To reduce the size of the grid, we make groups of pre-training tasks that share the same weights: , , and .
a.3 Pre-Training Tasks
We now provide additional details on the signals we uses for pre-training.
As shown in the table, we use three types of signals: BLEU, ROUGE, and BERTscore. For BLEU, we used the original Moses sentenceBLEU
We compute all the losses using custom Transformer model (Vaswani et al., 2017), trained on two language pairs (English-French and English-German) with the tensor2tensor framework.
Appendix B Experiments–Supplementary Material
b.1 Training Setup for All Experiments
We user BERT’s public checkpoints
b.2 WMT Metric Shared Task
The metrics used to compare the evaluation systems vary across the years. The organizers use Pearson’s correlation on standardized human judgments across all segments in 2017, and a custom variant of Kendall’s Tau named “DARR” on raw human judgments in 2018 and 2019. The latter metrics operates as follows. The organizers gather all the translations for the same reference segment, they enumerate all the possible pairs , and they discard all the pairs which have a “similar” score (less than 25 points away on a 100 points scale). For each remaining pair, they then determine which translation is the best according both human judgment and the candidate metric. Let be the number of pairs on which the NLG metrics agree and be those on which they disagree, then the score is computed as follows:
The idea behind the 25 points filter is to make the evaluation more robust, since the judgments collected for WMT 2018 and 2019 are noisy. Kendall’s Tau is identical, but it does not use the filter.
To separate training and validation data, we set aside a fixed ratio of records in such a way that there is no “leak” between the datasets (i.e., train and validation records that share the same source). We use 10% of the data for validation for years 2017 and 2018, and 5% for year 2019. We report results for the models that yield the highest Kendall Tau across all records on validation data. The weights associated to each pretraining task (see our Modeling section) are set with grid search, using the train/validation setup of WMT 2017.
we use three metrics: the Moses implementation of sentenceBLEU,
b.3 Robustness to Quality Drift
Data Re-sampling Methodology:
We sample the training and test separately, as follows. We split the data in 10 bins of equal size. We then sample each record in the dataset with probabilities and for train and test respectively, where is the bin index of the record between 1 and 10, and is a predefined skew factor. The skew factor controls the drift: a value of 0 has no effect (the ratings are centered around 0), and value of 3.0 yields extreme differences. Note that the sizes of the datasets decrease as increases: we use 50.7%, 30.3%, 20.4%, and 11.9% of the original 5,344 training records for , , , and respectively.
b.4 Ablation Experiment–How Much Pre-Training Time is Necessary?
To understand the relationship between pre-training time and downstream accuracy, we pre-train several versions of BLEURT and we fine-tune them on WMT17 data, varying the number of pre-training steps. Figure 5 presents the results. Most gains are obtained during the first 400,000 steps, that is, after about 2 epochs over our synthetic dataset.
- Bilingual Evaluation Understudy with Representations from Transformers. We refer the intrigued reader to Papineni et al. 2002 for a justification of the term understudy.
- To clarify, our pre-training scheme is an addition, not a replacement to BERT’s initial training Devlin et al. (2019) and happens after it.
- The official scripts are public but they suffer from documentation and dependency issues, as shown by a README file in the 2019 edition which explicitly discourages using them.
- The organizers managed to collect 15 adequacy scores for each translation, and thus the ratings are almost perfectly repeatable Bojar et al. (2017)
- Do those results imply that BLEU and ROUGE should be removed from future versions of Bleurt? Doing so may indeed yield slight improvements on the WMT Metrics 2017 shared task. On the other hand the removal may hurt future tasks in which BLEU or ROUGE actually correlate with human assessments. We therefore leave the question open.
- Neural machine translation by jointly learning to align and translate. In Proceedings of ICLR, Cited by: §1.
- Paraphrasing with bilingual parallel corpora. In Proceedings of ACL, Cited by: §4.1.
- Synthetic and natural noise both break neural machine translation. In Proceedings of ICLR, Cited by: §6.
- Results of the wmt16 metrics shared task. In Proceedings of WMT, Cited by: §6.
- Results of the wmt17 metrics shared task. In Proceedings of WMT, Cited by: §5, footnote 4.
- A large annotated corpus for learning natural language inference. Proceedings of EMNLP. Cited by: §4.1.
- The price of debiasing automatic metrics in natural language evaluation. Proceedings of ACL. Cited by: §1.
- Enhanced lstm for natural language inference. Proceedings of ACL. Cited by: §6.
- Abstractive sentence summarization with attentive recurrent neural networks. In Proceedings of NAACL HLT, Cited by: §1.
- BERT: pre-training of deep bidirectional transformers for language understanding. In Proceedings of NAACL HLT, Cited by: §1, §3, §4.2, §5, footnote 2.
- Question answering as an automatic evaluation metric for news article summarization. In Proceedings of NAACL HLT, Cited by: §6.
- From captions to visual concepts and back. In Proceedings of CVPR, Cited by: §1.
- PPDB: the paraphrase database. In Proceedings NAACL HLT, Cited by: §4.1.
- The webnlg challenge: generating text from rdf data. In Proceedings of INLG, Cited by: §1, §5.
- Assessing the factual accuracy of text generation. In Proceedings of ACM SIGKDD, Cited by: §6.
- Adversarial example generation with syntactically controlled paraphrase networks. Proceedings of NAACL HLT. Cited by: §6.
- Adversarial examples for evaluating reading comprehension systems. Proceedings of EMNLP. Cited by: §6.
- Statistical machine translation. Cambridge University Press. Cited by: §1.
- Design of a knowledge-based report generator. In Proceedings of ACL, Cited by: §1.
- Rouge: a package for automatic evaluation of summaries. In Workshop on Text Summarization Branches Out, Cited by: §1, §4.2.
- How not to evaluate your dialogue system: an empirical study of unsupervised evaluation metrics for dialogue response generation. Proceedings of EMNLP. Cited by: §1.
- Roberta: a robustly optimized bert pretraining approach. arXiv:1907.11692. Cited by: §5.1.
- Results of the wmt18 metrics shared task: both characters and embeddings achieve good performance. In Proceedings of the third conference on machine translation: shared task papers, pp. 671–688. Cited by: §1, §6.
- Blend: a novel combined mt metric based on direct assessment–casict-dcu submission to wmt17 metrics task. In Proceedings of WMT, Cited by: §6.
- Results of the wmt19 metrics shared task: segment-level and strong mt systems pose big challenges. In Proceedings of WMT, Cited by: §1, §1, §5.2, §6.
- Advances in automatic text summarization. MIT press. Cited by: §1.
- Putting evaluation in context: contextual embeddings improve machine translation evaluation. In Proceedings of ACL, Cited by: §5.1, §6, §6.
- Text generation. Cambridge University Press. Cited by: §1.
- Why we need new evaluation metrics for nlg. Proceedings of EMNLP. Cited by: §1.
- BLEU: a method for automatic evaluation of machine translation. In Proceedings of ACL, Cited by: §1, §4.2, footnote 1.
- Semantically equivalent adversarial rules for debugging nlp models. In Proceedings of ACL, Cited by: §6.
- Improving neural machine translation models with monolingual data. Proceedings of ACL. Cited by: §4.1.
- RUSE: regressor using sentence embeddings for automatic machine translation evaluation. In Proceedings of WMT, Cited by: §6.
- WebNLG challenge: human evaluation results. Technical report Cited by: §5.3.
- Spoken natural language dialog systems: a practical approach. Oxford University Press. Cited by: §1.
- Beer: better evaluation as ranking. In Proceedings of WMT, Cited by: §6.
- Sequence to sequence learning with neural networks. In Proceedings of NIPS, Cited by: §1.
- Sticking to the facts: confident decoding for faithful data-to-text generation. arXiv:1910.08684. Cited by: §1.
- Neural paraphrase identification of questions with noisy pretraining. Proceedings of the First Workshop on Subword and Character Level Models in NLP. Cited by: §6.
- Attention is all you need. In Proceedings of NIPS, Cited by: §A.1, §A.3, §3.
- A neural conversational model. Proceedings of ICML. Cited by: §1.
- Glue: a multi-task benchmark and analysis platform for natural language understanding. Proceedings of ICLR. Cited by: §4.1.
- Towards universal paraphrastic sentence embeddings. Proceedings of ICLR. Cited by: §6.
- A broad-coverage challenge corpus for sentence understanding through inference. Proceedings of NAACL HLT. Cited by: §4.1, §4.2.
- Challenges in data-to-document generation. Proceedings of EMNLP. Cited by: §1, §6.
- SUM-qe: a bert-based summary quality estimation model supplementary material. In Proceedings of EMNLP, Cited by: §6.
- BERTScore: evaluating text generation with bert. Proceedings of ICLR. Cited by: §4.2, §5.1, §5.3, §6.
- Moverscore: text generation evaluating with contextualized embeddings and earth mover distance. Proceedings of EMNLP. Cited by: §5.1, §6.