A DeepONet Drafter for Speculative Decoding: Block-Parallel Drafting from the Target's Own Hidden States

Speculative decoding accelerates autoregressive generation by letting a cheap \emph{drafter} propose several tokens that the large \emph{target} model verifies in a single forward pass. The drafter must be nearly free to run and yet frequently right. We present a drafter that predicts a block of $K$ future tokens in one small forward pass by transferring the branch--trunk factorization of DeepONet operator networks to language-model drafting: a \emph{branch} network encodes the context once, a \emph{trunk} network encodes the draft offset $j\in\{1,\dots,K\}$, and the two are combined by an element-wise product. The context consists of hidden states taken from a few of the target's own layers at the last $W$ positions together with the embedding of the last emitted token, and the output is scored by the target's frozen language-model head, so the drafter owns no vocabulary matrix. A variant with one shared operator core and a thin adapter per target allows a single drafter file to serve a model family. At inference time a confidence schedule selects how many drafted tokens are sent for verification, an acceptance-rate back-off suspends drafting when it does not pay, and one CUDA graph per draft keeps the cost small. Because the drafter reads only a fixed window of hidden states and has no attention over the context and no key--value cache, its cost per draft is \emph{$O(1)$ in the context length}: the draft step costs the same however long the context is. Since the target verifies every drafted token, the output distribution is exactly the target's. On 30 recorded coding-agent requests decoded greedily on a single DGX Spark, a 142\,MB preview checkpoint serving three Qwen targets, combined with an n-gram drafter, yields speed-ups of $1.34\times$, $1.75\times$ and $1.38\times$ over plain decoding on Qwen3.5-0.8B, Qwen3.5-9B and Qwen3.8-27B. We describe the architecture and the inference procedure; the training of the network is outside the scope of this paper.

Authors

Publication Details

Journal
Zenodo (CERN European Organization for Nuclear Research)
Published
2026-12-03
DOI
https://doi.org/10.5281/zenodo.24787862
Primary Topic
Natural Language Processing Techniques
Type
preprint
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
NOV
preprint

A DeepONet Drafter for Speculative Decoding: Block-Parallel Drafting from the Target's Own Hidden States

C.N. Sam
Zenodo (CERN European Organization for Nuclear Research)
Natural Language Processing Techniques
preprint

A DeepONet Drafter for Speculative Decoding: Block-Parallel Drafting from the Target's Own Hidden States

C.N. Sam
preprint en

Abstract

Speculative decoding accelerates autoregressive generation by letting a cheap \emph{drafter} propose several tokens that the large \emph{target} model verifies in a single forward pass. The drafter must be nearly free to run and yet frequently right. We present a drafter that predicts a block of $K$ future tokens in one small forward pass by transferring the branch--trunk factorization of DeepONet operator networks to language-model drafting: a \emph{branch} network encodes the context once, a \emph{trunk} network encodes the draft offset $j\in\{1,\dots,K\}$, and the two are combined by an element-wise product. The context consists of hidden states taken from a few of the target's own layers at the last $W$ positions together with the embedding of the last emitted token, and the output is scored by the target's frozen language-model head, so the drafter owns no vocabulary matrix. A variant with one shared operator core and a thin adapter per target allows a single drafter file to serve a model family. At inference time a confidence schedule selects how many drafted tokens are sent for verification, an acceptance-rate back-off suspends drafting when it does not pay, and one CUDA graph per draft keeps the cost small. Because the drafter reads only a fixed window of hidden states and has no attention over the context and no key--value cache, its cost per draft is \emph{$O(1)$ in the context length}: the draft step costs the same however long the context is. Since the target verifies every drafted token, the output distribution is exactly the target's. On 30 recorded coding-agent requests decoded greedily on a single DGX Spark, a 142\,MB preview checkpoint serving three Qwen targets, combined with an n-gram drafter, yields speed-ups of $1.34\times$, $1.75\times$ and $1.38\times$ over plain decoding on Qwen3.5-0.8B, Qwen3.5-9B and Qwen3.8-27B. We describe the architecture and the inference procedure; the training of the network is outside the scope of this paper.

Zenodo (CERN European Organization for Nuclear Research)
Natural Language Processing Techniques
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.

Laika access coming soon