Abstract
Learning distributed sentence representations is one of the key challenges in natural language processing. Previous work demonstrated that a recurrent neural network (RNNs) based sentence encoder trained on a large collection of annotated natural language inference data, is efficient in the transfer learning to facilitate other related tasks. In this paper, we show that joint learning of multiple tasks results in better generalizable sentence representations by conducting extensive experiments and analysis comparing the multi-task and single-task learned sentence encoders. The quantitative analysis using auxiliary tasks show that multi-task learning helps to embed better semantic information in the sentence representations compared to single-task learning. In addition, we compare multi-task sentence encoders with contextualized word representations and show that combining both of them can further boost the performance of transfer learning.
TL;DR
This paper demonstrates that "universal" sentence embeddings—vector representations that work across many different NLP tasks—become significantly more robust when trained using Multi-task Learning (MTL). By training a single encoder on a mix of natural language inference and paraphrase detection tasks, and using adversarial techniques to separate general features from task-specific ones, the authors achieved state-of-the-art results on a wide battery of transfer learning benchmarks.
What Problem Does This Paper Address?
In NLP, we often want a "Swiss Army knife" for sentences: a way to turn any sentence into a fixed-length mathematical vector (an embedding) that captures its meaning. Ideally, you could train this encoder once and then use those embeddings for everything from sentiment analysis to question answering.
Previous breakthroughs (like InferSent) showed that training an encoder on a single large-scale task, like Natural Language Inference (NLI), produced great results. However, NLI datasets are often domain-specific and limited in vocabulary. The authors ask: Can we build a better "universal" encoder by training on multiple different types of supervised tasks simultaneously? They also investigate how these sentence-level representations interact with word-level contextualized vectors like ELMo.
Methods
The researchers employed a BiLSTM-Max architecture (a bidirectional Long Short-Term Memory network with max-pooling) as their base encoder. To train it, they compared two primary multi-task frameworks:
- Fully Shared (FS) Models: A single encoder is used for all training tasks. The idea is to force one model to learn a representation that satisfies everyone.
- Shared-Private (SP) Models: This is the more sophisticated approach. Each task gets its own "private" encoder to capture task-specific quirks, while all tasks share one "shared" encoder meant to capture general semantics.
- Adversarial Training: To ensure the "shared" encoder in the SP model didn't "cheat" by learning task-specific patterns, they added a discriminator. This discriminator tries to guess which task an embedding came from, while the encoder is trained to "fool" the discriminator. This forces the shared encoder to focus purely on generic, transferable features.
Finally, they experimented with combining these MTL sentence embeddings with contextualized word vectors (CoVe and ELMo) using a biattentive pooling mechanism to see if the two approaches were complementary.
Datasets
The models were trained on three massive "source" datasets:
- SNLI (Stanford Natural Language Inference): 560k pairs labeled for entailment, contradiction, or neutrality.
- Multi-NLI: A multi-genre version of SNLI with 433k pairs.
- Quora Duplicate Questions: 404k pairs for paraphrase identification.
For evaluation, they used the SentEval toolkit, which includes 15 transfer tasks (e.g., sentiment analysis, product reviews, and similarity scores) and 6 auxiliary tasks designed to "probe" the embeddings for specific linguistic features like sentence length, word content, and word order.
Key Insights and Ideas
- Diversity Breeds Generality: Training on both NLI (logic/inference) and Quora (paraphrase/similarity) forces the encoder to learn a more nuanced version of "meaning" than training on either task alone.
- The "Private" Space Matters: The Shared-Private architecture outperformed the Fully Shared one. By giving the model a "trash can" (the private encoder) to put task-specific noise into, the shared encoder is free to learn much cleaner, more universal representations.
- Adversarial "Cleaning": Adversarial training acts as a filter. It effectively "scrubs" the shared embeddings of task-specific signals, making them more robust when transferred to entirely new, unseen tasks.
- Complementary Strengths: Sentence-level embeddings (which look at the "big picture") and contextualized word vectors like ELMo (which look at local word usage) capture different information. Combining them yields a "best of both worlds" effect.
Key Results
- MTL > Single-Task: The multi-task encoders outperformed single-task encoders (trained only on SNLI) on 7 out of 10 primary transfer tasks.
- State-of-the-Art: Combining the MTL encoder with ELMo and CoVe set new state-of-the-art records on 5 out of 10 transfer tasks at the time of publication.
- Linguistic Probing: In auxiliary tasks, the MTL models showed a superior ability to capture Word Sense Disambiguation (WSD) and Sentence Ordering, proving that the multi-task approach embeds deeper semantic and structural information.
- Efficiency: The researchers found that MTL provides a boost even when the total amount of training data is kept the same as the single-task baseline, proving the benefit comes from the variety of tasks, not just more data.
Limitations and Future Work
The authors note that while Multi-NLI covers various genres, the embeddings can still be influenced by the specific domains present in the training data. They suggest that more advanced techniques for modeling specific domains (rather than just tasks) could further improve performance. Additionally, while this paper focused on BiLSTMs, the rise of Transformer-based architectures suggests a natural next step: applying these adversarial multi-task frameworks to models like BERT or GPT.
Summary updated