In its standard formulation, the meaning of a complex expression is determined by the meanings of its parts and the way they are combined. The principle admits two readings: a metaphysical one (the meaning of the whole supervenes on that of the parts) and a psychological one (speakers compute meaning by assembling the parts according to tacit rules). It is called "Frege's principle," and Frege anticipated its central argument: we understand sentences we have never heard because we construct their sense from parts that correspond to words. But, according to Russin et al. (2025), the one who formulated it as a principle, and named it after his teacher, was Carnap, his one-time student (2025, sec. 2.1).
With Chomsky, Montague, and Fodor, compositionality stopped being a feature of logicians' artificial languages and became a psychological hypothesis: it would be what explains productivity (understanding infinitely many new sentences with finite means) and the systematicity of thought. If you understand the dog bites the mailman and know what a cat is, you understand the cat bites the mailman. Classical architectures guarantee this by design; neural networks, which learn statistical regularities without explicit constituent structure, do not (Russin et al., 2025, secs. 2.3, 3).
The productivity argument was also turned against inferentialism, which gives content first to sentences and only derivatively to words: "productivity demands compositionality, and compositionality implies the priority of subsentential semantics to sentential semantics" (Fodor & Lepore, 2001, p. 480). Brandom (2007) grants the first claim and denies the second (2007, p. 671). On his view, the principle is neutral between bottom-up and top-down explanation (Brandom, 1994, p. 354): sentences can be decomposed, isolating parts by treating as variants those that differ by substituting one expression, and the parts recomposed into new sentences (1994, pp. 366–367). Literal parts are not even needed; similarities that behave like those substitution classes are enough (Brandom, 2007, p. 672). But there is a limit: that an apple is red follows from its being ripe and a Macintosh, not from either premise alone, and that cannot be computed from the parts. Languages are "compositional with respect to their substitution inferences, but not with respect to the rest" (2007, p. 675).
The issue became experimental with datasets like SCAN, where commands such as jump twice must be mapped to actions and the test set demands new combinations. Early results were underwhelming: networks did much worse on the test set than on the training set; later, various transformers reached good or perfect accuracy through architectural tweaks, data augmentation, or meta-learning (Millière & Buckner, 2024a, sec. 3.1). The question of how they do it remains. McCoy et al. (2026) show that the vector representations of several networks, including LLMs working on arithmetic, logic, code, and language, can be approximated by symbolic role–filler structures, and that intervening on those structures changes the model's behavior as predicted.
Buckner (2024), writing about generative image models, adds a nuance: the hard part of compositionality was never combining disparate features, which mere concatenation, an associative mechanism par excellence, already achieves, but working out how to place and fuse them into a semantically meaningful whole. Classical treatments like Fodor's never explained that semantic part of the problem, preferring the easier, syntactic pieces (2024, p. 218). And the second horn of Fodor and Pylyshyn's dilemma returns (a systematic network would merely implement a classical architecture): if a network implicitly realizes symbolic structure, as McCoy and colleagues suggest, does that vindicate Fodor, or does it show that compositionality does not require explicit symbols?