Why autoregressive and diffusion LMs can imitate each other (and why it still costs)
A claim from week 1, made easier to follow with a picture: the two model types can reach the same results, each at a cost.
Why this matters
In week 1 it was claimed that diffusion and autoregressive models are equivalent: each can reach the same results as the other, only at a higher cost. To make the claim easier to follow, here is a simple illustration.
The idea
Both model types do one thing: they assign a probability to every possible sentence. The difference is only in how they produce a sentence from that distribution.
What is going on. Both models were trained on the same text, where âItâs raining outside todayâ appears with some frequency. The autoregressive model remembers that frequency split into steps (âafter âItâs rainingâ, âoutsideâ 80% of the timeâ). The diffusion model remembers it as hole-filling (âbetween âItâsâ and âoutsideâ, ârainingâ 90% of the timeâ). Two different ways of storing the same fact. The fact (how often the sentence occurs) does not depend on the storage format, so anything one model can remember, the other can too.
Why this is always possible, not just in the example. Any distribution over sequences can be written as a product of ânext given previousâ terms. That is the chain rule of probability, not a property of neural networks. So whatever distribution a diffusion model produces, an autoregressive factorization of it exists, and a large enough autoregressive model can learn it. The other direction is easier: a masked diffusion model that unmasks exactly one position per round, left to right, is an autoregressive model. Autoregression is a special case of diffusion with a fixed unmasking order.
So what is the difference? The cost. An autoregressive model imitating diffusion has to write out the rounds as text: first â⢠⢠⢠â˘â, then âItâs ⢠outside â˘â, then the full sentence. Three drafts, word by word: 12 tokens instead of 4. A diffusion model imitating autoregression commits one position per round: 4 rounds instead of 2, and the parallelism is gone. Both can; both pay. There is also a cost you do not see immediately: what each one finds easy to learn. Local dependencies (âafter âItâsâ comes ârainingââ) are cheap for autoregression; global structure (âa paragraph has an opening, a middle, an endâ) is cheap for diffusion. This is the âyou wouldnât run it in polynomial time, youâd use the other oneâ remark from class.
One caveat. The equivalence is about ideal models with enough capacity and enough steps. Real models learn differently from the same data: autoregressive models train on correct text and then have to continue their own mistakes; parallel generation has the multimodality problem (each position picks something locally plausible, and together they do not fit). âWhat is possibleâ and âwhat actually happensâ are two different levels, and the distinction comes up everywhere in this field.
Why it matters for the course. Most of the papers we will read are about autoregressive models, because that is what most research uses. The equivalence is the reason this is fine: what we learn about how one kind of model learns, remembers and fails carries over to the other. The architecture sets the cost, not what can be learned.
Enjoy Reading This Article?
Here are some more articles you might like to read next:
