Guided Star-Shaped Masked Diffusion
Viacheslav Meshchaninov, Egor Shibaev, Artem Makoian, Ivan Klimov, Danil Sheshenya, Andrei Malinin, Nikita Balagansky, Daniil Gavrilov, Aibek Alanov, Dmitry Vetrov
TL;DR
Guided Star-Shaped Masked Diffusion introduces a star-shaped forward process that enables token revision in discrete diffusion models and pairs it with a lightweight, error-targeted predictor to selectively remask likely erroneous tokens. By predicting a full clean hypothesis hat{x}_0 and refining via targeted remasking, the method achieves substantial quality gains in few-step generation while remaining compatible with pre-trained masked diffusion language models. The approach is validated across text and code generation, showing strong performance improvements over traditional MDLM and ReMDM baselines, including improvements on large-scale instruction-tuned models. Practical implications include improved efficiency for constrained-generation scenarios and demonstrated applicability to both natural language and programming tasks, with reproducibility supported by released code.
Abstract
The performance of pre-trained masked diffusion models is often constrained by their sampling procedure, which makes decisions irreversible and struggles in low-step generation regimes. We introduce a novel sampling algorithm that works with pre-trained models and, after a lightweight fine-tuning of a single layer, significantly improves sample quality and efficiency. Our method reformulates the generation process using a star-shaped paradigm, which inherently allows for error correction. To make this process effective, we augment it with a learnable re-masking scheduler that intelligently identifies and revises likely errors. This approach yields a substantial quality boost, particularly when using a small number of sampling steps. We extensively ablate key components of our approach and show its usability in different scenarios. In comprehensive experiments on text, and code generation, our sampling algorithm outperforms or matches existing methods.
