TL;DR
Contrastive learning methods for sentence embeddings work exceptionally well on large language models but fail dramatically when scaled down to smaller, resource-efficient architectures. This paper introduces Self-Supervised Cross-View Training (SCT), a framework that leverages soft similarity distributions and cross-view comparisons to bridge this performance gap, allowing compact models (<100M parameters) to achieve state-of-the-art results without heavy computational overhead.
What Problem Does This Paper Address?
Building high-quality sentence embeddings typically relies on self-supervised contrastive learning, where a Pre-trained Language Model (PLM) is fine-tuned to pull similar sentences together and push different ones apart. While large models (110M+ parameters) excel at this, smaller models (like BERT-Tiny or BERT-Mini) suffer severe performance degradation.
The authors categorize existing models into two distinct groups:
- High Cost, High Performance (HH): Large models that score well but suffer from high inference latencies.
- Low Cost, Low Performance (LL): Small models (<100M parameters) with fast inference times but significantly lower accuracy.
Small models lack the parameter capacity to easily navigate the harsh binary constraints (positive vs. negative pairs) of traditional contrastive learning. This often leads to representation "collapse" (where all sentences map to a tiny, indistinguishable region of the embedding space) or false negatives (where near-duplicates are incorrectly penalized).
Methods
To give smaller models better guidance, SCT introduces two novel mechanisms that move away from traditional binary contrastive learning:
- Cross-View Comparison Pipeline: Instead of directly comparing two views of a sentence within a standard Siamese network, SCT generates two distinct augmented views ($x_1$ and $x_2$) using back-translation. These are fed into an online network ($f_\theta$) and a reference network ($f_{ref}$). Crucially, the framework cross-compares the online representation of one view against the reference distribution of the other view.
- Similarity-Score-Distribution Learning: Rather than using hard binary labels, SCT computes a soft probability distribution of similarity scores against an instance queue of negative samples. The loss function ($L_{SCT}$) minimizes the KL-divergence between these cross-view distributions, training the online network to match the reference network's distribution. A stop-gradient operator is applied to the reference network to prevent representation collapse.
SCT can operate in a standard fine-tuning mode (where the online and reference networks share the same small architecture) or a distillation mode (where the reference network is replaced by a frozen, large teacher model like BERT-Large).
Datasets
- Training: Unlabeled text sampled from the SNLI and MultiNLI datasets.
- Evaluation: Seven standard Semantic Textual Similarity (STS) benchmarks (STS12–16, STS-B, and SICK-R) evaluated using Spearman's rank correlation.
- Downstream Tasks: Re-ranking benchmarks (AskUbuntu, SciDocs) and Natural Language Inference (SICK-E, SNLI).
Key Insights and Ideas
- Small Models Need Better Maps, Not Harder Tests: Large models have the capacity to figure out complex embedding spaces even with simple binary constraints. Small models, however, thrive when given nuanced, continuous guidance via soft similarity distributions.
- Cross-Viewing Prevents Shortcuts: Forcing the online network of View A to predict the reference distribution of View B prevents the model from exploiting trivial syntactic shortcuts, leading to more robust semantic representations.
- Back-Translation is the Optimal Augmentation: Through ablation studies, the authors found that back-translation (e.g., English $\rightarrow$ German $\rightarrow$ English) alters sentence syntax while preserving core semantics perfectly. This provides a far better training signal for small models than token masking or synonym replacement, which often degrade semantic consistency.
Key Results
SCT consistently demonstrates dominance in the low-parameter regime:
- Fine-Tuning Performance: For models under 100M parameters, SCT outperformed top competitors (SimCSE, DiffCSE, DCLR) in 18 out of 21 trials. For the smallest model, BERT-Tiny (4M parameters), SCT boosted the average STS score from 64.47 to 69.73.
- Distillation Breakthroughs: In distillation settings, SCT outperformed all other distillation frameworks across all model sizes.
- Efficiency vs. Accuracy: Remarkably, an SCT-distilled BERT-Small model (29M parameters) achieved an average STS score of 78.16. This virtually matches the performance of a standard BERT-Base model (110M parameters) using state-of-the-art methods (78.49), offering a massive reduction in computational footprint with almost no loss in accuracy.
Limitations and Future Work
Not discussed in the paper.
Summary updated