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

一个Token即可助力!面向检索增强大语言模型的可扩展可插拔虚拟Token学习

One Token Can Help! Learning Scalable and Pluggable Virtual Tokens for Retrieval-Augmented Large Language Models

Gaoling School of Artificial Intelligence, Renmin University of China(中国人民大学高瓴人工智能学院)

Yutao Zhu, Zhaoheng Huang, Zhicheng Dou, Ji-Rong Wen

AI总结:

针对现有RAG微调方法会损害大语言模型通用生成能力的问题,提出学习可扩展可插拔虚拟Token的方法,仅微调Token嵌入保留原模型参数,搭配训练策略提升性能,在12个问答任务上表现更优。

摘要:

检索增强生成(Retrieval-augmented generation, RAG)是提升大语言模型(large language models, LLMs)生成内容的事实性、准确性与时效性的一种极具潜力的方法。现有方法要么优化提示词以引导LLMs利用检索到的信息,要么直接微调LLMs以适配RAG场景。尽管微调能带来更优性能,但它通常会通过修改LLMs的参数损害其通用生成能力。这一限制在实际应用中带来挑战,尤其是当LLMs已部署时,参数调整可能影响其原有功能。为解决该问题,我们提出一种新颖方法,即为RAG学习可扩展且可插拔的虚拟Token。通过保留LLMs的原始参数,仅微调这些可插拔Token的嵌入,我们的方法不仅提升了LLMs的性能,还保留了其通用生成能力。此外,我们设计了若干训练策略以提升该方法的可扩展性、灵活性与泛化性。在12个问答任务上开展的综合实验证明了我们方法的优越性。

英文摘要:

Retrieval-augmented generation (RAG) is a promising way to improve large language models (LLMs) for generating more factual, accurate, and up-to-date content. Existing methods either optimize prompts to guide LLMs in leveraging retrieved information or directly fine-tune LLMs to adapt to RAG scenarios. Although fine-tuning can yield better performance, it often compromises the LLMs' general generation capabilities by modifying their parameters. This limitation poses challenges in practical applications, especially when LLMs are already deployed, as parameter adjustments may affect their original functionality. To address this, we propose a novel method that involves learning scalable and pluggable virtual tokens for RAG. By maintaining the LLMs' original parameters and fine-tuning only the embeddings of these pluggable tokens, our approach not only enhances LLMs' performance but also preserves their general generation capabilities. Furthermore, we design several training strategies to improve the scalability, flexibility, and generalizability of our method. Comprehensive experiments across 12 question-answering tasks demonstrate the superiority of our approach.

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

↑