TL;DR
State-of-the-art vision pretraining methods assume every image contains just a single dominant object, leading to noisy and entangled representations when multiple objects co-occur. This paper introduces Object-level Self-Distillation (ODIS), a method that shifts the self-distillation objective from the entire image to individual objects using object-aware cropping and masked attention. ODIS significantly improves both image- and patch-level visual representations, achieving an impressive 82.6% $k$-NN accuracy on ImageNet-1k with a ViT-Large backbone.
What Problem Does This Paper Address?
Popular self-supervised learning (SSL) frameworks like DINO and iBOT rely on image-level self-distillation. In these setups, a student network learns to match a teacher network's global embedding across different random crops of the same image.
However, this approach implicitly relies on a "single-object assumption." In reality, even curated datasets like ImageNet contain multiple objects in roughly 20% of their images, and scene-centric datasets (like COCO) are far more complex. When standard random cropping is applied to a multi-object scene, the teacher and student networks often look at entirely different entities (e.g., one crop captures an ox, while the other captures a barn). Forcing the model to map these distinct semantic concepts to the same global embedding entangles foreground objects with background noise and limits the model's ability to scale to complex, real-world scenes.
Methods
The authors propose Object-level Self-Distillation (ODIS) to transform a complex, scene-level task into simpler, object-level sub-tasks. ODIS modifies the standard teacher-student distillation pipeline via two key components:
- Object-Aware Cropping: Instead of cropping completely at random, ODIS utilizes binary object segmentation maps (or bounding boxes). If an image contains multiple objects, one is sampled as the target entity for the forward pass. The cropping mechanism resamples views (up to 20 times) to guarantee that the selected target object is present in both the student and teacher views.
- Masked Attention: Instead of using a standard global
[CLS]token, ODIS introduces an object-level token,[OBJ]. Inside the Vision Transformer (ViT) blocks, a Masked Multi-Head Attention mechanism restricts the[OBJ]token so that it only attends to patch tokens belonging to the target object.
Crucially, this restriction applies only to the [OBJ] token pooling process; the individual patch tokens can still attend to the entire image, allowing the model to leverage full contextual cues (like the surrounding grass or barn) to better describe the object.
The final loss function combines this object-level distillation loss with the patch-level masked image modeling loss inherited from iBOT.
Datasets
The models were pretrained and evaluated on several standard benchmarks:
- Pretraining: ImageNet-1k (IN1k) and COCO. For images lacking ground-truth masks, the entire image was treated as the object. The authors also tested off-the-shelf, class-agnostic segmenters (YOLO and MAVL) to generate masks automatically.
- Evaluation: ImageNet-1k (for $k$-NN and linear probing classification), PASCAL VOC, and ADE20k (for dense nearest neighbor patch retrieval).
Key Insights and Ideas
- Eliminating Background "Free-Riders": By forcing the
[OBJ]token to pool exclusively from tokens inside the segmentation mask, ODIS eliminates background noise and yields a cleaner object embedding with a higher signal-to-noise ratio. - The Subgraph Pooling Analogy: The authors elegantly frame an image as a fully-connected graph of patches. Traditional image-level distillation attempts graph-level pooling, which is highly complex for busy scenes. ODIS acts as subgraph pooling, isolating semantic units (objects) analogous to words in natural language processing.
- Masks as Free Supervision: Rather than ignoring the segmentation masks already bundled with many datasets, or failing to utilize modern zero-shot segmenters (like SAM), SSL pipelines can treat masks as a form of "free supervision" to learn spatially grounded features.
Key Results
ODIS consistently outperforms baseline image-level distillation methods across various model sizes (ViT-Small, Base, and Large):
- ImageNet-1k Classification: A ViT-Large model pretrained with ODIS achieved 82.6% $k$-NN accuracy when using masks at inference time—a +4.6% improvement over iBOT and a +0.6% improvement over the highly optimized DINOv2 model (which was trained on a much larger dataset). Even without inference-time masks, ODIS outperformed iBOT by 1.6%.
- Scene-Centric Scalability: When pretrained on the complex COCO dataset, ODIS improved $k$-NN performance on ImageNet by +4.2% compared to iBOT, proving its superior capability in handling scene-centric data.
- Patch-Level Performance: On dense retrieval tasks (PASCAL VOC and ADE20k), ODIS delivered substantial mean Intersection-over-Union (mIoU) gains over iBOT (e.g., +4.0 mIoU on PASCAL VOC for ViT-Large), showing that object-level objectives inherently improve patch-level feature quality.
Limitations and Future Work
- Computational Overhead: ODIS is currently slower during pretraining compared to iBOT (e.g., 15 minutes and 25 seconds per epoch vs. 10 minutes and 34 seconds for iBOT on a ViT-Small setup). This slowdown is primarily due to unoptimized object sampling during data loading.
- Single Object Bottleneck: The current implementation only samples a single target object per forward pass. Processing and distilling multiple objects simultaneously within a single forward pass remains an open direction to improve network efficiency.
- Scaling: Future work includes scaling ODIS to even larger foundation models (like ViT-Giant) and larger uncurated datasets (like ImageNet-22k).
Summary updated