Spancast paper proposes code-shaped draft architecture for faster speculative decoding
A new arXiv paper introduces Spancast, a non-Transformer draft model built for code, which its authors say improves acceptance length and latency in speculative decoding.
In plain words
Large language models often write code one token at a time, which is slow. Speculative decoding speeds this up: a small draft model guesses several tokens, and the main model checks them in parallel. The paper's authors built a draft model designed around how code is structured, and report it drafts longer accepted spans and cuts delay.
What was announced
The authors argue that code differs from ordinary prose because it is mostly predictable syntax and repeated identifiers, interrupted by occasional branching points, yet current speculative decoding methods do not exploit this structure. They describe learned drafters as stateless Transformer blocks built for single-step text prediction, and note that retrieval-based approaches only copy exact substrings. Spancast is their answer: a draft architecture that drops Transformer layers entirely. It uses a Grouped State Channel to carry state across tokens and Null-Key Attention to skip the prefix with a zero-value key, while its Masked Parallel Tree Decoding drafts spans in parallel and expands likely branches in a constant number of steps.
In the reported results, Spancast beats existing learned and retrieval baselines on average acceptance length, meaning more drafted tokens survive verification per step. The authors also report lower inter-token latency across the target models they tested, and say the drafter transfers zero-shot to target models it was not tuned for. These figures come only from the paper's abstract; the full experiments have not been independently reviewed here.
What it does not show
- The source is only the paper's abstract, so the method details and results are not independently verified and the full paper was not reviewed.
- No specific benchmark numbers, target model names, or comparison figures are given in the supplied passages.
For security and IT teams
- Scope
- The claim that Spancast lowers latency and transfers to unseen target models rests on the authors' own abstract, not on external testing.
Sources
Source-support review completed 4 Dec 2026. This story was drafted with AI assistance and checked against retained source passages. Automated checking is not independent verification.
Coverage: arXiv: abstract.
Updates and corrections
No corrections so far.
First published 4 Dec 2026
New to the subject? AI from the Ground Up starts from the beginning.