Compositionality

Ryan M. Nefdt, Christopher PottsMIT 2024 · OpenAlex

TL;DR

Compositionality is the "building block" principle of cognition: the idea that the meaning of a complex whole is determined by its parts and the rules used to combine them. This overview explores how this principle explains human linguistic creativity, its challenges from idioms and context, and its surprising emergence in modern Large Language Models (LLMs).

What Problem Does This Paper Address?

The core mystery of human language is its "infinite" nature: how can we understand and produce a limitless variety of new sentences using only a finite vocabulary and limited memory?

This paper, an entry in the MIT Press Open Encyclopedia of Cognitive Science, synthesizes the theoretical framework of compositionality. It addresses the tension between formal logic—where systems are perfectly compositional—and natural language, which is rife with "non-compositional" hurdles like idioms ("kick the bucket"), ambiguity ("I saw a crane"), and context-dependent pronouns ("she"). The authors examine whether compositionality is a fundamental law of the mind or merely a flexible tool used by theorists to organize linguistic data.

Methods

As an encyclopedic review, the paper does not present a single experiment but rather evaluates several conceptual frameworks:

  • Formal Semantics (Montague Grammar): The "modern" approach that treats natural language like a logical calculus.
  • Mereological Analysis: A part-whole approach that breaks sentences into constituents (e.g., Noun Phrases and Verb Phrases) to map how meanings are "calculated" up the hierarchy.
  • Construction Grammar: A competing framework that rejects the "building block" model, suggesting that language is instead a collection of "constructions"—pairings of form and meaning that can range from single words to complex, idiomatic patterns.
  • Three Perspectives on Processing: The authors distinguish between process (how the brain actually computes), state (whether a structure could be analyzed compositionally), and outcome (whether behavior just looks compositional).

Datasets

Not discussed in the paper. (As a theoretical overview, it cites foundational literature rather than training on specific datasets).

Key Insights and Ideas

  • The Trinity of Productivity, Systematicity, and Infinity: Compositionality is the best candidate to explain why humans are productive (creating new sentences) and systematic (if you understand "the kitten sleeps," you automatically understand "the puppy sleeps").
  • The Locality Constraint: A hallmark of compositional rules is that they are "blind" to the internal details of the parts they combine. They only see the final meaning of the immediate sub-components. This makes the system efficient but creates challenges for long-distance dependencies.
  • The "Vacuity" Challenge: The authors highlight a provocative finding by Zadrozny (1994): mathematically, any semantics can be encoded as compositional if the meanings are made abstract enough. This suggests compositionality might be a choice of how we model language rather than an inherent property of language itself.
  • Idioms are Not "Frozen": The paper notes that idioms like "pull strings" can be modified (e.g., "pull legal strings"). This suggests that even supposedly non-compositional chunks have internal, meaningful sub-parts, blurring the line between "rules" and "exceptions."
  • Compositionality Beyond Language: The principle is increasingly applied to other cognitive domains, including visual perception, music, and even the planning behaviors of chimpanzees and the songs of birds.

Key Results

The paper provides a qualitative synthesis of the field's current standing:

  • Theoretical Flexibility: Compositionality is viewed less as a rigid "rule" and more as a "flexible working principle" that helps linguists distinguish between different types of cognitive phenomena.
  • LLM Emergence: One of the most striking recent findings is that Large Language Models appear to "induce" partial compositional analysis simply from being trained to predict text. They seem to arrive at "process compositionality" without being explicitly programmed with linguistic rules, offering a new bridge between AI and cognitive science.
  • Core vs. Periphery: While traditional views put compositionality at the "core" of language and idioms at the "periphery," Construction Grammar suggests the opposite might be true—that our linguistic core is a set of flexible, semi-idiomatic templates.

Limitations and Future Work

  • The Context Gap: Strict compositionality struggles with "non-local" dependencies, such as resolving who "she" refers to across multiple sentences. These pragmatic processes currently sit "beyond" the compositional core.
  • Human Processing: It remains an open question whether the human brain actually performs the recursive, step-by-step computations described in semantic theory (Process Compositionality) or if it relies more on memorized outcomes.
  • Interdisciplinary Frontiers: The authors call for closer collaboration between linguists and computer scientists to assess how LLMs perform "highly abstract compositional analyses" and what this reveals about the nature of intelligence.

Summary updated

BibTeX
@inproceedings{nefdt2024compositionality,
  author = {Ryan M. Nefdt and Christopher Potts},
  title = {{Compositionality}},
  booktitle = {MIT},
  year = {2024},
  doi = {10.21428/e2759450.494deacd},
}
Figure