Diverse Image Captioning with Grounded Style

Franz Klein, Shweta Mahajan, Stefan Roth

TL;DR

Researchers have developed Style-SeqCVAE, a generative framework that moves beyond boring, factual image descriptions to produce diverse captions with specific "styles" (like "playful," "dangerous," or "lonely"). By grounding these styles in local image attributes rather than just global sentiment labels, the model generates multiple, semantically accurate captions that reflect the actual visual nuances of a scene.

What Problem Does This Paper Address?

Standard image captioning models are remarkably good at being "boring." They typically generate a single, factual sentence describing a scene (e.g., "A dog sits on a grass field"). However, human language is rich with style and emotion.

Previous attempts at "stylized" captioning usually relied on global sentiment identifiers—essentially a "positive" or "negative" switch. This approach has two major flaws:

  1. Lack of Grounding: The style often has nothing to do with the image. A model might call a man "dead" just to satisfy a "negative" style requirement, even if the man is clearly alive in the photo.
  2. Lack of Diversity: These models usually produce one stylized caption per sentiment, ignoring the fact that a single image can evoke many different localized feelings (e.g., a "gentle" dog vs. a "fleecy" dog).

The authors aim to bridge this gap by making style grounded (linked to specific objects in the image) and diverse (capable of many variations).

Methods

The core of the paper is the Style-Sequential Conditional Variational Autoencoder (Style-SeqCVAE). Here’s the breakdown of how it works:

  • Sequential Latent Space: Unlike standard VAEs that use a single "thought vector" for a whole sentence, this model uses a sequential latent space. It samples a new latent variable $z_t$ at every time step (every word) of the caption generation.
  • Structured Priors: This is the clever part. Instead of a standard "blank slate" Gaussian prior, the authors structure the latent space using detected image attributes. They use SentiWordNet scores or GloVe word vectors of detected adjectives (like "furry," "rusty," or "sunny") to calculate a prior mean $\mu_t$ at each step. This "nudges" the model toward specific stylistic expressions grounded in what it actually "sees."
  • Attribute-Based Augmentation: To train the model, the authors created a massive new training set by taking factual COCO captions and automatically inserting relevant adjectives based on detected objects. This resulted in over 266,000 unique, image-grounded stylized captions.
  • Constrained Beam Search (CBS): During inference, the model can optionally be "forced" to include specific detected attributes to ensure the style is reflected in the final text.

Datasets

The authors utilized and extended several key benchmarks:

  • COCO (Common Objects in Context): The gold standard for factual captioning.
  • Senticap: A smaller dataset specifically for sentiment-based captioning (positive/negative).
  • COCO Attributes: Used to extract 185 different adjectives to ground the styles.
  • Augmented COCO: The authors' own contribution—a version of COCO where factual captions are enriched with localized adjectives to provide a "style" signal for training.

Key Insights and Ideas

  • Style is Local, Not Global: The paper argues that style shouldn't be a global "mood" for the whole image. Instead, style emerges from the attributes of specific objects (a "yummy" cake, a "busy" street).
  • The Power of Adjectives: By focusing on adjectives as the primary vehicle for style, the authors found a way to bridge the gap between computer vision (object detection) and natural language generation (stylized text).
  • Structuring the Latent Space: Simply throwing a VAE at the problem isn't enough. By mathematically forcing the latent space to align with semantic word vectors (GloVe), the authors made the "style" of the model much more controllable and interpretable.

Key Results

  • Senticap Performance: On the Senticap benchmark, Style-SeqCVAE achieved a CIDEr score of 110.5 (for $n=10$ captions), significantly outperforming previous state-of-the-art models like Karayil et al. (63.1).
  • Diversity: The model showed much higher diversity scores (Div-1 and Div-2) compared to existing methods, meaning it doesn't just repeat the same few "safe" stylized words.
  • Qualitative Success: The model can generate remarkably different "vibes" for the same image. For a photo of a bear, it can produce "a furry brown bear" (neutral), "a dangerous big brown bear" (negative/intense), or "a playful adult bear" (positive).

Limitations and Future Work

  • Dataset Bias: The authors note that the COCO dataset is inherently "neutral to positive." It’s hard to generate truly "negative" or "sad" captions when most of the training images are of happy people, food, and animals.
  • Attribute Errors: The model is dependent on the accuracy of the underlying object/attribute detector. If the detector misidentifies a "rusty" car as a "shiny" one, the style grounding fails.
  • Linguistic Complexity: While the model excels at inserting stylized adjectives, future work could explore more complex linguistic styles, such as changes in sentence structure, metaphor, or sarcasm, which go beyond simple word choice.

Summary updated

BibTeX
@inproceedings{klein2021diverse,
  author = {Franz Klein and Shweta Mahajan and Stefan Roth},
  title = {{Diverse Image Captioning with Grounded Style}},
  booktitle = {GCPR},
  year = {2021},
  doi = {10.1007/978-3-030-92659-5\_27},
}
Figure