The Emergent Symbolic Structure of Artificial Neural Networks

R. Thomas McCoy, Paul Soulos, Tal Linzen, Paul SmolenskyarXiv 2026

TL;DR

Artificial neural networks represent information as continuous vectors, yet they excel at symbolic tasks like logic and language. This paper introduces DISCOVER, a method demonstrating that these vector representations implicitly implement structured, symbolic frameworks known as Tensor Product Representations (TPRs). By replacing a network's complex internal activations with a clean, closed-form symbolic equation, the authors successfully maintain or even improve the network's performance and precisely manipulate its behavior.

What Problem Does This Paper Address?

For decades, cognitive science and AI have been split by a fundamental debate: is intelligence governed by discrete, structured symbol manipulation (like logic and grammar trees), or by continuous vector spaces (like neural networks)?

While modern Large Language Models (LLMs) achieve state-of-the-art performance in symbolic domains, vectors inherently struggle with the binding problem. For example, in a simple linear vector addition framework, the sentence "cats chase dogs" might have the exact same representation as "dogs chase cats" because vector addition is commutative and ignores structure. This paper investigates how neural networks overcome this limitation, testing the hypothesis that they naturally evolve internal vector spaces that implicitly encode discrete symbolic structures.

Figure 1.1: The apparent incompatibility of neural and symbolic representations. Left: A symbolic sentence representation, specifically a (simplified) syntax tree. Right: A neural-network sentence representation, specifi- cally a continuous vector. These two representations encode the same sentence, but they appear starkly different from each other. Nonetheless, neural networks are the state of the art in many areas traditionally viewed as symbolic. In this work, we study how vector representations can support such strong performance in domains that appear to require symbolic structure.

Methods

The authors employ a mathematical formalism called Tensor Product Representations (TPRs). In a TPR, a symbolic structure is decomposed into fillers (the elements, like words or digits) and roles (their structural positions, like "subject" or "second element"). These are bound together using a tensor product and summed. The authors use linearly-transformed TPRs, expressed as:

$$L_{\text{reg}} = W(\sum_i f_i \otimes r_i) + b$$

To test if neural networks use this structure, they developed DISCOVER (DISsecting COmpositionality in VEctor Representations). DISCOVER acts as an optimization procedure that attempts to approximate a target neural network's internal vectors using an explicit, interpretable TPR equation.

The authors validate their findings using two rigorous techniques:

  1. Causal Interventions (Constituent Surgery): They mathematically add or subtract specific role-filler pairs from the network's representation (e.g., changing the role of a word from "object adjective" to "subject adjective") to see if the model's behavior changes in a perfectly predictable way.
  2. Generalization to Novel Pairs: They train DISCOVER while withholding specific role-filler combinations (e.g., never seeing the letter "C" in the third position) to prove the network utilizes a systematic compositional strategy rather than memorizing atomic combinations.

Datasets

The authors evaluated their approach across several settings:

  • Synthetic Sequence Manipulation: Datasets of 57,000 unique input-output pairs for tasks like copying, reversing, and interleaving letter strings.
  • List Sorting: A dataset focused on alphabetizing random letter sequences.
  • LLM Period Encodings: Noun lists drawn from the Toronto word pool, simple Subject-Verb-Object sentences, and syntactically complex sentences generated via a custom Context-Free Grammar (CFG).
  • Symbolic Tasks in GPT-OSS: Custom-generated datasets spanning four distinct symbolic domains: Arithmetic, Logic (Syllogisms), Computer Code (Python list manipulation), and Language syntax manipulation (Passivization, Tense reinflection, Question formation).

Key Insights and Ideas

  • Emergent Symbolism: Neural networks naturally converge on systematic role-filler binding strategies entirely on their own, without explicit architectural constraints forcing them to do so.
  • Support for Limitivism: The results strongly support limitivism—the philosophical view that neural networks approach true symbol systems in the limit, but implement them approximately and noisily in practice.
  • The "Denoising" Effect: Strikingly, when complex sentence representations from LLMs are replaced by the idealized DISCOVER TPR approximations, downstream decoders often perform better than they do with the network's original native vectors. The TPR extraction process effectively strips away representational noise, leaving a pure symbolic skeleton.

Key Results

  • Sequence Tasks: Across MLPs, GRUs, and Transformers trained on sequence manipulation, the bidirectional role scheme yielded near-perfect approximation accuracies (frequently $>99\%$).
  • Large Language Models: Emergent symbolic structures were successfully identified in all seven production LLMs evaluated (including Gemma-3, Llama-3.1, and Qwen3).
  • GPT-OSS Symbolic Tasks: For complex tasks like code execution and syntax manipulation, the task-specific role scheme achieved approximation accuracies within $2.36\%$ of the model's native performance.
  • Constituent Surgery Success: Causal interventions on GPT-OSS achieved an average accuracy of $90.3\%$ across 6 distinct tasks, proving that the model's behavior is directly reliant on the identified symbolic components.

Limitations and Future Work

  • Supervision Requirements: The current version of DISCOVER is supervised, meaning human researchers must manually hypothesize and define the potential "role schemes" (e.g., syntactic dependency paths) beforehand.
  • Mechanistic Gap: While the paper proves that symbolic structure exists within the vector space, it does not explain the exact step-by-step circuit mechanisms the network uses to generate these structures during its forward pass.
  • Scaling to Natural Language: The tasks evaluated were fully systematic. Future work must explore how these implicit symbolic structures coexist with the fuzzy, gradient, and idiosyncratic nature of unconstrained natural language.

Summary updated

BibTeX
@misc{mccoy2026emergent,
  author = {R. Thomas McCoy and Paul Soulos and Tal Linzen and Paul Smolensky},
  title = {{The Emergent Symbolic Structure of Artificial Neural Networks}},
  year = {2026},
  eprint = {2608.29530},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2608.29530},
}
Figure