NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Learning to Guide Decoding for Image Captioning

Wenhao Jiang, Lin Ma, Xinpeng Chen, Hanwang Zhang, Wei Liu

Standard encoder-decoder models for image captioning often produce generic, "safe" descriptions that fail to capture specific image details. This occurs because the language model component frequently overpowers the visual input, leading to repetitive and uninformative captions. At AAAI 2018, researchers from Tencent AI Lab proposed a novel "Guiding Network" to address this imbalance by providing persistent, adaptive visual guidance throughout the decoding process.

The Challenge of Generic Captions

Image captioning requires a delicate balance between visual grounding and natural language fluency. While attention mechanisms allow models to focus on specific image regions, they often lack the high-level semantic "gist" required for coherent storytelling. Consequently, decoders often default to high-frequency phrases like "a group of people standing" regardless of the specific context. Previous attempts to fix this using static external information were unable to adapt to the decoder's evolving needs during sentence generation.

Methodology: The Guiding Network

The core contribution of this work is the Guiding Network ($g$), a component designed to keep the decoder grounded in image content at every time step.

The Guiding Network architecture integrated with a standard encoder-decoder framework.

The Guiding Vector ($v$)

Instead of relying solely on the previous word and hidden states, the decoder receives a guiding vector $v$ at each step. This vector is calculated as $v = g(\mathcal{A})$, where $\mathcal{A}$ represents annotation vectors derived from the image. By injecting $v$ continuously, the model maintains a "persistent nudge" toward the actual image content, preventing it from drifting into generic language patterns.

Attribute Integration and Adaptive Learning

The Guiding Network utilizes Multiple Instance Learning (MIL) to predict the presence of specific keywords or attributes in the image. These attributes are concatenated with visual features to provide a semantically rich input. Because the network is trained end-to-end with the decoder, it learns to provide the specific "hints" required by the language model at different stages of caption generation.

To further enhance the guiding vector, the authors introduced a discriminative supervision loss. This secondary objective ensures that the elements of the guiding vector act as scores, prioritizing words that are actually present in the ground-truth captions.

Architectural Flexibility: Integration with Review Net

The proposed framework is highly flexible and can be integrated into various architectures. The authors demonstrated this by applying it to the Review Net, which was a state-of-the-art model at the time.

Integration of the Guiding Network into the Review Net architecture, showing multi-stage guidance.

In this configuration, multiple guiding networks provide feedback to both the "reviewer" and "decoder" stages, ensuring that the refined visual features and the final word generation are both aligned with the predicted attributes.

Experimental Results

The researchers evaluated their approach on the MS COCO dataset using the "Karpathy split" (113,287 training images).

Quantitative Performance

The LTG (Learning To Guide) models consistently outperformed baseline models across all standard metrics:

  • CIDEr Score: The LTG-Review-Net achieved a score of 1.039 (single model) and 1.078 (ensemble), significantly higher than the standard Review Net (1.009) and Soft Attention models (0.978).
  • Vocabulary Diversity: LTG models exhibited a much richer vocabulary. For instance, the LTG-Soft-Attention model used 938 distinct words in the test set, compared to 793 for the baseline. This suggests the model is more "confident" in using specific terms like "statue" or "luggage" instead of generic descriptors.

Qualitative Insights

Qualitatively, the LTG models proved better at identifying specific objects. In cases where standard models misidentified objects (e.g., calling a "plane" a "kite"), the LTG model leveraged its attribute-based guidance to provide the correct identification.

Conclusion and Future Directions

The Guiding Network provides a robust mechanism for maintaining visual grounding in image captioning. By bridging the gap between abstract visual features and semantic attributes, it enables the generation of more detailed and diverse captions.

While highly effective, the model's performance is naturally constrained by the accuracy of the underlying attribute extractor. Future work could involve exploring more sophisticated feature sets or extending the "guiding" paradigm to more complex tasks such as video captioning and visual question answering (VQA).

Summary updated

BibTeX
@inproceedings{jiang2018learning,
  author = {Wenhao Jiang and Lin Ma and Xinpeng Chen and Hanwang Zhang and Wei Liu},
  title = {{Learning to Guide Decoding for Image Captioning}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2018},
  doi = {10.1609/aaai.v32i1.12283},
}
Figure