Failure of contextual invariance in large language models
Not on the map. Why?
Abstract (arXiv)
Standard evaluation practices assume that large language model (LLM) outputs are stable when prompts are embedded in contextually equivalent discourses. Here, we test this assumption in the setting of gender inference. Using a controlled pronoun selection task, we introduce minimal, theoretically uninformative discourse context and find that this induces large, systematic shifts in model outputs. Correlations with cultural gender stereotypes, present in decontextualized settings, weaken or disappear once context is introduced, while theoretically irrelevant features, such as the gender of a pronoun for an unrelated referent, become the most informative predictors of model behavior. A Contextuality-by-Default analysis reveals that, in 19--52% of cases across models, this dependence persists after accounting for all marginal effects of context on individual outputs and cannot be attributed to simple pronoun repetition. These findings show that LLM outputs violate contextual invariance even under near-identical syntactic formulations, with implications for bias benchmarking and deployment in high-stakes settings.
Key facts. Cited by 3 papers in the map (data through 7 Oct 2026). Builds on 17 of its 64 references that are in the map. First posted on arXiv 24 Mar 2026.
Builds on
17 of 64 references.
References · 17
- 2020Beyond Accuracy: Behavioral Testing of NLP models with CheckListcited by 979
- 2018Gender Bias in Coreference Resolutioncited by 438
- 2019Negated and Misprimed Probes for Pretrained Language Models: Birds Can Talk, But Cannot Flycited by 240
- 2024Emergent social conventions and collective bias in LLM populationscited by 115
- 2023Do LLMs Understand Social Knowledge? Evaluating the Sociability of Large Language Models with SocKET Benchmarkcited by 62
- 2024Bias in Language Models: Beyond Trick Tests and Toward RUTEd Evaluationcited by 41
- 2024Angry Men, Sad Women: Large Language Models Reflect Gendered Stereotypes in Emotion Attributioncited by 39
- 2022Quantifying Social Biases Using Templates is Unreliablecited by 38
- 2024Robust Pronoun Fidelity with English LLMs: Are they Reasoning, Repeating, or Just Biased?cited by 17
- 2023Multilingual large language models leak human stereotypes across language boundariescited by 12
- 2024WinoPron: Revisiting English Winogender Schemas for Consistency, Coverage, and Grammatical Casecited by 9
- 2025Colombian Waitresses y Jueces canadienses: Gender and Country Biases in Occupation Recommendations from LLMscited by 7
5 more
- 2015Is there contextuality in behavioral and social systems?cited by 5
- 2026Gender Dynamics and Homophily in a Social Network of LLM Agentscited by 5
- 2023Large Language Models Are Partially Primed in Pronoun Interpretationcited by 3
- 2025Exploring Gender Bias in Large Language Models: An In-depth Dive into the German Languagecited by 3
- 2025Gender Bias in Perception of Human Managers Extends to AI Managerscited by 2
Built on by
Citing papers per year: 2026: 3.
3 papers.
- 2026Machine individuality: Separating genuine idiosyncrasy from response bias in large language modelscited by 1
- 2026Auditing Question-Order Effects in Large Language Models with the QQ Equality: Mechanism Characterization and a Saturation Caveatcited by 1
- 2026Gender bias across LLMs is common and highly heterogeneouscited by 0
- 2026Gender bias across LLMs is common and highly heterogeneous29 Sep 2026
- 2026Auditing Question-Order Effects in Large Language Models with the QQ Equality: Mechanism Characterization and a Saturation Caveat19 Jul 2026
- 2026Machine individuality: Separating genuine idiosyncrasy from response bias in large language models18 Apr 2026