Variance Reduction for Expectations with Diffusion Teachers

Jesse Bettencourt, Xindi Wu, Matan Atzmon, James Lucas, Jonathan Lorraine

TL;DR

This paper introduces CARV, a framework for making diffusion models more efficient when used as "teachers" for other tasks. By intelligently reusing expensive computations and strategically sampling noise levels, CARV achieves 2-3x speedups without sacrificing quality, making tasks like text-to-3D generation and data attribution significantly more accessible.

What Problem Does This Paper Address?

Diffusion models are powerful tools, but using them as "teachers" for downstream tasks like generating 3D models from text (text-to-3D), training faster generative models (single-step distillation), or understanding model behavior (data attribution) is computationally expensive. The core issue is that these tasks rely on Monte Carlo (MC) estimations, which involve repeatedly drawing samples from the diffusion model. Each sample requires costly operations like rendering, simulating, or encoding data. The variance of these MC estimators dominates the compute cost, meaning we spend a lot of time and money just to get a noisy estimate of the gradient. This paper aims to reduce this variance and thus the computational cost, making these powerful diffusion-teacher pipelines more practical.

Methods

The authors introduce CARV, a "compute-aware variance-accounting framework." This framework motivates a hierarchical approach to MC estimation, focusing on three key techniques:

  1. Amortized Re-noising (Compute Reuse): The most expensive part of the pipeline (e.g., rendering a 3D scene) is cached. Then, instead of drawing new expensive samples, the system reuses this cached data and draws many cheap diffusion noise samples (t, ε) to get multiple gradient estimates from a single expensive computation. This is particularly effective when the cost of rendering/encoding is much higher than denoising.
  2. Timestep Importance Sampling (IS): Instead of sampling timesteps uniformly, this method samples them based on the teacher model's own weighting function (e.g., wsps(t) in SDS). This prioritizes timesteps that contribute more to the gradient, reducing variance.
  3. Stratified Sampling: The range of timesteps is divided into strata, and samples are drawn from each stratum. This ensures better coverage of the entire timestep range, especially when combined with importance sampling (stratified inverse-CDF).

These techniques are combined in a hierarchical manner, aiming to amortize expensive upstream computations over cheaper diffusion-noise resamples.

Datasets

The paper evaluates their methods on several tasks, using existing datasets and benchmarks:

  • Text-to-3D Optimization (SDS): Evaluated using prompts from the threestudio framework, with rendered outputs compared using CLIP scores.
  • Single-Step Diffusion Distillation (DMD): Evaluated on ImageNet-256 using the FastGen implementation and a DiT-XL/2 teacher model. FID scores are used for evaluation.
  • Data Attribution for Video Generation: Evaluated using VIDGEN-1M and the Wan2.1-T2V-1.3B model, with influence scores computed using cosine similarity of normalized gradients.

Key Insights and Ideas

  • The "Teacher" Gradient is the Bottleneck: The paper clearly identifies that the variance in the Monte Carlo estimates of gradients from frozen diffusion teachers is the primary computational bottleneck, not necessarily the downstream task itself.
  • Amortization is Key: Reusing expensive computations (like rendering a 3D scene) and then performing many cheap operations (denoising with different noise levels) is the most significant contributor to the speedup.
  • Importance Sampling Leverages Existing Information: The authors cleverly show that the inherent weighting functions within diffusion models (like wsps(t)) can be directly used as effective proxies for optimal importance sampling, avoiding the need for costly gradient norm estimations.
  • Stratification and IS are Complementary: Combining stratified sampling with importance sampling provides additive benefits, leading to further variance reduction.
  • Not All Tasks Benefit Equally: While CARV consistently reduces variance, it doesn't always translate to improved downstream metrics (like FID in DMD). This highlights that sometimes other factors (like auxiliary losses or generator input diversity) become the limiting bottleneck.

Key Results

  • 2-3x Effective Compute Multiplier (ECM): Across diffusion-guided tasks like text-to-3D optimization and data attribution, CARV achieves a 2-3x speedup in terms of achieving comparable gradient quality for the same compute budget.
  • Amortized Reuse Dominates: The majority of the speedup comes from reusing expensive upstream computations.
  • IS + Stratification Adds ~25% Gain: Importance sampling and stratification together provide an additional ~25% improvement on top of compute reuse.
  • DMD: Variance Reduced, FID Unchanged: In single-step distillation (DMD), CARV significantly reduces gradient variance (up to 32x) but does not improve downstream FID scores. This is attributed to other factors stabilizing training.
  • Stable Gains Across Prompts: The benefits of CARV are consistent across different text prompts and tasks.

Limitations and Future Work

  • DMD Variance-Metric Disconnect: The paper acknowledges that in DMD, significant variance reduction in gradients doesn't always translate to improved FID. They hypothesize this is due to other factors like auxiliary losses, generator input diversity, or data-dependent weighting becoming the bottleneck.
  • Prompt-Specific Optimization: While CARV is general, optimal configurations (R, K) might vary for different prompts or tasks.
  • Frozen Teacher Assumption: The current framework assumes the teacher model is frozen. Fine-tuning or co-adapting the teacher would require further investigation.
  • Future Directions: The authors suggest extending CARV to diverse diffusion-guided tasks (4D optimization, audio, video), exploring alternative parameterizations and teacher architectures, investigating biased variance reduction, and developing better theoretical understanding of how gradient variance relates to downstream performance. They also propose a practitioner's guide to help choose the right methods based on cost structure and gradient properties.

Summary updated

BibTeX
@inproceedings{bettencourt2026variance,
  author = {Jesse Bettencourt and Xindi Wu and Matan Atzmon and James Lucas and Jonathan Lorraine},
  title = {{Variance Reduction for Expectations with Diffusion Teachers}},
  booktitle = {SPIGM @ ICML},
  year = {2026},
  url = {https://openreview.net/forum?id=qV6NvNOujP},
}
Figure