Introduction
Standard image captioning models typically generate single, concise sentences. While effective for simple scenes, they often fail to capture the rich, nuanced details of complex visual environments. Image Paragraph Captioning (IPC) addresses this by generating multi-sentence descriptions (typically 4–6 sentences). However, conventional attention mechanisms in IPC suffer from a "memory" deficit: they lack a robust way to track which image regions have already been described. This often results in repetitive descriptions of the same objects or the omission of salient features because the model cannot maintain a "coverage" map of the visual field.
Proposed Method: The IMAP Model
The Interactive key-value Memory-augmented Attention (IMAP) model introduces a dynamic key-value memory system designed to track attention history and ensure comprehensive scene coverage.
The architecture consists of three primary components:
- Image Encoder (DenseCap): Extracts visual feature vectors and "dense phrases"—short textual descriptions of specific regions—to provide a rich semantic foundation.
- Interactive Key-Value Memory-augmented Attention (IKVMA): This module utilizes two memory types. Value-Memory stores fixed semantic image features, while Key-Memory is a dynamic store updated at each decoding step. Using "ERASE" and "ADD" operations, the model tracks which regions have been "covered" by the generated text, effectively acting as a checklist.
- Hierarchical Decoder: A two-level LSTM structure where a Sentence-LSTM determines the "topic" and quantity of sentences, and a Word-LSTM decodes these topics into specific words via the IKVMA module.
The model also employs Adaptive Attention, allowing words to attend to multiple regions and vice versa, facilitating a more flexible alignment between visual and linguistic features. Training involves initial cross-entropy loss followed by Self-Critical Sequence Training (SCST) to optimize for the CIDEr metric.
Experiments and Results
The IMAP model was evaluated on the Stanford image paragraph dataset, comprising 14,575 training images with human-annotated paragraphs.
Quantitative Performance
IMAP achieved state-of-the-art results across all major benchmarks. Notably, it reached a CIDEr score of 24.07, significantly surpassing the previous best model, ICAP (22.86). It also showed improvements in BLEU-4 (10.29). Human evaluation further confirmed these findings, with IMAP scoring an average of 1.13 on a 0-2 scale, outperforming both the "Regions-Hierarchical" baseline (0.85) and an IMAP variant without the memory module (1.01).
Qualitative Analysis
Qualitative comparisons highlight the model's ability to avoid redundancy. While baseline models often repeat descriptions of prominent objects, IMAP successfully transitions between different scene elements.
As shown in the example above, the memory-augmented model avoids repeating "trees" and instead identifies "umbrellas" and the "body of water," providing a more holistic summary of the scene.
Conclusion
The IMAP model demonstrates that incorporating a dynamic, interactive memory into the attention mechanism significantly improves the coherence and comprehensiveness of image paragraph captioning. By treating memory as a "checklist" of visual coverage, the model effectively mitigates the issues of repetition and incomplete descriptions. Future work may explore applying this interactive memory framework to other long-form tasks such as visual storytelling or long-form video captioning.
Summary updated