Abstract
We propose a sentence generation strategy that describes images by predicting the most likely nouns, verbs, scenes and prepositions that make up the core sentence structure. The input are initial noisy estimates of the objects and scenes detected in the image using state of the art trained detectors. As predicting actions from still images directly is unreliable, we use a language model trained from the English Gigaword corpus to obtain their estimates; together with probabilities of co-located nouns, scenes and prepositions. We use these estimates as parameters on a HMM that models the sentence generation process, with hidden nodes as sentence components and image detections as the emissions. Experimental results show that our strategy of combining vision and language produces readable and descriptive sentences compared to naive strategies that use vision alone.
Introduction
Translating a raw image into a natural language description requires bridging a massive semantic gap. While computer vision models can detect objects (like "dog" or "person") and scenes (like "beach"), these detectors are often noisy and unreliable. Furthermore, inferring actions (verbs) from static images is notoriously difficult due to pose ambiguity—for example, a person walking a dog and a person running with a dog might look visually identical in a single frame.
Previous approaches either relied on small, heavily annotated datasets with perfectly paired images and text, or they attempted to brute-force visual action recognition. This paper asks: can we bypass the unreliable visual detection of actions by using a generic, unannotated text corpus to "guess" the most likely actions and relationships based on the objects present?
Methods
The proposed framework fuses state-of-the-art visual detection with corpus-guided linguistic predictions through a multi-step pipeline:
- Visual Perception: The system first runs off-the-shelf part-based object detectors (to find nouns like "person" or "bicycle") and GIST scene descriptors (to find scenes like "street" or "coast").
- Corpus-Guided Prediction: Instead of visually detecting actions, the system consults a language model trained on a massive text corpus. If the vision model detects a "person" and a "bicycle," the language model calculates the log-likelihood of associated verbs, overwhelmingly predicting "ride." It similarly predicts likely scenes given the objects/verbs, and likely prepositions given the scene.
- HMM Optimization: The goal is to find the optimal sentence structure quadruplet: $\mathcal{T}^* = \{n^*, v^*, s^*, p^*\}$ (Noun-Verb-Scene-Preposition). The authors frame this as a Hidden Markov Model (HMM) where hidden states represent sentence components and emissions represent visual detections. Using the Viterbi algorithm, they can find the most likely sentence structure efficiently.
- Sentence Generation: The optimal quadruplet is mapped to a simple grammatical structure (NP-VP-PP), adding determiners and conjugating verbs (e.g., "The person is riding the bicycle on the street").
Datasets
The research utilized several key data sources:
- UIUC Pascal Sentence Dataset: 1,000 images annotated with 5 human-written sentences each. 900 images were used to define the vocabulary and 100 images for testing.
- English Gigaword Corpus: A massive, generic text corpus used to train the language model and compute n-gram probabilities.
- Pascal-VOC 2008: Used to pre-train the visual object detectors.
Key Insights
- Language as a visual error-corrector: A generic text corpus knows that boats usually go on water, not highways. By grounding noisy visual detections in "world knowledge" extracted from text, the system can filter out visually false positives that don't make semantic sense.
- Bypassing visual action recognition: Action recognition in static images is a bottleneck. By treating actions as a linguistic prediction problem rather than a purely visual one, the authors sidestep a major computer vision challenge.
- Distant supervision for multimodal tasks: The system doesn't require a massive dataset of perfectly paired images and captions. It learns visual features from one dataset and semantic relationships from a completely separate, text-only corpus.
Results
The HMM-based approach achieved a ROUGE-1 score of 0.44, outperforming baseline methods that relied solely on visual detections. In qualitative human evaluations via Amazon Mechanical Turk, judges rated the generated sentences on a 1-5 scale. The proposed HMM method produced the most readable sentences (4.10/5) compared to vision-only baselines. Furthermore, the system successfully avoided the trap of simply listing every detected object, instead generating succinct, natural-sounding sentences averaging 6.9 words in length.
Conclusion
While effective, the generated sentences are currently limited to simple templates and a maximum of two objects. If initial visual object detectors fail completely, the language model cannot recover the sentence. Future work includes expanding the HMM for more complex sentence structures, integrating visual saliency to prioritize objects, and applying this approach to text-based image retrieval.
Summary updated