Variational Structured Semantic Inference for Diverse Image Captioning.

Fuhai Chen, Rongrong Ji, Jiayi Ji, Xiaoshuai Sun, Baochang Zhang, Xuri Ge, Yongjian Wu, Feiyue Huang, Yan WangNeurIPS 2019

TL;DR

This paper introduces VSSI-cap, a novel model for generating diverse image captions by explicitly modeling both lexical (word choice) and syntactic (sentence structure) variations. It achieves this through a structured encoder-inferer-decoder architecture with a new "Variational Multi-modal Inferring tree" (VarMI-tree) that infers latent variables for these diversities, leading to significant improvements in caption diversity and accuracy.

What Problem Does This Paper Address?

Traditional image captioning models, while impressive, often produce captions that are semantically similar and syntactically alike, failing to capture the inherent diversity of human interpretation of an image. This paper tackles the challenge of generating diverse captions for a single image. Existing methods that attempt diversity, often using VAEs or GANs, tend to treat this as a black box and neglect the crucial underlying factors: the variety in word choice (lexical diversity) and sentence construction (syntactic diversity). The authors argue that explicitly modeling these two aspects is key to achieving truly diverse and natural-sounding captions.

Methods

The core innovation of VSSI-cap lies in its novel structured encoder-inferer-decoder schema and the Variational Multi-modal Inferring tree (VarMI-tree).

  • Encoder: This component processes an input image and its corresponding caption (during training) to extract visual features (using CNN) and textual features (using word embeddings).
  • Inferer (VarMI-tree): This is the heart of the model. It builds upon a Visual Parsing Tree (VP-tree) framework, which identifies entities and relationships in an image. The VarMI-tree extends this by:
  • Semantic Mapping: Mapping visual and textual features into different semantic spaces (subjects, objects, relations).
  • Node Combining: Aggregating these features.
  • Inferring Lexical and Syntactic Latent Variables: This is the key novelty. The VarMI-tree infers latent variables ($z^{(l)}$ for lexical, $z^{(s)}$ for syntactic) using an additive Gaussian distribution. The parameters of these distributions are weighted by probability distributions derived from the VP-tree, which represent the likelihood of specific words and POS tags. This allows the model to explore variations in word choice and sentence structure.
  • Posterior and Prior Inference: The model learns an approximate posterior distribution for these latent variables and also defines a prior distribution, guided by the visual semantic information.
  • Decoder: A standard LSTM-based decoder takes the visual features from the encoder and the sampled latent variables (either from the posterior during training or the prior during generation) to produce the final caption.

The model is trained by optimizing a combination of a reconstruction loss (ensuring accurate captions) and a KL-divergence term (encouraging the posterior to match the prior, promoting diversity).

Datasets

The experiments were conducted on the MSCOCO dataset, a widely used benchmark for image captioning. The paper does not introduce any new datasets.

Key Insights and Ideas

  • Lexical and Syntactic Diversity are Crucial: The paper strongly emphasizes that achieving diverse captions requires explicitly modeling both the choice of words and the way sentences are structured, rather than treating diversity as a monolithic output.
  • VarMI-tree as a Structured Inferer: The VarMI-tree is a novel approach to inferring latent variables for diversity. By leveraging VP-trees and an additive Gaussian model, it effectively captures and models the nuances of lexical and syntactic variations.
  • Encoder-Inferer-Decoder Synergy: The proposed architecture effectively integrates the diverse latent representations from the inferer with visual information in the decoder, leading to improved caption generation.
  • Visual Prior Guidance: Using visual semantic information to guide the inference of latent variables helps ensure that the generated diverse captions remain relevant to the image content.

Key Results

  • Accuracy: VSSI-cap achieves state-of-the-art performance on accuracy metrics like CIDEr, outperforming strong baselines like AG-CVAE. This suggests that explicitly modeling diversity does not come at the cost of accuracy.
  • Diversity: The model demonstrates significant improvements in diversity metrics, including Div1, Div2, mBleu, Uni., and Nov. (Novel Sentence), outperforming existing methods. For example, VSSI-cap achieved 62.4% on mBleu (lower is better) and 83.0% on Unique Sentence (higher is better) for 5 generated captions.
  • Qualitative Examples: Visualizations show that VSSI-cap generates more varied captions compared to baseline methods, illustrating the effectiveness of its approach.

Limitations and Future Work

  • Complexity of Analysis: The authors acknowledge that analyzing the internal mechanisms of the VAE-based structured encoder-inferer-decoder is challenging due to the complex interplay of different vector spaces and functional parameters.
  • VP-tree Dependency: While the paper notes that VP-tree can be replaced, its effectiveness is demonstrated in conjunction with the proposed VarMI-tree. Future work could explore alternative structured representations.
  • Human Caption Gap: Despite strong performance, there remains a gap between the generated captions and human-generated ones in terms of diversity, suggesting room for further improvement. The paper implicitly suggests that exploring more sophisticated ways to model human linguistic nuances could be a future direction.

Summary updated

BibTeX
@inproceedings{chen2019variational,
  author = {Fuhai Chen and Rongrong Ji and Jiayi Ji and Xiaoshuai Sun and Baochang Zhang and Xuri Ge and Yongjian Wu and Feiyue Huang and Yan Wang},
  title = {{Variational Structured Semantic Inference for Diverse Image Captioning.}},
  booktitle = {NeurIPS},
  year = {2019},
  url = {https://openreview.net/forum?id=koVHWVgyOF3V},
}
Figure