Adversarial Prompts for Acceptance Collapse in Speculative Decoding
This paper introduces ADSD, the first prompt-suffix attack that exploits a vulnerability in speculative decoding by using a Soft-Collapse surrogate to generate adversarial suffixes that significantly increase inference latency while preserving task quality.
Original paper licensed under CC BY 4.0 (http://creativecommons.org/licenses/by/4.0/). This is an AI-generated explanation of the paper below. It is not written or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer
Imagine you are running a high-speed restaurant where a head chef (the "Target Model") is responsible for cooking every single dish to perfection. But the chef is slow, and customers are hungry. To speed things up, the restaurant hires a speedy sous-chef (the "Draft Model") who runs ahead, chopping vegetables and guessing what the head chef will do next. If the sous-chef's guesses are right, the head chef just nods and serves the food instantly. If the sous-chef is wrong, the head chef has to stop, throw away the guess, and cook everything from scratch. This "guess-and-check" system is called speculative decoding, and it's a popular trick used to make AI chatbots talk faster without losing their smarts.
For years, everyone assumed this system was safe as long as the AI didn't say anything mean or weird. The idea was that the speed boost was just a math problem: if the two chefs agree, we go fast; if they disagree, we go slow. But what if someone could trick the system into always disagreeing, not by breaking the AI, but by whispering a tiny, secret code into the customer's order? This is the question a team of researchers at Clemson University and others set out to answer. They wanted to know if a cleverly crafted sentence could force the fast AI to slow down to a crawl, making the service expensive and frustrating, all while the final answer still looked perfectly normal.
The researchers discovered that yes, this is possible. They created a new type of attack called ADSD (Adversarial Prompts for Acceptance Collapse). Think of it like a "glitch in the matrix" for the restaurant's workflow. The attacker doesn't change the chefs or the kitchen; they just add a few invisible, special words to the end of a normal request. These words act like a magic spell that makes the speedy sous-chef become incredibly overconfident but consistently wrong. The sous-chef starts shouting out guesses like "bizarre" or "XX" with total certainty, but the head chef knows these are wrong and rejects them immediately.
Because the head chef rejects the guesses so often, the system gets stuck in a loop of throwing away work and starting over. In their tests, this tiny trick turned a fast response into a slow one. On a math problem dataset called GSM8K, the average time to get an answer jumped from 26.05 seconds to 42.29 seconds—a 62.3% slowdown. That's like a 10-minute drive suddenly taking 16 minutes just because of a weird traffic signal. Even more impressive (and scary), the researchers found that the final answer the customer received was still almost as good as before. The math problems were still solved correctly, and the stories still made sense. The attack didn't break the AI's brain; it just broke its speed.
The team showed that this trick works even when the restaurant tries to use different, more advanced cooking methods. Whether they used a standard "one-by-one" checking system or a fancy "block-by-block" system, the attack still slowed things down by roughly the same amount. They even tried it on different types of AI models, from the Qwen family to the LLaMA family, and the slowdown happened every time. In one extreme case using a specific architecture called EAGLE-3, the speed dropped by a massive 76.9%.
The researchers also tested if this "magic spell" could work on tasks it wasn't specifically trained for. They took a spell designed to slow down math problems and used it on coding tasks and news summarization. It worked! On coding tasks, the time to generate code more than doubled (141.8% increase), and the code started making more mistakes. On news summaries, it slowed things down by 30.4%. This suggests that the vulnerability isn't just a fluke of one specific math test; it's a fundamental weakness in how these fast AI systems check their own work.
The paper concludes that while the AI's final answers might still look perfect, the "cost" of getting them has been hijacked. The attack is stealthy because it doesn't trigger the usual alarms that look for bad words or weird outputs. It's a "denial of wallet" attack, where the attacker doesn't steal data but forces the service provider to burn through expensive computer power just to deliver a normal answer. The authors suggest that simply checking the input or the final output isn't enough to stop this; we need to watch the process itself. If the system notices that the "guess-and-check" loop is failing way too often, it might need to stop guessing and just cook slowly to save money. For now, this discovery serves as a warning: just because an AI is fast and accurate doesn't mean it's safe from being slowed down by a few clever words.
Drowning in papers in your field?
Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.