TL;DR
Transformers often fail to transfer formal reasoning skills between identically structured problems phrased in slightly different ways because they latch onto superficial correlations between specific words and answers early in training. By simply hiding a rare target answer until the model has mastered the core logic on common answers, zero-shot transfer across phrasings improves dramatically.
What Problem Does This Paper Address?
Imagine teaching someone logic using variables named $Y_1, Y_2$ with the possible answers true, false, and unknown. You also show them identical puzzles using $X_1, X_2$, though by pure chance, none of the $X$ practice problems happen to have the answer unknown. A human instantly realizes that an unsolvable $X$ puzzle is also unknown. Transformers often don't.
While Large Language Models (LLMs) achieve impressive results in math and science, their reasoning in natural language is notoriously brittle—swapping variable names or rewording a prompt can break them. The authors investigate zero-shot label transfer: when a model learns to reason across semantically equivalent tasks phrased differently, why does it fail to predict a specific "target label" (like unknown) on a phrasing where that label wasn't explicitly shown during training?
The culprit is simplicity bias (or shortcut learning). Early in training, neural networks gravitate toward the simplest statistical patterns. If $X$-tokens never appear alongside the unknown label, the model learns a cheap early rule: "If I see $X$, rule out unknown." Even after the model later learns the actual reasoning algorithm, this early statistical prejudice sticks around.
Methods
To isolate this phenomenon from the messiness of web-scale data, the authors use controlled, standard auto-regressive transformer setups (an ~21M parameter 8-layer model for logic, a stripped-down 2-layer attention-only model for mechanistic analysis, and pretrained Gemma3 270M/1B models for finetuning).
Against this standard backdrop, their primary novel intervention is a target-label curriculum: they simply delay introducing training examples containing the target label (unknown) until later steps (e.g., step 10k, 20k, or 40k), once the model has already learned to reason accurately on true and false across all formats. They benchmark this against existing generalization tricks like increasing vocabulary diversity, overlapping task phrasing, and temporary active forgetting (periodically resetting token embeddings early in training).
Datasets
Rather than introducing static benchmarks, the authors procedurally generate synthetic datasets to strictly control token correlations:
- Synthetic Propositional Logic: Newly constructed forward-chaining tasks (modus ponens and modus tollens) with Chain-of-Thought (CoT) traces. Tasks are split into templates varying either variable names (e.g., 250 distinct single-token variables per task) or syntax ("A implies B" vs. "If A then B EndIf").
- Copy/Abstain Task: A minimal synthetic lookup task without CoT, testing whether a query variable appeared earlier in the context.
- Bilingual MathGAP: An adaptation of the existing MathGAP arithmetic word-problem generator, augmented with CoT proof trees and translated into English and Cyrillic Serbian, with final answers computed modulo $p \in \{3, 7\}$.
Key Insights and Ideas
- Token embeddings hoard task identity: When trained normally, the embeddings for Task 1 and Task 2 variables cleanly separate in Principal Component Analysis (PCA) space within just 1,000 steps. Because of residual (skip) connections, early error gradients directly push Task 1 embeddings away from the unknown output vector. Removing residual connections—or delaying the target label until error probabilities settle—eliminates this separation.
- Shortcuts cause "motivated reasoning": When a baseline model encounters an unsolvable Task 1 problem, it doesn't just guess true or false at the end—it hallucinates a broken CoT trace that violates its own learned logic rules just to justify outputting true or false. Yet if you feed that exact same model the correct CoT trace, it outputs unknown over 99.9% of the time! The shortcut actively corrupts the reasoning generation.
- Syntax is much harder to unify than vocabulary: Tricks like resetting token embeddings help when tasks only differ by single-token variable names, because the model learns to ignore token identity. However, resetting embeddings fails completely when tasks use different multi-token syntax ("implies" vs. "if–then"), whereas overlapping shared phrases acts as a "Rosetta stone" to bridge the formats.
Key Results
- Curriculum dramatically boosts transfer: Delaying the unknown label to 40k steps pushes zero-shot transfer accuracy from ~60–70% to nearly 100% when variable names differ, and from near 0–20% up to 50–60% when syntax differs. Adding a single shared syntactic template alongside the delay restores transfer to nearly 100%.
- Surgical rank-1 fix: On a baseline model where variable-name transfer stalled at 59.5%, simply shifting Task 1's token embeddings along a single PCA direction to match Task 2's mean jumped transfer accuracy to 99.7%—proving the anti-correlation lived almost entirely in a linear subspace of the embeddings.
- Pretrained LLMs are more resilient, not immune: When finetuning Gemma3 (270M and 1B) on English and Serbian math problems (withholding
0 mod pin Serbian), delaying the target label consistently improved transfer for $p=3$ (where correlations are stronger, moving accuracy from roughly ~93–95% toward ~98–99%), though it showed no notable difference for $p=7$.
Limitations and Future Work
The authors note that their core experiments rely on clean, synthetic datasets. While finetuning pretrained Gemma3 models showed a qualitatively similar shortcut effect, the performance hit was much milder—suggesting pretrained representations only succumb to very strong token-label correlations. Finally, cleanly withholding specific labels early in training is tough to orchestrate in messy, real-world natural language corpora, making data-distributional strategies (like ensuring phrasing overlap or code-switching) a more practical path forward.
Summary updated