1. Home
  2. AI Engineer

Jun 4

How text diffusion unlocks 10x faster LLMs

Brendan O’Donoghue

28 min → 2:06

Overview

Brendan O’Donoghue of Google DeepMind explains how text diffusion offers an alternative to autoregressive language models, delivering lower latency, self-correction, and seamless editing.

3 things to know

Autoregressive vs. Diffusion LLMs

Traditional autoregressive models generate text sequentially, which makes them highly memory-bound on modern hardware because they must stream the model weights from high-bandwidth memory to the processors for every single token.

More

Diffusion models, by contrast, initialize a full canvas of noise and refine all tokens jointly. This reduces the number of memory transfers required per block of text, unlocking massive latency advantages.

▶ Watch at 3:04

Bidirectional Attention and Self-Correction

Because a diffusion model refines the entire sequence simultaneously, tokens can attend to both past and "future" tokens.

More

If a model generates incorrect reasoning early in its process, it can detect the error during later refinement steps and retroactively correct the beginning of the text, a feat sequential autoregressive models cannot achieve without separate reasoning loops.

▶ Watch at 10:38

Adaptive Computation

Unlike autoregressive generation, which scales compute linearly with output length, text diffusion allows the model to dynamically determine how many denoising passes are needed.

More

Simple tasks (such as retrieving memorized facts) can converge in as few as 4 steps, while complex reasoning tasks can run for up to 30+ steps before the model decides it has finished.

▶ Watch at 7:42

Also in this episode

Text Inpainting and In-Place Editing

Just as image diffusion models can "inpaint" or edit a specific masked region of an image, text diffusion models can perform in-place editing.

More

Users can target specific areas of code or document paragraphs to modify, and the model will seamlessly rewrite only the selected portion while keeping the rest of the context completely static and structurally cohesive.

▶ Watch at 5:11

Quotes

“If you can do say 20 forward passes to generate 256 tokens, you'll be doing 10 times fewer memory transfers than an autoregressive model... and if you are truly memory bound, then you'll be 10 times faster.”

▶ Watch at 7:42

“The main disadvantage it has, and the reason why it's not kind of used everywhere right now, is lower throughput for large batches.”

▶ Watch at 5:11

“In autoregressive LLMs, you do this one token at a time... whereas in diffusion, it'll initialize a long sequence of tokens... and iteratively refine that canvas to remove the noise.”

▶ Watch at 3:04

1 more quote

“This ability to do bidirectional reasoning... and also to use that information to do self-correction... is a property that text diffusion models have.”

▶ Watch at 10:38

Full summary

Episode Overview

  • This episode introduces the concept of Text Diffusion, exploring how applying diffusion-based denoising techniques to text generation offers a powerful alternative to traditional autoregressive language models.
  • The discussion highlights the architectural and hardware-level differences between autoregressive models (generating text one token at a time) and diffusion models (generating block-level text jointly over iterative refinement steps).
  • It covers the unique capabilities unlocked by text diffusion, including significantly lower latency, bidirectional attention with self-correction, adaptive computation, and seamless in-place editing.
  • This content is highly relevant for AI engineers and researchers looking to understand next-generation LLM architectures, optimization strategies for GPUs/TPUs, and the trade-offs between latency and batch throughput.

Key Concepts

  • Autoregressive vs. Diffusion LLMs: Traditional autoregressive models generate text sequentially, which makes them highly memory-bound on modern hardware because they must stream the model weights from high-bandwidth memory to the processors for every single token. Diffusion models, by contrast, initialize a full canvas of noise and refine all tokens jointly. This reduces the number of memory transfers required per block of text, unlocking massive latency advantages.
  • Bidirectional Attention and Self-Correction: Because a diffusion model refines the entire sequence simultaneously, tokens can attend to both past and "future" tokens. If a model generates incorrect reasoning early in its process, it can detect the error during later refinement steps and retroactively correct the beginning of the text, a feat sequential autoregressive models cannot achieve without separate reasoning loops.
  • Adaptive Computation: Unlike autoregressive generation, which scales compute linearly with output length, text diffusion allows the model to dynamically determine how many denoising passes are needed. Simple tasks (such as retrieving memorized facts) can converge in as few as 4 steps, while complex reasoning tasks can run for up to 30+ steps before the model decides it has finished.
  • Text Inpainting and In-Place Editing: Just as image diffusion models can "inpaint" or edit a specific masked region of an image, text diffusion models can perform in-place editing. Users can target specific areas of code or document paragraphs to modify, and the model will seamlessly rewrite only the selected portion while keeping the rest of the context completely static and structurally cohesive.

