# Oral 31803

- Kind: Oral
- Talk page and recording: https://iclr.cc/virtual/2025/oral/31803

> Transcript of the talk's recording (session_asr), made by speech recognition or taken from the host's captions. It may contain errors. The words are the speakers'; listen to the recording on the talk's page before quoting it.

Hi everyone, uh I'm Zhi Xin. So uh I would like to introduce our paper, improving probability diffusion model with optimal diagonal correlation matching. So yeah, this is joint work with Ming Tian and the team in Zhen and David.
Yeah, diffusion model is a kind of generative model that contain two components. So the forward diffusion process and the backward diffusion, the backward generation models. So in the forward diffusion process here we consider to be a Markovian models and with the transition kernel being the Gaussian distribution. So the forward diffusion process add noise to the data and change it.
a data distribution to a standard Gaussian distribution. So the backward generating model is also a Markovian process with the transition being the Gaussian distribution as well. So the goal of this like diffusion model is that we wanted to make our model P theta to approximate our the posterior Q.
So to learn this diffusion model, so let's focus on the mean function first. So based on the first 3D formula, the mean of the posterior can be written as the function of the score function. And that means we could parameterize our mean function by using a score neural network and then make this score neural network to approximate the score at each time step t.
So by apply the denoising score identity, we could learn the neural network by this denoising score matching. So let's move forward to the covariance permutation in Gaussian diffusion models.
So a heuristic choice of the covariance is to parametric as the covariance of the forward Gaussian kernels or the covariance of the posterior distribution given a data sample X0. So these heuristic choices work very well if the number of denoising step is very large.
However, the generation quality drops significantly if the number of denoising steps is very small. So now the question is, do we have a better choice of this like covariance parameterization in Gaussian diffusion models? The answer is yes.
So a key observation is that for a arbitrary distribution Q, if the forward chain signal or the perturb distribution is a Gaussian distribution, and then the covariance of the posterior has a cross-form in which could be written as a function of the Hessian of the perturb distribution. And this is also known as the second order to this formula.
So here we use a toy example, a mixture of faulty Gaussian distribution, and to demonstrate how important it is of this like covariance permutation in Gaussian diffusion models. Because it is a mixture of Gaussian, so we could evaluate the score at arbitrary time step t, and the optimal covariance is also tractable. So in the right-hand side here, we saw that the x-axis is the...
sampling step and the y-axis is the MMD a measure of the generation quality so as you can see compared to heuristic choices of the covariance parametrization so using the optimal diagonal covariance it could improve the performance a lot and using the like the full optimal covariance metrics it could leads to the best performance
Uh, but that remain true challenge in applying this like optimal covariance in the high dimensional datas. The first is the memory cost, because we need to store the Hessian which require the out of like a D square uh uh complexity. The second is the computational inefficiency because you need to compute the Hessian which also require like uh around like all the neural network evaluations. To solve this problem, we propose to only estimate the diagonal of the optimal covariance.
so to do so we use this Hessian estimator so it's not the worst that because there's a Jacobian vector product in this Hessian estimator so which compute very efficiently so here we also saw that by using by increasing the number of Monte Carlo samples in Hessian estimator it could also lead to a better generation quality
So now we have solved the first challenging which is the memory inefficiency because using HashMap estimator we don't need to store the whole HashMap metric in the memory but there's still one challenging is like the computer inefficiency. So remember in the diffusion process we have a multiple sampling step and then at each sampling step we need to like apply this HashMap estimator which is very computationally inefficiency.
So to solve this we propose to use a neural network to amortize the optimization of this diagonal hessian.
So to do so we parameterize the neural edge and this neural network takes the image as input and output the diagonal of the Hessian. And we learn this edge neural level by regressing on the result of the Hutchinson estimator. So this objective is consistent if the number of Monte Carlo samples n goes to infinity. However, it's biased in practice because if we use a small m.
more You m so now we to solve this problem we propose another unbiased objective we call it optimal covariance matching so this correct this new objective is uh valid in the sense of that you have the same gradient as the previous objective uh which like when the number of monte carlo samples m go to infinity so after training we could uh parameterize our optimal diagonal covariance using the
the learned neural network H. So welcome in 10 to introduce the rest part of the tool.
Hello, I will introduce our related work. First is IDDPM which assumes a denoising distribution a Gaussian with learned mean and also learned diagonal covariance. And the parameter of the diagonal covariance prediction network is learned by maximizing elbow which is equivalent to the minimizing the KL divergence in the joint space. So this is a very generic and a classic method and is applicable for all for the process.
However, this doesn't leverage the optimal covariance structure of the Gaussian diffusion, which makes the learning not that efficient. So ADDPM, which is proposed by both Andy Chongxian and other authors, they assume the noise in distribution with learned mean and ST -independent isotropic covariance, tau. And they found that tau has analytical form under the optimal elbow, which is a function of the score function.
And the score function can be replaced by the score network approximation. And the integration can be done by like Monte Carlo integration from the training data for ignoring the training data. So this is a training free estimation with only the pre-trained score. However, this covariance is Xt independent and isotropic, which has a limited flexibility to make it really hard to capture the full posterior structure.
So square noise, the DDP-M, also from the same authors, they assume the noise in distribution with learned mean and learned diagonal covariance. And they derive a diagonal covariance which has an analytical form under the optimal elbow and this form includes a noise term and a score function term. So the score function can be replaced by the score network and the noise, integrated noise term is learned using another network.
And this network is learned by doing some regression with the added noise. So as you can see, this increased the flexibility of the posterior because now we have ST dependent diagonal covariance. However, they show that the quadratic term amplifies the estimation error when T goes to infinity, when T goes to zero, sorry.
So this is overview of different diffusion model with different covariance estimation method and they are ranked by the flexibility and also we showed like different additional process you need to do to achieve that flexibility.
So our method OCM-DDPN, which gives you a non -isotropic like diagonal and ST dependent and the learning of the diagonal covariance also leverage the optimal covariance structure. So our method doesn't has error amplification problem because it directly regresses or directly distill from the learned score. So if you have very good learned score and so you can also have a very good learned diagonal covariance estimation.
So uh let's show some um experiment of our method. So first one is still the two eight data set, uh mixture of photogaseon, w which you can access the ground truth uh covariance and the ground truth diagonal covariance. So we can say our method in green uh achieve the third best. So first best

