There's No Comparison: Reference-less Evaluation Metrics in Grammatical Error Correction
Courtney Napoles, Keisuke Sakaguchi, Joel Tetreault
Introduction
Grammatical error correction (GEC) has been evaluated by comparing the changes made by a system to the corrections made in gold-standard annotations. Following the recent shared tasks in this field (e.g., Ng et al. [Ng et al., 2014]), several papers have critiqued GEC metrics and proposed new methods. Existing metrics depend on gold-standard corrections and therefore have a notable weakness: systems are penalized for making corrections that do not appear in the references.We refer to the gold-standard corrections as references because gold standard suggests just one accurate correction. For example, the following output has low metric scores even though three appropriate corrections were made to the input:
These changes (in red) were not seen in the references and therefore the metrics GLEU and M2 (described in §2) score this output worse than 75% of 15,000 other generated sentences.
While grammaticality-based, reference-less metrics have been effective in estimating the quality of machine translation (MT) output, the utility of such metrics has not been investigated previously for GEC. We hypothesize that such methods can overcome this weakness in reference-based GEC metrics. This paper has four contributions: 1) We develop three grammaticality metrics that are competitive with current reference-based measures and correlate very strongly with human judgments. 2) We achieve state-of-the-art performance when interpolating a leading reference-based metric with a grammaticality metric. 3) We identify an interesting result that the mean of sentence-level scores is substantially better for evaluating systems than the system-level score. 4) We release code for two grammaticality metrics and establish an online platform for evaluating GEC output.
Prior work
To our knowledge, this is the first work to evaluate GEC without references. Within MT, this task is called quality estimation. MT output is evaluated by its fluency, or adherence to accepted conventions of grammaticality and style, and adequacy, which is the input’s meaning conveyed in the output. Quality estimation targets fluency by estimating the amount of post-editing needed by the output. This has been the topic of recent shared tasks, e.g. ?). ?) evaluated the quality of translations using sentence-level features from the output but not the references, predicting discrete and continuous scores. A strong baseline, QuEst, uses support vector regression trained over 17 features extracted from the output [Specia et al., 2013]. Most closely related to our work, ?) applied features from Educational Testing Service’s e-rater® [Attali and Burstein, 2006] to evaluate MT output with a ranking SVM, without references, and improved performance by including features derived from MT metrics (BLEU, TERp, and METEOR).
Within the GEC field, recent shared tasks have prompted the development and scrutiny of new metrics for evaluating GEC systems. The Helping Our Own shared tasks evaluated systems using precision, recall, and F-score against annotated gold-standard corrections [Dale and Kilgarriff, 2011, Dale et al., 2012]. The subsequent CoNLL Shared Tasks on GEC [Ng et al., 2013, Ng et al., 2014] were scored with the MaxMatch metric (M2), which captures word- and phrase-level edits by calculating the F-score over an edit lattice [Dahlmeier and Ng, 2012]. ?) identified shortcomings of M2 and proposed I-measure to address these issues. I-measure computes the accuracy of a token-level alignment between the original, generated, and gold-standard sentences. These precision- and recall-based metrics measure fluency and adequacy by penalizing inappropriate changes, which alter meaning or introduce other errors. Changes consistent with the annotations indicate improved fluency and no change in meaning.
Unlike these metrics, GLEU scores output by penalizing n-grams found in the input and output but not the reference [Napoles et al., 2015]. Like BLEU [Papineni et al., 2002], GLEU captures both fluency and adequacy with n-gram overlap. Recent work has shown that GLEU has the strongest correlation with human judgments compared to the GEC metrics described above [Sakaguchi et al., 2016]. These GEC metrics are all defined at the corpus level, meaning that the statistics are accumulated over the entire output and then used to calculate a single system score.
Explicitly evaluating grammaticality
GLEU, I-measure, and M2 are calculated based on comparison to reference corrections. These Reference-Based Metrics (RBMs) credit corrections seen in the references and penalize systems for ignoring errors and making bad changes (changing a span of text in an ungrammatical way or introducing errors to grammatical text). However, RBMs make two strong assumptions: that the annotations in the references are correct and that they are complete. We argue that these assumptions are invalid and point to a deficit in current evaluation practices. In GEC, the agreement between raters can be low due to the challenging nature of the task [Bryant and Ng, 2015, Rozovskaya and Roth, 2010, Tetreault and Chodorow, 2008], indicating that annotations may not be correct or complete.
An exhaustive list of all possible corrections would be time-consuming, if not impossible. As a result, RBMs penalize output that has a valid correction that is not present in the references or that addresses an error not corrected in the references. The example in §1 has low GLEU and M2 scores, even though the output addresses two errors (GLEU=0.43 and M2 = 0.00, in the bottom half and quartile of 15k system outputs, respectively).
To address these concerns, we propose three metrics to evaluate the grammaticality of output without comparing to the input or a gold-standard sentence (Grammaticality-Based Metrics, or GBMs). We expect GBMs to score sentences, such as our example in §1, more highly. The first two metrics are scored by counting the errors found by existing grammatical error detection tools. The error count score is simply calculated: . Two different tools are used to count errors: e-rater®’s grammatical error detection modules (ER) and Language Tool [Miłkowski, 2010] (LT). We choose these because, while e-rater® is a large-scale, robust tool that detects more errors than Language Tool,In the data used for this work, e-rater® detects approximately 15 times more errors than Language Tool. it is proprietary whereas Language Tool is publicly available and open sourced.
For our third method, we estimate a grammaticality score with a linguistic feature-based model (LFM), which is our implementation of ?).Our implementation is slightly modified in that it does not use features from the PET HPSG parser. The LFM score is a ridge regression over a variety of linguistic features related to grammaticality, including the number of misspellings, language model scores, OOV counts, and PCFG and link grammar features. It has been shown to effectively assess the grammaticality of learner writing. LFM predicts a score for each sentence while ER and LT, like the RBMs, can be calculated with either sentence- or document-level statistics. To be consistent with LFM, for all metrics in this work we score each sentence individually and report the system score as the mean of the sentence scores. We discuss the effects of modifying metrics from a corpus-level to a sentence-level in §5.
Consistent with our hypothesis, ER and LT score the §1 example in the top quartile of outputs and LFM ranks it in the top half.
The obvious deficit of GBMs is that they do not measure the adequacy of generated sentences, so they could easily be manipulated with grammatical output that is unrelated to the input. An ideal GEC metric would measure both the grammaticality of a generated sentence and its meaning compared to the original sentence, and would not necessarily need references. The available data of scored system outputs are insufficient for developing a new metric due to their limited size, thus we turn to interpolation to develop a sophisticated metric that jointly captures grammaticality and adequacy.
To harness the advantage of RBMs (adequacy) and GBMs (fluency), we build combined metrics, interpolating each RBM with each GBM. For a sentence of system output, the interpolated score () of the GBM score () and RBM score () is computed as follows:
All values of and are in the interval , and the distribution varies for each metric.Mean scores are GLEU , M2 , IM , ER , LFM , LT . The system score is the average of all generated sentences.
Experiments
To assess the proposed metrics, we apply the RBMs, GBMs, and interpolated metrics to score the output of 12 systems participating in the CoNLL-2014 Shared Task on GEC [Ng et al., 2014]. Recent works have evaluated RBMs by collecting human rankings of these system outputs and comparing them to the metric rankings [Grundkiewicz et al., 2015, Napoles et al., 2015]. In this section, we compare each metric’s ranking to the human ranking of ?, Table 3c). We use 20 references for scoring with RBMs: 2 original references, 10 references collected by ?), and 8 references collected by ?). The motivations for using 20 references are twofold: the best GEC evaluation method uses these 20 references with the GLEU metric [Sakaguchi et al., 2016], and work in machine translation shows that more references are better for evaluation [Finch et al., 2004]. Due to the low agreement discussed in §3, having more references can be beneficial for evaluating a system when there are multiple viable ways of correcting a sentence. Unlike previous GEC evaluations, all metrics reported here use the mean of the sentence-level scores for each system.
Results are presented in Table 1. The error-count metrics, ER and LT, have stronger correlation than all RBMs except for GLEU, which is the current state of the art. GLEU has the strongest correlation with the human ranking (, ), followed closely by ER, which has slightly lower Pearson correlation () but equally as strong rank correlation, which is arguably more important when comparing different systems. I-measure and LFM have similar strength correlations, and M2 is the lowest performing metric, even though its correlation is still strong (, ).
Next we compare the interpolated scores with the human ranking, testing 101 different values of to find the oracle value. Table 2 shows the correlations between the human judgments and the oracle interpolated metrics. Correlations of interpolated metrics are the upper bound and the correlations of uninterpolated metrics (in the first column and first row) are the lower bound. Interpolating GLEU and IM with GBMs has stronger correlation than any uninterpolated metric (i.e. or 1), and the oracle interpolation of ER and GLEU manifests the strongest correlation with the human ranking (, ).To verify that these metrics cannot be gamed, we interpolated GBMs with RBMs scored against randomized references, and got scores 15% lower than un-gamed scores, on average. M2 has the weakest correlation of all uninterpolated metrics and, when combined with GBMs, three of the interpolated metrics have , meaning the interpolated score is equivalent to the GBM and M2 does not contribute.
Table 3 presents an example of how interpolation can help evaluation. The top two sentences ranked by GLEU have misspellings that were not corrected in the NUCLE references. Interpolating with a GBM rightly ranks the misspelled output below the corrected output.
Since these experiments use a large number of references (20), we determine how different reference sizes affect the interpolated metrics by systematically increasing the number of references from 1 to 20 and randomly choosing references to use as a gold standard when calculating the RBM scores, repeating 10 times for each value (Figure 1). The correlation is nearly as strong with 3 and 20 references ( v. 0.885), and interpolating with just 1 reference is nearly as good (0.878) and improves over any uninterpolated metric.
We acknowledge that using GBMs is in effect using GEC systems to score other GEC systems. Interestingly, we find that even if the GBMs are imperfect, they still boost performance of the RBMs. GBMs have been trained to recognize errors in different contexts and, conversely, can identify correct grammatical constructions in diverse contexts, where the RBMs only recognize corrections made that appear in the gold standards, which are limited. Therefore GBMs can make a nice complement to shortcomings that RBMs may have.
Sentence-level evaluation
In the course of our experiments, we noticed that I-measure and GLEU have stronger correlations with the expert human ranking when using the mean sentence-level score (Table 4).The correlations in Table 4 differ from what was reported in ?) and ?) due to the references and sentence-level computation used in this work. Most notably, I-measure does not correlate at all as a corpus-level metric but has a very strong correlation at the sentence-level (specifically, improves from -0.055 to 0.769). This could be because corpus-level statistics equally distribute counts of correct annotations over all sentences, even those where the output neglects to make any necessary corrections. Sentence-level statistics would not average the correct counts over all sentences in this same way. As a result, a corpus-level statistic may over-estimate the quality of system output. Deeper investigation into this phenomenon is needed to understand why the mean sentence-level scores do better.
Summary
We have identified a shortcoming of reference-based metrics: they penalize changes made that do not appear in the references, even if those changes are acceptable. To address this problem, we developed metrics to explicitly measure grammaticality without relying on reference corrections and showed that the error-count metrics are competitive with the best reference-based metric. Furthermore, by interpolating RBMs with GBMs, the system ranking has even stronger correlation with the human ranking. The ER metric, which was derived from counts of errors detected using e-rater®, is nearly as good as the state-of-the-art RBM (GLEU) and the interpolation of these metrics has the strongest reported correlation with the human ranking (, ). However, since e-rater® is not widely available to researchers, we also tested a metric using Language Tool, which does nearly as well when interpolated with GLEU (, ).
Two important points should be noted: First, due to the small sample size (12 system outputs), none of the rankings significantly differ from one another except for the corpus-level I-measure. Secondly, GLEU and the other RBMs already have strong to very strong correlation with the human judgments, which makes it difficult for any combination of metrics to perform substantially higher. The best uninterpolated and interpolated metrics use an extremely large number of references (20), however Figure 1 shows that interpolating GLEU using just one reference has stronger correlation than any uninterpolated metric. This supports the use of interpolation to improve GEC evaluation in any setting.
This work is the first exploration into applying fluency-based metrics to GEC evaluation. We believe that, for future work, fluency measures could be further improved with other methods, such as using existing GEC systems to detect errors, or even using an ensemble of systems to improve coverage (indeed, ensembles have been useful in the GEC task itself [Susanto et al., 2014]). There is also recent work from the MT community, such as the use of confidence bounds [Graham and Liu, 2016] or uncertainty measurement [Beck et al., 2016], which could be adopted by the GEC community.
Finally, in the course of our experiments, we determined that metrics calculated on the sentence-level is more reliable for evaluating GEC output, and we suggest that the GEC community adopt this modification to better assess systems.
To facilitate GEC evaluation, we have set up an online platformhttps://competitions.codalab.org/competitions/12731 for benchmarking system output on the same set of sentences evaluated using different metrics and made the code for calculating LT and LFM available.https://github.com/cnap/grammaticality-metrics
Acknowledgments
We would like to thank Matt Post, Martin Chodorow, and the three anonymous reviews for their comments and feedback. We also thank Educational Testing Service for providing e-rater® output. This material is based upon work partially supported by the NSF GRF under Grant No. 1232825.