Papers
Topics
Authors
Recent
Search
2000 character limit reached

Block-R1: Block-Size-Aware dLLM RL

Updated 4 July 2026
  • Block-R1 is a framework that treats block size as a dynamic, domain-dependent variable during RL post-training of diffusion large language models.
  • It introduces the Block-R1-41K dataset and a teacher-student filtering approach to determine sample-level optimal block sizes, mitigating domain conflicts.
  • The method complements dynamic inference (b1) by adapting block boundaries using entropy descent objectives to enhance reasoning coherence and overall performance.

Block-R1 denotes a block-size-aware framework for reinforcement-learning post-training of diffusion LLMs (dLLMs) in multi-domain reasoning settings. In its primary 2026 formulation, Block-R1 studies block size as a domain-dependent variable rather than a fixed decoding hyperparameter, introduces the Block-R1-41K dataset with sample-level best-improved training block sizes, and defines a benchmark for single-domain and cross-domain RL on dLLMs (Jiang et al., 12 May 2026). The same research line is closely connected to the dynamic-block framework b1, which replaces fixed-size reasoning blocks at inference time with adaptive block termination learned through a Monotonic Entropy Descent objective under GRPO (Jiang et al., 4 May 2026). Taken together, these works treat block granularity as a central control variable for both rollout optimization and reasoning coherence in diffusion-based language modeling.

1. Block size in diffusion LLMs

In block-wise semi-autoregressive decoding, a dLLM with block size cc generates tokens in parallel within each block, but sequentially across blocks. During RL post-training, including GRPO-style optimization, the rollout distribution, reward estimates, and policy updates therefore depend on cc (Jiang et al., 12 May 2026). Block-R1 formalizes the consequence of this dependence in multi-domain settings: different reasoning domains empirically prefer different decoding granularities, so fixing one block size across all domains induces a domain block size conflict.

The benchmark paper states this point as a strict sub-optimality result under two mild assumptions, sample-level reward alignment and domain-level preference divergence. With

Jk(θ,c)=ExDk,  τπθ(c)[R(τ)],J_k(\theta,c)=\mathbb{E}_{x\sim\mathcal D_k,\;\tau\sim\pi_\theta^{(c)}}[R(\tau)],

forcing a single block size c0c_0 across all domains satisfies

k=1MλkJk(θ,c0)  <  k=1MλkmaxcBJk(θ,c).\sum_{k=1}^{M}\lambda_k\,J_k(\theta,c_0) \;<\; \sum_{k=1}^{M}\lambda_k \max_{c\in B}J_k(\theta,c).

This formulation makes block size an optimization variable at the level of post-training policy geometry rather than merely a decoding-speed knob.

A related but distinct observation appears in the dynamic-block work on b1. There, fixed-size blocks are identified as an inference-time bottleneck for coherent reasoning because different tasks, and even different steps within a single task, have different “natural” block lengths, while rigid boundaries can cut logical steps midstream and produce high-entropy spikes correlated with wrong answers (Jiang et al., 4 May 2026). A plausible implication is that Block-R1 addresses block-size mismatch at the domain and sample level during RL post-training, whereas b1 addresses block partitioning within individual reasoning trajectories.

2. Formalization of domain block size conflict

Block-R1 operationalizes domain conflict through teacher-student improvement under a candidate block-size set B={c1,,cS}B=\{c_1,\dots,c_S\}. For a sample xx, the improvement of a teacher model θT\theta_T over a student model θS\theta_S at block size cc is

cc0

The sample-level best-improved block size is then defined as

cc1

This assigns each training sample a preferred rollout granularity derived from measured reward improvement rather than heuristic selection (Jiang et al., 12 May 2026).

At the domain level, Block-R1 defines the empirical distribution of preferred sizes,

cc2

and quantifies pairwise conflict by the Block Size Conflict Score (BCS), given by the cc3-Wasserstein distance

cc4

where cc5. A larger BCS indicates that two domains prefer substantially different decoding granularities.

The benchmark further reports that block-size distributions differ strongly by domain. Countdown concentrates on cc6, whereas Sudoku concentrates on cc7 (Jiang et al., 12 May 2026). This is not merely descriptive; it is used as evidence that a single fixed cc8 can create systematic optimization conflict in mixed-domain rollouts.

3. Block-R1-41K dataset and benchmark design

Block-R1-41K assembles approximately cc9 high-quality, multi-domain reasoning samples, each tagged with its sample-level best-improved block size Jk(θ,c)=ExDk,  τπθ(c)[R(τ)],J_k(\theta,c)=\mathbb{E}_{x\sim\mathcal D_k,\;\tau\sim\pi_\theta^{(c)}}[R(\tau)],0 (Jiang et al., 12 May 2026). Its construction has five stages.

