arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2502.11401cs.CL
收藏

遵循LLM嵌入的自回归特性:通过压缩与对齐

Following the Autoregressive Nature of LLM Embeddings via Compression and Alignment

Key Laboratory of AI Safety, Institute of Computing Technology, Chinese Academy of Sciences(中国科学院人工智能安全重点实验室,计算技术研究所);University of Chinese Academy of Sciences(中国科学院大学);Kuaishou Technology(快手科技)

Jingcheng Deng, Zhongtao Jiang, Liang Pang, Liwei Chen, Kun Xu, Zihao Wei, Huawei Shen, Xueqi Cheng

AI总结:

针对LLM嵌入的生成性分布性与对比学习冲突的问题,提出AutoRegEmbed方法,通过信息压缩和条件分布对齐两个任务,利用嵌入的条件分布进行对比学习,显著提升性能并达到最先进水平。

摘要:

一种新趋势利用对比学习将大语言模型(LLM)用作密集文本编码器。然而,由于LLM嵌入预测下一个词元的概率分布,它们本质上是生成性和分布性的,这与要求嵌入捕获全文语义并通过余弦相似度对齐的对比学习相冲突。这种差异阻碍了LLM预训练能力的充分利用,导致学习效率低下。针对这一问题,我们提出了AutoRegEmbed,一种基于嵌入条件概率分布构建的新型对比学习方法,它整合了两个核心任务:信息压缩和条件分布对齐。信息压缩任务将文本编码到嵌入空间,确保嵌入向量捕获全局语义。条件分布对齐任务通过利用嵌入的条件分布,专注于将文本嵌入与正样本嵌入对齐,同时降低从文本嵌入生成负样本的可能性,从而实现嵌入的对齐性和均匀性。实验结果表明,我们的方法显著优于传统的对比学习方法,并在使用相同数据量时达到了与最先进模型相当的性能。

英文摘要:

A new trend uses LLMs as dense text encoders via contrastive learning. However, since LLM embeddings predict the probability distribution of the next token, they are inherently generative and distributive, conflicting with contrastive learning, which requires embeddings to capture full-text semantics and align via cosine similarity. This discrepancy hinders the full utilization of LLMs' pre-training capabilities, resulting in inefficient learning. In response to this issue, we propose AutoRegEmbed, a new contrastive learning method built on embedding conditional probability distributions, which integrates two core tasks: information compression and conditional distribution alignment. The information compression task encodes text into the embedding space, ensuring that the embedding vectors capture global semantics. The conditional distribution alignment task focuses on aligning text embeddings with positive samples embeddings by leveraging the conditional distribution of embeddings while simultaneously reducing the likelihood of generating negative samples from text embeddings, thereby achieving embedding alignment and uniformity. Experimental results demonstrate that our method significantly outperforms traditional contrastive learning approaches and achieves performance comparable to state-of-the-art models when using the same amount of data.

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

↑