Learning the Wrong Lessons: Syntactic-Domain Spurious Correlations in Language Models
Not on the map. Why?
Abstract (arXiv)
For an LLM to correctly respond to an instruction it must understand both the semantics and the domain (i.e., subject area) of a given task-instruction pair. However, syntax can also convey implicit information Recent work shows that syntactic templates -- frequent sequences of Part-of-Speech (PoS) tags -- are prevalent in training data and often appear in model outputs. In this work we characterize syntactic templates, domain, and semantics in task-instruction pairs. We identify cases of spurious correlations between syntax and domain, where models learn to associate a domain with syntax during training; this can sometimes override prompt semantics. Using a synthetic training dataset, we find that the syntactic-domain correlation can lower performance (mean 0.51 +/- 0.06) on entity knowledge tasks in OLMo-2 models (1B-13B). We introduce an evaluation framework to detect this phenomenon in trained models, and show that it occurs on a subset of the FlanV2 dataset in open (OLMo-2-7B; Llama-4-Maverick), and closed (GPT-4o) models. Finally, we present a case study on the implications for safety finetuning, showing that unintended syntactic-domain correlations can be used to bypass refusals in OLMo-2-7B Instruct and GPT-4o. Our findings highlight two needs: (1) to explicitly test for syntactic-domain correlations, and (2) to ensure syntactic diversity in training data, specifically within domains, to prevent such spurious correlations.
Key facts. Cited by 6 papers in the map (data through 14 Oct 2026). Builds on 32 of its 44 references that are in the map. First posted on arXiv 25 Sep 2025.
Builds on
32 of 44 references.
References · 32
- 2019Invariant Risk Minimizationcited by 1,854
- 2020The Many Faces of Robustness: A Critical Analysis of Out-of-Distribution Generalizationcited by 1,850
- 2020Don't Stop Pretraining: Adapt Language Models to Domains and Taskscited by 1,565
- 2018ImageNet-trained CNNs are biased towards texture; increasing shape bias improves accuracy and robustnesscited by 1,432
- 2019Distributionally Robust Neural Networks for Group Shifts: On the Importance of Regularization for Worst-Case Generalizationcited by 1,247
- 2024Tulu 3: Pushing Frontiers in Open Language Model Post-Trainingcited by 1,053
- 2019Right for the Wrong Reasons: Diagnosing Syntactic Heuristics in Natural Language Inferencecited by 876
- 2023The Flan Collection: Designing Data and Methods for Effective Instruction Tuningcited by 739
- 2018Annotation Artifacts in Natural Language Inference Datacited by 671
- 2024Dolma: an Open Corpus of Three Trillion Tokens for Language Model Pretraining Researchcited by 483
- 2024Safety Alignment Should Be Made More Than Just a Few Tokens Deepcited by 472
- 20242 OLMo 2 Furiouscited by 340
20 more
- 2021Do Prompt-Based Models Really Understand the Meaning of their Prompts?cited by 326
- 2020Environment Inference for Invariant Learningcited by 306
- 2018Hypothesis Only Baselines in Natural Language Inferencecited by 295
- 2024WildTeaming at Scale: From In-the-Wild Jailbreaks to (Adversarially) Safer Language Modelscited by 223
- 2019Learning De-biased Representations with Biased Representationscited by 199
- 2022On Feature Learning in the Presence of Spurious Correlationscited by 145
- 2023Domain Specialization as the Key to Make Large Language Models Disruptive: A Comprehensive Surveycited by 135
- 2023A Theoretical Understanding of Shallow Vision Transformers: Learning, Generalization, and Sample Complexitycited by 77
- 2023Have LLMs Advanced Enough? A Challenging Problem Solving Benchmark For Large Language Modelscited by 77
- 2023Evaluating the Zero-shot Robustness of Instruction-tuned Language Modelscited by 66
- 2024Detection and Measurement of Syntactic Templates in Generated Textcited by 44
- 2024On the Worst Prompt Performance of Large Language Modelscited by 38
- 2025Idiosyncrasies in Large Language Modelscited by 33
- 2024Financial Statement Analysis with Large Language Modelscited by 31
- 2025The Jailbreak Tax: How Useful are Your Jailbreak Outputs?cited by 28
- 2025Knowledge Distillation and Dataset Distillation of Large Language Models: Emerging Trends, Challenges, and Future Directionscited by 26
- 2022Compositionality as Lexical Symmetrycited by 8
- 2025Who Taught You That? Tracing Teachers in Model Distillationcited by 8
- 2025Domain Regeneration: How well do LLMs match syntactic properties of text domains?cited by 6
- 2024The Rosetta Paradox: Domain-Specific Performance Inversions in Large Language Modelscited by 2
Built on by
Citing papers per year: 2025: 1; 2026: 5.
6 papers.
- 2026StoryScope: Investigating idiosyncrasies in AI fictioncited by 9
- 2026Differential syntactic and semantic encoding in LLMscited by 7
- 2025CoSPlan: Corrective Sequential Planning via Scene Graph Incremental Updatescited by 1
- 2026SCRuB: Social Concept Reasoning under Rubric-Based Evaluationcited by 1
- 2026Exposing the Unsaid: Visualizing Hidden LLM Bias through Stochastic Path Aggregationcited by 0
- 2026Mood Matters: How Syntactic Sensitivity Undermines Safety Alignmentcited by 0
- 2026Mood Matters: How Syntactic Sensitivity Undermines Safety Alignment5 Aug 2026
- 2026SCRuB: Social Concept Reasoning under Rubric-Based Evaluation7 May 2026
- 2026Exposing the Unsaid: Visualizing Hidden LLM Bias through Stochastic Path Aggregation24 Apr 2026
- 2026StoryScope: Investigating idiosyncrasies in AI fiction3 Apr 2026
- 2026Differential syntactic and semantic encoding in LLMs8 Jan 2026
- 2025CoSPlan: Corrective Sequential Planning via Scene Graph Incremental Updates11 Dec 2025