Do LLMs See the Errors Behind Their Native-Language Guesses?

Large language models can now name an essay writer's first language from their English with over 90% accuracy. The open question is whether they get there by noticing the right things. Native language identification is the task of inferring a writer's first language from text they wrote in a second language. It rests on a linguistic claim: learners carry habits from their first language into the second, such as dropping articles when their first language has none. If a model truly uses those habits, it should also answer the much easier question of whether a given sentence drops an article. This proposal tests that implication directly. A deterministic error-annotation tool supplies exact ground truth for thousands of such easy questions. We then measure how often a model that gets the hard question right (which first language?) also gets the easy questions right (is this error actually here?).

The measurement matters because current results cannot tell real transfer reasoning apart from memorized benchmarks or topic cues. Zero-shot GPT-4 reaches 91.7% accuracy on TOEFL11, yet the same model drops to an F1 of 0.31 on Italian learner text. The authors of both studies suspect data contamination. A consistency test grounded in verifiable errors gives a way to separate the two explanations. It also suggests a fix that we test: let the model classify only from evidence it has verified, one small text chunk at a time.

Core Claim

We claim that LLM native-language classifiers show a hard-to-easy inconsistency. Their correct first-language predictions are often not backed by any ability to detect the specific transfer errors that a rule-based annotator finds in the same essay. We expect the gap to be largest exactly where contamination is suspected: high accuracy on TOEFL11 alongside low evidence-consistency.

We further claim that an evidence-gated classifier will trade a small amount of in-domain accuracy for better cross-corpus and non-English robustness. In this classifier the model first answers easy error queries over short chunks of the essay. The answers are checked against the rule-based annotator, and the final label is conditioned only on the verified error profile. If gating does not help, the consistency measurement still stands on its own as a diagnostic.

What Already Exists and Where This Differs

Two studies supply the motivating gap, and both treat the LLM as an end-to-end text-to-label classifier.

Multilingual Native Language Identification with Large Language Models evaluates zero-shot and fine-tuned GPT-4 across English, Italian, Norwegian and Portuguese corpora and documents the English advantage. Leveraging Open-Source Large Language Models for Native Language Identification shows that zero-shot open models range from 13.6% to 75.8% on TOEFL11, and that QLoRA fine-tuning (training small adapter weights on a 4-bit model) closes the gap. Neither study asks whether the model can locate the errors that would justify its answer. That is the question we add.

The measurement design comes from Can Large Language Models Always Solve Easy Problems if They Can Solve Harder Ones?. That paper builds ConsisEval, a benchmark of paired problems in which solving the easy problem takes a strict subset of the steps for the hard one. It defines a consistency score as the probability of solving the easy problem given the hard one was solved, reporting 92.2% for GPT-4 Turbo and 50–70% for 7B models. ConsisEval pairs are hand-built from math, code and instruction-following problems. We build pairs automatically from learner corpora, where the easy half has deterministic ground truth.

Ground truth comes from ERRANT, described in Automatic Annotation and Evaluation of Error Types for Grammatical Error Correction. ERRANT aligns an original sentence with its correction and applies about 50 ordered rules to assign 55 error types, such as a missing determiner or a wrong preposition. Human raters judged its types "Good" or "Acceptable" in 96.3% of cases.

Russian Learner Corpus: Towards Error-Cause Annotation for L2 Russian is a constraint as much as a resource. Its Russian adaptation reaches only 0.58 accuracy, with 0.10 recall on spelling errors. We therefore restrict Russian queries to its high-precision tags, such as government errors (precision 0.91), and treat Russian as a stress test rather than a primary benchmark.

Adapting Grammatical Error Correction Based on the Native Language of Writers with Neural Network Joint Models establishes that error distributions depend on the writer's first language. It uses that dependence to improve correction, not to audit a classifier.

The chunked verification step borrows from When Splitting Makes Stronger. That paper shows divide-and-conquer prompting helps by solving sub-tasks in short, isolated contexts, which shields them from drift. It also warns that the method needs nearly independent sub-tasks. That warning is why chunk boundaries become a design question here.

