arXiv(opens in a new tab)cs.CLAug 2026Cited by 1 paper on PaperVantage

Manuscript Offprint

arXiv:2608.29530

The Emergent Symbolic Structure of Artificial Neural Networks

R. Thomas McCoy, Paul Soulos, Tal Linzen, Paul Smolensky

Abstract

Modern systems in artificial intelligence (AI) somehow excel in domains for which they seem poorly suited. Intelligence has traditionally been modeled as operating over structured combinations of symbols, such as logical formulas. However, the strongest modern AI systems are based on neural networks, which instead represent information in continuous vectors. Vectors seem inadequate for capturing the structure of language, logic, and other cognitive domains, yet neural networks achieve impressive performance in these areas. How do they do it? In this work, we propose a potential answer: Despite appearances, perhaps the internal representations of neural networks implicitly realize symbolic structure. In support of this hypothesis, we show that the vector representations of a variety of neural networks can be closely approximated with symbolic structures: we can replace the network's entire representation-generating process with a closed-form equation instantiating a symbolic structure, and the network's behavior remains largely unchanged. This finding holds for both small-scale neural networks trained to manipulate lists as well as large language models (LLMs) operating in four domains that are central in symbolic traditions: arithmetic, logic, computer code, and language. Further, our symbolic approximation allows us to modify an LLM's behavior in targeted ways via precise interventions on its internal representations, showing that the LLM's behavior is reliant on the symbolic structures we have identified. This work provides a potential way to reconcile longstanding symbolic conceptions of intelligence with the vector-based nature of modern AI.

1 Introduction

In both AI and cognitive science, many domains of intelligence have traditionally been modeled using symbolic systems, in which discrete units (symbols) are combined in structured ways (Boole, 1854; Turing, 1950; McCarthy, 1959; Chomsky, 1965; Newell and Simon, 1972; Quilty-Dunn, Porot, and Mandelbaum, 2023). For instance, in linguistics, sentences are typically represented with trees composed of discrete words (Figure 1.1, left). Symbolic analyses have a long history: Pānini developed symbolic theories of language around 500 BCE (Kiparsky, 1993), Aristotle formalized symbolic logic around 350 BCE (Smith, 1989), and Ada Lovelace used symbol manipulation as the basis of the first computer program in 1843 (Bowden, 1953).

Figure

the poet near the judge saw the author

[0.15164 0.30177 -0.016763 0.017684 -0.31719 0.33973 -0.43478

-0.31086 -0.44999 -0.29486 0.16608 0.11963 -0.41328 -0.42353

0.59868 0.28825 -0.11547 -0.041848 -0.67989 -0.25063 0.18472

0.086876 0.46582 0.015035 0.043474 -1.4671 -0.30384 -0.023441

0.30589 -0.21785 3.746 0.0042284 -0.18436 -0.46209 0.098329

-0.11907 0.23919 0.1161 0.41705 0.056763 -6.3681e-05 0.068987

0.087939 -0.10285 0.13931 0.22314 -0.080803 -0.35652 0.016413]

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, specifically 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.

1^{1}At the project’s start, all authors were affiliated with Johns Hopkins, and Smolensky was also affiliated with Microsoft Research. For parts of the project, McCoy was affiliated with Princeton or with Yale and Microsoft. Soulos’s current affiliation is Microsoft.

More recently, however, major advances in AI have been driven by neural networks (Rumelhart, Hinton, and McClelland, 1986)—computational systems that encode information in a very different way: using continuous vectors (Figure 1.1, right). Such vectors seem qualitatively different from symbol structures, yet neural networks excel in domains traditionally viewed as symbolic, including language (Brown et al., 2020), mathematics (Glazer et al., 2024), and coding (Li et al., 2022). How can systems that use vector representations perform so well in symbolic domains? Answering this question is an important goal for mechanistic interpretability (Olah et al., 2018; Elhage et al., 2021; Marks et al., 2025), the growing area of research that aims to understand the inner workings of AI systems such as large language models (LLMs).

