Beyond Words: A Comprehensive Survey of Sentence Representations

Abhinav Ramesh Kashyap, Thanh-Tung Nguyen, Viktor Schlegel, Stefan Winkler, See-Kiong Ng, Soujanya Poria · OpenReview

Abstract

Sentence representations have become a critical component in natural language processing applications, such as retrieval, question answering, and text classification. They capture the semantics and meaning of a sentence, enabling machines to understand and reason over human language. In recent years, significant progress has been made in developing methods for learning sentence representations, including unsupervised, supervised, and transfer learning approaches. In this paper, we provide an overview of the different methods for sentence representation learning, including both traditional and deep learning-based techniques. We provide a systematic organization of the literature on sentence representation learning, highlighting the key contributions and challenges in this area. Overall, our review highlights the progress made in sentence representation learning, the importance of this area in natural language processing, and the challenges that remain. We conclude with directions for future research, suggesting potential avenues for improving the quality and efficiency of sentence representations in NLP applications.

Introduction

The evolution of Natural Language Processing (NLP) has seen a dramatic shift from representing individual words to encoding entire sentences into dense mathematical vectors. While Large Language Models (LLMs) like GPT-4 excel at generative tasks, they are not inherently optimized for summarizing sentence-level semantics. This survey explores the roadmap from the early "BERT epoch" to the current "ChatGPT era," focusing on how contrastive learning has emerged as the primary strategy for generating high-quality embeddings.

Evolution of sentence representation techniques from word vectors to LLMs.

Three primary challenges drive this research:

  1. The Anisotropy Problem: Raw embeddings from models like BERT often occupy a narrow cone in vector space, making distinct sentences appear overly similar.
  2. The Retrieval Bottleneck: While "Cross-encoders" are accurate, they are computationally expensive. "Bi-encoders" are necessary for scalable, real-time retrieval.
  3. Taxonomic Synthesis: The rapid proliferation of research requires a unified framework to categorize training methodologies.

Methodology and Framework

The field is organized into a "Data-Model-Transform-Loss" framework. At its core is Contrastive Learning, which optimizes the vector space by pulling "positive" pairs (semantically similar) together and pushing "negative" pairs apart.

Training Strategies

  • Supervised Learning: Leverages Natural Language Inference (NLI) datasets (e.g., SNLI, MNLI) where sentence relationships are human-labeled.
  • Unsupervised Learning: Dominant methods like SimCSE utilize "Dropout" as a data augmentation technique. By passing the same sentence through a model twice with different dropout masks, the model learns to associate these internal variations with the same semantic meaning.
  • Data Augmentation: Techniques range from surface-level edits (word deletion) to model-level manipulations (using different transformer layers).
  • Post-Processing: Methods such as "Whitening" or "BERT-flow" are applied post-training to mitigate the anisotropy issue and normalize the vector space.

Evaluation and Benchmarking

Models are typically evaluated on Semantic Textual Similarity (STS) tasks, which measure the correlation between model-generated similarity scores and human judgment. Broader benchmarks like SentEval and the Massive Text Embedding Benchmark (MTEB) provide a comprehensive view across retrieval, classification, and clustering tasks.

Key Insights and Results

Research indicates that data quality and negative sampling strategies are often more impactful than architectural changes. For instance, simple dropout-based augmentation frequently outperforms complex paraphrasing. Furthermore, while bi-encoders are less expressive than cross-encoders, they remain the only viable option for large-scale applications.

Comparison of sentence representation methods on STS benchmarks.

As shown in the performance table, a semi-supervised T5-based model (Chen et al., 2022b) currently leads with an average STS score of 85.19. In the unsupervised category, SimCSE (RoBERTa-large) remains highly competitive with a score of 83.76, demonstrating the power of contrastive objectives even without labeled data.

Future Frontiers

Despite significant progress, several challenges remain:

  • Domain Sensitivity: Models often struggle when transferred from general corpora (e.g., Wikipedia) to specialized domains like law or medicine.
  • Long-form Context: Representing long documents or entire books in a single vector remains an open research problem.
  • Cross-Lingual Alignment: There is a persistent gap in performance between English and low-resource languages due to a lack of aligned training data.

By addressing these frontiers, future research can improve the robustness and utility of sentence representations across the full spectrum of NLP applications.

Summary updated

Abstract

Sentence representations have become a critical component in natural language processing applications, such as retrieval, question answering, and text classification. They capture the semantics and meaning of a sentence, enabling machines to understand and reason over human language. In recent years, significant progress has been made in developing methods for learning sentence representations, including unsupervised, supervised, and transfer learning approaches. In this paper, we provide an overview of the different methods for sentence representation learning, including both traditional and deep learning-based techniques. We provide a systematic organization of the literature on sentence representation learning, highlighting the key contributions and challenges in this area. Overall, our review highlights the progress made in sentence representation learning, the importance of this area in natural language processing, and the challenges that remain. We conclude with directions for future research, suggesting potential avenues for improving the quality and efficiency of sentence representations in NLP applications.
BibTeX
@inproceedings{kashyap2024beyond,
  author = {Abhinav Ramesh Kashyap and Thanh-Tung Nguyen and Viktor Schlegel and Stefan Winkler and See-Kiong Ng and Soujanya Poria},
  title = {{Beyond Words: A Comprehensive Survey of Sentence Representations}},
  booktitle = {EACL},
  year = {2024},
  url = {https://openreview.net/forum?id=D43ks9lD6x},
}
Figure