Modeling Context Between Objects for Referring Expression Understanding

Varun K. Nagaraja, Vlad I. Morariu, Larry S. Davis

TL;DR

This paper introduces a technique to improve referring expression understanding—the task of localizing an object in an image based on a natural language description—by explicitly modeling the relationships between the target object and its surrounding context. By using Multiple Instance Learning (MIL), the authors successfully train a model to identify supporting "context objects" even when those objects aren't explicitly labeled in the training data.

What Problem Does This Paper Address?

Imagine an image with five different dogs. If a user says, "the dog to the right of the red fire hydrant," a computer needs to do more than just recognize "dog." It must understand the spatial relationship between the dog and the hydrant.

The challenge is that most existing datasets for this task only provide a bounding box for the referred object (the dog). They don't label the "supporting" objects (the fire hydrant) mentioned in the text. This makes it difficult to train models that understand relationships, as the "ground truth" for the context is missing. Previous work often relied on global image features or single-object properties, which fails when multiple similar objects are present and only distinguishable by their surroundings.

Methods

The authors propose a framework that treats referring expression comprehension as a search over pairs of regions: a candidate region and a potential context region.

  1. LSTM-based Scoring: They use a Long Short-Term Memory (LSTM) network to calculate the probability of a referring expression given a pair of regions. The input features include CNN features for both regions, spatial features (bounding box coordinates), and word embeddings.
  2. Weakly Supervised Learning (MIL): Since the "correct" context region isn't labeled during training, the authors treat the problem as Multiple Instance Learning. For a given target object, they create a "positive bag" containing pairs of the target object with every other region in the image. They assume at least one of these pairs (the one with the correct context object) should yield a high probability.
  3. Max-Margin Objectives: They adapt two classic MIL formulations for neural networks:
  4. Negative Bag Margin (similar to MI-SVM): Enforces that the referred object's best pair scores higher than any pair involving a wrong target object.
  5. Positive & Negative Bag Margin (similar to mi-SVM): Further refines the "positive bag" by treating the choice of the context object as a latent variable, attempting to find the single best supporting region.
  6. Noisy-or Pooling: During testing, they use a "noisy-or" function to aggregate scores from multiple context pairs, which is more robust to noise than a simple maximum function.

Datasets

The model was evaluated on two major benchmarks, both based on MS-COCO images:

  • Google RefExp (G-Ref): Known for having longer, more descriptive expressions (e.g., "A white truck in front of a yellow truck"). The authors created a custom partition for this dataset to ensure no image overlap between training and validation sets.
  • UNC RefExp: Collected via the "ReferIt" game. These expressions tend to be shorter and more concise.

Key Insights and Ideas

  • Context as a Latent Variable: The "aha moment" here is realizing that you don't need explicit labels for context objects to learn from them. By framing the context object as a latent variable within an MIL framework, the model "discovers" which objects provide the best supporting evidence for a description.
  • Descriptive vs. Terse Expressions: The researchers found that their "Positive & Negative Bag Margin" approach worked best on the Google dataset. This is because Google RefExp expressions usually uniquely identify a context object. In contrast, the UNC dataset often uses vague context (e.g., "the person in the back"), where the "Negative Bag Margin" only approach was more effective.
  • Beyond Global Context: Simply looking at the "whole image" as context isn't enough. The results show that specifically pairing the target with other discrete object proposals provides a much stronger signal for localization than just using a global CNN feature of the entire scene.

Key Results

The proposed MIL-based context modeling consistently outperformed the state-of-the-art baseline (Mao et al., 2016) across both datasets:

  • Google RefExp: Achieved 68.4% Precision@1 (using ground-truth proposals), compared to the baseline's 65.7%.
  • UNC RefExp: On the "TestB" (object-centric) split, they reached 56.4% using MCG proposals, a significant jump over the baseline's 50.0%.
  • Qualitative Success: The model successfully "grounded" expressions by highlighting both the target and the context. For example, for the query "A pizza in front of a woman," the model correctly identified the pizza as the target and the woman as the supporting context.

Limitations and Future Work

  • Terse Expressions: The model showed little to no improvement on the UNC "TestA" split, which focuses on people. These expressions are often very short and don't mention context objects, making the pair-based approach less relevant.
  • Attribute Errors: Failure cases often occurred when the model correctly identified the context but failed on specific attributes (e.g., confusing "red shirt" with "gray sleeves").
  • Computational Complexity: Evaluating pairs of regions is more computationally expensive than evaluating single regions. Future work could involve more efficient ways to prune the search space for context objects.

Summary updated

BibTeX
@inproceedings{nagaraja2016modeling,
  author = {Varun K. Nagaraja and Vlad I. Morariu and Larry S. Davis},
  title = {{Modeling Context Between Objects for Referring Expression Understanding}},
  booktitle = {European Conference on Computer Vision},
  year = {2016},
  url = {https://openreview.net/forum?id=s-H9nFsYksW},
}
Figure