DER-CGEC: A Dynamic Example Retrieval Framework for Chinese Grammatical Error Correction
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.
Authors
- Feiran Yang
Institutions
- Qufu Normal University (CN)
Publication Details
- Journal
- Computers and artificial intelligence.
- Published
- 2026-12-03
- DOI
- https://doi.org/10.70267/cai.v3n8.122129
- Primary Topic
- Natural Language Processing Techniques
- Type
- article
- Field-Weighted Citation Impact
- 0.00