Introduction
Most successful self-supervised learning (SSL) models, such as MoCo or BYOL, treat an entire image as a single representation. This approach excels on "object-centric" datasets like ImageNet, where each image typically features one prominent object. However, real-world data—such as autonomous driving footage or crowded street scenes—is "scene-centric," containing multiple objects and complex layouts. Applying standard image-level SSL to scene-centric data ignores its intrinsic structure.
While recent works have attempted to address this by moving to pixel-level or object-level contrastive learning, they often rely on hand-crafted heuristics (like saliency maps or unsupervised object proposal algorithms) to locate objects. These hard-coded priors limit the model's ability to learn generalizable features directly from the data. To bridge this gap, this paper introduces SlotCon (Contrastive learning from data-driven semantic slots), a self-supervised learning framework designed to learn visual representations from complex, multi-object images without relying on hand-crafted objectness priors.
The SlotCon Framework
SlotCon couples two main objectives: semantic grouping and group-level representation learning. By jointly learning to group pixels into semantic "slots" and applying contrastive learning to these slots, the method decomposes a scene into semantic parts and learns rich representations from scratch.
- Semantic Grouping (Pixel-Level Deep Clustering): Using a student-teacher network architecture, the model assigns individual pixels to a set of $K$ learnable prototypes (cluster centers). To ensure meaningful groupings, the model enforces consistency between two augmented views of the same image. Because augmentations change spatial layouts, an inverse augmentation technique (RoIAlign) is used to perfectly align the spatial locations of the two views before calculating the grouping loss.
- Group-Level Representation Learning: The model uses the soft pixel assignments from the grouping step as attention weights. It pools the dense pixel features together to form group-level feature vectors, referred to as slots.
- Slot-Level Contrastive Learning: Finally, an InfoNCE contrastive loss is applied to these slots. The model is trained to pull together slots from different augmented views that share the same semantic prototype, while pushing away slots that represent different semantics.
Key Insights
- Learnable Scene Decomposition: The paper demonstrates that natural scenes can be decomposed into semantic groups in a fully learnable fashion, without human annotations or heuristic object-proposal algorithms.
- Emergent Objectness: By forcing the model to optimize for geometric and photometric invariance across views, it naturally learns to cluster pixels into meaningful objects and parts (e.g., separating animals, localizing small objects like stop signs) as a byproduct of representation learning.
- Closing the Domain Gap: Historically, models pre-trained on ImageNet vastly outperformed those pre-trained on scene-centric datasets like COCO for downstream tasks. SlotCon shows that by properly modeling the internal structure of scenes, scene-centric pre-training can match or exceed object-centric pre-training.
- The Granularity Bottleneck: The number of prototypes ($K$) acts as a bottleneck dictating how finely the model parses an image. For instance, $K=256$ is sufficient to separate different animal species in COCO, but might group human activities into broader "parts."
Datasets and Results
The model was primarily pre-trained on COCO train2017 (118K images) to evaluate scene-centric learning, with additional tests on COCO+ and ImageNet-1K to assess scaling and compatibility. Downstream evaluation spanned object detection, instance segmentation, and semantic segmentation across datasets like COCO, PASCAL VOC, Cityscapes, and ADE20K.
Key Achievements: * Object Detection & Segmentation: Pre-trained on COCO for 800 epochs, SlotCon achieved 41.0 AP on COCO object detection and 37.0 AP on instance segmentation, outperforming previous state-of-the-art object-level methods like ORL and DetCon. * Semantic Segmentation: The COCO-pretrained model reached 76.2 mIoU on Cityscapes and 39.0 mIoU on the highly challenging ADE20K dataset. * Unsupervised Semantic Segmentation: As a byproduct of its grouping mechanism, SlotCon achieved 18.26 mIoU on COCO-Stuff without any labels, beating the previous SOTA (PiCIE at 14.36 mIoU) by nearly 4 points. * Scaling Up: Pre-training on the larger ImageNet-1K dataset pushed COCO detection AP to 41.8, demonstrating high compatibility with object-centric data.
Limitations and Future Directions
While highly effective, the discovered "objectness" is strictly at the semantic level. If two instances of the exact same semantic class (e.g., two identical cars) are adjacent, the model cannot distinguish between them as separate instances. Additionally, the granularity of the learned concepts depends heavily on the chosen number of prototypes ($K$) and the dataset distribution. Future work may focus on extending this framework to differentiate between individual instances (instance-level grouping) and scaling to uncurated, real-world video or image datasets.
Summary updated