Papers
Topics
Authors
Recent
Search
2000 character limit reached

Compute-Law Compositionality

Updated 22 December 2025
  • Compute-law compositionality is a framework that formalizes how meanings of complex expressions are systematically built from their parts using computable functions.
  • It integrates classical semantic theories, probabilistic algebras, and neural architectures, employing metrics like the modulus of continuity and variance-decline score to quantify composition.
  • The framework bridges linguistic, cognitive, and computational models, advancing our understanding of systematic generalization in both human cognition and artificial intelligence.

Compute-law compositionality concerns the existence, formalization, and empirical manifestation of explicit, quantitative principles—‘computable laws’—governing how the meanings of complex structures are determined by their parts and composition rules. This domain encompasses classical semantic theories, categorical models, symbolic and subsymbolic computational architectures, as well as neural and probabilistic systems. The study of compute-law compositionality aims to bridge linguistic, cognitive, and algorithmic models by making precise the mappings that underlie systematic generalization and emergent combinatorial capacity in both human cognition and artificial intelligence.

1. Formal Foundations of Compositional Law

Classical compositionality, in the Fregean tradition, asserts that for any complex expression EE constructed from sub-expressions AA, BB by combination rule CC, the meaning E\llbracket E \rrbracket is entirely determined by the meanings of AA, BB, and the operation CC: E=F(A,B,C)\llbracket E \rrbracket = F\left(\llbracket A \rrbracket,\, \llbracket B \rrbracket,\, C\right) where FF is a computable semantic-composition function. Category-theoretic generalizations formalize grammar as a category AA0 with objects (syntactic types) and morphisms (composition rules), with semantics as a functor AA1 into a semantic category AA2, enforcing

AA3

thereby ensuring that syntactic and semantic compositions commute (Russin et al., 2024).

In formal computational modeling, compositionality is specified by inductively defined sets and functions. For natural language, let AA4 (lexicon) and AA5 (strings) be as follows:

  • AA6
  • If AA7, then AA8

Constituent structures AA9 are defined by recursive Merge operations. At each level BB0, a (partial) semantic function BB1 computes higher-level structure meaning, preserving the meanings of subcomponents (Kaushik et al., 2020).

In probabilistic process algebras, the compositionality of an operator is quantified via its modulus of continuity BB2: BB3 where BB4 is a bisimulation pseudometric and BB5 is determined by the fixed-point on rule multiplicities (Gebler et al., 2014).

2. Core Set-theoretic and Functional Laws

Compute-law compositionality is captured by explicit set-theoretic and functional lemmas:

  • Non-isomorphism of domains: The linear domain of strings (BB6) is not isomorphic to constituent-time patterns (BB7), ensuring that meaning is not directly recoverable from the string alone. Each semantic function BB8 constructs higher-level meanings via partial, incremental application along structurally defined domains, culminating in a final interpretation BB9: CC0 for CC1 with CC2 levels of merge (Kaushik et al., 2020).
  • Weak Compositionality: Because each CC3 is partial, meaning is built in stages, ensuring that only complete structures (those with CC4 at the root) project uniquely to valid syntax trees.
  • Probabilistic Modulus of Continuity: For algebraic operators, the impact on process distance is bounded above by a law CC5 computed from rule multiplicities via a fixed-point: CC6 where CC7 is the least solution to CC8 (with CC9 defined from SOS rules) (Gebler et al., 2014).

3. Cognitive and Neural Constraints

Cognitive-plausible models impose architectural requirements and computational constraints stemming from these laws:

  • Constituents must be represented incrementally, indexed by string positions or time.
  • Semantic functions E\llbracket E \rrbracket0 operate in a strict bottom-up (and optionally top-down) manner, with operations applied in an online, left-to-right fashion.
  • Partial constituency representations are maintained; only at the root is full structure recovered.
  • Structure-dependent transformations are computed over constituent domains (E\llbracket E \rrbracket1), whereas rigid (structure-independent) operations can act only on strings (E\llbracket E \rrbracket2).

In the DORA model (a symbolic-connectionist role–filler binding architecture), these requirements are met via layered dynamical systems:

  • Four layers (Propositions, Role-Binder, Predicate/Object, Semantics)
  • Timing-based role–filler binding—temporal asynchrony encodes relations
  • Hebbian mapping and competitive inhibition realize incremental structure mapping
  • Empirical evaluations with word embeddings demonstrate that structural constraints prune mapping errors and optimize relational learning (Kaushik et al., 2020).

