NI Sampling: Accelerating Discrete Diffusion Sampling by Token Order Optimization

Enshu Liu, Xuefei Ning, Yu Wang, Zinan Lin
4/20/2026
cs.LG

Official code: imagination-research/NI-Sampling (3 stars, MIT, last commit 2026-04-22).

Abstract

Discrete diffusion language models (dLLMs) have recently emerged as a promising alternative to traditional autoregressive approaches, offering the flexibility to generate tokens in arbitrary orders and the potential of parallel decoding. However, existing heuristic sampling strategies remain inefficient: they choose only a small part of tokens to sample at each step, leaving substantial room for improvement. In this work, we study the problem of token sampling order optimization and demonstrate its significant potential for acceleration. Specifically, we find that fully leveraging correct predictions at each step can reduce the number of sampling iterations by an order of magnitude without compromising accuracy. Based on this, we propose Neural Indicator Sampling (NI Sampling), a general sampling order optimization framework that utilize a neural indicator to decide which tokens should be sampled at each step. We further propose a novel trajectory-preserving objective to train the indicator. Experiments on LLaDA and Dream models across multiple benchmarks show that our method achieves up to 14.3$\times$ acceleration over full-step sampling with negligible performance drop, and consistently outperforms confidence threshold sampling in the accuracy-step trade-off. Code is available at https://github.com/imagination-research/NI-Sampling.

View on arXivView PDF

Code Implementations(1)

MIT
30CSS, HTMLMar 1, 20266 months agoMIT

Similar Papers

Cite this paper

@article{liu2026sampling,
  title  = {NI Sampling: Accelerating Discrete Diffusion Sampling by Token Order Optimization},
  author = {Enshu Liu and Xuefei Ning and Yu Wang and Zinan Lin},
  year   = {2026},
  eprint = {2604.18471},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2604.18471v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2604.18471.svg)](https://codeofpaper.com/paper/2604.18471)

Discussion