Introduction
Sentence representation learning is a cornerstone of modern natural language processing (NLP), enabling models to encode the semantic essence of sentences into fixed-length vectors. While supervised methods yield high-quality representations, they are limited by the availability of labeled data. Unsupervised approaches, such as the generative Skip-Thought model, leverage vast amounts of unlabeled text but suffer from extreme computational costs, often requiring weeks of training on standard hardware.
This paper proposes a shift from generative to discriminative training objectives. By focusing on discourse coherence—the logical "glue" that connects sentences—the authors introduce a suite of tasks that are significantly faster to train while remaining highly effective at capturing semantic meaning.
Methodology: Discourse as a Proxy for Semantics
The core innovation lies in the use of three "discourse-inspired" discriminative tasks to train a shared sentence encoder. Unlike generative models that predict words sequentially, these tasks require the model to make high-level categorical decisions about sentence relationships.
- ORDER: Given two adjacent sentences, the model determines if they are in their original order or have been swapped. This forces the model to understand logical flow.
- CONJUNCTION: The model predicts the category of a missing discourse marker (e.g., "however", "therefore") between two sentences. This requires an understanding of the rhetorical relationship between the segments.
- NEXT: A multi-choice task where the model must identify the correct fourth sentence in a sequence from a set of candidates.
The architecture utilizes a Bidirectional Gated Recurrent Unit (BiGRU) initialized with FastText word embeddings. This setup allows for rapid processing of large-scale corpora, including BookCorpus, Project Gutenberg, and Wikipedia.
Key Results
The primary advantage of the proposed "DiscSent" model is its efficiency. As shown in the performance comparison below, DiscSent achieves a massive speedup over traditional generative models.
While Skip-Thought models require up to 336 hours (two weeks) to train, DiscSent reaches comparable performance in just 8 hours. On the MSRP paraphrase detection task, DiscSent achieved an accuracy of 75.0, trailing the much slower Skip-Thought (+feats) by only 0.8 points. Furthermore, the model showed strong performance on question classification (TREC) and subjectivity analysis (SUBJ), proving that discourse-based objectives capture broad semantic features.
Discussion and Insights
The success of these tasks suggests that discourse coherence is a powerful signal for semantic understanding. A model cannot accurately predict a missing conjunction or determine sentence order without grasping the underlying logic and context. Qualitative analysis further revealed that the model is sensitive to syntax; sentences with similar vector representations often share complex grammatical structures.
However, the approach is not without limitations. The "ORDER" task can be ambiguous when sentences are part of an unordered list, and the quality of the learned representations is inherently tied to the discourse density of the training corpus.
Conclusion
By reframing unsupervised sentence learning as a set of discriminative discourse tasks, this work demonstrates that high-quality representations do not require weeks of generative training. The 40x speedup offered by DiscSent democratizes the training of large-scale sentence encoders, allowing researchers to iterate faster and explore more complex architectures. Future work may involve refining these objectives to handle more nuanced discourse relations and reducing noise in large-scale unlabeled datasets.
Summary updated