diffusion language model — unmask the whole sequence, both directions
A diffusion language model fills a masked sentence from both directions. Each step scores every still-masked position from the whole sequence, including positions that come later, and unmasks the highest score. While any position stays masked the masked count falls by one, and an empty mask stays empty. The next step receives the updated tokens and the updated mask, and it receives no causal cache. This is not a drafter that proposes a tail and then accepts a prefix of it.
A diffusion language model starts with every position masked. Each step scores every still-masked position from the whole sequence, including positions that come later, and reveals the highest score. The next step sees the updated tokens and the updated mask. It does not receive a causal cache from the step before.
While any position stays masked, the masked count falls by one. Once the mask is empty, another step changes nothing.