Abstract
Localizing objects in image collections without supervision can help to avoid expensive annotation campaigns. We propose a simple approach to this problem, that leverages the activation features of a vision transformer pre-trained in a self-supervised manner. Our method, LOST, does not require any external object proposal nor any exploration of the image collection; it operates on a single image. Yet, we outperform state-of-the-art object discovery methods by up to 8 CorLoc points on PASCAL VOC 2012. We also show that training a class-agnostic detector on the discovered objects boosts results by another 7 points. Moreover, we show promising results on the unsupervised object discovery task.
Introduction
Training modern object detectors typically requires massive datasets with hand-drawn bounding boxes, a process that is both expensive and time-consuming. Unsupervised object discovery aims to mitigate this by finding objects without human intervention. However, many existing methods suffer from high computational complexity, often requiring $O(N^2)$ comparisons across an entire image collection to find recurring patterns.
The LOST (Localizing Objects with Self-supervised Transformers) framework addresses two primary challenges: scalability and precision. By processing images individually ($O(N)$ complexity), LOST offers a scalable solution capable of generating high-quality pseudo-labels for training downstream detectors without any human-provided labels.
Methodology
LOST leverages a Vision Transformer (ViT) pre-trained with the DINO self-supervised method. The core intuition is that background patches (e.g., sky, grass) are highly correlated with many other patches in the image, whereas object patches are more unique and self-contained.
The localization process follows three main steps:
- Initial Seed Selection: A similarity graph is built from the ViT's "keys" in the last attention layer, which contain precise spatial information. The patch with the fewest positive correlations is selected as the "seed," representing a likely object part.
- Seed Expansion: The region is grown by adding neighboring patches that are highly correlated with the seed.
- Box Extraction: A binary mask is created, and a bounding box is drawn around the largest connected component.
Beyond initial localization, the authors use these unsupervised boxes to train standard object detectors (e.g., Faster R-CNN). This includes Class-Agnostic Detection (CAD) to find any object and Class-Aware Detection (OD), which uses K-means clustering to group discovered objects into categories.
Experiments and Results
The method was evaluated on PASCAL VOC 2007, 2012, and COCO 20k. LOST significantly outperforms previous state-of-the-art unsupervised discovery methods, such as rOSD and LOD, by up to 8 CorLoc points on PASCAL VOC 2012.
A key finding is the "self-training" boost: a detector trained on LOST's initial boxes outperforms the heuristic itself. This occurs because the detector learns to generalize, identifying multiple objects or handling complex scenes better than the initial single-object heuristic.
Key results include:
- Efficiency: Single-image processing ensures high scalability compared to dataset-wide methods.
- Detection Gains: Training a class-agnostic detector (CAD) on LOST outputs improved localization by an additional 7 points.
- Competitive Performance: In specific categories like "cat" or "horse," the fully unsupervised LOST+OD model rivals weakly-supervised models that use image-level labels.
Discussion and Limitations
While LOST represents a significant step forward, it faces challenges with overlapping instances of the same class, as the connected component analysis may merge them. Additionally, very large objects that dominate the frame can violate the "rarity" assumption of the seed selection process. Future work will explore using [CLS] token attention maps for filtering and extending the approach to unsupervised segmentation tasks.
Summary updated