LongTail-Swap: benchmarking language models' abilities on rare words
Robin Algayres, Charles-Éric Saint-James, Mahi Luthra, Jiayi Shen, Dongyan Lin, Youssef Benchekroun, Rashel Moritz, Juan Pino, Emmanuel Dupoux
TL;DR
LT-Swap addresses a blind spot in LM evaluation by measuring rare-word generalization in the long tail, using a dataset-dependent, zero-shot framework built from BabyLM corpora. It combines three subtasks—WordSwap (semantic), InflectionSwap (syntactic inflection), and AgreementSwap (syntactic agreement)—into quadruplets generated and filtered with a large language model, enabling sentence-pair discrimination without finetuning. The results show a pronounced frequency effect, with greater cross-architecture variation in the long tail, and demonstrate that more pretraining data improves rare-word understanding; a simple RAG-like prefix further boosts semantic scores, indicating in-context learning capabilities. The work provides a public framework for generating LT-Swap benchmarks and highlights the need to evaluate long-tail word learning in data-efficient LM research.
Abstract
Children learn to speak with a low amount of data and can be taught new words on a few-shot basis, making them particularly data-efficient learners. The BabyLM challenge aims at exploring language model (LM) training in the low-data regime but uses metrics that concentrate on the head of the word distribution. Here, we introduce LongTail-Swap (LT-Swap), a benchmark that focuses on the tail of the distribution, i.e., measures the ability of LMs to learn new words with very little exposure, like infants do. LT-Swap is a pretraining corpus-specific test set of acceptable versus unacceptable sentence pairs that isolate semantic and syntactic usage of rare words. Models are evaluated in a zero-shot fashion by computing the average log probabilities over the two members of each pair. We built two such test sets associated with the 10M words and 100M words BabyLM training sets, respectively, and evaluated 16 models from the BabyLM leaderboard. Our results not only highlight the poor performance of language models on rare words but also reveal that performance differences across LM architectures are much more pronounced in the long tail than in the head. This offers new insights into which architectures are better at handling rare word generalization. We've also made the code publicly avail
