Trees from Marginals: Autoregressive drafting with factorized priors
summary
The gist
The gist The authors introduce Weaver, a lightweight autoregressive adapter that constructs proposal trees from the top-K prediction of a factorized drafter to restore conditional dependencies while
In short
The authors introduced Weaver, a lightweight adapter that builds proposal trees from top-K predictions of a factorized drafter to restore conditional dependencies. This hybrid approach achieves a 4.37x speedup over autoregressive decoding by using the factorized model's marginals as priors while avoiding expensive full-vocabulary projections.
Key concepts
- Factorized Drafter
- This is a pre-trained model that predicts future token probabilities in parallel, but it assumes the predictions for different tokens are independent of each other. It provides fast, parallel guidance for generating sequences.
- Weaver
- A small autoregressive transformer that learns to predict the residual error between the factorized drafter's marginal predictions and the actual verifier output. It constructs proposal trees from top-K marginals to restore necessary token dependencies without using a full vocabulary projection.
- Tree Verification
- A fast method to check if a proposed sequence of tokens (a tree) is valid in one pass, even for models with Gated Delta Net layers. It uses a dual chunk linear recurrence solved via triangular solves, avoiding the need for recurrent state rollbacks.
Terminology used across episodes
This episode discusses
- Trees from Marginals: Autoregressive drafting with factorized priors · Paper Radio
- Attention Is All You Need
- Asynchronous RLHF: Faster and More Efficient Off-Policy RL for Language Models
- AReaL: A Large-Scale Asynchronous Reinforcement Learning System for Language Reasoning
- PARD: Accelerating LLM Inference with Low-Cost PARallel Draft Model Adaptation
- Introspective Diffusion Language Models
- PARD-2: Target-Aligned Parallel Draft Model for Dual-Mode Speculative Decoding
- DFlash: Block Diffusion for Flash Speculative Decoding
- Traversal Verification for Speculative Tree Decoding
- Accelerating Large Language Model Decoding with Speculative Sampling
- Medusa: Simple LLM Inference Acceleration Framework with Multiple Decoding Heads
- EAGLE: Speculative Sampling Requires Rethinking Feature Uncertainty
- PLD+: Accelerating LLM inference by leveraging Language Model Artifacts
- SAM Decoding: Speculative Decoding via Suffix Automaton
- EAGLE-3: Scaling up Inference Acceleration of Large Language Models via Training-Time Test
- Block Verification Accelerates Speculative Decoding
- Sequoia: Scalable, Robust, and Hardware-aware Speculative Decoding
- SpecTr: Fast Speculative Decoding via Optimal Transport
- DySpec: Faster Speculative Decoding with Dynamic Token Tree Structure
- STree: Speculative Tree Decoding for Hybrid State-Space Models
- Gated Delta Networks: Improving Mamba2 with Delta Rule
The paper
Trees from Marginals: Autoregressive drafting with factorized priors · Read on arXiv
Yuma Oda, Ryan Mathieu, Roman Knyazhitskiy, Artur Chakhvadze
Speculative decoding greatly increases the interactivity of autoregressive language models by trading off computation for extra tokens generated in a single forward pass. Factorized draft models are especially efficient because they predict future-token marginals in parallel, but their independence assumption causes acceptance rates to degrade sharply as the speculative budget grows. We analyze this limitation and introduce Weaver, a lightweight autoregressive adapter that constructs proposal trees from the top-K marginals of a factorized drafter. Weaver restores conditional dependencies between proposed tokens while avoiding a full-vocabulary projection. To support fast verification for models with Gated Delta Net layers, we derive a rollback-free tree-verification algorithm and implement optimized CUDA kernels in SGLang. By combining these model and systems contributions we achieve a 4.08-fold speedup over autoregressive decoding, and outperform a highly optimized DFlash baseline by 16.3%.
Transcript
Introduction to the show: ident: AI Radio. Generated commentary on the latest Artificial Intelligence papers.
Tom: We're looking at the paper: "Trees from Marginals".
Jane: Here's the gist of the paper. The gist The authors introduce Weaver, a lightweight autoregressive adapter that constructs proposal trees from the top-K prediction of a factorized drafter to restore conditional dependencies while avoiding full-vocabulary projection costs.
Tom: This hybrid architecture achieves a 4.37× speedup over autoregressive decoding and outperforms optimized DFlash baselines by 24.7% on a single B200 in SGLang using the Qwen3.6-27B model in bf16 precision The dominant neural architecture powering large language models is an autoregressive transformer
1: .
Jane: It allows for parallel likelihood evaluation and training, but generation remains sequential, since the generated sequence has to be sampled autoregressively one token per step When generating a single sequence, this latency is dominated by the memory traffic due to streaming weights from DRAM, which makes generation memorybound This is undesirable because of compute underutilization and poor energy efficiency per token, as DRAM accesses consume orders of magnitude more energy than arithmetic operations
2: .
Tom: In order to increase the ratio of computations to memory traffic, server LLM inference implementations make use of batching – decoding multiple sequences in parallel Batching increases the cost of computation while keeping the weight traffic constant Unfortunately, it is not a free lunch, as larger batch sizes result in increased activation and KV cache traffic, and the latter quickly becomes the bottleneck for long sequences Additionally, increased batch size reduces interactivity1 DFlash-TfM Architecture In this work we introduce DFlash-TfM, a hybrid draft model architecture which achieves excellent scalability properties by combining the benefits of factorized and autoregressive drafters We use the top-K marginal predictions from a pre-trained factorized DFlash
9: model as a prior for a small autoregressive drafter which we call Weaver We constrain the candidate vocabulary at each speculative position to the top-K marginal tokens to avoid the expensive multiplications by the output projection matrix, keeping the autoregressive decoding overhead to the minimum By using Weaver1 to construct trees of proposals and verifying them using the traversal verification algorithm
10: , we increase the mean acceptance length by 77% relative to the chain DFlash baseline, and by 32% relative to DDTree
11: with the same tree size Weaver Architecture Weaver is a lightweight autoregressive transformer that learns to predict the residual between the marginal distributions predicted by a factorized drafter and the verifier output distribution Operating similarly to EAGLE
23: , it takes the intermediate activations from the verifier, the future state lookaheads from the parallel drafter, and the generated tokens to predict the autoregressive residual The new logits are generated via a pass through a small transformer WeaverStep: ldraft(u0…Ldflash, t1…td) = WeaverStep(u0…Ldflash, t1…td) Most of the memory bandwidth pressure of Weaver execution comes from reading this matrix We reduce the communication necessary by only reading K rows of this matrix (usually 512), selected as Top-K DFlash tokens, adding Weaver residual logits to the DFlash output logits, and then normalizing over the candidate set Tree Construction and Verification The proposal tree constructed by Weaver is verified in one pass For targets that include GDN layers, we introduce a dedicated kernel that verifies an entire tree without rolling the recurrent state, detailed in a Section 3.4 Our verification procedure instead uses the dual chunk form of the linear recurrence This allows us to compute the result of n consecutive updates in a single pass via a pair of triangular solves The verification procedure is implemented as a masked triangular solve, which we fuse into a single GPU kernel Empirical Performance DFlash-TfM (Tree) is the fastest configuration on every task (Table 2), with an average interactivity of 392.8 tok/s: a 4.37 × speedup over the bfloat16 autoregressive baseline, 24.7% ahead of the tuned DFlash chain The advantage is largest on MATH500 and smallest on ShareChat, which tracks how predictable the target’s outputs are The gap comes from significantly improved mean acceptance length: Weaver’s trees lengthen MAL by 77% relative to the chain DFlash baseline and by 32% relative to DDTree at the same tree size Verification Ablation To identify the coupling scheme that maximizes the performance for DFlash and DFlash-TfM at temperature 1.0, we evaluate naive verification and speculative sampling using budget-16 chain proposals on MTBench with reasoning enabled The optimal choice of coupling depends on the drafter type, as can be seen from Table 3 For the marginal drafter DFlash, Naive Verification gives higher tokens/step than speculative sampling In contrast, the autoregressive drafter DFlash-TfM shows the opposite result We therefore conclude that Naive Verification is the best scheme for DFlash and use it throughout our experiments We showed that the acceptance ceiling of factorized drafters follows from their independence assumption rather than from drafter capacity, and that a small autoregressive adapter is sufficient to lift it Weaver conditions DFlash’s marginals on the realized draft tokens using 56.7M parameters and no multiplication by the full-vocabulary projection, and the resulting proposal trees exceed the acceptance rates available to any marginal-only drafter at long depths On the systems side, the proposed kernel reduces tree verification for delta-rule layers to a masked triangular solve: the committed state is never speculatively written, so no rollback is required, and the construction applies to any target built on non-diagonal linear attention Together these contributions yield a 4.37 × speedup over autoregressive decoding and 24.
Paper summary: Tom: So, this paper is called "Trees from Marginals: Autoregressive drafting with factorized priors" and it's about how we can make those sequential language models more interactive by using a technique called speculative decoding.
Jane: Right, so the authors are looking at these factorized draft models and they're trying to fix a problem where their predictions start to become unreliable as you try to generate longer sequences.
Lu: The authors introduced this lightweight adapter, Weaver, which takes the top-K predictions from that factorized drafter and uses them to build proposal trees that restore the conditional dependencies between those tokens.
Meng: So Weaver is essentially a small piece of code that learns how to bridge the gap between what a parallel predictor sees and what we need for sequential generation. What does this actually mean for running these things on my hardware?
Tom: Well, they achieved a four point three seven times speedup over the standard autoregressive decoding baseline and outperformed optimized DFlash baselines by twenty-four point seven percent when using the Qwen3 point six-27B model in bfloat16 precision.
Jane: That speedup is impressive because it’s not just theoretical; they showed that Weaver increases the mean acceptance length by seventy-seven percent compared to the chain DFlash baseline with the same tree size.
Lu: The main thing I find interesting is how they handled verification for models with Gated Delta Net layers, because they used a rollback-free tree-verification algorithm and implemented optimized CUDA kernels in SGLang.
Meng: Rollback-free sounds good because that means less state management headache when you're trying to deploy this at scale. What about the actual deployment cost? Is this just an extra parameter count?
Tom: They used fifty-six point seven million parameters for Weaver, and they did it without doing any multiplication by the full-vocabulary projection matrix, which keeps the overhead low compared to other methods <ref:2607.06763#pg1>.
Jane: So what does this mean for a person who only listens to the show? It means that if you're using these factorized drafters, you can get much longer and better results without totally losing speed or memory bandwidth.
Lu: The paper concludes that Weaver conditions DFlash’s marginals on the realized draft tokens, meaning the proposal trees they build actually exceed the acceptance rates available to any marginal-only drafter at long depths <ref:2607.06763#pg2>.
Meng: That's a strong claim about exceeding those limits; what are the limitations here? Where does this method stop working reliably?
Tom: The authors did point out that for marginal drafters like DFlash, naive verification actually gives more tokens per step than speculative sampling, so you have to pick the right scheme based on what you're using <ref:2607.06763#pg2>.
Jane: So it’s not a one-size-fits-all solution; it depends on whether you are using a marginal drafter or an autoregressive one. That is an important caveat.
Lu: The authors tested different coupling schemes, and they settled on naive verification as the best approach for both DFlash and DFlash-TfM in their experiments at temperature one point zero <ref:2607.06763#pg2>.
Meng: Okay, so to wrap up what you've told us about this paper, it seems like Weaver is a solid way to boost interactivity by cleverly using those top-K predictions without adding a huge computational burden.
Tom: Exactly. It’s about making that trade-off between computation and memory traffic work better for real-world applications when dealing with these large language models <ref:2607.06763#pg1>.
Jane: And what this suggests is that we can build more interactive and efficient AI systems by smartly combining parallel drafting with a small, targeted autoregressive component like Weaver.
Conclusion: Tom: So, we're wrapping up this look at "Trees from Marginals: Autoregressive drafting with factorized priors". It’s about how they used this lightweight adapter called Weaver to fix a problem in speculative decoding for autoregressive models.
Jane: Right, so the authors are basically taking these factorized draft models and using Weaver to build proposal trees that restore the conditional dependencies between those tokens when generating text.
Lu: They did this by learning how to predict the residual between what the parallel drafter sees and what we actually need for sequential generation, without doing a full-vocabulary projection which is usually quite expensive.
Meng: So, if I'm deploying this on my servers, does it mean I can get better results with longer sequences without needing massive computational resources?
Tom: Yes, because they achieved a four point three seven times speedup over the standard autoregressive decoding baseline and outperformed a highly optimized DFlash baseline by twenty-four point seven percent on average using Qwen3 point six-27B in bfloat16 precision <ref:2607.06763#pg1,a highly optimized DFlash baseline by>.
Jane: That speedup is significant, especially when you look at the benchmarks they used across mtbench, gsm8k, math500, and other tasks up to four hundred fifty tokens.
Lu: The paper shows Weaver increases the mean acceptance length by seventy-seven percent relative to the chain DFlash baseline and by thirty-two percent relative to DDTree when using the same tree size.
Meng: So what would this actually change for someone who runs inference? If I'm deploying a model, does it mean I can run longer sequences without hitting that memory traffic bottleneck they talked about?
Tom: Yes, because they are tackling that memory traffic issue by trading it off for computation in a way that keeps interactivity high.
Jane: It means users get much faster responses on average, even with longer prompts because the acceptance rates are more stable and the proposals are better conditioned.
Lu: The paper suggests that the acceptance ceiling of those factorized drafters is limited by their independence assumption rather than just how big the drafter itself is.
Meng: That's a crucial distinction for me. It means we don't need to train a much bigger model just to get better results from this drafting approach.
Tom: And they showed that Weaver, using fifty-six point seven million parameters and no multiplication by the full-vocabulary projection matrix, conditions DFlash’s marginals on the draft tokens effectively.
Jane: That efficiency part is what really sells it for deployment because it keeps the overhead low while still boosting performance substantially compared to other methods like DDTree.
Lu: On the systems side too, they found that for targets with GDN layers, this tree verification is done with a masked triangular solve without needing any rollback of the recurrent state.
Meng: No rollback required? That sounds like a huge win for deployment because it simplifies the state management and reduces complexity on the hardware side.
Tom: It shows how their system contribution works together—the model architecture improvement plus that specialized kernel implementation in SGLang.
Jane: So, to summarize this paper, "Trees from Marginals: Autoregressive drafting with factorized priors" is about using a lightweight adapter called Weaver to fix the independence problem in factorized draft models by building proposal trees, which results in a four point three seven times speedup over autoregressive decoding.
Lu: And the conclusion they draw is that this method works well across various datasets, but they did point out that for marginal drafters like DFlash, naive verification actually gives more tokens per step than speculative sampling.
Jane: So it's a nuanced result. It depends on what kind of drafter you are using.
Lu: They tested different coupling schemes to see what worked best for DFlash and DFlash-TfM at temperature one point zero, and they concluded that naive verification is the best scheme for both models in their experiments.
Meng: From a deployment standpoint, knowing that we can get this kind of performance lift without needing massive projection matrices makes it much more viable to ship these architectures.
Tom: It’s about making that trade-off between computation and memory traffic work better for real-world applications when dealing with these large language models.
Jane: And the implication is that we can build more interactive and efficient AI systems by smartly combining parallel drafting with a small, targeted autoregressive component like Weaver.
More episodes
- 2602.04775-Extending ROC Analysis to Uncertainty-Aware Risk Prediction with an Interval-Based AUC (iAUC)
- 2602.05535-Detecting Misbehaviors of Large Vision-Language Models by Evidential Uncertainty Quantification
- 2602.06565-Learning to Allocate Resources with Censored Feedback
- 2602.23826-GLUScope: A Tool for Analyzing GLU Neurons in Transformer Language Models
- 2603.11417-Zero-Shot Cross-City Generalization in End-to-End Autonomous Driving: Self-Supervised versus Supervised Representations
- 2603.17685-Flow Matching Policy Optimization with Mirror Descent and Entropy Constraints
- 2603.25535-Insights on back marking for the automated identification of animals
- 2604.17673-A Mechanistic Study of Algorithmic Generalization in Diffusion Models on Modular Arithmetic
- 2604.26080-CellTwin: Reproducible Cellular Network Emulation via High Resolution, in situ Measurement-Driven ML
- 2605.01642-Adaptive Pluralistic Alignment: A pipeline for dynamic artificial democracy