Self-supervised fine-tuning refines the embedding space of a pretrained language encoder without labels. However, the commonly used approaches are computationally expensive. Specifically, contrastive learning-based methods need multiview data and in-batch negative examples, while negative-free approaches require auxiliary graphs/networks. An interesting question arises: can self-supervised fine-tuning be done without relying on either additional negatives or graph data? To answer this question, we introduce SilK (Silhouette-guided K-means), which trains on a Cluster Validation Index, an internal measure of cluster quality without using labels. SilK clusters the corpus and then regresses a simplified silhouette toward a target value. Each document is compared only against the k cluster centroids, never against other documents, so the method needs no augmentation, no negative pairs and one view per document. On BERT-base, SilK trains 1.46x faster per epoch than the fastest baseline we evaluate and uses 45.4% less peak GPU memory than the leanest one. Under frozen-encoder linear probing, SilK stays competitive with the best baselines on three downstream tasks.
Figures & tables
Figure 1: Overview of SILK. Documents x1,…,xn are encoded by BERT and projected. k -means is fit on the resulting embeddings and the silhouette loss pulls each document toward its assigned centroid while pushing it from the nearest competing one. That CVI loss is backpropagated into BERT. Unlike contrastive methods, no augmented views or negative pairs are constructed.
SimCSE
DiffCSE
SCD
SILK
Avoids negative pairs
✗
✗
✓
✓
Augmentation-free
✗
✗
✗
✓
Single view per document
✗
✗
✗
✓
No extra anti-collapse term
✓
✗
✗
✓
Table 1: What each objective requires. SILK satisfies all four properties by contrasting against centroids instead of documents.
Method
TREC-6
Snippets
StackOverflow
BERT
79.04±0.40
71.13±0.50
72.76±0.30
SimCSE
90.64±0.30
80.70±0.40
79.16±0.50
DiffCSE
88.15±0.60
80.67±0.30
76.18±0.40
SCD
89.15±0.50
79.35±0.40
77.28±0.60
SILK (ours)
92.47±0.40
82.04±0.30
78.24±0.50
Table 2: Linear-probe test accuracy (%, mean ± std over 5 seeds, each covering both fine-tuning and probing) on frozen features. All methods fine-tuned on 20 Newsgroups.
Method
Time/epoch (min)
Peak GPU mem (GB)
SimCSE
3.017
21.823
DiffCSE
4.200
33.766
SCD
2.578
22.536
SILK
1.766
11.917
Table 3: Self-supervised training cost per epoch on an RTX A6000, batch size 128, FP32. Time includes the corpus embedding pass and k -means as well as the gradient update. Memory is the mean per-epoch peak of the PyTorch allocator; linear probing is excluded. All methods run for the same number of epochs (20), so per-epoch cost is proportional to total cost.
Figure 2: Validation-split linear-probe accuracy against the number of clusters k . Each point is a separate training run. The k used in Table 2 is the peak of this same validation-split search. The best k exceeds the downstream class count by an order of magnitude on all three tasks.
Self-supervised learning (SSL) is recognized as an essential tool for building foundation models for Artificial Intelligence applications. The advances in SSL have been made thanks to vigorous arguments about the principles of SSL and through extensive empirical research. The aim of this paper is to contribute to the development of the underpinning theory of SSL, focusing on the deep clustering approach. By analogy to supervised learning, we formulate SSL as K-L divergence optimization. The mode collapse is prevented by imposing an optimisation constraint on the teacher distribution. This leads to normalization using inverse cluster priors. We show that using Jensen inequality this normalization simplifies to the popular batch centering procedure. Distillation and centering are common {heuristics-based} practices in SSL, {but our work underpins them theoretically.} The theoretical model developed not only supports specific existing successful SSL methods, but also suggests directions for future investigations.
Josef Kittler, Sara Atito, Muhammad Awais
Centre for Vision, Speech and Signal Processing (CVSSP), University of Surrey, Guildford, Surrey GU2 7XH, UK · Surrey Institute for People-Centred AI (PAI), University of Surrey, Guildford, Surrey GU2 7XH, UK
Fine-tuning LLM-based text embedders via contrastive learning maps inputs and outputs into a new representational space, discarding the LLM's output semantics. We propose LLM2Vec-Gen, a self-supervised alternative that instead produces embeddings directly in the LLM's output space by learning to represent the model's potential response. Specifically, trainable special tokens are appended to the input and optimized to compress the LLM's own response into a fixed-length embedding, guided by an unsupervised embedding teacher and a reconstruction objective. Crucially, the LLM backbone remains frozen and training requires only unlabeled queries. LLM2Vec-Gen achieves state-of-the-art self-supervised performance on the Massive Text Embedding Benchmark (MTEB), improving by 8.8% over the unsupervised embedding teacher. Since the embeddings preserve the LLM's response-space semantics, they inherit capabilities such as safety alignment (up to 22.6% reduction in harmful content retrieval) and reasoning (up to 35.6% improvement on reasoning-intensive retrieval). Finally, the learned embeddings are also interpretable: they can be decoded back into text to reveal their semantic content. Our code, data, and pretrained models are publicly available at https://github.com/McGill-NLP/llm2vec-gen.
Parishad BehnamGhader, Vaibhav Adlakha, Fabian David Schmidt +3
McGill University · Mila–Quebec AI Institute · ServiceNow Research +3
Pre-trained language models such as BERT achieve strong text classification performance but lack transparency, limiting their use in high-stakes settings. The Tsetlin Machine (TM) offers fully interpretable, clause-based reasoning but captures little semantic information, and prior attempts to bridge the two rely on static word embeddings that miss contextual meaning. We propose a semantic pre-training framework that transfers knowledge from a pre-trained language model into a TM without using embeddings. Text samples are grouped into semantically coherent clusters with K-means or Top2Vec, and the resulting cluster-sample pairs pre-train a non-negated TM with enhanced Type I feedback. The TM thereby learns interpretable semantic keywords that are fine-tuned on downstream tasks. Across five datasets, our method substantially outperforms vanilla and embedding-based TMs and reaches performance competitive with BERT while remaining interpretable.
Jiechao Gao, Rohan Kumar Yadav, Yuangang Li +4
Stanford University · Independent Researcher · University of California, Irvine +1