TL;DR
This paper introduces "LLM control plane integrity" as a new AI safety concern, focusing on how attackers can manipulate LLM routers to force queries to more expensive models without degrading output quality. They demonstrate a successful "confounder gadget" attack that works even in black-box settings against commercial routers, highlighting the vulnerability of these crucial orchestration systems.
What Problem Does This Paper Address?
As Large Language Models (LLMs) become more powerful and diverse, so does the complexity of managing them. LLM routers are systems designed to intelligently route user queries to different LLMs, balancing the trade-off between response quality and cost. Typically, cheaper, less capable models handle simpler queries, while expensive, state-of-the-art models are reserved for complex ones. This paper identifies a critical security vulnerability in these routers: their "control plane integrity." Unlike traditional adversarial attacks that aim to degrade LLM outputs, this attack targets the router itself, aiming to manipulate its routing decisions. The problem is that attackers can potentially force queries to expensive models, either to guarantee high-quality responses for themselves or to artificially inflate the costs for the application operator, all while maintaining or even improving the output quality. This creates a new attack surface in AI safety that was previously unaddressed.
Methods
The core of the paper's contribution lies in the development of "confounder gadgets." These are specially crafted, query-independent strings that, when prepended to any user query, trick the LLM router into sending that query to the strong (expensive) LLM. The authors employ a white-box optimization approach (hill-climbing) to generate these gadgets, specifically optimizing them to maximize the router's internal scoring function that determines model selection. They also explore black-box (transferability-based) attacks, where gadgets optimized for one router are used against another, and demonstrate success even against commercial, proprietary routers. Defenses based on perplexity filtering are shown to be ineffective, as the attack can be adapted to generate low-perplexity gadgets.
Datasets
The paper uses several standard LLM benchmarks for evaluation:
- MT-Bench: A dataset of 160 open-ended questions.
- MMLU: A dataset of 14,042 multi-choice questions.
- GSM8K: A dataset of 1,319 grade-school math problems.
These datasets are used to evaluate the performance of the routers and the effectiveness of the attack under various conditions.
Key Insights and Ideas
- Control Plane Integrity is a New AI Safety Frontier: The paper highlights that securing the orchestration of LLMs (the control plane) is as crucial as securing the LLMs themselves. Attacks can target the decision-making process, not just the output.
- Query-Independent Gadgets are Powerful: The ability to generate a single "gadget" that works across many queries and even different routers is a significant finding, making the attack practical and scalable.
- Quality Preservation is Key: The success of the attack hinges on not just rerouting queries but doing so without degrading the output quality, making it harder to detect and more valuable to an attacker.
- Perplexity Defenses are Insufficient: The paper demonstrates that simple defenses based on detecting "unnatural" text via perplexity can be easily bypassed by adaptive attack strategies.
Key Results
- High Rerouting Success: The white-box attack achieves rerouting success rates of over 90% for most open-source routers, successfully directing nearly all "weak" queries to the "strong" model.
- Black-Box Transferability: The attack successfully transfers to commercial routers (Unify, NotDiamond, OpenRouter) with upgrade rates ranging from 62% to 91%, demonstrating broad applicability.
- Minimal Quality Degradation: In most cases, the confounder gadgets did not significantly change response perplexity or benchmark scores. In some instances, especially when there was a large performance gap between weak and strong LLMs, the attack even improved response quality.
- Defense Evasion: Perplexity-based defenses were shown to be easily evaded by incorporating a low-perplexity constraint into the gadget generation process, reducing the defense's ROCAUC score from ~1.0 to 0.5-0.7.
Limitations and Future Work
- Commercial Router Evaluation: While the paper tested several commercial routers, one (Martian) was excluded due to its apparent lack of functionality.
- Adaptive Attack Complexity: While the paper shows defenses can be evaded, the adaptive attack generation is more complex.
- Future Work: The authors suggest exploring indirect attacks where adversaries trick users into forming queries that confound control planes. They also point to the potential for attacks on Mixture-of-Experts (MoE) systems and the need for further research into robust LLM control plane designs. The paper also mentions exploring query-specific gadgets, which are more effective but computationally more expensive.
Summary updated