Papers › Trans-Encoder: Unsupervised sentence-pair modelling through self- and mutual-distillations

Trans-Encoder: Unsupervised sentence-pair modelling through self- and mutual-distillations

27 Sep 2021ICLR 2022 4arXiv:2109.13059archive 2025-07-28

Fangyu Liu, Yunlong Jiao, Jordan Massiah, Emine Yilmaz, Serhii Havrylov

In NLP, a large volume of tasks involve pairwise comparison between two sequences (e.g. sentence similarity and paraphrase identification). Predominantly, two formulations are used for sentence-pair tasks: bi-encoders and cross-encoders. Bi-encoders produce fixed-dimensional sentence representations and are computationally efficient, however, they usually underperform cross-encoders. Cross-encoders can leverage their attention heads to exploit inter-sentence interactions for better performance but they require task fine-tuning and are computationally more expensive. In this paper, we present a completely unsupervised sentence representation model termed as Trans-Encoder that combines the two learning paradigms into an iterative joint framework to simultaneously learn enhanced bi- and cross-encoders. Specifically, on top of a pre-trained Language Model (PLM), we start with converting it to an unsupervised bi-encoder, and then alternate between the bi- and cross-encoder task formulations. In each alternation, one task formulation will produce pseudo-labels which are used as learning signals for the other task formulation. We then propose an extension to conduct such self-distillation approach on multiple PLMs in parallel and use the average of their pseudo-labels for mutual-distillation. Trans-Encoder creates, to the best of our knowledge, the first completely unsupervised cross-encoder and also a state-of-the-art unsupervised bi-encoder for sentence similarity. Both the bi-encoder and cross-encoder formulations of Trans-Encoder outperform recently proposed state-of-the-art unsupervised sentence encoders such as Mirror-BERT and SimCSE by up to 5% on the sentence similarity benchmarks.

PaperPDFConference PDFCode

In Syntology Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

Code

amzn/trans-encoder officialmentioned in papermentioned on GitHubpytorchApache-2.0 report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

Not run by Syntology. Nothing on this page verifies that the listed code works.

Tasks

Contrastive LearningLanguage ModellingParaphrase IdentificationSemantic Textual SimilaritySentenceSentence Similarity

Results from the paper archive 2025-07-28

