Stopping Computation for Converged Tokens in Masked Diffusion-LM Decoding

Fuente: arXiv
Enregistré dans:
Détails bibliographiques
Auteurs principaux: Oba, Daisuke, Bollegala, Danushka, Kaneko, Masahiro, Okazaki, Naoaki
Format: Preprint
Publié: 2026
Sujets:
Accès en ligne:
Tags: Ajouter un tag
Pas de tags, Soyez le premier à ajouter un tag!
_version_ 1866909034602299392
author Oba, Daisuke
Bollegala, Danushka
Kaneko, Masahiro
Okazaki, Naoaki
author_facet Oba, Daisuke
Bollegala, Danushka
Kaneko, Masahiro
Okazaki, Naoaki
contents Masked Diffusion Language Models generate sequences via iterative sampling that progressively unmasks tokens. However, they still recompute the attention and feed-forward blocks for every token position at every step -- even when many unmasked tokens are essentially fixed, resulting in substantial waste in compute. We propose SureLock: when the posterior at an unmasked position has stabilized across steps (our sure condition), we lock that position -- thereafter skipping its query projection and feed-forward sublayers -- while caching its attention keys and values so other positions can continue to attend to it. This reduces the dominant per-iteration computational cost from $O(N^2d)$ to $O(MNd)$ where $N$ is the sequence length, $M$ is the number of unlocked token positions, and $d$ is the model dimension. In practice, $M$ decreases as the iteration progresses, yielding substantial savings. On LLaDA-8B, SureLock reduces algorithmic FLOPs by 30--50% relative to the same sampler without locking, while maintaining comparable generation quality. We also provide a theoretical analysis to justify the design rationale of SureLock: monitoring only the local KL at the lock step suffices to bound the deviation in final token probabilities. Our project page is available at https://daioba.github.io/surelock .
format Preprint
id arxiv_https___arxiv_org_abs_2602_06412
institution arXiv
publishDate 2026
record_format arxiv
spellingShingle Stopping Computation for Converged Tokens in Masked Diffusion-LM Decoding
Oba, Daisuke
Bollegala, Danushka
Kaneko, Masahiro
Okazaki, Naoaki
Computation and Language
Machine Learning
Masked Diffusion Language Models generate sequences via iterative sampling that progressively unmasks tokens. However, they still recompute the attention and feed-forward blocks for every token position at every step -- even when many unmasked tokens are essentially fixed, resulting in substantial waste in compute. We propose SureLock: when the posterior at an unmasked position has stabilized across steps (our sure condition), we lock that position -- thereafter skipping its query projection and feed-forward sublayers -- while caching its attention keys and values so other positions can continue to attend to it. This reduces the dominant per-iteration computational cost from $O(N^2d)$ to $O(MNd)$ where $N$ is the sequence length, $M$ is the number of unlocked token positions, and $d$ is the model dimension. In practice, $M$ decreases as the iteration progresses, yielding substantial savings. On LLaDA-8B, SureLock reduces algorithmic FLOPs by 30--50% relative to the same sampler without locking, while maintaining comparable generation quality. We also provide a theoretical analysis to justify the design rationale of SureLock: monitoring only the local KL at the lock step suffices to bound the deviation in final token probabilities. Our project page is available at https://daioba.github.io/surelock .
title Stopping Computation for Converged Tokens in Masked Diffusion-LM Decoding
topic Computation and Language
Machine Learning
url https://arxiv.org/abs/2602.06412