Score Normalization for a Faster Diffusion Exponential Integrator Sampler

Guoxuan Xia, Duolikun Danier, Ayan Das, Stathi Fotiadis, Farhang Nabiei +2 more
10/31/2023
cs.LGcs.AIcs.CV

Official code: mtkresearch/Diffusion-DEIS-SN (4 stars, MIT, last commit 2023-12-12).

Abstract

Recently, Zhang et al. have proposed the Diffusion Exponential Integrator Sampler (DEIS) for fast generation of samples from Diffusion Models. It leverages the semi-linear nature of the probability flow ordinary differential equation (ODE) in order to greatly reduce integration error and improve generation quality at low numbers of function evaluations (NFEs). Key to this approach is the score function reparameterisation, which reduces the integration error incurred from using a fixed score function estimate over each integration step. The original authors use the default parameterisation used by models trained for noise prediction -- multiply the score by the standard deviation of the conditional forward noising distribution. We find that although the mean absolute value of this score parameterisation is close to constant for a large portion of the reverse sampling process, it changes rapidly at the end of sampling. As a simple fix, we propose to instead reparameterise the score (at inference) by dividing it by the average absolute value of previous score estimates at that time step collected from offline high NFE generations. We find that our score normalisation (DEIS-SN) consistently improves FID compared to vanilla DEIS, showing an improvement at 10 NFEs from 6.44 to 5.57 on CIFAR-10 and from 5.9 to 4.95 on LSUN-Church 64x64. Our code is available at https://github.com/mtkresearch/Diffusion-DEIS-SN

View on arXivView PDF

Code Implementations(1)

MIT

Repo for NeurIPS 23 Diffusion workshop paper titled "Score Normalization for a Faster Diffusion Exponential Integrator Sampler" from MediaTek Research UK

40PythonOct 30, 20232 years agoMIT

Similar Papers

Cite this paper

@article{xia2023score,
  title  = {Score Normalization for a Faster Diffusion Exponential Integrator Sampler},
  author = {Guoxuan Xia and Duolikun Danier and Ayan Das and Stathi Fotiadis and Farhang Nabiei and Ushnish Sengupta and Alberto Bernacchia},
  year   = {2023},
  eprint = {2311.00157},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2311.00157v2}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2311.00157.svg)](https://codeofpaper.com/paper/2311.00157)

Discussion