arXiv:2610.41698cs.CLOct 2026

Manuscript Offprint

arXiv:2610.41698

Precision--Recall Trade-off on the Inference Level for LLMs in Grammatical Error Correction

Ryszard Staruch, Filip Graliński

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

Large language models (LLMs) have recently been adopted for Grammatical Error Correction (GEC), achieving strong performance via both full fine-tuning and prompt-based approaches. As probabilistic sequence models, LLMs expose inference-time parameters that directly modify token generation behavior; however, their potential for controlling GEC-specific trade-offs has not been systematically studied. In this work, we investigate decoding strategies for grammatical error correction. We show that the repetition penalty parameter enables controllable adjustment of the precision-recall trade-off at inference time, without modifying the model architecture, training procedure, or prompt. Through experiments on standard GEC benchmarks, we demonstrate that repetition-penalty-based decoding enables inference-time control of the precision-recall balance, conceptually related to methods previously proposed for sequence-to-sequence GEC models, such as Align-and-Predict Decoding (APD), while remaining simple and broadly applicable to existing LLMs that expose inference-time decoding penalties.

1 Introduction

Grammatical Error Correction (GEC) is a field in which systems are expected to identify and correct errors in texts. The task is fairly subjective – it depends on the context in which the system operates, and its goals can differ. For example, a system assisting language learners should provide fewer but more precise corrections to avoid harming or misteaching the learner (Ng et al., 2014). In contrast, a GEC system for native speakers should find as many errors as possible, since most of them stem from omissions (Wang et al., 2022). The system can thus be optimized for high precision or high recall, balancing the two objectives in a precision-recall trade-off. Table 1 illustrates the