cs.CLJun 3, 2026

SemBlock: Semantic Boundary Dynamic Blocks for Diffusion LLMs

Authors: Xinrui SongZhuoran WangMingju GaoHao Tang

Organizations: School of Computer Science, Peking University

Abstract

Diffusion language models (DLMs) generate text through iterative denoising, and blockwise decoding improves their practicality by committing tokens in local blocks. However, existing blockwise methods typically rely on fixed block sizes or delimiter-based runtime signals, which do not necessarily align with semantic boundaries. In this paper, we propose SemBlock, a semantic-boundary-driven dynamic block decoding framework for diffusion LLMs. SemBlock formulates dynamic block construction as semantic boundary prediction and trains lightweight predictors on frozen LLaDA hidden states. To provide supervision, we construct SemBound, a semantic-boundary dataset that derives boundary labels from discourse units, reasoning steps, and implementation spans across natural language, math, and code tasks. During inference, SemBlock uses predicted boundary probabilities to select the ending position of each dynamic block. Experiments on GSM8K, IFEval, MATH, and HumanEval show that SemBlock consistently improves over fixed-block decoding and AdaBlock. Our code is publicly available: https://github.com/TH-AI-Lab-PKU/SemBlock.

Explore similar work

CardsList
  1. Dynamic Chunking for Diffusion Language Models

    May 15, 2026Yichen Zhu, Xiaoming Shi, Peng Zhao +3Diffusion Language ModelsChunk