TaskDatasetModelMetricValueRank at snapshotLeaderboardReport
Semantic Textual Similarity SICK Trans-Encoder-BERT-base-bi (unsup.) Spearman Correlation 0.7276 #12 of 22 Archive leaderboard report
Semantic Textual Similarity SICK Trans-Encoder-BERT-large-cross (unsup.) Spearman Correlation 0.7192 #13 of 22 Archive leaderboard report
Semantic Textual Similarity SICK Trans-Encoder-RoBERTa-large-cross (unsup.) Spearman Correlation 0.7163 #14 of 22 Archive leaderboard report
Semantic Textual Similarity SICK Trans-Encoder-BERT-large-bi (unsup.) Spearman Correlation 0.7133 #15 of 22 Archive leaderboard report
Semantic Textual Similarity SICK Trans-Encoder-BERT-base-cross (unsup.) Spearman Correlation 0.6952 #18 of 22 Archive leaderboard report
Semantic Textual Similarity STS Benchmark Trans-Encoder-RoBERTa-large-cross (unsup.) Spearman Correlation 0.867 #41 of 66 Archive leaderboard report
Semantic Textual Similarity STS Benchmark Trans-Encoder-RoBERTa-large-bi (unsup.) Spearman Correlation 0.8655 #42 of 66 Archive leaderboard report
Semantic Textual Similarity STS Benchmark Trans-Encoder-BERT-large-bi (unsup.) Spearman Correlation 0.8616 #45 of 66 Archive leaderboard report
Semantic Textual Similarity STS Benchmark Trans-Encoder-RoBERTa-base-cross (unsup.) Spearman Correlation 0.8465 #48 of 66 Archive leaderboard report
Semantic Textual Similarity STS Benchmark Trans-Encoder-BERT-base-bi (unsup.) Spearman Correlation 0.839 #51 of 66 Archive leaderboard report
Semantic Textual Similarity STS12 Trans-Encoder-RoBERTa-large-cross (unsup.) Spearman Correlation 0.7828 #7 of 20 Archive leaderboard report
Semantic Textual Similarity STS12 Trans-Encoder-BERT-large-bi (unsup.) Spearman Correlation 0.7819 #8 of 20 Archive leaderboard report
Semantic Textual Similarity STS12 Trans-Encoder-RoBERTa-base-cross (unsup.) Spearman Correlation 0.7637 #10 of 20 Archive leaderboard report
Semantic Textual Similarity STS12 Trans-Encoder-BERT-base-bi (unsup.) Spearman Correlation 0.7509 #11 of 20 Archive leaderboard report
Semantic Textual Similarity STS13 Trans-Encoder-BERT-large-bi (unsup.) Spearman Correlation 0.8851 #7 of 22 Archive leaderboard report
Semantic Textual Similarity STS13 Trans-Encoder-BERT-large-cross (unsup.) Spearman Correlation 0.8831 #8 of 22 Archive leaderboard report
Semantic Textual Similarity STS13 Trans-Encoder-RoBERTa-large-cross (unsup.) Spearman Correlation 0.8831 #9 of 22 Archive leaderboard report
Semantic Textual Similarity STS13 Trans-Encoder-BERT-base-cross (unsup.) Spearman Correlation 0.8559 #11 of 22 Archive leaderboard report
Semantic Textual Similarity STS13 Trans-Encoder-BERT-base-bi (unsup.) Spearman Correlation 0.851 #12 of 22 Archive leaderboard report
Semantic Textual Similarity STS14 Trans-Encoder-RoBERTa-large-cross (unsup.) Spearman Correlation 0.8194 #9 of 21 Archive leaderboard report
Semantic Textual Similarity STS14 Trans-Encoder-RoBERTa-large-bi (unsup.) Spearman Correlation 0.8176 #10 of 21 Archive leaderboard report
Semantic Textual Similarity STS14 Trans-Encoder-BERT-large-bi (unsup.) Spearman Correlation 0.8137 #11 of 21 Archive leaderboard report
Semantic Textual Similarity STS14 Trans-Encoder-RoBERTa-base-cross (unsup.) Spearman Correlation 0.7903 #12 of 21 Archive leaderboard report
Semantic Textual Similarity STS14 Trans-Encoder-BERT-base-bi (unsup.) Spearman Correlation 0.779 #13 of 21 Archive leaderboard report
Semantic Textual Similarity STS15 Trans-Encoder-RoBERTa-large-cross (unsup.) Spearman Correlation 0.8863 #6 of 20 Archive leaderboard report
Semantic Textual Similarity STS15 Trans-Encoder-BERT-large-bi (unsup.) Spearman Correlation 0.8816 #7 of 20 Archive leaderboard report
Semantic Textual Similarity STS15 Trans-Encoder-RoBERTa-base-cross (unsup.) Spearman Correlation 0.8577 #10 of 20 Archive leaderboard report
Semantic Textual Similarity STS15 Trans-Encoder-BERT-base-bi (unsup.) Spearman Correlation 0.8508 #11 of 20 Archive leaderboard report
Semantic Textual Similarity STS15 Trans-Encoder-BERT-base-cross (unsup.) Spearman Correlation 0.8444 #12 of 20 Archive leaderboard report
Semantic Textual Similarity STS16 Trans-Encoder-RoBERTa-large-cross (unsup.) Spearman Correlation 0.8503 #7 of 20 Archive leaderboard report
Semantic Textual Similarity STS16 Trans-Encoder-BERT-large-bi (unsup.) Spearman Correlation 0.8481 #9 of 20 Archive leaderboard report
Semantic Textual Similarity STS16 Trans-Encoder-RoBERTa-base-cross (unsup.) Spearman Correlation 0.8377 #11 of 20 Archive leaderboard report
Semantic Textual Similarity STS16 Trans-Encoder-BERT-base-bi (unsup.) Spearman Correlation 0.8305 #12 of 20 Archive leaderboard report

Ranks are positions in the archive's leaderboards as they stood at the 2025-07-28 snapshot. Results published since then are not among these rows, so a rank here is not a current standing.

Methods

Introduced by this paper: Trans-Encoder

Mirror-BERTSimCSETrans-Encoder

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections