Open-Source Draft Models for Faster LLM Inference: KV and Index Sharing Explained

    An open-source draft model accelerates speculative decoding by reusing a target model’s KV cache and sparse-attention indices. This article explains the architecture, reported performance gains in long-context and agentic workloads, and practical deployment considerations, including prefill–decode separation and acceptance-length monitoring.

    1. Why LLM Inference Needs a Draft Model

    The bottleneck in autoregressive LLM decoding is increasingly shifting from compute capacity to memory access and latency. During generation, every new token requires a forward pass through the model. Each pass reads a large volume of model weights relative to the computation performed, leaving GPU utilization low and making end-to-end latency difficult to reduce.

    Speculative decoding addresses this problem with a much smaller draft model. The draft model quickly proposes several candidate tokens, and the target LLM verifies them together in a parallel forward pass. Accepted candidates become part of the output; at a rejected position, the decoding process falls back to generating a replacement.

    With the correct acceptance and correction rules, speculative decoding preserves the target model’s output distribution. The goal is faster generation without changing the results statistically.

    The draft model is critical to achieving that speedup. It must be small and fast while closely matching the target model’s output distribution, so that more proposed tokens are accepted in each verification round.

    A recently open-sourced draft model takes a different approach from training a fully independent drafter: it extensively reuses the target model’s internal state.

    2. An Auxiliary Accelerator, Not a Replacement

    This type of draft model is an auxiliary inference component, not a replacement for—or an upgraded version of—the target model. The target model remains responsible for output quality and verification, while the draft model proposes candidate sequences at low cost.

    This separation offers several practical benefits:

    1. No loss of output quality. Under distribution-preserving speculative decoding, verification and correction by the target model ensure that draft-model accuracy affects speed rather than the final output distribution.

    2. Independent adaptation. When the target model changes, the draft model can be retrained or adapted separately. Their development cycles do not need to remain tightly coupled.

    3. Architecture-specific optimization. The open-source design targets LLMs with sparse attention and long-context workloads. It is aligned with the target model’s weight format, and the complete training code has also been released to support reproduction and adaptation to other models.

    3. Core Mechanisms: KV Share and Index Share

    In conventional speculative decoding, the draft model maintains its own key-value cache, or KV cache. For long contexts, this can introduce substantial additional GPU memory use and cache-management complexity.

    The central idea in this design is to let draft layers reuse state already maintained by the target model.

    KV Share

    Each draft-model layer directly shares the cached keys and values of the corresponding sparse-attention layer in the target model. The drafter therefore does not need to compute and store its own attention keys and values.

    Index Share

    The target model’s sparse-attention indexer selects important token positions—up to approximately 2,048. The draft model reuses those same position indices instead of repeating the selection process.

    Together, these mechanisms provide three engineering benefits:

    • Bounded attention cost per draft token. Each draft token attends to at most roughly 2K keys, so its attention computation does not grow with total context length. Whether the context is 8K or 128K tokens, the drafter’s per-step cost remains approximately constant. This is a key reason the design can sustain strong speedups on long-context workloads.

    • No separate draft KV cache. Sharing the target model’s cache removes the memory footprint and management overhead of an independent draft-model KV cache. This is particularly useful for inference instances with limited GPU memory.

    • Compatibility with prefill–decode disaggregation. In deployments that separate prefill and decode, the draft model does not participate in prefill. Only an additional final-layer hidden state needs to be transferred from the prefill node to the decode node, adding very little inter-node communication overhead.

    4. Reported Results: Strong Gains for Long Contexts and Agentic Workloads

    According to the reported public evaluations, under the same training conditions, this draft model generally achieves longer accepted token sequences and higher speedups than comparable open-source approaches across multiple public benchmarks for the target model.

    The reported advantages are more pronounced in long-context and agentic workloads:

    • Average speedups are approximately 12% higher for long-context workloads and 30% higher for agentic workloads than the compared approaches.
    • The highest reported speedup on an individual benchmark reaches 4.2×.
    • In real-task comparisons, accepted sequence length is approximately 10% higher.

    These workloads are a natural fit for the design. Agentic tasks often contain repeated or structured tokens, including tool-call formats, code fragments, and recurring response patterns. Such sequences are easier for the draft model to predict, allowing more proposed tokens to be accepted.

    At the same time, KV sharing prevents the drafter’s cost from expanding with context length. Higher acceptance lengths and bounded drafting costs reinforce each other, producing larger gains in these scenarios.

    5. Practical Deployment Recommendations

    Teams considering this approach should focus on the following checks:

    1. Start with long-context, repetitive workloads. Run a staged rollout in applications where these characteristics are common, since the benefits are likely to be most direct.

    2. Check inference-framework support. Confirm that the serving framework supports speculative verification and fallback behavior. Mainstream inference engines commonly provide interfaces for these mechanisms.

    3. Measure hidden-state transfer overhead. In prefill–decode disaggregated deployments, verify the serialization overhead associated with transferring the required hidden state.

    4. Monitor acceptance length. Track how many draft tokens are accepted per verification round to assess alignment between the drafter and production traffic. If necessary, use the released training code for domain-specific fine-tuning.

    Conclusion

    Reusing a target model’s sparse-attention KV cache and selected position indices gives a draft model a low-overhead path to faster inference. It avoids a separate draft KV cache and keeps per-token attention computation approximately constant as context length grows.

    The reported results suggest that this approach can deliver consistent, multiple-fold acceleration, with particularly strong benefits for long-context and agentic workloads. For the open-source ecosystem, it offers an inference-acceleration design that combines distribution-preserving generation with practical deployment efficiency.