Abstract
Image captioning requires a sophisticated balance of visual and semantic information. We present the Hierarchical Attention Network (HAN), a novel architecture that moves beyond single-level visual features by synchronously leveraging a pyramid of low-level patches, mid-level objects, and high-level textual concepts. By employing a Multivariate Residual Module (MRM) and an adaptive context gate, the model learns to prioritize different semantic levels for specific words, achieving state-of-the-art performance on the MSCOCO benchmark.
Introduction
The "attention mechanism" is a cornerstone of modern image captioning, allowing models to focus on specific image regions during word generation. However, most existing methods are limited to a single level of representation—either spatial patches, detected objects, or predicted semantic tags. This single-level approach creates a bottleneck because different words require different types of information. For instance, describing a "red" shirt might only require low-level color data, while describing a "crowd" or an "action" requires higher-level object or conceptual understanding. Relying on just one level often leads to captions that are generic or factually inaccurate.
Methods
The proposed Hierarchical Attention Network (HAN) integrates multiple levels of visual and semantic information through several novel components.
Hierarchy Feature Pyramid
The model extracts three distinct feature types to form a comprehensive representation:
- Patch Features (Low-level): Abstract visual features extracted from a ResNet-101 backbone.
- Object Features (Mid-level): Bounding box features obtained from a Faster R-CNN detector.
- Text Features (High-level): Semantic concepts (adjectives, verbs, nouns) predicted by a custom-trained multi-label classifier.
Multivariate Residual Module (MRM)
To combine these diverse features, the authors introduce the MRM. Unlike simple concatenation, the MRM uses residual connections to map patch and text features into a shared "object space." It employs a multimodal bilinear strategy using Hadamard products to exploit inherent relationships between modalities.
Parallel MRM and Context Gating
The Parallel MRM (pMRM) integrates features gradually to refine the representation, inspired by the human brain's separate pathways for content and position. Finally, a Context Gate adaptively balances the contribution of low-level vs. high-level features at each time step of the sentence generation process. The decoder utilizes a cascaded LSTM structure, with a "Visual LSTM" guiding attention and a "Language LSTM" generating the final words.
Experimental Results
The HAN model was evaluated on the MSCOCO dataset using the standard "Karpathy split."
Quantitative Performance
On the Karpathy test split, using Reinforcement Learning (CIDEr optimization), the model achieved a BLEU-1 of 80.9 and a CIDEr score of 121.7, outperforming contemporary state-of-the-art methods. Ablation studies confirmed the value of the hierarchy: the full model (CIDEr 112.4) significantly outperformed variants using only patches (106.8), objects (108.3), or text (94.8).
Qualitative Analysis
Visualizations demonstrate the model's ability to shift focus based on the word being generated. For example, when predicting the word "bat" in a baseball scene, the patch attention correctly isolates the bat's area, while object attention focuses on the player.
Conclusion
The Hierarchical Attention Network demonstrates that synchronizing multiple levels of visual and semantic features leads to more accurate and nuanced image captions. While the architecture adds complexity, the performance gains and the interpretability of the context gate provide a strong foundation for future research in multimodal fusion. Future work may explore end-to-end fine-tuning of the entire hierarchy to further improve alignment.
Summary updated