arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2412.12591cs.CL
收藏

LLMs也是有效的嵌入模型:深度综述

LLMs are Also Effective Embedding Models: An In-depth Overview

Beihang University(北航大学);SKLSDE Lab, Beihang University(北航SKLSDE实验室);University of Technology Sydney(悉尼大学);University of Electronic Science and Technology of China(电子科技大学);Peking University(北京大学)

Chongyang Tao, Tao Shen, Shen Gao, Junshuo Zhang, Zhen Li, Kai Hua, Wenpeng Hu, Zhengwei Tao, Shuai Ma

AI总结:

本文综述LLM作为嵌入模型的范式转变,系统梳理直接提示与数据中心调优两类方法,并讨论长文本、多语言、跨模态等场景及效率、鲁棒性等挑战。

摘要:

大型语言模型(LLM)通过在各类任务上取得最先进性能,已经彻底改变了自然语言处理。近来,它们作为嵌入模型的有效性受到关注,标志着从ELMo和BERT等传统仅编码器模型,向GPT、LLaMA和Mistral等仅解码器大规模LLM的范式转变。本综述对这一转变进行了深入概述,首先介绍LLM时代之前的基础技术,随后通过从LLM获取嵌入的两种主要策略,介绍基于LLM的嵌入模型。1)直接提示:我们主要讨论提示设计以及获得有竞争力嵌入的基本原理。2)以数据为中心的调优:我们涵盖影响嵌入模型调优的广泛方面,包括模型架构、训练目标、数据构建等。在此基础上,我们还介绍了从更长文本、多语言、代码、跨模态数据,以及推理感知和其他特定领域场景生成嵌入的先进方法。此外,我们讨论了影响嵌入模型选择的因素,如性能/效率比较、稠密与稀疏嵌入、池化策略和缩放定律。最后,本综述强调了将LLM适配于嵌入任务的局限与挑战,包括跨任务嵌入质量、效率与准确性之间的权衡、低资源、长上下文、数据偏差、鲁棒性等。本综述综合当前进展、突出关键挑战,并为未来旨在提升LLM作为嵌入模型的有效性和效率的工作提供全面框架,是研究人员和从业者的宝贵资源。

英文摘要:

Large language models (LLMs) have revolutionized natural language processing by achieving state-of-the-art performance across various tasks. Recently, their effectiveness as embedding models has gained attention, marking a paradigm shift from traditional encoder-only models like ELMo and BERT to decoder-only, large-scale LLMs such as GPT, LLaMA, and Mistral. This survey provides an in-depth overview of this transition, beginning with foundational techniques before the LLM era, followed by LLM-based embedding models through two main strategies to derive embeddings from LLMs. 1) Direct prompting: We mainly discuss the prompt designs and the underlying rationale for deriving competitive embeddings. 2) Data-centric tuning: We cover extensive aspects that affect tuning an embedding model, including model architecture, training objectives, data constructions, etc. Upon the above, we also cover advanced methods for producing embeddings from longer texts, multilingual, code, cross-modal data, as well as reasoning-aware and other domain-specific scenarios. Furthermore, we discuss factors affecting choices of embedding models, such as performance/efficiency comparisons, dense vs sparse embeddings, pooling strategies, and scaling law. Lastly, the survey highlights the limitations and challenges in adapting LLMs for embeddings, including cross-task embedding quality, trade-offs between efficiency and accuracy, low-resource, long-context, data bias, robustness, etc. This survey serves as a valuable resource for researchers and practitioners by synthesizing current advancements, highlighting key challenges, and offering a comprehensive framework for future work aimed at enhancing the effectiveness and efficiency of LLMs as embedding models.

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

↑