Distilling Conditional Image Generators into Spatial Effect Maps

Eun Ryung Lee, Seyoung ParkNeurIPS 2026

TL;DR

Modern image generators (like diffusion models) learn rich, complex relationships between input variables (like age or clinical attributes) and visual pixels, yet that knowledge stays locked away inside opaque neural weights. This paper introduces Generative Effect Distillation (GED), a framework that treats a conditional image generator as a "teacher" and projects its implicit knowledge onto a simple, transparent regression "student." The result is clean, statistically rigorous spatial effect maps—pixel-by-pixel summaries of how specific variables change an image—extracted even when real-world training data is scarce.

What Problem Does This Paper Address?

In fields like medical imaging, neuroscience, and remote sensing, researchers frequently ask: Which exact pixels in an image change when a clinical or experimental variable shifts?

Traditionally, statisticians answer this with image-response regression, fitting linear models at every spatial coordinate to get interpretable "spatial effect maps." However, standard regression struggles when data is scarce and only models average pixel intensities, missing the rich structure of full image distributions.

Conversely, conditional generative models (like GANs and diffusion models) excel at capturing full conditional distributions and generating crisp images for given variables. Yet, their learned effects are tangled up in latent spaces, random seeds, and nonlinearities. Comparing two generated images tells you about one specific random seed, not a population-wide trend. The authors bridge this gap: how do we extract population-level, statistically well-defined spatial effect maps out of a black-box image generator?

Methods

Instead of simply generating fake images to pad a small dataset (data augmentation), the authors frame knowledge extraction as a mathematical projection.

GED pairs a complex generative teacher with a structured, interpretable linear student (where pixel intensity equals a baseline plus covariates multiplied by spatial coefficient maps). Crucially, the user explicitly chooses a target covariate distribution—defining which population the map summarizes (e.g., balanced demographics vs. skewed hospital intake data).

Depending on how much access you have to the teacher's internals, GED offers three distillation objectives:

  • Mean Distillation (Sample-only access): Queries the teacher to generate images (or denoised estimates) across chosen covariates, projecting the teacher's average output onto the linear student.
  • Effect Distillation (Gradient access): Uses automatic differentiation through the generator to match the student's spatial slopes directly to the teacher's local covariate derivatives.
  • Structured Score Distillation (Score access): Designed for diffusion models. Instead of running expensive multi-step sampling loops, it matches the score (the gradient of log-density) of a Gaussian student directly to the teacher's conditional score field—or uses single-step Tweedie denoising—bypassing full image generation entirely.

These distillation losses can also be combined with real observed data and spatial smoothness regularizers.

Datasets

The authors evaluate GED across eleven small-sample empirical benchmarks spanning synthetic, semi-real, and real-world image setups (no standalone public benchmark datasets are newly introduced, though custom controlled synthetic/semi-real testbeds are constructed):

  • Synthetic & Semi-Real: Controlled analytic teachers, learned synthetic teachers, and semi-real/latent-diffusion digit tasks.
  • Face & Attribute Datasets: CelebA, FFHQ (measured attributes and pretrained SDXL-Turbo/FFHQ-256), and Olivetti faces.
  • General Vision & Handwriting: CIFAR-10 and real-image handwriting datasets.

Key Insights and Ideas

  • Distillation is projection, not augmentation: Standard data augmentation passively inherits whatever biases exist in your observed covariates. Because nonlinear generators behave differently across populations (e.g., aging looks different from 20-to-30 than from 70-to-80), GED makes the target covariate distribution an explicit part of the mathematical question.
  • Stein’s Identity links pixels to gradients: Using Stein’s method, the authors prove that under a Gaussian covariate design, fitting a linear student to the teacher's mean outputs yields the exact same map as averaging the teacher's input gradients across the population.
  • Skip the diffusion sampling loop: Score-access GED shows you don't need to wait for 30+ diffusion steps to understand what a diffusion model knows; single-step Tweedie score projections extract cleaner spatial maps at a fraction of the compute.
  • Classifier-free guidance warps statistical truth: While classifier-free guidance makes generated images look sharper to human eyes, the authors note it mathematically tilts the underlying distribution and biases effect slopes—meaning teachers should be queried without guidance for accurate map recovery.

Key Results

Across all eleven experimental blocks—evaluated using Standardized Integrated Squared Error (SISE, where lower is better)—GED consistently beats both direct regression on scarce data and synthetic data augmentation ($p < 0.05$ in every block):

  • 25$\times$ error reduction on CelebA: Using a conditional diffusion teacher trained on CelebA ($n=80$ observed samples), score-access GED via single-step Tweedie denoising achieves an SISE of 0.009, compared to 1.424 for direct regression and 0.229 for diffusion data augmentation—approaching the oracle teacher-pool baseline (0.005).
  • Pretrained foundation models: On SDXL-Turbo/FFHQ-256 ($n=12$), GED drops SISE from 20.018 (direct) and 13.092 (augmentation) down to 0.818 (a 16$\times$ improvement).
  • Predictable scaling: Empirical tests confirm the authors' finite-query theoretical bounds—increasing the number of queried covariate points ($M$) from 50 to 400 drops SISE from 0.044 to 0.006, cleanly shrinking sampling noise down to the floor of the teacher's own inherent bias.

Limitations and Future Work

  • Garbage in, garbage out (Teacher Bias): Increasing queries to the generator eliminates Monte Carlo noise, not teacher bias. If the generator learned flawed correlations, GED will faithfully distill those flaws.
  • Spatial alignment is mandatory: Pixel coordinates only carry consistent meaning if images are properly registered (aligned) beforehand. Residual misalignment alters the target maps.
  • Association, not causation: The authors emphasize that "interpretable" here means an explicit, transparent regression summary—not a causal mechanism or proof of how the neural network routes features internally. Scientific validity still requires external validation or independent replication. (Specific future work directions are not discussed in the main text.)

Summary updated

BibTeX
@inproceedings{lee2026distilling,
  author = {Eun Ryung Lee and Seyoung Park},
  title = {{Distilling Conditional Image Generators into Spatial Effect Maps}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=w8QGr2Cjci},
}
Figure