Skip to content
FutureMLS-LabPublic

Repository files navigation

Arbora logo: a chibi mascot touching a glowing tree with a star wand

Arbora: Candidate-Aware Mixture of Speculators for Block Diffusion Drafters

Paper on arXiv  Method  Results  Get started  Models and weights  Public benchmarks on Hugging Face  Citation  MIT and Apache-2.0 licenses 

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.

At a glance: over DFlash2, averaged over four targets on public benchmarks, Arbora raises accept length by 25.5% and throughput by 21.6% at T=0 and by 27.6% and 23.9% at T=1; on Qwen3-8B it runs 4.6 times as fast as the target alone (public benchmarks, T=0); verification is exact, so it is lossless.


Overview

One decoding step on a toy example, as an animation in five stages. One draft pass: the frozen block diffusion drafter proposes several candidate tokens at every position of the block. DFlash2: it keeps only the best next token at each position, so the target verifies one path and rejects a token although the correct token is a candidate. Path scorer: it scores each candidate given the token before it (
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 (the method figure of the paper). Center, one decoding step: (1) drafting, the frozen drafter makes E drafts in one pass from the target's hidden states; (2) candidates, the top K per draft, with candidates added by the Arbora experts; (3) scored paths, the best paths of each draft; (4) one tree, the N-1 best paths of all drafts; (5) verified, the accepted path plus the bonus token. Right: the path scorer multiplies pair scores into path scores and is trained with the tree loss, which brings the target's path into the tree; the merge adds the scores of a path that several drafts list; the target verifies the tree with tree attention. Left: in every drafter layer each draft adds its own Arbora expert to the frozen MLP, and only the expert with the most accepted tokens is trained. Bottom: online training on a new domain, where a trainer trains a new Arbora expert and the path scorer on completed requests and updates the server asynchronously.
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.


Results

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.

Mean gain of Arbora over DFlash2 on the public benchmarks (five benchmarks, MT-Bench in two turns), one card per target, for accept length and throughput at T=0 and T=1. Qwen3-8B: AL +22.5% and throughput +17.0% at T=0, +26.1% and +20.7% at T=1. Qwen3.8-27B: +26.2% and +23.5% at T=0, +27.8% and +25.2% at T=1. GLM-5.3-Flash: +24.0% and +22.6% at T=0, +25.7% and +24.7% at T=1. MiniMax-M3.1-Flash: +29.3% and +23.3% at T=0, +30.9% and +25.1% at T=1.
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)

Public benchmarks (HumanEval, MBPP, MT-Bench turns 1 and 2, GSM8K, MATH-500): Arbora's throughput and AL gain over DFlash2 in each benchmark at T=0 and T=1, and the measured AL and tok/s of DFlash2 and Arbora at T=0 and T=1, for Qwen3-8B, Qwen3.8-27B, GLM-5.3-Flash and MiniMax-M3.1-Flash. The same numbers are in docs/public-benchmarks.md.

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

AL against the number N of tokens verified per step (16, 32, 64, 128), on the held-out set, T=0. Qwen3-8B: at N=128, Arbora 8.11, Arbora without experts 7.73, DFlash2 4.76 at every N; Arbora's AL gain over DFlash2 rises from +26% at N=16 to +70% at N=128. Qwen3.8-27B: at N=128, Arbora 8.36, Arbora without experts 7.82, DFlash2 5.03 at every N; Arbora's AL gain over DFlash2 rises from +27% at N=16 to +66% at N=128.

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

Learning a new domain online on Qwen3-8B over a stream of 20,000 software-engineering requests. DFlash2, whole drafter trained online: AL on the stream from 5.19 to 6.41; AL change on the five domains of the held-out set after the stream -4.4%, code -6.1%; AL on 500 held-out SWE-bench Verified turns 4.50 before and 5.99 after the stream. Arbora, new Arbora expert trained: AL on the stream from 6.31 to 6.76; AL change on the five domains of the held-out set after the stream +0.1%, math -1.1%; AL on 500 held-out SWE-bench Verified turns 5.83 before and 6.54 after the stream. Arbora, new expert and path scorer trained: AL on the stream from 6.37 to 7.11; AL change on the five domains of the held-out set after the stream -1.6%, math -2.8%; AL on 500 held-out SWE-bench Verified turns 5.82 before and 6.84 after the stream.

The paper also reports each part on its own and the time of each step.


Get started

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-scorer

3. 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
done

4. 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.sh

CPU 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

Weights and data

  • 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.

Citation

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}
}

License

arbora/ is under the Apache License 2.0 (arbora/LICENSE), except for the third-party components listed in arbora/NOTICE:

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.

Releases

Packages

Contributors

Languages