Abstract
In image captioning, standard encoder-decoder models often lose track of the original visual context as they generate long sentences, a phenomenon known as "drifting." This paper proposes gLSTM (guided Long Short-Term Memory), an architecture that continuously injects global semantic information from the image into every step of the caption generation process. By combining this persistent guidance with improved beam search normalization, the authors achieved state-of-the-art performance on MS COCO and Flickr30K datasets.
Introduction
By 2015, the dominant paradigm for image captioning was the "translation" framework: a Convolutional Neural Network (CNN) extracted features from an image, which were then used to initialize a Recurrent Neural Network (RNN) to generate a descriptive sentence. However, this "one-shot" initialization is flawed. As the LSTM generates words sequentially, the influence of the initial image vector diminishes. The model eventually relies more on its internal language model—predicting likely word sequences—than on the actual visual evidence. This leads to "drifting," where the model generates generic but inaccurate descriptions.
Methods
The primary contribution is the gLSTM block, which modifies the standard LSTM cell to accept a third input: a semantic guidance vector ($g$).
The gLSTM Architecture
In a standard LSTM, gates are controlled by the current input $x_t$ and the previous hidden state $h_{t-1}$. In gLSTM, the guidance vector $g$ is fed into the input gate, forget gate, output gate, and the cell state at every timestep. This ensures the model is "reminded" of the global image context throughout the entire generation process.
The authors explored three variants for generating $g$:
- ret-gLSTM (Retrieval-based): Uses a Bag-of-Words vector derived from the captions of the 15 most visually similar images in the training set.
- emb-gLSTM (Semantic Embedding): Employs Canonical Correlation Analysis (CCA) to project images into a shared latent space with text, using the image's position in this space as the guide.
- img-gLSTM (Image-as-guidance): Uses raw CNN features directly as the guide.
Length Normalization
To address the bias of Beam Search toward shorter sentences, the authors introduced normalization strategies. Specifically, Min-hinge normalization was used to penalize sentences only if they fell below the average length of training captions, encouraging more descriptive outputs.
Results and Discussion
The models were evaluated on Flickr8K, Flickr30K, and MS COCO. The emb-gLSTM variant consistently outperformed the baseline LSTM and other gLSTM variants.
- Semantic Guidance vs. Raw Pixels: Interestingly,
img-gLSTM(raw features) performed poorly, suggesting that guidance is most effective when "pre-digested" into a semantic format that aligns with the language model's internal representations. - Competitive Performance: On Flickr8K,
emb-gLSTMachieved a BLEU@4 of 21.6. Notably, it performed on par with contemporary "Soft-Attention" models, demonstrating that global guidance can be as effective as local attention mechanisms. - Search Strategy: The inclusion of Gaussian or Min-hinge normalization significantly improved METEOR scores, proving that the decoding strategy is critical for high-quality captioning.
Conclusion
The gLSTM architecture demonstrates that persistent global semantic guidance is a powerful tool for preventing model drift in image captioning. While later models would combine this with local attention, gLSTM established the importance of maintaining a tight, continuous link between visual features and the linguistic decoding process.
Summary updated