[Paper Review] Adaptively Aligned Image Captioning via Adaptive Attention Time
This paper introduces Adaptive Attention Time (AAT), a differentiable mechanism that adaptively decides how many attention steps to take per decoding step in image captioning, improving over fixed-one-step attention and recurrent attention models.
Recent neural models for image captioning usually employ an encoder-decoder framework with an attention mechanism. However, the attention mechanism in such a framework aligns one single (attended) image feature vector to one caption word, assuming one-to-one mapping from source image regions and target caption words, which is never possible. In this paper, we propose a novel attention model, namely Adaptive Attention Time (AAT), to align the source and the target adaptively for image captioning. AAT allows the framework to learn how many attention steps to take to output a caption word at each decoding step. With AAT, an image region can be mapped to an arbitrary number of caption words while a caption word can also attend to an arbitrary number of image regions. AAT is deterministic and differentiable, and doesn't introduce any noise to the parameter gradients. In this paper, we empirically show that AAT improves over state-of-the-art methods on the task of image captioning. Code is available at https://github.com/husthuaan/AAT.
Motivation & Objective
- Improve image captioning by addressing the one-to-one image region-to-word assumption in standard attention models.
- Enable adaptive, per-word attention steps to flexibly align image regions with captions.
- Maintain differentiability and stability while allowing adaptive computation during decoding.
Proposed method
- Propose Adaptive Attention Time (AAT) that learns how many attention steps to take at each decoding step.
- Embed AAT into a two-layer LSTM encoder-decoder with an attention module that can perform multiple attended steps per word.
- Use a confidence network to decide when to stop attending and output a word, inspired by Adaptive Computation Time (ACT).
- Incorporate multi-head attention to better capture interactions among image regions.
- Add a time-cost penalty to training to balance accuracy and computation.
- Provide connections showing base, recurrent, and adaptive attention models as special cases of AAT.
Experimental results
Research questions
- RQ1Can adaptive attention steps per decoding step improve caption quality over one-step or fixed-step attention models?
- RQ2How does AAT trade off caption quality against computational cost in terms of attention time?
- RQ3What is the impact of attention head count and additive vs dot-product attention in this framework?
- RQ4Do adaptive attention mechanisms generalize to other encoder-decoder tasks beyond image captioning?
Key findings
- AAT outperforms base and recurrent attention models across METEOR, CIDEr-D, and SPICE on MS COCO (Karpathy split) with an average of 2.55 attention steps per decoding step.
- With lambda = 1e-4, AAT achieves strong performance while maintaining relatively low average attention steps (2.54–2.84 in ablations).
- Multi-head additive attention (8 heads) yields the best balance, achieving CIDEr-D 128.6 and SPICE 22.2 in self-critical training.
- Compared to Up-Down (a prior SOTA), AAT improves BLEU-4, METEOR, ROUGE-L, CIDEr-D, and SPICE by notable margins under both training stages.
- A single AAT model reaches 128.6 CIDEr-D on the MS COCO test set in their results, indicating state-of-the-art performance at the time.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.