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

CtrlA:通过内在控制实现自适应检索增强生成

CtrlA: Adaptive Retrieval-Augmented Generation via Inherent Control

Noah’s Ark Lab, Huawei Technologies Co., Ltd(华为技术有限公司诺亚方舟实验室)

Huanshuo Liu, Hao Zhang, Zhijiang Guo, Jing Wang, Kuicai Dong, Xiangyang Li, Yi Quan Lee, Cong Zhang, Yong Liu

AI总结:

本文提出CtrlA框架,从表示角度提取LLM的诚实与置信度特征以控制其行为并决定检索时机,实现自适应RAG,实验证明其优于现有方法。

摘要:

检索增强生成(RAG)已成为利用检索到的外部知识来缓解大语言模型(LLM)幻觉的一种有前景的解决方案。自适应RAG通过在生成过程中实现动态检索来增强这一方法,仅在查询超出LLM内部知识时激活检索。现有方法主要侧重于通过统计不确定性来检测LLM的置信度。相反,我们首次尝试从表示的角度解决自适应RAG问题,并开发了一个基于内在控制的框架,称为CtrlA。具体来说,我们提取表示LLM诚实方向和置信度方向的特征,并采用这些特征来控制LLM行为并指导检索时机决策。我们还设计了一种简单而有效的查询构造策略来支持自适应检索。实验表明,CtrlA在多种任务上优于现有的自适应RAG方法,诚实引导能够有效地使LLM更加诚实,置信度监测是检索触发的一个有前景的指标。我们的代码可在https://github.com/HSLiu-Initial/CtrlA获取。

英文摘要:

Retrieval-augmented generation (RAG) has emerged as a promising solution for mitigating hallucinations of large language models (LLMs) with retrieved external knowledge. Adaptive RAG enhances this approach by enabling dynamic retrieval during generation, activating retrieval only when the query exceeds LLM's internal knowledge. Existing methods primarily focus on detecting LLM's confidence via statistical uncertainty. Instead, we present the first attempts to solve adaptive RAG from a representation perspective and develop an inherent control-based framework, termed \name. Specifically, we extract the features that represent the honesty and confidence directions of LLM and adopt them to control LLM behavior and guide retrieval timing decisions. We also design a simple yet effective query formulation strategy to support adaptive retrieval. Experiments show that \name is superior to existing adaptive RAG methods on a diverse set of tasks, the honesty steering can effectively make LLMs more honest and confidence monitoring is a promising indicator of retrieval trigger.Our code is available at \url{https://github.com/HSLiu-Initial/CtrlA}.

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

↑