AsymSpec: Context-Asymmetric Speculative Decoding for Agentic LLMs

Sheng Liang, Yongyue Zhang, Nathanael Brian, Hang Lv, Hao Wang +2 more
8/26/2026
cs.AIcs.CL

No official code found. Best implementation: USTC-StarTeam/AsymSpec (0 stars, Apache-2.0, last commit 2026-08-31).

Abstract

Agentic LLM pipelines face escalating inference costs as context accumulates across retrieval, tool use, and multi-turn interactions. To control latency, deployments routinely compress inputs, but this degrades task accuracy. Speculative decoding (SD) accelerates generation losslessly, yet it assumes the drafter and verifier share an identical context, preventing SD from resolving the accuracy-overhead trade-off. We propose AsymSpec, an asymmetric speculative decoding framework that breaks this symmetry: a lightweight drafter reads the full input while the large verifier operates on the compressed view. The drafter steers the verifier via a contrastive $δ$-fusion of logits, modulated by a divergence-aware acceptance gate that preserves verification stability and high draft acceptance rates. Evaluated across four agentic capabilities and two end-to-end agent benchmarks, AsymSpec reaches $\approx 90\%$ of full-context accuracy on average, delivering $1.3$--$1.7\times$ throughput speedups at $0.2$--$0.3\times$ the compute cost on isolated text capabilities. These results show that asymmetric context access yields substantial gains precisely when compression discards critical reasoning signals.

View on arXivView PDF

Code Implementations(1)

Apache-2.0

Official implementation of AsymSpec: Context-Asymmetric Speculative Decoding for Agentic LLMs (EMNLP 2026)

00Shell, PythonAug 30, 20261 months agoApache-2.0
agentic-aicontext-compressionlarge-language-modelsspeculative-decodingvllm

Similar Papers

Cite this paper

@article{liang2026asymspec,
  title  = {AsymSpec: Context-Asymmetric Speculative Decoding for Agentic LLMs},
  author = {Sheng Liang and Yongyue Zhang and Nathanael Brian and Hang Lv and Hao Wang and Chen Zhang and Yong Liu},
  year   = {2026},
  eprint = {2608.26004},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2608.26004v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2608.26004.svg)](https://codeofpaper.com/paper/2608.26004)

Discussion