Can Large Models Really Form Symbols During Inference? Or Do They Take Shortcuts?

Research finds that large models may memorize token roles rather than learn abstract rules in pattern tasks, requiring architectural and data interventions.
This study investigates whether large language models truly learn abstract symbolic representations in simple pattern sequence tasks or rely on the reasoning shortcut of memorizing fixed token roles. Theoretical proofs show that when training data cannot distinguish pattern roles from token identity, spurious solutions inevitably emerge, and common role-swap tests may be fooled by mixed strategies. Experiments tested various interventions: semantic loss, fixed symbolic programs, and swapped internal-state training fail to eliminate the shortcut, while role-swap prompts and equivalence-enforcing architectures are effective. A 6-layer Transformer drifts from pattern reading to token-role memorization, 12-layer models mostly maintain pattern reading, and pretrained Gemma 2 and Llama 3.1 show stronger abstraction tendencies. The study stresses that evaluating symbolic reasoning requires tests that distinguish true from false symbols.
Introduction: Starting from "Cat Dog Sun Moon"
Ask a large language model to continue a simple pattern sequence: given "cat dog cat sun moon," the model outputs "sun"; given "cat dog dog sun moon," the model outputs "moon." This looks as if the model has understood the abstract patterns ABA and ABB. A recent study gave an affirmative answer on such a simple task: inside the model, a variable appears to emerge that records whether each token is A or B in the pattern, which the researchers call an "emergent symbol."
But the problem is: does the network actually read the role from the pattern, or does it simply memorize the role directly from the token itself? The latter is a known reasoning shortcut in neuro-symbolic learning. Through theoretical proofs and experiments, this study takes a deep dive into when this shortcut appears, how to identify it, and which interventions can truly eliminate it.

