在扩散模型中使用多级欧拉-马尔可夫方法实现多项式加速
Polynomial Speedup in Diffusion Models with the Multilevel Euler-Maruyama Method
AI总结:
本文提出多级欧拉-马尔可夫方法,通过不同精度的近似器高效求解SDE和ODE,针对HTMC区域实现比传统方法更高的计算效率,应用于扩散模型时可显著提升图像生成速度。
摘要:
我们引入多级欧拉-马尔可夫(ML-EM)方法,通过一系列精度递增的近似器$f^1,\dots,f^k$来求解随机微分方程(SDE)和常微分方程(ODE)。该方法仅需少量对最精确的$f^k$的评估和大量对较不昂贵的$f^1,\dots,f^{k-1}$的评估。如果漂移函数处于所谓的“比蒙特卡洛方法更难”(HTMC)区域,即需要$ε^{-γ}$的计算量来达到$ε$的近似精度(某些$γ>2$),则ML-EM可以在$ε^{-γ}$的计算量下对SDE的解进行$ε$近似,优于传统EM方法的$ε^{-γ-1}$速率。换句话说,它允许以单次漂移评估的成本解决SDE。在扩散模型的背景下,不同层级$f^{1},\dots,f^{k}$通过训练大小递增的UNet获得,ML-EM允许以等同于单次最大UNet评估的成本进行采样。我们的数值实验验证了我们的理论:我们在CelebA数据集上对64x64尺寸的图像生成实现了四倍的加速,其中测量到$γ≈2.5$。鉴于这是多项式加速,我们预计在涉及更大网络的实际应用中,加速效果会更显著。
英文摘要:
We introduce the Multilevel Euler-Maruyama (ML-EM) method compute solutions of SDEs and ODEs using a range of approximators $f^1,\dots,f^k$ to the drift $f$ with increasing accuracy and computational cost, only requiring a few evaluations of the most accurate $f^k$ and many evaluations of the less costly $f^1,\dots,f^{k-1}$. If the drift lies in the so-called Harder than Monte Carlo (HTMC) regime, i.e. it requires $ε^{-γ}$ compute to be $ε$-approximated for some $γ>2$, then ML-EM $ε$-approximates the solution of the SDE with $ε^{-γ}$ compute, improving over the traditional EM rate of $ε^{-γ-1}$. In other terms it allows us to solve the SDE at the same cost as a single evaluation of the drift. In the context of diffusion models, the different levels $f^{1},\dots,f^{k}$ are obtained by training UNets of increasing sizes, and ML-EM allows us to perform sampling with the equivalent of a single evaluation of the largest UNet. Our numerical experiments confirm our theory: we obtain up to fourfold speedups for image generation on the CelebA dataset downscaled to 64x64, where we measure a $γ\approx2.5$. Given that this is a polynomial speedup, we expect even stronger speedups in practical applications which involve orders of magnitude larger networks.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。