Introduction
Visual grounding is the task of locating a specific object in an image based on a natural language description (e.g., "the man in the orange shirt eating pizza"). Modern methods often utilize a DETR-like architecture, where a transformer decoder uses "learnable queries" to directly predict object coordinates without relying on pre-generated proposal candidates.
However, current approaches suffer from two major limitations:
- Target-Agnostic Initialization: Most models initialize queries as random noise or base them purely on text embeddings. This makes the decoder's optimization much harder, as it lacks visual context of the target at the beginning of the decoding process.
- Feature Tunnel Vision: Existing models typically only utilize the deepest, most semantic features from the image backbone. This overlooks low- and mid-level texture information, which is often critical for distinguishing between similar-looking objects.
The RefFormer Approach
To address these flaws, researchers propose RefFormer, a novel architecture that replaces standard "vanilla" queries with referential queries. These queries carry target-specific context from the very start of decoding, effectively pointing the model in the right direction.
The core of RefFormer is the Query Adaptation (QA) module, designed to be seamlessly integrated into various layers of a pre-trained vision-language backbone like CLIP.
Instead of letting the backbone run in isolation, QA modules are inserted between backbone layers. They allow learnable queries to interact progressively with both visual and linguistic features. By inserting QA modules at different depths (e.g., layers 4, 8, and 12), RefFormer aggregates features from multiple scales. This ensures the model considers both fine-grained textures and high-level semantics, refining the queries into referential queries before they even reach the decoder.
Furthermore, RefFormer treats the QA modules as lightweight adapters. This allows the massive CLIP backbone to remain frozen during training, preserving its rich pre-trained knowledge while significantly reducing the number of trainable parameters and computational overhead.
Key Insights
- Prior Context is King: Providing the decoder with a "referential" starting point rather than random noise acts as a powerful prior. It simplifies the optimization landscape and allows the model to converge faster.
- Texture Matters: Ablation studies confirm that relying solely on the deepest features is sub-optimal. Low-level features from earlier layers provide the necessary "visual evidence" to ground specific linguistic attributes, such as color or pattern.
- Efficiency through Freezing: By keeping the backbone frozen and only training the QA modules and the decoder, RefFormer achieves higher accuracy in fewer epochs compared to models that require full fine-tuning.
Experimental Results
RefFormer was evaluated on five standard visual grounding benchmarks: RefCOCO, RefCOCO+, RefCOCOg, Flickr30K Entities, and ReferItGame.
The model achieved state-of-the-art (SOTA) results across all tested benchmarks. Notably, on the challenging RefCOCO+ (testB) split, RefFormer outperformed the previous best method, Dynamic MDETR, by a significant 6.21%. It also demonstrated strong performance in Referring Expression Segmentation (RES), proving that referential queries are highly effective for pixel-level tasks as well as bounding box prediction.
Limitations and Future Work
While RefFormer excels at Referring Expression Comprehension (REC), there is still room for improvement in the segmentation (RES) task. The current segmentation head is a straightforward extension; optimizing the architecture specifically for dense, pixel-level grounding could yield even better results. Additionally, while referential queries successfully capture target-related information, their lower feature dimension means they may occasionally require the final decoder's refinement to precisely pinpoint coordinates.
Summary updated