Explanation based In-Context Demonstrations Retrieval for Multilingual Grammatical Error Correction

Fuente: arXiv
Guardado en:
Detalles Bibliográficos
Autores principales: Li, Wei, Luo, Wen, Peng, Guangyue, Wang, Houfeng
Formato: Preprint
Publicado: 2025
Materias:
Acceso en línea:
Etiquetas: Agregar Etiqueta
Sin Etiquetas, Sea el primero en etiquetar este registro!
_version_ 1866912230536118272
author Li, Wei
Luo, Wen
Peng, Guangyue
Wang, Houfeng
author_facet Li, Wei
Luo, Wen
Peng, Guangyue
Wang, Houfeng
contents Grammatical error correction (GEC) aims to correct grammatical, spelling, and semantic errors in natural language text. With the growing of large language models (LLMs), direct text generation has gradually become the focus of the GEC methods, and few-shot in-context learning presents a cost-effective solution. However, selecting effective in-context examples remains challenging, as the similarity between input texts does not necessarily correspond to similar grammatical error patterns. In this paper, we propose a novel retrieval method based on natural language grammatical error explanations (GEE) to address this issue. Our method retrieves suitable few-shot demonstrations by matching the GEE of the test input with that of pre-constructed database samples, where explanations for erroneous samples are generated by LLMs. We conducted multilingual GEC few-shot experiments on both major open-source and closed-source LLMs. Experiments across five languages show that our method outperforms existing semantic and BM25-based retrieval techniques, without requiring additional training or language adaptation. This also suggests that matching error patterns is key to selecting examples.
format Preprint
id arxiv_https___arxiv_org_abs_2502_08507
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle Explanation based In-Context Demonstrations Retrieval for Multilingual Grammatical Error Correction
Li, Wei
Luo, Wen
Peng, Guangyue
Wang, Houfeng
Computation and Language
Grammatical error correction (GEC) aims to correct grammatical, spelling, and semantic errors in natural language text. With the growing of large language models (LLMs), direct text generation has gradually become the focus of the GEC methods, and few-shot in-context learning presents a cost-effective solution. However, selecting effective in-context examples remains challenging, as the similarity between input texts does not necessarily correspond to similar grammatical error patterns. In this paper, we propose a novel retrieval method based on natural language grammatical error explanations (GEE) to address this issue. Our method retrieves suitable few-shot demonstrations by matching the GEE of the test input with that of pre-constructed database samples, where explanations for erroneous samples are generated by LLMs. We conducted multilingual GEC few-shot experiments on both major open-source and closed-source LLMs. Experiments across five languages show that our method outperforms existing semantic and BM25-based retrieval techniques, without requiring additional training or language adaptation. This also suggests that matching error patterns is key to selecting examples.
title Explanation based In-Context Demonstrations Retrieval for Multilingual Grammatical Error Correction
topic Computation and Language
url https://arxiv.org/abs/2502.08507