arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2109.13059cs.CLcs.AIcs.LG
收藏

Trans-Encoder:通过自蒸馏和互蒸馏的无监督双对建模

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

University of Cambridge(剑桥大学);Amazon(亚马逊)

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

摘要:

在NLP中,大量的任务涉及两个序列之间的成对比较(例如句子相似性和释义识别)。主要地,两种公式用于双编码对任务:双编码器和交叉编码器。双编码器产生固定维度的句子表示,并且计算效率高,但是,它们通常不如交叉编码器。交叉编码器可以利用他们的注意力头来利用句子间的交互来获得更好的性能,但它们需要任务微调,并且计算成本更高。在本文中,我们提出了一个完全无监督的句子表示模型,称为Trans-Encoder,它将两种学习范式结合到一个迭代的联合框架中,同时学习增强的双向和交叉编码器。具体来说,在预训练的语言模型(PLM)之上,我们首先将其转换为无监督的双向编码器,然后在双向和交叉编码器任务公式之间交替。在每个交替中,一个任务制定将产生伪标签,其用作另一任务制定的学习信号。然后,我们提出了一个扩展,进行这种自蒸馏的方法在多个PLM并行,并使用其伪标签的平均相互蒸馏。据我们所知,Trans-Encoder创建了第一个完全无监督的交叉编码器,也是最先进的无监督双编码器,用于句子相似性。Trans-Encoder的双向编码器和交叉编码器公式在句子相似度基准上都优于最近提出的最先进的无监督句子编码器,如BERN-BERT和SimCSE,最高可达5%。

英文摘要:

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.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