Research Program

The benchmark. The first artifact is an evidence-consistency benchmark built from corpora that carry both gold corrections and first-language labels.

The FCE corpus is the primary source, because it has manual corrections and is already used for native-language identification. For each essay, the hard item is the essay-level question: which first language? The easy items come from ERRANT edits in that essay. Each asks about one short text span: is there a missing determiner here, is this preposition wrong, which token has a noun-number error? The easy items are balanced with matched negatives drawn from error-free spans.

We prioritize error types with known transfer associations, such as articles and prepositions, and closed-class checks in the spirit of Dickinson and Meurers ( Detecting Errors in Part-of-Speech Annotation). We also add a model-specific easy item: for any error type the model cites in its own explanation, can it point to an instance?

TOEFL11 has no gold corrections. For it we run a grammatical error correction system and then ERRANT. We estimate the noise this pipeline introduces by running the same automatic pipeline on FCE and comparing it to gold-correction ERRANT.

The diagnostic. The second artifact is the measurement itself. For model $m$, the evidence-consistency score is $P(\text{easy items on essay } d \text{ correct} \mid \text{L1 of } d \text{ correct})$. We report it per error type and per first language, and compare it against the unconditional easy-item accuracy. The comparison matters. If a model's easy-item accuracy is the same whether or not it got the label right, the label is not resting on the evidence.

The evidence-gated classifier. The third artifact splits each essay into chunks. The model answers the error queries for each chunk in an isolated context, and its answers are checked against ERRANT. A second call then predicts the first language from the verified error-type profile plus the chunks containing verified errors. Errors the model fails to see are withheld. This deliberately restricts the classifier to evidence it demonstrably perceives.

How chunks are chosen. This is where the segment regularity–accuracy tradeoff from image partitioning enters. It is a secondary design axis, not the core claim. Superpixel methods such as SCALP balance compact, uniform regions against boundaries that snap to image contours. One-dimensional piecewise partitions of this kind, in the spirit of discrete Mumford–Shah ( Discrete approximation of the Mumford-Shah functional in dimension two), can be solved exactly by dynamic programming.

We choose chunk boundaries $B$ over a token sequence to minimize

$$ E(B) = \lambda \sum_{c \in B} (|c| - L)^2 + \sum_{c \in B} a(c), $$

where:

  • $|c|$ is the length of chunk $c$ in tokens;
  • $L$ is a target length;
  • $a(c)$ counts the dependency arcs and edit spans severed at the right boundary of $c$;
  • $\lambda$ sets how much uniform chunk length matters relative to not cutting grammatical links.

Short chunks should reduce the "redundant information" distraction that ConsisEval identifies. Cutting through a clause can destroy the context an agreement error needs. Sweeping $\lambda$ traces that curve. Sentence-level chunking is the obvious competitor and may well win. If it does, we report that and drop the optimizer.

Baselines

Naive reference points. The do-nothing reference is the majority class and chance accuracy on each corpus.

Zero-shot LLM baselines. Zero-shot prompting uses the same models with an expert-linguist persona and chain-of-thought explanation, following the protocol of Multilingual Native Language Identification with Large Language Models. This is also the condition whose explanations we audit. Reported results for it are 0.83 macro F1 for GPT-4 on TOEFL11, 0.31 on Italian VALICO, and 91.7% accuracy on TOEFL11 in Leveraging Open-Source Large Language Models for Native Language Identification.

Strongest in-domain competitor. The strongest competitor is end-to-end QLoRA fine-tuning of an open 7B model. Fine-tuned Gemma 7B reports 90.3% accuracy on TOEFL11 and 96.6% on ICLE-NLI (Ng and Markov). Fine-tuned GPT-4 reports 0.82 macro F1 on FCE and 0.92 on TOEFL11 (Goswami et al.). We found no reported result on Lacuna for open-source fine-tuned models on FCE native-language identification, so we will produce that number ourselves.

The fine-tuned model and the gated classifier use the same base model, the same training essays, and the same number of tuning trials over learning rate and adapter rank. The gated classifier's second-stage call is fine-tuned on the same essays.

