Swordsman: Entropy-Driven Adaptive Block Partition for Efficient Diffusion Language Models
Yu Zhang, Xinchen Li, Jialei Zhou, Hongnan Ma, Zhongwei Wan, Yiwei Shi, Duoqian Miao, Qi Zhang, Longbing Cao
TL;DR
Swordsman tackles the semantic misalignment of fixed-block partitioning in diffusion language models by introducing entropy-driven adaptive block partitioning. It detects constituent boundaries through entropy shifts $\Delta H_i = H_{i+1} - H_i$ and adaptively partitions blocks, while employing dynamic, difficulty-aware unmasking thresholds to balance speed and accuracy. The framework is training-free and KV Cache-compatible, achieving state-of-the-art results across GSM8K, HumanEval, MBPP, and Dream benchmarks with competitive latency. This approach enhances practical diffusion decoding by aligning block structure with linguistic constituents, enabling faster, more reliable generation without model retraining.
Abstract
Block-wise decoding effectively improves the inference speed and quality in diffusion language models (DLMs) by combining inter-block sequential denoising and intra-block parallel unmasking. However, existing block-wise decoding methods typically partition blocks in a rigid and fixed manner, which inevitably fragments complete semantic or syntactic constituents, leading to suboptimal performance. Inspired by the entropy reduction hypothesis (ERH), we recognize that constituent boundaries offer greater opportunities for uncertainty reduction, which motivates us to employ entropy analysis for identifying constituent boundaries. Therefore, we propose Swordsman, an entropy-driven adaptive block-wise decoding framework for DLMs. Swordsman adaptively partitions blocks by identifying entropy shifts between adjacent tokens to better align with semantic or syntactic constituent boundaries. In addition, Swordsman dynamically adjusts unmasking thresholds conditioned on the real-time unmasking status within a block, further improving both efficiency and stability. As a training-free framework, supported by KV Cache, Swordsman demonstrates state-of-the-art performance across extensive evaluations.
