[Paper Review] Guiding Long-Short Term Memory for Image Caption Generation
This paper proposes gLSTM, an enhanced Long Short-Term Memory model for image caption generation that integrates semantic image features as external guidance to prevent caption drift from image content. By injecting semantic embeddings—derived via CCA or cross-modal retrieval—into each LSTM gate, the model generates more accurate, image-attentive captions, achieving state-of-the-art performance on Flickr8K, Flickr30K, and MS COCO with improved BLEU and METEOR scores.
In this work we focus on the problem of image caption generation. We propose an extension of the long short term memory (LSTM) model, which we coin gLSTM for short. In particular, we add semantic information extracted from the image as extra input to each unit of the LSTM block, with the aim of guiding the model towards solutions that are more tightly coupled to the image content. Additionally, we explore different length normalization strategies for beam search in order to prevent from favoring short sentences. On various benchmark datasets such as Flickr8K, Flickr30K and MS COCO, we obtain results that are on par with or even outperform the current state-of-the-art.
Motivation & Objective
- To address the problem of caption models drifting away from image content during generation, favoring common phrases over accurate descriptions.
- To improve the alignment between generated captions and visual input by embedding semantic image features directly into LSTM units.
- To investigate whether global semantic guidance can outperform or complement attention mechanisms in image captioning.
- To analyze and mitigate the bias of beam search toward short sentences, which degrades caption quality.
- To demonstrate that a single gLSTM model can match or exceed the performance of more complex models using attention or ensembles.
Proposed method
- Introduce a modified LSTM unit, termed gLSTM, where semantic image features are added as an extra input to each LSTM gate (input, forget, output, and candidate gates).
- Use multimodal semantic embeddings via Canonical Correlation Analysis (CCA) to map image and text features into a shared semantic space for guidance.
- Explore alternative guidance signals, including cross-modal retrieval results and raw image features, to evaluate the effectiveness of semantic alignment.
- Apply length normalization during beam search to counteract the tendency of greedy decoding to favor shorter, less descriptive sentences.
- Train the gLSTM model end-to-end using an encoder-decoder framework, with a CNN (e.g., VGG or AlexNet) for image encoding and gLSTM for autoregressive caption generation.
- Evaluate multiple variants of gLSTM using different semantic guidance types (e.g., polynomial, min-hinge, Gaussian) to identify optimal signal representation.
Experimental results
Research questions
- RQ1Can injecting semantic image features into LSTM gates improve the fidelity of generated captions to the input image?
- RQ2Does global semantic guidance outperform or complement local attention mechanisms in image captioning?
- RQ3How does the choice of semantic embedding (e.g., CCA, retrieval-based) affect caption generation performance?
- RQ4To what extent does beam search bias toward short sentences degrade caption quality, and can normalization mitigate this?
- RQ5Can a single, guided LSTM model achieve state-of-the-art results without relying on model ensembles or complex attention modules?
Key findings
- The gLSTM model with semantic embedding guidance (emb-gLSTM) achieves a BLEU-4 score of 67.0 and METEOR of 22.74 on MS COCO, outperforming previous state-of-the-art methods including Soft-Attention and Hard-Attention.
- The emb-gLSTM variant with Gaussian kernel-based guidance achieves a CIDEr score of 81.25 on MS COCO, surpassing the best baseline by over 2 points.
- Using length normalization in beam search significantly improves generation quality, reducing the bias toward short sentences and enhancing METEOR and CIDEr scores.
- The image-based guidance (img-gLSTM) performs worse than random baseline, indicating that raw image features are ineffective as direct guidance, unlike semantic embeddings.
- Even with fewer parameters (3.1M) than the baseline (5.9M), emb-gLSTM outperforms a deeper, larger LSTM model (5.2M parameters), demonstrating the efficiency and effectiveness of semantic guidance.
- The proposed method achieves state-of-the-art performance on Flickr8K and Flickr30K, with emb-gLSTM achieving 64.7 BLEU-1 and 45.9 BLEU-4 on Flickr8K, outperforming Google NIC and other attention-based models.
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.