To Err Is Human, but Llamas Can Learn It Too

Agnes Luhtaru, Taido Purason, Martin Vainikko, Maksym Del, Mark Fishel
3/8/2024
cs.CL

No official code found. Best implementation: TartuNLP/gec-llm (1 star, last commit 2024-12-02).

Abstract

This study explores enhancing grammatical error correction (GEC) through artificial error generation (AEG) using language models (LMs). Specifically, we fine-tune Llama 2-based LMs for error generation and find that this approach yields synthetic errors akin to human errors. Next, we train GEC Llama models with the help of these artificial errors and outperform previous state-of-the-art error correction models, with gains ranging between 0.8 and 6 F0.5 points across all tested languages (German, Ukrainian, and Estonian). Moreover, we demonstrate that generating errors by fine-tuning smaller sequence-to-sequence models and prompting large commercial LMs (GPT-3.5 and GPT-4) also results in synthetic errors beneficially affecting error generation models.

View on arXivView PDF

Code Implementations(1)

TartuNLP/gec-llmCommunity100%
10Shell, PythonJun 3, 20241 years ago

Cite this paper

@article{luhtaru2024human,
  title  = {To Err Is Human, but Llamas Can Learn It Too},
  author = {Agnes Luhtaru and Taido Purason and Martin Vainikko and Maksym Del and Mark Fishel},
  year   = {2024},
  eprint = {2403.05493},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2403.05493v2}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2403.05493.svg)](https://codeofpaper.com/paper/2403.05493)

Discussion