First, source selection covers six source domains: code generation (KodCode), mathematical reasoning (GSM8K, MATH500, Countdown), logical puzzles (Knights-and-Knaves, Sudoku), general capabilities (HellaSwag), and advanced reasoning (MMLU-Pro, ARC-C). For large datasets, up to Jk(θ,c)=ExDk,  τπθ(c)[R(τ)],J_k(\theta,c)=\mathbb{E}_{x\sim\mathcal D_k,\;\tau\sim\pi_\theta^{(c)}}[R(\tau)],1 training examples are randomly sampled; smaller datasets are either excluded or used only for evaluation.

Second, Block-R1 uses unified reward design. Each domain’s reward combines format-based signals, accuracy checks such as code execution or symbolic math equivalence, and constraint-based partial credits to reduce sparsity.

Third, teacher-student filtering evaluates each sample across the candidate block-size set Jk(θ,c)=ExDk,  τπθ(c)[R(τ)],J_k(\theta,c)=\mathbb{E}_{x\sim\mathcal D_k,\;\tau\sim\pi_\theta^{(c)}}[R(\tau)],2 using Jk(θ,c)=ExDk,  τπθ(c)[R(τ)],J_k(\theta,c)=\mathbb{E}_{x\sim\mathcal D_k,\;\tau\sim\pi_\theta^{(c)}}[R(\tau)],3 trajectories from teacher and student models. Samples are discarded if they are too easy, too hard, or anomalous in the sense that the teacher never outperforms the student.

Fourth, best-improved block size selection computes Jk(θ,c)=ExDk,  τπθ(c)[R(τ)],J_k(\theta,c)=\mathbb{E}_{x\sim\mathcal D_k,\;\tau\sim\pi_\theta^{(c)}}[R(\tau)],4 and stores Jk(θ,c)=ExDk,  τπθ(c)[R(τ)],J_k(\theta,c)=\mathbb{E}_{x\sim\mathcal D_k,\;\tau\sim\pi_\theta^{(c)}}[R(\tau)],5, yielding a domain-specific pool Jk(θ,c)=ExDk,  τπθ(c)[R(τ)],J_k(\theta,c)=\mathbb{E}_{x\sim\mathcal D_k,\;\tau\sim\pi_\theta^{(c)}}[R(\tau)],6.

Fifth, balanced multi-domain assembly samples Jk(θ,c)=ExDk,  τπθ(c)[R(τ)],J_k(\theta,c)=\mathbb{E}_{x\sim\mathcal D_k,\;\tau\sim\pi_\theta^{(c)}}[R(\tau)],7 examples from each pool and forms

Jk(θ,c)=ExDk,  τπθ(c)[R(τ)],J_k(\theta,c)=\mathbb{E}_{x\sim\mathcal D_k,\;\tau\sim\pi_\theta^{(c)}}[R(\tau)],8

The benchmark is designed for both single-domain RL and cross-domain or multi-domain RL. In the single-domain setting, a model is post-trained on one source domain and evaluated on the same domain. Reported baselines include supervised fine-tuning and seven RL algorithms: Diffu-GRPO, d1, wd1, GDPO, MDPO, ESPO, and StableDRL. The default fixed block size is Jk(θ,c)=ExDk,  τπθ(c)[R(τ)],J_k(\theta,c)=\mathbb{E}_{x\sim\mathcal D_k,\;\tau\sim\pi_\theta^{(c)}}[R(\tau)],9, the rollout group size is c0c_00, and the number of diffusion steps is c0c_01 (Jiang et al., 12 May 2026).

Supported backbones total ten, with GSAI-ML/LLaDA-8B-Instruct as the default; examples listed include LLaDA-1.5, LLaDA2.0-mini, Dream-v0-7B, SDAR-8B-Chat, and TraDo-8B-Instruct. The benchmark and dataset are open-sourced through the Block-R1 repository and the Block-R1-41K Hugging Face release (Jiang et al., 12 May 2026).

4. Sample-conditioned cross-domain RL

The central training innovation in Block-R1 is to replace the fixed-c0c_02 policy c0c_03 in GRPO with a sample-specific policy c0c_04. In the benchmark’s cross-domain setting, the vanilla baseline mixes all source domains under a single fixed block size c0c_05, whereas Block-R1 mixes all domains but conditions each rollout on its sample’s annotated c0c_06 (Jiang et al., 12 May 2026).

