Abstract
Though offering amazing contextualized token-level representations, current pre-trained language models take less attention on accurately acquiring sentence-level representation during their self-supervised pre-training. However, contrastive objectives which dominate the current sentence representation learning bring little linguistic interpretability and no performance guarantee on downstream semantic tasks. We instead propose a novel generative self-supervised learning objective based on phrase reconstruction. To overcome the drawbacks of previous generative methods, we carefully model intra-sentence structure by breaking down one sentence into pieces of important phrases. Empirical studies show that our generative learning achieves powerful enough performance improvement and outperforms the current state-of-the-art contrastive methods not only on the STS benchmarks, but also on downstream semantic retrieval and reranking tasks.
Introduction
While large-scale language models like BERT have revolutionized natural language processing by providing rich token-level contextualization, they often struggle to produce high-quality sentence-level embeddings. Standard practice has shifted toward contrastive learning, where models are trained to align different augmented versions of the same sentence. While effective for simple similarity tasks, contrastive learning suffers from a lack of interpretability and an inductive bias that can lead to "lazy" representations, which fail in complex downstream tasks like semantic retrieval.
To address these limitations, we introduce PaSeR (Phrases-aware Sentence Representation). Unlike contrastive methods that focus on inter-sentence relationships, PaSeR utilizes a generative objective focused on intra-sentence structure. By reconstructing key phrases within a single sentence, the model develops a deeper, more interpretable understanding of semantic components.
Methodology
PaSeR moves away from comparing sentence pairs and instead focuses on internal reconstruction. The process involves three primary stages:
- Phrase Extraction: Using the RAKE algorithm, the model identifies "important" phrases that carry the most semantic weight (e.g., "surfing" or "on the sea").
- Duplicate and Mask: Two versions of a sentence are created. In one version, a key phrase is masked. Both versions are processed through a Transformer encoder to generate sentence embeddings.
- Phrase Reconstruction: A "Generative Decoder" attempts to predict the missing phrase. This is facilitated by a "decoding signal"—a mathematical combination of the two sentence vectors (concatenation, absolute difference, and element-wise product) that provides a rich hint for reconstruction.
Crucially, the Generative Decoder is only utilized during the training phase. For inference and evaluation, the decoder is discarded, ensuring that PaSeR maintains the same computational efficiency as standard BERT models.
Experimental Setup and Results
We evaluated PaSeR across a variety of benchmarks, including the Semantic Textual Similarity (STS) tasks (2012–2016), the STS-Benchmark, and SICK-R. For downstream applications, we tested semantic retrieval on Quora Question Pairs (QQP) and semantic reranking on AskUbuntu.
Key Findings
- Superior Performance: In supervised settings, PaSeR-BERT achieved an average Spearman correlation of 82.61 on STS tasks, surpassing the previous state-of-the-art, SimCSE (81.57).
- Robust Retrieval: PaSeR significantly outperformed contrastive baselines on the AskUbuntu reranking task. This suggests that generative objectives are better at preventing "representation collapse," allowing the model to distinguish subtle semantic nuances necessary for search and retrieval.
- Interpretability: The reconstruction task provides a window into the model's internal logic. Successful reconstruction of a phrase like "surfing" confirms that the sentence vector has successfully captured that specific semantic action.
Conclusion
PaSeR demonstrates that generative objectives based on phrase reconstruction offer a powerful alternative to the dominant contrastive learning paradigm. By focusing on the "atoms" of meaning—important phrases—PaSeR achieves superior performance on both standard benchmarks and real-world retrieval tasks while offering improved interpretability. Future work will focus on refining the heuristic design of the decoding signal and exploring more advanced masking strategies to further enhance sentence-level understanding.
Summary updated