Skip to content

Diffusion Models Are Learning to Spend Compute Where It Counts

#diffusion-models #preference-tuning #video-generation #mixture-of-experts #controllable-generation #reinforcement-learning

Diffusion Models Are Learning to Spend Compute Where It Counts ​

A modern generative model doesn't see a prompt. It sees tokens. Identity embeddings, depth maps, scribbles, pose skeletons, motion video: each one gets tokenized and appended to the input sequence. Stack four or five of those in a production pipeline and conditioning stops being an accessory. It becomes the dominant compute cost, and a large share of those tokens describes things the previous frame already said.

Seven papers landed this cycle with the same underlying complaint and different fixes. Some prune the condition stream. Some pick better training prompts. Some reuse parameters instead of buying new ones. What connects them is a shared premise: diffusion quality has stopped being the bottleneck, and efficiency has become the thing that decides whether a model ships.

Condition tokens are where the bill comes from ​

Video codecs solved this problem in the 1990s. An encoder doesn't retransmit every pixel of every frame. It codes what changed and throws away the rest. CodecOPSD applies the same reasoning to condition tokens: score them for spatiotemporal redundancy, keep the ones that carry genuinely new information, discard the rest.

Pruning alone degrades quality, so the second half of the paper matters more than the first. On-policy self-distillation trains a DiT adapter to reproduce the full-condition output while only ever seeing pruned conditions. The student learns the codec's pruning pattern instead of fighting it. That's the difference between a heuristic that degrades output and an adapter that internalizes it.

The headline numbers: 16 condition modalities, 66% of condition tokens pruned on average, denoising 2x faster, KV cache down 73% in cache mode. A 2x speedup turns a 40-second render into 20 seconds, and 73% less KV cache is what lets you hold longer sequences in the same VRAM. That second number matters more for video than the first, because context length is the constraint that actually stops people from generating longer clips.

The result also scales the right way. Gains grow with more condition modalities, more frames, and higher resolution, which means the pipelines that hurt most are the ones that benefit most. The authors report the same effect when they bolt it onto existing pretrained image and video models, so you aren't locked into their backbone.

Prompt selection beats prompt volume ​

Preference tuning spends most of its compute generating candidate images. Training prompts are still sampled uniformly at random, which means a good fraction of that GPU time goes into images that teach the model almost nothing.

SPROUT splits the problem into a utility score, an estimator of that score, and a batch selection rule. Under direct group preference optimization, the utility of a prompt is the norm of the gradient the objective produces from that prompt's group of images. A text-only model predicts that score for every prompt in the pool, including prompts it has never seen images for, and gets refit after each iteration on observed utilities. A randomized acceptance rule then turns predictions into a batch. No images get generated beyond the ones used for training.

Fine-tuning Stable Diffusion 1.5 with DGPO on GenEval, SPROUT matches the final score of uniform sampling in about 44% of the iterations. That's close to halving your GPU bill for the same endpoint. The result holds against four held-out reward models that were never used during selection, and the method ranking survives the move to DPG-Bench and T2I-CompBench++.

I've watched prompt-sampling ablations fall apart the moment the reward model changed, which is the failure mode that makes these tricks unusable in practice. The held-out reward models are the experiment that matters here, not the 44%.

Quick Take: Three of these papers cut three different kinds of waste, tokens, prompts, and parameters, and each one buys back roughly 2x without a quality drop.

The baseline drift hiding inside forward RL ​

Forward-diffusion RL has become the default way to align diffusion models because it samples with a deterministic ODE and never backpropagates through the trajectory. Cheap, stable enough, and it works. The iTDM paper argues that most of these methods are signed reward-weighted regression in disguise: they regress the trainable policy velocity onto rollouts from a behavior distribution and rely on baseline subtraction to cancel the reward offset.

