Multi-view Sentence Representation Learning

Shuai Tang, Virginia R. de SaarXiv 2018

TL;DR

This paper introduces a novel multi-view learning framework for sentence representation that combines RNN and linear models. By training these two "views" to agree on adjacent sentences, they achieve improved unsupervised sentence embeddings that transfer well to downstream tasks, outperforming existing unsupervised methods.

What Problem Does This Paper Address?

Learning effective sentence representations is crucial for many Natural Language Processing (NLP) tasks. While supervised methods often yield good results, they require large amounts of labeled data, which is expensive and time-consuming to obtain. Unsupervised methods, which learn from unlabeled text, are therefore highly desirable. Existing unsupervised methods often rely on the distributional hypothesis (words/sentences appearing in similar contexts have similar meanings) but can struggle to capture diverse aspects of sentence meaning. This paper aims to leverage the strengths of different model architectures (RNNs for sequential understanding and linear models for capturing broader semantic similarities) within a multi-view learning framework to create richer, more robust sentence representations from unlabeled data.

Methods

The core of this work is a unified multi-view learning framework. It employs two distinct "views" to encode sentences:

  1. RNN Encoder (View f): A bidirectional Gated Recurrent Unit (GRU) processes the sentence word-by-word, capturing sequential dependencies and syntactic nuances.
  2. Linear Encoder (View g): A simple linear projection (average of word vectors) is used. This approach is known to be effective for capturing coarse semantic similarities.

The key innovation lies in the training objective. Instead of training each view independently, the framework maximizes the agreement (cosine similarity) between the representations generated by the RNN encoder and the linear encoder for the same sentence. Crucially, this agreement is encouraged between adjacent sentences in a corpus, drawing on the distributional hypothesis. This forces each view to learn representations that are not only internally consistent but also align with their contextual neighbors, and importantly, to learn from each other.

A post-processing step involves removing the first principal component from the learned representations, a technique shown to improve performance in related work. The final sentence representation is an ensemble (concatenation) of the outputs from both views.

Datasets

The models were trained on three large, unlabeled corpora:

  • BookCorpus (C1): A collection of books.
  • UMBC News Corpus (C2): A news dataset.
  • Amazon Book Review (C3): Customer reviews from Amazon.

Evaluation was performed on standard unsupervised and supervised NLP tasks, including:

  • Unsupervised: SemEval Semantic Textual Similarity (STS) tasks (STS12-STS16), and the SemEval 2014 Semantic Relatedness task (SICK-R).
  • Supervised: Tasks like paraphrase detection, question-type classification, sentiment analysis, and others, evaluated using the SentEval toolkit.

Key Insights and Ideas

  • Complementary Encoders: The combination of an RNN (sequential, syntactic) and a linear model (coarse semantic) provides a more comprehensive understanding of sentence meaning than either alone. The RNN can capture complex interactions, while the linear model offers a more global view.
  • Inter-View Learning: Forcing the two distinct encoders to agree on adjacent sentences is more effective than training two encoders of the same type independently. This "multi-view" interaction encourages each encoder to learn richer representations by leveraging the strengths of the other.
  • Brain Analogy: The authors draw an analogy to the human brain's hemispheric specialization (sequential vs. parallel processing), suggesting that combining different processing styles can lead to better learning.
  • Efficiency: The proposed framework is efficiently trainable, requiring only a few hours on large corpora, which is a significant advantage over some other unsupervised methods.

Key Results

  • Improved Unsupervised Performance: The multi-view representations consistently outperform single-view representations (RNN-only or linear-only) on unsupervised STS tasks.
  • State-of-the-Art Unsupervised: The proposed models outperform existing unsupervised transfer learning methods on various STS benchmarks.
  • Strong Transferability: The learned representations demonstrate solid transferability to supervised downstream tasks, achieving performance comparable to or better than the best unsupervised transfer models.
  • UMBC News Advantage: The model trained on the UMBC News Corpus (C2) achieved the best performance on STS tasks, likely due to domain alignment with the news-heavy STS datasets.
  • Ensemble Benefits: Combining the representations from the two views (f and g) generally leads to better results than using either view alone.

Limitations and Future Work

  • Dataset Overlap: Hyperparameter tuning was done on STS14/BookCorpus, potentially leading to overfitting on that specific subset. The authors acknowledge this and indicate that results on non-overlapping datasets still show strong generalization.
  • Cosine Similarity: The current framework relies on cosine similarity. Future work could explore incorporating sentence length information or using different similarity metrics.
  • Exploration of Agreement Functions: While the paper tested alternative agreement functions, further exploration might yield even better results. The authors suggest that their chosen function (Eq. 2) is superior because it directly encourages agreement between the two views, preventing them from optimizing independently.
  • Functional Role of Hemispheres: The brain analogy raises an intriguing hypothesis about how different processing styles complement each other, which could be a direction for future research.

Summary updated

Abstract

Multi-view learning can provide self-supervision when different views are available of the same data. The distributional hypothesis provides another form of useful self-supervision from adjacent sentences which are plentiful in large unlabelled corpora. Motivated by the asymmetry in the two hemispheres of the human brain as well as the observation that different learning architectures tend to emphasise different aspects of sentence meaning, we create a unified multi-view sentence representation learning framework, in which, one view encodes the input sentence with a Recurrent Neural Network (RNN), and the other view encodes it with a simple linear model, and the training objective is to maximise the agreement specified by the adjacent context information between two views. We show that, after training, the vectors produced from our multi-view training provide improved representations over the single-view training, and the combination of different views gives further representational improvement and demonstrates solid transferability on standard downstream tasks.
BibTeX
@misc{tang2018multi,
  author = {Shuai Tang and Virginia R. de Sa},
  title = {{Multi-view Sentence Representation Learning}},
  year = {2018},
  eprint = {1805.07443},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1805.07443},
}

Loading related content...

Figure