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

反馈引导的检索增强型LLM应用知识库提取

Feedback-Guided Extraction of Knowledge Base from Retrieval-Augmented LLM Applications

Changyue Jiang, Xudong Pan, Geng Hong, Chenfu Bao, Yang Chen, Min Yang

AI总结:

本文提出CopyBreakRAG,一种基于智能体的黑盒攻击方法,通过好奇心驱动的查询和反馈引导的查询优化,实现对RAG应用知识库的高效提取,在主流框架中提取率平均高出现有方法45%,在商业平台上可提取超70%的数据。

摘要:

检索增强生成(RAG)通过集成外部知识库扩展了大型语言模型(LLMs)的知识边界,而这些知识库的构建通常耗时且费力。如果对手逐字提取知识库,不仅会严重侵犯所有者的知识产权,还会使对手能够复制应用功能进行不正当竞争。以往关于知识库提取的工作要么受限于基于查询攻击中较低的提取覆盖率(通常低于4%),要么受限于基于嵌入的优化方法中不切实际的白盒访问假设。在本研究中,我们提出了CopyBreakRAG,一种基于智能体的黑盒攻击方法,该方法通过反馈进行推理,并自适应地生成新的对抗性查询以实现渐进式提取。通过好奇心驱动的查询和反馈引导的查询优化来平衡探索与利用,我们的方法克服了先前方法的局限性,并在现实的黑盒设置中实现了显著更高的提取覆盖率。实验结果表明,在从主流RAG框架构建的应用中,CopyBreakRAG在块提取率方面平均比最先进的黑盒方法高出45%,并且在采取了基本保护措施的情况下,在包括OpenAI的GPTs和ByteDance的Coze等商业平台上的应用中,能够从知识库中提取超过70%的数据。

英文摘要:

Retrieval-Augmented Generation (RAG) expands the knowledge boundary of large language models (LLMs) by integrating external knowledge bases, whose construction is often time-consuming and laborious. If an adversary extracts the knowledge base verbatim, it not only severely infringes the owner's intellectual property but also enables the adversary to replicate the application's functionality for unfair competition. Previous works on knowledge base extraction are limited either by low extraction coverage (usually less than 4%) in query-based attacks or by impractical assumptions of white-box access in embedding-based optimization methods. In this work, we propose CopyBreakRAG, an agent-based black-box attack that reasons from feedback and adaptively generates new adversarial queries for progressive extraction. By balancing exploration and exploitation through curiosity-driven queries and feedback-guided query refinement, our method overcomes the limitations of prior approaches and achieves significantly higher extraction coverage in realistic black-box settings. Experimental results show that CopyBreakRAG outperforms the state-of-the-art black-box approach by 45% on average in terms of chunk extraction ratio from applications built with mainstream RAG frameworks, and extracts over 70% of the data from the knowledge base in applications on commercial platforms including OpenAI's GPTs and ByteDance's Coze when essential protection is in place.

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

↑