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

通过 AI 多智能体 NLP 框架实现提示词注入检测与缓解

Prompt Injection Detection and Mitigation via AI Multi-Agent NLP Frameworks

XCALLY;Linux Foundation AI & Data(Linux基金会AI与数据部门);Conversational Technologies(对话技术公司);Polytechnic University of Turin(都灵理工大学)

Diego Gosmar, Deborah A. Dahl, Dario Gosmar

AI总结:

本文提出一种多智能体 NLP 框架,通过分层检测、输出净化与策略执行机制防御提示词注入,并基于 500 个注入提示词验证其可降低攻击成功率与违规率。

摘要:

提示词注入通过诱发非预期输出,对生成式 AI 系统构成重大挑战。我们提出一种多智能体 NLP 框架,专门用于通过分层检测与执行机制解决提示词注入漏洞。该框架协调多个专门智能体,分别负责生成响应、净化输出以及执行策略合规性。在 500 个精心构造的注入提示词上的评估表明,注入成功率和策略违规情况显著降低。本文提出了注入成功率(ISR)、策略覆盖频率(POF)、提示词净化率(PSR)和合规一致性得分(CCS)等新指标,用以得出综合的总注入漏洞得分(TIVS)。该系统利用 OVON(Open Voice Network)框架,通过结构化 JSON 消息进行智能体间通信,将此前已建立的、用于缓解幻觉的多智能体架构扩展到应对提示词注入的独特挑战。

英文摘要:

Prompt injection constitutes a significant challenge for generative AI systems by inducing unintended outputs. We introduce a multi-agent NLP framework specifically designed to address prompt injection vulnerabilities through layered detection and enforcement mechanisms. The framework orchestrates specialized agents for generating responses, sanitizing outputs, and enforcing policy compliance. Evaluation on 500 engineered injection prompts demonstrates a marked reduction in injection success and policy breaches. Novel metrics, including Injection Success Rate (ISR), Policy Override Frequency (POF), Prompt Sanitization Rate (PSR), and Compliance Consistency Score (CCS), are proposed to derive a composite Total Injection Vulnerability Score (TIVS). The system utilizes the OVON (Open Voice Network) framework for inter-agent communication via structured JSON messages, extending a previously established multi-agent architecture from hallucination mitigation to address the unique challenges of prompt injection.

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

↑