Emergent Symbolic Mechanisms Support Abstract Reasoning in Large Language Models

Yukang Yang, Declan Iain Campbell, Kaixuan Huang, Mengdi Wang, Jonathan D. Cohen, Taylor Whittington Webb

Introduction

The debate over whether Large Language Models (LLMs) are merely "stochastic parrots" or capable of genuine structured reasoning remains central to AI research. While classical AI relied on symbolic systems with explicit rules and variables, neural networks operate on high-dimensional vectors. Recent research investigates whether transformer-based models internally develop symbolic processing mechanisms to solve abstract problems without explicit programming.

Methodology

To investigate the internal logic of models like Llama-3.1, Qwen2.5, and Gemma-2, researchers utilized several mechanistic interpretability techniques:

  • Causal Mediation Analysis (CMA): Identifying specific attention heads responsible for reasoning by intervening in internal activations.
  • Representational Similarity Analysis (RSA): Determining if internal representations correspond to specific tokens or abstract roles (e.g., "Variable A").
  • Ablation Studies: Measuring performance degradation when specific heads are deactivated.

The study evaluated these models on tasks requiring abstract rule induction (e.g., identifying $ABA$ patterns), letter string analogies, and verbal analogies.

The Three-Stage Symbolic Architecture

The core finding is the emergence of a consistent three-stage pipeline within modern LLMs that mimics symbolic "indirection" and "variable binding."

The three-stage symbolic architecture: Symbol Abstraction, Symbolic Induction, and Retrieval.
  1. Symbol Abstraction (Early Layers): Specific heads strip the literal identity of tokens, representing them as abstract variables based on their structural role in the prompt.
  2. Symbolic Induction (Intermediate Layers): These heads perform logic on the abstract variables, recognizing patterns (e.g., "The rule is $ABA$") independently of the specific tokens used.
  3. Retrieval (Later Layers): Retrieval heads map the abstract logic back to the original input, identifying the specific token associated with the predicted variable to generate the final output.

Results and Empirical Evidence

The researchers found that these symbolic mechanisms are both necessary and sufficient for abstract reasoning tasks. Llama-3.1 70B, for instance, achieved 95% accuracy on rule induction tasks using arbitrary tokens.

Causal mediation scores across layers and heads, highlighting the distinct roles of abstraction, induction, and retrieval heads.

Key findings include:

  • High Decodability: Abstract variables (A vs. B) could be decoded from internal states with >98% accuracy, regardless of the tokens used.
  • Emergence with Scale: These circuits are robust in newer, larger models but significantly weaker in older models like GPT-2, suggesting they are an emergent property of scale and training.

Discussion and Limitations

While LLMs demonstrate sophisticated symbolic-like processing, these representations are not perfectly abstract and often retain "residue" from original tokens. This may explain "content effects" where reasoning difficulty varies with the specific tokens used, similar to human cognitive biases. Future work will explore if these circuits underpin more complex multi-step reasoning or code generation.

Summary updated

BibTeX
@inproceedings{yang2025emergent,
  author = {Yukang Yang and Declan Iain Campbell and Kaixuan Huang and Mengdi Wang and Jonathan D. Cohen and Taylor Whittington Webb},
  title = {{Emergent Symbolic Mechanisms Support Abstract Reasoning in Large Language Models}},
  booktitle = {International Conference on Machine Learning},
  year = {2025},
  url = {https://openreview.net/forum?id=y1SnRPDWx4},
}
Figure