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

PIDP-Attack:将提示注入与数据库污染攻击结合在检索增强生成系统中

PIDP-Attack: Combining Prompt Injection with Database Poisoning Attacks on Retrieval-Augmented Generation Systems

The Chinese University of Hong Kong, Shenzhen(香港中文大学(深圳));Taobao and Tmall Group(淘宝和天猫集团)

Haozhen Wang, Haoyue Liu, Jionghao Zhu, Zhichao Wang, Yongxin Guo, Xiaoying Tang

AI总结:

本文提出PIDP-Attack,结合提示注入与数据库污染攻击,针对检索增强生成系统中的对抗攻击问题,通过在推理时添加恶意字符并注入少量污染文档,有效操控LLM响应,实验显示其在开放域问答任务中攻击成功率提升4%-16%。

摘要:

大型语言模型(LLMs)在广泛的应用中表现出色,但其实际部署常受过时知识和生成幻觉问题的阻碍。为解决这些问题,引入了检索增强生成(RAG)系统,通过外部更新知识源增强LLMs。尽管具有优势,RAG系统仍易受对抗攻击,数据污染成为主要威胁。现有污染攻击通常需要用户特定查询的先验知识,限制了灵活性和实际应用。本文提出PIDP-Attack,一种新的复合攻击,结合提示注入与数据库污染。通过在推理时附加恶意字符并注入少量污染文档,我们的方法可有效操控LLM响应,无需事先了解用户实际查询。在三个基准数据集(Natural Questions, HotpotQA, MS-MARCO)和八种LLM上的实验评估显示,PIDP-Attack在开放域问答任务中攻击成功率提升4%-16%,同时保持高检索精度,证明复合攻击策略的必要性和有效性。

英文摘要:

Large Language Models (LLMs) have demonstrated remarkable performance across a wide range of applications. However, their practical deployment is often hindered by issues such as outdated knowledge and the tendency to generate hallucinations. To address these limitations, Retrieval-Augmented Generation (RAG) systems have been introduced, enhancing LLMs with external, up-to-date knowledge sources. Despite their advantages, RAG systems remain vulnerable to adversarial attacks, with data poisoning emerging as a prominent threat. Existing poisoning-based attacks typically require prior knowledge of the user's specific queries, limiting their flexibility and real-world applicability. In this work, we propose PIDP-Attack, a novel compound attack that integrates prompt injection with database poisoning in RAG. By appending malicious characters to queries at inference time and injecting a limited number of poisoned passages into the retrieval database, our method can effectively manipulate LLM response to arbitrary query without prior knowledge of the user's actual query. Experimental evaluations across three benchmark datasets (Natural Questions, HotpotQA, MS-MARCO) and eight LLMs demonstrate that PIDP-Attack consistently outperforms the original PoisonedRAG. Specifically, our method improves attack success rates by 4% to 16% on open-domain QA tasks while maintaining high retrieval precision, proving that the compound attack strategy is both necessary and highly effective.

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

↑