Skip-Thought Vectors

Ryan Kiros, Yukun Zhu, Ruslan Salakhutdinov, Richard S. Zemel, Raquel Urtasun, Antonio Torralba, Sanja Fidler

Introduction

Skip-Thought Vectors introduce an unsupervised framework for learning generic, distributed sentence representations. By predicting the surrounding context of a sentence within a narrative, the model creates an "off-the-shelf" encoder that captures both semantic and syntactic properties. Trained on a massive corpus of books, these vectors perform robustly across diverse NLP tasks without the need for task-specific fine-tuning.

The Challenge of Sentence Representation

In 2015, word embeddings like word2vec revolutionized NLP by providing dense, meaningful representations of individual words. However, moving from word-level to sentence-level representations remained a significant challenge.

Most existing methods were supervised, requiring labeled data (like sentiment scores) to train. This made the resulting vectors "specialists"—highly effective at one specific task but poor at generalizing to others. Unsupervised alternatives, like Paragraph Vectors, existed but were computationally expensive during inference. The authors sought a way to train a universal encoder: a model capable of turning any sentence into a fixed-length vector that performs well across a wide range of tasks, from sentiment analysis to image-sentence ranking, entirely without labeled training data.

Methods: The Skip-Thought Architecture

The core intuition behind Skip-Thought Vectors is an abstraction of the skip-gram objective used in word2vec. While skip-gram predicts surrounding words given a target word, Skip-thoughts predict surrounding sentences given a target sentence.

The Skip-Thought Encoder-Decoder Architecture
  1. The Encoder-Decoder Architecture: The model utilizes a Recurrent Neural Network (RNN) with Gated Recurrent Units (GRUs) to encode a target sentence ($s_i$) into a fixed-length vector. This vector is then passed to two separate decoders: one attempts to reconstruct the previous sentence ($s_{i-1}$) and the other reconstructs the next sentence ($s_{i+1}$).
  2. Unsupervised Learning via Continuity: Because the model only requires contiguous text to train, it bypasses the need for human-labeled data. It learns the "meaning" of a sentence by understanding the narrative context that typically precedes and follows it.
  3. Vocabulary Expansion: To handle the "Out of Vocabulary" (OOV) problem, the authors developed a clever mapping technique. They learned a linear mapping between a large, pre-trained word2vec space and their own RNN word space, expanding their vocabulary from 20,000 words to nearly one million words post-training.

Datasets and Evaluation

The model was trained on the BookCorpus dataset, a collection of over 11,000 unpublished novels comprising 74 million sentences. Books are ideal for this task because they provide a high degree of narrative continuity, dialogue, and emotional range.

For evaluation, the model was tested on 8 distinct benchmarks:

  • Semantic Relatedness: SICK dataset
  • Paraphrase Detection: Microsoft Paraphrase Corpus
  • Image-Sentence Ranking: Microsoft COCO
  • Classification Benchmarks: MR (Movie Reviews), CR (Customer Reviews), SUBJ (Subjectivity), MPQA (Opinion Polarity), and TREC (Question-type classification).

Key Insights

  • Continuity as Supervision: The "continuity of text" serves as a powerful training signal. If a model can predict what a character might say next, it must have captured a deep representation of the current sentence's underlying meaning and structure.
  • The "Off-the-Shelf" Philosophy: Unlike many modern models that require extensive fine-tuning, Skip-thoughts were designed to be frozen. The encoder acts as a fixed feature extractor, and a simple linear classifier is trained on top of the resulting vectors for specific downstream tasks.
  • Syntactic vs. Semantic: Because the model reconstructs sentences word-for-word, it is forced to learn not just the semantic "vibe" of a sentence, but also its grammatical syntax.

Key Results

  • Semantic Relatedness: On the SICK dataset, the "combine-skip" model (a 4800-dimensional vector combining unidirectional and bidirectional encoders) achieved a Pearson correlation of 0.8584, outperforming all previous SemEval 2014 submissions.
  • Paraphrase Detection: The model achieved an accuracy of 73.0% (and 75.8% when combined with basic features), competitive with state-of-the-art systems that relied heavily on manual feature engineering.
  • Robustness: Across five different classification tasks, Skip-thought vectors performed on par with or better than bag-of-words baselines, proving their utility as a general-purpose tool.
  • Visualizations: t-SNE plots of the vectors demonstrated that the model naturally clustered sentences by sentiment and question type, even though it was never explicitly trained on those labels.
t-SNE visualizations of Skip-Thought sentence embeddings

Limitations and Future Work

  • Training Time: The models required roughly two weeks of training on a single GPU, a significant computational cost at the time of publication.
  • Context Window: The model only looks at one sentence before and after. Expanding this context window or encoding entire paragraphs could yield even richer representations.
  • Architectural Variations: While the paper primarily uses GRUs, the authors note that other encoders (like CNNs or deeper RNNs) could be substituted into the framework.
  • Fine-tuning: Although the "frozen" approach is convenient, task-specific fine-tuning would likely push performance even higher.

Summary updated

BibTeX
@inproceedings{kiros2015skip,
  author = {Ryan Kiros and Yukun Zhu and Ruslan Salakhutdinov and Richard S. Zemel and Raquel Urtasun and Antonio Torralba and Sanja Fidler},
  title = {{Skip-Thought Vectors}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2015},
  url = {https://openreview.net/forum?id=Skb0FuZOZS},
}
Figure