[Paper Review] Slot Contrastive Networks: A Contrastive Approach for Representing Objects
Slot Contrastive Networks (SCN) introduce a contrastive learning approach for unsupervised object representation by leveraging temporal motion in video sequences. The method learns distinct, discriminative slot representations through a time-contrastive loss and a novel slot diversity loss, achieving state-of-the-art performance on Atari games with improved slot accuracy and modularity compared to prior self-supervised methods.
Unsupervised extraction of objects from low-level visual data is an important goal for further progress in machine learning. Existing approaches for representing objects without labels use structured generative models with static images. These methods focus a large amount of their capacity on reconstructing unimportant background pixels, missing low contrast or small objects. Conversely, we present a new method that avoids losses in pixel space and over-reliance on the limited signal a static image provides. Our approach takes advantage of objects' motion by learning a discriminative, time-contrastive loss in the space of slot representations, attempting to force each slot to not only capture entities that move, but capture distinct objects from the other slots. Moreover, we introduce a new quantitative evaluation metric to measure how "diverse" a set of slot vectors are, and use it to evaluate our model on 20 Atari games.
Motivation & Objective
- To address the limitations of generative models in unsupervised object representation, which waste capacity on background pixels and fail to capture small or low-contrast objects.
- To overcome the reliance on static images in existing contrastive methods by exploiting temporal motion as a self-supervised signal for object discovery.
- To improve slot disentanglement by introducing a slot contrastive loss that encourages each slot to represent a unique object distinct from others.
- To develop a new quantitative metric—slot modularity and compactness—to evaluate the diversity and coherence of learned slot representations.
- To demonstrate that temporal contrastive learning in slot space enables more robust and structured object representations than static image-based approaches.
Proposed method
- The model uses a CNN encoder to process video frames, followed by spatial partitioning of feature maps into K 'slot maps' for K object slots.
- Each slot map is independently encoded into a slot vector via a shared-weight sub-network (convolutional layer + MLP), enabling parameter sharing and invariance.
- A time-contrastive loss is applied between consecutive frames, contrasting the same slot across time (positive pairs) against random, non-consecutive time steps (negative pairs).
- A slot contrastive loss is introduced to maximize the dissimilarity between different slot vectors at the same time step, promoting diversity and disentanglement.
- The loss function combines two terms: (1) a time-contrastive loss for slot saliency and (2) a slot contrastive loss for slot diversity, both using InfoNCE contrastive objectives.
- The model is trained end-to-end on video sequences from Atari games, with evaluation via linear probe regression of object positions and new metrics for slot quality.
Experimental results
Research questions
- RQ1Can temporal motion be effectively leveraged to learn disentangled, object-centric representations without supervision?
- RQ2Does introducing a slot contrastive loss improve the diversity and distinctiveness of learned object slots compared to time-contrastive-only methods?
- RQ3How do the proposed slot modularity and compactness metrics correlate with downstream task performance on object localization?
- RQ4To what extent does the slot contrastive loss contribute to disentanglement, and is it necessary for performance?
- RQ5Can a contrastive approach in slot space outperform both generative models and other self-supervised methods on video-based object discovery?
Key findings
- SCN achieves a mean slot accuracy of 0.45 across 20 Atari games, significantly outperforming random-CNN (0.39) and competitive with supervised models.
- The model improves slot modularity to 0.0045 (up from 0.0041 without the diversity loss), though the gain is minimal, suggesting limited impact on disentanglement.
- Slot compactness improves to 0.0137 with the diversity loss, indicating better localization of slots to single objects, though still far from supervised baselines.
- In games like Freeway and Bowling, SCN achieves high slot accuracy (0.83 and 1.00 R²), demonstrating strong performance on predictable motion.
- SCN outperforms CSWM in games with irregular motion (e.g., Boxing, VideoPinball), where CSWM struggles due to reliance on predictable dynamics.
- The ablation study shows that removing the slot diversity loss slightly improves compactness but reduces accuracy, indicating a minor regularization effect without strong disentanglement.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.