Multimodal Neural Language Models

Ryan Kiros, Ruslan Salakhutdinov, Richard S. ZemelICML 2014

Introduction: The Problem with Templates

In the early days of image captioning, the field was dominated by "structured" approaches. These methods often relied on fixed templates (e.g., "A [object] is [preposition] a [object]"), object detectors, or complex syntactic trees to stitch together descriptions. While functional, these systems were brittle and lacked the fluid, descriptive nature of human language.

This paper introduces two novel neural language models—the MLBL-B and MLBL-F—that can be conditioned on non-textual modalities like images. The authors address a core challenge: creating a unified model that "understands" both the semantic space of words and the visual space of images. By jointly training these models with convolutional neural networks (CNNs), they demonstrate that language models can generate realistic image descriptions and perform cross-modal retrieval without relying on rigid templates or pre-defined syntactic trees.

Proposed Methods: MLBL-B and MLBL-F

The authors build upon the Log-Bilinear (LBL) language model, which predicts the next word in a sequence by looking at a linear combination of the vector representations (embeddings) of previous words. They extend this into two multimodal flavors:

  1. Modality-Biased LBL (MLBL-B): This is the "additive" approach. The model takes a high-level feature vector from an image and adds it as a bias term when predicting the next word. Essentially, the image "nudges" the language model toward relevant vocabulary.
  2. Factored 3-way LBL (MLBL-F): This is the "multiplicative" or "gating" approach. Instead of a simple nudge, the image features act as a gate that scales the word representations. Because a full 3-way interaction (word context × image × output word) would involve too many parameters, they use a factored tensor to keep the model computationally efficient.

Crucially, the authors do not just use fixed image features. They propose Joint Image-Text Feature Learning, where a CNN is trained alongside the language model. This allows the visual filters to specialize in features that are actually useful for describing the scene.

Datasets and Evaluation

The models were evaluated on three distinct datasets to test their versatility across different types of visual and textual data:

  • IAPR TC-12: 20,000 images of landscapes, portraits, and sports with 1–3 sentence descriptions.
  • Attribute Discovery: Approximately 40,000 product images (shoes, bags, etc.) with web-scraped descriptions that are often noisy or "advertisement-like."
  • SBU Captioned Photos: A larger subset of roughly 400,000 images used primarily for inducing high-quality word embeddings.
Example of a snowy landscape image, representative of the natural scenes found in the IAPR TC-12 dataset.

Key Insights and Performance

The results of the study yielded several important insights into how multimodal models process and generate language.

First, the models proved that templates are unnecessary. The MLBL models learned to generate coherent sentences purely from data, proving that "distributional" semantics (word vectors) can capture enough structure to bypass traditional grammar rules.

Interestingly, the authors found that perplexity isn't everything. A surprising finding was that lower perplexity (how well the model predicts the next word) didn't always correlate with better BLEU scores (how "human-like" the generated sentence is). This highlighted the need for diverse evaluation metrics in multimodal tasks.

Furthermore, the study demonstrated the power of biasing. While the gated MLBL-F is theoretically more powerful, the simpler additive MLBL-B was remarkably effective. This suggested that even a simple "visual context" signal is enough to significantly improve language generation. By training on images, the model learns visual-semantic alignment—word neighbors that are visually similar, not just linguistically similar. For example, "gloomy" moves closer to "hazy" or "stormy" because those words appear in similar visual contexts.

In terms of quantitative results, the MLBL models significantly outperformed standard n-gram models and the basic LBL on the IAPR TC-12 dataset. For instance, the MLBL-B-DECAF model achieved a B-1 score of 0.373, compared to 0.327 for the non-visual LBL. The models also proved highly effective at cross-modal retrieval, outperforming a strong Bag-of-Words (BOW) baseline.

Qualitatively, the models were able to generate 50-word descriptions that, while sometimes repetitive, accurately captured the general theme of complex images—such as identifying a classroom or a lighthouse—without any manual feature engineering.

The model demonstrated qualitative success in identifying complex themes, such as a classroom setting, without manual feature engineering.

Limitations and Future Directions

Despite their success, the models have notable limitations. The authors observed that the model sometimes "hallucinates" objects that aren't there (e.g., describing people in an empty landscape) because it over-relies on common linguistic patterns. Additionally, while the model generates fluid text, it occasionally struggles with long-term syntactic consistency. Adding more explicit structural constraints or detection algorithms could help mitigate this.

The model also struggled with very short, single-word queries (like "sunset"), as it was optimized for the statistics of full-sentence descriptions.

Ultimately, this work lays a strong foundation for multimodal learning. The authors conclude by suggesting these algorithms could be easily adapted to other modalities, opening the door for future research in audio-to-text or video-to-text generation.

Summary updated

BibTeX
@inproceedings{kiros2014multimodal,
  author = {Ryan Kiros and Ruslan Salakhutdinov and Richard S. Zemel},
  title = {{Multimodal Neural Language Models}},
  booktitle = {International Conference on Machine Learning},
  year = {2014},
  url = {https://openreview.net/forum?id=B14JPobOZr},
}
Figure