Inferring L1 Backgrounds from L2 English with LLM Token Probabilities

Ahmet Yavuz Uluslu, Mark Gales, Kate Knill, Gerold SchneiderarXiv 2026

TL;DR

Researchers have found a way to significantly boost the ability of Large Language Models (LLMs) to identify a non-native speaker’s first language (L1) by looking at internal token probabilities rather than just asking the model for a label. By scoring a learner's text as a continuation of different language-specific prompts, the team achieved new state-of-the-art results across multiple benchmarks, proving that LLMs possess a deep, latent understanding of how native languages "leak" into second-language production.

What Problem Does This Paper Address?

Native Language Identification (NLI) is the task of determining a speaker's first language based on their writing or speech in a second language (usually English). This is possible because of cross-linguistic influence: the grammatical structures, vocabulary choices, and even errors of our native tongue often leave a distinct "fingerprint" on our L2 production.

While LLMs have recently been used for NLI, most researchers simply prompt the model to "classify this text." However, direct classification can be hit-or-miss, especially for smaller models (like Llama 8B) that might not have been fine-tuned for this specific task. The authors wanted to see if the model's internal statistical engine—the probabilities it assigns to every word it sees—contains a more reliable signal for NLI than its explicit generated answers.

Methods

The authors propose a token-probability scoring approach. Instead of asking the model "What is the L1?", they provide a prefix prompt that sets a hypothesis, such as:

"An English learner whose first language is Spanish wrote the following text: [Learner Text]"

The model then calculates the log-probability of the entire learner text occurring under that specific prefix. This process is repeated for every candidate L1 (e.g., French, Chinese, Arabic). The language prefix that results in the highest probability for the text is predicted as the L1.

This method is mathematically similar to forensic likelihood ratios, where evidence is weighed against competing hypotheses. To ensure the model wasn't cheating by looking at "shortcuts" (like a student mentioning their home city), the researchers masked named entities, nationalities, and non-English words before processing.

Datasets

The study evaluated the approach on three distinct datasets covering nine L1 backgrounds (Arabic, Chinese, French, German, Hindi, Italian, Japanese, Spanish, and Turkish):

  1. TOEFL9: A standard benchmark consisting of 900 essays from the TOEFL11 corpus.
  2. Write & Improve 2024: A more recent corpus of 450 essays annotated at various proficiency levels.
  3. BULATS-L1: A dataset of 270 spoken English transcripts, providing a test for how well the method generalizes from written essays to transcribed speech.

Key Insights and Ideas

  • The "Smaller Model" Breakthrough: The most striking insight is how much this method helps smaller models. Using direct classification, the Llama 3.1 8B model performed poorly. However, using token-probability scoring, the 8B model's accuracy nearly doubled, sometimes matching or exceeding the performance of the much larger 70B model using standard classification.
  • Latent Knowledge vs. Explicit Reasoning: LLMs seem to "know" the statistical patterns of L1-influenced English at a level they can't always access through a chat interface. The model's internal probability distribution is a richer source of information than its text-generation layer.
  • Data Efficiency: Accuracy improves as more text is provided, but the "sweet spot" for gains is between 50 and 150 words. Even with relatively short snippets, the L1 signal is remarkably strong.
Figure 1: Accuracy as a function of input length for Llama 3.1 8B and 70B using language-prefix likelihood scoring (solid lines) and direct classification (dashed lines). Panels show results on Write & Improve 2024, TOEFL9, and BULATS-L1.

Key Results

The token-probability approach achieved new State-of-the-Art (SoTA) results across all three benchmarks using the Llama 3.1 70B model, outperforming previous methods that relied on GPT-4o.

Dataset Previous SoTA This Approach (70B)
TOEFL9 95.1% 96.0%
W&I 2024 88.9% 92.0%
BULATS-L1 83.3% 84.1%

(Data extracted from Table 1 in the paper)

Qualitatively, the researchers analyzed specific sentences to see which words drove the L1 prediction. For example, in a Turkish-labeled essay, the model assigned higher probabilities to certain unidiomatic word usages (like the word "mingle") when conditioned on a Turkish L1 prefix compared to others.

Figure 2: Sentence-level ranking and word-level log-probability deviations from the nine-L1 mean (in nats). The upper panel sorts candidate L1s by total sentence deviation (Dl), and the lower panel shows word-level deviations (Dl,j).

Limitations and Future Work

  • Computational Cost: Unlike direct classification, which reads the text once, this method requires the model to evaluate the text multiple times (once for each candidate L1). While this can be batched, it is inherently more computationally expensive.
  • Scope: The study focused exclusively on English as the second language. It remains to be seen if these gains hold for other L2s (e.g., identifying the L1 of someone learning French).
  • Interpretability: While the paper shows that it works, future work is needed to deeply understand which linguistic features (syntax, morphology, or lexicon) the LLM is actually latching onto when it assigns these probabilities.

Summary updated

BibTeX
@misc{uluslu2026inferring,
  author = {Ahmet Yavuz Uluslu and Mark Gales and Kate Knill and Gerold Schneider},
  title = {{Inferring L1 Backgrounds from L2 English with LLM Token Probabilities}},
  year = {2026},
  eprint = {2610.23309},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2610.23309},
}
Figure