Quotes

  • At 3:04 - "In autoregressive LLMs, you do this one token at a time... whereas in diffusion, it'll initialize a long sequence of tokens... and iteratively refine that canvas to remove the noise." - Explaining the fundamental difference in how text is generated between the two architectures.
  • At 5:11 - "The main disadvantage it has, and the reason why it's not kind of used everywhere right now, is lower throughput for large batches." - Highlighting the primary engineering bottleneck that currently prevents text diffusion from replacing autoregressive models in massive, multi-user cloud serving environments.
  • At 7:42 - "If you can do say 20 forward passes to generate 256 tokens, you'll be doing 10 times fewer memory transfers than an autoregressive model... and if you are truly memory bound, then you'll be 10 times faster." - Illustrating the hardware-level bottleneck (memory bandwidth vs. compute) that makes diffusion highly efficient for low-latency, batch-size-one applications.
  • At 10:38 - "This ability to do bidirectional reasoning... and also to use that information to do self-correction... is a property that text diffusion models have." - Explaining the cognitive and logical advantages of non-sequential generation, allowing the model to naturally "think ahead" and fix mistakes.

Takeaways

  • Target Text Diffusion for On-Device Applications: Use text diffusion models for environments like mobile devices, edge devices, or robotics where serving batch sizes are small (typically batch size 1) and raw, low-latency generation is the primary requirement.
  • Leverage Self-Correction for Logical Tasks: Consider utilizing diffusion-based architectures for complex mathematical, coding, or reasoning problems where sequential models frequently fail due to their inability to backtrack and correct early logical missteps.
  • Implement for Rich Document and Code Editors: Apply text diffusion in collaborative or interactive editing applications to enable fast, contextual, in-place text insertions and code refactoring without the need to regenerate unchanged text sequentially.

Watch the full episode 28 min

Read along with the audio summary

Generating text one word at a time is holding modern language models back on today's computer chips, and a technique borrowed from image generation offers a powerful alternative. This episode, which came out on June 4, 2026, features a discussion for artificial intelligence engineers and researchers exploring next generation language model architectures. By the end of this summary, you will know how text diffusion models can cut memory bottlenecks, correct their own mistakes, and rewrite documents in place.

How shaping an entire block of text at once unlocks massive speed advantages over word by word generation.

Traditional autoregressive large language models, which are AI systems that predict the next word in a sequence, are heavily slowed down by memory limits on modern hardware. Diffusion models work more like a sculptor shaping a whole block of clay at once, starting with a full canvas of random noise and refining all the tokens together over several steps. If a diffusion model takes 20 forward passes to generate 256 tokens, it performs 10 times fewer memory transfers than an autoregressive model, making it 10 times faster when memory is the bottleneck. You can use text diffusion models on mobile phones, edge devices, or robotics where you are only running a single request at a time and raw, low latency speed is your main requirement.

This simultaneous generation does more than just speed up hardware, because it also changes how a model reasons.

How looking both forward and backward lets a language model fix its own early mistakes.

Sequential models can only look at words they have already written, meaning a single early error can derail everything that follows without separate reasoning loops to catch it. Because a diffusion model refines the whole sequence at the same time, it uses bidirectional attention, where every token pays attention to both past and future tokens across the canvas. Consider using diffusion architectures for complex math, coding, or logic problems where sequential models frequently fail because they cannot backtrack to fix early missteps.

How text diffusion adjusts its own workload to match the difficulty of your prompt.

Text diffusion instead uses adaptive computation, allowing the model to dynamically decide how many denoising passes, or cleanup steps, a particular task needs. Simple jobs, like pulling up a memorized fact, can finish in as few as four steps, while hard reasoning tasks might run for thirty steps or more before the model decides it is done.

How borrowing a trick from photo editing lets you rewrite code and documents right in place.

Just as image diffusion tools let you highlight a specific part of a picture to paint over it, text diffusion brings in-place editing to writing and programming. Instead of regenerating an entire file from top to bottom, a user can mask a specific paragraph or block of code for the model to modify. You can apply text diffusion in interactive document or code editors to give users fast, contextual insertions and code refactoring without rewriting the unchanged text.

Text diffusion trades the high multi-user batch throughput of sequential models for raw speed, adaptive effort, and self correction on single requests. When memory transfers are your bottleneck, refining a whole canvas of tokens at once can make generation ten times faster.

More from AI Engineer

Related Episodes