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

面向检索增强生成系统中无监督对抗文档检测

Towards Unsupervised Adversarial Document Detection in Retrieval Augmented Generation Systems

Department of Electrical Engineering, Media, and Computer Science(电气工程、媒体与计算机科学系)

Patrick Levi

AI总结:

本文提出无监督方法检测检索增强生成系统中的对抗性上下文文档,通过生成器激活、输出嵌入和熵基不确定性度量等指标,展示零日攻击检测能力,并证明目标提示非必需。

摘要:

检索增强生成系统已成为日常生活的重要组成部分。无论是在搜索引擎、电子邮件系统还是服务聊天机器人中,这些系统都基于大规模语言模型的上下文检索和回答生成。随着其普及,安全漏洞也日益增加。攻击者越来越专注于这些系统,并开发了各种黑客方法。操纵上下文文档是持续攻击并影响所有用户的一种方式。因此,早期检测被篡改的对抗性上下文文档对于安全至关重要。尽管监督方法需要大量标记的对抗性上下文,我们提出了一种无监督方法,能够检测零日攻击。我们进行了一项初步研究,以展示适合对抗性上下文的合适指标。为此,生成器激活、输出嵌入和基于熵的不确定性度量被证明是合适的互补量。通过基本的统计异常检测,我们提出并比较了它们的检测能力。此外,我们证明目标提示,即攻击者想要操纵的目标,对于成功的检测并不必需。此外,我们的结果表明,简单的上下文摘要生成可能在发现操纵上下文方面甚至更有效。

英文摘要:

Retrieval augmented generation systems have become an integral part of everyday life. Whether in internet search engines, email systems, or service chatbots, these systems are based on context retrieval and answer generation with large language models. With their spread, also the security vulnerabilities increase. Attackers become increasingly focused on these systems and various hacking approaches are developed. Manipulating the context documents is a way to persist attacks and make them affect all users. Therefore, detecting compromised, adversarial context documents early is crucial for security. While supervised approaches require a large amount of labeled adversarial contexts, we propose an unsupervised approach, being able to detect also zero day attacks. We conduct a preliminary study to show appropriate indicators for adversarial contexts. For that purpose generator activations, output embeddings, and an entropy-based uncertainty measure turn out as suitable, complementary quantities. With an elementary statistical outlier detection, we propose and compare their detection abilities. Furthermore, we show that the target prompt, which the attacker wants to manipulate, is not required for a successful detection. Moreover, our results indicate that a simple context summary generation might even be superior in finding manipulated contexts.

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

↑