Manuscript Offprint

arXiv:2611.26629

Posterior Matching Distillation

Hidir Yesiltepe, Julius Berner, Arash Vahdat, Pinar Yanardag

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

Diffusion distillation accelerates image and video generation by compressing a pretrained teacher’s iterative sampling process into a few network evaluations. Distribution-based methods achieve this by matching the student’s output distribution to the teacher’s. This matching is often driven by reverse-KL objectives, whose mode-seeking bias favors dominant teacher modes at the expense of diversity across samples. We introduce Posterior Matching Distillation (PMD), a new member of the distribution-based distillation family that combines mode-covering posterior sampling with any-step generation. At zero population loss, PMD recovers the teacher’s full posterior of clean images at each trained noise level. Its stochastic student supports any-step sampling budgets within the trained timestep grid without further training. To learn these posteriors, PMD matches exponentially reweighted averages of student samples conditioned on a fixed noisy state to corresponding teacher posterior means. Under Gaussian corruption, exponentially tilted posterior mean is a single teacher evaluation at a shifted input. We prove that, matching tilted means over an open neighborhood uniquely identifies the full posterior. PMD thus supervises the entire conditional distribution through a family of mean constraints, without any auxiliary student-score network. Experiments on SDXL and FLUX.2 [klein] 4B demonstrate that PMD achieves the best FID among 4-step methods on both models, while maintaining competitive or leading performance across prompt-alignment and perceptual-quality metrics.

Figure

Figure 1: Samples in Four-Step Distillation. Samples generated by four-step PMD-distilled models. The top and bottom rows show SDXL samples, with each group generated from the same prompt to illustrate conditional diversity across multiple draws. The middle row presents representative samples from FLUX.2 [klein] 4B generated from different prompts, showcasing a variety of visual content.

1 Introduction

Diffusion and Flow models [19, 53, 31, 30, 2] have emerged as a powerful approach to generative modeling, particularly for images [45, 10, 57, 58, 26, 27] and video [55, 3, 25, 60, 39, 1], with growing applications to text [43]. Their sampling process progressively transforms noise into a data sample through a sequence of denoising steps, typically requiring many neural network evaluations. Diffusion distillation aims to reduce this computational burden by training a student to generate samples in one or a few steps [48, 54, 62, 61, 49, 47, 4]. However, a noisy state can correspond to many plausible clean samples, while a conventional denoiser provides only a single estimate. This raises a fundamental question: what information about the teacher’s generative distribution should a few-step student preserve?

Existing diffusion distillation methods differ in what they seek to preserve from the teacher. Trajectory-based approaches aim to preserve the teacher’s sampling process with fewer evaluations. These include progressive distillation [48], which compresses successive denoising steps, consistency distillation [54], which learns mappings to trajectory endpoints, and flow-map distillation [4, 47], which learns transitions between noise levels. Distribution-based approaches, in contrast, seek to preserve the teacher’s generated distribution without requiring the student to follow the same sampling trajectories. Among them, Distribution Matching Distillation (DMD) [62, 61] aligns noise-perturbed student and teacher distributions through score-based objectives, while Moment Matching (MM) [49] enforces agreement between conditional expectations of clean samples at intermediate noisy states.

Matching generated distributions does not necessarily preserve the relationship between noisy inputs and clean samples. A student may reproduce the teacher’s overall output distribution while learning a different conditional distribution at each noise level [62, 61]. This limitation is particularly relevant to Distribution Matching Distillation, which uses an approximate reverse-KL objective to align noise-perturbed student and teacher distributions. The mode-seeking nature of reverse KL can favor dominant modes at the expense of less frequent outcomes, potentially reducing sample diversity [59, 32]. Conditional supervision offers an alternative [8]. Moment Matching compares the student’s and teacher’s conditional means, but does so at a new noisy state constructed from the student’s prediction, rather than directly at its original input [49].

We introduce Posterior Matching Distillation (PMD), a distribution-based distillation method that trains a stochastic student to recover the teacher’s conditional distribution of clean samples at each noise level. PMD matches exponentially reweighted averages of student samples conditioned on a fixed noisy state to corresponding teacher posterior means. In practice, stochasticity is introduced by simply doubling the first layer’s input features, and each tilted mean is estimated using as few as four student evaluations per noisy state. The choice of exponential weights is deliberate: under Gaussian corruption, exponentially reweighting the posterior is equivalent to shifting the noisy input at the same noise level [40, 20, 41, 42, 38], an elementary identity we call the Tilt=Shift Identity. As illustrated in Fig. 2, this identity allows each target mean to be obtained through a single evaluation of the frozen teacher at the shifted input, rather than through computationally expensive Monte Carlo estimation requiring multiple teacher posterior samples. By varying the reweighting direction, PMD imposes a family of constraints that uniquely characterize the teacher’s posterior under the stated assumptions.

Figure 2: Tilt=Shift Identity. (Left) Estimating a tilted posterior mean requires multiple stochastic reverse-diffusion trajectories from the same noisy state, followed by exponential reweighting of the resulting clean samples. (Right) Under Gaussian corruption, the same mean is obtained with a single frozen-teacher evaluation at a shifted noisy input.

PMD’s tilted-mean constraints uniquely characterize the teacher’s full conditional posterior at each fixed noisy input, under the stated assumptions. Importantly, modes missing from the student’s current outputs can remain visible to the objective, providing a learning signal for recovering lost diversity. Our main contributions are summarized as follows:

  • Direct posterior supervision. We formulate a conditional distribution-matching objective based on exponentially tilted means. The tilt=shift identity makes these targets accessible through a single frozen-teacher evaluation per tilt, avoiding expensive Monte Carlo sampling from the teacher posterior.
  • Posterior identification and any-step sampling. We prove that, zero population loss uniquely identifies the full conditional posterior, including its multimodal structure and mode probabilities. An exact posterior student can then reproduce the target distribution without retraining.
  • Superior Conditional Diversity. Experiments on SDXL and FLUX.2 [klein] 4B demonstrate that PMD consistently outperforms competing methods in intra-prompt diversity across all evaluated metrics, while achieving the best FID among four-step methods.

References (61)