cs.CLMar 16, 2026

DOS: Dependency-Oriented Sampler for Masked Diffusion Language Models

Authors: Xueyu Zhou, Yangrong Hu, Jian Huang

Organizations: Department of Data Science and AI The Hong Kong Polytechnic University, Hong Kong, China

Abstract

Masked diffusion language models (MDLMs) have recently emerged as a new paradigm in language modeling, offering flexible generation dynamics and enabling efficient parallel decoding. However, existing decoding strategies for pre-trained MDLMs predominantly rely on token-level uncertainty criteria, while largely overlooking sequence-level information and inter-token dependencies. To address this limitation, we propose Dependency-Oriented Sampler (DOS), a training-free decoding strategy that leverages inter-token dependencies to inform token updates during generation. Specifically, DOS exploits attention matrices from transformer blocks to approximate inter-token dependencies, emphasizing information from unmasked tokens when updating masked positions. Empirical results demonstrate that DOS consistently achieves superior performance on both code generation and mathematical reasoning tasks. Moreover, DOS can be seamlessly integrated with existing parallel sampling methods, leading to improved generation efficiency without sacrificing generation quality.

Figures & tables

Appendix figures & tables7 assets

Supplementary material from the paper’s appendix.

Appendix

Explore similar work

CardsList
  1. Dependency-Guided Parallel Decoding in Discrete Diffusion Language Models

    Apr 2, 2026Liran Ringel, Ameen Ali, Yaniv RomanoDiffusion Language Model DecodingDiffusion Language Models

  2. Attention-Discounted Adaptive Sampler for Masked Diffusion Language Models

    Jun 9, 2026Yusuf Sahin, Ahmed Rockey Saikia, Volkan Cevher +1Masked Diffusion ModelsParallel Decoding

  3. Improving Sampling for Masked Diffusion Models via Information Gain

    Feb 20, 2026Kaisen Yang, Jayden Teoh, Kaicheng Yang +2Diffusion SamplingDiffusion Language Model Decoding