In plain words: Language models sometimes drag irrelevant details from a prompt into their answer, so mentioning a favorite color can pull in unrelated ideas like school buses. A new test for this behavior found significant leakage in 13 flagship models, in many languages and settings.
Abstract · Does Liking Yellow Imply Driving a School Bus? Semantic Leakage in Language Models
Despite their wide adoption, the biases and unintended behaviors of language models remain poorly understood. In this paper, we identify and characterize a phenomenon never discussed before, which we call semantic leakage, where models leak irrelevant information from the prompt into the generation in unexpected ways. We propose an evaluation setting to detect semantic leakage both by humans and automatically, curate a diverse test suite for diagnosing this behavior, and measure significant semantic leakage in 13 flagship models. We also show that models exhibit semantic leakage in languages besides English and across different settings and generation scenarios. This discovery highlights yet another type of bias in language models that affects their generation patterns and behavior.
Hila Gonen, Terra Blevins, Alisa Liu, Luke Zettlemoyer, Noah A. Smith
arXiv:2408.06518 · cs.CL · submitted Aug 12, 2024 · updated May 15, 2025
abstract · pdf · html