Introduction
Grammatical Error Correction (GEC) is a fundamental task in Natural Language Processing that requires models to identify and correct errors while preserving the original meaning and structure of the text. Historically, the field has been divided between two primary architectures: Sequence-to-Sequence (Seq2Seq) models and Sequence Tagging models.
Seq2Seq models, typically based on the Transformer architecture, offer high flexibility by generating corrected sentences from scratch. However, they are prone to "hallucinations," word omissions, and over-correction because they lack a strict structural tether to the source sentence. Conversely, Sequence Tagging models treat GEC as a text-editing task, applying specific tags (e.g., keep, delete, replace) to each token. While these models preserve structure well, they often rely on complex, language-specific rule sets and struggle with sophisticated edits like long-range reordering or extensive insertions.
This paper introduces the Sequence-to-Action (S2A) model, a framework designed to bridge this gap by combining the generative power of Seq2Seq with the structural discipline of tagging, without the need for hand-crafted linguistic rules.
The Sequence-to-Action (S2A) Framework
The core innovation of this research is the S2A module, integrated into a standard Transformer encoder-decoder framework. This module guides the generation process through three atomic actions:
- COPY: Retains the current token from the source sentence.
- SKIP: Discards the current source token, identifying it as an error.
- GENerate: Inserts a new token from the model's entire vocabulary at the current position.
Mechanism and Probability Fusion
During training, the model employs dynamic programming to align erroneous source sentences with their "golden" targets, creating an optimal sequence of actions. At each step of the decoding process, the S2A module predicts an action probability. This probability is then fused with the standard decoder's token distribution. For instance, if the model predicts a COPY action, it significantly amplifies the probability of the specific token currently being pointed to in the source text. This "anchoring" mechanism ensures the model remains faithful to the source structure while retaining the ability to generate new text when necessary.
Unlike traditional tagging models like GECToR, S2A is inherently language-independent. Because the actions are atomic and the generation draws from the model's internal vocabulary, it does not require the development of language-specific edit dictionaries.
Experimental Methodology
The researchers evaluated the S2A model across two major linguistic benchmarks to test its versatility:
- English GEC: The model was trained on the BEA-2019 shared task datasets (including Lang-8, NUCLE, FCE, and W&I+LOCNESS) and evaluated on the CoNLL-2014 test set. Pre-training was supported by 100 million synthetic parallel examples.
- Chinese GEC: The model was evaluated on the NLPCC-2018 Task 2 dataset, the standard benchmark for Chinese grammatical correction.
Results and Analysis
Quantitative Performance
The S2A model demonstrated superior performance over standard baselines in both languages:
- English (CoNLL-2014): S2A achieved an $F_{0.5}$ score of 52.5 for a single model and 54.8 for an ensemble, outperforming the Transformer Big baseline by 2.1 points.
- Chinese (NLPCC-2018): The model established a new state-of-the-art $F_{0.5}$ of 30.46 (without data augmentation) and 38.06 when combined with MaskGEC augmentation, surpassing previous leading models such as YouDao and AliGM.
Qualitative Advantages
Case studies highlighted two primary strengths of the S2A approach. First, it effectively eliminated the word omissions common in standard Transformers when processing long Chinese sentences. Second, it successfully handled long-range reordering and complex insertions—areas where traditional tagging models often fail due to their reliance on iterative passes or limited tag sets.
Conclusion
The Sequence-to-Action model represents a significant step forward in GEC by providing a unified, language-independent framework that balances generative flexibility with structural precision. By forcing the model to decide on an action (COPY, SKIP, or GEN) before predicting a token, S2A drastically reduces hallucinations and over-correction.
While the current autoregressive nature of S2A results in slower inference speeds compared to non-autoregressive tagging models, its performance gains and simplicity make it a robust candidate for various text-editing tasks. Future work may explore extending this framework to text style transfer and text infilling, where structural preservation and generative accuracy are equally vital.
Summary updated