RepetitionCurse:在DoS压力下测量和理解混合专家大语言模型中的路由器不平衡
RepetitionCurse: Measuring and Understanding Router Imbalance in Mixture-of-Experts LLMs under DoS Stress
AI总结:
针对混合专家大语言模型在推理时缺乏显式负载均衡约束的问题,提出低成本的对抗性提示方法RepetitionCurse,利用重复令牌模式操纵路由策略,导致计算瓶颈和拒绝服务攻击,显著增加端到端推理延迟。
摘要:
混合专家架构因其优越的参数效率已成为扩展大型语言模型的标准。为了适应实践中专家数量的增长,现代推理系统通常采用专家并行性将专家分布到不同设备上。然而,推理过程中缺乏显式负载均衡约束,使得对抗性输入能够触发严重的路由集中。我们证明,分布外提示可以操纵路由策略,使得所有令牌一致地路由到同一组top-$k$专家,这在某些设备上造成计算瓶颈,同时迫使其他设备空闲。这将效率机制转化为拒绝服务攻击向量,导致违反首令牌时间的服务级别协议。我们提出RepetitionCurse,一种低成本的基于黑盒的策略来利用这一漏洞。通过识别MoE路由器行为中的普遍缺陷,RepetitionCurse以模型无关的方式使用简单的重复令牌模式构建对抗性提示。在广泛部署的MoE模型(如Mixtral-8x7B)上,我们的方法将端到端推理延迟增加了3.063倍,显著降低了服务可用性。
英文摘要:
Mixture-of-Experts architectures have become the standard for scaling large language models due to their superior parameter efficiency. To accommodate the growing number of experts in practice, modern inference systems commonly adopt expert parallelism to distribute experts across devices. However, the absence of explicit load balancing constraints during inference allows adversarial inputs to trigger severe routing concentration. We demonstrate that out-of-distribution prompts can manipulate the routing strategy such that all tokens are consistently routed to the same set of top-$k$ experts, which creates computational bottlenecks on certain devices while forcing others to idle. This converts an efficiency mechanism into a denial-of-service attack vector, leading to violations of service-level agreements for time to first token. We propose RepetitionCurse, a low-cost black-box strategy to exploit this vulnerability. By identifying a universal flaw in MoE router behavior, RepetitionCurse constructs adversarial prompts using simple repetitive token patterns in a model-agnostic manner. On widely deployed MoE models like Mixtral-8x7B, our method increases end-to-end inference latency by 3.063x, degrading service availability significantly.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。