Native Draft Architectures for Speculative Decoding in the Coding Era
Paper โข 2612.05048 โข Published โข 1
Spancast is a native non-Transformer draft architecture for speculative decoding. Operating over plain text with an independent draft vocabulary, it accelerates 17 target LLMs across 15 model families (3Bโ32B) without target-specific fine-tuning.
| File | Description |
|---|---|
step_72000.pt |
Flagship Spancast drafter weights (98.6M parameters, 6 prefix blocks + 2 shared decoder cells) |
drafter_tokenizer.json |
Independent byte-level BPE draft tokenizer (32,768 vocabulary) |
config.yaml |
Model architecture configuration matching config/drafter/spancast_98m.yaml |
assets/ |
Paper overview, architecture, mechanistic, and system analysis figures |
18-benchmark mean acceptance length ($\tau$), inter-token latency (ITL), and wall-clock speedup under greedy decoding (bfloat16, batch size 1, max length 8,192) on an NVIDIA H100 GPU:
| Target Model | Family | AR ITL (ms/tok) | Spancast Mean $\tau$ | Spancast ITL (ms/tok) | Wall-Clock Speedup |
|---|---|---|---|---|---|
| SmolLM3-3B | HuggingFace SmolLM | 3.36 | 8.17 | 1.08 | 3.11ร |
| Phi-4-mini | Microsoft Phi | 3.80 | 7.81 | 1.30 | 2.92ร |
| Falcon3-7B | TII Falcon | 5.79 | 8.30 | 1.50 | 3.86ร |
| OLMo-2-7B | AI2 OLMo | 6.03 | 6.79 | 1.80 | 3.35ร |
| EXAONE-3.5-7.8B | LG EXAONE | 6.26 | 6.59 | 1.79 | 3.50ร |
| Qwen3-8B | Alibaba Qwen3 | 6.61 | 6.98 | 1.90 | 3.48ร |
| Llama-3.1-8B | Meta Llama | 6.16 | 7.49 | 1.64 | 3.76ร |
| OpenCoder-8B | OpenCoder | 6.02 | 8.15 | 1.52 | 3.96ร |
| Granite-3.3-8B | IBM Granite | 6.94 | 8.12 | 1.88 | 3.69ร |
| InternLM3-8B | Shanghai AI Lab | 7.28 | 6.20 | 2.17 | 3.35ร |
| Yi-1.5-9B | 01.AI Yi | 7.62 | 9.17 | 1.75 | 4.35ร |
| Qwen3-14B | Alibaba Qwen3 | 11.03 | 7.17 | 2.93 | 3.76ร |
| StarCoder2-15B | BigCode StarCoder2 | 12.11 | 9.02 | 2.41 | 5.02ร |
| Gemma-3-27B | Google Gemma | 21.06 | 10.31 | 4.35 | 4.84ร |
| Muse-Glimmer-30B | Meta Muse | 21.16 | 7.61 | 5.80 | 3.65ร |
| Qwen2.5-32B | Alibaba Qwen2.5 | 24.26 | 6.88 | 5.68 | 4.27ร |
| GLM-4-32B | Zhipu GLM | 24.14 | 7.83 | 5.33 | 4.53ร |
Clone the inference repository and download the checkpoint and tokenizer from Hugging Face:
git clone https://github.com/Hoyant-Su/Spancast.git
cd Spancast
pip install -r requirements.txt
huggingface-cli download Hoyant-Su/Spancast \
step_72000.pt drafter_tokenizer.json \
--local-dir checkpoints/spancast_98m
bash run_inference.sh \
--model qwen3_8b \
--benchmark canitedit \
--checkpoint checkpoints/spancast_98m/step_72000.pt \
--tokenizer checkpoints/spancast_98m/drafter_tokenizer.json
See the GitHub repository for the full evaluation workflow across all 17 target models and 18 benchmarks.
@misc{su2026nativedraftarchitecturesspeculative,
title={Native Draft Architectures for Speculative Decoding in the Coding Era},
author={Haoyang Su and Weiran Huang},
year={2026},
eprint={2612.05048},
archivePrefix={arXiv},
primaryClass={cs.LG},
url={https://arxiv.org/abs/2612.05048},
}