achieve the third-best. So first-best is the Granch's Kullback-Leibler, second-best is the Granch's diagonal Kullback-Leibler. So the third-best, in green, is our method, uh which uh can be applied in both CDPM and DDIM case. Okay, so we also show method can achieve the best trade-off between the FID and the negative log-likelihood, uh when the number of denoising step is small.
And we should let our method requires fewer sampling steps to achieve FID around six, comparing to other covariance estimation method. So we also did experiment on latent diffusion and for the image net 256, our method improves both generation quality and diversity and maintains a, you know, maintains a high generation quality. So there are two takeaways of our paper.
So the first one is in Gaussian diffusion model, the score function in the noise space actually fully characterize the denoising distribution. You can also find the proof in our paper. So common method only derive the first moment from the score function, which gives you the mean of the denoising distribution. So in this paper we derive the second order moment from the score function, which give you the covariance of the denoising distribution.
And I think in the future you can also try to derive the high-order moments from the learned sparse function which can give you a better approximation of the posterior. So second takeaway is in our paper we show better than noisy posterior model so BP set as a model can improve generation quality and likelihood with fewer steps. So common methods assume isotropic Xt independent Gaussian and in this paper we show a diagonal Xt dependent Gaussian.
So in the future we can actually break the Gaussian assumptions so we can do more general non-Gaussian assumptions. For example, you can assume this denoise distribution is an implicit model. And in principle if you have very flexible denoising distributions, the optimal denoising distribution leads to a one step generative models.
So I also put some related work, very recent work in this direction about the like implicit model parameterisation of the denoising distribution. So thank you for your interest. Uh if you would like to have a discussion feel free to meet us in um this afternoon uh in poster session two. Thank you.
Okay, thank you for the interesting talk. I guess we have some time to take a couple of questions. Thank you for the great talk. Uh so when you do classify free guidance, what what do you use as covariance? Do you use it also a combination of conditional covariance and unconditional one? Or something like that? Um so we use a conditional covariance. That's it. Okay. It's the source that you you were saying.
No, I just want to confirm your question. You mean the Calispharic guidance so in the our paper, in the latent diffusion Yeah, because model? you showed a plot where you use classifier-free guidance and I was wondering if you also have uh you when you do classifier-free guidance do you also train a covariance conditional on the label and and can and Oh, you can also yes. Yes. and so what do you use then uh as a full covariance at the end?
So Do you we don't combine them? use the full covariance. So the training process is basically the same as the latent diffusion model. So we just drop the labels and then we just learn an additional head which is output the diagonal of the Hessian approximation. Okay. Okay, thank you. Okay, the question on the back side.
Yeah, thank you. Thank you for the talk. I just wonder when you do the distillation from the score model, the pre-trained score model, do you use auto differentiation? And if you use it, will that introduce some error because it's auto differentiation?
So I guess by this Cartesian estimator, right, so you first have the score function, a score network, which is learned in the first stage, right? And once you have that score function trend, you basically, you know, time noise doing backward and time another noise to make that inside the regression. So I guess since the regression objective is unbiased, so I guess the error in the regression is very low.
Yeah, and we found this method, this loss objective has better approximation, has less approximation error compared to other regression objective. Okay, thank you. Would there be any other quick questions? Oh yeah.
Thank you for the nice talk. Usually in practice when we want to reduce the number of steps we go with deterministic samplers, right? But what you talk about is mostly for stochastic samplers in the limit of a small number of steps, right? So can you share some thoughts on like what's the implication of your work on deterministic samplers? Whether we should, you know, can we use this in deterministic samplers or should we, did you compare your also?
performance versus I know second order integrators and this kind of things.
That's a very good question. So I think before we are the OD or C provides a very good framework of the CUDA model. So it gives you an idea of when T become infinity, so you can have a very good generation ability of the general models. However, if people care about the speed up, so one way to do that is you look at the faster like OD solver, right, to give you a faster speed.
But I guess it can only give you like from 1000 step to like 10 step maybe because everything is based on continuous, right? So if you have continuous, you need to go through T goes to infinity, then you have discrete testing error. So I think if you want to move like 10 step into like one to two step or, you know, less than five step, you need a probabilistic perspective about directly approximating the denoising distribution.
And I think for the deterministic or stochastic thing, so I think it depends on how you parameterize the denoising distribution, right? So you can parameterize that as an implicit model, which will give you the final step will be deterministic. And if it's one step, so it's fully deterministic with the only noise edited in the initial.
And I guess recently their work based on probabilistic field step sampler and deterministic field step sampler all based on distribution probabilistic modeling, you know, how to approximate vector p x given x t, x 0 given x t. Yeah, so I think if you need really fast generation, you need to abandon the, you know, the SD framework and to focus on the probabilistic denoising posterior. One more sentence is that
So we also saw the result on the DIM and the DTPM. So the main takeaway as we saw in the last slide is that so in both like the semantic parameterization or stochastic parameterization, the key is that you just parameterize the P as your given ST. So if you have a powerful enough neural network, so like the latent variable model, energy-based model, if you're powerful enough and your algorithm works very well, so basically you could just get the one-step generation.
So the takeaway is that you need to use a more powerful network, a more powerful model to model your generative models. Okay, let's thank the speaker again.
