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

让你的大语言模型生成几个词,就能减少检索需求

Let your LLM generate a few tokens and you will reduce the need for retrieval

NAVER LABS Europe(NAVER欧洲实验室)

Hervé Déjean

AI总结:

本研究通过蒸馏LLM作为裁判计算IK分数,判断答案是否在参数记忆中,在RAG中减少超50%检索步骤,仅需约2万样本训练,核心是利用教师模型生成训练数据。

摘要:

本文研究如何高效训练大型语言模型(LLM)以判断答案是否已存储在其参数化记忆中。我们蒸馏了一个“LLM作为裁判”的模型来计算IK(我知道)分数。我们发现,该方法在检索辅助增强生成(RAG)的背景下尤为有益,准确率达到80%。对于某些数据集,它能够显著减少(超过50%)所需的搜索和重排序步骤。我们还引入了IK分数,它通过促进分类任务,成为刻画数据集的有用工具。有趣的是,通过将响应词元作为输入,我们的结果表明仅需约20,000个训练样本即可达到良好性能。本工作的核心要素是使用教师模型——即作为裁判的LLM——来生成训练数据。我们还通过评估不同类型的教师(包括基于字符串的方法和LLM)来评估IK分类器的稳健性,其中后者提供了更好的结果。

英文摘要:

In this paper, we investigate how efficiently large language models (LLM) can be trained to check whether an answer is already stored in their parametric memory. We distill an LLM-as-a-judge to compute the IK (I Know) score. We found that this method is particularly beneficial in the context of retrieval-assisted augmented generation (RAG), with a respectable accuracy of 80%. It enables a significant reduction (more than 50%) in the number of search and reranking steps required for certain data sets. We have also introduced the IK score, which serves as a useful tool for characterising datasets by facilitating the classification task. Interestingly, through the inclusion of response tokens as input, our results suggest that only about 20,000 training samples are required to achieve good performance. The central element of this work is the use of a teacher model - the LLM as a judge - to generate training data. We also assess the robustness of the IK classifier by evaluating it with various types of teachers, including both string-based methods and LLMs, with the latter providing better results.

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

↑