# Oral 31916

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

> 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.

Hello, I'm Lisa Bedin, and today I will be talking about our GAN variational diffusion posterior sampling with midpoint guidance. So let's start with a brief introduction on Bayesian inverse problems. So we have an observation y which comes from an underlying process x through an operator A and a noise z. The goal is given our realization of y sample the most plausible reconstruction of x.
So to illustrate this, let's consider this low resolution image of the panda, which comes from this image X_ and we sample several plausible reconstruction of X_ due to the uncertainty of the problem, it is not possible to sample for sure exactly X_ we can only sample several plausible reconstruction of X_
Inverse problems are everywhere, so in healthcare there are just science astronomy and they are applicable to all kinds of modalities. So for instance sparse MRI construction can be formulated as an inverse problem. In MRI the body hydrogen protons are excited by a magnetic field and when they relax they emit a radio frequency.
whose phase is uh shifted by uh multiplicative factors K_1 and K_2, which are controlled by grade encoders. The measurement is operated in the case-base, meaning that for a certain values of K_1 and K_2 we measure the integral of the signals with the phase shifted over all positions position of protons.
And to understand how this can be formulated as an inverse problem, let's delve into the link between protons position and the gradient signal. So we have the proton positions. With Fourier transform we go into the case space and importantly, since we want to accelerate the process, we can only visit a few um coordinates in the case space. So this leads to a sparse observation.
And the inverse problem here is how to sample the proton positions given this pass observation. And our work we are very interested by a medical signals inverse problems and particularly for electro-cardiograms. So electro-cardiograms are multi-dimensional signals that are acquired with multiple electrodes.
So for instance, the first electrode provides, the electrodes in the arms provide the first beat, and a lead is just a particular view from the heart, so it's from a specific angle, and it's the time series as highlighted by the square, and we have also the electrode in the arm and the flank that provide the second lead.
And the other arm in the flank, the serratus lead end zone. We have also a six electrodes that are closer to the heart and they provide the rest of the leads. So all of these leads are upright simultaneously, so meaning that they are synchronized to the same series. And this setting allow the detection of many cardiac disease, but this is only for a clinical context.
And in contrast, we have smartwatches that allow the acquisition of 1D cross-partial signal and this is for the everyday user. Interestingly, we can formulate the problem of reconstructing ECGs from smartwatch signal as an inverse problem. And here the operator A is just the operator selecting the first lead. All of these problems could be solved by training from scratch a generative model on a paired dataset.
But the problem is that a breadth dataset may not be available, and even sometimes a training dataset for a generative model may not be available. And this is typically the case for sensitive medical data. But even in that case, we can have access to a generative model. And also we might want to use the same prior for different inverse problems. So for instance, in MRI, we have several ways for sub-sampling the case space.
So the goal is, given a pre-trained diffusion model, develop an efficient algorithm for sampling X given Y with no further model training. So let's recap how denoising diffusion models work. So we have an clean image X_0 that we corrupt for several steps with a Gaussian noise until we end up with a completely noisy image. And the goal is to reverse this process, meaning that we want to sample X_K given X_(K-1).
So to do so, we first denote XK plus one using a deep neural network, and we obtain an approximation of the mean of X zero given XK plus one. Using this approximation and a linear combination with XK plus one, we sample XK. Now let's delve into gated diffusion path. So we assume we have an observation Y.
And we want to reconstruct the full image X_0. We also assume that we have a denoising diffusion model that is pre-trained. And we want to sample to reverse this process to sampling X_K given X_K plus one, and why? Using the likelihood of Y given X_K plus one, which is the guidance. So
In order to sample X_k given X_k plus one and Y, we first use the pretrained denoiser for having an approximation of the denoiser X_k plus one, and we correct this approximation using the log likelihood of Y given X_k plus one. And we obtain a posterior denoiser of X_k plus one. Using this approximation and a linear combination with X_k plus one, we can sample X_k.
The problem is that we don't know the guidance at step k plus one. A classic approximation for this guidance is the guidance at step zero, which is known by definition of uh the inverse problem. But for large k, this approximation is crude. So in our algorithm mid-point guidance -based stereo sampling, uh the core idea is that sampling x_k given x_k plus one and y
can be equivalent for sampling first and a mid-point xl given xk plus one and y, and then sampling xk given xk plus one and this mid-point. So the name of the algorithm comes from this mid -point. So let's delve into the first step of the methodology.
So in fact the distribution of xl can be formulated as the product with the backward for sampling xl given xk plus 1 and the guidance at step l. But we don't know how to sample from distribution yet.
We propose to use a variational approximation of the distribution of pixel, so meaning that we seek a Gaussian average approximation with parameters mu and sigma that minimises the scale divergence with the theoretical distribution of pixel given x k plus one and y. So in fact this KL can be formulated using the diffusion model and the guidance step L.
which can be approximated with the guidance at step 0. And now this is a good approximation for a good choice of L. So in summary, to sample X_k given X_k plus one and Y, we first sample the midpoints with the variational approximation that minimises this loss. And then using a linear combination with X_L and X_A plus one, we sample X_k.
Now let's see some results for imager inverse problems. So we used the LPIPS metrics which is a feature metrics for images that use a pre-trained neural network. And we benchmark on one case samples from ImageNet FFFHQ with pixel and latent diffusion models for linear and non-linear problems. So here are the results. And the MGPS algorithm is the best for almost all tasks we tested and when it's not the best it's the second.
So we conducted several experiments for electrocardiogram inverse problems in collaboration with a hospital in France. And the first problem we tackled was the forecasting of ECG, meaning that we assume that we observe several seconds of the ECG and we want to predict the rest of the ECG. So we want to verify that the temporary consistency of the ECG is captured by the algorithm.
And this is the device construction that is obtained and now the quantitative results. And interestingly, if we train a supervised diffusion model on the same task, it performs worse than almost all posterior sampling algorithms we tested. We also try another experiment for ECG, which is the reconstruction of ECG from the first lead. So the first lead is the lead that is obtained with the electrodes on the arms.
And it's also equivalent of sampling of a signal that is obtained with a smart watch. And the goal is to sample the signals for the electrodes that are closer to the heart. So the goal is to verify that the algorithm can be can correctly can email for information from the prosthesis. And this is the visualisation for patients for suffering from atrial fibrillation.
And we also verify quantitatively that our algorithm can reconstruct ECG, and these ECGs can be classified accurately according to their cardiac condition. And interestingly, even with 60 decision steps, our algorithm is outperforming all other posterior sampling algorithms we tested. So as a conclusion, our algorithm is state-of-the-art and it's applicable to different modalities.
And it's also useful for relief programs such as cardiology. So if you want to know more about our algorithm, please come to see us this afternoon at poster 143. Thank you. That's it. Thank you so much for the exciting talk. We have some time for questions. Who would like to go first?
I have a quick question. So the covariance that you estimate, if you go to your variational approximation, is it anywhere related to the covariance of the base estimator? Because you know the mean, yeah. So that mean, I mean, let's just start with the mean. Is it related to the empirical mean?
I mean, critical base mean, You mean that if it's related to, for instance, yeah, essentially the 2D formula. I mean, this mean is related to, do you want to ask if it's related to the post-IO?
uh Exactly, that if makes sense. zero given Yeah, xk plus yeah. one. Because there also are posterior covariance, right? Yeah. Um I mean it's related in the sense that uh we optimized it to uh uh to be close to that. But uh it's uh But I mean the loss is very different. Yeah. I I mean that's mean the my thing question. includes the it includes the diffusion model and uh the guidance is the guidance that's correct to uh be close to uh to y.
So it's not exactly the posterior X0 given Xk plus 1. I think my question is where the magic comes from the covariance. In principle, this can be validated by estimating the posterior covariance, right?
You can set up by denoising loss, you can estimate the posterior covariance. I mean presumably it's different, this is very interesting, Yeah. but I'm just saying that that would be very interesting validation. I don't know how much of it is the covariance is playing the role in the Okay. improving your results. Yeah, I mean um we can look at at it this afternoon if you want uh Okay, yeah. I include Because I'm this question. not sure I know uh how it could be. Awesome, we have time for one quick, one more quick question.
Thank you for the good talk. Um so in the EEG projection uh there was you were showing sort of the variance of the distribution and it sort of jumped uh in multiple places or spiked uh where the signal wasn't there in your forecasting. Is this something you've sort of investigated? Could you comment on why that might happen?
So you mean here So as what we do go you like further away from from us like an area where you actually have observations you see like the green the prediction predicted distribution sort of spike up So I think here is an interesting question. So I think what we can have a tab here is like several possible solutions. So maybe like...
It has a different group of possible different modes for the solution. So this is how we interpret it. We can have for instance a mode that is for a specific disease and a mode for another disease. So like choosing a different guide might help. Yeah. All right. Thank you. Fantastic. Thank you so much. Let's thank Lisa again.
