arXiv(opens in a new tab)cs.LGAug 2026Cited by 2 papers on PaperVantage

Manuscript Offprint

arXiv:2608.30252

Strong Drafts Need Compact Memories: Long-Context Speculative Decoding with Compressed KV Cache

Tong Yuan, Chengxi Liao, Zeyi Wen

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

Long-context LLM applications such as document summarization and multi-turn agents require generation from prefixes spanning tens of thousands of tokens, making decoding latency a major bottleneck. Speculative decoding (SD) reduces latency without changing model outputs, but its speedup depends on both accepted draft tokens and draft-step latency: Lightweight drafts are fast but lack the capacity to capture long-range dependencies, whereas strong independent drafts recover acceptance but incur growing KV-access cost at long prefixes. We introduce memory-augmented drafting for long-context SD, equipping a strong independent draft with compressed draft-side KV memory: A lightweight adaptor constructs and incrementally updates this memory to retain distant information and exact recent context. The target verifier retains its full KV cache and applies the standard accept/reject rule, preserving SD's lossless guarantee. Experiments on Llama 3.1-8B and 70B targets at prefix lengths up to 32K show that our method reduces draft-side memory by over 70%. It achieves speedups of up to 2.08×2.08\times and 3.33×3.33\times, respectively, over autoregressive decoding.

1 Introduction

As LLM applications such as document summarization, online deep research, and multi-turn agents grow in scope and complexity, efficient generation becomes increasingly important (Khurana et al., 2023). However, the inherently sequential nature of Autoregressive decoding limits throughput and increases latency. Speculative decoding (SD) (Leviathan et al., 2023) reduces this sequential bottleneck without changing model outputs: a draft proposes several candidate tokens, and the target verifies them in parallel. SD speedup depends on both the number of accepted draft tokens and the latency of each draft step. Accepting more

Figure

Figure 1: Lightweight drafts are fast but accept fewer tokens; strong full-KV drafts recover acceptance but incur high KV-access cost. Our compressed-memory draft targets high acceptance and speed.

candidates amortizes each target verification over more output tokens, while a slow draft can erase that gain.

When it comes to long-context generation, these applications can condition on prefixes spanning tens of thousands of tokens (Bai et al., 2024). Longer prefixes increase the cost of each decoding step: attention reads a larger KV cache and processes more key-value pairs, increasing both memory traffic and computation. Lightweight draft methods such as EAGLE (Li et al., 2024b) keep draft latency low over short prefixes (Figure 2, left). Their limited capacity, however, makes it difficult to capture long-range dependencies, so acceptance declines as the context grows (Chen et al., 2025; Bhendawade et al., 2025; Huo et al., 2026). Stronger independent drafts recover acceptance (Figure 2, middle), but every draft step streams the full historical KV cache, whereas KV traffic and computation grows with prefix length. At long prefixes, this KV cost dominates draft latency and erodes SD's end-to-end speedup. Figure 1 summarizes the resulting design target: a draft with sufficient capacity to capture long-range dependencies while maintaining high acceptance and low

∗^{*}Corresponding author.

Figure

Figure 2: Overview of our proposed framework.

latency as the prefix grows.

Building on this analysis, we propose memory-augmented drafting for long-context SD with independent draft models (Figure 2, right). Instead of maintaining a full draft KV cache, the draft model keeps a compressed KV memory that carries prediction-relevant information from distant history while preserving exact recent context, thereby preserving both high acceptance and low draft latency (Figure 1). This memory is initialized during the prefill stage—which can run in parallel with target prefill since the draft is an independent model—and is incrementally updated as decoding proceeds. A lightweight memory adaptor produces the compressed states; only the adaptor parameters are trained while the draft backbone remains frozen, keeping training cost low. The target verifier retains its unmodified full KV cache, so the standard accept/reject rule applies and speculative decoding remains lossless. Experiments on Llama 3.1 family targets at prefix lengths up to 32K tokens show that memory-augmented drafting reduces draft-side memory by over 70% and achieves speedups of up to 2.08×2.08\times on the 8B target and 3.33×3.33\times on the 70B target, consistently outperforming both lightweight and full-KV draft baselines.

Our contributions are as follows:

• We identify the long-context SD dilemma: lightweight drafts lose acceptance as the prefix grows, while strong full-KV independent drafts introduce large overhead.

• We propose memory-augmented drafting, which equips independent draft models with compressed draft-side KV memory that preserves both high acceptance and low draft latency.

• The design is hardware-friendly: the compressed memory is continuous and append-only, so new slots are materialized and appended without in-place updates to existing entries, making it compatible with efficient KV-cache serving systems.

• We evaluate on Llama 3.1 family targets across long-input summarization benchmarks at prefix lengths up to 32K tokens, demonstrating consistent speedups over autoregressive decoding and speculative baselines while preserving the lossless guarantee of SD.

References (7)

  • The Llama 3 Herd of Models
  • Association for Computational Linguistics
  • We cite the original creators of the models, datasets, baselines, and software frameworks used in our experiments in the corresponding experimental setup and baseline sections, as well as in the references
  • The datasets used in our experiments are standard public research benchmarks
  • Greater inference efficiency may nevertheless enable harmful uses of existing models at a larger scale
  • Sink tokens remain globally visible to stabilize attention, and each memory-slot token can attend to previously materialized slots together with the raw tokens in its assigned local unit and neighboring boundary tokens
  • The reported 8K, 16K, 24K, and 32K lengths refer to the input prefix before generation and exclude output tokens