Abstract
Generating accurate natural language descriptions for images requires a sophisticated interplay between visual perception and linguistic generation. Traditional models often struggle with spatial variance and static attention mechanisms. We present the Recurrent Image Captioner (RIC), an architecture that integrates a spatial transformer layer and a differentiable attention filter within a recurrent feedback loop. This design allows the decoder to dynamically influence the encoder's focus, mimicking human saccadic eye movements. Our results on Flickr8k, Flickr30k, and MS COCO benchmarks demonstrate state-of-the-art performance, particularly when augmented with Variational Autoencoder (VAE) regularization.
Introduction
Image captioning is a fundamental task in visual-semantic understanding. Despite significant progress, two primary challenges persist: spatial variance and the static nature of attention. Standard Convolutional Neural Networks (CNNs) are often sensitive to the scale, rotation, and position of objects within a frame. Furthermore, most attention mechanisms operate as standalone components that do not evolve as the description is generated. We propose that vision is an active, iterative process where the "eyes" (encoder) and "voice" (decoder) should work in a tight, recurrent loop.
Methodology
The RIC architecture bridges the gap between low-level visual features and high-level semantics through three core components:
- Spatial Transformer Layer (STL): This differentiable layer enables the model to perform spatial transformations (such as scaling and rotation), making it invariant to object orientation or size.
- Differentiable Attention Filter (DAF): Utilizing an array of 2-D Gaussian filters, the DAF creates a smooth attention map, allowing the model to "zoom in" on specific image patches.
- Recurrent Feedback Loop: The hidden state of the LSTM decoder is fed back into the STL and DAF, enabling the model to update its visual focus at each generation step.
Additionally, we introduce VAE Regularization. By treating the captioning process as an autoencoder—reconstructing visual latent codes from generated text—we ensure captions remain grounded in visual reality and prevent overfitting.
Experiments and Results
We evaluated the RIC on three gold-standard benchmarks: Flickr8k, Flickr30k, and MS COCO. The model consistently outperformed baselines across BLEU and METEOR metrics.
- Flickr8k: RIC with VAE achieved a BLEU-1 of 0.723 and METEOR of 23.12, significantly higher than the standard Hard-Attention baseline.
- MS COCO: On this complex dataset, the model reached a METEOR score of 25.43, proving its robustness in diverse visual environments.
Qualitative analysis shows the model successfully focusing on relevant patches during word generation. For instance, when describing a person eating, the model dynamically shifts its attention to the central interaction area of the image.
Conclusion
The RIC model demonstrates that allowing the language decoder to "talk back" to the visual encoder significantly improves caption quality. By making every component differentiable and incorporating a recurrent feedback loop, the system achieves a more human-like, iterative approach to scene description. Future work will explore applying this mechanism to Visual Question Answering (VQA) and video description, where temporal and spatial focus are even more critical.
Summary updated