Neurocompositional computing: From the Central Paradox of Cognition to a new generation of AI systems

Paul Smolensky, R. Thomas McCoy, Roland Fernandez, Matthew Goldrick, Jianfeng Gao

Abstract

Modern artificial intelligence is currently defined by a tension between the robust, pattern-matching capabilities of neural networks and the structured, logical reasoning of symbolic systems. This paper introduces "neurocompositional computing," specifically the Neurally-Encoded Compositionally-Structured Tensor (NECST) framework. By utilizing Tensor Product Representations (TPRs), this framework explicitly encodes abstract structures into continuous vector spaces. Our results demonstrate that this "second-generation" (2G) neurocompositional approach achieves superior compositional generalization, high data efficiency, and a level of internal interpretability that allows for precise manipulation of model behavior.

1. Introduction: The Central Paradox of Cognition

For decades, cognitive science and artificial intelligence have grappled with the "Central Paradox of Cognition." Human intelligence is fundamentally dual-natured: it is neural, relying on continuous patterns of activation across biological neurons, yet it is also compositional, characterized by the ability to combine discrete elements into an infinite variety of complex structures.

Historical AI development was bifurcated by this paradox. Symbolic systems excelled at logic and structure but were too brittle for real-world data. Conversely, connectionist neural networks proved adept at learning from messy data but struggled with "compositional generalization"—the ability to understand novel combinations of known components. While modern Transformers have bridged some of this gap, they remain largely "black boxes" that often fail when encountering out-of-distribution structural combinations. This paper proposes a synthesis that embeds symbolic structure directly into the neural architecture.

2. The NECST Framework and Tensor Product Representations

The core of the proposed framework is NECST (Neurally-Encoded Compositionally-Structured Tensor) computing. At its heart lies the Tensor Product Representation (TPR), a mathematical method for representing discrete structures within a continuous vector space.

Unlike standard deep learning models that compress information into a single, unstructured vector, TPRs disentangle two distinct types of information:

  1. Fillers ("The What"): The semantic content or symbols (e.g., the concept of a specific digit or a word).
  2. Roles ("The Where"): The structural position or functional context (e.g., the "denominator" in a fraction or the "subject" in a sentence).

These are combined using the tensor product operator ($\otimes$) to "bind" a filler to a role. The total representation of a structure is the sum of these individual bindings. Because this process is fully differentiable, the model can learn these structures via standard gradient descent while maintaining the logical transparency of a symbolic system.

3. Experimental Evaluation

We evaluated the NECST framework across a diverse suite of benchmarks designed to test structural reasoning and generalization:

  • Algorithmic Generalization (Digit Copying): Models were tested on their ability to generalize "n-in-n" positions never seen during training. The NECST-based CopyNet-2G achieved 100% accuracy with an order of magnitude less training data than standard LSTMs or Transformers.
  • Narrative Reasoning (StoryNet): Using synthetic narratives based on bAbI tasks, we tested the model's ability to handle novel character names. NECST models significantly outperformed state-of-the-art systems by maintaining the structural role of the character regardless of the specific name filler.
  • Program Synthesis (ProgNet): NECST set new benchmarks by generating complex Lisp programs up to 55 commands in length with perfect accuracy, outperforming models that generate code on a symbol-by-symbol basis.
  • Linguistic Analysis (QANet): In question-answering tasks using Wikipedia articles, TPR analysis allowed us to diagnose errors with high precision, revealing that certain failures were due to the model misidentifying proper nouns as functional question words.

4. Key Insights: Interpretability and Precision Surgery

One of the most significant advantages of the neurocompositional approach is emergent interpretability. During training on mathematical tasks, NECST models were observed to "invent" internal roles that align with human concepts, such as the role of a denominator.

Furthermore, the structured nature of these representations allows for "precision surgery" on the model's internal state. In the RoboNet task, we demonstrated that one could mathematically manipulate the internal representation—for instance, subtracting the vector for "twice" and adding "thrice"—to alter a robot's planned behavior without needing to re-process the entire command or re-train the model. This level of granular control is currently impossible in standard "black box" neural architectures.

5. Conclusion and the Path to 3G AI

While 2G neurocompositional computing provides a powerful framework for structured learning, the authors identify several avenues for "3G" (third-generation) systems. Future work will focus on stronger inductive biases that force models to adopt compositional strategies, better handling of deeply nested recursive structures (such as complex syntax), and the integration of "Optimality Theory" to allow models to find the best fit among competing logical constraints. By resolving the tension between the neural and the symbolic, neurocompositional computing paves the way for AI that is not only more powerful but also more interpretable and controllable.

Summary updated

BibTeX
@inproceedings{smolensky2022neurocompositional,
  author = {Paul Smolensky and R. Thomas McCoy and Roland Fernandez and Matthew Goldrick and Jianfeng Gao},
  title = {{Neurocompositional computing: From the Central Paradox of Cognition to a new generation of AI systems}},
  booktitle = {AI Mag},
  year = {2022},
}
Figure