Large language models identify native language from English writing
Inferring L1 Backgrounds from L2 English with LLM Token Probabilities
Computation and Language
Summary
This paper looks at how to figure out a person's first language (L1) just by reading their English writing (L2). The researchers used large language models (LLMs) to guess which language someone speaks natively by seeing how likely the model thinks the text is, given the guess. They tested different-sized models on several datasets and found that checking token probabilities works better than just asking the model directly. The biggest model gave the best results, showing that language models hold useful clues about a writer's background.
What this means in practice
- •For language testing companies: Improve automated detection of test takers' native languages from their English answers, enabling more personalized assessment feedback.$Commercial implications: Enables enhanced language assessment products that identify test takers' backgrounds for tailored feedback and scoring.
- •For language learning apps: Identify learners' first languages to customize English learning exercises for better effectiveness based on typical errors.
Authors
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 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.