← Latest papers
💬 NLP

AsymSpec: Context-Asymmetric Speculative Decoding for Agentic LLMs

AsymSpec is an asymmetric speculative decoding framework that enables a lightweight drafter to access the full input context while a large verifier operates on a compressed view, effectively balancing inference speed and accuracy for agentic LLMs by achieving near-full-context performance at significantly reduced compute costs.

Original authors: Sheng Liang, Yongyue Zhang, Nathanael Brian, Hang Lv, Hao Wang, Chen Zhang, Yong Liu

Published 2026-08-27
📖 4 min read☕ Coffee break read

Original authors: Sheng Liang, Yongyue Zhang, Nathanael Brian, Hang Lv, Hao Wang, Chen Zhang, Yong Liu

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

Modern artificial intelligence systems are increasingly acting as autonomous agents, capable of retrieving documents, using software tools, and holding multi-turn conversations to solve complex problems. As these agents work, they accumulate a growing history of information: search results, tool outputs, and past messages. To make these systems fast enough for real-world use, engineers often compress this history, summarizing long documents into short sentences or stripping away detailed images to save time. However, this compression comes at a steep price: the AI loses the fine-grained details necessary for accurate reasoning, forcing a difficult choice between speed and intelligence. A standard technique called speculative decoding, which uses a small, fast model to guess what a large, slow model will say, has been the go-to solution for speeding up AI. Yet, this traditional method hits a wall in agentic settings because it requires both the small guesser and the large verifier to see the exact same information. If the information is compressed to save time, the guesser loses the same critical details as the verifier, meaning the speedup cannot recover the lost accuracy.

Researchers at Huawei Technologies and the University of Science and Technology of China have proposed a new approach called ASYMSPEC that breaks this deadlock by allowing the two models to see different versions of the same story. In their system, the large, powerful model that makes the final decision operates only on the compressed, fast version of the input to keep latency low. Meanwhile, a much smaller, lightweight model reads the full, uncompressed history in the background. This small model acts as a guide, identifying exactly what information was lost during compression and subtly nudging the large model's predictions to include those missing details. The researchers found that this asymmetric setup allows the system to retain nearly all the accuracy of a full-context analysis while operating at the speed of a compressed one. In tests across four different agentic capabilities, including complex multi-step questions and tool usage, the method recovered about 90 percent of the full-context accuracy while using only 20 to 30 percent of the computational cost.

The core innovation lies in how the two models communicate. Instead of simply letting the small model guess and hoping the large model agrees, the system compares the small model's reaction to the full text against its reaction to the compressed text. The difference between these two reactions reveals exactly what the compression removed. The system then uses this specific signal to adjust the large model's output, effectively filling in the gaps without requiring the large model to process the heavy, full-length data itself. A smart gatekeeper mechanism ensures this guidance is applied only when necessary, preventing the system from being confused when the compression is mild. This approach works even when the input involves different types of media; for instance, a small model can look at a raw image while the large model only sees a text description, with the small model steering the large one to understand the visual details it cannot see.

The researchers tested this method on real-world agent tasks, such as answering questions that require searching through multiple documents, following multi-turn instructions, and using software tools. They compared their system against standard methods that either process everything slowly or compress everything quickly. The results showed that traditional speculative decoding could not recover the accuracy lost to compression; it simply sped up the lossy process. In contrast, the new asymmetric method successfully bridged the gap, delivering performance close to the slow, full-context ideal but at a fraction of the time. On specific benchmarks involving long documents, the system achieved speedups of 1.3 to 1.7 times compared to the uncompressed baseline, while reducing the computing power required to roughly one-fifth. The study suggests that this technique is particularly valuable when the compression is severe, as the system's ability to recover lost information scales directly with how much detail was initially stripped away.

This work demonstrates that the trade-off between speed and accuracy in AI agents does not have to be rigid. By decoupling what the fast model sees from what the slow model sees, and using a lightweight guide to transfer critical insights, it is possible to have both efficiency and high-quality reasoning. The findings indicate that for tasks where context is heavy and details are easily lost, a small model reading the full picture can effectively steer a large model working with a summary. This approach offers a practical path forward for deploying sophisticated AI agents in production environments, where latency and cost are critical constraints, without sacrificing the reliability needed for complex decision-making.

Drowning in papers in your field?

Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.

Try Digest →