Abstract
This paper explores architectural enhancements to the classic CNN-LSTM image captioning pipeline. By investigating the impact of deeper recurrent layers and modern residual encoders, the authors fine-tune a baseline model to achieve performance gains on the MSCOCO dataset. Experiments with RNN depth reveal that increasing complexity does not always yield linear improvements, highlighting the importance of architectural balance in multimodal tasks.
Introduction
While computer vision has become remarkably adept at image classification (e.g., labeling an image as a "dog"), image captioning represents a significantly more complex challenge. It requires a model to not only identify individual objects but also understand their spatial and semantic interdependence to produce a "succinct sentential narration." This research builds upon the "Neuraltalk2" baseline to investigate whether increasing the complexity of the "brain" (the RNN) or the "eyes" (the CNN) leads to more fluent and accurate captions.
Methodology
The authors employ a standard Encoder-Decoder architecture to bridge visual and linguistic domains.
The Encoder (CNN)
A Convolutional Neural Network extracts high-level visual features from an input image. The study compares the classic VGG-16 architecture against the more modern ResNet-101 to evaluate the impact of improved visual embeddings.
The Decoder (RNN/LSTM)
A Long Short-Term Memory (LSTM) network processes the visual features to predict a sequence of words. The authors experimented with RNN depth, increasing the number of hidden layers from the single-layer baseline to two and four layers.
Experimental Setup
- Transfer Learning: Models pre-trained on the MSCOCO dataset were fine-tuned on smaller datasets (Flickr8k and Flickr30k).
- Inference: Beam Search (size 20) was utilized during inference to explore multiple sentence paths, improving over simple greedy decoding.
- Datasets: Evaluation was conducted on MSCOCO (120k images), Flickr30k (30k images), and Flickr8k (8k images).
Results
The experimental variations yielded measurable improvements over the Karpathy baseline. The top performer was Model 3 (VGG-16 + 2-layer RNN), which outperformed both the shallower baseline and the deeper 4-layer variant.
- BLEU_4 Score: The best-performing model achieved 28.1%, surpassing the 26.8% baseline.
- CIDEr Score: Performance improved to 0.848 from the 0.803 baseline.
Discussion and Insights
The experiments revealed several critical insights into the behavior of captioning models:
- The "Sweet Spot" for Depth: Increasing RNN layers beyond a certain point (e.g., 4 layers) led to diminished returns. This suggests that for these datasets, overly deep recurrent architectures may suffer from vanishing gradients or overfitting without providing additional representational benefit.
- Visual Bias: Failure cases highlighted a reliance on statistical correlations rather than true visual understanding. For instance, a girl with a spoon was captioned as "cutting a cake with a knife" because "cake" and "knife" frequently co-occur in the training data.
- Temporal Instability: When applied to video, the model exhibited "flickering" captions. Treating frames as isolated events lacks temporal "inertia," causing descriptions to change abruptly even with minimal scene variation.
Limitations and Future Work
To address current shortcomings, the authors propose several directions:
- Attention Mechanisms: Implementing attention would allow the model to focus on specific image regions while generating corresponding words.
- Language Model Pre-training: Initializing the RNN on large text-only corpora (like Wikipedia) could improve linguistic fluency.
- Video Continuity: Creating temporal consistency by feeding the previous frame's caption as input to the next step.
Summary updated