Abstract
Traditional self-supervised contrastive learning (SCL) for sentence embeddings often relies on rigid, hand-crafted heuristics to identify positive pairs, leading to "noisy" training signals. We present InfoCSE, a framework that replaces these heuristics with an iterative, mutually reinforcing process. By performing intra-document clustering, the model identifies semantically related sentence clusters to serve as its own training data. This approach significantly improves the quality of learned representations, achieving state-of-the-art performance in zero-shot and few-shot sentence retrieval tasks.
The Challenge: Moving Beyond Hand-Crafted Heuristics
To train high-quality sentence embeddings without massive labeled datasets, researchers typically employ Self-supervised Contrastive Learning (SCL). The objective is to pull semantically similar sentences (positives) closer in vector space while pushing dissimilar ones (negatives) apart.
However, current SCL methods often fall into three common traps due to their reliance on simple rules for finding positive pairs:
- Trivial Positives: Using the same sentence with different dropout masks or minor word swaps. This encourages the model to focus on lexical overlap rather than deep semantic meaning.
- Coarse-grained Positives: Treating a sentence and its entire surrounding document as a pair, which introduces irrelevant information.
- False Positives: Assuming that neighboring sentences are always related, which is frequently untrue in complex documents.
As illustrated in Figure 1, traditional methods often struggle to distinguish between sentences that are merely adjacent and those that share a deep semantic bond. These noisy supervision signals prevent models from reaching their full potential in understanding nuanced language.
The InfoCSE Framework: A Virtuous Cycle
The core innovation of InfoCSE (mutually reInforced self-supervised Contrastive learning of Sentence Embeddings) is a "virtuous cycle" between the representation model and the data annotation process. Instead of static rules, the model's own evolving understanding of language is used to refine its training data.
Intra-Document Clustering (IDC)
InfoCSE treats all sentences within a single document as nodes in a graph. The process follows these steps:
- Weighting: Edges between sentences are weighted based on their similarity as calculated by the current iteration of the representation model.
- Pruning: To ensure high precision, the graph is pruned to keep only the "Top-K" most similar connections for each sentence (typically K=1).
- Clustering: Sentences that remain connected after pruning form clusters. All pairs within these clusters are labeled as high-quality positive samples.
Mutual Reinforcement
As shown in Figure 5, the process is iterative. In Step A, the current model identifies better clusters (data annotation). In Step B, the model is trained on these new clusters (representation learning). As the model becomes more sophisticated, its ability to cluster related sentences improves, which in turn provides cleaner, more diverse training data for the next round. This allows the model to find pairs that are semantically related but use entirely different vocabulary, forcing it to learn in-depth semantics.
InfoCSE++ for Few-Shot Learning
For scenarios where a small amount of labeled data is available, the authors introduced InfoCSE++. This variant integrates a fine-tuning step into the loop. By leveraging both a massive unlabeled corpus through the IDC process and high-quality human labels simultaneously, the model can bridge the gap between self-supervised pretraining and specific downstream tasks more effectively.
Key Results and Performance
InfoCSE was evaluated across three large-scale unlabeled corpora: News articles (MIND), Web Documents (MS MARCO), and Web Browsing sequences. It significantly outperformed existing state-of-the-art (SOTA) methods like SimCSE, DeCLUTR, and ICT.
- Zero-Shot Retrieval: On the News dataset, InfoCSE achieved a Recall@5 of 0.6345, a substantial improvement over the previous best baseline (DeCLUTR) at 0.4786.
- Few-Shot Efficiency: With only 1,000 labeled samples, InfoCSE++ improved Recall@5 by over 11% compared to the strongest baselines.
- Rapid Convergence: The model is highly efficient, typically reaching peak performance within just two rounds of the iterative clustering process.
Conclusion
InfoCSE demonstrates that a model can effectively "grade its own homework" by using local, intra-document structures to refine its understanding of semantics. By moving away from hand-crafted heuristics and toward a mutually reinforced learning framework, InfoCSE sets a new standard for the efficiency and accuracy of pretrained sentence embeddings.
Summary updated