ControlNET:基于RAG的LLM系统防火墙
ControlNET: A Firewall for RAG-based LLM System
AI总结:
针对基于RAG的LLM系统存在的隐私与安全风险,本文提出AI防火墙ControlNET,通过激活偏移检测对抗性查询并以语义发散缓解威胁,在四个基准数据集上实现超0.909的AUROC,为系统安全部署提供有效防御机制。
摘要:
检索增强生成(RAG)显著提升了大型语言模型(LLMs)的事实准确性和领域适应性,推动其在医疗、金融和企业应用等敏感领域广泛部署。RAG通过整合外部知识缓解幻觉问题,但引入了隐私风险和安全风险,尤其是数据泄露风险和数据投毒风险。尽管近期研究探索了提示注入和投毒攻击,但在控制入站和出站查询流以缓解这些威胁的综合研究方面仍存在显著差距。本文提出一种AI防火墙ControlNET,旨在保护基于RAG的LLM系统免受这些漏洞影响。ControlNET利用激活偏移现象检测对抗性查询,并通过语义发散缓解其影响。我们使用最先进的开源LLM(Llama3、Vicuna和Mistral)在Msmarco、HotpotQA、FinQA和MedicalSys四个不同基准数据集上进行了全面实验。结果表明,ControlNET在检测和缓解安全威胁方面实现了超过0.909的AUROC,同时保持系统无害性。总体而言,ControlNET提供了一种有效、稳健、无害的防御机制,标志着在基于RAG的LLM系统安全部署方面取得了重大进展。
英文摘要:
Retrieval-Augmented Generation (RAG) has significantly enhanced the factual accuracy and domain adaptability of Large Language Models (LLMs). This advancement has enabled their widespread deployment across sensitive domains such as healthcare, finance, and enterprise applications. RAG mitigates hallucinations by integrating external knowledge, yet introduces privacy risk and security risk, notably data breaching risk and data poisoning risk. While recent studies have explored prompt injection and poisoning attacks, there remains a significant gap in comprehensive research on controlling inbound and outbound query flows to mitigate these threats. In this paper, we propose an AI firewall, ControlNET, designed to safeguard RAG-based LLM systems from these vulnerabilities. ControlNET controls query flows by leveraging activation shift phenomena to detect adversarial queries and mitigate their impact through semantic divergence. We conduct comprehensive experiments on four different benchmark datasets including Msmarco, HotpotQA, FinQA, and MedicalSys using state-of-the-art open source LLMs (Llama3, Vicuna, and Mistral). Our results demonstrate that ControlNET achieves over 0.909 AUROC in detecting and mitigating security threats while preserving system harmlessness. Overall, ControlNET offers an effective, robust, harmless defense mechanism, marking a significant advancement toward the secure deployment of RAG-based LLM systems.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。