Defining and Generating Compositional Structure
Organizations: Mila – Quebec AI Institute · Université de Montréal · Google Paradigms of Intelligence Team · LawZero
Abstract
Compositional structure is pervasive in nature and across scales: atoms combine into molecules, molecules into cells, and cells into organisms, while further compositional hierarchies appear within each level. More broadly, compositionality, the reuse and recombination of parts into novel structures, is a fundamental source of interesting complexity in both natural and artificial systems. Yet despite its importance, and despite our apparent ease in recognizing it, mathematical accounts capturing what we intuitively mean by compositional structure remain limited. Here, we fill this gap by formalizing a simple idea: compositional structure emerges when parts, considered together, reveal shared structure that is not captured when those parts are modeled separately. We express this idea using algorithmic information theory, the mathematics of information and compression, which provides a natural way to identify structure in arbitrary data without specifying in advance what that structure must look like. Applied across scales, our definition informs where and how compositional structure emerges within an object. Using tractable approximations, we then invert the framework to generate compositional objects: we specify the desired form of their compositional structure without prescribing their particular content, and optimize directly over strings and images. The resulting objects exhibit readily recognizable hierarchical reuse and part-whole organization, suggesting that the definition captures compositional structure rather than merely complexity, regularity, or shared information. Finally, we discuss implications for machine learning, including a new perspective on depth in neural architectures and principles for constructing compositional data curricula capable of supporting open-ended learning.
Figures & tables
Appendix figures & tables5 assets
Supplementary material from the paper’s appendix.
Appendix
| Setting | Value |
| Population and initialization | feed-forward genomes; initially no hidden nodes, with both coordinate inputs fully connected to all three outputs |
| Activations | Hidden-node default tanh; mutation options identity, sigmoid, tanh, and Gaussian; activation mutation probability ; output activations fixed to tanh |
| Structural mutation | Add connection ; delete connection ; add node ; delete node |
| Weights and biases | Gaussian initialization with mean and standard deviation ; weight mutation probability ; bias mutation probability ; replacement probability ; additive-mutation standard deviation ; values clipped to |
| Speciation | Compatibility threshold ; coefficient for nodes or connections present in only one genome; coefficient for weight differences |
| Stagnation | Species considered stagnant after generations without improvement; the three highest-fitness species protected from stagnation removal |
| Metric | Description |
| Nodes | Number of hidden nodes. |
| Connections | Number of connections between nodes. |
| Depth | Longest input-to-output path length, measured in connections. |
| Number of distinct input-to-output paths. | |
| Fan-out (max) | Maximum number of connections going out of a hidden node. |
| Fan-in (max) | Maximum number of connections going in to a hidden node. |
Compositional Image Generation
Compositional image generation studies how to combine objects, attributes, spatial relations, and visual references into coherent, controllable images.
See all 85 papers