arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2502.10440cs.CRcs.AIcs.CLcs.IRcs.LG
收藏

面向检索增强语言模型知识库的基于推理的版权保护

Towards Copyright Protection for Knowledge Bases of Retrieval-augmented Language Models via Reasoning

University of Maryland(马里兰大学);Nanyang Technological University(南洋理工大学)

Junfeng Guo, Yiming Li, Ruibo Chen, Yihan Wu, Chenxi Liu, Yanshuo Chen, Heng Huang

AI总结:

针对RAG知识库版权保护,提出基于推理的“无害”水印方法,通过思维链植入良性验证行为,不改变最终输出,并利用Wilcoxon检验验证所有权,实验证明有效且抗自适应攻击。

摘要:

大型语言模型(LLMs)越来越多地通过检索增强生成(RAG)机制集成到现实世界的个性化应用中,以补充领域特定知识来增强其响应。然而,RAG中使用的知识库具有宝贵且往往专有的性质,这带来了被对手未经授权使用的风险。现有的可概括为水印技术以保护这些知识库的方法通常涉及投毒或后门攻击。然而,这些方法需要改变LLM对验证样本的结果,不可避免地使这些水印容易受到异常检测的影响,甚至引入新的安全风险。为了应对这些挑战,我们提出\name{}用于知识库的“无害”版权保护。我们不操纵LLM的最终输出,而是在思维链(CoT)推理空间中植入独特但良性的验证行为,同时保持最终答案的正确性。我们的方法包含三个主要阶段:(1)生成CoT:对于每个验证问题,我们生成两个“无辜”的CoT,包括一个用于构建水印行为的目标CoT;(2)优化水印短语和目标CoT:受我们的理论分析启发,我们在可疑LLM的\emph{黑盒}和\emph{仅文本}设置下优化它们以最小化检索错误,确保只有带水印的验证查询才能检索到知识库中包含的对应目标CoT;(3)所有权验证:我们利用成对Wilcoxon检验,通过比较可疑LLM对带水印和良性验证查询的响应,来验证可疑LLM是否增强了受保护的知识库。我们在多种基准上的实验表明,\name{}能有效保护知识库,并能抵抗自适应攻击。

英文摘要:

Large language models (LLMs) are increasingly integrated into real-world personalized applications through retrieval-augmented generation (RAG) mechanisms to supplement their responses with domain-specific knowledge. However, the valuable and often proprietary nature of the knowledge bases used in RAG introduces the risk of unauthorized usage by adversaries. Existing methods that can be generalized as watermarking techniques to protect these knowledge bases typically involve poisoning or backdoor attacks. However, these methods require altering the LLM's results of verification samples, inevitably making these watermarks susceptible to anomaly detection and even introducing new security risks. To address these challenges, we propose \name{} for `harmless' copyright protection of knowledge bases. Instead of manipulating LLM's final output, \name{} implants distinct yet benign verification behaviors in the space of chain-of-thought (CoT) reasoning, maintaining the correctness of the final answer. Our method has three main stages: (1) Generating CoTs: For each verification question, we generate two `innocent' CoTs, including a target CoT for building watermark behaviors; (2) Optimizing Watermark Phrases and Target CoTs: Inspired by our theoretical analysis, we optimize them to minimize retrieval errors under the \emph{black-box} and \emph{text-only} setting of suspicious LLM, ensuring that only watermarked verification queries can retrieve their correspondingly target CoTs contained in the knowledge base; (3) Ownership Verification: We exploit a pairwise Wilcoxon test to verify whether a suspicious LLM is augmented with the protected knowledge base by comparing its responses to watermarked and benign verification queries. Our experiments on diverse benchmarks demonstrate that \name{} effectively protects knowledge bases and its resistance to adaptive attacks.

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

↑