Open-vocabulary object detection via Neighboring Region Attention Alignment

Sunyuan Qiang, Xianfei Li, Yanyan Liang, Wenlong Liao, Tao He, Pai Peng

TL;DR

Researchers have developed Neighboring Region Attention Alignment (NRAA), a new method that significantly boosts open-vocabulary object detection by teaching models to look at the "neighborhood" of an object. By using an attention mechanism to model relationships between a target region and its surroundings during knowledge distillation from Vision-Language Models (like CLIP), the model achieves a new state-of-the-art of 40.2 $AP^{novel}_{50}$ on the OV-COCO benchmark.

What Problem Does This Paper Address?

Traditional object detectors are "closed-world"—they can only find categories they were specifically trained on (e.g., "dog," "car," "chair"). Open-Vocabulary Object Detection (OVD) aims to break this limitation, allowing models to detect novel objects (like "axolotl" or "unicycle") by leveraging the vast, pre-existing knowledge found in Vision-Language Models (VLMs) like CLIP.

Current OVD strategies often use "knowledge distillation," where a detector tries to mimic the feature representations of a frozen VLM. However, the authors identify a critical gap: most methods treat object regions in isolation or use simple, fixed expansions. They ignore the inter-regional interactions—the contextual relationships between an object and its neighbors. Because VLMs are trained on full images with rich context, a detector that only looks at isolated boxes struggles to align its "understanding" with the VLM's knowledge.

Methods

The authors introduce the Neighboring Region Attention Alignment (NRAA) framework, built upon the classic Faster R-CNN architecture. The core innovation is the Neighboring Region Attention (NRA) module:

  1. Neighbor Sampling: For any given object proposal, the model randomly samples regions from eight surrounding directions (top, bottom, left, right, and diagonals).
  2. Attention Mechanism: Instead of just averaging these features, the model uses a Transformer-style attention mechanism (Query, Key, Value) to let the central object "talk" to its neighbors. This extracts relational information—how the object fits into its local scene.
  3. Vision-to-Language (V2L) Mapping: RoI (Region of Interest) features are mapped into "pseudo-word" tokens. These tokens, representing the object and its neighbors, are fed into a text encoder to create multi-modal embeddings.
  4. Alignment via InfoNCE: The model is trained using a contrastive loss (InfoNCE) to align these interaction-rich features from the detector with the expanded visual concepts seen by the frozen VLM image encoder.

Essentially, NRAA gives the detector "peripheral vision" and relational reasoning during training, making it much better at "speaking the same language" as the VLM.

Datasets

The model was evaluated on two primary OVD benchmarks:

  • OV-COCO: A subset of the COCO dataset where 48 classes are used for training ("base") and 17 are held out for testing ("novel").
  • OV-LVIS: A more challenging, large-vocabulary dataset. The model is trained on "frequent" and "common" classes and tested on "rare" classes (337 novel categories).
  • Transfer Learning: The authors also tested the model's ability to generalize by training on COCO and testing directly on LVIS without further fine-tuning.

Key Insights and Ideas

  • Context is King: The most important finding is that the "inadequacy of neighboring relationships" was a major bottleneck in OVD. By explicitly modeling how regions interact, the detector captures the same type of contextual cues that VLMs use to identify objects in the wild.
  • Attention > Simple Expansion: Previous methods (like ViLD) simply expanded the crop area by 1.5x. NRAA shows that using a learnable attention mechanism to weigh different neighboring regions is far more effective than just looking at a bigger, static box.
  • Alignment, Not Just Classification: The NRA module isn't just for the final classification; its primary value is during the distillation process. It helps the "student" (the detector) better understand the "teacher's" (the VLM's) complex feature space.

Key Results

  • New State-of-the-Art: On OV-COCO, NRAA achieved 40.2 $AP^{novel}_{50}$, a massive +6.2 point jump over the previous best method (BARON, 34.0) and a +12.6 jump over the seminal ViLD (27.6).
  • Strong Generalization: On OV-LVIS, it reached 21.1 box $AP_r$, outperforming other leading methods like DetPro and OADP.
  • Zero-Shot Transfer: When trained on COCO and tested on LVIS, NRAA maintained superior performance (8.1 AP), proving that the learned relational features are robust and not just overfitted to one dataset.

Limitations and Future Work

  • VLM Dependency: The model's performance is inherently tied to the quality of the pre-trained VLM (CLIP). If the VLM has biases or lacks certain concepts, the detector will inherit those flaws.
  • Computational Overhead: While the NRA module can be discarded during inference to save time, the training process requires forward passes through the VLM's text encoder, which is computationally expensive.
  • Future Directions: The authors suggest exploring more lightweight OVD architectures and testing the NRAA concept with even more robust, next-generation VLMs beyond CLIP.

Summary updated

BibTeX
@article{qiang2025open,
  author = {Sunyuan Qiang and Xianfei Li and Yanyan Liang and Wenlong Liao and Tao He and Pai Peng},
  title = {{Open-vocabulary object detection via Neighboring Region Attention Alignment}},
  journal = {Engineering Applications of AI},
  year = {2025},
  doi = {10.1016/j.engappai.2025.112270},
}
Figure