arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2502.12145cs.IRcs.AI
收藏

更快还是更好?在具有灵活用户控制的检索增强生成中平衡准确性与成本

Fast or Better? Balancing Accuracy and Cost in Retrieval-Augmented Generation with Flexible User Control

Cornell University(康奈尔大学);Adobe Research(Adobe研究);Mohamed bin Zayed University of Artificial Intelligence(Mohamed bin Zayed人工智能大学)

Jinyan Su, Jennifer Healey, Preslav Nakov, Claire Cardie

AI总结:

针对RAG中检索成本与准确性难以按用户需求调节的问题,提出由准确性和效率两个分类器及参数$α$控制的用户可控框架,实现二者的动态平衡。

摘要:

检索增强生成(RAG)已成为一种强大方法,可通过引入外部知识检索来缓解大型语言模型(LLM)幻觉。然而,现有RAG框架往往不加区分地执行检索,导致效率低下:在不必要时过度检索,或在复杂推理需要迭代检索时未能这样做。近期的自适应检索策略虽然能够自适应地在这些检索策略之间选择,但仅基于查询复杂度进行预测,缺乏用户驱动的灵活性,因此无法满足多样化的用户应用需求。本文提出一种新颖的用户可控RAG框架,可动态调整准确性—成本权衡。该方法利用两个分类器:一个经过训练以优先考虑准确性,另一个优先考虑检索效率。通过可解释的控制参数$α$,用户可根据具体需求在最小成本检索与高准确性检索之间无缝切换。我们通过实验证明,该方法有效平衡了准确性、检索成本和用户可控性,使其成为适用于真实应用的实用且灵活的解决方案。代码可在https://github.com/JinyanSu1/Flare-Aug获取。

英文摘要:

Retrieval-Augmented Generation (RAG) has emerged as a powerful approach to mitigate large language model (LLM) hallucinations by incorporating external knowledge retrieval. However, existing RAG frameworks often apply retrieval indiscriminately,leading to inefficiencies-over-retrieving when unnecessary or failing to retrieve iteratively when required for complex reasoning. Recent adaptive retrieval strategies, though adaptively navigates these retrieval strategies, predict only based on query complexity and lacks user-driven flexibility, making them infeasible for diverse user application needs. In this paper, we introduce a novel user-controllable RAG framework that enables dynamic adjustment of the accuracy-cost trade-off. Our approach leverages two classifiers: one trained to prioritize accuracy and another to prioritize retrieval efficiency. Via an interpretable control parameter $α$, users can seamlessly navigate between minimal-cost retrieval and high-accuracy retrieval based on their specific requirements. We empirically demonstrate that our approach effectively balances accuracy, retrieval cost, and user controllability, making it a practical and adaptable solution for real-world applications. Code is available at https://github.com/JinyanSu1/Flare-Aug.

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

↑