Saved in:
Bibliographic Details
Main Authors: Zhu, Yutao, Huang, Zhaoheng, Dou, Zhicheng, Wen, Ji-Rong
Format: Preprint
Published: 2024
Subjects:
Online Access:https://arxiv.org/abs/2405.19670
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866910738482724864
author Zhu, Yutao
Huang, Zhaoheng
Dou, Zhicheng
Wen, Ji-Rong
author_facet Zhu, Yutao
Huang, Zhaoheng
Dou, Zhicheng
Wen, Ji-Rong
contents 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.
format Preprint
id arxiv_https___arxiv_org_abs_2405_19670
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle One Token Can Help! Learning Scalable and Pluggable Virtual Tokens for Retrieval-Augmented Large Language Models
Zhu, Yutao
Huang, Zhaoheng
Dou, Zhicheng
Wen, Ji-Rong
Computation and Language
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.
title One Token Can Help! Learning Scalable and Pluggable Virtual Tokens for Retrieval-Augmented Large Language Models
topic Computation and Language
url https://arxiv.org/abs/2405.19670