The TWIML AI Podcast
The TWIML AI Podcast

The Race to Production-Grade Diffusion LLMs with Stefano Ermon - #764

Today, we're joined by Stefano Ermon, associate professor at Stanford University and CEO of Inception Labs to discuss diffusion language models. We dig into how diffusion approaches—traditionally used for images—are being adapted for text and code generation, the technical challenges of applyin

Featured Speakers

Stefano Ermon Guest

Topics Discussed

Episode Summary

Executive Summary: Stefano Ermon explains how diffusion models moved from image generation to production-grade text/code LLMs. Inception’s Mercury 2 uses masked denoising and iterative refinement to deliver GPT-class quality at much lower latency and cost, with strongest gains in code, agents, and other real-time applications. He argues inference-time efficiency—not just training scale—is now the key battleground.

Main Topics: From image diffusion to text diffusion (Priority: 5/5): Ermon traces the evolution from early diffusion work in images to adapting the method for discrete language tokens, emphasizing the conceptual leap from continuous pixels to discrete words/code. Why diffusion is better at inference (Priority: 5/5): The central claim is that diffusion language models can generate multiple tokens per step, making them faster and cheaper to serve than autoregressive models, especially in production. How diffusion works for discrete text (Priority: 4/5): He describes masking tokens as the text analog of noise, training a model to reconstruct missing tokens out of order using context on both sides. Reasoning, test-time scaling, and controllability (Priority: 4/5): Diffusion offers a new axis for inference-time scaling via denoising steps, while still supporting reasoning traces and potentially better controllability than token-by-token generation. Training, RL post-training, and serving challenges (Priority: 5/5): Pretraining is conceptually similar to standard LLMs except for the loss, but RL and production serving require new methods and infrastructure not yet broadly available. Product-market fit: latency-sensitive applications (Priority: 4/5): The strongest adoption is in coding assistants, voice, customer support, educational agents, and other real-time workflows where speed and cost matter most. Limits, competition, and future outlook (Priority: 4/5): Mercury 2 is competitive with speed-optimized frontier models but not yet the absolute best frontier model; Ermon expects diffusion to carve out a substantial market and possibly challenge autoregressive LLMs more broadly.

Key Arguments: Diffusion language models scale better at inference than autoregressive models, producing more tokens per GPU and lowering serving cost. The discrete nature of text makes diffusion harder than image generation because there is no natural continuous geometry between words/tokens. A token-masking denoising objective is an effective discrete analog of image diffusion and enables out-of-order generation. Diffusion can generate multiple tokens at once, so 1,000 output tokens do not require 1,000 model evaluations as in autoregressive decoding. Inference-time scaling is becoming more important than pretraining-scale scaling because production economics are dominated by latency and cost per token. Mercury 2 matches the quality of speed-optimized frontier models while running significantly faster, creating a better quality-speed Pareto point. RL post-training may benefit disproportionately from diffusion because faster inference reduces rollout cost and opens up new optimization strategies. Current deployment advantage comes from custom serving infrastructure; existing autoregressive serving stacks are not sufficient for diffusion models. The best near-term use cases are latency-sensitive, human-in-the-loop applications such as coding autocomplete, voice, and agents. Diffusion may offer stronger controllability because the full output exists from the start, enabling constraint-aware steering during generation.

Data Points: Inference speedup: 5x-10x faster - Mercury 2 versus comparable autoregressive models, depending on comparison target and task. Early text diffusion efficiency: ~10x fewer neural network evaluations - Initial GPT-2-scale research result comparing diffusion text generation to autoregressive generation at similar quality. Context length: 128K - Mercury 2 context window mentioned during discussion of long-context limitations. Model scale reference: GPT-2 size - The initial academic diffusion-for-text experiment used a transformer at GPT-2 scale. Product launch: Mercury 2 launched a couple of days ago - Newest commercial diffusion language model release discussed by Ermon. Research timeline: 2019 - Year Ermon says his lab did early work on diffusion models. Field start: 2014 or so - Ermon references beginning work on generative models around this time. Comparison target: Speed-optimized frontier models - Mercury 2 is said to match models like Haiku, Flash, and Mini in quality.

Pivotal Quotes: "the price per token or the what's needed per token becomes the key metric that you care about." — Stefano Ermon: Explaining why inference efficiency is now central for production LLMs. "we can just start with pure noise and then you apply this denoising network a bunch of times, and at the end, you get a really nice image." — Stefano Ermon: Describing the core intuition behind diffusion models and how it transferred from images to text. "the model can output many tokens at every step. And so ... these models can be much, much more efficient." — Stefano Ermon: Explaining why diffusion decoding is faster than autoregressive token-by-token generation.

Implications: Diffusion LLMs could reshape the market by making high-quality AI much cheaper and faster for real-time apps. Expect adoption in coding, voice, and agents first, with broader frontier competition depending on training, RL, and serving breakthroughs.

🔓 Sign Up for Unlimited Episode Search

About The TWIML AI Podcast

View all episodes from The TWIML AI Podcast