Introduction
In Natural Language Processing (NLP), while word-level representations like Word2Vec or GloVe have become foundational, generating fixed-length vector representations for entire sentences remains a significant challenge. Existing methods typically rely on either expensive human-labeled datasets (supervised learning) or large corpora of ordered text (unsupervised learning using the distributional hypothesis).
This paper introduces ConsSent, an unsupervised framework developed by Siddhartha Brahma that learns universal sentence representations from unordered collections of sentences. By shifting the objective from predicting context to identifying internal sequence consistency, ConsSent captures deep structural and semantic properties of language without requiring document-level structure.
Methodology: Discriminative Training for Consistency
The core of ConsSent is a discriminative training objective. The model is trained to distinguish between a "consistent" example (a real sentence from a corpus) and an "inconsistent" example (a version of the same sentence corrupted by random perturbations).
The authors propose six specific tasks to generate inconsistent examples:
- Single Sequence Tasks: Deletion (D), Permutation (P), Insertion (I), and Replacement (R) of $k$ random words.
- Pair Sequence Tasks: Contiguous (C) and Non-contiguous (N) splitting and swapping of sentence parts.
The architecture utilizes a BiLSTM-Max encoder to transform sentences into fixed-length vectors. The model can be trained on individual tasks, in a multitask setting (ConsSent-MT), or combined into an ensemble of specialized encoders.
Performance and Hyperparameter Sensitivity
Evaluation on the SentEval benchmark demonstrates that ConsSent consistently outperforms strong unsupervised baselines like SkipThought and FastText. Notably, on tasks like TREC (question classification) and MRPC (paraphrase detection), ConsSent-MT achieves competitive results even when trained on significantly smaller datasets than its counterparts (15M vs 181M sentences for QuickThoughts).
A key finding is the sensitivity of the model to the hyperparameter $k$ (the number of tokens perturbed). As shown in the figure above, the optimal value of $k$ varies depending on the specific task and the type of perturbation used. For instance, tasks requiring syntactic understanding may benefit from lower $k$ values, while semantic similarity tasks might require more significant perturbations to force the model to learn robust features.
Probing Linguistic Knowledge
To understand what the encoders actually learn, the authors employed a series of probing tasks designed to test for specific linguistic properties. ConsSent achieves high scores in these tests, particularly in capturing word content and sentence length.
The figure above illustrates the performance on the WordContent probing task. The results suggest that different perturbation tasks bias the encoder in distinct ways. For example, replacement (R) and insertion (I) tasks often force the model to pay closer attention to the specific vocabulary used, leading to better performance on word-level probing tasks. Combining these specialized encoders into an ensemble yields the best overall linguistic understanding, achieving an average probing score of 83.3, significantly higher than SkipThought's 73.0.
Conclusion
ConsSent demonstrates that high-quality sentence embeddings can be learned through a simple discriminative consistency objective. By removing the requirement for ordered text, ConsSent opens the door to utilizing vast amounts of unstructured web data. Future work may involve exploring more sophisticated "fake" sentence generators to avoid accidental consistency and applying the framework to modern Transformer-based architectures to further enhance representation quality.
Summary updated