Abstract: Standard Transformer models for image captioning often focus on isolated object regions, missing holistic context. We present the Global Enhanced Transformer (GET), which integrates intra- and inter-layer global representations. By adaptively fusing these with local features in the decoder, GET achieves state-of-the-art performance on the MS COCO benchmark, effectively capturing background elements and complex relationships.
Introduction: The Challenge of Region-Biased Representations
Modern image captioning relies heavily on the encoder-decoder Transformer architecture. Typically, an image is first passed through an object detector (like Faster R-CNN) to extract a set of "region features" (bounding boxes of objects). While self-attention allows these regions to interact, the resulting representations remain heavily region-biased. Because the model lacks a holistic, image-level view, it struggles with two main issues:
- Object Missing: It fails to describe overarching background elements that aren't easily boxed by an object detector (e.g., missing the word "snow" in a winter scene).
- Relationship Bias: By treating objects in isolation, it misinterprets how they interact (e.g., predicting a person is "playing with a boy" instead of "walking down the street").
The Global Enhanced Transformer (GET)
The authors propose the Global Enhanced Transformer (GET), which modifies both the encoder and the decoder of a standard Transformer to incorporate global context.
1. Global Enhanced Encoder
Instead of just processing local regions, the encoder introduces a global feature (initially an average of all regions). It updates this global feature in two ways:
- Intra-layer Global Representation: Inside each Transformer layer, a Global Enhanced Attention (GEA) module allows the local regions and the global feature to attend to one another. This aggregates local details into a single global vector for that specific layer.
- Inter-layer Global Representation: The authors use an LSTM network to sequentially fuse the global representations across all layers. The LSTM's forget gate helps discard useless noise from earlier layers, resulting in a highly refined final global vector.
2. Global Adaptive Decoder
The decoder generates the caption word-by-word. However, the need for global context fluctuates—generating the word "snow" requires global context, while generating "dog" might only require a local bounding box. To handle this, the authors introduce a Multi-Head Adaptive Controller (MAC) that dynamically weighs the importance of local region features versus the global feature based on the specific word currently being generated.
Experimental Evaluation
The GET model was evaluated on the MS COCO benchmark using the standard "Karpathy" splits. The model achieved a state-of-the-art CIDEr score of 131.6 for a single model and 135.1 for an ensemble, outperforming strong baselines like AoANet and MMT.
Qualitative analysis (as seen in Figure 3b) demonstrates that GET successfully captures weather and background context that plain Transformers miss. For instance, GET correctly identifies a "snow covered field" where the baseline only sees a "field," and accurately describes a group of people "playing with a young boy" rather than just "walking down a street."
Conclusion
GET demonstrates that global context is a vital but dynamic resource in image captioning. By treating global information as an optional resource that the model can adaptively query via the MAC module, GET overcomes the limitations of region-biased object detectors. While current results rely on pre-trained detectors, the principles of global-local fusion established here provide a foundation for future vision-language models using grid or patch-based features.
Summary updated