SOTAVerified

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

2021-09-27ICLR 2022Code Available1· sign in to hype

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

Code Available — Be the first to reproduce this paper.

Reproduce

Code

Abstract

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.

Tasks

Benchmark Results

DatasetModelMetricClaimedVerifiedStatus
SICKTrans-Encoder-BERT-large-cross (unsup.)Spearman Correlation0.72Unverified
SICKTrans-Encoder-BERT-base-bi (unsup.)Spearman Correlation0.73Unverified
SICKTrans-Encoder-BERT-base-cross (unsup.)Spearman Correlation0.7Unverified
SICKTrans-Encoder-BERT-large-bi (unsup.)Spearman Correlation0.71Unverified
SICKTrans-Encoder-RoBERTa-large-cross (unsup.)Spearman Correlation0.72Unverified
STS12Trans-Encoder-BERT-large-bi (unsup.)Spearman Correlation0.78Unverified
STS12Trans-Encoder-BERT-base-bi (unsup.)Spearman Correlation0.75Unverified
STS12Trans-Encoder-RoBERTa-base-cross (unsup.)Spearman Correlation0.76Unverified
STS12Trans-Encoder-RoBERTa-large-cross (unsup.)Spearman Correlation0.78Unverified
STS13Trans-Encoder-RoBERTa-large-cross (unsup.)Spearman Correlation0.88Unverified
STS13Trans-Encoder-BERT-base-cross (unsup.)Spearman Correlation0.86Unverified
STS13Trans-Encoder-BERT-base-bi (unsup.)Spearman Correlation0.85Unverified
STS13Trans-Encoder-BERT-large-bi (unsup.)Spearman Correlation0.89Unverified
STS13Trans-Encoder-BERT-large-cross (unsup.)Spearman Correlation0.88Unverified
STS14Trans-Encoder-BERT-large-bi (unsup.)Spearman Correlation0.81Unverified
STS14Trans-Encoder-RoBERTa-large-bi (unsup.)Spearman Correlation0.82Unverified
STS14Trans-Encoder-RoBERTa-large-cross (unsup.)Spearman Correlation0.82Unverified
STS14Trans-Encoder-BERT-base-bi (unsup.)Spearman Correlation0.78Unverified
STS14Trans-Encoder-RoBERTa-base-cross (unsup.)Spearman Correlation0.79Unverified
STS15Trans-Encoder-BERT-large-bi (unsup.)Spearman Correlation0.88Unverified
STS15Trans-Encoder-BERT-base-bi (unsup.)Spearman Correlation0.85Unverified
STS15Trans-Encoder-BERT-base-cross (unsup.)Spearman Correlation0.84Unverified
STS15Trans-Encoder-RoBERTa-large-cross (unsup.)Spearman Correlation0.89Unverified
STS15Trans-Encoder-RoBERTa-base-cross (unsup.)Spearman Correlation0.86Unverified
STS16Trans-Encoder-BERT-base-bi (unsup.)Spearman Correlation0.83Unverified
STS16Trans-Encoder-RoBERTa-large-cross (unsup.)Spearman Correlation0.85Unverified
STS16Trans-Encoder-BERT-large-bi (unsup.)Spearman Correlation0.85Unverified
STS16Trans-Encoder-RoBERTa-base-cross (unsup.)Spearman Correlation0.84Unverified
STS BenchmarkTrans-Encoder-BERT-base-bi (unsup.)Spearman Correlation0.84Unverified
STS BenchmarkTrans-Encoder-RoBERTa-base-cross (unsup.)Spearman Correlation0.85Unverified
STS BenchmarkTrans-Encoder-BERT-large-bi (unsup.)Spearman Correlation0.86Unverified
STS BenchmarkTrans-Encoder-RoBERTa-large-bi (unsup.)Spearman Correlation0.87Unverified
STS BenchmarkTrans-Encoder-RoBERTa-large-cross (unsup.)Spearman Correlation0.87Unverified

Reproductions