· Masked / discrete diffusion, Inference acceleration, Reasoning · Source

Set Diffusion: Interpolating Token Orderings Between Autoregression and Diffusion for Fast and Flexible Decoding

SourceFull paper

Article overview

Verdict

Set Diffusion is a substantiated generalization of diffusion generation that unifies autoregression, block diffusion, and masked diffusion. SW-SetDLM shows improved quality–speed tradeoffs and flexible decoding, but the optimal parallelism level and ordering schedule remain unresolved.

Main idea

Generation is factorized over token sets with arbitrary positions and sizes. Controlling set order and size tunes the balance among left-to-right quality, arbitrary-order generation, infilling, and parallelism.

Mechanism

State: revealed context, selected positions, token sets, reveal times, and a KV cache. Training samples an ordering policy and sums diffusion NELBO terms for successive conditional sets; singleton training uses a causal mask and provides full conditional-likelihood supervision. Normalization by the realized ratio reduces gradient variance. SW-SetDLM uses position-offset ordering, independently predicts tokens within a selected set in one denoising step, and commits accepted tokens to the cache. Joint computation uses a 2L concatenation with specialized set-diagonal, offset-causal, and set-causal masks, avoiding N separate denoising calls. At inference, positions are selected, a subset is sampled or accepted, tokens are denoised, and their keys and values are appended to the cache. Set size controls parallelism; ordering policy controls bias and lookahead. Reproduction: (1) define reveal-time policies and convert them to permutations with the inverse CDF; (2) construct sets and specialized masks; (3) train with the conditional-set NELBO and realized-ratio normalization; (4) implement staged token acceptance and KV-cache updates; (5) compare schedules at a fixed prediction budget. The records do not specify the exact within-set denoising target or acceptance rule.

What this is useful for

It applies to generation with controllable parallelism, infilling, sliding-window decoding, variable-length output, and systems where KV caching matters. It is most useful when latency–quality tradeoffs must be selected or different reveal orders are needed for different positions.

Risks / not proven

The main risk is the unresolved accuracy–parallelism tradeoff: the best position-offset schedule may depend on hardware and user preferences. Training and inference schedules may differ, while learned orderings require discrete optimization and are left for future work. The architecture and results are demonstrated under the stated conditions; some reproduction details, including the exact acceptance rule, are absent.

Full abstract

Discrete diffusion models have steadily improved in quality relative to autoregressive (AR) models. However, these models are normally constrained to fixed-length generation and do not support key-value (KV) caching. Block diffusion partially bridges diffusion and AR by generating token blocks left-to-right, but its fixed-size sequential blocks limit decoding flexibility and parallelism. Here, we present a new class of language models, set diffusion, comprised of (i) a likelihood parameterization that factorizes over flexible-position, flexible-length token sets and (ii) a set-causal diffusion architecture that supports KV cache updates after every inference step. By factorizing over token sets instead of fixed-size blocks, tokens can be decoded in arbitrarily-ordered sets, including sliding-window sets, enabling faster inference and support for any-order decoding. Set diffusion achieves better speed-quality tradeoffs on mathematical reasoning, summarization, and unconditional generation compared to prior diffusion language models while offering stronger infilling performance than block diffusion. We provide the code, along with the model weights and blog post on the project page: https://m-arriola.com/setdlms/

Source

BibTeX · RIS · Markdown · JSON