Search or Accelerate: Confidence-Switched Position Beam Search for Diffusion Language Models

Mingyu Cao, Alvaro Correia, Christos Louizos, Shiwei Liu, Lu Yin
2/11/2026
cs.CLcs.AI

No official code found. Best implementation: duterscmy/SOAR (9 stars, last commit 2026-04-03).

Abstract

Diffusion Language Models (DLMs) generate text by iteratively denoising a masked sequence, repeatedly deciding which positions to commit at each step. Standard decoding follows a greedy rule: unmask the most confident positions, yet this local choice can lock the model into a suboptimal unmasking order, especially on reasoning-heavy prompts. We present SOAR, a training-free decoding algorithm that adapts its behavior to the model's uncertainty. When confidence is low, SOAR briefly widens the search over alternative unmasking decisions to avoid premature commitments; when confidence is high, it collapses the search and decodes many positions in parallel to reduce the number of denoising iterations. Across mathematical reasoning and code generation benchmarks (GSM8K, MBPP, HumanEval) on Dream-7B and LLaDA-8B, SOAR improves generation quality while maintaining competitive inference speed, offering a practical way to balance quality and efficiency in DLM decoding.

View on arXivView PDF

Code Implementations(1)

duterscmy/SOARCommunity72%

Official Pytorch Implement for "Search or Accelerate: Confidence-Switched Position Beam Search for Diffusion Language Models"

90Shell, PythonFeb 12, 20266 months ago

Similar Papers

Cite this paper

@article{cao2026search,
  title  = {Search or Accelerate: Confidence-Switched Position Beam Search for Diffusion Language Models},
  author = {Mingyu Cao and Alvaro Correia and Christos Louizos and Shiwei Liu and Lu Yin},
  year   = {2026},
  eprint = {2602.10953},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2602.10953v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2602.10953.svg)](https://codeofpaper.com/paper/2602.10953)

Discussion