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

Position Offset Label Prediction for Grammatical Error Correction

Xiuyu Wu, Jingsong Yu, Xu Sun, Yunfang WuCOLING 2022

Introduction

Grammatical Error Correction (GEC) is traditionally framed as a sequence-to-sequence (seq2seq) translation task, where an erroneous sentence is "translated" into its correct counterpart. However, GEC differs significantly from standard machine translation because the input and output sequences are often highly similar.

Research into Chinese GEC data reveals three critical characteristics:

  1. High Token Overlap: Approximately 95.6% of tokens in erroneous sentences are preserved in the corrections.
  2. Local Movement: Most "cue tokens" (correct words) maintain their relative order. As shown in Figure 5, roughly 90% of tokens move no more than three positions in the NLPCC dataset.
  3. Short Edits: Insertions and deletions typically involve very short spans, averaging around 1.5 tokens.
Local movement of cue tokens across languages.

Existing models often fail to leverage these properties. Seq2seq models can suffer from hallucinations or lose track of original tokens, while sequence tagging models often struggle with complex reordering or require massive, language-specific edit vocabularies.

Methodology: The POL-Pc Framework

To address these limitations, this paper proposes Position Offset Label (POL) prediction combined with a specialized P-copy mechanism.

1. Position Offset Label (POL) Prediction

Instead of solely predicting the next token, the encoder is trained to predict an offset label $o_i$ for each input token $x_i$. This label represents the distance a token must shift to reach its correct position in the target sentence.

  • 0: The token remains in its original position.
  • Positive/Negative Integers: The token moves right or left by a specific number of steps.
  • N (Null): The token is deleted.
  • @ (Placeholder): Used for insertions.

By limiting the maximum offset (e.g., $k=3$), the model maintains a manageable search space while capturing the vast majority of local reorderings.

Examples of Position Offset Labels (POL) for common grammatical errors including deletion, substitution, insertion, and reordering.

2. P-copy (Position-based Copy)

Standard copy mechanisms rely on attention to replicate source tokens. The proposed P-copy mechanism instead utilizes the predicted POL distribution. If the model predicts a high probability that a token at index $i$ should move to index $t$, the decoder is biased toward copying that specific token at that timestep, providing a strong inductive bias for structural preservation.

3. Multi-task Learning and Data Augmentation

The architecture is a Transformer-based encoder-decoder. The encoder performs the POL prediction (detection), while the decoder generates the final sentence by fusing standard generation with the P-copy distribution. To combat data sparsity, the authors utilized 5 million synthetic sentences and dynamic noise injection during training.

Evaluation and Results

The model was evaluated across Chinese (NLPCC 2018), English (CoNLL-2014), and Japanese (TEC-JL) benchmarks.

  • State-of-the-Art Performance: On the Chinese NLPCC-2018 test set, the model achieved an $F_{0.5}$ score of 38.95, a 1.98-point improvement over the previous state-of-the-art.
  • Ablation Study: Removing the P-copy mechanism led to a 2.53-point drop in $F_{0.5}$, highlighting the importance of POL-guided copying.
  • Cross-Lingual Efficacy: The model showed consistent gains across languages: +11.7% in Chinese, +7.4% in Japanese, and +4.0% in English. The lower gain in English is attributed to its higher frequency of morphological errors (e.g., verb conjugation), which POL does not explicitly model.

Conclusion

The POL-Pc framework effectively treats GEC as a local reordering and filtering task rather than a generic translation problem. By explicitly modeling token offsets, the model gains a robust bias toward preserving the original sentence structure, leading to significant improvements in correction accuracy, particularly for languages like Chinese and Japanese where discrete insertions and deletions are prevalent.

Summary updated

BibTeX
@inproceedings{wu2022position,
  author = {Xiuyu Wu and Jingsong Yu and Xu Sun and Yunfang Wu},
  title = {{Position Offset Label Prediction for Grammatical Error Correction}},
  booktitle = {International Conference on Computational Linguistics},
  year = {2022},
  url = {https://openreview.net/forum?id=znyBKfKFrRW},
}
Figure