· Masked / discrete diffusion, Post-training · Source · Code (Mention in inspected excerpt)

SLIM-RL: Risk-Budgeted Random-Masking RL for Diffusion LLMs Without Trajectory Slicing

SourceFull paper

Article overview

Verdict

SLIM-RL is a credible trace-free RL method for block-wise diffusion LLMs, improving accuracy and data efficiency over TraceRL under the reported conditions. Its advantage shrinks with smaller blocks, while limits for larger blocks and longer responses remain open.

Main idea

The method combines τ-budget dynamic decoding with variance-reduced RL: instead of reconstructing full trajectories, it selects a safe token prefix and optimizes the policy using sequence-level probability ratios, deterministic quadrature, and monotonic masking.

Mechanism

The state is a partially masked sequence with per-position confidence/uncertainty and denoising probabilities.

1. TAUBUDGETDECODE keeps candidates with confidence above τ, sorts them by uncertainty, and commits the largest prefix whose summed uncertainty is at most Bs=m(1−τ). If none is feasible, it commits the highest-confidence masked token.
2. The RL ratio is computed at sequence level as the geometric mean of per-position denoising ratios over masked tokens.
3. Training uses group-centered rewards, an unnormalized advantage, and a clipped objective; the exact clipping formula is not specified in the records.
4. Random masking-level variance is reduced with deterministic Gauss–Legendre quadrature; removing the third node is reported to lower MATH500.
5. Masking is allocated with a decreasing cosine schedule: earlier blocks receive more masking while the mean remains the global level t; the spread δ is bounded so all rates stay in [0,1].
6. Dynamic sampling increases tokens-per-forward, while τ-budget decoding can trade throughput for accuracy.

Reproduction plan: (1) implement τ-budget decoding; (2) compute sequence-level ratios over masked corruptions; (3) replace random masking-level sampling with Gauss–Legendre quadrature; (4) add the unnormalized advantage and decreasing block mask schedule; (5) compare with TraceRL on SDAR at block sizes 4 and 16.

What this is useful for

The method is most useful for block-wise diffusion LLMs with dynamic unmasking, especially on math and code tasks where accuracy and data cost matter. The τ-budget decoder transfers across LLaDA, Dream, and SDAR without additional training.

Risks / not proven

Results depend on block size: the advantage over TraceRL narrows sharply from block size 16 to 4. Decoding can reduce throughput in exchange for accuracy. The records do not provide the exact clipping-objective formulas, the complete hyperparameter set, or validation on long responses; conclusions should not be extended beyond the reported architectures, tasks, and conditions.

Full abstract

Reinforcement learning for diffusion large language models (dLLMs) has largely moved to trajectory-aware methods. The current state of the art, TraceRL, holds that random masking is mismatched with the model's inference trajectory, and it reconstructs that trajectory during training by slicing each rollout into up to K/s trajectory-aligned training samples, a cost that grows with the block size K. We show that this mismatch can be mitigated without reconstructing the trajectory. Our method, SLIM-RL, bounds the commit risk of each rollout step with a tau-budget decoder, reducing aggregate commit risk in the training data. During optimization, SLIM-RL trains on these risk-controlled rollouts with a trace-free random-masking objective that adapts variance-reduction tools, combining sequence-level importance sampling, deterministic quadrature over masking levels under a mean-preserving, monotonically decreasing per-block mask schedule that we introduce. On SDAR-4B, SLIM-RL matches TraceRL's best MATH500 accuracy on only 0.46x its training samples at block size 16, improving over TraceRL by 6.32% on MATH500 and 11.05% on GSM8K under matched dynamic sampling. At block size 4, the 4B SLIM-RL surpasses the larger LLaDA-8B and Dream-7B dLLMs on math, exceeding LLaDA-8B by 10.76% on MATH500 while staying below the autoregressive Qwen2.5-7B. On code, it improves over TraceRL by 4.20% on MBPP and 3.65% on HumanEval. The tau-budget decoder transfers training-free across LLaDA, Dream, and SDAR. The source code is available at https://github.com/laolaorkkkkk/SLIM-RL .

Source

Paper resources

Code

BibTeX · RIS · Markdown · JSON