RerouteGuard: 理解并缓解LLM路由中的对抗风险
RerouteGuard: Understanding and Mitigating Adversarial Risks for LLM Routing
AI总结:
RerouteGuard通过动态嵌入检测和自适应阈值,有效检测并缓解LLM路由中的对抗风险,提升多模型AI系统的安全性。
摘要:
近年来,多模型AI系统的发展利用LLM路由器来降低计算成本同时保持响应质量,通过将查询分配给最合适的模型。然而,作为分类器,LLM路由器容易受到新型对抗攻击的威胁,即LLM重路由攻击,其中攻击者在用户查询前添加特别设计的触发器以操控路由决策。此类攻击可能导致计算成本增加、响应质量下降,甚至绕过安全防护机制,但其安全影响仍 largely 未被深入研究。在本工作中,我们通过系统化地基于攻击者的意图(即成本提升、质量劫持和安全绕过)和知识来梳理LLM重路由威胁。基于威胁分类,我们对现有的LLM路由系统进行了测量研究,以应对现有的LLM重路由攻击。结果表明,现有路由系统容易受到重路由攻击,尤其是在成本提升场景中。我们随后利用可解释性技术来表征现有的重路由攻击,发现它们通过利用路由决策边界通过混杂工具将查询前置以强制错误路由。为了缓解这些风险,我们引入了RerouteGuard,一个灵活且可扩展的LLM重路由防护框架。RerouteGuard通过动态嵌入检测和自适应阈值来过滤对抗性重路由提示。在三种攻击设置和四个基准测试中的广泛评估表明,RerouteGuard在对抗最先进重路由攻击时达到超过99%的检测准确率,同时对合法查询的影响几乎可以忽略不计。实验结果表明,RerouteGuard提供了一个原理上和实践中都可行的解决方案,以保护多模型AI系统免受对抗性重路由攻击。
英文摘要:
Recent advancements in multi-model AI systems have leveraged LLM routers to reduce computational cost while maintaining response quality by assigning queries to the most appropriate model. However, as classifiers, LLM routers are vulnerable to novel adversarial attacks in the form of LLM rerouting, where adversaries prepend specially crafted triggers to user queries to manipulate routing decisions. Such attacks can lead to increased computational cost, degraded response quality, and even bypass safety guardrails, yet their security implications remain largely underexplored. In this work, we bridge this gap by systematizing LLM rerouting threats based on the adversary's objectives (i.e., cost escalation, quality hijacking, and safety bypass) and knowledge. Based on the threat taxonomy, we conduct a measurement study of real-world LLM routing systems against existing LLM rerouting attacks. The results reveal that existing routing systems are vulnerable to rerouting attacks, especially in the cost escalation scenario. We then characterize existing rerouting attacks using interpretability techniques, revealing that they exploit router decision boundaries through confounder gadgets that prepend queries to force misrouting. To mitigate these risks, we introduce RerouteGuard, a flexible and scalable guardrail framework for LLM rerouting. RerouteGuard filters adversarial rerouting prompts via dynamic embedding-based detection and adaptive thresholding. Extensive evaluations in three attack settings and four benchmarks demonstrate that RerouteGuard achieves over 99% detection accuracy against state-of-the-art rerouting attacks, while maintaining negligible impact on legitimate queries. The experimental results indicate that RerouteGuard offers a principled and practical solution for safeguarding multi-model AI systems against adversarial rerouting.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。