The resulting sequence-level surrogate objective is

c0c_07

Here c0c_08 are importance ratios, c0c_09 are group advantages, and all trajectories are sampled from k=1MλkJk(θ,c0)  <  k=1MλkmaxcBJk(θ,c).\sum_{k=1}^{M}\lambda_k\,J_k(\theta,c_0) \;<\; \sum_{k=1}^{M}\lambda_k \max_{c\in B}J_k(\theta,c).0.

The benchmark also provides condensed pseudocode: sample a batch of k=1MλkJk(θ,c0)  <  k=1MλkmaxcBJk(θ,c).\sum_{k=1}^{M}\lambda_k\,J_k(\theta,c_0) \;<\; \sum_{k=1}^{M}\lambda_k \max_{c\in B}J_k(\theta,c).1, generate k=1MλkJk(θ,c0)  <  k=1MλkmaxcBJk(θ,c).\sum_{k=1}^{M}\lambda_k\,J_k(\theta,c_0) \;<\; \sum_{k=1}^{M}\lambda_k \max_{c\in B}J_k(\theta,c).2 trajectories under k=1MλkJk(θ,c0)  <  k=1MλkmaxcBJk(θ,c).\sum_{k=1}^{M}\lambda_k\,J_k(\theta,c_0) \;<\; \sum_{k=1}^{M}\lambda_k \max_{c\in B}J_k(\theta,c).3 for each pair, compute rewards and advantages, form the surrogate loss, and update k=1MλkJk(θ,c0)  <  k=1MλkmaxcBJk(θ,c).\sum_{k=1}^{M}\lambda_k\,J_k(\theta,c_0) \;<\; \sum_{k=1}^{M}\lambda_k \max_{c\in B}J_k(\theta,c).4 via a policy-gradient step (Jiang et al., 12 May 2026). In practical terms, the method changes the rollout distribution at the sample level without altering the general GRPO training template.

This design targets a specific pathology of multi-domain dLLM RL: rollout-based optimization can degrade when heterogeneous domains are forced through a single block-size schedule. The benchmark reports that this degradation correlates with high BCS values, linking an explicit dataset statistic to downstream training failure modes (Jiang et al., 12 May 2026).

5. Dynamic-size reasoning blocks and Monotonic Entropy Descent

The companion framework b1 extends block-size adaptivity from training-time domain selection to inference-time block segmentation. In dLLMs such as LLaDA, generation typically proceeds in fixed-size blocks, for example k=1MλkJk(θ,c0)  <  k=1MλkmaxcBJk(θ,c).\sum_{k=1}^{M}\lambda_k\,J_k(\theta,c_0) \;<\; \sum_{k=1}^{M}\lambda_k \max_{c\in B}J_k(\theta,c).5, with parallel denoising inside each block (Jiang et al., 4 May 2026). b1 replaces that rigid scheme by learning to end each block dynamically through a special end-of-step token k=1MλkJk(θ,c0)  <  k=1MλkmaxcBJk(θ,c).\sum_{k=1}^{M}\lambda_k\,J_k(\theta,c_0) \;<\; \sum_{k=1}^{M}\lambda_k \max_{c\in B}J_k(\theta,c).6.

At the diffusion step k=1MλkJk(θ,c0)  <  k=1MλkmaxcBJk(θ,c).\sum_{k=1}^{M}\lambda_k\,J_k(\theta,c_0) \;<\; \sum_{k=1}^{M}\lambda_k \max_{c\in B}J_k(\theta,c).7 when k=1MλkJk(θ,c0)  <  k=1MλkmaxcBJk(θ,c).\sum_{k=1}^{M}\lambda_k\,J_k(\theta,c_0) \;<\; \sum_{k=1}^{M}\lambda_k \max_{c\in B}J_k(\theta,c).8 first appears, block k=1MλkJk(θ,c0)  <  k=1MλkmaxcBJk(θ,c).\sum_{k=1}^{M}\lambda_k\,J_k(\theta,c_0) \;<\; \sum_{k=1}^{M}\lambda_k \max_{c\in B}J_k(\theta,c).9 of length B={c1,,cS}B=\{c_1,\dots,c_S\}0 spans positions B={c1,,cS}B=\{c_1,\dots,c_S\}1. Token-wise Shannon entropy at position B={c1,,cS}B=\{c_1,\dots,c_S\}2 is

B={c1,,cS}B=\{c_1,\dots,c_S\}3

and block entropy is defined as

B={c1,,cS}B=\{c_1,\dots,c_S\}4

