Improved Object-Centric Diffusion Learning with Registers and Contrastive Alignment

Bac Nguyen, Yuhta Takida, Naoki Murata, Chieh-Hsin Lai, Toshimitsu Uesaka, Stefano Ermon, Yuki Mitsufuji

In the quest to make AI "see" the world more like humans do, Object-Centric Learning (OCL) is a holy grail. Instead of processing an image as a flat grid of pixels, OCL models attempt to decompose scenes into structured, interpretable "slots"—discrete representations of individual objects. While combining Slot Attention (SA) with powerful pretrained diffusion models has shown great promise, these architectures often suffer from "slot entanglement" (where one slot accidentally grabs pieces of multiple objects) and "weak alignment" (where slots fail to consistently map to distinct image regions).

A recent paper from researchers at Sony AI and Stanford University, titled "Improved Object-Centric Diffusion Learning with Registers and Contrastive Alignment," introduces CODA (Contrastive Object-centric Diffusion Alignment) to solve these exact issues. CODA makes OCL significantly more robust, particularly in messy, real-world scenes.

The Hurdles of Current OCL Models

Current state-of-the-art OCL models frequently use a pretrained diffusion model (like Stable Diffusion) as a decoder. However, they face two major roadblocks:

  1. Slot Entanglement: Because the softmax operation in attention mechanisms forces the model to distribute "attention mass" somewhere, slots often end up entangled. A single slot might encode a fragment of a car and a piece of the road, making it impossible to manipulate that object independently.
  2. Weak Alignment: Slots often fail to consistently correspond to distinct image regions. On real-world images, models frequently over-segment (splitting one dog into three slots) or under-segment (merging two people into one slot).

Without clean, disentangled slots, downstream tasks like removing or moving an object become glitchy and unreliable.

The CODA Approach

To overcome these limitations, the authors propose three elegant modifications to the standard Slot Attention and Diffusion pipeline:

Architecture of CODA, illustrating the use of register slots and the contrastive alignment objective to improve object-centric learning.
  • Register Slots: Inspired by recent findings in Vision Transformers, CODA adds "register slots"—input-independent slots that carry no semantic meaning. These act as attention sinks. When a part of the image (like a blurry background) doesn't strongly match any "object" slot, the attention mass is absorbed by the registers instead of being forced into an object slot. The authors note that the softmax constraint in cross-attention is a double-edged sword; providing registers as a dump for residual attention frees the semantic slots to focus purely on meaningful objects.
  • Contrastive Alignment Objective: The researchers introduce a contrastive loss that explicitly encourages a slot to match its parent image while discouraging it from matching others. Crucially, they use hard negatives: they create "fake" slot sets by swapping a few slots from one image into another. This forces the model to learn exactly which combinations of slots are semantically valid for a specific scene.
  • Lightweight Finetuning: To remove the "text-conditioning bias" inherent in models like Stable Diffusion (which expect text prompts, not abstract slot vectors), CODA finetunes only the key, value, and output projections in the cross-attention layers. This keeps the model efficient while improving slot-to-image alignment.

Mathematically, the authors prove that their training objective serves as a tractable surrogate for maximizing the Mutual Information (MI) between the slots and the input image.

Key Results and Insights

The model was evaluated on both synthetic datasets (MOVi-C and MOVi-E) and challenging real-world benchmarks (PASCAL VOC 2012 and COCO 2017). COCO is particularly difficult due to its cluttered scenes and high variety of object categories.

Qualitative comparison showing CODA's improved ability to extract clean, disentangled object slots compared to the Stable-LSD baseline.

CODA sets new benchmarks for unsupervised object discovery:

  • Object Discovery: On the highly complex COCO dataset, CODA improved the Foreground Adjusted Rand Index (FG-ARI) by +6.14% over strong baselines.
  • Real-World Segmentation: On VOC, it improved instance-level object discovery by nearly 4% in both mBO (Mean Best Overlap) and mIoU.
  • Zero-Cost Efficiency: Unlike adding complex adapter layers or training new encoders, register slots are just extra vectors. They add negligible computational overhead (only a 0.02% increase in GPU time) but provide a massive boost in performance.
  • Qualitative Generation & Editing: Unlike previous methods that produced blurry or "hallucinated" textures when generating from a single slot, CODA produces clear, faithful objects. It successfully allows for compositional editing—removing, adding, or swapping objects in real-world photos while maintaining high image fidelity.

Limitations and Future Work

While CODA represents a significant leap forward, it still shares a common limitation with most Slot Attention models: it requires the user to specify the number of slots in advance, rather than automatically deducing the number of objects in a scene. Additionally, because it relies on DINOv2 features and Stable Diffusion v1.5, it inherits any biases present in those pretrained backbones.

A natural next step for this research is scaling the approach to larger, more modern architectures like SDXL or Diffusion Transformers (DiTs) to achieve even higher reconstruction quality and fidelity.

Summary updated

BibTeX
@inproceedings{nguyen2026improved,
  author = {Bac Nguyen and Yuhta Takida and Naoki Murata and Chieh-Hsin Lai and Toshimitsu Uesaka and Stefano Ermon and Yuki Mitsufuji},
  title = {{Improved Object-Centric Diffusion Learning with Registers and Contrastive Alignment}},
  booktitle = {International Conference on Learning Representations},
  year = {2026},
  url = {https://openreview.net/forum?id=WQHj907qSI},
}
Figure