Arbora makes better use of the candidate tokens that a trained, frozen block diffusion drafter proposes, so the target model accepts more draft tokens per step in speculative decoding, losslessly.
One decoding step on a toy example; tokens, scores and counts are illustrative.
A block diffusion drafter such as DFlash2 proposes several candidate tokens at every position of a block, but the target verifies only one path through them. When the target rejects a draft token, the token it wanted is usually among the candidates but not on this path. Arbora keeps the trained drafter frozen and trains two parts that make better use of these candidates.
|
Path scorer Ranks whole paths instead of keeping only the best next token. The target verifies a tree of the highest-scoring paths in one forward pass. |
Arbora experts Small MLPs beside the frozen MLP in every drafter layer. Each expert gives its own draft, and all drafts run in one batched pass. Together they form a mixture of speculators. |
Adding one Arbora expert also lets Arbora learn a new domain online. Verification is exact, so Arbora is lossless. Method in detail.
Overview of Arbora: one decoding step from drafting to the verified output (center), the path scorer, the
merge of the drafts and tree verification (right), the Arbora experts and their training (left), and online training
on a new domain (bottom). E: number of drafts, one per Arbora expert; K: candidates per position in each draft; N: tokens
verified per step.
Public benchmarks: HumanEval, MBPP, GSM8K, MATH-500 and both turns of MT-Bench, at temperature T = 0 and T = 1. Accept length (AL) is the number of tokens each decoding step produces.
Served with the SGLang inference engine, with the targets' thinking (reasoning) mode enabled.
Per benchmark
AL and throughput (tok/s) of each benchmark (as a table)
Speedup over the target alone
throughput relative to the target model decoding without a drafter; public benchmarks,
T = 0, mean over the five benchmarks above with MT-Bench in two turns
| Qwen3-8B | Qwen3.8-27B | GLM-5.3-Flash | MiniMax-M3.1-Flash | |
|---|---|---|---|---|
| DFlash2 | 4.0× | 3.4× | 2.7× | 2.3× |
| Arbora | 4.6× | 4.2× | 3.2× | 2.8× |
The gain grows with the number N of tokens verified per step
held-out set (500 prompts from code, math, factual questions, creative writing and chat), T = 0; DFlash2 verifies one path, so its AL does not change with N
High load
throughput (tok/s) on the held-out set, T = 0; under high load, the number of Arbora experts (in
parentheses) can be reduced according to the hardware and the system load
| Concurrent requests | DFlash2 | Arbora |
|---|---|---|
| Qwen3-8B | ||
| 1 | 514.2 | 609.2 (8) |
| 4 | 1,740.7 | 2,004.5 (0) |
| 8 | 2,974.8 | 3,387.3 (0) |
| 16 | 4,443.9 | 5,062.3 (0) |
| 32 | 6,074.7 | 6,970.4 (0) |
| Qwen3.8-27B | ||
| 1 | 269.0 | 329.3 (8) |
| 4 | 804.8 | 938.6 (0) |
| 8 | 1,224.5 | 1,391.2 (0) |
| 16 | 1,863.2 | 2,131.4 (0) |
Learning a new domain online
Qwen3-8B, a stream of 20,000 software-engineering requests; Arbora keeps its drafter and its eight
Arbora experts frozen, and DFlash2 updates its whole drafter
The paper also reports each part on its own and the time of each step.
The code is the current Aurora training framework: it combines the training code of the open-source
TorchSpec with Arbora, which is in arbora/. One
framework trains the DFlash2 drafter, the path scorer and the Arbora experts, and serves them on SGLang. Every command
runs from the repository root, on one node of eight H100 80GB GPUs.
1. Install
Python environments with exact versions (arbora/requirements-*.txt) and the patched SGLang
serving stacks; a driver for CUDA 13 and a CUDA toolkit on the host (details)
arbora/setup.sh # envs/{aurora,vllm,sglang-main,sglang-glm}, build/serving/*2. Train the DFlash2 drafter, the path scorer and the Arbora experts
Qwen3-8B; the training data
are the target's own answers (data); arbora/configs/qwen3-8b-*.yaml and
arbora/configs/targets/qwen3-8b.sh hold the settings
# training files from the data step
export TARGET_MODEL=<Qwen3-8B dir> TRAIN_DATA=prepared/train.jsonl EVAL_DATA=eval.jsonl
T=qwen3-8b; R=runs/$T
# DFlash2 drafter, from a DFlash drafter such as z-lab/Qwen3-8B-DFlash-b16 (downloaded)
DRAFTER=<DFlash drafter dir> arbora/run.sh $T dflash2 $R/dflash2
export DRAFTER=$R/dflash2/checkpoints/iter_$(printf %07d \
"$(cat $R/dflash2/checkpoints/latest_checkpointed_iteration.txt)")/hf
arbora/run.sh $T path-scorer $R/path-scorer # the drafter frozen, its selector trained
arbora/run.sh $T experts $R/experts # eight Arbora experts on the frozen drafter
PATH_SCORER_RUN=$R/path-scorer EXPERTS_RUN=$R/experts \
arbora/run.sh $T serving-files $R/serve # drafter-path-scorer/, experts-path-scorer/The paper first trains the DFlash drafter, the earlier block diffusion drafter that DFlash2 improves on, for five epochs (details).
Or download the trained files of the paper instead of running step 2 (all trained weights):
T=qwen3-8b; R=runs/$T; S=$R/serve; H=envs/aurora/bin/hf
for d in dflash2-drafter path-scorer experts; do
$H download FutureMLS-Lab/Arbora --include "$T/$d/*" --local-dir $R/hf
done
mkdir -p $S
mv $R/hf/$T/dflash2-drafter $R/dflash2-drafter
mv $R/hf/$T/experts $S/experts-path-scorer
mv $R/hf/$T/path-scorer/$T-path-scorer.safetensors $S/path-scorer.safetensors
export DRAFTER=$R/dflash2-drafter TARGET_MODEL=<Qwen3-8B dir>
envs/aurora/bin/python arbora/path_scorer/build_scorer_export.py $DRAFTER \
$S/path-scorer.safetensors $S/drafter-path-scorer3. Serve and measure
one server per method; AL and tok/s with one request at a time, here on
HumanEval
P=arbora/data/public/built; S=$R/serve
envs/aurora/bin/hf download FutureMLS-Lab/arbora-public-benchmarks humaneval.jsonl \
--repo-type dataset --local-dir $P
for row in target dflash2 arbora-no-experts arbora; do
case $row in
dflash2) D=$DRAFTER ;;
arbora-no-experts) D=$S/drafter-path-scorer ;;
arbora) D=$S/experts-path-scorer ;;
*) D= ;;
esac
DRAFT=$D arbora/serving/serve.sh $T $row & pid=$!
until curl -sf localhost:31000/health >/dev/null; do sleep 10; done
envs/aurora/bin/python arbora/serving/check_al.py $P/humaneval.jsonl \
--tokenizer $TARGET_MODEL --max-new-tokens 512 --passes 2 --out $S/$row.jsonl
kill $pid; wait $pid
done4. Learn a new domain online
with the files of step 2: one GPU serves, two GPUs train a new Arbora
expert and the path scorer, and the server loads the new weights every 120 s
(details)
envs/sglang-main/bin/python arbora/serving/build_serving.py d2-chain-online d2-arbora-experts-online
envs/aurora/bin/python arbora/path_scorer/extract_selector.py $DRAFTER $S/selector.safetensors
GPU=0 TRAIN_GPUS=1,2 MODE=arbora OUT=$R/online STREAM=<stream.jsonl> TARGET=$TARGET_MODEL \
SELECTOR=$S/selector.safetensors EXPERTS=$S/experts-path-scorer \
PATH_SCORER=$S/path-scorer.safetensors \
TRAIN_ARGS="--lr-draft 1e-3 --lr-sel 1e-4 --seqs 4 --max-uses 3 --score 0" \
arbora/online/run_live.shCPU unit tests of the Arbora parts: envs/aurora/bin/python -m unittest tests.test_arbora_experts tests.test_arbora_dflash2 tests.test_arbora_dflash2_experts tests.test_dflash_arbora.
Reproducing the paper
| Part of the paper | Instructions |
|---|---|
| Public benchmarks at T = 0 and T = 1, speedups over the target alone | measurements |
| Ablation, tokens verified per step, high load, time per step | measurements |
| Training the DFlash2 drafter, the path scorer and the Arbora experts | training |
| Learning a new domain online | online learning |
| Data: the target's answers, training files, public benchmarks | data, public benchmarks |
docs/reproducing.md gives the commands of the paper's measurement scripts in
arbora/serving/ and the measurement protocol.
Repository layout
| Directory | What it contains |
|---|---|
torchspec/ |
The training code from the open-source TorchSpec, with our changes for the DFlash2 drafter, the path scorer's tree loss and the Arbora experts (changes) |
arbora/ |
Launchers, per-target settings, serving, online learning |
arbora/data/ |
Scripts that generate the target's answers, the training files, the public benchmark sets and the online-learning stream |
arbora/serving/ |
Patches to SGLang, the script that builds the patched serving stacks, a server launcher and a quick measurement client, and the paper's measurement scripts |
arbora/online/ |
Online trainer, request-stream driver, replay without a server |
tests/ |
Unit tests of the Arbora parts |
docs/ |
Method, setup, models and data, reproduction map, public benchmarks |
- Code: the code and configurations to train, serve and evaluate DFlash2 and Arbora as in the paper.
- Trained weights: the drafters, path scorers and Arbora experts of Qwen3-8B and Qwen3.8-27B, the path scorer and
Arbora experts of MiniMax-M3.1-Flash, and the online-learning runs, on Hugging Face in
FutureMLS-Lab/Arbora(list). Weights derived from the GLM-5.3-Flash DFlash2 drafter (CC BY-NC-ND 4.0) are not distributed. - Models: the targets and the released drafters, with the revisions the paper used (list).
- Evaluation data: the public-benchmark files the paper used, on Hugging Face.
Yongzhe Wang1,2,†, Fengxiang Bie1,2,†, Yiyang Guo2,3, Ziyan Chen1, Cheng Luo, Zunhai Su4,
Xiaoxia Wu5, Tianyi Zhang5, Shuaiwen Leon Song1, Zhongzhu Zhou2,†
1University of Sydney · 2FutureMLS (Future Machine Learning & Systems Lab) · 3University of California, Santa Cruz
4Tsinghua University · 5Together AI
†Core contributors. Correspondence to zzz879978@outlook.com
Paper: arXiv:2611.38735
@misc{wang2026arbora,
title = {Arbora: Candidate-Aware Mixture of Speculators for Block Diffusion Drafters},
author = {Wang, Yongzhe and Bie, Fengxiang and Guo, Yiyang and Chen, Ziyan and Luo, Cheng and
Su, Zunhai and Wu, Xiaoxia and Zhang, Tianyi and Song, Shuaiwen Leon and Zhou, Zhongzhu},
year = {2026},
eprint = {2611.38735},
archivePrefix = {arXiv},
primaryClass = {cs.CL},
url = {https://arxiv.org/abs/2611.38735}
}arbora/ is under the Apache License 2.0 (arbora/LICENSE), except for the third-party components
listed in arbora/NOTICE:
arbora/serving/patches/modifies SGLang (Apache-2.0).- The code outside
arbora/is derived from TorchSpec, with our changes, and is under the MIT License (LICENSE,THIRDPARTYNOTICES).
Parts of the code of both also contain changes from the Aurora framework (MIT License);
arbora/LICENSE-aurora holds the license texts of TorchSpec and Aurora. Target models and drafters keep their own licenses.