Context Disentangling and Prototype Inheriting for Robust Visual Grounding

Wei Tang, Liang Li, Xuejing Liu, Lu Jin, Jinhui Tang, Zechao Li · DOI

TL;DR

TransCP is a novel visual grounding framework that improves robustness by explicitly disentangling target objects from their context and utilizing a "prototype bank" to store generalized visual concepts. This dual approach allows the model to better distinguish between similar objects in a scene and significantly improves performance when encountering novel object categories not seen during training.

What Problem Does This Paper Address?

Visual Grounding (VG) is the task of locating a specific object in an image based on a natural language query (e.g., "the giraffe to the left"). While current models perform well in standard scenarios, they face two major hurdles:

  1. Context Sensitivity: Models often struggle to distinguish a target from other objects of the same category because they don't effectively leverage the discriminative information in the surrounding context.
  2. Open-Vocabulary Generalization: Most models are trained on a fixed set of categories. When they encounter "novel" objects in the wild—like seeing a zebra for the first time after only being trained on horses—their performance drops sharply.

As illustrated in Figure 1, standard scenes have overlapping concepts between training and testing, while open-vocabulary scenes require the model to generalize from known concepts (like "horse") to unknown ones (like "zebra") using shared higher-level prototypes (like "animal").

An illustration of standard vs. open-vocabulary scenes.

Methods

The authors propose TransCP, a Transformer-based framework consisting of four main modules:

  • Two-Branch Encoder: Uses a ResNet-Transformer combo for visual features and BERT for linguistic features.
  • Context Disentangling: This module separates referent features from context features in both modalities. In the visual branch, it uses cross-modal attention to highlight salient objects. In the text branch, a "phrase attention" mechanism assigns higher weights to contextual words (relations and attributes) to help the model understand how the target relates to its surroundings.
  • Prototype Discovering and Inheriting: To handle novel objects, the model discovers cluster-level "prototypes" from visual data during training. These prototypes represent essential, generalized characteristics of objects and are stored in a Prototype Bank. During inference, the model "inherits" these prototypes, using them as a look-up table to guide the grounding of unseen categories.
  • Hadamard Fusion & Regression: Instead of complex, learned fusion layers that might over-adjust features, TransCP uses a simple, parameter-free Hadamard product (element-wise multiplication) to fuse visual and linguistic data. The fused features are then fed into a final Transformer encoder for bounding box regression.
The TransCP architecture overview.

Datasets

The model was evaluated on several standard benchmarks:

  • ReferIt (ReferCLEF)
  • Flickr30k Entities
  • RefCOCO, RefCOCO+, and RefCOCOg (based on MSCOCO)
  • Ref-Reasoning: A large-scale dataset featuring extremely complex referring expressions to test reasoning capabilities.

To test open-vocabulary performance, the authors performed cross-dataset evaluations (e.g., training on ReferIt and testing on RefCOCO), which naturally introduces novel objects and categories.

Key Insights and Ideas

  • Disentangling as a Discriminator: By explicitly separating "what" the object is from "where/how" it is described, the model becomes much more sensitive to the subtle differences that define a specific target among similar candidates.
  • Prototypes as Generalizers: The prototype bank acts as a bridge. Even if the model hasn't seen a "zebra," it can recognize visual patterns that match the "animal" prototype learned from horses, cows, and dogs. This mimics human cognitive priors where we ground novel objects based on coarse-grained, cluster-level information.
  • The Power of Simple Fusion: The authors found that the parameter-free Hadamard fusion is more robust than complex learned strategies. It treats linguistic information as a stable attention mask for visual features, preventing the model from "drastically adjusting" well-learned features during the fusion process.

Key Results

TransCP achieved state-of-the-art (SOTA) results across multiple benchmarks:

  • Standard Scene: On the ReferIt test set, TransCP reached 72.05% top-1 accuracy, outperforming the baseline TransVG by 2.19%.
  • Open-Vocabulary: In cross-dataset tests, TransCP consistently outperformed other Transformer-based models. For instance, when trained on ReferIt and tested on Flickr30k, it achieved 55.07% accuracy, a significant margin over competitors like VLTVG (53.13%).
  • Qualitative Success: Visualization of the disentangling module (Figures 5 and 6) shows that the model successfully highlights salient objects in the image while focusing on relational keywords like "out of" or "right" in the text.

Visualizing discrimination coefficients in the visual branch. Visualizing phrase attention weights in the language branch.

Limitations and Future Work

While TransCP shows marked improvement, the authors acknowledge several limitations:

  • Absolute Performance: While SOTA, the absolute accuracy in open-vocabulary scenes is still not high enough for many real-world, safety-critical applications.
  • Complex Reasoning: Extremely long and convoluted referring expressions remain a challenge for current visual grounding logic.
  • Future Directions: The team plans to integrate TransCP with larger Vision-Language Pre-training (VLP) models and incorporate more advanced reasoning methods to handle complex linguistic structures.

Summary updated

BibTeX
@article{tang2023context,
  author = {Wei Tang and Liang Li and Xuejing Liu and Lu Jin and Jinhui Tang and Zechao Li},
  title = {{Context Disentangling and Prototype Inheriting for Robust Visual Grounding}},
  journal = {IEEE Trans. Pattern Anal. Mach. Intell.},
  year = {2023},
}
Figure