NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Compositional Abilities Emerge Multiplicatively: Exploring Diffusion Models on a Synthetic Task

Maya Okawa, Ekdeep Singh Lubana, Robert P. Dick, Hidenori Tanaka

Abstract

Modern generative diffusion models often exhibit "emergent" capabilities, where the ability to compose complex concepts appears suddenly during training. This paper investigates the mechanics of this phenomenon using a controlled experimental framework. By representing concepts as nodes in a graph, the researchers demonstrate that compositional success is a multiplicative function of the model's proficiency in individual attributes. This relationship explains why performance on novel combinations lags behind individual trait acquisition and follows a predictable sequence based on "concept distance."

Introduction

Large-scale generative AI models, such as Stable Diffusion, demonstrate a remarkable ability to synthesize images from complex prompts. However, they frequently stumble when asked to generate novel combinations of attributes—a challenge known as compositional generalization. While a model might easily render a "red circle" or a "blue square" seen during training, it may fail to produce a "blue circle" if that specific combination was absent from the dataset.

This paper seeks to demystify why these capabilities emerge and why they often appear as sudden jumps in performance. By moving away from the complexity of natural language and billion-parameter models, the authors utilize a "Model Experimental Systems" approach to map the precise trajectory of how diffusion models learn to compose.

Methodology: The Concept Graph Framework

To isolate the variables governing composition, the researchers developed a synthetic environment where every attribute is quantifiable.

Concept Graphs

The world is represented as a graph where each node is a "concept class" (e.g., a large red triangle). Nodes are connected if they differ by exactly one attribute. This allows the researchers to measure "Concept Distance":

  • Distance 0 (D0): Combinations present in the training set.
  • Distance 1 (D1): Combinations one attribute change away from training data.
  • Distance 2 (D2): More complex combinations requiring multiple attribute shifts.

Model Architecture and Probing

The study employs a standard U-Net-based conditional diffusion model. Instead of text embeddings, the model is conditioned on simple binary tuples (e.g., [1, 0, 1]) representing shape, color, and size. To monitor the model's internal state, the authors used linear probes—simple classifiers trained on generated images—to measure how accurately the model renders individual attributes at various stages of training.

Key Insights

The Multiplicative Effect

The study's most significant finding is that the probability of a model successfully generating a composite concept is the product of the probabilities of generating its constituent parts. For example, if a model has an 80% accuracy for "red" and an 80% accuracy for "triangle," its success rate for a "red triangle" will be approximately 64% ($0.8 \times 0.8$). This multiplicative relationship explains the "emergence" phenomenon: as individual attribute accuracies move from 90% to 99%, the composite accuracy jumps from 81% to 98%, creating the illusion of a sudden breakthrough.

Sequential Emergence and Distance

Generalization follows a strict hierarchical order. Models master D0 (training data) first, followed by D1, and finally D2. In synthetic tests, D1 combinations reached near-perfect accuracy around epoch 20, while D2 combinations required until epoch 40 to stabilize. This suggests that the model must first build a robust internal representation of individual attributes before it can bridge the gap to distant, unseen combinations.

The Critical Frequency Threshold

There is a "tipping point" for learning. A model requires a minimum frequency of a concept in the training data to learn it at all. Interestingly, different attributes have different thresholds; for instance, a model might learn "color" with very few examples but require significantly more data to master "shape."

Experimental Results

Synthetic Shapes

Using a dataset of 5,000 rendered 2D shapes, the researchers withheld specific combinations (e.g., "small blue triangle") to test generalization. Probing revealed that "Color" often acted as a bottleneck. The model would correctly identify the requested shape and size long before it could successfully apply an out-of-distribution color, confirming that compositional failure is often tied to the weakest link in the attribute chain.

Real-World Validation: CelebA

To ensure these findings generalize beyond toy datasets, the authors validated their hypotheses on the CelebA facial dataset. By analyzing attributes like gender, hair color, and expression, they confirmed that the model learned underrepresented combinations much later in training, strictly following the concept distance rules observed in the synthetic tasks.

Discussion and Limitations

While this framework provides a rigorous look at diffusion mechanics, it operates in a simplified environment. The use of binary tuples sidesteps the complexities of natural language and CLIP embeddings used in production models. Furthermore, the models used are smaller than state-of-the-art giants, leaving open the question of how these multiplicative rules scale with trillions of parameters.

Despite these limitations, the work has significant implications for AI safety. By understanding the "critical frequency threshold," researchers can potentially determine exactly how much of a harmful concept needs to be removed from a dataset to prevent a model from being able to compose or generate it entirely.

Summary updated

BibTeX
@inproceedings{okawa2023compositional,
  author = {Maya Okawa and Ekdeep Singh Lubana and Robert P. Dick and Hidenori Tanaka},
  title = {{Compositional Abilities Emerge Multiplicatively: Exploring Diffusion Models on a Synthetic Task}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2023},
  url = {https://openreview.net/forum?id=frVo9MzRuU},
}
Figure