arXiv:2610.23309cs.CLOct 2026

Manuscript Offprint

arXiv:2610.23309

Inferring L1 Backgrounds from L2 English with LLM Token Probabilities

Ahmet Yavuz Uluslu, Mark Gales, Kate Knill, Gerold Schneider

Abstract

Native language identification (NLI) infers a non-native speaker's first language (L1) from their second language (L2) production. We investigate a token probability approach that scores each text sample as a continuation of a prompt prefix specifying a candidate L1, then predicts the candidate with the highest score. We evaluate our approach using Llama 3.1 8B and 70B on three datasets: TOEFL9, Write & Improve 2024, and BULATS-L1. We compare its performance with previous prompting-based classification approaches. Token-probability scoring substantially improves on direct classification, particularly with the 8B model, while the 70B model achieves state-of-the-art performance across all datasets. Our results indicate that pretrained LLMs' token probabilities contain information useful for distinguishing L1 backgrounds from L2 English production.

1 Introduction

Native Language Identification (NLI) is the task of inferring a non-native speaker's first language (L1) from their production in a second language (L2). NLI is motivated in part by cross-linguistic influence: a learner's L1 can shape their L2 production and may leave patterns associated with that background (Jarvis and Pavlenko, 2008). Strong performance by large language models (LLMs) on related tasks, such as grammatical error detection and multilingual translation, has motivated interest in their use for NLI (Goswami et al., 2024). Recent studies have explored zero-shot, prompting-based classification approaches to NLI (Zhang and Salle, 2023; Ng and Markov, 2025; Goswami et al., 2025), with some reporting state-of-the-art (SoTA) results on NLI benchmarks. More recent work has also shown that editorial corrections to learner text can change the probability an LLM assigns to its predicted L1 label (Uluslu et al., 2026a). This motivates us to examine the token-level probabilities the model assigns to the essay under different contexts, rather than only its generated answer.

We investigate a token-probability approach in which a pretrained LLM scores an essay under prompts specifying different candidate L1 backgrounds. The model predicts the candidate whose prompt gives the essay the highest score. We compare this approach with direct LLM classification and examine how performance changes with the amount of text available. We evaluate our approach using Llama 3.1 8B Instruct and Llama 3.1 70B Instruct (Grattafiori et al., 2024) on three datasets: TOEFL9 (Blanchard et al., 2013), Write & Improve 2024 (Nicholls et al., 2024), and BULATS-L1 (Uluslu et al., 2026b).

Our findings show that token-probability scoring substantially improves on direct classification, particularly with the 8B model. This is notable given prior findings that models of this scale may require task-specific fine-tuning to achieve competitive performance on NLI (Ng and Markov, 2025). The 70B model achieves SoTA performance across all three datasets in the evaluation settings considered. Our results show that token probabilities conditioned on candidate-L1 prefixes provide a useful signal for distinguishing L1 backgrounds from L2 English production.