Abstract
This paper introduces a framework for generating robust and transferable sentence embeddings by training on multiple text classification tasks simultaneously. Utilizing a "shared-private" architecture combined with adversarial training, the model effectively separates general linguistic features from task-specific noise. When integrated with existing word and sentence encoders, this approach achieves state-of-the-art performance across various NLP benchmarks and demonstrates significant improvements in sample efficiency for downstream tasks.
Introduction
Deep learning models for text classification, such as Recurrent Neural Networks (RNNs), are highly effective but typically require vast amounts of labeled data. While transfer learning—pre-training on large datasets before fine-tuning on specific tasks—mitigates this, it faces two primary challenges: feature contamination, where models overfit to source-specific jargon, and representation gaps, where the optimal combination of word-level (e.g., ELMo) and sentence-level (e.g., InferSent) information remains unclear.
Methods: Shared-Private Multi-Task Learning
The authors propose a framework using a Shared-Private Multi-Task Learning (MTL) architecture. The core components include:
- Encoder: A BiLSTM with max-pooling (BiLSTM-max) transforms sentences into vector representations.
- Architecture: For each source task (e.g., Entailment or Paraphrasing), the model maintains a "private" encoder for task-specific nuances and a "shared" encoder for universal linguistic properties.
- Adversarial Training: A discriminator penalizes the shared encoder if it can identify the source task of an input. This adversarial "scrubbing" forces the shared encoder to ignore task-specific signals in favor of general syntax and semantics.
- Orthogonality Constraint: A difference loss ($L_{diff}$) ensures shared and private representations remain distinct, reducing redundancy.
- Unified Ensemble: The final model concatenates these learned representations with GenSen (sentence-level) and ELMo (contextualized word-level) vectors.
Key Insights and Results
The model was pre-trained on large-scale tasks including SNLI, MNLI, and Quora Question Pairs (QQP), then evaluated using the SentEval toolkit across 15 transfer tasks and 10 linguistic probing tasks.
Complementary Representations
Analysis revealed that word-level contextual vectors (ELMo) and sentence-level vectors are highly complementary. ELMo excels at surface-level and syntactic tasks, while sentence-level encoders are superior for complex semantic tasks, such as identifying if a sentence's meaning has been subtly altered.
State-of-the-Art Performance
The combined ensemble (Sent2Vec + GenSen + ELMo) achieved state-of-the-art results on 5 out of 8 major transfer tasks, showing particular strength in sentiment analysis (MR) and opinion polarity (MPQA). Adversarial training specifically improved performance in 9 out of 15 transfer tasks compared to standard MTL.
Sample Efficiency
A critical advantage of these robust representations is their sample efficiency. The model maintains high accuracy even when the target task has very few labeled examples (fewer than 5,000), outperforming baseline models significantly in low-data regimes.
Conclusion
By decoupling task-specific noise from general linguistic features through adversarial multi-task learning, this research provides a path toward more "universal" sentence encoders. Future work may explore more sophisticated fusion methods, such as attention mechanisms, and the inclusion of broader source tasks like translation or summarization to further enhance representation universality.
Summary updated