SynGEC: Syntax-Enhanced Grammatical Error Correction with a Tailored GEC-Oriented Parser

Yue Zhang, Bo Zhang, Zhenghua Li, Zuyi Bao, Chen Li, Min Zhang

Abstract

SynGEC introduces a novel framework for Grammatical Error Correction (GEC) that explicitly incorporates syntactic information through a custom-built, "GEC-oriented" parser called GOPar. By projecting parse trees from correct sentences onto their ungrammatical counterparts and adding specialized error labels, the authors enable GEC models to better handle structural mistakes and long-range dependencies, achieving state-of-the-art results on both English and Chinese benchmarks.

Introduction

Most modern GEC systems treat the task as a standard sequence-to-sequence translation problem, viewing sentences merely as strings of tokens. However, many grammatical errors—such as subject-verb disagreement or incorrect verb tenses—are deeply rooted in the sentence's underlying syntactic structure.

While incorporating syntax seems like an obvious win, there is a major hurdle: off-the-shelf parsers are fragile. These parsers are trained on "clean" treebanks consisting of perfectly grammatical sentences. When they encounter the messy, ungrammatical input typical of GEC tasks, their performance plummets. Furthermore, standard syntactic representation schemes lack mechanisms to represent "non-canonical" structures, such as missing words or redundant insertions.

Methodology

GOPar: A GEC-Oriented Parser

To address the lack of ungrammatical training data for parsers, the authors use parallel GEC data as a "pivot." They parse the correct target sentences using a standard parser and align the incorrect source sentence with the correct target. The syntactic tree is then projected from the target back to the source.

To handle errors during projection, the authors introduce an Extended Syntax Representation Scheme with three new labels:

  • S (Substituted): For words that have been replaced.
  • R (Redundant): For unnecessary words inserted into the sentence.
  • M (Missing): For words that are absent but grammatically required.
Comparison between a correct sentence and its substituted error representation.
Extended syntax representations for redundant and missing grammatical errors.

This allows the tree to remain structurally sound even when the grammar is broken. Finally, they train GOPar on these projected trees to create a parser robust to ungrammatical input.

The SynGEC Model

The SynGEC model uses a standard Transformer backbone (often initialized with BART). It incorporates a Dependency Graph Convolutional Network (DepGCN) to encode the syntactic information provided by GOPar. The syntactic representations from the GCN are fused with the standard Transformer encoder outputs using a weighted sum before being passed to the decoder.

Experimental Setup

The researchers evaluated SynGEC on mainstream benchmarks for two languages:

  • English: Pre-trained on CLang8; fine-tuned on FCE, NUCLE, and W&I+LOCNESS. Evaluated on CoNLL-14 and BEA-19.
  • Chinese: Trained on Lang8 and HSK. Evaluated on NLPCC-18 and MuCGEC.
  • Fluency: Tested on the JFLEG dataset, which focuses on broader fluency rather than technical correctness.

Results and Discussion

SynGEC demonstrated significant improvements across all benchmarks:

  • English Performance: On the CoNLL-14 test set, SynGEC (without PLMs) achieved an $F_{0.5}$ score of 63.5, compared to the Transformer baseline of 59.1. Combined with BART, it reached 67.6, outperforming other syntax-based methods.
  • Chinese Performance: SynGEC improved the $F_{0.5}$ score by 1.60 on NLPCC-18 and 2.09 on MuCGEC over the baseline.
  • Ablation Studies: Removing either the error labels (S, R, M) or standard syntax labels (e.g., "nsubj") led to a drop in performance, confirming that both error location and sentence structure are vital.

Key Insights

  • Syntax Projection: Projecting syntax from the "clean" side of a parallel corpus effectively creates a high-quality training set for a robust parser without expensive manual annotation.
  • Parser Quality: Standard off-the-shelf parsers provide marginal gains; GEC model performance is highly contingent on the parser's ability to handle errors.
  • Complementary Strengths: Even with powerful Pre-trained Language Models (PLMs) like BART, explicit syntax helps, suggesting PLMs still struggle with specific long-range syntactic dependencies.
  • Error-Specific Gains: Syntactic information is particularly helpful for "context-sensitive" errors like Determiners, Prepositions, and Subject-Verb Agreement (SVA).

Conclusion and Future Work

While SynGEC sets a new standard for syntax-enhanced GEC, it faces limitations such as initial noise from the target-side parser and coarse error labels. Future work may explore more fine-grained error types (e.g., "S-Tense") or injecting syntax into the decoder to guide generation.

Summary updated

BibTeX
@inproceedings{zhang2022syngec,
  author = {Yue Zhang and Bo Zhang and Zhenghua Li and Zuyi Bao and Chen Li and Min Zhang},
  title = {{SynGEC: Syntax-Enhanced Grammatical Error Correction with a Tailored GEC-Oriented Parser}},
  booktitle = {Conference on Empirical Methods in Natural Language Processing},
  year = {2022},
  doi = {10.18653/v1/2022.emnlp-main.162},
}
Figure