DeViSE: A Deep Visual-Semantic Embedding Model

Andrea Frome, Gregory S. Corrado, Jonathon Shlens, Samy Bengio, Jeffrey Dean, Marc'Aurelio Ranzato, Tomas MikolovNeurIPS 2013

TL;DR

DeViSE (Deep Visual-Semantic Embedding) moves beyond traditional "one-hot" image classification by mapping images into a rich, high-dimensional semantic word space. By leveraging unannotated text to learn relationships between labels, the model can make "smarter" mistakes and perform zero-shot learning—identifying object categories it has never seen during training.

What Problem Does This Paper Address?

Traditional computer vision systems treat labels as discrete, unrelated entities. In a standard 1000-way classifier, a model that confuses a "Husky" with a "Malamute" is penalized just as heavily as one that confuses a "Husky" with a "Microwave." This approach ignores the inherent semantic structure of the world and makes it impossible to scale to the tens of thousands of object categories that exist in reality, as we cannot possibly collect labeled images for every single concept.

The authors tackle two main challenges:

  1. Semantic Awareness: Making models understand that some errors are more "reasonable" than others.
  2. Zero-Shot Learning: Enabling a model to predict labels for which it has seen zero training images.

Methods

The DeViSE architecture is a hybrid that "glues" together a state-of-the-art visual model and a powerful language model.

DeViSE Architecture and Semantic Space
  1. Language Model Pre-training: The authors use the skip-gram (Word2Vec) architecture trained on 5.7 million Wikipedia documents. This learns dense vector representations (embeddings) where semantically similar words (e.g., "shark" and "whale") are close together in vector space.
  2. Visual Model Pre-training: They use a deep Convolutional Neural Network (CNN)—specifically the architecture that won the 2012 ImageNet challenge—pre-trained to classify 1,000 categories.
  3. The DeViSE Model: The authors remove the final "softmax" classification layer of the CNN. In its place, they add a linear transformation layer that maps the high-level visual features (4096-D) into the semantic word embedding space (500-D or 1000-D).
  4. Hinge Rank Loss: Instead of standard cross-entropy, they use a ranking loss. The goal is to train the model so that the dot product (similarity) between the image's projected vector and the correct label's embedding is higher than the similarity with randomly chosen incorrect labels by a specific margin.

Datasets

  • Training: ILSVRC 2012 (ImageNet 1K), consisting of 1.2 million images across 1,000 categories.
  • Text Corpus: Wikipedia (5.4 billion words) used to train the skip-gram embeddings.
  • Evaluation (Zero-Shot): The full ImageNet 2011 21K dataset. This contains over 20,000 categories that the visual model never saw during training, used to test the model's ability to generalize to novel concepts.

Key Insights and Ideas

  • Ranking over Regression: The authors found that a ranking loss (hinge loss) significantly outperformed a regression loss (like L2 distance). In high-dimensional spaces, trying to "hit" an exact coordinate is less effective than simply trying to be "closer to the right answer than the wrong ones."
  • The Power of Unlabeled Text: By using unannotated text (Wikipedia), the model inherits a "common sense" understanding of the world. It knows a "tiger shark" is a type of "shark" because of how those words appear in text, even if it has only seen images of "tiger sharks."
  • Graceful Degradation: When the model fails, it fails "gracefully." Because it maps to a semantic space, its top predictions for an image might be technically wrong but visually and semantically related to the true label.
Qualitative Comparison of Model Predictions

Key Results

  • ImageNet 1K Performance: DeViSE achieved parity with state-of-the-art softmax classifiers on "flat" metrics (like hit@20) while performing significantly better on hierarchical metrics that reward semantically close guesses.
  • Zero-Shot Success: This is the headline result. When tested on 1,589 "nearby" labels (within 2 hops in the WordNet hierarchy) that were never seen during training, DeViSE achieved a hit@5 rate of 18.1%.
  • Scaling to 20K Labels: Even when forced to choose from the entire 20,841-label ImageNet 21K set, the model could correctly identify unseen objects in its top-20 guesses about 6% of the time—vastly better than the 0.1% expected by chance.

Limitations and Future Work

  • Bias Toward Training Classes: The authors noted that the model has a natural bias toward the 1,000 classes it was trained on. When allowed to predict both seen and unseen labels, it often defaults to the seen ones.
  • Vocabulary Constraints: While 155,000 words is large, it doesn't cover every possible phrase. The authors suggest that using even larger, less "manicured" text datasets could further improve the model's "open-world" recognition.
  • Fine-tuning: The paper suggests that simultaneously training the language model and the visual model (rather than using pre-trained word vectors) could lead to a more optimized joint space.

Summary updated

BibTeX
@inproceedings{frome2013devise,
  author = {Andrea Frome and Gregory S. Corrado and Jonathon Shlens and Samy Bengio and Jeffrey Dean and Marc'Aurelio Ranzato and Tomas Mikolov},
  title = {{DeViSE: A Deep Visual-Semantic Embedding Model}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2013},
  url = {https://openreview.net/forum?id=rJ-JC_WdZr},
}
Figure