Mean-Shift Distillation for Diffusion Mode Seeking

Vikas Thamizharasan, Nikitas Chatzis, Evangelos Kalogerakis · DOI

Abstract

Mean-Shift Distillation (MSD) is a novel technique for optimizing images and 3D objects using pre-trained diffusion models. By reframing diffusion distillation as a "mean-shift" mode-seeking problem, MSD provides a mathematically grounded gradient proxy that is lower in variance and significantly better at aligning with actual data modes than the widely used Score Distillation Sampling (SDS). MSD acts as a drop-in replacement for SDS, requiring no model retraining and achieving superior results in 2D and 3D generation tasks.

Introduction

Diffusion models have revolutionized generative AI, yet leveraging them to optimize specific representations—such as 3D Neural Radiance Fields (NeRFs) or vector graphics—remains a challenge. The standard approach, Score Distillation Sampling (SDS), utilizes the diffusion model's score function to guide optimization. However, SDS is plagued by high variance and significant bias, often converging to "phantom modes" or producing over-smoothed results that do not accurately represent the target distribution. While alternatives like Variational Score Distillation (VSD) exist, they typically require complex sampling schemes or additional neural network training.

Methods

The authors propose Mean-Shift Distillation (MSD), which interprets optimization through the lens of the classic mean-shift algorithm—a robust method for finding the modes of a probability distribution.

Mean-Shift Gradient Proxy

MSD derives a gradient based on the convolution of data density with a Gaussian kernel. The resulting "mean-shift vector" is proven to align with the gradient of the smoothed density, ensuring that the optimization trajectory consistently moves toward valid data modes.

Product Distribution Sampling

To maintain computational efficiency, MSD avoids using the entire training set by sampling from a "product distribution." This distribution represents the intersection of the learned data distribution (from the diffusion model) and a Gaussian kernel centered at the current optimization estimate.

Comparison of mode-seeking behavior across different distillation methods on a toy distribution.

Stable Integration

To prevent numerical instability caused by the kernel term pulling the estimate toward the mode, a specialized integration scheme is employed. This scheme separately handles the score function and the kernel term, ensuring the optimization remains stable and does not diverge.

Experiments and Results

The efficacy of MSD was evaluated across three distinct domains: 2D toy distributions, text-to-2D image generation, and text-to-3D object synthesis.

Quantitative Performance

In 2D toy tasks (e.g., Fractal, Spiral distributions), MSD consistently outperformed SDS and VSD in terms of Negative Log-Likelihood (NLL) and Precision/Recall. In text-to-2D tasks using Stable Diffusion, MSD achieved an FID of 114.12, a substantial improvement over SDS (198.90). It also demonstrated superior prompt alignment as measured by CLIP-SIM scores.

Qualitative Improvements

In text-to-3D experiments, such as generating complex objects from text prompts, MSD produced sharper textures and more coherent geometries. Unlike SDS, which often results in blurry or "melted" appearances, MSD successfully captured high-fidelity details by effectively seeking the modes of the diffusion-learned distribution.

Discussion

A key insight of this work is that the SDS loss landscape often contains peaks in regions of zero data density, explaining its tendency toward artifacts. MSD, by contrast, is mathematically guaranteed to align its extrema with distribution modes. Furthermore, the kernel bandwidth ($\lambda$) in MSD serves as a natural convergence criterion; by annealing $\lambda$ over time, the optimization can transition from coarse global search to fine-grained local refinement.

While MSD significantly improves stability and fidelity, it still relies on heuristics to manage out-of-distribution scores at the start of optimization. Future research may explore adaptive bandwidth strategies to further automate the optimization process.

Conclusion

Mean-Shift Distillation provides a theoretically sound and practically superior alternative to SDS for diffusion-based optimization. By treating distillation as a mode-seeking problem, MSD enables higher-quality generation with lower variance and better alignment with the underlying data distribution.

Summary updated

BibTeX
@inproceedings{thamizharasan2026mean,
  author = {Vikas Thamizharasan and Nikitas Chatzis and Evangelos Kalogerakis},
  title = {{Mean-Shift Distillation for Diffusion Mode Seeking}},
  booktitle = {IEEE/CVF Winter Conference on Applications of Computer Vision},
  year = {2026},
}
Figure