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

What Drives Compositional Generalization? The Importance of Continuous Training Objectives in Visual Generative Models

Karim Farid, Rajat Sahay, Yumna Alnaggar, Simon Schrodi, Volker Fischer, Cordelia Schmid, Thomas Brox

TL;DR

This paper investigates what makes visual generative models good at "compositional generalization" – creating novel combinations of known concepts. They find that continuous training objectives are crucial, outperforming discrete ones, and that providing complete conditioning information during training is essential. This work suggests a shift towards continuous objectives for building more robust and creative generative AI.

What Problem Does This Paper Address?

Visual generative models, like those creating realistic images and videos, are impressive but often struggle with compositional generalization. This means they can generate things they've seen during training, but have trouble combining known concepts in novel ways (e.g., generating a "red, smiling, woman with blonde hair" if they've only seen "red, non-smiling woman with blonde hair" and "smiling man with black hair"). This limitation hinders their ability to be truly creative and reliably generate unseen combinations. The paper aims to systematically understand why this happens and identify the key design choices that enable or inhibit compositional generalization.

Methods

The authors employ a systematic experimental approach to isolate the factors influencing compositional generalization. They compare two canonical generative model families: DiT (Diffusion Transformer), which uses a continuous latent space and denoising objective, and MaskGIT (Masked Generative Image Transformer), which uses a discrete latent space and a masking-based objective.

They then "interpolate" between these models by systematically varying key design axes:

  • Tokenizer: Investigating the impact of discrete (VQ-VAE) versus continuous (VAE) tokenizers.
  • Training Objective: Comparing discrete (categorical NLL) versus continuous (diffusion, GMM-NLL) objectives.
  • Conditioning Information: Analyzing the effect of complete, quantized, or partially missing conditioning signals.

To enhance discrete models, they introduce an auxiliary continuous relaxation objective inspired by Joint Embedding Predictive Architectures (JEPA). This objective aims to encourage continuous representations within the discrete model's intermediate layers.

They also perform mechanistic analyses, including polysemanticity analysis of attention heads and circuit similarity analysis, to understand how learned representations contribute to compositional generalization.

Datasets

The paper uses a variety of datasets for training and evaluation:

  • Shapes2D: A synthetic dataset with three binary factors (shape, color, size) designed for studying compositional generalization.
  • Shapes3D: A more complex synthetic dataset with six independent factors, used to test generalization across more intricate combinations.
  • CelebA: A real-world dataset of faces, using attributes like gender, smile, and hair color to assess generalization on natural images.
  • CLEVRER-Kubric: A dataset of physics-based scenes for video generation, used to evaluate compositional generalization in a video modality.
  • CoVLA: A real-world driving video dataset, used to test findings on complex scenarios with implicit factors.
  • Points24: A card arithmetic dataset, used to explore compositional generalization in language models.

Key Insights and Ideas

  • Continuous is Key: The most significant finding is that models trained with continuous training objectives (like diffusion or GMM-NLL) consistently exhibit much stronger compositional generalization than those trained with discrete, categorical objectives (like MaskGIT's categorical NLL). This holds true regardless of other design choices.
  • Completeness Matters: Providing full and precise conditioning information about all generative factors during training is critical for robust compositional generalization. Quantized or incomplete conditioning (e.g., using "red" instead of RGB values, or dropping factors) significantly impairs performance.
  • Tokenizer is Secondary: The choice of tokenizer (discrete vs. continuous) does not fundamentally alter compositional abilities. It primarily affects training efficiency and stability.
  • JEPA Boosts Discrete Models: Augmenting discrete models (like MaskGIT) with an auxiliary JEPA-based continuous objective can partially recover compositional capabilities, suggesting that continuous latent representations are beneficial even within a discrete framework.
  • Disentangled Representations: The JEPA-based objective appears to promote more disentangled and semantically structured representations, leading to less polysemantic attention heads and more factor-specific circuits.

Key Results

  • Shapes2D: DiT consistently achieves near-perfect compositional generalization across all tested compositions, while MaskGIT struggles significantly, especially on level-2 compositions (differing by two factors).
  • CelebA: DiT shows a clear advantage in compositional retrieval accuracy, outperforming MaskGIT and even the JEPA-enhanced MaskGIT.
  • CLEVRER-Kubric: Continuous models (DiT, MAR) show better level-2 composition performance than MaskGIT.
  • CoVLA: Orbis-DiT substantially outperforms Orbis-MaskGIT on novel compositions, aligning with findings from synthetic datasets.
  • Language Models: Continuous reasoning strategies (COCONUT) show significantly higher success rates on a card arithmetic task compared to standard chain-of-thought (CoT), suggesting transferability of the continuous objective principle.

Limitations and Future Work

  • Real-World Complexity: While the study uses real-world datasets like CelebA and CoVLA, the authors acknowledge that real-world scenarios often involve more implicit conditioning and scaling challenges that are left for future work.
  • Language Modality: The language experiments are small-scale and serve as an initial exploration. Further investigation into richer tasks and larger models is needed.
  • Engineering Refinements: The study focuses on isolating core design axes, and the authors note that engineering refinements could be applied to any model.
  • Future Directions: The paper motivates a shift towards continuous objectives for compositional generalization. Future work could explore designing new objectives and conditioning strategies that better preserve semantic structure and enable more creative and trustworthy AI.

Summary updated

BibTeX
@inproceedings{farid2026what,
  author = {Karim Farid and Rajat Sahay and Yumna Alnaggar and Simon Schrodi and Volker Fischer and Cordelia Schmid and Thomas Brox},
  title = {{What Drives Compositional Generalization? The Importance of Continuous Training Objectives in Visual Generative Models}},
  booktitle = {World Models @ ICLR},
  year = {2026},
  url = {https://openreview.net/forum?id=k5Kh1XviiM},
}
Figure