DER-CGEC: A Dynamic Example Retrieval Framework for Chinese Grammatical Error Correction

Main Article Content

Feiran Yang

Keywords

Chinese grammatical error correction, dynamic example retrieval, large language models, downstream transfer

Abstract

To address the difficulty of fixed few-shot prompting in adapting to different types of Chinese grammatical errors, this paper proposes Dynamic Example Retrieval for Chinese Grammatical Error Correction (DER-CGEC), which investigates how dynamically selecting examples affects large language models' direct error-correction capabilities and downstream transfer performance. This paper uses the 7-Billion-Parameter Qwen2.5 (Qwen2.5-7B) as the upstream model and trains the Mengzi Text-to-Text Transfer Transformer (Mengzi-T5) using the model-generated correction candidates, error types, and explanatory information. Specifically, the method combines the character bigram Jaccard similarity between the sentence to be corrected and the example error sentences, as well as the degree of similarity between the example before and after modification, to retrieve the highest-scoring examples from each of the eight categories and then inputs the selected examples together with the sentence to be corrected into the upstream model. On the 1,790 fixed evaluation data points of the Fine-Grained Corpus for Chinese Grammatical Error Correction (FCGEC), the Chinese ERRor ANnotation Toolkit (ChERRANT) F-Measure with Beta Equal to 0.5 (F0.5) value for dynamic prompts reached 0.0882. Furthermore, in downstream experiments using three random seeds, the average F0.5 of the dynamic prompt reached 0.0064, which was also higher than that of other control groups. The experiments show that dynamically selecting examples based on input features can improve the direct error-correction performance of large language models and offers downstream transfer value.

Abstract 16 | PDF Downloads 12

References

  • [1]L. Xu, J. Wu, J. Peng, J. Fu, and M. Cai, “FCGEC: Fine-grained corpus for Chinese grammatical error correction,” in Findings of the Association for Computational Linguistics: EMNLP 2022, pp. 1900–1918, 2022.
  • [2]Y. Zhang et al., “MuCGEC: A multi-reference multi-source evaluation dataset for Chinese grammatical error correction,” in Proceedings of the 2022 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies, pp. 3118–3130, 2022.
  • [3]L. Mu, X. Wang, and J. Cui, “Evaluation of large language models for Chinese text error correction tasks,” in Proceedings of the 23rd Chinese National Conference on Computational Linguistics, pp. 790–806, 2024.
  • [4]Y. Li et al., “Rethinking the roles of large language models in Chinese grammatical error correction,” in Proceedings of the 63rd Annual Meeting of the Association for Computational Linguistics: Industry Track, pp. 553–567, 2025.
  • [5]L. Zheng, Y. Deng, W. Song, L. Xu, and J. Xiao, “An alignment-agnostic model for Chinese text error correction,” in Findings of the Association for Computational Linguistics: EMNLP 2021, pp. 321–326, 2021.
  • [6]X. Wu and Y. Wu, “From spelling to grammar: A new framework for Chinese grammatical error correction,” in Findings of the Association for Computational Linguistics: EMNLP 2022, pp. 889–902, 2022.
  • [7]M. Tan, M. Yang, and R. Xu, “Focal training and tagger decouple for grammatical error correction,” in Findings of the Association for Computational Linguistics: ACL 2023, pp. 5978–5985, 2023.
  • [8]H. Yang and X. Quan, “Alirector: Alignment-enhanced Chinese grammatical error corrector,” in Findings of the Association for Computational Linguistics: ACL 2024, pp. 2531–2546, 2024.
  • [9]O. Rubin, J. Herzig, and J. Berant, “Learning to retrieve prompts for in-context learning,” in Proceedings of the 2022 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies, pp. 2655–2671, 2022.
  • [10]A. Yang et al., “Qwen2.5 technical report,” arXiv preprint arXiv:2412.15115, 2024.
  • [11]Z. Zhang et al., “Mengzi: Towards lightweight yet ingenious pre-trained models for Chinese,” arXiv preprint arXiv:2110.06696, 2021.