arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2604.18471cs.LG
收藏

基于令牌顺序优化的NI采样:通过令牌顺序优化加速离散扩散采样

NI Sampling: Accelerating Discrete Diffusion Sampling by Token Order Optimization

Department of EE, Tsinghua University(清华大学电子工程系);Microsoft Research(微软研究院)

Enshu Liu, Xuefei Ning, Yu Wang, Zinan Lin

AI总结:

本文提出NI采样方法,通过优化令牌采样顺序显著提升离散扩散模型的采样效率,实验表明在保持准确性的同时,加速效果达14.3倍。

摘要:

离散扩散语言模型(dLLMs)近期作为一种有前景的替代传统自回归方法出现,提供了生成任意顺序令牌的灵活性和并行解码的潜力。然而,现有启发式采样策略效率低下:每一步只选择少量令牌进行采样,留有大量改进空间。本文研究令牌采样顺序优化问题,并展示其显著的加速潜力。具体而言,我们发现每一步充分利用正确预测可以将采样迭代次数减少一个数量级而不影响准确性。基于此,我们提出神经指示器采样(NI采样),一种通用的令牌采样顺序优化框架,利用神经指示器决定每一步应采样的令牌。我们进一步提出一种新的轨迹保持目标来训练指示器。在多个基准上的实验表明,我们的方法在保持准确性的同时,比全步采样加速达14.3倍,并在准确性-步数权衡上优于置信度阈值采样。代码可在https://github.com/imagination-research/NI-Sampling上获得。

英文摘要:

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.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