Accelerated Sampling from Masked Diffusion Models via Entropy Bounded Unmasking

Heli Ben-Hamu, Itai Gat, Daniel Severo, Niklas Nolte, Brian Karrer

arXiv:2505.24857 · 2026-08-15 공개 · arXiv · PDF

language-modeling math-reasoning error-analysis masked-diffusion-models sudoku maze-navigation coding-reasoning entropy-bounded-sampling

Abstract

Recent masked diffusion models (MDMs) have shown competitive performance compared to autoregressive models (ARMs) for language modeling. While most literature has focused on performance enhancing sampling procedures, efficient sampling from MDMs has been scarcely explored. We make the observation that often a given sequence of partially masked tokens determines the values of multiple unknown tokens deterministically, meaning that a single prediction of a masked model holds additional information unused by standard sampling procedures. Based on this observation, we introduce EB-Sampler, a simple drop-in replacement for existing samplers, utilizing an Entropy Bounded unmasking procedure that dynamically unmasks multiple tokens in one function evaluation with predefined approximate error tolerance. We formulate the EB-Sampler as part of a broad family of adaptive samplers for which we provide an error analysis that motivates our algorithmic choices. EB-Sampler accelerates sampling from current state of the art MDMs by roughly 2-3x on standard coding and math reasoning benchmarks without loss in performance. We also validate the same procedure works well on smaller reasoning tasks including maze navigation and Sudoku, tasks ARMs often struggle with.

한국어 요약

한 줄 요약

EB-Sampler는 확률적 마스킹을 활용해 MDM 샘플링 속도를 2~3배 향상시키는 적응형 샘플러이다.

핵심 기여도

핵심 아이디어

기존 샘플러는 마스킹된 토큰을 순차적으로 샘플링하지만, 이 논문은 마스킹된 토큰들이 결정적으로 여러 토큰의 값을 결정할 수 있다는 관찰을 바탕으로, 단일 예측에서 추가 정보를 활용하는 새로운 샘플링 전략을 제안한다. 이는 토큰 간의 결합 의존성을 고려하지 않고 독립적으로 샘플링하는 기존 방법과 달리, **낮은 엔트로피와 낮은 모델 오차를 가진 토큰들을 병렬로 샘플링**함으로써 샘플링 효율성을 높인다.

EB-Sampler는 **Entropy Bounded Unmasking**이라는 절차를 통해, 토큰 샘플링 시 **예측된 엔트로피가 특정 임계값 이하인 경우 여러 토큰을 동시에 샘플링**하도록 한다. 이는 샘플링 과정에서 **함수 평가 수(NFE)**를 줄이며, 샘플링 효율성을 향상시킨다.

기술적 접근법

주요 결과

의의 및 한계

EB-Sampler는 MDM 샘플링의 효율성 문제를 해결하는 **이론적으로 타당한 적응형 샘플러**로, 기존 샘플러 대비 샘플링 속도를 2~3배 향상시키며 성능을 유지한다. 특히, **결합 의존성을 고려한 샘플링 전략**은 MDM의 샘플링 과정에서 발생할 수 있는 오류를 줄이는 데 기여한다. 이는 MDM이 대규모 언어 생성에 활용될 수 있는 가능성을 열어준다.

하지만, **모델 오차와 결합 의존 오차의 임계값 설정**은 실험적 조정이 필요하며, **임계값 선택에 따라 샘플링 성능이 변동**할 수 있다. 또한, **모델 구조에 따라 샘플링 효율성이 달라질 수 있는 가능성**이 있다.

실용적 활용

EB-Sampler는 **코드 생성, 수학 문제 해결, 미로 탐색, 수수께끼 해결** 등 다양한 추론 태스크에서 활용 가능하다. 특히, **LLM 대비 샘플링 효율성이 높은 MDM**이 필요한 산업 분야(예: 실시간 코드 생성, 자동화된 수학 문제 풀이)에서 유용하게 사용될 수 있다.