Introduction
To build complex ideas, you must first learn to take them apart. This paper introduces Composition through Decomposition (CtD), a two-step training regime that enables AI agents to achieve near-perfect compositional generalization. By first learning to decompose images into basic concepts using a discrete codebook, agents can subsequently achieve "zero-shot" composition, combining these learned concepts to describe entirely novel objects.
The Challenge of Compositional Generalization
Compositionality—the ability to combine simple concepts (like "red" and "square") into complex meanings ("red square")—is a cornerstone of human language. While neural networks excel at pattern recognition, they notoriously struggle with compositional generalization. For instance, an agent might fail to describe a "blue circle" if it has only ever encountered "blue squares" and "red circles" during training.
In the field of Emergent Communication (EC), researchers attempt to evolve languages between AI agents. However, standard "referential games" (where one agent describes an object for another to identify) often result in "holistic" languages. In these languages, a single, uninterpretable symbol represents an entire complex object. The authors argue that the missing link is decomposition: agents cannot effectively compose complex phrases until they have learned to isolate and represent individual "building block" concepts.
Methods: Composition through Decomposition (CtD)
The authors propose a two-step scaffolding approach to solve this issue:
- The 'Decompose' Step: Agents play a multi-target coordination game. Instead of identifying one specific object, the sender must describe a set of objects that share a single common trait (e.g., all blue objects). To succeed, the agents must learn to ignore distracting features and isolate the core concept. These concepts are stored in a discrete codebook—a set of learnable vectors where each vector represents a "word" in latent space.
- The 'Compose' Step: The agents are then tasked with describing novel images that require combining multiple concepts (e.g., a "small blue triangle"). Because the agents already have a "vocabulary" of clean, decomposed concepts from Step 1, they can simply retrieve and concatenate the relevant codebook vectors.
Crucially, the authors demonstrate CtD-ZS (Zero-Shot), where agents trained only on the 'Decompose' step can immediately describe complex objects in the 'Compose' step without any additional training.
Key Insights
- Decomposition is a Prerequisite: Compositionality isn't just about sticking things together; it requires having clean, isolated parts to begin with. By forcing agents to solve multi-target games, they are "scaffolded" into learning disentangled representations.
- The Power of Multi-Target Games: In a standard 1-vs-1 game, an agent might use a "shortcut" to identify a target. In a multi-target game, the only way to win is to find the "common denominator" concept, naturally leading to a more human-like vocabulary.
- Features-as-Points: Representing concepts as discrete points in a codebook (rather than just directions in a continuous vector space) provides a necessary "discretization bias" that helps neural networks manipulate concepts like symbols.
Key Results
The study evaluates CtD across diverse datasets, including THING (synthetic objects), SHAPE (visual reasoning), MNIST (2-digit pairs), and COCO (real-world images).
- Near-Perfect Performance: On the THING and SHAPE datasets, CtD achieved 100% accuracy and perfect scores across compositionality metrics like Adjusted Mutual Information and Context Independence.
- Outperforming Baselines: CtD significantly outperformed standard communication methods like Gumbel-Softmax (GS) and standard Vector Quantization (QT), which often failed to generalize to novel concept combinations.
- Robustness on MNIST: Even on the more complex 2-digit MNIST task, CtD achieved high compositionality scores (CBM of 0.95), demonstrating its ability to handle visual variance better than holistic training approaches.
Limitations and Future Work
While highly effective, the current CtD framework has a few limitations:
- Oracle Supervision: The multi-target "Decompose" step currently requires an "Oracle" to group objects that share a concept. Moving toward self-supervised decomposition is a vital next step.
- Fixed Message Length: The model assumes a fixed number of concepts per object, whereas real-world communication requires variable-length messages.
- The "Bag-of-Words" Problem: The communication protocol relies on concatenated vectors, failing to account for word order or complex syntax (e.g., "the red ball on the blue table").
- Repeated Concepts: The system struggles to describe objects with repeating traits (like the number "11") because the codebook retrieval mechanism lacks the logic for sequential repetition.
Summary updated