The basic diffusion recipe, train a denoiser, condition it on text, run it backward from noise, is the foundation. But the models in 2026 are not vanilla diffusion models. They have absorbed several refinements that significantly improved quality, speed, and prompt adherence. We are going to walk through the most important ones, because they show up everywhere in the company-by-company sections.
Refinement one: rectified flow and flow matching
The original diffusion math, from the DDPM paper, treats the forward process as a stochastic random walk, at every step you take a small random kick in some direction, accumulating to a curved, jittery path between the clean image and pure noise. The reverse process has to learn to undo that curved path. The curves make the problem harder than it needs to be. They mean the model has to learn a complicated, twisting trajectory through the latent space.
In 2022, a researcher at UT Austin named Xingchao Liu and his collaborators published a paper called 'Flow Straight and Fast: Learning to Generate and Transfer Data with Rectified Flow.' The idea was: instead of training the model to follow these curved paths, what if you trained it to follow straight lines from noise to data? Straight lines are easier to learn and easier to integrate at inference time. The math is closely related to diffusion but reformulated in a way that the field calls 'flow matching', the model is learning a vector field that smoothly transports points from a noise distribution to a data distribution.
The practical payoff is fewer sampling steps for the same quality. Where a traditional diffusion model might need fifty steps, a rectified flow model can often get there in twenty. Stable Diffusion 3 and Stable Diffusion 3.5 use rectified flow. So does FLUX. So do most of the newer video models. When you read that a model is 'flow matched' or uses 'rectified flow,' what they mean is: this model trains the network to push noise toward images along straighter trajectories than classical diffusion, and as a result it samples faster. From the user's perspective, you do not see anything different; from the engineering perspective, this is one of the biggest reasons the 2024 generation of models felt like a step change.
Refinement two: better text encoders, Text-to-Text Transfer Transformer (T5), and the long prompt revolution
The original Stable Diffusion used a text encoder called Contrastive Language-Image Pretraining (CLIP), developed by OpenAI in 2021. CLIP was a major breakthrough at the time, it learned to map images and text into a shared embedding space by training on hundreds of millions of image-caption pairs from the internet. CLIP is genuinely good at understanding the rough semantic content of a phrase. It knows what 'dog' means, it knows what 'cat' means, it knows what 'beach at sunset' looks like.
But CLIP has a serious limitation: it is not really a language model. It does not understand grammar or syntax very well. It tends to treat prompts as a bag of concepts rather than as structured sentences. If you write 'a red ball on top of a blue cube,' early Stable Diffusion would frequently give you a blue ball on top of a red cube, because CLIP did not strongly enforce which color went with which object. Compositional prompts, anything involving multiple objects with specific relationships, were a known weakness.
The fix turned out to be: use a real language model as your text encoder. Specifically, use T5, a large encoder model developed by Google, that has billions of parameters and a much deeper understanding of language structure. T5 is the kind of model that knows the difference between 'the cat chased the dog' and 'the dog chased the cat.' It understands prepositions, nesting, modifiers. When you swap CLIP for T5, your model's prompt following improves dramatically.
Modern models do not use just one text encoder; they use several in combination. Stable Diffusion 3 uses three: two CLIP variants (for visual concept alignment, which they are still good at) and T5-XXL (for syntactic and structural understanding). FLUX uses a similar combination. The text from your prompt gets fed through all of them, the resulting embeddings are concatenated, and the diffusion model is conditioned on the combined representation. The reason your prompts now work the way you expect, getting the colors right, the spatial relationships right, the counts of objects right, is largely because of T5 and its peers replacing pure CLIP.
Refinement three: MM-DiT and the dual-stream architecture
In 2024, Stability AI published the Stable Diffusion 3 paper, written by Patrick Esser and the team that had stayed at the company. The paper introduced an architectural variant called MM-DiT, for Multimodal Diffusion Transformer. This is the architecture that FLUX, SD3, and a long list of newer models all use, and it is worth understanding because it represents a meaningful departure from the original DiT recipe.
In a vanilla DiT, the text encoder produces an embedding, and that embedding gets injected into the transformer through cross-attention layers, the image patches attend to the text tokens and pull in semantic information, but the text and image streams are not really equals. The text is auxiliary information that conditions the image generation. The image is the main thing being processed.
In MM-DiT, the architecture is genuinely multimodal. There are two parallel streams running through the transformer: one for image patches, one for text tokens. They have separate weights, the image stream is processed by image-specific parameters, the text stream by text-specific parameters, but they exchange information through joint attention layers at every step. The transformer is reasoning about words and pixels at the same time, at every level of abstraction. The text representation gets refined by what is happening in the image just as the image representation gets refined by what is in the text.
The practical effect is dramatically improved alignment between prompt and output, especially for complex prompts that involve text rendering, spatial layout, or compositional structure. MM-DiT is a big part of why FLUX can generate images with legible text in them, something that earlier diffusion models were notoriously bad at. It is also a big part of why models like Nano Banana Pro can take fourteen reference images plus a text prompt and produce a coherent composite, the architecture is built to handle multimodal inputs as first-class citizens, not as bolted-on conditioning.