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

Learning Object-Centric Video Models by Contrasting Sets

Sindy Löwe, Klaus Greff, Rico Jonschkowski, Alexey Dosovitskiy, Thomas KipfarXiv 2020

Introduction

Object-centric learning aims to decompose complex visual scenes into a set of discrete variables, or "slots," each representing an individual object. Traditionally, this has relied on reconstruction-based objectives, such as Variational Autoencoders (VAEs), which require the model to recreate the original pixel values. While effective, pixel-level reconstruction is computationally intensive and often focuses on task-irrelevant details like fine textures or background noise.

Contrastive learning offers a promising alternative by training models to distinguish between similar and dissimilar data pairs in a latent space. However, applying standard contrastive losses to object slots introduces a "redundancy" problem. In a typical slot-wise contrastive setup, the loss function treats each slot independently. Consequently, there is no inherent pressure for the slots to coordinate; the model could theoretically represent the same object in every slot without penalty. This paper introduces SetCon, a global set-based contrastive loss designed to solve this coordination problem by incentivizing slots to collectively capture the entire scene's diversity.

Methodology: The SetCon Framework

The proposed architecture consists of four primary components designed to extract and evolve object-centric representations over time.

  1. Backbone Encoder: A standard Convolutional Neural Network (CNN) processes raw video frames into high-dimensional feature maps.
  2. Slot Attention: This module uses an iterative attention mechanism to "bind" specific regions of the feature map to individual slots. The authors utilize a simplified version with learned initializations to maintain efficiency.
  3. Transition Model: To capture temporal dynamics, a transition model predicts the future state of each slot representation based on its current state.
  4. Set Encoder (DeepSets): Instead of evaluating slots individually, a DeepSets architecture aggregates all slots into a single, permutation-invariant global scene vector.
The SetCon architecture: Frames are encoded into slots, which are then aggregated into a global scene representation for contrastive learning.

The Set Contrastive Loss (SetCon)

The core of the approach is the Set Contrastive Loss (SetCon). By applying an InfoNCE loss to the aggregated set of predicted slots at time $t+1$ against the aggregated set of actual slots extracted from the subsequent frame, the model is forced to ensure that the combined information across all slots accurately reflects the entire scene. This global objective naturally pushes different slots to represent different objects, as any redundancy would result in a loss of information about other scene elements, thereby increasing the contrastive loss.

Experimental Setup

The researchers evaluated SetCon on two synthetic video benchmarks:

  • Multi-Object GridWorld: A 5x5 grid featuring three moving colored pixels, serving as a baseline for basic object tracking and separation.
  • Bouncing Balls: A more complex environment with three colored balls moving in continuous 2D space, involving collisions with walls and other objects.

Results and Analysis

The performance of SetCon was compared against traditional reconstruction-based models and standard slot-wise contrastive baselines.

Quantitative comparison of SetCon against Reconstruction and Slotwise baselines across GridWorld and Bouncing Balls datasets.

Superior Object Separation

On the Bouncing Balls dataset, SetCon paired with Slot Attention achieved an Adjusted Rand Index (ARI)—a key metric for segmentation quality—of 75.3. In contrast, the standard slot-wise contrastive baseline struggled significantly, yielding a score of only 16.8. This result highlights the effectiveness of the set-based loss in enforcing slot diversity.

Competitive Performance

SetCon demonstrated performance levels competitive with reconstruction-based models. This suggests that global contrastive objectives can serve as a viable, more efficient alternative to pixel-pushing methods for learning object-centric representations. Furthermore, the use of Slot Attention allows the model to produce interpretable attention masks, providing visual evidence of the model's ability to track individual objects even without explicit reconstruction training.

Discussion and Future Work

While SetCon represents a significant step forward, several challenges remain. The model's ability to predict multiple steps into the future (up to 5 frames) shows a noticeable decay in representation quality. Future research could explore temporal constraints to stabilize latent representations over longer horizons.

Additionally, the current reliance on visual features like color to distinguish objects poses a challenge for scenes containing identical objects. "Symmetry breaking" in such scenarios remains an open problem. Finally, scaling these methods from synthetic, low-resolution environments to the visual complexity of real-world video is a primary goal for future iterations of this work.

Summary updated

BibTeX
@misc{lowe2020learning,
  author = {Sindy Löwe and Klaus Greff and Rico Jonschkowski and Alexey Dosovitskiy and Thomas Kipf},
  title = {{Learning Object-Centric Video Models by Contrasting Sets}},
  year = {2020},
  eprint = {2011.10287},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2011.10287},
}
Figure