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

FIT-RAG:基于事实信息与Token缩减的黑盒RAG

FIT-RAG: Black-Box RAG with Factual Information and Token Reduction

Zhejiang University(浙江大学);Zhejiang Gongshang University(浙江工商大学)

Yuren Mao, Xuemei Dong, Wenyi Xu, Yunjun Gao, Bin Wei, Ying Zhang

AI总结:

本文提出黑盒RAG框架FIT-RAG,通过双标签文档评分器利用事实信息,并引入自我知识识别器和子文档级Token缩减器,在三个问答数据集上显著提升了LLM回答准确率并节省约一半Token。

摘要:

由于参数数量极其庞大,在许多应用中,通过微调大型语言模型(LLMs)来更新长尾或过时知识是不切实际的。为了避免微调,我们可以将LLM视为黑盒(即冻结LLM的参数),并通过检索增强生成(RAG)系统对其进行增强,即黑盒RAG。最近,黑盒RAG在知识密集型任务中取得了成功并备受关注。现有的黑盒RAG方法通常微调检索器以迎合LLM的偏好,并将所有检索到的文档拼接作为输入,这面临两个问题:(1)忽视事实信息。LLM偏好的文档可能不包含给定问题的事实信息,这会误导检索器并损害黑盒RAG的有效性;(2)Token浪费。简单拼接所有检索到的文档会给LLM带来大量不必要的Token,这降低了黑盒RAG的效率。为了解决这些问题,本文提出了一种新颖的黑盒RAG框架,该框架利用检索中的事实信息并减少用于增强的Token数量,称为FIT-RAG。FIT-RAG通过构建双标签文档评分器来利用事实信息。此外,它通过引入自我知识识别器和子文档级Token缩减器来减少Token。FIT-RAG实现了卓越的有效性和效率,这通过在三个开放域问答数据集:TriviaQA、NQ和PopQA上的大量实验得到了验证。FIT-RAG在TriviaQA上将Llama2-13B-Chat的回答准确率提高了14.3%,在NQ上提高了19.9%,在PopQA上提高了27.5%。此外,它在这三个数据集上平均可节省约一半的Token。

英文摘要:

Due to the extraordinarily large number of parameters, fine-tuning Large Language Models (LLMs) to update long-tail or out-of-date knowledge is impractical in lots of applications. To avoid fine-tuning, we can alternatively treat a LLM as a black-box (i.e., freeze the parameters of the LLM) and augment it with a Retrieval-Augmented Generation (RAG) system, namely black-box RAG. Recently, black-box RAG has achieved success in knowledge-intensive tasks and has gained much attention. Existing black-box RAG methods typically fine-tune the retriever to cater to LLMs' preferences and concatenate all the retrieved documents as the input, which suffers from two issues: (1) Ignorance of Factual Information. The LLM preferred documents may not contain the factual information for the given question, which can mislead the retriever and hurt the effectiveness of black-box RAG; (2) Waste of Tokens. Simply concatenating all the retrieved documents brings large amounts of unnecessary tokens for LLMs, which degenerates the efficiency of black-box RAG. To address these issues, this paper proposes a novel black-box RAG framework which utilizes the factual information in the retrieval and reduces the number of tokens for augmentation, dubbed FIT-RAG. FIT-RAG utilizes the factual information by constructing a bi-label document scorer. Besides, it reduces the tokens by introducing a self-knowledge recognizer and a sub-document-level token reducer. FIT-RAG achieves both superior effectiveness and efficiency, which is validated by extensive experiments across three open-domain question-answering datasets: TriviaQA, NQ and PopQA. FIT-RAG can improve the answering accuracy of Llama2-13B-Chat by 14.3\% on TriviaQA, 19.9\% on NQ and 27.5\% on PopQA, respectively. Furthermore, it can save approximately half of the tokens on average across the three datasets.

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

↑