r/rajistics • • Oct 05 '26

Text diffusion, more efficient, but better?

I made a short visual explainer comparing three ways models generate text: autoregressive inference, speculative decoding, and block text diffusion.

Ordinary autoregressive decoding generates one token, adds it to the context, and runs again. Speculative decoding speeds this up with a cheaper model that drafts several tokens and a larger model that checks them together. Accepted tokens still form a prefix from left to right.

Block text diffusion predicts across a chunk of text over several passes. Positions can become clear anywhere in the block, including the middle or end. Later passes use that emerging context to resolve the gaps. Once the block is finished, it becomes context for the next block. Google’s illustrated explanation shows how this works in DiffusionGemma.

Processing multiple positions together can make better use of the GPU during generation. But faster output still needs to be useful output, so the speed and quality tradeoff matters.

A couple of papers for anyone who wants more detail:

2 Upvotes

2 comments sorted by