Beating fine-tuning in-domain is not the goal. We count it as beaten if both of the following hold:

  • In cross-corpus transfer, the gated system's macro F1 exceeds the fine-tuned model's by a margin outside bootstrap confidence intervals.
  • In-domain, the gated system stays within roughly three F1 points.

Cross-corpus transfer means training on TOEFL11 and testing on ICLE-NLI over their shared first languages: French, German, Italian and Spanish.

Non-LLM baselines. We run two. The first is the character string-kernel classifier of Can characters reveal your native language?, which reports 85.3% on TOEFL11 and the best cross-corpus generalization in the file. The second is a logistic regression on ERRANT error-type counts alone, which isolates the rule-derived profile without any language model.

Ablations. Three ablations isolate the key ingredient, verification:

  • the gated pipeline with ERRANT verification removed, so the model's own unverified error claims are passed through;
  • the pipeline given ERRANT's full profile directly, so the model never has to perceive errors;
  • the chunking variants: whole essay, sentences, fixed windows, and the regularized partition.

Why not just…?

Why not just ask the LLM to explain its prediction? Self-explanations are exactly what we audit, so this alternative is one of our conditions rather than a rival. Evaluating Intermediate Reasoning of Code-Assisted Large Language Models for Mathematics shows that models reach correct answers through unsound intermediate steps. A fluent explanation citing "article omission" is therefore not evidence the model found one. The evidence-consistency score tests whether cited errors can be located. If explanations prove highly consistent, the gating method is unnecessary, and we will say so.

Why not just fine-tune with QLoRA and accept the black box? In-domain this is likely to win, and we expect it to. Its weakness is suspected reliance on corpus-specific vocabulary and topic, which the cross-corpus split exposes. The test is real: if fine-tuned models transfer from TOEFL11 to ICLE as well as the gated model does, our robustness claim fails. In that case the contribution shrinks to the diagnostic.

Why not just train a linear classifier on ERRANT error counts? This is the most serious threat. It is interpretable, cheap, and grounded in the same rules. If it matches the gated LLM cross-corpus, the LLM adds nothing beyond reading ERRANT output. The ablation that hands the model ERRANT's full profile answers part of this. The gated model's edge, if any, must come from using the verified chunks themselves, for example word-order patterns that ERRANT lumps into its uninformative OTHER category. We report the linear classifier's numbers alongside ours without hedging.

Why not just chunk by sentences? Sentences already respect most edit spans, so the regularized partition may buy nothing. We include sentence chunking as a baseline and keep the partition optimizer only if it improves easy-item accuracy at matched average chunk length. Otherwise it is dropped from the method.

Decisive Experiments

The diagnostic experiment. We compute evidence-consistency on FCE for open 7B–70B models and GPT-4-class models, under zero-shot and fine-tuned settings. The prediction is that consistency falls well below the roughly 92% that strong models reach on ConsisEval. It should be lowest for fine-tuned models, which score high in-domain but may detect errors no better than their zero-shot versions. A model whose easy-item accuracy is the same on essays it labels correctly and incorrectly would directly confirm that labels are decoupled from evidence.

The contamination probe. We compare the gap between label accuracy and evidence-consistency on TOEFL11 against the same gap on FCE and on RLC's high-precision tags. A gap that is much wider on TOEFL11 supports memorization over transfer reasoning. We report the noise estimate from the automatic correction pipeline so that a wider gap cannot be blamed on worse ground truth.

The method test. The gated classifier is compared against all baselines in-domain, on TOEFL11-to-ICLE transfer, and on Italian VALICO with Italian-adapted closed-class queries. The headline result is cross-corpus macro F1 with bootstrap intervals.

The chunking sweep. We report easy-item accuracy as a function of chunk length and severed dependencies across $\lambda$, with sentence chunking marked on the same curve.

What would falsify each claim. The diagnostic claim fails if evidence-consistency is high everywhere. The method claim fails if gating does not beat fine-tuning cross-corpus, or if the ERRANT-count linear classifier matches it.