To See the Unseen: on the Generalization Ability of Transformers in Symbolic Reasoning
Nevena Lazi\'c, Liam Fowl, Andr\'as Gy\"orgy, Csaba Szepesv\'ari

TL;DR
This paper explores why transformer models struggle with symbolic reasoning generalization, revealing a representational collapse of unseen token embeddings and proposing techniques to improve unseen token handling.
Contribution
It identifies a representational collapse of last-layer weights as a key factor and introduces methods to mitigate this, enhancing generalization to unseen tokens in symbolic reasoning.
Findings
Embedding collapse correlates with poor unseen token generalization.
Techniques like copying facilitation and embedding resetting improve generalization.
Evidence of embedding collapse observed in open-weight models like Gemma 3.
Abstract
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…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
