[Paper Review] Normalized and Geometry-Aware Self-Attention Network for Image Captioning
This paper proposes Normalized Self-Attention (NSA) and Geometry-aware Self-Attention (GSA) to enhance self-attention in image captioning. NSA reduces internal covariate shift by normalizing hidden activations within self-attention, while GSA explicitly models relative geometric relationships between image objects. The NG-SAN model achieves a new SOTA CIDEr score of 128.6 on MS-COCO, with consistent gains across video captioning, machine translation, and visual question answering tasks.
Self-attention (SA) network has shown profound value in image captioning. In this paper, we improve SA from two aspects to promote the performance of image captioning. First, we propose Normalized Self-Attention (NSA), a reparameterization of SA that brings the benefits of normalization inside SA. While normalization is previously only applied outside SA, we introduce a novel normalization method and demonstrate that it is both possible and beneficial to perform it on the hidden activations inside SA. Second, to compensate for the major limit of Transformer that it fails to model the geometry structure of the input objects, we propose a class of Geometry-aware Self-Attention (GSA) that extends SA to explicitly and efficiently consider the relative geometry relations between the objects in the image. To construct our image captioning model, we combine the two modules and apply it to the vanilla self-attention network. We extensively evaluate our proposals on MS-COCO image captioning dataset and superior results are achieved when comparing to state-of-the-art approaches. Further experiments on three challenging tasks, i.e. video captioning, machine translation, and visual question answering, show the generality of our methods.
Motivation & Objective
- Address the internal covariate shift problem in self-attention networks, which hinders effective training and optimization.
- Improve image captioning by explicitly modeling geometric relationships between objects, which standard self-attention ignores.
- Develop a general-purpose attention mechanism that enhances performance across multiple vision-language tasks beyond image captioning.
- Demonstrate that normalization inside self-attention layers—previously only applied externally—can significantly improve model stability and performance.
- Create a unified framework that combines normalization and geometric inductive bias to enhance visual representation learning in attention-based models.
Proposed method
- Propose Normalized Self-Attention (NSA), a reparameterization of self-attention that applies a novel normalization technique directly to the hidden activations within the attention mechanism to stabilize training and reduce internal covariate shift.
- Introduce Geometry-aware Self-Attention (GSA), which extends standard self-attention by adding a learnable geometric bias that depends on the relative spatial positions and scales of object features, enabling the model to attend to spatially coherent object groups.
- Combine NSA and GSA into a unified module, NG-SAN, replacing vanilla self-attention blocks in the encoder of a Transformer-based image captioning model.
- Apply NSA to the encoder of Transformer models in video captioning and machine translation tasks, replacing standard self-attention with NSA to improve generalization with minimal computational overhead.
- Replace all self-attention modules in the MCAN model for visual question answering with GSA to inject geometric inductive bias into visual-linguistic reasoning.
- Train and evaluate the proposed models using standard benchmarks: MS-COCO for image captioning, VATEX for video captioning, WMT 2014 En-De for machine translation, and VQA-v2 for visual question answering.
Experimental results
Research questions
- RQ1Can internal normalization within self-attention layers reduce internal covariate shift and improve training stability and performance in vision-language models?
- RQ2Can explicit modeling of relative geometric relationships between image objects enhance visual representation learning and improve image captioning performance?
- RQ3Does the combination of normalized and geometry-aware self-attention generalize beyond image captioning to other vision-language tasks?
- RQ4Can NSA and GSA be applied to existing Transformer-based models with minimal architectural changes and computational cost while yielding consistent performance gains?
- RQ5To what extent do NSA and GSA improve performance on downstream tasks such as video captioning, machine translation, and visual question answering?
Key findings
- The NG-SAN model achieves a new state-of-the-art CIDEr score of 128.6 on the MS-COCO image captioning benchmark, surpassing the previous best single-model result of 125.5.
- NSA improves the Transformer baseline on the VATEX video captioning dataset by 3.7 points in CIDEr and 11.4 points over the VATEX LSTM-based model.
- NSA increases the BLEU score on the WMT 2014 English-to-German translation task by 0.36 points over the Transformer-Base baseline without adding parameters.
- GSA boosts the VQA-v2 test-std accuracy of MCAN from 70.83% to 71.28%, demonstrating its effectiveness in visual reasoning tasks.
- The combination of NSA and GSA leads to consistent performance gains across diverse vision-language tasks, confirming the generality and robustness of the proposed modules.
- The ablation studies confirm that both NSA and GSA contribute independently and synergistically to performance gains, with NSA improving optimization and GSA enhancing structural inductive bias.
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.