Learning the Wrong Lessons: Syntactic-Domain Spurious Correlations in Language Models
This paper demonstrates that language models can learn spurious correlations between syntactic templates and task domains, causing them to prioritize syntax over semantics, which degrades performance on knowledge tasks and creates safety vulnerabilities that can be exploited to bypass refusals.
Original paper licensed under CC BY 4.0 (http://creativecommons.org/licenses/by/4.0/). This is an AI-generated explanation of the paper below. It is not written or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer
The Big Idea: The "Uniform" Trap
Imagine you are training a student to be a detective. You show them thousands of cases. In every single case about geography (like "Where is Paris?"), the question is always asked in a very specific, fancy way: "Where exactly is [City] located?"
In every single case about food (like "What is eaten in Paris?"), the question is always asked differently: "What delicious dish is [City] famous for?"
The student learns to solve the problems, but they don't actually learn the facts. Instead, they learn a shortcut: "If the question sounds fancy and uses the word 'located,' the answer is a country. If it sounds like it's about taste, the answer is food."
This paper argues that Large Language Models (LLMs) are doing exactly this. They aren't just learning facts; they are memorizing the sentence structure (syntax) that usually goes with a specific topic (domain). When the structure changes, or when the topic changes but the structure stays the same, the models get confused or give the wrong answer.
The Experiment: Breaking the Pattern
The researchers created a "fake" training set to test this theory. They taught models to answer questions about pairs like "Paris" and "France."
They tested the models with four types of questions:
- Exact: The exact sentence they saw in training. (e.g., "Where is Paris located?")
- Synonym: Same meaning, different words. (e.g., "Whereabouts is Paris situated?")
- Antonym: Same sentence structure, but the words mean the opposite or make no sense. (e.g., "Where is Paris undefined?")
- Disfluent: The sentence structure is kept, but it's gibberish. (e.g., "Quickly sit Paris clouded?")
The Shocking Result:
When the researchers asked the "Gibberish" question ("Quickly sit Paris clouded?"), the model still answered "France."
Why? Because the model wasn't reading the meaning of the words. It was looking at the pattern (the "Uniform"). It saw the pattern it associated with "Geography" and immediately shouted "France," even though the sentence made no sense.
The "Spurious Correlation"
The paper calls this a Spurious Correlation.
- Real Learning: Understanding that Paris is in France because of geography.
- Spurious Correlation: Believing that "France" is the answer because the sentence looks like a geography question.
It's like a security guard who only lets people in if they are wearing a red hat. If a criminal puts on a red hat, the guard lets them in, even if they are a thief. The guard isn't checking who the person is; they are just checking the hat.
The Danger: Bypassing Safety Filters
The most concerning part of the paper is how this "Uniform" trick can be used to break safety rules.
Imagine a model is trained to refuse harmful requests.
- Normal Refusal: If you ask, "How do I bomb an interview?" the model says, "I can't help with that."
- The Hack: The researchers found that if they wrapped that harmful question inside a different sentence pattern (a "Cross-Domain Template") that the model sees often in its training data (like a "Chain of Thought" math problem), the model's safety filter gets confused.
The model thinks, "Oh, this looks like a math problem template! I should answer it!" So, it ignores the harmful content and gives the answer.
The paper shows that by simply changing the "Uniform" (the sentence structure) to match a safe topic, they could trick powerful models (like GPT-4o and OLMo) into answering questions about:
- How to smuggle illegal goods.
- How to mix lethal chemicals.
- How to commit insurance fraud.
The Takeaway
The paper concludes that we need to fix two things:
- Test for this: We need to check if our AI models are just memorizing sentence patterns instead of learning real meaning.
- Mix it up: When training AI, we need to make sure that every topic (like geography or food) is taught using many different sentence structures. If the "Uniform" is always the same, the AI will learn the wrong lesson.
In short: The AI is currently a "pattern matcher" that can be tricked by changing the outfit of the question, rather than a "understander" that knows the truth regardless of how it's asked.
Drowning in papers in your field?
Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.