Three ways to improve feature alignment for open vocabulary detection

Relja Arandjelovic, Alex Andonian, Arthur Mensch, Olivier J. Hénaff, Jean-Baptiste Alayrac, Andrew ZissermanarXiv 2023 · DOI

Researchers from DeepMind, MIT, and the University of Oxford have introduced three novel strategies to bridge the "alignment gap" in open-vocabulary object detection (OVD). By focusing on preserving and enhancing the connection between visual and textual features, the proposed 3Ways model achieves new state-of-the-art results on challenging benchmarks like LVIS, particularly in identifying rare and unseen classes.

The Alignment Gap in Open-Vocabulary Detection

Standard object detectors are typically "closed-vocabulary," meaning they are restricted to finding specific classes present in their training data (e.g., "dog," "car"). In contrast, open-vocabulary detection aims to identify any object described in text, even those for which the model has never seen a human-annotated bounding box during training.

The core challenge in OVD is feature alignment. Most models leverage vision-text backbones (such as CLIP) that possess a pretrained understanding of image-text relationships. However, when a detection head and a Feature Pyramid Network (FPN) are added and trained from scratch, this delicate alignment often degrades. The model tends to overfit to the limited classes in the detection training set, "forgetting" the broad knowledge acquired during pretraining.

Methodology: The Three Ways

The authors propose three complementary techniques to maintain and improve alignment throughout the training process.

Overview of the open-vocabulary detection training and inference pipeline, showing the transition from image-text pretraining to detection training.

1. Efficient Text Augmentation

Instead of relying on a single text embedding for a class (e.g., "a photo of a gargoyle"), the researchers precompute 64 variants using dropout. During training, these variants are randomly sampled. This approach prevents the visual detector from overfitting to a single point in the text space, making the model more robust to diverse textual queries.

2. Alignment Preserving Architecture (APA)

Traditional FPNs and detection heads are initialized randomly, which can destroy pretrained alignment in the early stages of training. APA introduces trainable gated shortcuts. At the start of training, these gates are configured to pass well-aligned features from the pretrained backbone directly to the output. This allows the model to start with a strong initial "guess" and focus on refining it rather than relearning alignment from scratch.

3. Self-training (The 3Ways Pipeline)

The final strategy involves using the improved detector to "pseudo-label" a massive dataset of image-text pairs from the web (Conceptual Captions 12M). The model treats image captions as queries to find likely bounding boxes. A critical component of this phase is the use of batch-negatives—treating other captions within the same training batch as negative examples—which provides a sharp contrastive signal and significantly boosts performance.

Key Results and Insights

The 3Ways approach demonstrates significant improvements across several benchmarks. On the LVIS-R benchmark, which tests zero-shot capabilities by removing rare class annotations during training, the largest model (using an NFNet-F6 backbone) achieved 44.6 mAP-all. This represents a substantial leap over previous state-of-the-art methods, which hovered around 35 mAP.

Performance comparison of various self-training methods on the LVIS benchmark, highlighting the gains achieved by the 3Ways approach.

Furthermore, the model achieved 30.1 mAP on rare classes, confirming its strong zero-shot generalization. Beyond LVIS, the model showed superior transfer performance on COCO and Objects365 without additional fine-tuning, and the text augmentation method allowed for a 53% speedup and 9% memory reduction compared to standard language model fine-tuning.

Conclusion

The research highlights that preserving pretrained alignment is often more effective than attempting to re-learn it during detection training. By combining efficient text augmentation, an alignment-preserving architecture, and a robust self-training pipeline, the 3Ways model sets a new standard for open-vocabulary detection. Future work may address remaining challenges, such as detecting very small or occluded objects and refining the concept of "objectness" to better capture common but infrequently annotated items.

Summary updated

BibTeX
@misc{arandjelovic2023three,
  author = {Relja Arandjelovic and Alex Andonian and Arthur Mensch and Olivier J. Hénaff and Jean-Baptiste Alayrac and Andrew Zisserman},
  title = {{Three ways to improve feature alignment for open vocabulary detection}},
  year = {2023},
  eprint = {2303.13518},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2303.13518},
}
Figure