Nearest Neighbour Score Estimators for Diffusion Generative Models
Matthew Niedoba, Dylan Green, Saeid Naderiparizi, Vasileios Lioutas, Jonathan Wilder Lavington, Xiaoxuan Liang, Yunpeng Liu, Ke Zhang, Setareh Dabiri, Adam Ścibior, Berend Zwartsenberg, Frank Wood
TL;DR
This paper tackles high-variance and biased score estimation in diffusion generative models by introducing a nearest-neighbour self-normalized importance sampling (SNIS) estimator. The method builds a tailored proposal based on the $k$ nearest data points to the noisy sample, enabling accurate estimation of the posterior mean $\mathbb{E}[\mathbf{x}|\mathbf{z}, t]$ with reduced variance, and derives bounds on the estimator's covariance. Empirically, the approach yields near-zero bias and variance on CIFAR-10, outperforms single-sample MC, STF, and often EDM in score estimation, and accelerates consistency training with improved FID/IS. Additionally, the estimator can replace a learned score network for PF-ODE sampling, offering a path toward more efficient and flexible diffusion-based generation and potential distillation-based training. The work suggests further avenues such as latent-space representations for neighbours and alternative distance metrics to enhance performance on higher-dimensional data.
Abstract
Score function estimation is the cornerstone of both training and sampling from diffusion generative models. Despite this fact, the most commonly used estimators are either biased neural network approximations or high variance Monte Carlo estimators based on the conditional score. We introduce a novel nearest neighbour score function estimator which utilizes multiple samples from the training set to dramatically decrease estimator variance. We leverage our low variance estimator in two compelling applications. Training consistency models with our estimator, we report a significant increase in both convergence speed and sample quality. In diffusion models, we show that our estimator can replace a learned network for probability-flow ODE integration, opening promising new avenues of future research.