That subtraction implicitly assumes the policy velocity equals the behavior marginal velocity. The assumption breaks under classifier-free guidance rollouts, under offline or off-policy updates, and under imperfect online self-consistency. When it breaks, baseline invariance is gone and a baseline-induced gradient drift creeps into training. It doesn't blow up immediately. It drifts.

iTDM takes the infinitesimal limit of trajectory distribution matching toward a time-local reward-guided target using the posterior-score identity. What comes out is a sample-level gradient anchored at the behavior velocity, with no extra reward-tilted target score to learn. An online auxiliary denoiser tracks that velocity, and at its optimum you get exact baseline invariance across online and offline RL.

On GenEval2 the method reaches 0.87 without collapse while converging nearly 3x faster than competing approaches. A 3x convergence speedup means the difference between a two-day alignment run and a six-hour one.

Control relations, not just regions ​

Attention-control methods for text-to-image mostly answer one question: where should this object appear? They're much worse at how objects interact. Relation tokens like "holding," "left of," or "looking at" end up assigning high attention to regions that have nothing to do with the interaction, and you get missing or wrong relationships.

Graph2Scene treats a scene graph as the control signal. Elements are nodes, relations are edges, and the element-relation dependencies translate into selective attention guidance. Each element gets grounded to its region, and the relational interactions get guided between the involved elements. It's training-free.

The interesting design decision is the relaxation schedule. Control duration adapts to scene complexity, and graph guidance loosens progressively during denoising so the model isn't over-constrained late in the trajectory. On ConceptMix, relationship accuracy goes from 0.59 to 0.84 against the strongest FLUX.1-based regional-control baseline. That's a jump from "usually wrong" to "usually right" on the hardest part of compositional generation, and it comes from a method you can bolt onto an existing model without a training run.

Key numbers from this batch

66% of condition tokens pruned, with denoising 2x faster and KV cache down 73%

44% of iterations needed for SPROUT to match uniform sampling on GenEval

0.87 on GenEval2 with iTDM, converging about 3x faster than prior methods

Relationship accuracy 0.59 to 0.84 on ConceptMix with Graph2Scene

1.05B active parameters beating 12B on GenEval with DyLoMo-DiT

Reusing parameters instead of buying more ​

Mixture-of-experts DiTs expand parameter capacity while holding per-token compute roughly fixed, but they still pay for storage. DyLoMo-DiT takes the other route: a weight-shared loop applies the middle layers repeatedly, so the network gets deeper without adding parameters, and sparse experts allocate capacity across tokens.

The compute allocation is dynamic across noise levels, with more passes assigned to low-noise steps. That matches how denoising actually works. Early steps set the global layout and don't need much depth. Late steps resolve texture and detail, and that's where extra passes earn their cost.

On ImageNet 256x256 at matched parameter and compute budgets, DyLoMo-DiT drops FID by 11 to 24% against DiT and 36 to 56% against DiT-MoE. The text-to-image result is the one to sit with: a scaled variant scores 0.714 on GenEval against FLUX.1's 0.673, using 1.05B active parameters versus 12B.

One tenth of the active parameters is the difference between a model you serve on a single 24GB card and one that needs a datacenter GPU or aggressive quantization. The catch is that training-time dynamic passes complicate your kernel scheduling. Serving a model whose depth changes per timestep is not free engineering work.

Toon shading without paired footage ​

Diffutoon-2 takes photorealistic video and renders it as anime. The usual approach needs curated source-style training pairs or extra visual references at inference. This one learns toon shading through animation reconstruction instead: two complementary modules independently reconstruct animation clips, one from outlines and one from blurred colors, with the video backbone frozen.

At inference you extract the same condition types from live-action footage and let both modules guide generation jointly. No cross-domain pairs, no style reference images. The video backbone being frozen is what keeps style consistent across frames, which is the part that per-frame stylization plus temporal smoothing always gets wrong.

Teaching a diffusion model to look ahead ​

The visual next-best-move paper is the odd one out in this batch, and the most interesting. Fine-tune a pretrained visual diffusion model on (state image, best move) pairs and it learns to select actions whose value depends on consequences several steps ahead, without searching at inference and without any symbolic representation.