4. Compositionality in Deep Neural and Probabilistic Systems

Recent advances have produced explicit compute-law characterizations in deep learning and probabilistic scene parsing:

  • Neural Models: Compositionality may be “built in” using architectural inductive biases (role–filler separation, tensor-product binding, relational bottlenecks) or “learned” through meta-learning regimes. Metalearning discovers compositional algorithms through exposure to multiple tasks, resulting in an inner-loop implementation that generalizes systematically (Russin et al., 2024).
  • CLAP (Compositional Law Parsing): In visual reasoning, each concept E\llbracket E \rrbracket3 is mapped by a latent random function E\llbracket E \rrbracket4, instantiated as a Neural Process. The compositional law of a scene bundles E\llbracket E \rrbracket5. Laws may be composed across scenes by recombining latent variables E\llbracket E \rrbracket6 corresponding to each concept, enabling exchange and novel law formation. Compositionality is diagnosed by the variance-decline score, quantifying the match between learned latents and ground-truth sub-laws (Shi et al., 2022).
Method Law Formalization Empirical Domain
Symbolic (Kaushik) Partial semantics via E\llbracket E \rrbracket7 Natural language syntax/semantics
Probabilistic (Desharnais et al.) Modulus of continuity E\llbracket E \rrbracket8 via fixed points Probabilistic processes
Deep learning (CLAP) Latent random functions + variance-decline Scene/physics parsing
DNNs, LLMs Token-level composition + ICL NLP, code, reasoning

5. Quantitative Evaluation and Empirical Metrics

Compute-law compositionality enables quantitative assessment:

  • Geometric compositionality score: For phrase E\llbracket E \rrbracket9 in context, embedding AA0 aligns with context subspace AA1; compositionality is measured by

AA2

Values near 1 indicate literal (compositional) usage; scores near 0 identify idiomatic or metaphorical usage (Gong et al., 2016).

  • Variance-decline score (CLAP): For each concept–law, the score AA3 compares variance in AA4 with and without fixing law AA5: AA6 AA7 implies that AA8 encodes law AA9 (Shi et al., 2022).
  • Precision in mapping structure: In DORA, predicted mapping matrices are compared to ground-truth to compute precision (TP/(TP+FP)); performance increases when embedding structure better reflects syntax (Kaushik et al., 2020).

6. Emergent Laws in Large-scale Neural Systems

Empirical work demonstrates robust, quantitative “computable laws” connecting architecture, learning strategy, and compositional generalization:

  • Out-of-distribution generalization error decays exponentially in training examples under strong inductive biases: BB0 where BB1 is the compositional generalization rate for bias BB2.
  • Under metalearning, the inner-loop error on new composition tasks scales as BB3 in prompt-length BB4 and meta-training set size BB5.
  • Increasing model scale and corpus size in pre-trained DNNs leads to strengthening 'emergent' compositionality (Russin et al., 2024).

Instruction-tuned, large pre-trained models display compositional behaviors across NLP and medical reasoning, and code generation benchmarks. These findings position compute-law compositionality as the theoretical bedrock and practical instrument for both measuring and inducing systematic generalization in artificial and biological systems.

7. Worked Examples in Formal Compositionality

The application of these laws is exemplified in both symbolic and neural systems:

  • Natural language syntax: For BB6,

    1. BB7 assigns categories and position indices
    2. BB8 constructs NP, VP constituents
    3. BB9 merges to full S

    CC0

    CC1 is thus a composition of meanings from atomic terms and three merges (Kaushik et al., 2020).

  • Probabilistic operators: For non-deterministic choice CC2, the modulus CC3 is

    CC4

    and for probabilistic prefix CC5, CC6 (Gebler et al., 2014).

  • CLAP law composition: By swapping global latent variables CC7 between sample scenes A and B for concept sets CC8, new composed laws are instantiated, and decoded to generate scenes with combined sub-law behaviors (Shi et al., 2022).

These formal examples and empirical systems collectively instantiate compute-law compositionality as a rigorous, quantitative, and implementable principle across symbolic, probabilistic, and connectionist models.

Topic to Video (Beta)

No one has generated a video about this topic yet.

Whiteboard

No one has generated a whiteboard explanation for this topic yet.

Follow Topic

Get notified by email when new papers are published related to Compute-Law Compositionality.