Summary: This paper introduces a training-free method to adapt object detectors to new domains in real-time. By equipping frozen, off-the-shelf detectors with an updatable "memory bank" and a two-stage retrieval module, the authors enable models to recognize novel concepts using as few as 10 example images, significantly outperforming traditional zero-shot baselines.
Introduction
Standard object detectors often exhibit "brittle" behavior when deployed outside their original training environments. A model optimized for natural scenes (e.g., COCO) typically fails when applied to specialized domains such as aerial surveillance or medical imaging. For example, the powerful Grounding-DINO model achieves less than 1% mAP on the DOTA aerial dataset out of the box.
Traditional solutions involve offline fine-tuning, which is bottlenecked by the need for massive labeled datasets and significant compute. This paper introduces Retrieval-Augmented Detector Adaptation, a training-free method to adapt detectors to new domains in real-time by using an updatable memory bank.
Methodology: Retrieval-Augmented Classification (RAC)
The proposed framework enables a frozen, off-the-shelf detector to learn a new domain instantly without modifying its underlying weights. It consists of three core components:
- Updatable Memory Bank: A collection of representative labeled images from the target domain. To minimize labeling effort, the authors use Unsupervised Seed Image Clustering (via CLIP embeddings) to select the most informative images.
- Object Proposal Model: A frozen detector (e.g., Grounding-DINO or Faster-RCNN RPN) is used solely for localization, identifying where objects are while ignoring original class labels.
- RAC Module: The "brain" of the system, which performs classification in two stages:
- Context Retrieval: Matches the query image's global scene to similar scenes in the memory bank (e.g., identifying a "harbor" context).
- Instance Retrieval: Compares features of detected boxes against objects in the context-matched memory images. Classification is determined by a "vote" from the top retrieved instances.
Key Insights
- Contextual Filtering: By narrowing the search space to relevant contexts first, the model avoids common cross-domain errors, such as confusing small white cars with small white boats in aerial imagery.
- Human-like Learning: The approach mimics human cognition—recognizing novel concepts by comparing them to a few "memorized" examples rather than requiring thousands of training samples.
- Localization Dependency: The system's performance is capped by the base model's ability to propose bounding boxes. If the proposal network misses an object, the retrieval module cannot classify it.
Experimental Results
The authors evaluated their method primarily on the DOTA aerial dataset, which contains 18 categories often missing from natural scene datasets.
- Performance Gains: Grounding-DINO's mAP on DOTA improved from 2.68 to 4.54 using a "Tiny DB" of just 10 images per category.
- Zero-Label Localization: Using a Faster-RCNN trained on xView as a generic "box finder," the RAC module achieved 14.7 mAP. Performance for specific classes like airplanes and ships reached ~25 AP.
- Scalability: Performance scales with memory size; increasing the memory bank from 180 to ~4,000 images improved mAP from 12.7 to 22.0 in ROI-based experiments.
- Efficiency: The system is highly accessible; a light fine-tuning of the CLIP backbone takes less than one hour on a single V100 GPU.
Conclusion
Retrieval-Augmented Detector Adaptation offers a promising path for real-time domain adaptation. While limited by the localization capabilities of the base detector and the computational overhead of k-nearest-neighbor lookups, it demonstrates that frozen models can significantly outperform traditional baselines when equipped with a simple "cheat sheet" of domain-specific memory. Future work will focus on universal "detect-anything" proposal models and optimizing retrieval latency.
Summary updated