Deeply Unsupervised Patch Re-Identification for Pre-Training Object Detectors

Jian Ding, Enze Xie, Hang Xu, Chenhan Jiang, Zhenguo Li, Ping Luo, Gui-Song XiaIEEE TPAMI 2024

TL;DR

This paper introduces Deeply Unsupervised Patch Re-ID (DUPR), a novel self-supervised pre-training method that learns discriminative local features for object detection. By treating image patches as unique identities and matching them across different views, DUPR significantly improves performance on object detection tasks compared to existing unsupervised methods and even supervised pre-training.

What Problem Does This Paper Address?

Pre-training deep learning models on large datasets has become a standard practice for improving performance on downstream tasks like object detection. However, most current unsupervised pre-training methods focus on learning global image representations, which are well-suited for image classification but fall short for object detection. Object detection requires understanding fine-grained local features within an image to accurately identify and localize objects. This mismatch between global representation learning and the local nature of object detection limits the effectiveness of existing unsupervised pre-training techniques. Furthermore, object detectors often rely on multi-level feature maps, meaning discriminative features are needed across different layers, not just the final one.

Methods

The core innovation of DUPR is its Patch Re-ID pretext task. Instead of learning global image similarities, DUPR treats individual image patches as "pseudo-identities." It then learns to match these identical patches across two different views of the same image, generated through data augmentation. This process forces the model to learn features that are spatially sensitive and discriminative at a local level.

DUPR also incorporates a deeply unsupervised training strategy. This means it extracts features from multiple levels of the backbone network (not just the final layer), aligning with how modern object detectors like FPN and PANet utilize multi-scale features. Both image-level and patch-level contrastive losses are applied in parallel across these feature levels. The image-level loss helps retain semantic information for classification, while the patch-level loss ensures spatial sensitivity for localization. The authors leverage the MoCo framework and InfoNCE loss for their implementation, but note that the Patch Re-ID task is flexible and can be integrated with other self-supervised learning frameworks.

Datasets

  • Training: ImageNet (unlabeled)
  • Evaluation:
    • PASCAL VOC (object detection)
    • COCO (object detection, instance segmentation, keypoint detection)
    • Cityscapes (semantic segmentation, instance segmentation)
    • LVIS (instance segmentation)

Key Insights and Ideas

  • Local features are crucial for object detection: The paper strongly argues that the gap between unsupervised pre-training and object detection performance stems from the focus on global vs. local features. DUPR's success validates this.
  • Patch Re-ID as a powerful pretext task: Treating patches as identities and learning their correspondence across views is a novel and effective way to learn spatially sensitive representations.
  • Multi-level feature learning is essential: Object detectors leverage features from various layers. DUPR's approach of applying its pretext task across multiple feature maps directly addresses this need.
  • Spatial sensitivity matters more than pure classification accuracy for object detection: The paper shows that methods with slightly lower ImageNet classification accuracy can achieve better object detection results if they learn better spatial localization features. DUPR demonstrates this trade-off effectively.

Key Results

DUPR consistently outperforms state-of-the-art unsupervised pre-training methods and even ImageNet supervised pre-training across various object detection and related downstream tasks.

  • PASCAL VOC: DUPR achieves a significant improvement of 7.3 AP points over ImageNet supervised pre-training and 2.0 AP points over MoCo v2. Crucially, it shows a larger gain in AP75 (localization-focused metric) compared to AP50, indicating improved localization.
  • COCO: On Mask R-CNN R-50-FPN, DUPR outperforms MoCo v2 by 1.1 mAP (2x schedule) and supervised pre-training by 1.0 mAP. It also shows faster convergence, outperforming MoCo v2 by 2.9 mAP at only 12k training iterations.
  • Other Tasks: DUPR also shows strong performance on Cityscapes (semantic and instance segmentation), COCO keypoint detection, and LVIS instance segmentation, demonstrating its generalization capabilities.
  • Visualization: Visualizations confirm that DUPR learns more spatially sensitive features than MoCo v2, better distinguishing between ground truth boxes and RoIs at different IoU levels. It also shows improved patch correspondence between views.

Limitations and Future Work

  • Memory Usage: The current implementation of DUPR relies on multiple memory banks, which can be memory-intensive. The authors suggest exploring ways to apply DUPR to other self-supervised learning methods to potentially reduce this.
  • Static Images: The current work focuses on static images. The authors suggest extending DUPR to leverage temporal information from videos for learning spatial-temporal representations.
  • Data Augmentation Pipeline: Further research into designing more suitable data augmentation pipelines specifically for dense prediction tasks is suggested.
  • Balancing Losses: While DUPR achieves good results, the paper notes that balancing the image-level and patch-level contrastive losses for optimal performance across different tasks (especially those with many classes like COCO) is an area for further exploration.

Summary updated

BibTeX
@article{ding2024deeply,
  author = {Jian Ding and Enze Xie and Hang Xu and Chenhan Jiang and Zhenguo Li and Ping Luo and Gui-Song Xia},
  title = {{Deeply Unsupervised Patch Re-Identification for Pre-Training Object Detectors}},
  journal = {IEEE Trans. Pattern Anal. Mach. Intell.},
  year = {2024},
  url = {https://openreview.net/forum?id=Yl7L70jhmF},
}
Figure