CODE:一种基于矛盾的 deliberation 延伸框架,用于对抗检索增强生成中的过度思考攻击
CODE: A Contradiction-Based Deliberation Extension Framework for Overthinking Attacks on Retrieval-Augmented Generation
AI总结:
本文提出 CODE 框架,通过构造污染样本引发 RAG 系统的过度思考攻击,导致推理标记消耗激增,同时不影响任务性能。
摘要:
将推理模型引入检索增强生成(RAG)系统,通过逐步推理、逻辑一致性以及多步骤自我验证来提升任务性能。然而,最近的研究表明,推理模型会受到过度思考攻击的影响,即模型会被欺骗生成不必要的大量推理标记。在本文中,我们发现,通过提出一个端到端的攻击框架,名为基于矛盾的 deliberation 延伸(CODE),可以将这种过度思考风险继承到配备了推理模型的 RAG 系统中。具体来说,CODE 开发了一种多智能体架构,以构建被注入到知识库中的污染样本。这些样本 1)与使用查询高度相关,因此可以作为输入提供给推理模型;2)在逻辑层和证据层之间存在矛盾,导致模型过度思考,并且被优化以表现出高度多样的风格。此外,CODE 的推理开销极难检测,因为不需要对用户查询进行任何修改,且任务准确性不受影响。在两个数据集上对五个商业推理模型进行的广泛实验表明,所提出的攻击导致推理标记消耗增加 5.32 倍至 24.72 倍,而不会降低任务性能。最后,我们还讨论并评估了潜在的缓解过度思考风险的对策。
英文摘要:
Introducing reasoning models into Retrieval-Augmented Generation (RAG) systems enhances task performance through step-by-step reasoning, logical consistency, and multi-step self-verification. However, recent studies have shown that reasoning models suffer from overthinking attacks, where models are tricked to generate unnecessarily high number of reasoning tokens. In this paper, we reveal that such overthinking risk can be inherited by RAG systems equipped with reasoning models, by proposing an end-to-end attack framework named Contradiction-Based Deliberation Extension (CODE). Specifically, CODE develops a multi-agent architecture to construct poisoning samples that are injected into the knowledge base. These samples 1) are highly correlated with the use query, such that can be retrieved as inputs to the reasoning model; and 2) contain contradiction between the logical and evidence layers that cause models to overthink, and are optimized to exhibit highly diverse styles. Moreover, the inference overhead of CODE is extremely difficult to detect, as no modification is needed on the user query, and the task accuracy remain unaffected. Extensive experiments on two datasets across five commercial reasoning models demonstrate that the proposed attack causes a 5.32x-24.72x increase in reasoning token consumption, without degrading task performance. Finally, we also discuss and evaluate potential countermeasures to mitigate overthinking risks.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。