NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Multi-pass Decoding for Grammatical Error Correction

Xiaoying Wang, Lingling Mu, Jingyi Zhang, Hongfei XuEMNLP 2024

Introduction

Grammatical Error Correction (GEC) has traditionally been approached through two primary paradigms: seq2edit and seq2seq. Seq2edit models iteratively predict specific edits (e.g., deletions, insertions) over multiple rounds, while seq2seq models typically translate ungrammatical sentences into corrected versions in a single pass. While powerful, standard seq2seq models like BART and T5 lack the iterative refinement capabilities of seq2edit models. If a mistake is made in the initial draft, the model cannot correct it. Furthermore, simply feeding the output back into the model for subsequent passes often leads to "information loss," where original context is discarded.

To address these challenges, this research introduces Multi-pass Decoding (MPD), a strategy that enables seq2seq models to iteratively refine corrections while maintaining efficiency and preserving source information.

Methodology

The MPD framework incorporates two primary innovations: an early-stop mechanism and source information fusion.

Early-Stop Mechanism

To mitigate the computational overhead of multiple decoding passes, a lightweight logistic regression classifier is employed. This classifier analyzes the hidden representation of the end-of-sentence (<eos>) token after each round to estimate the probability of further improvement. If the probability falls below a predefined threshold, the process terminates. This allows the system to balance correction quality with inference speed.

Source Information Fusion

A critical issue with iterative seq2seq decoding is the potential for the model to "forget" the original input. MPD solves this by merging the original source sentence with the output of the previous decoding round.

Merging process for source information fusion.

As shown in the figure above, the merging process involves comparing sentences to create a sequence containing unchanged, deleted, and inserted tokens. It utilizes edit tags (equal, delete, insert) and dual position encodings to track token positions relative to both the original source and the current draft, thereby maintaining structural context.

Experimental Results

The MPD approach was evaluated on standard English (CoNLL-2014, BEA-2019) and Chinese benchmarks using BART and T5-large baselines.

Performance Gains

MPD consistently improved performance across all tested models and datasets. On the BEA-2019 test set, MPD enhanced the BART (12-2) model by +2.99 $F_{0.5}$ points and the T5-large model by +2.79 $F_{0.5}$ points.

Performance comparison on English GEC benchmarks.

As detailed in the table above, the T5-large + MPD configuration achieved a state-of-the-art $F_{0.5}$ of 75.36 on the BEA-2019 benchmark, outperforming numerous specialized GEC architectures and large language models like LLaMa 2-7B.

Efficiency and Language Agnosticism

The early-stop classifier allowed the model to maintain 83% of its original one-pass speed while performing multiple passes when necessary. Additionally, the method proved effective for Chinese GEC, yielding improvements of up to +3.45 $F_{0.5}$ on the NaCGEC test set.

Conclusion

Multi-pass Decoding provides a robust framework for improving seq2seq-based GEC. By combining iterative refinement with source fusion and an efficient early-stop mechanism, the proposed method achieves significant performance gains while maintaining high inference speeds. Future work may explore the application of MPD to decoder-only architectures and further optimization of the early-stop heuristics.

Summary updated

BibTeX
@inproceedings{wang2024multi,
  author = {Xiaoying Wang and Lingling Mu and Jingyi Zhang and Hongfei Xu},
  title = {{Multi-pass Decoding for Grammatical Error Correction}},
  booktitle = {Conference on Empirical Methods in Natural Language Processing},
  year = {2024},
  doi = {10.18653/v1/2024.emnlp-main.553},
}
Figure