Unsupervised Object Detection Pretraining with Joint Object Priors Generation and Detector Learning

Yizhou Wang, Meilin Chen, Shixiang Tang, Feng Zhu, Haiyang Yang, Lei Bai, Rui Zhao, Yunfeng Yan, Donglian Qi, Wanli OuyangNeurIPS 2022

In computer vision, most "unsupervised" success stories focus on pretraining the backbone—the part of the model that extracts features (the "eyes"). However, an object detector also relies heavily on a detection head—the part that actually draws bounding boxes (the "brain").

Traditionally, the detection head is either initialized from scratch or pretrained using hand-crafted heuristics like Selective Search or random cropping. These heuristics are problematic: they are computationally slow, they lack a true semantic understanding of what an object looks like, and they are static, meaning they do not improve as the model learns.

To address this, researchers have introduced JoinDet (Joint region priors generation and Detector learning), a novel unsupervised pretraining framework. JoinDet enables object detectors to learn both "what" and "where" an object is without any human labels by generating its own "object priors" and refining them through a stable feedback loop.

The JoinDet Framework

The core idea behind JoinDet is a self-reinforcing loop where the model's own internal knowledge provides the supervision for its training. Rather than relying on external, static heuristics, the model dynamically generates high-quality training signals (priors) during the learning process.

JoinDet framework and the mutual evolution of object priors over training epochs.

The framework operates through several key mechanisms:

  1. Region Generation Module: The model analyzes "eigen attention maps" extracted from its transformer encoder. Even without labels, these attention maps naturally highlight foreground regions (blobs of interest), providing a strong foundational guess for where objects might be.
  2. Instance Generation Module: The model uses its transformer decoder to predict specific bounding boxes. It then filters these boxes against the encoder's attention maps to ensure the predicted instances are actually located on the foreground, effectively filtering out background noise.
  3. Box Smooth Module: Because the model's predictions change every epoch, the self-generated "labels" are a moving target. To prevent training instability, the Box Smooth Module acts as a stabilizer. It uses a momentum-based update (similar to an exponential moving average) to blend current predictions with previous ones.
  4. Joint Optimization: The model is trained to predict these self-generated boxes while simultaneously reconstructing features from a pretrained self-supervised teacher (such as SwAV).

Key Insights: The Mutual Evolution Loop

The most significant breakthrough in JoinDet is the Mutual Evolution Loop. As the detector learns to localize better, the priors it generates become increasingly accurate. These refined priors then provide better supervision for the next epoch, creating a virtuous cycle of continuous improvement.

Furthermore, by using the encoder's attention maps to validate the decoder's box predictions, the model effectively uses its "global context" to sanity-check its "local instances." The authors also discovered that stability is more important than speed when updating pseudo-labels; the Box Smooth Module proves that a "slow and steady" update is far superior to chasing the most recent, potentially noisy predictions.

State-of-the-Art Results

The researchers evaluated JoinDet across standard benchmarks, including ImageNet and MS COCO, specifically focusing on "low-data regimes" where only 1% or 10% of available labels are used for finetuning.

JoinDet sets a new state-of-the-art for unsupervised detector pretraining:

  • Low-Data Dominance: On the COCO 1% and 10% benchmarks, JoinDet improved upon the previous best method (DETReg) by +1.3 AP and +1.7 AP, respectively.
  • Head Pretraining Matters: It outperformed standard backbone-only pretraining (like SwAV) by nearly 4.5 AP on 10% COCO, proving that pretraining the detection head is essential for downstream performance.
  • Efficiency: JoinDet demonstrates much faster convergence. In the early epochs of finetuning, it maintains a significant lead over competing methods, making it highly ideal for scenarios with limited compute or labeled data.

Limitations and Future Directions

While highly effective, JoinDet exhibits a "Big Object" bias. Because the method relies heavily on self-attention maps, it tends to focus on large, salient objects. Despite using data augmentations like scale jittering, the model still struggles with very small objects compared to fully supervised versions. Additionally, there remains a performance gap between JoinDet's self-generated proposals and "perfect" class-agnostic proposals derived from ground truth.

Future work will likely focus on closing this gap by exploring how to better detect a wider variety of object scales without supervision, potentially by incorporating more diverse data augmentations or more complex, multi-scale attention mechanisms.

Summary updated

BibTeX
@inproceedings{wang2022unsupervised,
  author = {Yizhou Wang and Meilin Chen and Shixiang Tang and Feng Zhu and Haiyang Yang and Lei Bai and Rui Zhao and Yunfeng Yan and Donglian Qi and Wanli Ouyang},
  title = {{Unsupervised Object Detection Pretraining with Joint Object Priors Generation and Detector Learning}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2022},
  url = {https://openreview.net/forum?id=Q0IZkt13ip},
}
Figure