Temporally Consistent Object-Centric Learning by Contrasting Slots

Anna Manasyan, Maximilian Seitzer, Filip Radovic, Georg Martius, Andrii Zadaianchuk

Abstract

Unsupervised Object-Centric Learning (OCL) aims to decompose visual scenes into discrete entities without manual labels. However, existing models often struggle with temporal consistency in video sequences, frequently "swapping" object representations (slots) between frames. We present SLOT CONTRAST, a framework that introduces a novel temporal contrastive loss to ensure slots remain consistent over time. By penalizing slot swapping and leveraging instance-specific signatures, SLOT CONTRAST achieves state-of-the-art performance on synthetic and real-world benchmarks like YouTube-VIS.

Introduction: The Challenge of Temporal Consistency

Object-Centric Learning (OCL) is a paradigm designed to decompose visual scenes into constituent parts—such as individual vehicles, pedestrians, or background elements—represented as "slots." In the context of video, OCL is particularly valuable for tracking entities across time.

Despite its potential, unsupervised OCL models frequently suffer from temporal inconsistency. Because these models are typically trained to reconstruct individual frames, they lack an explicit incentive to maintain the same slot assignment for a specific object across a sequence. An object might be assigned to Slot A in one frame and abruptly flip to Slot B in the next. This "slot swapping" phenomenon undermines the reliability of these models for critical downstream applications like autonomous driving and robotics, where object permanence is essential.

Methodology: SLOT CONTRAST

To address these inconsistencies, we propose SLOT CONTRAST, which enhances the standard Slot Attention architecture with two primary innovations: a contrastive loss and learned initialization.

The SLOT CONTRAST architecture utilizes a DINOv2 backbone and a recurrent Slot Attention module, incorporating a novel Slot-Slot Contrastive loss to maintain temporal consistency.

1. Slot-Slot Contrastive Loss ($\mathcal{L}_{ssc}$)

The core of our approach is a temporal contrastive objective. The model is trained to maximize the similarity between the same slot in consecutive frames (positive pairs) while minimizing similarity against all other slots in the batch (negative pairs). These negatives include other objects within the same video and objects from different videos in the training batch. This forces the model to learn unique, instance-specific signatures for every object, preventing it from relying solely on spatial proximity.

2. Learned Initialization ($S_0$)

Rather than initializing the first frame's slots with random noise, SLOT CONTRAST employs a fixed set of learned "starting queries." This initialization helps the model consistently assign specific object types or background regions to the same slots from the very beginning of a sequence.

The system utilizes a frozen DINOv2 backbone for high-level semantic feature extraction, which feeds into a Recurrent Slot Attention module to maintain state across time.

Experimental Setup

The model was evaluated on three major benchmarks representing varying levels of complexity:

  • MOVi-C & MOVi-E: Synthetic datasets featuring textured objects and complex camera motions, with MOVi-E containing up to 23 objects per scene.
  • YouTube-VIS (2021): A challenging real-world dataset of diverse web videos, serving as a rigorous test for unsupervised OCL.

Results and Key Insights

SLOT CONTRAST significantly outperforms previous state-of-the-art methods like VideoSAUR and STEVE.

Qualitative comparison between VideoSAURv2 and Slot Contrast. Red arrows highlight slot swapping in the baseline (e.g., the ping-pong player or giraffe changing colors), while green arrows demonstrate the stable tracking achieved by Slot Contrast.

Quantitative Performance

  • Object Discovery: On MOVi-E, the model achieved a Video FG-ARI of 82.9, compared to VideoSAUR’s 73.9.
  • Real-World Generalization: On YouTube-VIS, it reached an FG-ARI of 38.0, a substantial improvement over the previous best unsupervised result of 31.2.
  • Future Prediction: When integrated with SlotFormer for dynamics modeling, SLOT CONTRAST representations led to more accurate mask predictions (63.8 FG-ARI vs. 50.7 for the baseline).

Insights

  • Discovery via Contrast: The contrastive loss does more than just track; it improves initial segmentation quality by forcing slots to differentiate themselves at object boundaries.
  • Robustness to Occlusion: By anchoring slots temporally, the model can "remember" objects that disappear behind obstacles and reappear later, as the slot effectively waits for the object's return.

Limitations and Future Work

While SLOT CONTRAST marks a significant step forward, some challenges remain. The model currently uses a fixed slot count, which can lead to object merging in crowded scenes or redundant slots in sparse ones. Additionally, there is no explicit mechanism to control the granularity of decomposition (e.g., whole body vs. limbs). Future research will explore integrating this contrastive loss with generative models and applying it to complex robotic planning tasks requiring long-term object permanence.

Summary updated

BibTeX
@inproceedings{manasyan2025temporally,
  author = {Anna Manasyan and Maximilian Seitzer and Filip Radovic and Georg Martius and Andrii Zadaianchuk},
  title = {{Temporally Consistent Object-Centric Learning by Contrasting Slots}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2025},
  doi = {10.1109/cvpr52734.2025.00508},
}
Figure