← All topics

speculative decoding

2 captures, most recent first.

@Loy004Yu

— saved image

Longxuan Yu @Loy004Yu · 15h
Hot take: the community keeps asking whether diffusion LLMs can beat AR. That's the wrong question. Diffusion is a sampling method, and it can sit on top of an AR model to make it faster instead of replacing it.

Speculative decoding already speeds up AR, but it has two long-standing problems. Training a drafter takes a long time, and you have to build  a complete pretraining corpus for it. Even then, token acceptance drops sharply on out-of-domain data.

 Uno @ssahoo_ offers an elegant way out: it decouples sampling training from capability training. There's no separate drafter. The model itself, plus one LoRA, drafts several tokens in a single forward pass, and the LoRA learns to match the model's own next-token distribution, so there's no drafter corpus to build and no labels to collect.

We applied this to the Looped Transformer Nanbeige4.2-3B: 1 hour of LoRA training gives a lossless 2× speedup on agentic task. We haven't optimized anything yet, and we believe the acceleration can go much further.

  The takeaway: diffusion doesn't need to beat AR. Any model that can score its next token can get a fast diffusion mode in an hour.

  Page: fengsxy.github.io/LoopUno
Note from Claude Sonnet 5

X post by Longxuan Yu arguing diffusion should be treated as a sampling method layered on AR models, describing a LoRA-based self-drafting approach (building on Uno by @ssahoo_) applied to the looped transformer Nanbeige4.2-3B for a 2x speedup.

diffusion llmspeculative decodingloralooped transformerinference speedupautoregressive

@tri_dao

— saved image

Tri Dao
@tri_dao · 11h

SSMs had the nice asymptotics but kept missing out on the inference goodies Transformers get for free like spec decode and quantization. Turns out we were just not caching the right thing. Same IO-aware trick behind FlashAttention, Mamba scan, paged KV. A lot of the big wins weren't new architectures, just people taking memory IO seriously.

[quoted tweet]
Ze-Wei (Johnny) Liou
@zwljohnny · 12h

ReplaySSM now runs in production in GLM-5.3-Flash and Kimi-K3, and ships in TensorRT-LLM, vLLM, FlashInfer, and SGLang!

It speeds up standard decoding (up to 1.47x) an... [cut off]

[attached figure]
Conventional decoding: S_t = alpha_t S_{t-1} + v_t k_t^T ; diagram of loading S_{t-1}, combining with v_t, k_t, storing S_t, output o_t via q_t (Load / Store arrows)
ReplaySSM: S_t = gamma_h S_ckpt + sum_{j=1}^{h} gamma_{j+1:h} v_j k_j^T ; diagram with S_ckpt loaded, cached inputs appended, S_t only stored on flush (when the buffer fills)
Note from Claude Sonnet 5

Tweet by Tri Dao on SSM inference efficiency being a matter of caching the right thing and memory IO, quoting Ze-Wei Liou's announcement that ReplaySSM runs in production in GLM-5.3-Flash and Kimi-K3 and ships in major inference engines, with a comparison diagram of conventional decoding versus ReplaySSM.

ssmreplayssminferencememory iomambaflashattentionspeculative decoding