通往罗马的攻击:通过对抗性后缀优化引导LLM路由器选择昂贵模型
Route to Rome Attack: Directing LLM Routers to Expensive Models via Adversarial Suffix Optimization
AI总结:
本文提出R$^2$A方法,通过对抗性后缀优化误导黑盒LLM路由器选择昂贵模型,解决现有攻击在黑盒场景下的不足。
摘要:
成本感知路由动态分配用户查询到不同能力的模型以平衡性能和推理成本。然而,路由策略引入了新的安全问题,即攻击者可能操控路由器持续选择昂贵的高能力模型。现有路由攻击依赖于白盒访问或启发式提示,无法在现实黑盒场景中有效。本文提出R$^2$A,旨在通过对抗性后缀优化误导黑盒LLM路由器选择昂贵模型。具体而言,R$^2$A部署了混合集成代理路由器来模拟黑盒路由器。进一步为基于集合的代理设计了后缀优化算法。在多个开源和商用路由系统上的大量实验表明,R$^2$A显著提高了不同分布查询对昂贵模型的路由率。代码和示例:https://github.com/thcxiker/R2A-Attack.
英文摘要:
Cost-aware routing dynamically dispatches user queries to models of varying capability to balance performance and inference cost. However, the routing strategy introduces a new security concern that adversaries may manipulate the router to consistently select expensive high-capability models. Existing routing attacks depend on either white-box access or heuristic prompts, rendering them ineffective in real-world black-box scenarios. In this work, we propose R$^2$A, which aims to mislead black-box LLM routers to expensive models via adversarial suffix optimization. Specifically, R$^2$A deploys a hybrid ensemble surrogate router to mimic the black-box router. A suffix optimization algorithm is further adapted for the ensemble-based surrogate. Extensive experiments on multiple open-source and commercial routing systems demonstrate that {R$^2$A} significantly increases the routing rate to expensive models on queries of different distributions. Code and examples: https://github.com/thcxiker/R2A-Attack.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。