TL;DR
Speculative decoding speeds up LLM inference, but traditional draft models are bottlenecked by generating tokens one-by-one. DART solves this by predicting multiple future tokens in parallel in a single forward pass, combined with an N-gram tree pruning method to keep sequences coherent. This achieves up to a 3.44× end-to-end wall-clock speedup, outperforming state-of-the-art methods like EAGLE3 by 30% on average.
What Problem Does This Paper Address?
Speculative decoding is a powerful strategy to accelerate Large Language Model (LLM) inference. It works by using a small, lightweight "draft" model to quickly guess a sequence of future tokens, which a large "target" model then verifies in a single parallel pass. If the guesses are accurate, the system generates multiple tokens for the computational cost of one target model invocation.
However, a new bottleneck has emerged: modern, high-accuracy draft models (like EAGLE3) generate their guesses autoregressively (one token at a time). This sequential dependency means the drafting stage itself can consume 20% to 40% of the total inference time. The authors of DART set out to eliminate this sequential overhead by designing a truly parallel drafting framework that doesn't sacrifice verification accuracy.
Methods
DART introduces a target-coupled parallel drafting pipeline that completely removes autoregressive rollouts from the drafting phase.
The core components of DART include:
- Lightweight Parallel Drafting: DART reuses the intermediate hidden states of the target model. By appending a fixed-length suffix of
[MASK]tokens to the prefix, a single lightweight Transformer decoder layer predicts logits for all future positions simultaneously. - Shifted Logits Prediction: Unlike standard masked language models, DART designs each position to predict the next token rather than the current one. This significantly boosts accuracy for the critical first draft token.
- Prefix-Shared Masked Training: To train efficiently, DART trains multiple prefix positions jointly within a single forward pass using a specialized sparse attention mask, optimized via Flex-Attention to minimize memory usage.
- Annealed KL Divergence Loss: The training objective applies an exponentially decaying weight ($\gamma = 0.6$) to longer-horizon predictions, prioritizing early-token accuracy where errors are most costly.
- Continuity-Aware Tree Pruning: Predicting tokens in parallel creates an exponentially large combinatorial search space. DART uses a lightweight, classical 3-gram model to score and prune the draft token tree, filtering out semantically implausible token combinations before sending them to the target model.
Datasets
- Training: Approximately 280K examples combined from the open-source ShareGPT and UltraChat datasets.
- Evaluation: DART was evaluated across a diverse suite of text and code benchmarks, including MT-Bench (multi-turn conversation), HumanEval, MBPP, LiveCodeBench, CodeAlpaca (code generation), Alpaca (instruction following), and Math500 (mathematical reasoning).
Key Insights and Ideas
- Drafting Latency Trumps Raw Acceptance Length: Traditional speculative decoding research focuses almost exclusively on maximizing the average acceptance length ($\tau$). DART demonstrates that drastically reducing drafting latency—even if it leads to a minor drop in $\tau$—yields much higher end-to-end throughput.
- The Power of Hybrid Pruning: Independent parallel token predictions often generate locally nonsensical sequences. Merging neural network confidence scores with a simple, classical N-gram continuity score provides an incredibly fast and effective filter for high-quality draft trees.
- Front-Loading Accuracy: Because an error in an early draft token immediately terminates the target model's verification chain, prioritizing the accuracy of the first few tokens via an annealed loss function is vital for parallel drafters.
Key Results
DART achieves substantial end-to-end throughput improvements across multiple model scales (tested on Qwen3 models from 1.7B to 32B and LLaMA2-Chat-7B):
- Wall-Clock Speedups: DART delivers a 2.03× to 3.44× speedup over standard autoregressive decoding, outperforming EAGLE3 by an average of 30%.
- Code Workload Gains: DART excels on structured tasks, outperforming EAGLE3 by 65% on the CodeAlpaca benchmark when accelerating Qwen3-14B.
- Latency Reduction: For Qwen3-14B, DART slashes the drafting forward latency to just 1.5ms—a 6.8× speedup over EAGLE3 (10.2ms) and a 53.3× speedup over standard speculative sampling (SPS).
Limitations and Future Work
- Heuristic Hyperparameters: The tree pruning algorithm relies on several empirically chosen hyperparameters (such as beam width, tree size, and candidate thresholds). Developing adaptive pruning policies remains an open area for research.
- Text-Only Evaluation: The framework has only been validated on text-based language models. Its efficacy on multimodal models, vision-language-action models, or omni-model systems is still unexplored.
- Complex Workflows: The authors note that DART's behavior in extremely long-context generation and complex agentic workflows warrants further investigation.
Summary updated