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

通过大语言模型缩小有监督与无监督句子表示学习之间的差距

Narrowing the Gap between Supervised and Unsupervised Sentence Representation Learning with Large Language Model

Beihang University(北京航空航天大学);Zhongguancun Laboratory(中关村实验室);University of Ottawa(渥太华大学)

Mingxin Li, Richong Zhang, Zhijie Nie, Yongyi Mao

AI总结:

该研究针对有监督与无监督句子嵌入对比学习的性能差距问题,发现相似性模式是关键影响因素,提出相对拟合难度指标,并利用大语言模型生成含复杂层级模式的数据,有效缩小了二者的性能差距。

摘要:

句子表示学习(Sentence Representation Learning, SRL)是自然语言处理(Natural Language Processing, NLP)中的一项基础任务,而句子嵌入对比学习(Contrastive Learning of Sentence Embeddings, CSE)凭借其优异性能成为主流技术。CSE领域存在一个值得关注的现象:有监督方法与无监督方法之间存在显著的性能差距,而二者的唯一区别在于训练数据。已有研究将这一性能差距归因于两种表示属性(对齐性与均匀性)的差异。然而,由于对齐性和均匀性仅衡量结果,它们无法回答“训练数据的哪些方面导致了性能差距”以及“如何缩小这一性能差距”的问题。本文通过实证实验来解答这两个“是什么”和“如何做”的问题。我们首先通过全面对比有监督与无监督CSE在各自训练过程中的行为,回答了“是什么”的问题。从对比中,我们发现相似性模式是造成性能差距的关键因素,并提出了一种名为相对拟合难度(Relative Fitting Difficulty, RFD)的指标,用于衡量相似性模式的复杂度。随后,基于从“是什么”问题中获得的洞见,我们通过提升训练数据的模式复杂度来解决“如何做”的问题。我们利用大语言模型(Large Language Model, LLM)的上下文学习(In-Context Learning, ICL)能力生成能够模拟复杂模式的数据,从而实现这一目标。通过利用LLM生成数据中的层级模式,我们有效缩小了有监督与无监督CSE之间的差距。我们在https://github.com/BDBC-KG-NLP/NGCSE 发布了代码和附录。

英文摘要:

Sentence Representation Learning (SRL) is a fundamental task in Natural Language Processing (NLP), with the Contrastive Learning of Sentence Embeddings (CSE) being the mainstream technique due to its superior performance. An intriguing phenomenon in CSE is the significant performance gap between supervised and unsupervised methods, with their only difference lying in the training data. Previous works attribute this performance gap to differences in two representation properties (alignment and uniformity). However, since alignment and uniformity only measure the results, they fail to answer "What aspects of the training data contribute to the performance gap?" and "How can the performance gap be narrowed?", In this paper, we conduct empirical experiments to answer these "What" and "How" questions. We first answer the "What" question by thoroughly comparing the behavior of supervised and unsupervised CSE during their respective training processes. From the comparison, we identify the similarity pattern as a key factor to the performance gap, and introduce a metric, called Relative Fitting Difficulty (RFD), to measure the complexity of the similarity pattern. Then, based on the insights gained from the "What" question, we tackle the "How" question by increasing the pattern complexity of the training data. We achieve this by leveraging the In-Context Learning (ICL) capability of the Large Language Model (LLM) to generate data that simulates complex patterns. By utilizing the hierarchical patterns in the LLM-generated data, we effectively narrow the gap between supervised and unsupervised CSE. We release our codes and appendix at https://github.com/BDBC-KG-NLP/NGCSE.

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

↑