Skip to main content
QUICK REVIEW

[Paper Review] From Frege to chatGPT: Compositionality in language, cognition, and deep neural networks

Jacob Russin, Sam Whitman McGrath|arXiv (Cornell University)|May 24, 2024
Biomedical Text Mining and OntologiesBiochemistry, Genetics and Molecular Biology4 citations
TL;DR

This paper investigates how modern deep neural networks (DNNs), particularly large language models (LLMs), achieve compositional generalization—combining known elements into novel, meaningful structures—despite lacking explicit symbolic architectures. It argues that architectural inductive biases and metalearning (including LLM pretraining) enable DNNs to replicate core behavioral signatures of compositionality, challenging the long-held view that only classical symbolic systems can support systematic, productive cognition.

ABSTRACT

Compositionality has long been considered a key explanatory property underlying human intelligence: arbitrary concepts can be composed into novel complex combinations, permitting the acquisition of an open ended, potentially infinite expressive capacity from finite learning experiences. Influential arguments have held that neural networks fail to explain this aspect of behavior, leading many to dismiss them as viable models of human cognition. Over the last decade, however, modern deep neural networks (DNNs), which share the same fundamental design principles as their predecessors, have come to dominate artificial intelligence, exhibiting the most advanced cognitive behaviors ever demonstrated in machines. In particular, large language models (LLMs), DNNs trained to predict the next word on a large corpus of text, have proven capable of sophisticated behaviors such as writing syntactically complex sentences without grammatical errors, producing cogent chains of reasoning, and even writing original computer programs -- all behaviors thought to require compositional processing. In this chapter, we survey recent empirical work from machine learning for a broad audience in philosophy, cognitive science, and neuroscience, situating recent breakthroughs within the broader context of philosophical arguments about compositionality. In particular, our review emphasizes two approaches to endowing neural networks with compositional generalization capabilities: (1) architectural inductive biases, and (2) metalearning, or learning to learn. We also present findings suggesting that LLM pretraining can be understood as a kind of metalearning, and can thereby equip DNNs with compositional generalization abilities in a similar way. We conclude by discussing the implications that these findings may have for the study of compositionality in human cognition and by suggesting avenues for future research.

Motivation & Objective

  • To assess whether modern deep neural networks (DNNs) can genuinely exhibit compositional generalization, a hallmark of human cognition.
  • To challenge the classical view that compositionality requires symbolic architectures by demonstrating that DNNs can replicate compositional behaviors through non-symbolic means.
  • To explore how architectural inductive biases and metalearning (including large-scale pretraining) enable DNNs to generalize compositionally.
  • To evaluate the implications of these findings for cognitive science, particularly regarding the nature of mental representation and the explanatory role of compositionality.
  • To advocate for mechanistic interpretability as a tool to determine whether DNNs implement compositionality in ways that are functionally meaningful and theoretically informative.

Proposed method

  • Surveying empirical work in machine learning to identify mechanisms enabling compositional generalization in DNNs.
  • Analyzing architectural inductive biases—such as attention mechanisms in transformers—as sources of built-in compositional inductive bias.
  • Examining metalearning, particularly large-scale pretraining of LLMs, as a form of learning-to-learn that enables generalization to unseen compositional structures.
  • Drawing parallels between metalearning and classical compositionality by showing that both enable generalization beyond seen examples.
  • Applying mechanistic interpretability techniques to probe whether DNNs’ internal representations reflect compositional structure.
  • Engaging with philosophical debates on implementation and explanation to assess whether DNNs are merely implementing classical systems or offering novel cognitive insights.
Figure 1: Transformer basics. A) Comparison with recurrent neural networks (RNNs) in the language modeling setting (predicting the next word). A fundamental difference between RNNs and transformers is that RNNs must compress the entire past into a single hidden vector. To see this, notice how the on
Figure 1: Transformer basics. A) Comparison with recurrent neural networks (RNNs) in the language modeling setting (predicting the next word). A fundamental difference between RNNs and transformers is that RNNs must compress the entire past into a single hidden vector. To see this, notice how the on

Experimental results

Research questions

  • RQ1Can deep neural networks achieve compositional generalization without explicit symbolic architectures?
  • RQ2To what extent do architectural inductive biases in modern DNNs, such as attention mechanisms, support compositional behavior?
  • RQ3How does metalearning—particularly the pretraining of large language models—endow DNNs with compositional generalization capabilities?
  • RQ4What does the success of DNNs in replicating compositional behaviors imply for the philosophical and cognitive scientific status of compositionality?
  • RQ5Can mechanistic interpretability reveal whether DNNs implement compositionality in ways that are functionally analogous to human cognition?

Key findings

  • Architectural inductive biases in modern DNNs, especially the attention mechanism in transformers, provide a structural basis for compositional generalization.
  • Metalearning, particularly the pretraining of large language models on vast text corpora, functions as a form of learning-to-learn that enables generalization to novel compositional structures.
  • LLMs demonstrate robust compositional generalization in tasks such as syntactically complex sentence generation, reasoning chains, and program synthesis.
  • Pretraining of LLMs can be understood as a form of metalearning that equips models with compositional generalization abilities similar to those derived from explicit metalearning protocols.
  • Mechanistic interpretability studies suggest that DNNs may implement compositional structures in ways that are partially analogous to classical theories but also diverge in meaningful, informative ways.
  • The findings challenge the notion that compositionality is exclusive to symbolic systems and suggest that non-symbolic architectures can support systematic, productive cognition.
Figure 2: Are neural networks stimulus-response learners, or do they learn to solve problems with compositional algorithms? Two extreme possibilities are depicted for natural language (top) and simple arithmetic (bottom). In either case, a stimulus-response learner (left) would simply memorize a loo
Figure 2: Are neural networks stimulus-response learners, or do they learn to solve problems with compositional algorithms? Two extreme possibilities are depicted for natural language (top) and simple arithmetic (bottom). In either case, a stimulus-response learner (left) would simply memorize a loo

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.