Reasoning shortcut is a core concept in neuro-symbolic learning. It refers to a model exploiting superficial statistical regularities in the data (such as accidental co-occurrence of tokens and roles) during training to achieve low training loss, rather than learning the abstract rules intended by the task. Such shortcuts are hard to detect because they often perform perfectly within the training distribution and can even pass some simple out-of-distribution tests. Common shortcuts include: relying on the absolute identity of tokens rather than their structural roles, exploiting sequence length or positional cues, and memorizing specific combinations from the training set. Identifying shortcuts typically requires designing adversarial tests, such as systematically swapping the correspondence between tokens and roles, or constructing role assignments that do not appear in the training set. Eliminating shortcuts is even more challenging and often requires intervention at the level of data distribution or model architecture, rather than simple regularization.
Core Finding: When Data Cannot Distinguish, Shortcuts Are Inevitable
The researchers proved a key condition: when the training data cannot distinguish between the two strategies of "reading the pattern" and "reading the token," spurious solutions will emerge. For example, if "cat" and "sun" always appear in the A role during training, while "dog" and "moon" always appear in the B role, then the model can perfectly memorize each token's fixed role without needing to understand the pattern.
More troublingly, even the common "swap all token roles" test can be fooled by spurious solutions. This is because the model may learn a mixed strategy that performs correctly within the training distribution but does not truly capture the abstract rule. This finding has general significance for the field of neuro-symbolic learning: verifying correctness only at the output level is insufficient to prove that the model has formed symbolic representations.
The swap-all-token-roles test is one of the standard methods for evaluating whether a model has learned abstract symbolic representations. Its basic design is: at test time, systematically replace the roles of all tokens in the input (for example, changing tokens that originally played the A role to play the B role, and vice versa), then check whether the model can still output correctly. If the model has truly learned the strategy of "reading pattern roles," it should be able to adapt to this swap; conversely, if the model relies on memorizing the fixed roles of tokens, performance will drop significantly after the swap. However, the limitation of this test is that the model may learn a mixed strategy—primarily relying on pattern reading within the training distribution, but retaining a weak memory of certain token identities as a "fallback." This mixed strategy may happen to perform correctly in a simple role-swap test, thereby masking the existence of the shortcut. Therefore, the researchers recommend combining multiple out-of-distribution tests with internal representation analysis to more comprehensively assess symbolic abstraction ability.
Which Interventions Work and Which Do Not?
The study tested a variety of common intervention methods. Semantic loss, fixed symbolic programs, and training with swapped internal states all failed to completely eliminate these spurious solutions. This means that some seemingly reasonable regularization methods may only mask the problem rather than solve it.
There are two types of effective interventions: first, adding training prompts that include various role swaps; second, using an architecture that considers only "which tokens are equal." The idea behind the latter is to force the model to focus on equivalence relations between tokens rather than absolute identity, thereby structurally excluding the possibility of memorizing token roles.
Experimental Observations: Effects of Layer Count, Training Stage, and Pretraining
In experiments with fixed roles and a large vocabulary, a 6-layer Transformer trained from scratch initially read the pattern, but while maintaining training accuracy, it switched to memorizing the role of each token. This confirms the known "transience" of in-context learning: the model drifts from one strategy to another during training.
In contrast, under the same amount of training, a 12-layer Transformer mostly continued to read the pattern. This suggests that model capacity or depth may affect the stability of inductive biases. More interestingly, pretrained Gemma 2 and Llama 3.1, after fine-tuning on fixed roles, still read the pattern. This may mean that pretraining has already endowed the model with a stronger tendency toward pattern abstraction, making it less prone to falling into the shortcut of token memorization.
"Transience" in in-context learning refers to the phenomenon of strategy drift exhibited by models during training: after reaching high accuracy on a downstream task, the internal strategy the model relies on may change over time, switching from one strategy (such as context-based pattern reading) to another (such as token-identity-based memorization), while external performance metrics remain stable. This phenomenon was first observed in research on in-context learning and reveals that training loss and validation accuracy are insufficient to reflect the stability of internal representations. The existence of transience means that judging whether a model has learned abstract rules solely by final performance is unreliable, because the model may indeed have used the expected strategy early in training but later "degraded" to a simpler shortcut without any drop in performance. This also explains why analytical tools capable of tracking the evolution of internal representations during training need to be developed, and why architecture choices and training data design are crucial for maintaining the desired inductive biases.
Implications for AI Research and Applications
This study reminds us that when evaluating the symbolic reasoning ability of large models, tests must be designed that can distinguish "true symbols" from "false shortcuts." Simple role-swap tests are insufficient because spurious solutions can masquerade as passing. For application scenarios that require reliable symbolic reasoning, architecture design (such as enforcing equivalence relations) and training data design (such as diverse role-swap prompts) are more effective than after-the-fact remedies.
At the same time, the robustness exhibited by pretrained models deserves further investigation: is it that diversity in pretraining data naturally suppresses shortcuts, or that model scale brings different inductive biases? These questions will influence the design and evaluation methods of future models.
One-line Summary
Research finds that large models may memorize token roles rather than learn abstract rules in pattern tasks, requiring architectural and data interventions.
Paragraph Summary
This study explores whether large language models truly learn abstract symbolic representations in simple pattern sequence tasks, or rely on the reasoning shortcut of memorizing fixed token roles. Theoretical proofs show that when training data cannot distinguish between pattern roles and token identity, spurious solutions inevitably emerge, and common role-swap tests may be fooled by mixed strategies. Experiments tested various interventions and found that semantic loss, fixed symbolic programs, and training with swapped internal states all fail to eliminate the shortcut, while adding role-swap prompts and adopting architectures that enforce equivalence relations are effective. In addition, a 6-layer Transformer drifts from pattern reading to token-role memorization during training, while 12-layer models mostly maintain pattern reading, and pretrained Gemma 2 and Llama 3.1 exhibit a stronger tendency toward abstraction. The study emphasizes that evaluating symbolic reasoning requires tests that can distinguish true from false symbols.
Related articles

OBSBOT's New Lineup Explained: The Ambition Behind AI PTZ Cameras and Wireless Video Transmission
OBSBOT unveils Tail 2 Advanced, Tail Air 2, Tiny 3, and Topo wireless video transmission at its New York launch—covering 21x zoom AI PTZ cameras, one-inch sensors, and podcast auto-directing.

Nearly Breaking eMudhra's Encryption Key: A Deep Retrospective on a Failed Attempt
Security researcher Hanno Böck discloses an attempted attack on eMudhra CA's private key: a search around the d=4 parameter weakness stopped just short of success. This article reviews the technical path, community reaction, and implications for the PKI trust model.

OpenAI Independent Evaluation Pilot Hits Snag: Apollo Research Says Access Is Restricted
OpenAI's pilot allowing independent evaluators into its lab faces criticism as Apollo Research says access is restricted. We analyze the independence dilemma and its implications for AI safety governance.