Bear the Query in Mind: Visual Grounding with Query-conditioned Convolution

Chonghan Chen, Qi Jiang, Chih-Hao Wang, Noel Chen, Haohan Wang, Xiang Li, Bhiksha RajarXiv 2022 · DOI

TL;DR

This paper introduces a novel Query-conditioned Convolution Module (QCM) that allows visual feature extraction to be guided by the text query during the feature extraction process, rather than relying solely on post-hoc fusion. This leads to more discriminative visual features and achieves state-of-the-art results in visual grounding, even allowing for a simpler model architecture without a separate fusion module.

What Problem Does This Paper Address?

Visual grounding, the task of pinpointing an object in an image based on a textual description, requires understanding both visual and linguistic information and their interplay. Traditional approaches often process visual and textual information separately and then fuse them. This "extract-and-fuse" paradigm has a key limitation: the visual encoder, unaware of the specific text query during its feature extraction, might generate general visual features that aren't optimally tailored to the target object described in the query. This can lead to redundant or even misleading information being passed to the fusion stage, hindering performance. The authors liken this to asking a human to memorize an entire image before trying to find a specific object, which is inefficient and unnatural.

Methods

The core innovation is the Query-conditioned Convolution Module (QCM). Instead of using fixed convolutional kernels in the visual encoder, QCM dynamically generates these kernels based on the input text query. Here's how it works:

  • Candidate Kernels: Each QCM block has a set of pre-defined "candidate" convolutional kernels.
  • Attention Mechanism: The text query (specifically, the query token from a BERT encoder) is used to compute an "attention weight" for each candidate kernel. This weight signifies how much each candidate kernel should contribute to the final kernel.
  • Aggregated Kernel: The final convolutional kernel for that QCM block is a weighted sum of the candidate kernels, where the weights are determined by the attention mechanism.
  • Query-Aware Features: By using these dynamically generated, query-conditioned kernels, the visual encoder extracts features that are inherently more relevant to the target object described in the query.

The authors integrate this QCM into a visual encoder, creating their Visual Grounding pipeline with Query-Conditioned visual encoder (VGQC). They propose two variants:

  1. VGQC with fusion: This variant uses the query-aware visual features and fuses them with text features using a transformer-based fusion module.
  2. VGQC without fusion: This simpler variant directly uses the query-aware visual features for prediction, demonstrating their informativeness.

Datasets

The paper evaluates its models on three standard visual grounding datasets:

  • RefCOCO
  • RefCOCO+
  • RefCOCOg

These datasets are derived from the COCO dataset and feature referring expressions of varying lengths and complexity.

Key Insights and Ideas

  • Early Textual Guidance is Crucial: The most significant insight is that incorporating textual information during visual feature extraction, rather than just at the fusion stage, dramatically improves performance. This aligns with human intuition: knowing what you're looking for helps you find it more efficiently.
  • QCM as a "Smart Filter": QCM acts like a dynamic filter that adapts its "sensing" capabilities based on the text query, allowing it to focus on relevant visual cues and ignore irrelevant ones.
  • Query-Aware Features are Powerful: The generated query-aware visual features are so informative that they can achieve competitive results even without a dedicated multi-modal fusion module, simplifying the model architecture and speeding up inference.
  • Diversity of Candidate Kernels Matters: The effectiveness of QCM relies on having a diverse set of candidate kernels, each specialized for extracting different types of visual information. The attention mechanism then learns to combine these specialized kernels appropriately for a given query.

Key Results

  • State-of-the-Art Performance: VGQC with fusion achieves state-of-the-art top-1 accuracy on RefCOCO, RefCOCO+, and RefCOCOg datasets. For example, it achieves 85.02% accuracy on RefCOCO+ testA, an improvement of 2.49% over previous methods.
  • Competitive Performance Without Fusion: VGQC without fusion achieves comparable performance to the latest methods while significantly reducing inference time (e.g., 27.92 ms vs. 30.99 ms for TransVG on RefCOCO+).
  • Effective Query Understanding: Qualitative results show VGQC is better at distinguishing between objects with similar attributes or when multiple objects are present in the image, correctly identifying the target based on the query.
  • Attention Weights Reflect Semantics: Analysis of attention weights within QCM blocks reveals that they successfully capture the semantic similarity between different queries.

Limitations and Future Work

  • Limitations: The paper acknowledges that while QCM improves performance, relying on only one candidate kernel significantly degrades accuracy, highlighting the importance of kernel diversity. The authors also note that their method is primarily focused on incorporating textual information into visual features, rather than enabling bidirectional multi-modal interaction.
  • Future Work: The authors suggest that their QCM module could be applicable to other multi-modal tasks involving textual and visual data. They also propose further investigation into the effectiveness of query-aware visual features in simpler architectures.

Summary updated

BibTeX
@misc{chen2022bear,
  author = {Chonghan Chen and Qi Jiang and Chih-Hao Wang and Noel Chen and Haohan Wang and Xiang Li and Bhiksha Raj},
  title = {{Bear the Query in Mind: Visual Grounding with Query-conditioned Convolution}},
  year = {2022},
  eprint = {2206.09114},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2206.09114},
}
Figure