Chinese Grammatical Error Diagnosis with Graph Convolution Network and Multi-task Learning

Yikang Luo, Zuyi Bao, Chen Li, Rui Wang2020

Abstract

This paper describes our participating system on the Chinese Grammatical Error Diagnosis (CGED) 2020 shared task. For the detection subtask, we propose two BERT-based approaches: 1) utilizing syntactic dependency trees to enhance model performance through Graph Convolutional Networks (GCNs), and 2) a multi-task learning framework combining sequence labeling and sequence-to-sequence (seq2seq) models. For the correction subtask, we employ a masked language model, a seq2seq model, and a spelling check model to generate corrections based on detection results. Our system achieved the highest recall rate on top-3 corrections and the second-best F1 score at the identification and position levels.

Introduction

Learning Chinese as a second language (CSL) presents significant challenges, with learners frequently making errors such as redundant words, missing words, improper selection, or incorrect word order. Traditional NLP approaches often treat error detection as a simple sequence labeling task. However, these methods frequently struggle with structural issues where errors disrupt the syntactic relationship between sentence components. This research aims to bridge the gap between linear sequence modeling and deep syntactic understanding to improve Chinese Grammatical Error Diagnosis (CGED).

Proposed Methodology

The core of our system is a hybrid architecture designed to capture both local context and global structural dependencies.

BERT-GCN-CRF Architecture

We utilize StructBERT as our backbone to extract high-level character representations. StructBERT is particularly effective for CGED because its pre-training includes a word structural objective, making it sensitive to word-order errors. To incorporate structural information, we convert sentences into syntactic dependency trees using the LTP platform. These trees are processed by a Graph Convolutional Network (GCN) as an adjacency matrix, allowing the model to identify grammatical anomalies where redundant or missing words disrupt the expected tree structure. A Conditional Random Field (CRF) layer ensures global consistency in the final output tags.

The BERT-GCN-CRF model architecture incorporating syntactic trees.

Multi-task Learning and Correction Pipeline

The model is trained under a multi-task framework to simultaneously perform error detection (sequence labeling) and correction (seq2seq generation). Learning to reconstruct the correct sentence provides richer internal representations for error localization. Once an error is detected, the system employs a three-pronged correction strategy:

  1. Masked Language Model (MLM): BERT fills [MASK] tokens to fix missing or selection errors.
  2. Seq2Seq: A dedicated Transformer decoder maps erroneous spans to corrections.
  3. Chinese Spelling Check (CSC): A specialized module handles typos using rule-based checks and BERT.

Syntactic Dependency as a Signal

A key insight of this work is that grammatical errors often manifest as "broken" dependency trees. By encoding these trees via GCN, the model can detect structural inconsistencies that linear models might overlook. For example, a missing verb can fundamentally alter the relationship between a subject and its object, a change that is clearly visible in a dependency graph but subtle in a raw character sequence.

Comparison of dependency trees between erroneous and corrected input.

Experimental Results

Our system was evaluated using the CGED shared task datasets (2015–2018) and competed in the CGED 2020 shared task. Using a BIOES tagging scheme for precise localization, the ensembled model achieved significant performance gains:

  • Recall: Ranked #1 in the competition for top-3 correction recall.
  • F1 Score: Ranked #2 for both Identification level (error type) and Position level (exact character location).
  • Detection: On the validation set, the ensemble model reached an F1 score of 81.9, compared to a 77.5 baseline.

Conclusion

By combining the pre-training strengths of StructBERT with the structural awareness of GCNs, our system demonstrates that syntactic information is a powerful signal for Chinese grammar correction. While the system excels at recall, future work will focus on improving precision to reduce false positives and exploring more granular modification strategies to handle the inherent ambiguity in linguistic corrections.

Summary updated

BibTeX
@misc{luo2020chinese,
  author = {Yikang Luo and Zuyi Bao and Chen Li and Rui Wang},
  title = {{Chinese Grammatical Error Diagnosis with Graph Convolution Network and Multi-task Learning}},
  year = {2020},
  doi = {10.18653/v1/2020.nlptea-1.6},
}
Figure