[Paper Review] Training-Free Distribution Adaptation for Diffusion Models via Maximum Mean Discrepancy Guidance
The paper introduces MMD Guidance, a training-free method that guides diffusion model sampling to match a target distribution specified by few reference samples, using gradient steps from the Maximum Mean Discrepancy computed in latent space, with extensions to prompt-aware conditioning.
Pre-trained diffusion models have emerged as powerful generative priors for both unconditional and conditional sample generation, yet their outputs often deviate from the characteristics of user-specific target data. Such mismatches are especially problematic in domain adaptation tasks, where only a few reference examples are available and retraining the diffusion model is infeasible. Existing inference-time guidance methods can adjust sampling trajectories, but they typically optimize surrogate objectives such as classifier likelihoods rather than directly aligning with the target distribution. We propose MMD Guidance, a training-free mechanism that augments the reverse diffusion process with gradients of the Maximum Mean Discrepancy (MMD) between generated samples and a reference dataset. MMD provides reliable distributional estimates from limited data, exhibits low variance in practice, and is efficiently differentiable, which makes it particularly well-suited for the guidance task. Our framework naturally extends to prompt-aware adaptation in conditional generation models via product kernels. Also, it can be applied with computational efficiency in latent diffusion models (LDMs), since guidance is applied in the latent space of the LDM. Experiments on synthetic and real-world benchmarks demonstrate that MMD Guidance can achieve distributional alignment while preserving sample fidelity.
Motivation & Objective
- Motivate distribution matching for pre-trained diffusion models without retraining.
- Propose a training-free inference-time guidance mechanism based on MMD.
- Enable prompt-aware distribution matching via product kernels.
- Achieve efficient adaptation by operating in the latent space of latent diffusion models (LDMs).
- Demonstrate empirical effectiveness on synthetic and real datasets with fidelity and coverage improvements.
Proposed method
- Augment the reverse diffusion sampling with gradients of the squared MMD between generated samples and a reference set.
- Use a latent-space implementation to improve efficiency in LDMs.
- Compute MMD gradients with respect to latent samples using a differentiable kernel (e.g., Gaussian).
- Apply a cross-term emphasis in gradients to attract generated samples toward the reference distribution while maintaining diversity.
- Extend to prompt-aware adaptation with a product kernel combining text and image similarities.
- Provide a theoretical concentration analysis for the cross-term gradient and uniform gradient concentration.
- Optionally extend guidance to conditional diffusion models via product kernels over prompts and latents.

Experimental results
Research questions
- RQ1Can diffusion models be guided at inference time to match a target distribution defined by limited reference samples without retraining?
- RQ2How effective is MMD as a low-variance, dimension-robust distribution divergence for guiding diffusion sampling?
- RQ3Does latent-space MMD guidance scale to state-of-the-art conditional diffusion models while preserving sample fidelity?
- RQ4Can prompt-awareness be achieved via product kernels in MMD guidance for text-conditioned generation?
Key findings
- MMD Guidance reduces distribution mismatch while preserving fidelity in unconditional diffusion models.
- MMD Guidance improves distributional alignment on real-image benchmarks (FFHQ, CelebA-HQ) compared to unguided or classifier-free guidance baselines.
- Prompt-aware MMD Guidance with product kernels achieves improved distributional metrics (FD, KD, RRKE) and higher density/coverage in SDXL and PixArt settings.
- Guidance in latent space offers computational efficiency and strong empirical performance for conditional diffusion models.
- Theoretical results show concentration of the cross-term gradient and uniform gradient concentration, supporting reliable guidance with limited reference data.
- Increasing the number of reference samples improves performance up to a plateau, with the method remaining effective with modest reference sets.

Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.