Accelerating LLM Inference with Draft Models: Faster Decoding via Sparse Attention

    This article explains how a draft-model acceleration scheme designed for Dynamic Sparse Attention (DSA) models speeds up LLM decoding without retraining or changing the target model's outputs. It covers the speculative decoding principle, benchmark highlights (up to 4.2x speedup on individual tasks), a shared KV cache and index design that keeps draft-stage memory and compute constant regardless of context length, integration considerations, and guidance on which teams benefit most.

    What Is a Draft Model, Really?

    The bottleneck in LLM inference is usually not raw computation but the sequential nature of the decoding phase—every token must wait for the previous one, which makes it hard to amortize memory bandwidth and access costs. Speculative decoding addresses this: a draft model, far smaller than the target model, quickly “guesses” several candidate tokens, and the target model verifies them in parallel in a single forward pass. This turns part of the serial decoding into parallel computation.

    Such a scheme has natural requirements:

    • The draft model itself must be lightweight enough, or the drafting stage becomes the new bottleneck.
    • The draft model’s output distribution should closely match the target model’s, otherwise acceptance rates drop and the speedup degrades.
    • Verification must be parallelizable and must not change the final output.

    The open-source scheme discussed here is not a new foundation model. It is an acceleration component that attaches to an existing target model: the target model’s weights and output distribution remain unchanged, and only per-token generation gets faster. It is designed specifically for Dynamic Sparse Attention (DSA)-style models and long-context scenarios, with weights and full training code released together.

    What the Key Numbers Tell Us

    Results across 19 public benchmarks can be summarized in three points:

    1. Leading average speedup: Acceptance length and speedup outperform comparable sparse-attention draft schemes, with average speedups roughly 12% and 30% higher respectively, and up to 4.2x on individual tasks.
    2. Effective on real workloads: On agentic tasks and real-world workflow benchmarks, acceptance length leads by about 10.4%. This matters—many acceleration schemes look good on “clean” benchmarks but lose their gains in realistic multi-turn, tool-calling scenarios.
    3. Gains grow with context length: Sparse attention relies on filtering context by importance, so longer contexts mean more candidate positions and larger savings. This is the opposite of traditional full-attention draft models.

    Note that “4.2x” is a best-case single-task figure, not an all-scenario average. To evaluate whether to adopt such a scheme, you should baseline-test against your own real workloads—considering your context length distribution and output length share—rather than relying on published peak numbers.

    The Most Interesting Design Choice: Sharing

    The most interesting aspect of this scheme, from an engineering standpoint, is not the model itself but its reuse philosophy:

    KV Share: Each draft layer directly shares the KV cache of the target model’s corresponding sparse-attention layer. No separate memory copy is maintained for the drafter. This is hugely valuable in long-context scenarios—KV cache memory is often the single largest cost of long-context inference, and a separate drafter KV cache would effectively halve available concurrency.

    Index Share: Draft layers reuse the indexer’s selected positions (up to 2048). In other words, each draft token attends to at most ~2K keys, decoupling attention complexity from context length—whether the context is 8K or 128K, draft computation stays constant.

    These two sharing mechanisms bring three benefits:

    • Zero extra memory: No additional KV cache memory is introduced.
    • Constant compute: Drafting overhead is bounded and does not grow with context length.
    • Deployment-friendly: The draft model does not participate in prefill. In Prefill-Decode (PD) disaggregated architectures, the P node only needs to send one additional last-layer hidden state to the D node, so the modification cost is low.

    Integration from an Engineering Perspective

    In practice, the integration path looks roughly like this:

    1. 1. Deploy the target sparse-attention model with the KV cache sharing channel enabled
    2. 2. Load the draft model weights and attach it to the decode side
    3. 3. In the decoding loop:
    4. for step in speculative_steps:
    5. draft_token = drafter(hidden_state, shared_kv, shared_index)
    6. target_tokens = target_model.verify(draft_tokens) # parallel verification
    7. commit accepted tokens

    The acceptance stage must strictly follow the “target model distribution unchanged” principle—rejected positions must fall back to the target model’s original sampling result. Otherwise output quality will drift, which is unacceptable in production.

    Who Should Use This

    Three criteria summarize the fit:

    • No retraining, no output changes: Plug in and speed up, with controllable risk—well suited for output-consistency-sensitive workloads.
    • Long-context workloads benefit most: If your traffic is mostly short conversations, gains are limited. Document Q&A, code completion, and long agent-trajectory replay scenarios benefit the most.
    • If you care about time-to-first-token and decoding time: Teams already serving sparse-attention models and wanting higher throughput or lower latency on the same hardware are the first target users.

    Looking further ahead, this “leave the target model untouched, make acceleration an external component” design represents a broader direction in inference optimization: decoupling the acceleration layer from the model layer, so the acceleration scheme can be iterated, canaried, and rolled back independently. For companies that treat their LLMs as core assets, a non-invasive acceleration path that never touches model weights is clearly the more reassuring engineering choice.

    If you use managed inference services (such as a cloud provider’s model service platform or elastic inference instances), check whether they offer speculative decoding / draft-model acceleration options, and run A/B load tests based on your own traffic profile. Quantify gains using p50/p99 latency and cost per token, not just peak speedup figures.