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

Provable Compositional Generalization for Object-Centric Learning

Thaddäus Wiedemer, Jack Brady, Alexander Panfilov, Attila Juhos, Matthias Bethge, Wieland Brendel

Humans possess a remarkable ability for "compositional generalization." If you have seen a red cube and a blue sphere, you can instantly imagine and recognize a blue cube, even if you have never encountered one before. Machine learning models, however, are notoriously brittle in this regard; they frequently fail when faced with Out-of-Distribution (OOD) combinations of previously learned concepts.

Object-centric learning (OCL) aims to solve this brittleness by decomposing a scene into modular "slots," where each slot represents a single object. The research community has long conjectured that this modularity should naturally lead to better generalization. However, a formal mathematical proof for this intuition has been lacking, and in practice, OCL models still often fail to generalize to OOD combinations because their encoders have not "seen" those specific configurations during training.

This paper bridges the gap between the intuitive appeal of OCL and the formal requirements of identifiability theory, providing a rigorous theoretical foundation for when object-centric models can provably generalize to novel combinations of objects.

The Requirements for Generalization

The authors identify two specific architectural and training requirements necessary to guarantee that an autoencoder will generalize compositionally:

1. Decoder Additivity

The decoder must be structured such that the final rendered image is simply the sum of individual object reconstructions (i.e., $f(z) = \sum \phi_k(z_k)$). This ensures that the way one object is rendered does not depend on the state or presence of another object. By preventing "entanglement" in the generative process, an additive decoder is theoretically capable of rendering novel combinations by design.

2. Compositional Consistency Loss ($L_{cons}$)

While an additive decoder can render new combinations, the encoder is typically the weak link: it may not know how to map novel OOD images back to the correct latent slots. To solve this, the authors introduce a novel algorithmic contribution: the compositional consistency loss.

Architecture diagram illustrating the recombination process and the compositional consistency loss.

This regularizer works by "imagining" new combinations during training:

  • It takes latent slots from two different training images.
  • It recombines them into a "fake" OOD latent code.
  • It renders this recombined code through the decoder to create a synthetic OOD image.
  • It then forces the encoder to map this synthetic image back to the original recombined slots.

By training on these synthetic combinations, the encoder learns to invert the decoder across the entire latent space, rather than just overfitting to the training distribution.

Experimental Validation

The authors evaluate their theoretical claims using synthetic multi-object data generated via Spriteworld, a 2D renderer used to create scenes with shapes varying in position, color, and scale.

To rigorously test generalization, the models are not trained on all possible combinations. Instead, the training set is restricted to a "slot-supported subset"—a diagonal slice of the latent space where objects only appear in specific, correlated configurations. Generalization is then measured on the "off-diagonal" combinations that the model never observed during training.

Evaluation of compositional generalization showing the training distribution (diagonal) versus OOD combinations, and the resulting MSE for different model configurations.

Key Results

The authors compared a standard Slot Attention baseline against their "Provable" version (Additive Decoder + Consistency Loss). The results strongly validate the theory:

  • OOD Identifiability: On unseen combinations, the proposed model achieved an $R^2$ score of 0.94, significantly outperforming the baseline's 0.81.
  • Reconstruction Quality: The OOD reconstruction $R^2$ improved dramatically from 0.71 (baseline) to 0.92 (proposed).
  • Ablation Study: Removing either the additivity constraint or the consistency loss led to a significant drop in OOD performance. As shown in the heatmaps above, a standard encoder paired with an additive decoder still fails outside the training distribution (Panel B). Only the full configuration with the consistency loss achieves low error across the entire space (Panel C).

Limitations and Future Work

While this paper provides a crucial theoretical stepping stone, it comes with practical limitations:

  • No Object Interactions: The "Additivity" assumption is mathematically convenient but physically limiting. It assumes objects do not interact—meaning no shadows cast by one object onto another, and no complex occlusions. Real-world scenes are rarely purely additive.
  • Computational Scaling: The consistency loss requires additional forward and backward passes. While manageable for scenes with two objects, the number of possible combinations grows combinatorially with the number of slots, which will necessitate smarter sampling strategies for more complex environments.
  • Synthetic Constraints: The theory relies on having a "slot-supported" training set. Applying these guarantees to complex, real-world datasets where ground-truth latents are entirely unknown remains a significant, open challenge for the field.

Summary updated

BibTeX
@inproceedings{wiedemer2024provable,
  author = {Thaddäus Wiedemer and Jack Brady and Alexander Panfilov and Attila Juhos and Matthias Bethge and Wieland Brendel},
  title = {{Provable Compositional Generalization for Object-Centric Learning}},
  booktitle = {International Conference on Learning Representations},
  year = {2024},
  url = {https://openreview.net/forum?id=7VPTUWkiDQ},
}
Figure