The hypothesis we investigate is that, although the explicit structure of neural networks appears very different from symbol systems, perhaps they implicitly realize symbolic structure inside their vector representations. To test this hypothesis, we use an analysis method called DISCOVER (DISsecting COMpositionality in VEctor Representations) which aims to approximate a neural network's vector representations with vectors that explicitly encode symbolic structure.

This approach requires a proposal about how vectors could capture such structure—a consideration that is far from trivial given the apparent incompatibility of vectors and symbols. For this purpose, we adopt a mathematical formalism from cognitive science called Tensor Product Representations (TPRs; Smolensky, 1990). In a TPR, a symbolic structure is framed as a collection of fillers—the elements of the structure—each of which is paired with a role that denotes its position. For instance, to encode the sentence cats chase dogs, we might use the fillers cats, chase, and dogs paired with the roles subject, verb, and object, respectively. The collection of role-filler pairs can then be translated into a vector using an approach described in Section 2.3. TPRs were introduced as a proposal about how neural networks could be designed to capture symbolic structure. Our hypothesis is that, even without being explicitly designed in this way, standard neural networks naturally converge to representations that are structured as TPRs.

We apply DISCOVER to a variety of neural networks and find that their representations can be closely approximated by the type of symbolic structure that we have hypothesized. Specifically, we can replace each neural network's entire representation-generating process with a single, interpretable, TPR-based equation, and the network's behavior changes minimally if at all. Our core findings are the following:

  1. In analyses of models trained on synthetic sequence-manipulation tasks, we find emergent symbolic structure across all three classes of neural networks that we consider—multi-layer perceptrons (Rosenblatt, 1962), recurrent neural networks (Elman, 1990), and Transformers (Vaswani et al., 2017). Thus, this type of emergent structure is general enough to hold across several different classes of neural systems.

  2. We also analyze seven LLMs: Gemma-3-27b (Team et al., 2025), GPT-2-XL (Radford et al., 2019), GPT-OSS-20b (OpenAI et al., 2025), Pythia-12b (Biderman et al., 2023), Qwen3-14b (Yang et al., 2025a), OLMo-2-13B (Walsh et al., 2025), and Llama-3.1-8b (Grattafori et al., 2024). We find emergent symbolic structure in all of these LLMs, showing that such structure arises in large-scale systems trained on naturalistic data.

  3. We conduct an extensive analysis of one LLM (GPT-OSS) performing tasks in four domains long viewed as symbolic (arithmetic, logic, coding, and language). Its representations are well-approximated with TPRs, providing evidence that LLMs draw on implicit symbolic structure when performing symbolic tasks.

  4. Our analyses enable us to intervene on neural network representations in ways that lead the network's behavior to change in the expected ways, showing that the representational structure we have identified is implicated in model behavior. For instance, if a network's input is the clever doctor helped the lawyer, we can edit the representation by changing the position of clever from "subject adjective" to "object adjective." The network then behaves as if the input had been the doctor helped the clever lawyer.

  5. Our analyses can generalize to new combinations of fillers and roles. E.g., if the DISCOVER approach is trained on sentences that include the word scientist but never occurring in the role of “subject of the sentence”, DISCOVER then successfully generalizes to sentences with scientist as the subject. This finding shows that the networks we analyze are systematic in how they compose fillers with their roles.

These findings support the hypothesis that, at least in many cases, the vector representations of standard neural networks have implicit symbolic structure. Though advances in neural networks make it tempting to think that symbolic structure is unnecessary, these results instead suggest that such structure is important for intelligent behavior, since even systems that are not inherently symbolic learn to use symbolic structure on their own. 2^{2}

2^{2}A partial codebase is available at https://github.com/tommccoy1/discover/. The complete code will be made available soon (pending employer approval).

References (3)

  • 1st-from-left-and-4th-from-right
  • Intervention: S (i) Output pre-intervention: The dancer behind the tutor recognizes the popular librarian
  • Intervention: S (i) Output pre-intervention: The miner who the careful professor stops advises the ambassador