Automatic grammar correctors usually face text that is already correct, so their main failure is the false alarm: a fine phrase gets rewritten into something worse. The standard defense is a relative test. An edit is applied only if the corrected text scores higher than the original by some margin, and otherwise the original stays. That margin is almost always one global number, grid-searched once on a development set. We argue that a single margin is the wrong object. The score difference between corrected and original text acts like evidence for an error. How often that evidence is right depends on how many errors the writer makes in the first place. If the margin works well for beginner learners, it will produce many more false alarms on proficient or native writers, who have fewer real errors to find.
We propose to treat "keep the original text" as the abstain option of selective prediction. Selective prediction means letting a model decline to answer when it is unsure, and measuring the trade-off between how often it answers and how often it is wrong. Under this view, each proposed edit is a prediction, and declining it means leaving that span of source text unchanged. We then set the correction margin separately for groups of documents with similar estimated error density, using a finite-sample bound so that the false-correction rate within each group stays below a target the user chooses. The claim is concrete and can be falsified. A global margin breaks the target false-alarm rate on low-error writers. A margin that depends on estimated error density, with a bound attached, holds the target across proficiency levels and recovers recall on high-error writers.
Core Claim
Let $\Delta(e)$ be the score gain an edit $e$ gives over the original span. Read it as a log likelihood ratio. The log odds that the edit is a true correction are then roughly
$$\log\frac{P(\text{error}\mid \Delta)}{P(\text{no error}\mid \Delta)} \approx \Delta(e) + \log\frac{\pi}{1-\pi},$$
where $\pi$ is the base rate at which a span in this writer's text actually contains an error. A fixed margin on $\Delta$ ignores the second term. Precision at a fixed margin must therefore fall as $\pi$ falls.
Previous thresholding work tunes the margin to maximize pooled $F_{0.5}$ and never separates results by writer population. This holds for confusion-set scoring with language models (Language Model Based Grammatical Error Correction without Annotated Training Data; The Unreasonable Effectiveness of Transformer Language Models in Grammatical Error Correction), for the reranker acceptance threshold $\lambda$ (Bidirectional Transformer Reranker for Grammatical Error Correction), and for the source-versus-correction ratio $P_{\text{corr}}/P_{\text{src}}$ (Improving Grammatical Error Correction by Correction Acceptability Discrimination).
Selective prediction contributes the guarantee machinery but not the prior. Selective Classification for Deep Neural Networks sets a confidence cutoff by inverting a binomial tail bound, so that the error rate on retained predictions stays below $r^*$ with probability $1-\delta$. Selective Generation for Controllable Language Models extends this kind of risk control to generated answers by judging correctness with entailment. Both apply to whole instances whose abstain option is an explicit non-answer. Both assume calibration and test data come from one distribution.
Our proposal differs in three ways. Abstention is per edit and means returning the source span. Risk is the false-correction rate among accepted edits. The guarantee is conditional on an error-density group, and the group is estimated from the input itself. Within such a group the base rate $\pi$ is roughly constant, so a fixed margin is close to correct there.
Research Program
Edit-level selective correction. We take a base corrector's output and split it into individual edits with ERRANT-style alignment. Each edit receives a relative score $\Delta(e)$. We study three choices of score: the corrector's own log-probability gain, a bidirectional masked-language-model gain in the style of the reranker paper, and a learned calibrator. The selection rule accepts $e$ when $\Delta(e) > t_k$, where $k$ is the document's error-density group.
We estimate density without labels, as the document's mean sentence-level error probability. That probability comes from a binary error detector of the kind used as an upfront filter in The AIP-Tohoku System at the BEA-2019 Shared Task. Here the detector never blocks generation. It only shifts the margin. This addresses the recall loss that The Asymmetric Cost of False Alarms in Error Correction attributes to hard filtering.
Guarantees under within-document dependence. Edits in the same document are not independent, so a naive binomial bound over edits would be too optimistic. To set each $t_k$, we sample one candidate edit uniformly per calibration document. For each candidate threshold, we compute the empirical false-correction rate among the sampled edits that pass it. We pick the smallest threshold whose binomial upper confidence bound stays below the target $\alpha$, following the SGR inversion. We also report the less conservative alternative, which uses all edits with a cluster bootstrap, so the cost of strictness is visible. Correctness of an edit is judged against gold annotations. Edits that match any reference count as correct. Edits that are unmatched but judged acceptable by a second annotator pass on a held-out subset are reported separately. This addresses the problem that, as SGen notes for exact match in QA, scoring only against references undercounts valid answers.
Where the gain comes from. We separate three effects: adding per-group margins at all, estimating the groups correctly, and attaching a bound. Each is isolated by an ablation below.
Baselines
The naive reference point is the base corrector with no selection. We use two base correctors: a T5-base seq2seq model, and a Gemma-2 9B model trained with the minimal-edit schedule of Adapting LLMs for Minimal-edit Grammatical Error Correction. The second is the strongest available generator built to avoid over-correction through training alone. That paper reports a single-model best on the BEA-19 test set, but no reported F0.5 number was found on Lacuna for that system, so we will reproduce it.
The strongest existing thresholding method is the Bidirectional Transformer Reranker with a global acceptance threshold tuned on CoNLL-2013. Its paper reports 71.27 $F_{0.5}$ on BEA and 65.47 $F_{0.5}$ on CoNLL-14 for T5-base plus the reranker (Bidirectional Transformer Reranker for Grammatical Error Correction). We also run Correction Acceptability Discrimination, which reports an average gain of 1.01 $F_{0.5}$ across 13 systems on BEA-2019 (Improving Grammatical Error Correction by Correction Acceptability Discrimination). As a zero-shot reference, we include GPT-2 delta scoring, which reports 52.92 $F_{0.5}$ on CoNLL-2014.
All selection methods are applied on top of the same base outputs and use the same calibration documents. Each gets an equal threshold-search budget, one scalar per method per group count.
The closest competitor to our method is a global margin tuned to hit the target precision on the pooled development set. We run it both with and without the SGR bound. The SGR-bound version is exactly selective classification transferred to correction with no prior adjustment.
Two ablations isolate the key ingredient. In the first, groups are formed from gold CEFR level instead of the estimated density. This is an oracle that bounds what grouping can achieve. In the second, groups are formed at random, which tests whether any gain is just extra free parameters. Our method beats the global margin if it meets two conditions in the IID setting. First, it keeps per-group false-correction rates at or below $\alpha$ in every proficiency bucket, while the global method violates $\alpha$ in at least one bucket. Second, at matched pooled precision, it achieves equal or higher pooled recall. We also report BEA test $F_{0.5}$ to compare with the reranker's 71.27. We do not claim a win on pooled $F_{0.5}$ alone.
Why not just…?
Why not just tune one global threshold for the precision you want? This is the real threat. If error density barely changes the edit-precision curve, it will match us. The evidence for our view is structural rather than empirical so far: the prior term in the odds equation above. The file contains no result broken down by proficiency, so this is untested. Our first experiment plots precision against the margin separately for each CEFR bucket of the BEA dev data. If those curves coincide, the per-group idea fails. In that case we would report only the edit-level guarantee, as a smaller contribution.
Why not just use a better confidence score, such as a learned calibrator or self-evaluation? Towards Improving Selective Prediction Ability of NLP Systems shows that raw maximum probability is overconfident and that calibrators using difficulty and surface features cut the area under the risk-coverage curve by up to 15.81% in-distribution. Adaptation with Self-Evaluation to Improve Selective Prediction in LLMs shows learned self-evaluation beating likelihood, with AUROC rising from 74.61% to 80.25% on CoQA. Both approaches are compatible with ours, and a calibrator that is given document error density as a feature could absorb the prior on its own. We test this directly. We train the calibrator with and without the density feature, and then with and without group-conditional thresholds. If the calibrator with the density feature matches our method, the finding becomes "the missing variable is the writer's base rate," whichever mechanism carries it. That is still the claim we care about.
Why not just train the model to be conservative? The minimal-edit schedule bakes one precision-recall balance into the weights. Its authors note that it is sensitive to learning-rate tuning, and it offers no dial at inference time. We apply selection on top of that model. If it already holds $\alpha$ in every bucket with no selection, our method adds nothing for that generator, and we will say so.
Why not just gate with an error detector? Hard gating loses subtle errors permanently, as the Asymmetric Cost analysis documents. Our method uses the same detector only to choose a margin. We compare per-bucket recall between the gated pipeline and our pipeline at matched precision.
Proposed Experiments
The calibration and test data are the W&I+LOCNESS development data, split by document into calibration and evaluation halves and stratified into A, B, C, and native buckets. We also use the full BEA-2019 test set through the official scorer for pooled $F_{0.5}$, FCE, and CoNLL-2014. Targets are $\alpha \in \{0.1, 0.2, 0.3\}$ with $\delta = 0.05$.
The first decisive check is the per-bucket precision-versus-margin curves described above. The second check is coverage of the guarantee: over 200 random calibration and evaluation splits, the per-bucket false-correction rate should exceed $\alpha$ in at most about 5% of runs for our method. For the global margin, we expect frequent violations on the C and native buckets. The third check is recall at fixed $\alpha$ on the A and B buckets compared with the global margin. The fourth check is a shift test: we calibrate on FCE and evaluate on CoNLL-2014 and BEA buckets. Here we expect the global guarantee to fail and the density-conditioned one to degrade more gracefully, though not to hold exactly, since exchangeability within groups is still assumed.
We report risk-coverage curves at the edit level, the area under them, and pooled $F_{0.5}$. Pooled $F_{0.5}$ is a secondary metric, because a method can raise it while still violating the false-alarm budget for the writers who need protection most.
References
- Language Model Based Grammatical Error Correction without Annotated Training Data
- The Unreasonable Effectiveness of Transformer Language Models in Grammatical Error Correction
- Bidirectional Transformer Reranker for Grammatical Error Correction
- Improving Grammatical Error Correction by Correction Acceptability Discrimination
- Selective Classification for Deep Neural Networks
- Selective Generation for Controllable Language Models
- The AIP-Tohoku System at the BEA-2019 Shared Task
- Adapting LLMs for Minimal-edit Grammatical Error Correction
- Towards Improving Selective Prediction Ability of NLP Systems
- Adaptation with Self-Evaluation to Improve Selective Prediction in LLMs