Improving Sentence Representations with Multi-view Frameworks

Shuai Tang, Virginia R. de SaarXiv 2018

TL;DR

This paper introduces a novel self-supervised learning framework for sentence representations that leverages "consensus maximization" between two distinct neural network architectures (an RNN and a linear model). By forcing these different views to agree on sentence meaning, the model learns richer representations that outperform single-view approaches and even ensembles of independently trained models.

What Problem Does This Paper Address?

Learning effective sentence representations is crucial for many Natural Language Processing (NLP) tasks. Traditionally, this has relied on large amounts of labeled data, which are expensive and time-consuming to acquire. While self-supervised methods, like those based on the distributional hypothesis (words in similar contexts have similar meanings), offer a way to learn from abundant unlabeled text, they often struggle to capture the full spectrum of sentence meaning. The authors observe that different learning architectures (e.g., RNNs vs. linear models) tend to capture different aspects of sentence semantics. The challenge is to effectively combine these complementary strengths to create more robust and generalizable sentence representations without relying on labeled data.

Methods

The core of the proposed method is consensus maximization learning applied to two distinct "views" of a sentence. These views are generated by two different encoders:

  • RNN Encoder: A bidirectional Gated Recurrent Unit (GRU) that processes sentences sequentially, capturing complex syntactic structures.
  • Linear Encoder: An average-on-word-vectors model that uses a learnable weight matrix to transform word vectors and then averages them, capturing more global semantic meaning.

The learning objective is to minimize the disagreement between the representations produced by these two encoders for adjacent sentences. This is achieved by maximizing the cosine similarity between the representations of sentence pairs that are contextually close (neighbors) and minimizing it for distant pairs. This "agreement" is framed as a discriminative objective.

The authors also explore several variants and extensions:

  • Postprocessing: Applying a step to remove the top principal component from representations to improve performance.
  • Single-view learning: Training each encoder independently using the same objective to establish a baseline.
  • Skip Connection as Regularizer: A variant where the linear model's output is added to the RNN's output, treating the linear model as a regularizer.
  • Multi-view + Single-view: Combining both multi-view maximization and single-view maximization objectives.

Datasets

The models were trained on three large, unlabelled corpora:

  • BookCorpus (D1)
  • UMBC News (D2)
  • Amazon Book Review (D3)

Evaluation was performed on standard downstream NLP tasks, including:

  • Unsupervised Evaluation: SemEval Semantic Textual Similarity (STS) tasks (STS12-16, SICK-R) and related tasks.
  • Supervised Evaluation: Tasks like paraphrase detection (MRPC), question-type classification (TREC), movie review sentiment (MR), Stanford Sentiment Treebank (SST), customer product reviews (CR), subjectivity/objectivity classification (SUBJ), opinion polarity (MPQA).

Key Insights and Ideas

  • Complementary Architectures Yield Better Representations: The fundamental idea that different neural network architectures capture different semantic aspects of sentences is key. Forcing these distinct views to agree leads to richer, more generalizable representations than either view alone.
  • Consensus Maximization as a Powerful Self-Supervision Signal: By treating adjacent sentences as positive pairs and distant ones as negative, the model learns meaningful sentence embeddings without explicit labels. The "agreement" signal is surprisingly effective.
  • Ensembles Benefit from Diversity: An ensemble of the two learned views consistently outperforms individual views and even ensembles of independently trained models, highlighting the value of diverse representations.
  • Beyond Simple Regularization: The linear encoder, when used in a multi-view consensus framework, acts as more than just a simple regularizer for the RNN. It actively contributes to learning better representations for both encoders.

Key Results

  • Improved Individual Views: The consensus maximization learning method improved the performance of each individual encoder (RNN and linear) on downstream tasks compared to when they were trained in a single-view manner.
  • Superior Ensemble Performance: The ensemble of the two consensus-trained views consistently outperformed individual views and also surpassed ensembles of single-view trained counterparts.
  • Competitive Performance: The proposed model achieved performance comparable to or better than existing unsupervised and supervised methods on various downstream tasks, particularly on unsupervised evaluation tasks. For instance, on average, the model outperformed most other unsupervised methods.
  • Efficiency: The method is noted to be trainable within a few hours on large corpora, suggesting good training efficiency.

Limitations and Future Work

  • Limited Exploration of Architectures: The paper primarily focuses on the combination of an RNN and a linear model. The authors suggest that future work could explore the impact of using various other encoding architectures.
  • Potential for Overfitting: While not explicitly detailed as a limitation, the authors note that hyperparameters were tuned on STS14/D1, and results from this dataset are marked to indicate potential overfitting.
  • Future Work: The authors suggest exploring the impact of different encoding architectures and learning under consensus maximization with multiple views. They also mention that future work should investigate the impact of having various encoding architectures and learning under consensus maximization with multiple views.

Summary updated

Abstract

Consensus maximisation 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 observation that different learning architectures tend to emphasise different aspects of sentence meaning, we present a new self-supervised learning framework for learning sentence representations which minimises the disagreement between two views of the same sentence where one view encodes the sentence with a recurrent neural network (RNN), and the other view encodes the same sentence with a simple linear model. After learning, the individual views (networks) result in higher quality sentence representations than their single-view learnt counterparts (learnt using only the distributional hypothesis) as judged by performance on standard downstream tasks. An ensemble of both views provides even better generalisation on both supervised and unsupervised downstream tasks. Also, importantly the ensemble of views trained with consensus maximisation between the two different architectures performs better on downstream tasks than an analogous ensemble made from the single-view trained counterparts.
BibTeX
@misc{tang2018improving,
  author = {Shuai Tang and Virginia R. de Sa},
  title = {{Improving Sentence Representations with Multi-view Frameworks}},
  year = {2018},
  eprint = {1810.01064},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1810.01064},
}
Figure