NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Long-tailed Object Detection Pretraining: Dynamic Rebalancing Contrastive Learning with Dual Reconstruction

Chen-Long Duan, Yong Li, Xiu-Shen Wei, Lin Zhao

In the world of computer vision, we have become exceptionally good at identifying common objects like dogs, cars, and people. But what happens when a model encounters a "horse carriage" or a "tricycle"—objects that appear only a handful of times in a massive dataset? This is known as the long-tailed distribution problem, and it remains one of the biggest hurdles in object detection.

Researchers have recently introduced a new pre-training framework called 2DRCL (Dynamic Rebalancing Contrastive Learning with Dual Reconstruction) that specifically targets these rare "tail" classes.

TL;DR

2DRCL is a novel pre-training framework designed to improve object detection on imbalanced datasets. By combining image- and instance-level contrastive learning with a dynamic resampling strategy, and forcing the model to reconstruct both pixels and semantic features, it overcomes "simplicity bias." This leads to significant performance gains for rare objects without sacrificing accuracy on common ones.

The Problem with Standard Pre-training

Most object detection models rely on pre-training (usually on ImageNet) to initialize their weights. However, standard pre-training often fails in long-tailed scenarios for two main reasons:

  1. Data Imbalance: Models naturally gravitate toward "head" classes (common objects) because they see them more often, leaving "tail" classes (rare objects) poorly represented.
  2. Simplicity Bias: Deep networks are inherently "lazy." They tend to rely on the simplest predictive patterns (like background textures) rather than learning the complex, nuanced features needed to distinguish rare objects from their surroundings.

While many researchers try to fix this during the fine-tuning phase, this paper argues that the damage is often already done during pre-training. If the initial features are biased, the final detector will struggle to recover.

Methods: Introducing 2DRCL

The authors introduce 2DRCL, which stands for Dynamic Rebalancing Contrastive Learning with Dual Reconstruction.

2DRCL Framework Architecture

The framework consists of three main pillars:

  • Holistic-Local Contrastive Learning (HLCL): Standard contrastive learning looks at the whole image. HLCL adds a "local" component that uses a class-agnostic detector to pull out object proposals. This ensures the model learns both the global context and the specific details of individual objects, better aligning the pre-training task with the eventual goal of detection.
  • Dynamic Rebalancing (DRB): Instead of a static sampling rate, DRB evolves. Early in training, the model learns the general distribution of the dataset. As training progresses, the sampler dynamically shifts its focus toward underrepresented instances. It uses a harmonic mean of image-level and instance-level scores to ensure rare objects get the "screen time" they need.
  • Dual Reconstruction (DRC): To fight simplicity bias, the model is tasked with two types of reconstruction:
  • Appearance Reconstruction (AR): Forcing the model to reconstruct the original pixels. This ensures it doesn't ignore fine-grained visual details.
  • Semantic Reconstruction (SR): The model must maintain semantic consistency even when parts of an object are masked out. This forces it to learn robust, high-level relationships rather than just memorizing pixels.

Key Insights and Ideas

  • Pre-training Alignment Matters: The jump in performance suggests that pre-training the entire detector (including the detection head), rather than just the backbone, is crucial for downstream success.
  • The "Evolutionary" Sampler: By starting with the full distribution and gradually narrowing in on the tail, the model builds a solid foundation of general features before specialized learning begins. This prevents the model from overfitting on rare samples too early.
  • Reconstruction as an Anti-Shortcut: Simplicity bias is essentially the model taking a shortcut. By requiring the model to reconstruct the image, the authors effectively remove those shortcuts, forcing the model to "understand" the object's structure.

Key Results

The researchers evaluated their framework on major benchmarks including COCO and LVIS v1.0 (a massive, naturally long-tailed dataset with over 1,200 classes). The results on the LVIS dataset are particularly impressive.

Performance comparison on LVIS v1.0

When using a Mask R-CNN with a ResNet-50 backbone:

  • Rare Class Improvement: 2DRCL achieved an $\text{AP}_r$ (Average Precision for rare classes) of 11.9%, significantly outperforming other state-of-the-art pre-training methods like AlignDet (10.3%) and SoCo (5.3%).
  • Balanced Performance: On the standard COCO dataset, 2DRCL reached 41.4% mAP, beating the supervised baseline and other self-supervised methods. This proves that it helps long-tailed scenarios without hurting balanced ones.
  • Qualitative Wins: Attention maps show that 2DRCL focuses much more accurately on small, rare objects compared to previous methods, which often get distracted by background noise.

Limitations and Future Work

The primary trade-off for this performance is computational cost. The authors acknowledge that 2DRCL requires more VRAM and longer training times due to the dual reconstruction tasks and the holistic-local contrastive mechanism.

Future work will likely focus on optimizing efficiency—finding ways to get these same "tail-class" benefits without the heavy computational overhead. There is also potential to explore how this framework might scale to even larger foundation models in the future.

Summary updated

BibTeX
@inproceedings{duan2024long,
  author = {Chen-Long Duan and Yong Li and Xiu-Shen Wei and Lin Zhao},
  title = {{Long-tailed Object Detection Pretraining: Dynamic Rebalancing Contrastive Learning with Dual Reconstruction}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2024},
  url = {https://openreview.net/forum?id=mGz3Jux9wS},
}
Figure