TL;DR
METR introduces a language-aware pretraining framework that allows DETR-like object detectors to be jointly trained on multiple independent datasets without manual label space integration. By converting multi-class classification into a binary matching problem via language embeddings, METR significantly accelerates training convergence and boosts downstream detection performance across various DETR architectures.
What Problem Does This Paper Address?
Pretraining on large-scale datasets is a proven way to boost the performance of computer vision models. However, creating massive, unified datasets for object detection is incredibly expensive due to the high labor cost of annotating bounding boxes. While the community possesses numerous isolated, domain-specific datasets, combining them into a single pretraining pool is highly challenging due to taxonomy inconsistency.
Different datasets define categories at different granularities or use different terms for similar concepts (e.g., one dataset might use "football" while another uses "soccer"). Manually merging these label spaces is tedious, subjective, and prone to errors. The authors introduce METR to bypass manual label integration entirely, enabling seamless multi-dataset pretraining for DEtection TRansformers (DETRs).
Methods
METR redefines the standard object detection paradigm. Instead of forcing a network to predict a specific class out of a massive, combined multi-class label space, METR converts the problem into a series of binary classification tasks ("Does this image region contain category X?").
The architecture consists of a standard CNN backbone, a transformer encoder/decoder, and two novel components:
- Category Extraction Module (CEM): METR utilizes a frozen text encoder (from CLIP) to generate language embeddings for all categories across all training datasets. The CEM takes the image features and these language embeddings, using cross-attention to predict a score for which categories are actually present in the image. The top-$K$ highest-scoring categories are then assigned to the detector's content queries.
- Group Bipartite Matching: Standard DETR models use a global one-to-one matching strategy to pair predicted objects with ground truths. Because METR pre-assigns specific categories to queries, it introduces a group bipartite matching strategy. This restricts ground-truth objects to only match with queries assigned to the exact same category, preventing cross-dataset semantic confusion during training.
Datasets
The authors evaluated METR across two distinct paradigms:
- Multi-Dataset Joint Training: Evaluated using a mix of four distinct datasets: COCO, Pascal VOC, WIDER FACE, and WIDER Pedestrian.
- Large-Scale Pretraining: Pretrained on two massive public datasets: Objects365 and OpenImages V4.
- Downstream Fine-tuning: Evaluated on the standard COCO val2017 benchmark.
Key Insights and Ideas
- Language as a Universal Label Space: By leveraging pre-trained language embeddings (CLIP), the model treats text as a continuous, shared semantic space. This completely eliminates the need for hard-coded, manual label mapping between disparate datasets.
- Divide-and-Conquer Queries: Pre-defining the category of an object query before it enters the transformer decoder prevents the model from getting confused by overlapping semantics. A query looking for a "football" won't mistakenly match a "soccer ball" ground truth from a different dataset.
- Remarkable Transferability: Because the language-driven query initialization happens independently of the core transformer architecture, the weights learned during METR pretraining can be flexibly transferred into other popular DETR variants (like Deformable DETR or DINO).
Key Results
- Significant Performance Gains: When pretrained on Objects365 and OpenImages and fine-tuned on COCO, METR achieved a 52.4 mAP, representing a massive +4.8 mAP boost over the baseline model trained from scratch.
- Architectural Flexibility: Injecting METR's pretrained weights into other architectures consistently yielded strong improvements: +2.7 mAP for Deformable DETR, +2.6 mAP for DAB-Deformable DETR, and +1.8 mAP for DN-DAB-Deformable DETR.
- Faster Convergence: As shown in the radar chart below, METR trained for just 12 epochs frequently outperforms baseline DETR models trained for 50 epochs, significantly reducing computational overhead.
Limitations and Future Work
The authors observed a slight performance drop on the COCO dataset when performing multi-dataset joint training (dropping from 47.6 to 46.6 mAP). They suspect this is because objects belonging to COCO categories exist in the other datasets but are treated as unannotated backgrounds, introducing conflicting supervisory signals.
For future work, the authors plan to scale up the framework to leverage infinite, unannotated web images using semi-supervised or unsupervised object detection pretraining strategies.
Summary updated