Chess puzzles, tile-based pathfinding, Connect Four, Go, billiards. In chess the model predicts legal moves and finds the best move far more often than a nearest-neighbor lookup over similar training positions would, including sacrifices whose payoff only appears several moves later. In pathfinding it builds shortest paths on uniform-cost maps and picks cost-optimal routes across terrain with different traversal costs, choosing a longer route when it's cheaper overall. It learns those costs implicitly, without ever seeing numeric cost supervision.

The practical read: one diffusion pass per decision replaces a tree search. That's a very different latency profile from AlphaZero-style systems, and it's the kind of tradeoff that matters when the environment is visual and the search space won't fit in a symbolic engine.

Where each paper intervenes ​

PaperBottleneck it attacksTraining requiredHeadline result
CodecOPSDRedundant condition tokensDiT adapter via on-policy self-distillation66% of tokens pruned, 2x faster denoising, 73% smaller KV cache
SPROUTUninformative training promptsText-only utility predictor, refit per iterationMatches uniform sampling in ~44% of iterations
iTDMBaseline drift in forward-diffusion RLOnline auxiliary denoiser0.87 on GenEval2, ~3x faster convergence
Graph2SceneMissing or wrong object relationsNone, training-freeRelationship accuracy 0.59 to 0.84 on ConceptMix
DyLoMo-DiTParameter and compute budgetFull DiT training11 to 24% lower FID than DiT, 36 to 56% lower than DiT-MoE
Diffutoon-2Paired anime and live-action dataTwo reconstruction modules, frozen backboneBeats general-purpose and domain-specific baselines
Visual NBMSearch at inference timeFine-tuning on state-move pairsLegal and best moves in chess, cost-optimal paths in tile maps

Common pitfalls ​

  1. Treating the 66% pruning ratio as a constant. That's an average across 16 modalities on the authors' own backbone. A pipeline with one condition stream has nothing to prune, and aggressive ratios on short clips cut real signal. Measure per modality before you commit.
  2. Validating a prompt selector against the reward model it was trained on. SPROUT's four held-out reward models are the reason to believe the 44%. If your selector only wins against its own reward model, you've built a feedback loop and measured it.
  3. Running forward-diffusion RL with CFG rollouts and assuming the baselines cancel. That's precisely the assumption iTDM shows is violated. Training looks healthy for a few hundred steps and then drifts, which is the worst kind of bug because your logs say everything is fine.
  4. Adding more spatial constraint when relations come out wrong. Pushing harder on region attention sends relation tokens further into irrelevant areas. Graph2Scene relaxes guidance during denoising for a reason.
  5. Comparing looped MoE against DiT at equal parameter count only. The point is the compute budget across noise levels. If you fix the number of passes per step to keep scheduling simple, you leave most of the gain on the table.

One thing to remember ​

None of these papers make diffusion models smarter. They stop the models from redoing work: retokenizing information that hasn't changed, generating images from prompts that carry no gradient, storing parameters that a shared loop could reuse. That reframing is the useful part, because it tells you where to look in your own pipeline. The expensive step is almost never the one you assumed.

The bottom line ​

  1. If you serve a multi-condition video pipeline, start with condition-token pruning. Losing 66% of condition tokens while denoising 2x faster is the largest single win in this batch, and it doesn't require retraining your base model.
  2. If you're preference-tuning on a fixed GPU budget, stop spending it on more iterations of uniform sampling. Gradient-norm prompt selection gets you to the same endpoint in roughly 44% of the steps, which is close to a straight halving of cost.
  3. If you're designing a new DiT from scratch, put the budget into looped depth and sparse experts instead of raw width. A 1.05B active-parameter model beating FLUX.1's 0.673 GenEval score at 12B is the strongest argument for parameter reuse in this batch, and the gap will widen as dynamic scheduling tooling matures.