Introduction
Sentence embeddings are fundamental to modern NLP, powering tasks from semantic search to text classification. While large-scale models like BERT-base excel at producing these embeddings via unsupervised contrastive learning (e.g., SimCSE), their performance degrades significantly as model size decreases. For instance, a 109M parameter BERT-base model performs well on Semantic Textual Similarity (STS) benchmarks, but a 17M parameter MiniLM-L3 model sees a performance drop of over 20 points in unsupervised settings. This "performance penalty" hinders the deployment of high-quality NLP on edge devices.
The ConGen Framework
To address this, the authors propose ConGen (Control and Generalization Distillation), an unsupervised framework designed to transfer knowledge from a large "Teacher" model (e.g., SimCSE-RoBERTa-large) to a smaller "Student" model.
The core of ConGen lies in its dual training objectives:
- Control: Both the student and teacher process the same augmented version of a sentence. The student is trained to match the teacher’s output distribution.
- Generalize: The student processes a different augmented version of the sentence than the teacher. This forces the student to learn representations robust to variations, effectively generalizing the teacher's knowledge.
Technical innovations include an Instance Queue to maintain a large set of negative samples without massive batch sizes and Similarity Distribution Matching, which minimizes cross-entropy between teacher and student similarity distributions relative to the queue. This approach focuses on "relational learning" rather than simple vector distance minimization.
Key Results and Performance
ConGen demonstrates that relational knowledge is critical for effective distillation. By matching how a model perceives a sentence relative to thousands of others, the student model captures the underlying semantic structure more effectively than by mimicking raw output vectors.
As shown in Figure 1, ConGen dramatically closes the performance gap for small models. On the 17M parameter MiniLM-L3, ConGen improved the Spearman rank correlation from 55.10 to 78.22, a gain of 23.12 points. Notably, for models smaller than 33M parameters, ConGen-unsupervised consistently matched or outperformed supervised SimCSE baselines. Even a 4M parameter BERT-Tiny model achieved an STS score of 76.85, surpassing the 72.35 score of a supervised SimCSE model of the same size.
Conclusion and Future Work
ConGen proves that small models can "punch up" when trained with the right distillation objectives. While highly effective on general benchmarks, the framework currently faces challenges in specialized domains like medical text, where the teacher model may lack expertise. Future research may explore domain-specific distillation or extending ConGen to decoder-only architectures like GPT.
Summary updated