Skeleton Key: Image Captioning by Skeleton-Attribute Decomposition

Yufei Wang, Zhe Lin, Xiaohui Shen, Scott Cohen, Garrison W. Cottrell

Introduction

Standard image captioning models typically generate descriptions in a linear, word-by-word fashion. While effective, this approach often leads to "parroting"—memorizing common phrases from training data—and "attribute confusion," where a model predicts a descriptor (e.g., "green") before committing to the object it describes (e.g., "grass"). This contradicts human perception, which generally identifies a subject before noticing its specific details.

To address these challenges, researchers have developed a "Skeleton Key" framework. This approach mimics human cognition by first identifying the "skeleton" of a scene—the core objects and their relationships—and then fleshing it out with descriptive attributes. This coarse-to-fine decomposition improves semantic accuracy and the novelty of generated descriptions.

The Skeleton-Attribute Decomposition process: identifying core objects and relationships before adding descriptive attributes.

Proposed Framework: Skeleton-Attribute Decomposition

The core of the proposed method is a modular architecture consisting of two specialized Long Short-Term Memory (LSTM) networks:

  1. Skel-LSTM: This module generates the "skeleton" sentence, focusing on core nouns, verbs, and prepositions (e.g., "horse on pasture"). It utilizes a soft-attention mechanism to scan the image for primary objects and their spatial configurations.
  2. Attr-LSTM: Once a skeletal word is predicted, this module "revisits" the corresponding visual region to generate relevant attributes (e.g., "three," "green"). It is conditioned on the skeletal word, the hidden state of the Skel-LSTM, and refined visual attention.
The Skeleton Key architecture, featuring the Skel-LSTM for core structure and the Attr-LSTM for attribute generation.

Key Innovations

  • Decomposition via Parsing: During training, a Stanford constituency parser automatically separates attributes from ground-truth captions to create a specialized "skeleton" dataset.
  • Attention Refinement: A "post-word" attention mechanism allows the Attr-LSTM to refine its visual focus based on the object predicted by the Skel-LSTM, ensuring attributes are correctly mapped to subjects.
  • Variable-Length Control: Users can adjust a "length factor" during inference to produce either concise summaries or highly detailed descriptions without retraining the model.

Experimental Evaluation

The model was evaluated on two major benchmarks: MS-COCO, the standard industry dataset with over 120,000 images, and Stock3M, a massive new dataset introduced in this study containing 3.2 million user-uploaded images with diverse, natural captions.

Results and Insights

The "Skeleton Key" method demonstrated significant improvements in semantic accuracy, particularly as measured by the SPICE metric, which evaluates how well a caption captures the underlying scene graph (objects, attributes, and relations).

  • State-of-the-Art Performance: On MS-COCO, the model achieved a SPICE score of 0.196, outperforming contemporary baselines.
  • Reduced Training Variance: By decoupling the "what" (skeleton) from the "how" (attributes), the model learns more efficiently, avoiding the need to memorize every possible adjective-noun combination.
  • Increased Novelty: The staged construction process makes the model less likely to repeat training strings. It generated 8% more novel captions compared to baseline models.

Conclusion and Future Work

While the Skeleton Key framework offers a more human-like approach to captioning, it currently relies on an external linguistic parser, which can introduce errors if compound nouns are misidentified. Additionally, the current model generates attributes before skeletal words in a fixed order. Future research will explore more complex decompositions where attributes can appear after objects and investigate methods for automatically determining the optimal level of descriptive detail based on visual complexity.

Summary updated

BibTeX
@inproceedings{wang2017skeleton,
  author = {Yufei Wang and Zhe Lin and Xiaohui Shen and Scott Cohen and Garrison W. Cottrell},
  title = {{Skeleton Key: Image Captioning by Skeleton-Attribute Decomposition}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2017},
  doi = {10.1109/cvpr.2017.780},
}
Figure