Chinese Grammatical Error Diagnosis using Statistical and Prior Knowledge driven Features with Probabilistic Ensemble Enhancement

Ruiji Fu, Zhengqi Pei, Jiefu Gong, Wei Song, Dechuan Teng, Wanxiang Che, Shijin Wang, Guoping Hu, Ting Liu

Abstract

This paper presents a high-performing system for Chinese Grammatical Error Diagnosis (CGED) that integrates deep learning architectures with statistical "prior knowledge" features. By combining a BiLSTM-CRF framework with Gaussian-weighted Pointwise Mutual Information (ePMI) and a rule-based Template Matcher, the proposed approach achieves state-of-the-art performance. A novel ensemble strategy leveraging the complementary strengths of Adam and SGD optimizers further enhances precision and recall, leading to top-tier results in identifying and correcting errors in sentences written by learners of Chinese as a foreign language.

Introduction

Grammatical Error Diagnosis (GED) is a notoriously difficult NLP task, particularly for the Chinese language. Unlike English, Chinese lacks explicit word boundaries, has less rigid sentence structures, and requires word segmentation before deep analysis can begin. For learners of Chinese as a Foreign Language (CFL), errors are frequent and varied. While deep learning models excel at capturing features automatically from large datasets, they often struggle when training data is limited or when errors depend on specific linguistic rules. This research aims to bridge this gap by combining the robust feature extraction of deep learning with handcrafted heuristics and statistical measures of word associations.

Methodology

The core of the system is a BiLSTM-CRF (Bidirectional Long Short-Term Memory with a Conditional Random Field layer) architecture. The authors introduce several novel enhancements to this standard sequence tagging framework:

  1. Statistical Features (ePMI): The system utilizes "exact Pointwise Mutual Information" (ePMI) to measure word pair co-occurrences at specific distances. A Gaussian distribution is applied to these scores to leverage word distance effectively, helping the model distinguish between natural and unnatural word combinations.
  2. Linguistic Integration: Word segmentation and Part-of-Speech (POS) tags are incorporated directly into the feature set.
  3. Probabilistic Ensemble: Instead of simple averaging, the system uses a weighted sum of LSTM outputs from multiple models before the CRF layer. A key finding was that models trained with SGD (Stochastic Gradient Descent) tend to be precision-prone, while those trained with Adam are recall-prone. A ranking-based ensemble strategy balances these "personalities" by keeping the top-40% most confident predictions.
  4. Template Matcher: A post-processing step uses handcrafted rules to catch specific errors, such as the usage of structural particles like "的", "地", and "得".
The system architecture, illustrating the dual-optimizer LSTM paths and the integration of the Template Matcher.

Datasets and Training

The system was evaluated on the NLPTEA-2018 CGED shared task. Training data included combined datasets from CGED 2016, 2017, and 2018. To support the ePMI features, the authors utilized a massive corpus of 10 million Chinese student essays and 2 million sentences from the Encyclopedia of China (Baike). Additionally, synthetic data was generated by handcrafting erroneous forms of correct sentences to augment the training set.

Results

In the official NLPTEA-2018 evaluation, the system demonstrated dominant performance across multiple levels of diagnosis. The system achieved the top spot for Identifying Error Types and Locating Error Positions, and secured the best F1 performance among all participants for recommending error corrections.

Official NLPTEA-2018 evaluation results showing the performance of three system runs compared to the best team across Detection, Identification, and Position levels.

Ablation studies confirmed that the inclusion of ePMI features and the Template Matcher consistently improved Precision, Recall, and F1 scores. The results suggest that for specialized domains like grammar, human linguistic knowledge remains a vital supplement to deep learning models.

Conclusion

The integration of statistical prior knowledge and rule-based heuristics significantly boosts the performance of deep learning models in CGED. While the task remains challenging due to dependencies on initial processing steps like POS tagging, the use of specialized optimizers in an ensemble framework provides a robust path forward. Future work will focus on expanding training data and refining linguistic templates to cover a broader range of complex grammatical rules.

Summary updated

BibTeX
@inproceedings{fu2018chinese,
  author = {Ruiji Fu and Zhengqi Pei and Jiefu Gong and Wei Song and Dechuan Teng and Wanxiang Che and Shijin Wang and Guoping Hu and Ting Liu},
  title = {{Chinese Grammatical Error Diagnosis using Statistical and Prior Knowledge driven Features with Probabilistic Ensemble Enhancement}},
  booktitle = {NLP-TEA @ ACL},
  year = {2018},
  doi = {10.18653/v1/w18-3707},
}
Figure