← 首页|学术|AsymSpec: Context-Asymmetric Speculative Decoding for Agentic LLMs
cs.AI, cs.CL · 2608.26004 · 2026-08-26

AsymSpec: Context-Asymmetric Speculative Decoding for Agentic LLMs

Sheng Liang, Yongyue Zhang, Nathanael Brian, Hang Lv et al.
投机解码推理加速上下文压缩
💬 投机解码通常要求草稿模型和验证模型看到相同上下文,AsymSpec让轻量草稿模型读完整输入、大验证模型只读压缩视图,在多个agentic benchmark上达到约90%全上下文精度,吞吐提升1.3-1.7倍、算力降到0.2-0.3倍。

🎯 背景

agentic LLM流水线随着检索、工具调用和多轮交互中上下文不断累积,推理成本持续攀升。为控制延迟,部署方通常压缩输入,但这会损害任务准确率。投机解码可以无损加速生成,但它假设草稿模型和验证模型共享完全相同的上下文,这使其无法同时兼顾准确率与开销的权衡。

🔬 方法

AsymSpec是一个非对称投机解码框架,打破了这种对称性:轻量草稿模型读取完整输入,而大型验证模型只在压缩视图上运行。草稿模型通过对比性的δ-融合logits来引导验证模型,并由一个散度感知的接受门调制,以保持验证稳定性和较高的草稿接受率。

📊 结果

在四种agentic能力和两个端到端agent benchmark上评测,AsymSpec平均达到约90%的全上下文精度,在孤立文本能力上实现1.3-1.7倍吞吐提升,算力成本仅为0.2-0.3倍,表明当压缩会丢弃关键推理信号时,非对称上下文访问能带来显著收益。

原文摘要

▶ 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 $\delta$-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.
来源: arXiv:2608.26004 · 精读由高松灯生成,基于摘要与 arXiv 页面信息