Minimum Bayes' Risk Decoding for System Combination of Grammatical Error Correction Systems

Vyas Raina, Mark GalesarXiv 2023

This paper from researchers at the University of Cambridge introduces a robust way to combine multiple Grammatical Error Correction (GEC) systems using Minimum Bayes’ Risk (MBR) decoding. By shifting the decoding process from the space of word sequences to the space of "edits," the authors demonstrate a method that not only improves overall accuracy but also allows fine-grained control over the trade-off between precision and recall.

TL;DR

The authors propose a novel MBR decoding framework that operates in the "edit-space" to combine outputs from multiple GEC systems. By optimizing for reward functions aligned with standard GEC metrics (like F0.5), their approach consistently outperforms individual state-of-the-art models and provides a mechanism to tune systems for higher precision or recall without retraining.

What Problem Does This Paper Address?

Ensembling—combining the predictions of multiple models—is a cornerstone of modern machine learning. However, for sequence-to-sequence (seq2seq) tasks like GEC, it’s not as simple as averaging scores. Standard ensembling often requires access to the internal probability distributions of the models, which is increasingly difficult as researchers move toward "black-box" large language models (LLMs).

Furthermore, there is a persistent mismatch between decoding and assessment. Most GEC models are trained to maximize the likelihood of a sequence, but they are evaluated based on the F-score of the specific edits (insertions, deletions, substitutions) they make. This paper bridges that gap by bringing the decoding process directly into the "edit-space."

Methods

The core innovation is applying Minimum Bayes’ Risk (MBR) decoding to sets of edits.

  1. Edit-Space Representation: Instead of treating model outputs as strings of text, the authors represent them as sets of edits required to transform the original input into the corrected version.
  2. MBR Decoding: The goal is to select a candidate output that maximizes the "expected reward" across all models in the ensemble. Because the base models (variants of GECToR) perform similarly, the authors simplify the math by assuming each model's output is equally probable.
  3. Custom Reward Functions: The authors define reward functions based on standard metrics:
  4. Recall-oriented: $R^{(rec)}$
    • Precision-oriented: $R^{(prec)}$
    • F-score-oriented: $R^{(f\{k\})}$, specifically $F_{0.5}$, which weights precision twice as heavily as recall—a standard practice in GEC to avoid "over-correcting" and annoying users.
  5. Expanding the Selection Space: Rather than just picking the best output from the existing models, the authors generate new candidates through:
  6. Edit Voting: Creating new sequences by taking edits that were suggested by at least $m$ models.
  7. Greedy Search: Starting with the intersection of all model edits and greedily adding edits from the union set that increase the expected MBR reward.

Datasets

The approach was evaluated on three benchmark GEC corpora:

  • FCE (First Certificate in English): A subset of the Cambridge Learner Corpus containing exam scripts from non-native speakers.
  • BEA-19 (Building Education Applications 2019): A diverse set of essays from both native and non-native English students.
  • CoNLL-14: A standard benchmark consisting of essays written by non-native speakers.

The base models used for the ensemble were three versions of GECToR utilizing different Transformer encoders: BERT, RoBERTa, and XLNet.

Key Insights and Ideas

  • Alignment is Everything: The most significant "aha" moment is that decoding in the edit-space naturally aligns the model's decision-making with the final evaluation criteria. By using an $F_{0.5}$ reward function, the system "knows" how it will be judged.
  • Tunability without Retraining: One of the most practical insights is that by simply swapping the reward function in the MBR framework, a developer can shift a system from being "conservative" (high precision) to "aggressive" (high recall) without ever touching the underlying neural weights.
  • Constructing Better Candidates: The greedy search proves that the "best" correction is often a combination of edits that no single model proposed on its own.

Key Results

The MBR approach consistently yielded significant gains over individual state-of-the-art models.

As shown in the comparison between individual models (Table 1) and the MBR results, the ensemble significantly boosts the $F_{0.5}$ score. For example, on the CoNLL-14 dataset:

  • Best Individual Model (RoBERTa): 56.82 $F_{0.5}$
  • Greedy MBR Ensemble: 61.08 $F_{0.5}$
Table 1: Individual GECToR performance

The authors also demonstrated the power of the voting-augmented selection set. In Table 4, we see that including voting-based candidates ($y^{(1)}, y^{(2)}, y^{(3)}$) in the selection space allows the MBR decoder to find even better solutions than just picking between the original model outputs.

Table 4: MBR with augmented selection set

Limitations and Future Work

  • Architecture Specificity: The experiments focused on GECToR, which is an encoder-only "sequence-tagging" model. While efficient, it would be valuable to see how this method performs with large auto-regressive models (like T5 or GPT-4).
  • Search Complexity: While the greedy search is effective, the authors noted that searching the entire union of edits can sometimes introduce noise and reduce performance, suggesting that the search space needs careful pruning.
  • Black-Box vs. White-Box: The method currently treats models as black boxes (only using their outputs). Integrating internal model confidence scores into the MBR posterior could potentially yield even higher accuracy.

Summary updated

BibTeX
@misc{raina2023minimum,
  author = {Vyas Raina and Mark Gales},
  title = {{Minimum Bayes' Risk Decoding for System Combination of Grammatical Error Correction Systems}},
  year = {2023},
  eprint = {2309.06520},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2309.06520},
}
Figure