Distributed Attention for Grounded Image Captioning

Nenglun Chen, Xingjia Pan, Runnan Chen, Lei Yang, Zhiwen Lin, Yuqiang Ren, Haolei Yuan, Xiaowei Guo, Feiyue Huang, Wenping Wang

TL;DR

This paper introduces a "distributed attention" mechanism to solve the partial grounding problem in weakly supervised image captioning. By forcing multiple attention branches to focus on different, non-overlapping regions of an image, the model learns to aggregate semantically consistent parts into a single, complete object bounding box, significantly outperforming previous state-of-the-art methods in grounding accuracy.

What Problem Does This Paper Address?

Grounded Image Captioning is the task of not only describing an image (e.g., "A woman is carrying a book") but also identifying exactly which pixels correspond to the nouns in that sentence. Doing this with weak supervision—meaning the model is trained on captions and images without being told exactly where the objects are—is notoriously difficult.

The authors identify a major bottleneck they call the partial grounding problem. Standard attention mechanisms are "lazy"; they tend to fixate on the most discriminative part of an object (like a person's face) while ignoring the rest of the body. While this might be enough to generate the word "woman," it results in poor grounding because the predicted bounding box only covers a tiny fraction of the actual object.

Methods

The core innovation is the Distributed Attention mechanism. Instead of a single attention module, the authors use $K$ different attention branches.

To prevent all branches from looking at the same "easy" spot, they implement a region proposal elimination strategy:

  1. Branch 1 looks at the whole image and picks the most relevant regions.
  2. Branch 2 is then forced to pick from the remaining regions, excluding what Branch 1 saw.
  3. This continues for $K$ iterations.

By forcing these branches to be mutually exclusive, the network is compelled to find other parts of the image that are semantically consistent with the word being generated. At test time, the regions from all branches are fused together. This "union" of parts (e.g., face + torso + legs) forms a much more accurate and complete bounding box for the object.

Datasets

The researchers evaluated their approach on two major benchmarks:

  • Flickr30k Entities: A standard dataset for image-to-phrase grounding containing 31k images.
  • ActivityNet Entities: Used to test if the method scales to the more complex task of grounded video description.

Key Insights and Ideas

  • Diversity over Density: Unlike standard Multi-Head Attention (where heads often converge on the same features), this method explicitly enforces spatial diversity through iterative elimination.
  • Semantic Consistency: The model learns that "woman" isn't just a face; it's a collection of spatially distinct but semantically related regions.
  • Simplicity is Strength: The method doesn't require complex new loss functions or massive architectural changes; it simply changes how the model "looks" at the available region proposals.

Key Results

The proposed method achieved a significant leap in grounding performance on the Flickr30k Entities test set:

  • Grounding Accuracy ($F1_{all}$): Jumped to 7.91%, compared to the previous best weakly supervised method (Zhou et al.) at 6.53% and the baseline GVD at 3.88%.
  • Localization Accuracy ($F1_{loc}$): Reached 21.54%, nearly doubling the baseline GVD (11.70%).
  • Comparison to Supervised: Remarkably, this weakly supervised method (which uses no box annotations during training) began to approach the performance of some fully supervised models (which achieve ~7.5% to 8.4% $F1_{all}$).

Qualitative results (Figure 5 in the paper) show that while the baseline might only box a dog's head, the Distributed Attention model successfully boxes the entire animal and the rock it is jumping over.

Limitations and Future Work

The authors acknowledge a "double-edged sword" effect: while the model is better at covering whole objects, it sometimes becomes too inclusive. If an attention branch suffers from deviated focus (looking at a nearby, unrelated object), the final fused bounding box may become unnecessarily large, covering the target object plus background noise.

Future work may involve combining this distributed approach with other regularization techniques to ensure that while the attention is "distributed," it remains strictly "focused" on the relevant entity.

Summary updated

BibTeX
@inproceedings{chen2021distributed,
  author = {Nenglun Chen and Xingjia Pan and Runnan Chen and Lei Yang and Zhiwen Lin and Yuqiang Ren and Haolei Yuan and Xiaowei Guo and Feiyue Huang and Wenping Wang},
  title = {{Distributed Attention for Grounded Image Captioning}},
  booktitle = {ACM Multimedia},
  year = {2021},
  url = {https://openreview.net/forum?id=RUtO8ToFmJ3},
}

Loading related content...

Figure