To See the Unseen: on the Generalization Ability of Transformers in Symbolic Reasoning
On the map: LLM reasoning → Reasoning benchmarks and evaluation
Abstract (arXiv)
We investigate the ability of decoder-only transformer models to perform abstract symbolic reasoning; specifically solving propositional logic reasoning problems given in-context. Previous work demonstrated that models fail to generalize to problems involving variable names that were not observed during training, and it was shown that one reason behind this is the difficulty of copying (or generating) unseen tokens. We show both theoretically and empirically that a particular representational collapse also has a crucial role: the unembeddings (last-layer weights) of unseen tokens collapse to nearly the same vector during training. The collapse makes distinguishing multiple unseen variables difficult for the model (especially when the embedding and unembedding parameters are shared), and provides a mechanistic explanation for the effectiveness of existing heuristic interventions like "active forgetting", which periodically reset the token (un)embeddings. Based on these observations, we devise a combination of techniques, involving a small architecture change facilitating copying, data diversity, and freezing or resetting (un)embeddings, that achieves generalization to unseen tokens. We support our claims with extensive controlled experiments on propositional logic reasoning problems. Beyond synthetic experiments, we also observe evidence of (un)embedding collapse in the open-weight models in the Gemma 3 family, which includes 99 unused tokens reserved for downstream use. Empirically we find that the correlated embeddings of these tokens are a poor initialization for finetuning applications.
Key facts. No citing papers in the map yet (data through 7 Oct 2026). Placed in Reasoning benchmarks and evaluation, one of 17 directions in LLM reasoning. Builds on 33 of its 38 references that are in the map. First posted on arXiv 23 Apr 2026.
Builds on
33 of 38 references.
Closest ancestors · 4
Same direction, newest first
- 2024When a language model is optimized for reasoning, does it still show embers of autoregression? An analysis of OpenAI o12 Oct
- 2024A Peek into Token Bias: Large Language Models Are Not Yet Genuine Reasoners16 Jun
- 2023PaLM 2 Technical Report17 May
- 2022On the Paradox of Learning to Reason from Data23 May
Other references · 29
- 2017Attention Is All You Needcited by 59,932
- 2023GPT-4 Technical Reportcited by 18,132
- 2019Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformercited by 14,491
- 2016Layer Normalizationcited by 5,579
- 2022PaLM: Scaling Language Modeling with Pathwayscited by 5,304
- 2021RoFormer: Enhanced Transformer with Rotary Position Embeddingcited by 4,581
- 2016Gaussian Error Linear Units (GELUs)cited by 3,431
- 2017Decoupled Weight Decay Regularizationcited by 1,722
- 2025Gemma 3 Technical Reportcited by 1,686
- 2017Get To The Point: Summarization with Pointer-Generator Networkscited by 1,281
- 2015Pointer Networkscited by 882
- 2024GSM-Symbolic: Understanding the Limitations of Mathematical Reasoning in Large Language Modelscited by 533
17 more
- 2022Data Distributional Properties Drive Emergent In-Context Learning in Transformerscited by 303
- 2016Incorporating Copying Mechanism in Sequence-to-Sequence Learningcited by 217
- 2023Pretraining task diversity and the emergence of non-Bayesian in-context learning for regressioncited by 138
- 2023The mechanistic basis of data dependence and abrupt learning in an in-context classification taskcited by 115
- 2023Randomized Positional Encodings Boost Length Generalization of Transformerscited by 114
- 2024Transformers need glasses! Information over-squashing in language taskscited by 87
- 2023In-Context Learning through the Bayesian Prismcited by 78
- 2021Making Transformers Solve Compositional Taskscited by 72
- 2023The Transient Nature of Emergent In-Context Learning in Transformerscited by 72
- 2023Positional Description Matters for Transformers Arithmeticcited by 56
- 2022Transformers generalize differently from information stored in context vs in weightscited by 49
- 2023Improving Language Plasticity via Pretraining with Active Forgettingcited by 43
- 2024Learning to grok: Emergence of in-context learning and skill composition in modular arithmetic taskscited by 40
- 2023When can transformers reason with abstract symbols?cited by 23
- 2025Frontier LLMs Still Struggle with Simple Reasoning Taskscited by 20
- 2024Toward Understanding In-context vs. In-weight Learningcited by 19
- 2024Dual Process Learning: Controlling Use of In-Context vs. In-Weights Strategies with Weight Forgettingcited by 15
Built on by
Not cited yet.
Similar, not cited
Close in wording, no citation either way
- 2024Grokked Transformers are Implicit Reasoners: A Mechanistic Journey to the Edge of Generalization
- 2024Reasoning in Transformers -- Mitigating Spurious Correlations and Reasoning Shortcuts
- 2025Tokenization Constraints in LLMs: A Study of Symbolic and Arithmetic Reasoning Limits
- 2025In-Context Algebra
- 2023Assessing Logical Reasoning Capabilities of Encoder-Only Transformer Models
- 2025Hybrid Models for Natural Language Reasoning: The Case of Syllogistic Logic
- 2026Feature Resemblance: Towards a Theoretical Understanding of Analogical Reasoning in Transformers
- 2026Barriers to Universal Reasoning With Transformers (And How to Overcome Them)