Inferring L1 Backgrounds from L2 English with LLM Token Probabilities
Authors: Ahmet Yavuz Uluslu, Mark Gales, Kate Knill, Gerold Schneider
Organizations: ALTA Institute, Department of Engineering, University of Cambridge · Department of Computational Linguistics, University of Zurich · PRODAFT, Yverdon-les-Bains, Switzerland
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 and 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.
Figures & tables
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.
Dataset
Previous SoTA
Our approach
TOEFL9
95.1% ( Zhang and Salle, 2023 )
96.0%
W&I 2024
88.9% ( Uluslu et al., 2026a )
92.0%
BULATS-L1
83.3% ( Uluslu et al., 2026b )
84.1%
Table 1: Full-text accuracy compared with previously reported results. Our approach uses L1-prefix probability scoring with Llama 3.1 70B.
Appendix figures & tables1 asset
Supplementary material from the paper’s appendix.
Appendix
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 ).