The empirical observation motivating b1 is that correct reasoning traces show steadily decreasing block entropy, whereas incorrect traces fluctuate or increase.

To exploit this pattern, b1 introduces a Monotonic Entropy Descent objective. Its local surrogate reward is

B={c1,,cS}B=\{c_1,\dots,c_S\}5

which enforces entropy descent across adjacent blocks. A separate block-ending indicator reward,

B={c1,,cS}B=\{c_1,\dots,c_S\}6

encourages multi-step reasoning. The full RL reward is

B={c1,,cS}B=\{c_1,\dots,c_S\}7

with default weights B={c1,,cS}B=\{c_1,\dots,c_S\}8 (Jiang et al., 4 May 2026).

Training uses GRPO with approximate policy ratios and a KL penalty. During each update, prompts are sampled, B={c1,,cS}B=\{c_1,\dots,c_S\}9 completions are generated, dynamic blocks are reconstructed through xx0, xx1, xx2, and xx3 are computed, and the GRPO update is applied using group-normalized advantages. At inference, the model begins from a fully masked sequence of length xx4, iterates through diffusion steps on positions xx5, monitors for xx6, commits the current block once it appears, and repeats until EOS or the length limit (Jiang et al., 4 May 2026).

b1 is described as plug-and-play with existing diffusion-GRPO pipelines such as d1 and wd1. This suggests a complementary layering: Block-R1 assigns effective training block sizes across domains and samples, while b1 relaxes fixed boundaries inside individual reasoning trajectories.

6. Empirical results, ablations, and limitations

Block-R1 reports that all RL methods improve in-domain accuracy over the base model in single-domain training, but gains are domain-specific; for example, StableDRL excels on arithmetic, whereas wd1 excels on Knights-and-Knaves (Jiang et al., 12 May 2026). In cross-domain training, the vanilla fixed-block mix often hurts performance relative to single-domain RL and can even fall below the base model. By contrast, sample-conditioned Block-R1 yields consistent gains across all 13 tasks. With LLaDA-8B, Countdown improves from xx7 to xx8 xx9, GSM8K from θT\theta_T0 to θT\theta_T1 θT\theta_T2, and HumanEval from θT\theta_T3 to θT\theta_T4 θT\theta_T5; similar improvements are reported across all ten backbones, often in the θT\theta_T6–θT\theta_T7 percentage-point range (Jiang et al., 12 May 2026).

The dynamic-block results for b1 are reported on GSM8K, MATH500, Sudoku θT\theta_T8, and Countdown under zero-shot pass@1 with maximum lengths θT\theta_T9. Across Diffu-GRPO, GDPO, d1, and wd1, adding b1 consistently improves fixed-size block baselines. Examples include wd1 to wd1+b1 on GSM8K, from θS\theta_S0 to θS\theta_S1 θS\theta_S2; on Countdown, from θS\theta_S3 to θS\theta_S4; and on MATH500, from θS\theta_S5 to θS\theta_S6. Even on d1, b1 adds θS\theta_S7–θS\theta_S8 absolute (Jiang et al., 4 May 2026).

Coherence metrics in b1 are θS\theta_S9 and cc0, the proportion of descents. The reported average cc1 rises, for example from cc2 to cc3 on GSM8K, while cc4 increases from approximately cc5 to cc6. Correlation analysis further shows that higher cc7 bins correlate with higher accuracy, and b1 shifts hard examples out of negative-cc8 zones into positive ones (Jiang et al., 4 May 2026).

Ablations support the role of both entropy descent and block-ending rewards. Removing cc9 or cc00 hurts performance; in particular, the “w/o MED” setting lowers Countdown accuracy from cc01 to cc02. Efficiency overhead is reported as negligible, with training approximately cc03 slower and inference throughput remaining comparable or better (Jiang et al., 4 May 2026).

The stated limitations of b1 are that it still relies on approximate GRPO and block independence assumptions, and that it introduces an indicator token together with a slight cc04 complexity term, although this is described as dominated by self-attention. Future directions include alternative monotonicity metrics such as Kendall’s cc05, application to multimodal or code-reasoning diffusion models, and joint learning of dynamic block sizes during supervised or mixed RL/SFT training (Jiang et al., 4 May 2026). Within the broader Block-R1 program, a plausible implication is that future work will continue to unify training-time, sample-level block-size conditioning with inference-time dynamic block segmentation rather than treating either problem in isolation.

Topic to Video (Beta)

No one has generated a video about this topic yet.

Whiteboard

No one has generated a whiteboard explanation for this topic yet.

Follow Topic

Get notified by email when new papers are published related to Block-R1.