# Workshop 23972

- Kind: Workshop
- Talk page and recording: https://iclr.cc/virtual/2025/workshop/23972

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

It is my great pleasure to welcome everyone to this workshop. It is a very exciting topic. My name is Taiji Suzuki from the University of Tokyo and RIKEN. And I want to give briefly the opening remarks. And I hope everyone joining this workshop will enjoy the fruitful discussions on this very important topic.
So, you know also we have seen a very rapid growth over the development over the deep generative models such as LLM and the diffusion models. And actually so that growth is very rapid. So we see so people say that LLM will achieve a kind of AGI in the near futures.
So this is a pretty gross, all the deep generative models have been supported by the interactions between a theory and a practice, okay. The aim of these workshops to give a to provide a forum to discuss both practical and theoretical issues of deep generative models. And we want to find a fruitful interactions between the two regimes. And of course we will also discuss their issues of each individual regime.
In the theories, maybe the biggest issue in the current the current current research on the deep general model will be the gap between the practice and the theory. So actually the growth of the practice is very rapid. Then we see a huge gap over the practical settings and theoretical assumptions.
If you go back to the older machine learning literature, so maybe the theory was a little bit more advanced against the practice, but nowadays that situation is opposite. So then the question is how to fill this gap and how to make the theory uh be more impactful to real practice. Is another problem would be the rapid evolution of A_R_ paradigm actually. So so every month we see our new technologies and we see our new techniques.
So maybe a technique which was developed in a half years ago is already old today. So then so before the developed are nice theory to explain or to analyze the newly observed techniques. Maybe the important topic has already be changed. So how to catch up this kind of rapid evolution of AR paradigms. So this is the next question.
So now if you look at the practice, and there are the performance order data generated models have been supported by the scaling laws, okay. By spending uh a more more computational comper uh computational resources, the performance of uh generative models have been improved. But by following the scaling laws, their industries have spent a lot of money to um improve their own models.
Okay. However, um maybe there's small industries and academia cannot follow this uh anymore, because we need much, much more um uh computational resources. So then the question is how to reduce their computational complexity without um compromising their accuracy of the models.
This is our one question. And moreover, not only for the training over your model, but also the test time computation requires more additional computation resources. So this is also another problem. So how to reduce test time computations. And moreover, so the model has been very, very complicated. So it is becoming very difficult to interpret the model. Then we have a kind of reliability issues.
And also, due to the lack of theories, maybe we suffer from their instability of training and some combinance issues. So then maybe so these kind of issues can result in a unreliable model output. So then the question is, so how can we say our model is reliable? So in this workshops we want to tackle these kind of problems, okay?
For that purpose, it is our great honor to invite these brilliant invited speakers, including Nancy Chen from ASTAR and Ricky Chanchin Chen from FAIR and Xin Hao Chuli from Yale University and Valenti de Botteri from the Google DeepMind and Ben Hurtle from the Tufts University and JDD from the University of Washington, Seattle.
So, um this is our statistical papers. Um we got a one hundred thirty submissions and through the rigorous uh reviewing process uh we accepted a nineteen percent of the submissions for as a poster uh uh presentations. And uh we also selected seven papers for oral presentations, uh which is a five percent of all submissions.
And during the s for this uh reviewing process there were one hundred and ninety nine reviewers uh um posted their reviews for all all their assigned papers. So we would uh like to thank the all reviewers for their hard work. Okay, so um this is our um our uh schedule of the oral presentations. Uh one oral presentations were um combined with uh their one other invited talk by uh Sinfor Choli.
kind of yeah. And so we will also give um six um awards from the long paper track and the short paper Okay. track. And so we will give a best paper award from e each track. So the awards will be announced in our um afternoon session starting from seven uh sorry uh five thirty a as five thirty P_M_ Okay? So this is the overall schedule.
And so this is our wonderful oh sorry okay so this is our wonderful organizers I would like to thank all the organizers for their nice great job
Okay, so then I hope that all uh all people who are attending this workshop enjoy their very soulful and fruitful discussion throughout of this workshop. Yeah, thank you very much. Okay, I want to uh uh hand my mic to the my first invited speaker, Valentine.
Right. All right. Well, thank you everyone for staying on the last day and thank you to the organizer of this really nice workshop. I'm quite excited to be talking today. So yeah, for those who don't know me, I'm Valentin de Wurfelir. I've been working on diffusion model for quite a while now. And recently, so the goal of this talk is to
Yes, present you this new work that we have with my uh uh co-authors uh at at Google DeepMind, so Arnaud Doucet,

to at Google DeepMind. So Arnaud Doucet, Arthur Gretton, and Alexandre Galashov. But even more than that, I would like to present you, oh, here, here, yeah. I'd like to present you like some challenges that exist now in diffusion models and what, you know, what lies ahead when we think about how we need to accelerate those models.
Um, so I guess like, I'm not going to be the first, well, I'm going to be the first one, but definitely not the last one to recall you, you know, some basics about diffusion models, but like, I'm going to go quite fast because I'm assuming that a lot of people here are familiar with it. Also, something I forgot to say is that please feel free to interrupt me at any time if there is like any question regarding either diffusion model or stuff that I'm going to present.
So right so the way I'm going to introduce diffusion model is you know like there are many ways you can introduce diffusion model there are many ways
uh to think about them i'm just going to the way i'm going to introduce it is is just one way that i'm comfortable with but like you could derive exactly what i'm going to derive through many many other ways okay um my goal here is just to go i'm not going to talk about the training of diffusion model i'm just going to talk about what happens at inference time for those models right um and the one thing i want to emphasize here
is that there are actually a lot of similarities between what happens when we do a diffusion model when we denoise and what happens in LLM and like in autoregressive model in general. And so
The this paper and like this presentation is kind of to say right like so there are these connection in fact you can identify you know connections between diffusion models and LLM and so you know we have been over engineering LLMs for a few years now and so the idea is to say right can we take advantage of some of the techniques that are helpful in LLMs to also speed up the inference of diffusion model.
Um, right. So, okay. I don't need to convince anyone in that room that diffusion models are everywhere now, even though like there are strong competitors when it comes from the autoregressive side, especially for media generation. But let's say that like for a lot of modalities coming from protein, coming from video, music, images, diffusion models are...
quite good and are I think state of the art in many of those modalities one of the reason why they are so used is because it's really easy to train so diffusion models you know like when you when you look at it at the end of the day I'm gonna you know talk about that in the next slide but like just to give you some preview
At the end of the day, you're just training a denoiser. You train a denoiser at different scales, but this is just an L2 regression loss. And so this is an objective that ML people, me included, like because we understand quite well how to minimize that and the training dynamics are easy to interpret and easy to scale as well.
So, how do we work? Again, I'm assuming that most of the people here are familiar with it, but just to remind you, you're going to start with some the goal is to interpolate between a sample that is like pure noise and a sample that is like clean. So, one way to define it is like through a forward process that will go from the real data to the noise sample, and then you're trying to learn what is the time reversal of that.
What that forward process, okay I'm gonna put equation in a few slides, but like just to tell you like if you look at the the dynamic the top dynamic
This is the full-on loising process, so it's a destructive process, and the dynamic at the bottom is the backward process, right, which is going to be generating data, right? So this is what we, of course, you know, it's like, as I'm saying here, it's a denoising mechanism, so that means that we're going to have to learn something which is that denoiser, right? So just to...
Put a few equations, sprinkle a bit of equations on top of that. The forward dynamic, the way we usually describe it is, well, one way to describe it is with what we call a forward diffusion process. So here Bt is a Brownian motion. You can just think of it as like adding, you know, some infinitesimal Gaussian to your Xt. So Xt here is the noising dynamic.
Um, and this FT and GT coefficient, these are what defines what we call the schedule of the diffusion model, right? So usually, I mean, like, you don't have to think too much about it. It won't matter too much for the rest of my presentation. It does matter a lot in practice, this kind of choice that you're making here. But you can think of it as an Hochstein-Lembeck process. So just, you know, a process that will noise the data. Okay.
Alright. Turns out that like there is a formula to invert that process. So this is what I'm writing like YT. So YT in distribution is the reversal of XT. And if you look at the formula for YT, the nice thing is that you just take the coefficients, it's linked to the coefficient of your forward process, except that you put a minus in front all of this coefficient. So you see that the F.
The Ft becomes minus F of one minus T and you have this additional term which is the gradient of the log of the density, right, which is intractable. This is what we call sometimes the Stein score. So now I know that everyone is talking about diffusion model but back in 2020, 2021 those models were called like score based generative model just because like we are modeling the score.
the score in fact. The reason why I'm talking about modeling the score and modeling the denoiser is because there is this very neat relationship which is called the tweety identity which is like crucial to make those model work and what the tweety identity is telling us is that this stein score so the gradient of the log of pt or sorry I should have said that pt is the density of xt at time t okay
So the key quantity here is that that Tweety identity, the grad log of pt, is going to be equal to some quantity that is related to the expectation of x0 given xt. And the expectation of x0 given xt, what is that? That's just the denoiser, right? This is the expectation of the clean data given the noisy data.
Okay, and the nice thing with that conditional expectation is that we can learn it with L2 regression loss.
Okay, so this is a kind of 101 on diffusion model in two slides. So usually this is what we do. Like the dynamic that you see at the bottom is what we're going to use at inference time. And in order to estimate that logarithmic gradient, we leverage the 3D identity. Okay, right.
Um, so of course, like what I've told you so far, everything is in continuous time. I haven't said anything about what happens if we need to discretize that and implement that thing, which is going to be the where we're going to see the link with LNM here. So
Right. Of course, what I'm saying is that the top dynamic that you see there, you have a drift term and that drift term, as I said, this is what is going to be approximated by a denoiser. So in fact, what you can do is approximate the whole drift with a neural network, right? This is usually what we do.
either a neural network or like a deterministic transformation, an explicit transformation of your neural network. So what you get at the end of the day is like I'm still in continuous time but like to generate your data you start from a Gaussian and you follow you try to follow the dynamic right that dynamic with BTQ BTQ is a neural network that is approximating the term that I had before okay.
So you have a first approximation which is given to you by the neural network. Let's assume that your neural network is like trained well enough so that it's, you know, it's a proper approximation of what you had above, okay? Whatever that means, okay? I'm not going to dive into the specifics of what it means to approximate well the score above. But, you know, let's say that we are trying to target that dynamic here where I have replaced my.
logarithmic regent by a neural network of course if I want to implement that I cannot integrate that thing explicitly so I'm gonna have to discretize that you could choose many strategies for the discretization here I'm just considering the simplest one which is the Euler-Maruyama discretization
um the reason for that is just for simplicity but you know if you are a little bit familiar with diffusion model and their implementation or you don't even have to be familiar with diffusion model but like if you're familiar with the discretization of sde you know that there are like so many ways to discretize those things um just to cite a few of them uh we could use like the exponential integrator we could use like zpm plus plus which is one of
one of the

plus plus which is one of the popular sampler so all of these could be used to discretize the above sd i'm again i'm just focusing on the one with like uniform step size and i'm just considering the euler -mawu-yama but the key point that i want to say and like this is really
the my my main point here and actually after that you can forget everything about diffusion model and what i'm going to say is like quite general is that if you look at what's happening at the end of the day you just have the gaussian transition
Okay, so you start from yk minus one. From yk minus one, you're going to, you know, apply some neural network, do some dynamic transformation, you know, a bunch of stuff. But what you're going to get is like you're going to get the mean vector that I'm going to call mqk minus one. And you have like, you know, some kind of variance and you that you put in front of a Gaussian noise. Here, I should have said that wk is some Gaussian noise, right?
Okay. So if you just, you know, if you summarize everything, let's forget all the fluff about diffusion model. At inference, what we are really trying to do is this thing. We're really trying to start from why not, which is like a Gaussian, and then we're trying to unroll some kind of dynamic. And the transition in that dynamics are Gaussian. Okay. So this is, I mean, what I've written here.
Of course, like something I should have said here is that like the number of steps that you have to take is given by capital K. Capital K is the number of steps here. It controls the size of the discretization. Of course, you would like capital K to be large for the discretization to be accurate. But if capital K is large, that means that you have to compute capital K.
It means each time you compute the mean, you have to compute the neural net, you have to call the neural network, okay? Call a forward pass of the neural network. Given the size of the architecture that we have now, this is extremely expensive. And this is one of the main reasons why when you call your favorite text-to-image model, it takes some time for you to see the image is that you have to unroll this type of SDE, okay?
um so you could say right i'm just going to reduce k uh the problem is that if you reduce k you lose quality so there is a trade -off where like you want to have a lot of steps because you want to have good quality but uh if you have better quality then that means that you have like more call to the neural network uh to the forward pass of the neural network and you have like slower sampling so it's a balance between the quality and like how fast you want to serve your model
I would say now, like especially if you look at image models and maybe not video models, but like let's say audio models and actually for a lot of modalities, diffusion models are good. Like we got the quality is there. So a big challenge for the past three years, I would say, especially, you know, in industry has been like, how can we speed up those methods?
And this is where I arrive at the cutting edge research that what's happening now in that field to accelerate diffusion model. So just to summarize what we've done so far, I've just done a brief recap on diffusion model.
At the end of the day, when you try to do the inference in diffusion model, it's like unrolling an autoregressive Gaussian process, actually it's a Markov Gaussian process with like a mean that is like computed by calling a neural network and we would like to make as few calls to the neural network as it is possible, okay? So what are the obvious candidates when it comes to accelerating those things?
Well, you could say, right, let's use better integrators. Okay, I used Euler-Mauriamma, as I said, you know, like you could use something else. And indeed, it works. So I know I was talking about the exponential integrator, I was talking about GPM++, all of those things are used in practice, and they manage to reduce the number of steps by quite a lot. So with GPM++, let's say you can go from 100 steps to like 20 steps to sample, let's say from Sci-Fi 10 or ImageNet.
That's okay. So you can get like pretty significant gain with that. But you know, like it will not reduce the number of steps to like eight or like six or like, you know, it's a very, very low number of steps in a realistic setting, what I'm saying. So also another problem is that right, you can get better integrator, but you still have to compute things sequentially, meaning that
When one of the, you know, it wouldn't be a problem to have 100 calls to the neural network if we could call, if we could batch those calls, right? Like we know that like neural, our hardware is made so that things function very well when we process things in parallel. The problem with diffusion model and the way we unroll things is that it's sequential by nature, right? Like we have a sequential process and I cannot call the neural network at time T before I've called the neural network at time T.
like at time t minus one right because i need i need that for the update so that's one of the limitation um a very very popular method is discretization so basically train a student model based on the teacher model um and with those methods so um you know you can think of diffing stroke multi -step moment matching consistency model consistency trajectory model i'm forgetting a bunch
But like all of these distillation methods that are like now hugely popular they will allow you to reduce the number of steps by quite a lot.
This, what I'm proposing here, what I'm going to propose in that paper, in that presentation now, is not to say, right, like distillation is bad. I think like we should use distillation, but distillation requires training another neural network. And my goal in that presentation was to see like how much can we extract.
from alternate model right like can we can we do things without having to retrain something on top of our existing model but distillation is definitely good you you have like some problem with distillation when it comes to the loss of diversity and sometimes for some of these methods you are upper bounded by the quality of your teacher model so that's you know that could be one of the problem
Uh another thing that I'm that is quite closely related to what I'm going to talk about today is parallel simulation. So it's it's not as famous as the other two, I would say, but I think it's quite promising. Which means that, um, you know, in order to sample from an S_D_E_ something that you can do is simply um try to solve a fixed point Picard iteration. Uh so there are a few paper, uh there is one by Antoine Savre on on that on that uh on that
that technique the one of the problem with that is that it's it hasn't really you know been implemented at scale I think it's quite it can be quite difficult to implement it's also it's an iterative method meaning that Okay. like it's not clear if you have it's not clear in practice if you have gained compared to do the iterative pictorial iteration or if you're just better like just unruling the network so
But I think it's quite promising. And now what I'm going to talk about is like, right, so knowing that we have an autoaggressive model, we have an autoaggressive process, can we leverage things that have been done for autoaggressive process in the language model field to help when we do acceleration of diffusion model?
So one technique that I'm going to discuss now is speculative sampling, which is a very famous technique to accelerate LLMs. So speculative sampling, how it works for LLM, I'm just recalling you what is an LLM. LLM at the end of the day, this is just, you know, autoregressive distribution. So I'm trying to keep the same notation. I have capital K and then I have this autoregressive thing where I have Q of XK given X0.
to k minus 1 okay um of course same problem as you you're faced exactly with the same problem that we have in diffusion model which is that like if you do the sampling like this it can be quite slow right because you need to unroll and you need to pass through the neural network uh many times you know like capital k times if you want to generate things of course like there are many many optimization techniques like kv caching
that I'm not going to talk about today but like we've managed to reduce the computational load by quite a lot in those situation but something that was that is quite popular to also accelerate that sampling that is used at scale for I think most LLM is speculative sampling so speculative sampling how does it work
Spectrum sampling, it's going to require like two models. So instead of having one big model that you're targeting, you're going to have two. You're going to have a small cheap model that we call the draft and you have your target model. So the draft model is usually something that is like easy to sample from. It's a cheap model that is easy to sample from sequentially and the target model is our big model, but like we know that like sampling from that sequentially
is going to be problematic but you know we know that we can evaluate things in parallel quite efficiently okay so I would say that like the first time really speculative decoding was made to work you know in practice really was maybe in 2022 there were like a few papers 2022-2023 there were a few concurrent paper on that topic

topic
One of the really nice feature of speculative sampling is that the output of the procedure, you can prove that they are sampled from the target model. So, you know, like a lot of the methods that I presented earlier, better integrator, distillation or parallel sampling, you're not sure that you are actually following the true autoregressive distribution. Here with speculative sampling, like you have, you can probably show that like you are going to be distributed according to.
according to the target model so there is no loss of quality that's what i'm saying like you're not trading off like this is really that that's why i'm saying like this method is really telling you like how much you can squeeze from the model
All right. So how does it work? Okay, I'm just going to skip that and go directly to the algorithm actually. How does it work? So for speculative sampling, for LLM, so this is like just a very, you know, basic speculative sampling procedure, you're going to define a window size.
Right? So here it's given by L. So this is the look-ahead integer. So for that look-ahead integer, you're going to propose from your draft model, okay, maybe sequentially or not, depending on your draft model. But the thing that to keep in mind is that this is cheap to do, right? So you propose from your draft model, this is cheap to do, and then what you get is like you have a bunch of proposal with their associated.
Associated logits. Okay, so this is what I wrote in the algorithm. And then for those proposals, you're going to compute the target logits. So you have a bunch of proposal. Now you can batch them and you can apply your network, your target network on this batch.
of proposal and the nice thing with that is that you see now that you don't have to do L sequential call to the network because you have batch thing you in fact have one big call to the network right and so for that this is like much better and this is uh making this is helping us uh pushing the boundary to be like compute bound instead of being memory bound okay um so right so now we have the logit we have the proposal we have the logit it's
for the proposal for the draft model and we have the logit for the target model. Then we have what we call a rejection procedure. We're going to compare those logits and based on some condition, we're going to accept or reject the proposal. If we accept all the proposal, that's good. That means that like we could do, we could, you know, propose like L tokens and in fact just one big call to the neural, to the target neural network. So, you know, all good.
If you reject, you might reject before the first time you reject, so you do accept, accept, accept, accept. Ah, I'm going to reject that token. You're going to have some correction procedure. You're going to correct for that token, and then you're going to restart the procedure with speculative sampling. And you can see massive benefits, like times two. The sampling might be twice as fast when you use that thing. So something that I'm not telling you right now is like, OK.
What is that rejection procedure, right? Like, what is the mystery behind that? So, and this is where, I mean, I think it's also a nice fit for the workshop because, like, this is where you have something that matters a lot in practice, but it's rooted in some nice mathematical...
Theory I would say and as linked with like maximal coupling and optimal transport. So here what we are actually doing is like so I have my proposal right my proposal X is distributed according to the draft distribution P and then I have P and Q. Q is my target P is the proposal and I have access to the logit so that means I have computed Q of X and P of X.
I'm going to sample a uniform distribution, and I'm going to see if that uniform distribution is less or not than the mean of 1 and q of x divided by p of x. So basically, like, you know, the ratio of the log hits, of the exponential log hits, okay? If I accept, then that's fine. I'm going to continue, and I can go to the next token. And if I reject, now I need to correct, and I need to sample from a corrected distribution.
And I know that like my y random variable is going to be distributed after this procedure, the y random variable is going to have the distribution Q.
Right. So this is something you can show. It's a really nice small exercise to do. I encourage you to do it. It's really easy to do. But you can show that like when you reject if you sample from that corrected distribution R of X, which is proportional to the max of zero and Q of X minus P of X, which is something you can do, right? Like we can sample from these things. The reason for it being that we are in discrete state space and we have access to the logits so I can compute this whole thing.
Let's just give me like new logits and then I can sample from the distribution that is given me by those logits, right? So I can compute efficiently, I can sample efficiently from R of X. So provided that I have this procedure, the main proposition that you have is that this algorithm will give you a sample X that is distributed according to the draft, a sample Y that is distributed according to the target Q, and the nice property is that you're maximizing
Using the probability that X is equal to Y so that means you're maximizing the acceptance probability with that thing You know that we cannot do better if you were to do better if you were to accept more than this procedure That would mean that like you're gonna destroy one of the coupling and so I find it like quite quite
I mean it's quite beautiful I think that like you can show that this procedure that is implemented in practice is the optimal one that you can do it is you know ensuring that we still have the right target and while maximizing the equality property so it's it's one of this is what we call the coupling that we get for X and Y is what we call a maximal coupling okay
And it's linked with like optimal transport with a cost that is like the L0 distance. All right. So basically what I've presented so far was speculative, you know, there was a speculative sampling for LLMs. We've seen diffusion model. And, you know, as I was saying before, when we look at the inference of diffusion model, this is like an autoregressive process. LLMs are also autoregressive.
Um, so why not apply speculative sampling, so, you know, we are faced with the same problem in LLM and diffusion model, so why not apply, uh, speculative sampling for diffusion model? So, we can, that was, I mean, that was my naive goal when I started this project, I was like, right, that's a, you know, that's an easy, high clear paper, uh, I'm just gonna combine the two, but turns out it's not easy to do.
Uh, the main reason for that is because something that was crucial for the speculation of something of L and M is that the distributions were discrete. Okay. The distribution were discrete so I could compute this adjusted distribution. I don't know if you remember the R of X, which was the max of zero and K, a Q of X minus P of X. We are not going to be able to do that here. The reason for that is because
uh now our target and draft model that we're going to take they are gaussian they are in a continuous state space so like we cannot compute logit efficiently okay um but because we are gaussian we are going to be able to leverage some stuff that has been done in the probability literature to still do something that is meaningful and is going to give us a maximal coupling
So if you look at what is a draft model in our setting now, a draft model for us is also going to be like a denoising process as well. It can be a denoising, it doesn't have to be necessarily sequential, but the important thing is that it is Gaussian.
uh it is Gaussian and the Gaussian have the same the Gaussian of the target and the draft model they have this they can have different means they should have different means because right the mean of the target model is hard to evaluate whereas the mean of the draft model is easy to evaluate but the variance should be the same it's usually not a big problem but like I'm gonna assume that the variance are the same
So the procedure then that we have is like extremely similar. I mean, actually, it's the exact same algorithm as before.
Uh it's the exact same algorithm as before. The only thing that is that we need to have a look at is like of course I'm not going to compute the logit because well, there is no logit in the continuous state space. But what what I'm going to compute instead is the mean and the variance. So I'm gonna have a bunch of proposal. I'm gonna use my draft model to propose on a look ahead window.
Once I have my lookahead window, I have my proposal samples, I'm going to compute the mean and the variance for this proposal using the draft and the target model. And same as before, you know, in order to compute the mean of those proposed samples, what I can just do is I can just take them.
batch them and apply the target model once so here on each window I need to apply the target model only once that's the that's that's the of course it's like on a batch thing right like but we only need to apply it once okay so everything is fine so far but as I was saying before the the hard thing is like how to sample from R of X how to

like how to sample from R of X, how to sample from that.
um you know what happens when we reject before again as i was saying it was really okay to do it because i could compute the logit of p of x the logit of q of x and i could compute explicitly that r of x for every member of my vocabulary right so i had this distribution over i don't know uh 32k uh tokens and i could sample from that right now it's again it's very different because this r of
of x x is something that's like in the continuous state space so it's hard to do
So the question is like, I tried many things like, okay, how can we compute, can we sample from that distribution? It's a bit hard to do. You know, it's like kind of a difference. It's a weird max between zero and the difference between two Gaussians. It's not very nice to compute that. So you could do something that is a bit, you could say, right, so, you know, to sample from that, you could do some rejection sampling.
Turns out that if you do rejection sampling, you can show that you gain nothing compared to the sequential stuff. You gain nothing compared to the sequential stuff because when you're going to do rejection sampling, the average number of rounds that you're going to have to do for the rejection sampling is going to exactly cancel the benefit that you would have had from doing the speculative sampling procedure. So doing some kind of rejection sampling to sample from that R of X
which is equal to the max of zero and q of x minus p of x gives you nothing like we can show that there will be no improvement um instead what was like the idea that we had was like right there are very small people in the polynomial theory literature and they have studied the convergence for example of the Orstein-Lemberg of the unadjusted Langevin process and
A lot of the things that are used are coupling methods.
And especially coupling methods between things that are defined by a Gaussian. So this is exactly what we needed. And in fact something that I should have said earlier is that there is no uniqueness in the maximal coupling. So the maximal coupling that I presented where we need to correct with this R of X which is equal to max of zero and Q of X minus P of X, that's one possible maximal coupling. But in fact like you have other maximal coupling and in fact there is one that is like very very nice to implement.
especially for Gaussian it's very specific to the Gaussian case which is called the reflection maximal coupling and so in the reflection maximal coupling you can see that the only difference
compared to what I had before is at the correction stage, instead of having to sample from the distribution r of x which was complicated, here I'm still going I'm going to sample from a Gaussian but it's just that the Gaussian adds like I'm modifying the Gaussian noise that I'm inputting here. And in fact I'm not going to dive into the details here but the way I input the Gaussian noise is I'm reflecting the Gaussian noise along some plane that is given to me by the difference between the means.
and the target. So that's why we call that a reflection maximal coupling.
But the interesting thing here is that we still have the exact same property as before, that with that algorithm we are sampling exactly from the target distribution while maximizing the probability that x is equal to y. So our main contribution, I want to say, is like not even for distribution model. What we show is that how to extend speculative sampling to continue state space in the case where the transitions are Gaussian.
So that was that was I think our main our main contribution here and it turns out that like it's nice because it also gives improvements for for diffusion model so here just to illustrate
The type of coupling that it gives you, so the one on the right, the one that is called algorithm four, is what you will get with the reflection coupling. The one that you have with algorithm two is what you would get if you were to sample from that distribution R of X. So you see that like the line.
x equal y, you have the same mass on that line, and you have the same marginal distribution, but you see that the behavior when you reject is completely different. But they have different couplings, but they have the same important property for us. All right. I only have five minutes, so I'm going to go a bit fast on that last part.
Something that is like super important if you're going to implement those things in practice is like, okay, I didn't tell you anything about how do we choose the draft model. So there is a huge literature in LLM about how to pick those draft model. In practice, what you can do is you can train a smaller model. So like the first thing you can do is like, right, I have this big model. I'm just going to train, you know, a very small model and use that as my proposal as my drafter.
It doesn't work very well in practice because then the models are kind of like misaligned and we would like the draft and the target model to be as aligned as we can. So usually what we do, I'm not going to dive into that, what we did in practice was a procedure that is inspired by Medusa, if you've heard about speculative sampling for LLM, which is basically like freezing the target model. You freeze the target model for a few iterations.
And by freezing the target model for a few iterations, so you don't pay the computational cost of going through the whole neural network, and that ensures that the draft model is correlated to the target. But I know I'm going a bit fast for this, but just so you know that like...
We are just at the beginning of this exploration, and I think there are much better draft than what we've done so far. But, you know, there we already have like a strategy that is improving over the independent draft model.
Alright, so I'm gonna skip all of that. I'm gonna go directly to the to the our conclusion. Basically we tested this algorithm for robotics, for image manipulation, for image generation and
And let's say compared with a regular diffusion model, we can reduce the NFE, so the number of function evaluation, by a factor two in many settings. So like we tested like on robotics, as I said, image generation. Again, this is not to say that like this method is strictly better than distillation. In fact, distillation usually will bring you like lower NFE. This method here is to show that like if I am not willing to retrain a neural network on top of what I have.
that I have, then I can actually squeeze some of the computation and deliver my model faster without any loss of quality, right? Because I have probably no loss of quality here.
So yeah, so I think another interesting aspect of this work is that we are doing speculative sampling for here I presented for diffusion model because you know diffusion models are what we like to do for generation but you know you could also use that for sampling you know if this this type of algorithm is also applicable to Langevin sampling for example and you could do exactly the same thing so yeah I encourage people to you know like
look at uh what what lies ahead for this type of procedure where you can actually leverage those maximal couplings for uh accelerating sampling.
Um, something I just want to say, I haven't really discussed what are the limitations of those things. Of course, there are some limitation, which is that if you go, if the distribution is really hard to model and if you are in really, really high dimension, even though the procedure is like quite robust, we see a decrease in the acceptance rate when the dimension is very, very large, which means that like if you were trying to do image generation, let's say 256 by 256 by 3 directly on the image.
mid space our procedure likely won't work however if you move to latent space the procedure is still okay but I do want to point out that like there are some issues that would arise at very large scale if you were not going through latent
Yeah. Also another thing that I'm just going to finish with that. Another limitation that we have is we need more memory, right? Because all of those things, it seems to appear for free, but it's not for free, right? Because I'm increasing the memory here. So in LLM it's fine because LLM are by, they are compute bound at inference. And so it's, you really have that for free because you can batch things and you're going to, you know.
increase the utilization of your of your GPU or TPU. For image model it's less clear.
Um, so what we're saying here is that, right, so it might be that like we need more GPU to serve those model because now you're going to batch things and this is not, it might not fit in your memory, but if you're willing to spend more, uh, to serve things faster, we think that this procedure is actually quite beneficial. So yeah, in summary, what I wanted to say is that, uh, speculative sampling is great. There are more links between your LLM and your diffusion.
diffusion models that it seems to be at first sight and it seems that like a lot of the techniques from LLM can be in fact adapted to diffusion model if you are able to extend what happened in the discrete space to the continuous space and yeah and that's I'm gonna stop here I think thank you So thank you Ballantine for your great talk. So I
I'll black to pass to the audience. Do you have any question for for the talk?

Um hello, thank you for uh thank you for the talk. This is my first time hearing about uh speculative sampling for L_L_M_s. Uh I have two quick questions. Um maybe you skipped it but I I would like to know d have you ha uh did you do any experiments on like what is the scaling of the acceptance rate with respect to the some uh hyper parameters of the neural network architecture, etcetera? Yes. Um yeah, thank you. Uh so I d I didn't talk about it, but it's a great question.
So we found it the acceptance rate to be
Kind of. I mean, we trained it on like different version of the unit. We didn't try. I mean, we were mainly like working with units for that and at different scale, it didn't seem ready to matter. I think the hyper parameter that does matter a lot for this thing is, you know, when you have a stochastic sampler for diffusion model, you have this turn parameter that is controlling the amount of stochasticity. Here, there is like...
Maybe I have, I think I had it at least on the Gaussian. Yeah, well, I mean, it's not very visible here, but
uh so if you look at the number the the nfe the lower is the better here uh you need like and this is the churn parameter you need to pick your churn parameter in a way uh like there isn't there is a sweet spot for the choice of the churn parameter and we found that it's like this is this matters quite a lot um so i Yeah, think this is the main the main yeah i'd say the main driver and also the choice of the schedule as well
'Kay. Yes, thank you. And uh the second thing is um we have a work here uh we've had some success in accelerating a diffusion with multi-measurement theory.
And this is an interesting thing to discuss if you like after your, during the postal session if you like I'm really interested in how we can maybe merge these ideas for the discrete distributions because I saw that you said that for discrete distributions this really worked more naturally. Yes, yeah. Or I do graph diffusion and it's, I think personally it's much harder than just you know text generation just because you have
have not just one token that you need to j uh to learn the logits for, but let's say a whole matrix of you know for every edge of yeah. the um all the all the logits, so it's uh a bit different. So the one thing I want to say is that it it it does work better um those models w like when I say it works better it i it works better not because it's discrete I think but it's because it's text generation Uh-huh. and it's we are modelling like one logit ll you know like the it's in we have this thirty two K vocabulary, but that's it. And so that's why you know like
Basically, we are memory bound. So like, because we are memory bound, if we can batch thing, it's better. But if you are already saturating your HBM, then like, then like you will be faced with the same problem that we have here, I think. Thank you very much. So I guess there's no time for.
other questions, so let's thank the speaker again. Thank you. And So our next speak is Ricky Tian Qichen from Meta. He will talks about the stochastic control for large scale generative modelling with a joint matching. Let's welcome.
While the slide's starting up, if you guys want to move up to the front, I think that'll be better because this is a D-talk that I've given with the most amount of equations and I'm a bit worried that you guys will get lost pretty soon. So let's see how that goes. But if you want to move during the talk, feel free to. Oh, and the QR code here is the link to the slide, so if you want to just look at the slides on your own time, feel free to do that. All right, so let's get started.
Again, wondering how many of these talks are going to have an introduction to the fusion modeling and general modeling. But just a very quick recap. The general modeling problem is we want to start from some noise distribution and we want to transport the samples to some target distribution, right? Some noise and maybe you took a lot of pictures at the Pet Expo and you want to just build a general model of all the really cute pets.
And the way we're going to approach this, basically like Valentine said, is there's going to be a stochastic process that continuously interpolates between the noise distribution and this target distribution.
And the way we're going to model this is we can learn a transport that basically is a vector field. It just points towards the target distribution, the target samples, and then it's going to move or transport all these samples in continuous time into the target distribution.
The parameterization is just a vector field. Typically this is just something that points towards the data samples. And for sampling we can either use just an ordering differential equation to some sort of deterministic which is follow the flow, a deterministic transformation, or we can add noise. So I'm a big fan of the deterministic stuff because the way that the difference between these two different approaches is you basically just add long-term dynamics to the flow. So the flow is the one that's...
actually transporting the particles across time. And then the actual SDE is you can sort of think of it as maybe correcting for the modes or adding extra noise that doesn't change the particles distribution across time. But this talk in particular is going to be talking about the Stochastic Differential Equation and it's because this extra noise really helps soften up all the transition probabilities and then we can actually define a KL using Stochastic Optimal Control.
So before that, there's a lot of people have trained these deep general models, diffusion models, small models, what have you on data, right? So we can do this for image generation. We can do this for video generation. This movie gen project from last year was text to video and audio and it was all using this flow matching framework.
So it's all very simple and very scalable because you just use, like I said, it's just MSC loss that's regressive onto some vector field that points towards the data. But this talk, we're going to be talking about these reward -driven methods, reward-driven approaches, which is we don't really have any target data samples from our target distribution, and we only have a reward function that we want to maximize. So we want to train our model in order to sample.
generate samples that are high in reward, right? So it's more about exploration, more of an RL flavor, and less just less data-driven, right? We don't have any data and just maximize reward. So this talk is sort of organized into three different sections. How do we formulate this reward -driven problem? How do we solve the problem? And finally, how do we scale the method?
The crux of this talk is going to be talking about the stochastic optimal control formulations for doing these problems. Essentially, it's just about optimization of stochastic processes. You know, this is just a more modern take on that title.
Okay. So the most basic setup is we want to sample from some unnormized distribution. This can be modeled by exponential of a negative energy function or equivalently some reward model. This is just different words from different literatures, right? Energy is something we minimize, reward is something we maximize. Or more generally, we can consider something that has a prior as well, so what we call the base distribution. This is a more general problem.
because methods that are developed for the bottom one can also work for the top one and so we're going to be working with the bottom one itself we don't really need to assume that p-base is can be evaluated we don't need to like the likelihood we just need samples from this base process or this base distribution and essentially you can think about it as doing reward fine-tuning where the base distribution is trained on a very diverse set of images and we basically want to tilt the distribution
And defining samples that are high in reward but may be reducing diversity in the progress. So we're talking about this target distribution, this tilted distribution. And in order to define a stochastic process or bring the stochastic process into this problem, we're going to say that the base distribution is defined as the terminal distribution of some stochastic process, this base process that we call it.
It has a drift Bt and a diffusion coefficient sigma t. And this is going to be something that we can assume is given, but generally it's not really given as part of the problem. It can also be something that we've prescribed, right? Bt and sigma t, there's arbitrary number. There's an infinite number of Bt and sigma t that give us the same p-based distribution at the terminal time point. So this is something that we prescribe as part of the algorithm. This is the arts part of the science.
And then the second part is we're going to train a model that basically acts as an offset. This is called the control model, this thing that's orange, the UT. And it basically controls this general process by tilting it, shifting it a little bit during generation. And the idea is to learn, to fit the bottom one to target this target distribution at time one.
So the first thing we're going to do is instead of working with this target distribution that's only defined at time one, we're going to work with, we're going to first extend the problem into this time interval between time zero and one. So we're going to define the optimal process as this distribution where at time one it's still P star and in between time one.

p star and then between time one it follows this base distribution there's conditional distribution you can think about this conditional distribution if your diffusion model is flat as sort of the forward process you're given noise you're adding you're given a data point adding noise the way that I think about it is you can take a lot of samples from the base process right they took you take a look at which samples pass through x1 at time one and then those are the samples that are from this conditional distribution
Now this is just an arbitrary way of defining the target, right? So it's not the only way, but it is one thing, it's one way to define it such that it makes use of the base process in the process, and it's quite a natural way to extend the problem into this problem of path measures and you can think about joint distributions across time.
And now instead of optimizing an objective that's defined at only time one, which is, you know, for example, the KL, we're going to be looking at the KL of the path measure of this entire, just the joint distribution between all these infinite number of variables X_i indexed by some real valued number between zero and one. I'm going to work with this KL instead.
Again, this is a harder problem to solve than the original one in the sense that it is one particular solution that leads to the original, to solve the original problem, but this is something that, you know, it's going to make the method a little bit easier.
So first thing we're going to do is we can take this KL objective between the control process and the target process and just rewrite it in terms of the base process, right? The P star is just defined in terms of P base and R. And similar, these equations are basically the first line is Bayes rule. The second line is the definition of P star. So basically you can rewrite this in terms of just the KL between the control process and the base process plus the reward term. And so this might be familiar to many of you.
This is sort of like a KL regularized reward function, right? We want to be minimizing the reward, sorry, maximizing reward, minimizing negative reward. And then we have some KL in there that says, okay, let's stay close to the base process. Intuitively, this makes a lot of sense, right? So one way you can also think about this is that it's an elbow, right? So we're introducing a lot of latent variables, all these X subscript, you know.
time between zero and one, these are latent variables that we've introduced. And so this basically is an elbow where the likelihood of the observation model is modeled by this R. Now here comes the slight problem. We're doing basically Bayesian inference over the entire trajectory or the entire stochastic process starting at time zero all the way to time one. But ideally what we want to learn is that at time zero we still want a noise distribution. We don't actually want to optimize the distribution at time zero.
But let's get there in a bit. So first off, we can break down this KL into two parts. First is the KL on the source distribution at time zero. And the second part is the conditional KL, given that they start from the same point, right? So this conditional KL, I won't really derive it. It's from, you know, Gershwin theory or the Jarzinski. There's a bunch of ways you can derive this. You can also start from basically a sequence of Gaussian's and you take a limit, it becomes something like this.
In terms of the league, you can think about this as like we're sampling XT along the control process and at some point we want to look at the KL between a one-step transition and we see that the base process points somewhere and the control process points somewhere else, right? So if UT, this is basically the offset to the base process, if UT is zero then the KL is zero, right? So there's no difference between them and you can think about that, you know, the higher this UT is the farther away these two distributions diverge.
sort of the intuition. Now how do we deal with this? Turns out it's not too bad to deal with this. One approach previously basically trained a model of X0 but there's another there's actually even simpler way to do this which is we don't need to optimize it if the base process is memoryless. This is a term we created but memoryless just means that this base process at time zero and time one are completely independent so it doesn't matter what noise you start with the data sample is independent of the noise.
Um, we'll just put that assumption there. I'll come back to this and you know how when when this is getting satisfied I'll talk about that later
So just a quick summary, right? So we have a target distribution that's this tilted distribution from p-base multiplied by the exponentiate reward. We have some base process, some SDE that we have that models the base process, and we want to learn this control process. We've defined a KL over the past space that includes the entire interval between 0 and 1 to make our problem a bit easier and to make use of stochastic control theory.
And the question is, I'm sorry, the crux of this is if the base process is memoryless, then this simple objective is equivalent to minimizing the KL, right? And this is a really simple objective, but at the same time...
we need to take care of this condition right at the very beginning of the talk I sort of hinted that we want to do this for reward fine -tuning in particular I'm a fan of flow matching itself but flow matching is definitely not memoryless it is the ODE sampler and it is the very opposite of memoryless the x1 is completely dependent on x0 because it's just a deterministic transformation between the two so how do we actually apply our method that we just went through into
to these models. Similar things can be said actually by, for example, if you use the DDIM sampler for diffusion models with zero noise, if those are the ones that are getting good samples, we really want to be sampling from those models.
The first thing is let's first recognize how this model is trained. This is just a really standard flow matching model. It's just we take independent samples of X0 and X1 and then we take linear interpolation between the two and then we say let's fit an MSC loss to the vector field that just points towards X1.
Again, I'm not talking about the pre-training right now, but now the memoryless, we can convert this to a memoryless SDE, basically. So this is from our Agile matching paper where we say that there's essentially if you add enough noise, it's going to become memoryless. So if your sigma T goes to infinity, it becomes memoryless. But basically there's the smallest coefficient that you can have for sigma T, and that's this one that I'm showing on the slide.
in particular for the special case of the linear interpolation. And this one, you know, it says, okay, well, we're going to keep the distribution at time one fixed, but you can see it adds a lot of noise at the very beginning. And that's how it makes X0 independent, right? Or like makes X1 independent of X0. In particular, sigma T and both BT have a division by T. So it's infinite. Both are infinite times zero. Numerically, when we simulate this, we just skip the first step so that we don't actually blow up the computer.
And then we can fine -tune with the SoC loss itself, because now this is actual memoryless process. How this is going to work on images, again, we'll come back to this and I'll show you some more results. But this process of creating the memoryless, or rather these coefficients, these sigma t, they do show up before. And in particular, it shows up in the DDPM model, the very first diffusion model that made everything very popular. It's because they're minimizing directly the KL to this.
process that's being used for training right against for training the x0 and x1 are completely independently sampled and so this defines a proper path measure a joint distribution uh that you know is memoryless and so if we fit to that then you get uh ddpm essentially is a memoryless process this other paper scalable interpolant in transformers also talks about choosing optimizing the noise schedule based on the kl and they also found this formula but as we'll see later i don't think this is
uh something you would want to actually create the samples it's just something we can we need to use during fine-tuning okay so that's the problem formulation i hope that that much was a little bit clear we basically have a reward model and we uh if we want to uh do reward fine-tuning we basically introduce a loss um for that um so now i'm going to talk about how to actually solve the problem of stochastic control and i'm going to talk about talk about our recent work on magic matching
So in particular, recall again, this is the stochastic control objective. We want to optimize some control term minus the reward subject to this controlled SDE. And we optimize the U, the control term in this formulation.
For now, just drop the control term, drop the norm of UT because I'm mixing it a little bit complicated. So let's just think about if there's only a terminal reward and we want to optimize a stochastic differential equation with respect to just a really simple objective that's only defined at the terminal time. The most classic method is this thing called the adjoint method, but it's basically just back propagating through the SDE.
One thing, first thing, let's define the adjoint states. This is sort of from a different literature, but it's the name that we've been using for a bit. So the adjoint state is basically the gradient of the objective with respect to xt itself. So you take a random trajectory, and now you just back propagate the loss all the way to xt. That's basically what the adjoint state is supposed to hold. It's the gradient of the loss with respect to xt. And in particular, if you think about the discretization.
itself during sampling. This is the Euler-Maruyama discretization, but Xt plus I, or I plus one, sorry, is going to be XtI plus some step size h multiplied by the vector field plus the appropriate amount of noise, right? And we do this all the way until the final sample. We take the gradient of the reward with respect to the final sample, the gradient of X1.
And then we start back propagating, you know, backwards in time, right? So this AT, basically, we can just look at it through chain rule, right?

we can just look at it through chain rule, right? If the gradient with respect to the next state is A_T_I plus one, then the gradient with respect to A_T_I is going to be just that thing multiplied by the Jacobian of a one-step transition, right? So it looks something like this, and it basically is an Euler discretization of an ODE as well. If you take the limit of H to zero, we can write this in terms of an ODE.
Yeah, so this is a bit nostalgic for me, but in most cases, you wouldn't really care about the differential equation itself. We'll see why we do actually need to care about this in a bit, because in practice, we just discretize everything and it sort of just works as is. One other thing is if you want to include the control term, basically, this is like adding intermediate loss functions, you know, during sampling. So you just add it to the gradient, right? It's just another partial derivative that you get added to the I join states.
Okay. So it's a pretty complicated equation. Hopefully it was quite clear how to derive it. One other complicated equation before we get to the meat of this, the talk. So we actually want the gradient of the loss with respect to theta. And the way we get that is we accumulate all the gradients from the loss with respect to xt, right? And then take the gradient from xt to theta, right? Just parts, we just do a partial derivative through all the xts, accumulate that across time. And then the second term is...
We don't, it's the other parts of the world of the loss directly with respect to theta. It doesn't go through XT. Don't worry too much about these equations. I'll simplify them in quite a bit. Okay, so.
That's a way of directly differentiating through the SDE to try to find an optimal solution. It's a gradient-based method, right? I'm going to try to introduce an alternative perspective. It's not going to be a gradient-based method anymore. We're not optimizing directly the SLC objective, but instead we're going to think about a fixed-point method. And in particular, it's useful to define this cost functional, which is basically the expected cost if you're at a certain time in a certain location X.
and your current control is u then this is basically just says okay let's unroll let's sample a bunch of directories look at what the expected cost is from this current location and that's what j is
There's a really nice property in continuous time and continuous space that we can make use of and it's just that you know if you want to be minimizing the expected cost we just take the steepest descent direction and so there's a nice result where we just say well the thing that we were trying to learn this offsets to the vector field to the drift is because it's just going to go in the direction of the negative gradient of J.
So it's quite neat. And one thing you can think about this is, sorry, the one thing we can say about this is that this property is both necessary and sufficient. So the only control that satisfies this property that it is equal to the gradient, the negative gradient of its own cost functional is the optimal control. And so really we just want to find a control, a UT, that satisfies this condition.
So that's how we arrived at this sort of basic adjoin matching. It's just a fixed point iteration method. It's saying take the left-hand side, regress on the right-hand side, and say we want it to be zero. We want it to be as small as possible. If it's zero, then we have the utmost solution. So it's not a gradient-based method. We cannot really say it's a gradient of anything because of the stop gradient. We're just evaluating the left-hand side and the right-hand side separately for using the same utility.
Okay. Ah, sorry. This should be UT theta. It's a little mistake. Okay, so we cannot really estimate this functional. It's the gradient of a functional. Instead, we can just write it out. We exchange this integral and the gradient basically and would say, well, actually, we can just use the adjoint state as a stochastic estimator for the gradient of the cost. And so instead of
Doing that, let's just regress onto the adjoint state itself. So this is a stochastic fixed -point iteration method. Now, the problem with this approach is it's actually just exactly equivalent to what I had on the previous slide on the adjoint method, because if you derive what the gradient is, or the first variation of this loss function with respect to the theta, you get the exact same equation as the adjoint method. So there's nothing new here just yet.
So that was a little bit of a bummer, but because we're not doing any sort of gradient-based optimization anymore, we just have a fixed-point method, there's a few other things that we can do that you cannot normally do in a gradient-based approach. So first let's take a look again at this unwieldy adjoint state differential equation.
And again, the optimal solution that I showed, right? So we can do a few steps of derivations here. We can first say you can write it in terms of the adjoint, move the right-hand side to the left-hand side, and something is equal to zero. And then we're going to multiply it by the Jacobian of UT. Now, this is just something that we know is zero at the optimal solution. We're at the optimal control. This term is exactly zero. And it turns out this thing shows up exactly in the adjoint state differential equations.
So this is something we know is zero. But if we estimate this using regular adjoint method, it's going to be something non-zero. So it's going to introduce noise, although we know it's zero. So what we're proposing now is instead of using the adjoint state at all, just remove these terms. Because these terms are zero at the optimal solution. Right, so.
We define the lean adjoint state and the lean adjoint state essentially everything except the two terms are removed that we know is, you know, zero at the expectation, at the optimum. And now this lean adjoint states has a very interesting property. It only depends on Bt and R, which are, you know, the base process and part of the problem formulation. It doesn't depend on Ut. It does depend on Ut because the samples need to come from you. So it still needs to be like on policy in that sense.
But instead of regressing onto the adjoint state, we just regress onto the lean adjoint state now. And it turns out that this actually has the right fixed point. We can prove that this will converge to the right solution and its first variation is zero if and only if it's at the optimal control. But one thing is this is very different now from the adjoint method. It's not a gradient-based method again, right? It's just a fixed point and we're just regressing to something and we know that the optimum solution, the stationary point, the fixed point is still the same.
That's quite nice and in practice we found that this works quite a lot better than the adjoint method which is something that's quite surprising for me to say because the adjoint method is really classical it's something that's you know everyone understands it's just back propagation but this method does actually work better so just to show you some evidence of this on images so here's a flow matching model just a pre-trained model we have some samples this is a text to image model
And the first thing that we do is we turn it into the memoryless SDE, right? So like I said, there's different existing examples of this memoryless conversion in the literature, but it's something that's a bit weird because it adds so much noise at the very beginning that it's throwing away all the global coherence of degenerated image, right? Because if you sort of break down what happens during generation, generally the global structure is being generated first, right? And then the image.
details or smaller features are being generated later. So if you add so much noise at the very beginning, all it does is it just shows really nice textures. But this is what we need for the fine tuning theoretically. And you can see that after we fine tune using the stochastic control so we're targeting remember that tilted distribution using some reward model.
If we fine tune this, we end up with something a bit nicer, but still very colorful. It's still the memoryless process. One thing to note is that this text to image model was never trained on, like it was mostly trained on real images, mostly photos, not like artistic or paintings. So this kind of behavior is still not really expected. But one thing is we can convert this back to the flow. And the reason for this is if you remember the optimal P star that we defined it is made up of the
of the base process multiplied by the terminal distribution at T star. So essentially it's trained a new model, a new diffusion model on this new distribution, but the sort of noising process is still exactly the same as the base process. So we can still do the same convergence between ODE and SDE after reward fine-tuning.
And so now you can take a look at the difference here. You know, these are using the same random, same X0, that's why they look very similar semantically. You can see that doing this reword finding has improved the image quality substantially, but keeping the sort of the global coherence pretty much the same if you look at the third example, for example. Okay, now there's another application that we've never really shown outside.
of meta but we also applied matching to the movie gen project itself it's in particular for audio generation so on the right hand side is the human evaluation that we did for if we had a 30 20 billion base model versus a 13 billion reward fine-tuned model and the reward fine-tuned model basically is statistically significant using human evaluation this is really a nice result from that we got because
This sort of result was not seen for months. Let me just show you this example that Kevin
Yeah, okay, cool. Yeah, exciting fireworks. Yeah, so the text problem is basically the model is just given a text and the video and just wants to sync up the audio itself, right? The reward model that we use here is basically a video and audio consistency. So it does something like this very nicely. One of the things...

um one of the failures which you probably will never see on the website but if you have a human in the video because we have a consistency loss a consistent reward the audio will introduce heavy breathing just because it's it thinks every human has a heavy breathing sound so in some sense you don't really want to trust your reward model and this is especially the case for these large-scale general modeling applications the reward model is you know highly sort of
the prone to adversarial examples and so it's very important to have that KL that anchor to the base process the pre-trained model itself okay all right so next I'm going to talk about the third part of the talk which is how to scale the method this is going to be about pure sampling now not reward fine-tuning the real fine fine-tuning was okay because we only needed roughly like 2,000 iterations it trains very fast
because you start with a very nice base model and you don't want to steer too far away from it but sampling is actually a much harder problem because here we don't really have any signal to start with we don't know you know the support of all the modes that we want to sample from and just to remind people here we I'm going to change terminology and use energy function now so it's something we want to minimize we want to find the local minima instead of maximizing
It's just a different terminology from different communities. So the energy model here, it's potential energy essentially. So if you see something with high potential energy in the natural world, it's going to naturally try to transform into lower potential energy, some states that is more stable.
And so we basically want to sort of analyze these for computational chemistry reasons because these are the confirmations, the 3D positions that we believe are more naturally to occur in the real world. And so we need to study these positions, not the random positions, because they don't have the right properties.
So anyway, so given the molecule, we want to basically find low energy regions. And one other problem of this task is that the energy function is extremely expensive. I'll get to that a bit later. Okay, so in terms of the method, we know how to solve problems like this. And we want to turn it into solving problems like that, right, the one above. So we can do actually just a really simple trick. We can just define the reward to cancel out the p -base.
The reward just has a negative log in a p-base at one that just cancels out this extra term and then you get that the optimal solution is going to be equal to this unnormalized distribution. It's defined only in terms of the energy. And so we have this quadratic control objective where the terminal cost or terminal reward has been shifted to this. One note here is that just to recall
The optimal process still depends on p-base. So even though I've canceled out the dependency of the terminal distribution on p-base, the dependencies that we use between time 0 and time 1 still rely on this choice of p-base. So it's still a choice. It's not part of the problem, again. It's part of the art. We get to prescribe this as part of the method.
And because we get to prescribe this, there's something, let's go back to this lean adjoint state again. Something quite interesting, right? So I said the lean adjoint state doesn't depend on UT anymore. It doesn't depend on the learned model. It only depends on BT. So what if we just make the base process B, you know, just remove the drifts. So we have a base process that is only a diffusion coefficient. And so now the lean adjoint state differential equation is just zero.
And so the Aden, sorry, the lean Aden state doesn't change across time. It's just always equal to its value at the terminal time. Okay? And so this actually drastically simplifies the Aden matching loss because we don't actually need to solve anything backwards in time. We just evaluate whatever the cost was at one and we take a gradient and now we just match that gradient.
So we derived this from a different perspective, but this has appeared before in this particle-denoising diffusion sampler paper. Particularly they call it the novel score matching loss. But that particular paper was more focused on using SMC samples for sampling. I think they didn't really realize the power of this loss function at the time.
But yeah, so let's talk about this lost function a little bit. First thing you should notice is that it only depends on xt and x1. It doesn't actually depend on the whole trajectory anymore. We don't need to sample whole trajectories. We just need to make sure that we have xt and x1 from the appropriate joint distribution defined by this control process. And recall that, again, our optimality condition is that between times zero and time one, it's defined by this base process.
And so if you have something that's really not optimal, ideally we want to update it, right? We want to say, okay, let's do the same KL, but now the terminal cost is this PU. It's just given some existing control, I want to fix the distribution at time zero and the distribution at time one.
And I want to just update whatever happens in the middle. I just want to update my drift so that it's optimal for whatever happens in the middle. Okay? This kind of projection is something that sort of combines what's called a reciprocal projection and a Markovian projection. We won't really get into that, but it's basically just very expensive to update. It usually requires more gradient updates, requires, you know, basically just optimizing this loss, which you don't want to do. So I'm going to create a method that does this for free, right?
So this is, to me, it's really nice because, you know, again, the problem is only to find a time one. We sort of arbitrarily define whatever happens between times zero and one. So it'd be really nice if we could actually do this projection and just arbitrarily remove, you know, remove that arbitrary component from the optimization. So first thing we can do is instead of sampling X_t and X_1 from this control process, we're going to just sample X_t given X_1 from the optimal process, which is defined by this P_0.
So this is slightly more optimal. We're not updating the drift in any way, we're just changing the way we generate the samples. And now we're going to leave, let's say, the P1 of U fixed. So we're going to leave the distribution of X1 fixed, the distribution of XT is coming from the base process. And so this loss function now is just a simple regression loss function.
Given V, because V doesn't affect the expectation anymore, there's no longer a moving target. Previously there was a moving target because we were taking samples, the adjacent state dependent on the thing that we were trying to, the thing that we were regressing on is dependent on the thing that we're trying to learn.
Okay, so now this loss function sort of decouples the thing we learn and the expectation. Now the theory behind this is it's actually quite straightforward, but it's really nice. It's just if we were to optimize this, we keep u fixed, as we have some control, we keep it fixed for a few iterations. We only update this model, we keep the x1 fixed, and we only update the model without updating the samples of x1 or xt, or sorry, its distribution, then by minimizing this, this is equivalent to doing a projection.
projection on the drift itself, the sub-optimal drift, projecting it into a more optimal one and then doing a step of the adjoint matching step. So this is quite nice because it basically is saying we can implicitly project the function into a more optimal one and we don't need to worry about it. All we had to do was change the way we sample our samples.
Okay, and again we can say we can summary prove that the fixed point is the only optimal control The the way we implement this is instead, you know We would put all we would generate a bunch of samples and then put it in a replay buffer And we would at the same time also evaluates the energy function because the energy function again is also very very expensive We don't want to evaluate too many times and we don't want to sample too many times from the model So this method actually allows us to do very infrequent sample generations and energy evaluations
In step number two, we just optimize this RAM loss until convergence or just optimize multiple iterations and then before generating new samples for training. So alongside this method, we also wanted to propose a new benchmark for highly scalable sampling because we realized all the sampling problems or most of the sampling methods
sort of they either only try to test them on a simple a single system without any sort of amortization or generalization or maybe sometimes they assume the energy function is basically cheap and free and so they evaluate the energy function multiple times right using SMC or MCMC like methods
So we wanted to propose something that's from the chemistry literature and it's sort of, or rather we're going to coat it up and release the benchmark. But it's something that if you were to do very well, it actually has pretty high impact in the computational chemistry community. Essentially the energy evaluations now are going to be modeled by deep neural networks, deep graph neural networks, and there are approximations of DFT energies that we trained. So these are very highly accurate energies and each
Each DFT evaluation takes, you know, up to minutes, but we can distill it into a graph neural network that takes, you know, a second to evaluate, but still very expensive. We cannot evaluate too many times. And we're going to train these on molecules. The molecules are represented by these smile strings, which basically tells you the atom types and which bonds exist, and we're going to generate the positions.
So we're going to test generalization to unseen molecules. And each of these molecules has up to 100 to 1,000 different local minima. And the test specifically is to say, have you found all the local minima? It's less about the proportions of samples between each of the modes, but it's all about how much can you actually find every single local minima. So this is actually really difficult because, you know, for example, the reward fine-tuning problem, really we just need one good sample per text.
But here we actually find you need the whole distribution and maybe just to give you a sense of how expensive this is, the test set that we did was 100 molecules and in order to get the ground truth for those 100 molecules we ran DFT for seven days to get the ground truth for those 100 molecules.

to get the ground truth for those 100 molecules. So this is actually an experiment where if you were to train a general model on these 24,000 molecules, you would actually do it faster than the DFT for the unseen 100 molecules.
All right, so for this paper, we did some Cartesian models of like this is called the external coordinates, but Cartesian models did model 3D locations and we also did torsion models that only model rotations in the flat torus. I'm going to skip this a little bit and talk about this one that's a bit more interesting.
This talks about the computational cost of each of the components. In particular the blue one is the cost of simulating a sample itself. This is what people have mostly been focusing on. It is very expensive for sure. But the energy evaluation is not cheap anymore. It is still much smaller than the blue one because we're only evaluating it once. The blue one is being evaluated 1,000 times to get one sample.
But you can think this IDM paper is where we sort of took a lot of inspiration from to use a replay buffer, but their targets for training requires a lot of energy evaluations. Their standard one uses 512 energy evaluations, which I didn't plot it because the bar just overtakes everything else.
um so yeah energy is not free we cannot just easily do important sampling and importance weighting and things like that um and lastly if we were to just compute the entire directory save the entire directory do any sort of thing based on uh differentiation we can only get one update in this entire red bar and it's just way too slow to be practical right so we want to be looking into these highly scalable sampling methods that can actually work at this kind of scale and i think this will be a really interesting benchmark you know
once we release it for your next paper okay so that's the end of the talk I basically talked about adjunct matching and adjunct sampling we also open source a re-implementation of adjunct matching if you're interested it doesn't reproduce the things in the paper it uses a stable diffusion model instead and of course thank you a lot to my collaborators there's a lot of people here who are both on the methods and also a lot of people who are sort of the chemists who are raising the bar for our applications to really
Drive progress forwards and thank you so much for attending the talk Thanks for the nice talk from Ricky and from the audience, do you have the questions?
Yeah, thanks Kiki for the presentation. I just have one question when it comes to the sampling and the last, you know, the thing you call that the reciprocal adjoint.
loss uh something that we've that we had uh when i tried that in targets called matching type stuff but we had access to the data so it's quite different but something that i noticed is that it was quite hard to train because you evaluate the energy at x1 while your neural network is evaluated at x2 and so yeah and so basically what we found is that we needed to do that only close when t is close to one otherwise like we had basically no
uh signal in the network so like is it i've managed to find like i mean maybe it was a skill issue and like and and uh yeah it's doable but like i'm wondering like if you also had this problem and if yes what what you did to to go around this okay So I'm not familiar with that problem because I don't think we've seen it. I would say that I don't think this loss is exactly the same as the target score matching, although it is, I think, very similar to the novel score matching, but that's something we can.
Talk about more offline, but for us, yeah, no, there's no instability here when we have XT that's very, very far away from X1. I would say that in most cases, because of how much it's a, you can think about it like this.
For a given xt, there could be a wide range of x1s, right? For a lot of the xts that are maybe early on in the training, it's just fitting to the expectation over x1. So there it's very stable. At the very end, it's also very stable because x1 given xt is just a delta. So it's very, you know, you're already there. And everything in the middle, I think it's also okay. It's just, you know, it's what this regression loss is doing. It's basically just smoothing.
Right, the grading of the energy. Along with this grading of this, you know, this regularized log T base that making it more diverse, right. So these two terms are like, you know, one is exploitation, one is exploration. And then this regression loss is just saying let's smooth that out over, you know, based on whatever the sigma T was for the base process. So in general, this is actually just like a really simple regression problem. There's no longer a moving target because we now have a buffer, right. We just sample things from the buffer and, you know, it's just regressing. We know exactly what the solution of this is and that's why we.
why we can derive these theoretical results. It's because we can just write down the optimal solution, it's the conditional expectation of the thing that we're regressing onto.
Yeah. So yeah, I think it does benefit a lot from being, like you said, matching laws, it's just MSC, it's really just a simple aggression at this point. It's a no stability issue like it was okay. Not really, no. One thing is the energy, if the energy gradient blows up, we do clip it. I feel like that's part of the energy, not part of the learning.
Cool, yeah, thanks a lot for your talk. I have a short question regarding the...
over the left uh i thought you mentioned like in the sampling application you said like you're most interested in mode coverage and not really that interested in like proportions of the different Yeah. like sampling modes i guess in the applications people are quite interested in that like in some applications do you know how you perform that and i guess if you don't perform that well with the current method do you have any ideas of like ways to fix that or what the issues are there Yeah, that's a good question. So I don't know how well we perform if you care about the
about the proportions i do acknowledge there are different applications that do care about the proportions being right for sure especially if you want to like estimate that expectation uh you know with low variance things like that um at least at scale i don't know uh we did try our method on toy example sorry not toy but like you know these uh single systems with classical force fields like leonard jones and new results we're trying them out alan nine to dypeptide these we basically fit very well or as well as the existing works
we can look at the distribution of the energy sort of distribution itself versus MCMC ground truth and it looks very nice so in that sense I think it's it's okay but in terms of these amortized you know generalization results I don't know if we're generalizing properly with the you know the right Boltzmann distribution in that sense but again I think just to wrap up I think we should we can also treat these as two separate things right like you say like you know whether or not we're finding all the modes versus why not whether or not we're finding the right
rights uh proportions can be separate metrics and if we maybe combine them to one it gets a little bit uh you know uh ambiguous which one we're we're doing better in but i agree yeah so definitely it depends on the application this one that we're targeting is just whether or not we find all the modes yeah Yeah, thank you very much for the amazing talk. So one question is
For example, for the for the case of the reward driven uh auto encoder cases, what if do you have any thought if you the reward model is not differentiable? uh if the reward is not differentiable right you said yeah Yeah, that's right. So this formulation currently is based on differentiable reward, but I was wondering yeah that you have any thought about the that's like that's a great question i i have some thoughts but nothing that's actually useful um so one thing that people have done is value learning so instead of uh
learning the gradient of the of the reward they just learned the expectation of the reward so you can learn the value function based on which was it this J itself I'm sorry just go back yeah this J you can you can also regress onto this J which is something that people can do or actually have done for discrete problems and now you just use this J it's for for sampling
But for me, I do think, actually it's very typical for neural networks where if you train to regress onto a scalar signal, that doesn't mean you have the right gradients. Because, you know, for example, if you use a ReLU network, for example, you're not really learning the right gradients. And so it makes a lot of sense when it is differentiable that you just regress onto the gradient of the cost itself. But yeah, regarding your question, I have no smarter answer than that.
It's a great question. of
Thank you. Thank you Professor Rickey for the great presentation. At the beginning, allow me to expand my sincere gratitude to your work about the stochastic optimal control. Regarding this, I'm participant from control community. I'm doubt that since that it seems to be a finite time horizon optimal control problem, yes, between time interval zero to one, and the derivation seems too complex. What will happen if we extend the time horizon to infinity?
For some affinity horizon optimum control, we can directly eliminate the terminal uh ter terminal term such that the derivation may be more simpler, even though it may be costly to round the optimal control.
Yeah, personally, I do like actually it's a non-stationary, it's a finite horizon, because when we apply this to general models, in many cases we don't really want to use a stationary process because we don't know when to terminate, right? Numerically, we're never going to go to infinity. Numerically, we still terminate at some point, right? So in a sense, I think.
If it's easier maybe there could be use cases where you could derive a method and then numerically use it. But to me because in practice we always use a finite horizon anyway it doesn't make sense to derive it directly in the finite horizon and you know because it's already been done I think it's not really that complicated it's just something we can directly use but regarding your comment also reminded me about

But regarding your comment also reminded me about these fixed point methods, implicit differentiation, where you basically, you can model a model, sorry, you can construct the model using fixed point problems itself. And in that case, you know, maybe there could be different ways of handling these sort of problems. Okay. Yeah. Thank you. Thank you. Thank you. All right. Thank Ricky again.
Yep, thank you very much. Thank you. So now is a post session. Welcome back at uh eleven twenty.







Hi everyone, I hope you enjoyed the poster session and now we're going to start the invited talk session pretty soon so please finish up all your discussions and then let's come back for the invited talk. Thank you.
So our post section is closed. Please come here for our next talk. Thank you very much.
Let's invite Professor Chen. Nancy Chen is from ASI and she is going to present her work on talk text tone teaching AI to understand us all. So let's welcome Nancy. Good morning, everyone. Can you hear me?
So, yeah, today I'm very happy to have this opportunity to share with you some of our research endeavors in multimodal generative AI. And so, in particular, I'll be focusing on the speech and audio aspect and also the social dynamic information that can be embedded in this kind of information.
So, quick thing, in addition to academic research, we also work on technology deployment for government and their commercial spin-offs. So I'll be talking more about some of the application side and also I also want to do some advertising for Near-Earth, so I'm the program chair for 2024, so welcome you to submit papers and continue your research endeavors and publications after I clear.
So, yeah, so at ASTAR, we look at generative AI and authentic AI in these three different parts. So the first part is the more LM generative AI building capability. So from pre-training to instruction fine-tuning and alignment post-training. So a lot of the efforts do focus on instruction fine-tuning and alignment post-training for human -centric adaptation. And so we are building a Mary -Lion model.
which is I'll talk a little more about it so it's under the national LM initiative in Singapore
And with this model, sometimes you still need to adapt it for different use cases. So we look at more resource efficient adaptation. So this includes knowledge integration, which I'll share a bit on applications and the education side. And also with multiple LMs, how do we do agentic AI for more collaborative and complex tasks are also some ongoing efforts. So near Maralayan stands for.
Multimodal empathetic reasoning and learning in one network. It also is a play on word for Red Lion. So mera means red. Mera means red in Malay and Singapore actually means Lion City in Malay. So mera lion means red lion. And so here I'm going to use a Chinese character to...
give an overview of the different components. So this Chinese character is the character for
listen. So when you generate anything, you should listen carefully before. And so the red part is the part that symbolizes the ear. So this is the audio encoder part, speech audio encoder part, which I will focus a lot of our efforts here. So to be a good listener, you should also have good eye contact. So the blue part means eyes. So this is the vision part.
And of course you should do multimodal integration. And in terms of the decoding side, in addition to the more analytical part of characterizing how one might think on the logical side, we're also looking at the empathetic side of how you use your heart to feel and do empathetic reasoning.
So this is the team for Mayor Lion. It's older pictures, so some new members are not in it. So it's a big effort. So I'm reading the research efforts, and there's also development and deployment efforts that are ongoing. So here, the idea is that if you have a more cascaded system, then there will be a lot of error propagation. So I'll give one example.
So let's say if you have a speech audio in Singlish, I don't know if any of you are familiar with it, but you might hear it in the streets in Singapore. Singapore is a very multilingual place with a lot of historical roots. So a lot of the language usage is shaped by the history. So you might hear something like, Bojo, you went to the movies without me?
So Bojo is actually from Hokkien, it's a Chinese language slash dialect spoken in southern Fujian where a lot of the southeast Asian immigrants come from, from China. And so Bojo is a slang in English where it has this meaning of the fear of missing out and it also...
It implies the social dynamics with the person you're talking to. So if you say this, you know next time if this person went on a movie, went to see a movie without you, the person will feel very socially embarrassed about it. So it's a little bit passive-aggressive to make sure you're invited the next time. So it has a lot of rich cultural complex semantics within it. But if you use a more...
general speech recognizer, most likely what you'll get is Bonjour, you went to the movies without me, uh because it might be a little more westernized and be more familiar with uh the French greeting instead of a singlish vocal term. So then this kind of air propagation could uh extend into the semantic representation rep representation space and affect downstream uh applications. So here what we want is a more universal representation of
of different modalities so here I'll give another example in Japanese so let's say you see the Pokemon animation and you think it's really cute you might say kawaii ne so this last part that is in pink ne is actually a social cue to invite the other person to join in and say oh yeah I also think Pokemon is very very cute so so this is an implicit message that's culturally
That's more cultural, and so, but it has this social cue that often is embedded in the speech signal, and this is how text and speech might be different, where you have a lot of rich information outside of semantics that's also in speech. So the idea that we want to do is that for the semantic representations, of course, we want all modalities to model the same part, but for these more spoken or linguistic nuances like the ne and kawaiine.
or Bojo, these we want to also model it and understand the underlying social implications so that we can have a broader possible application.

possible application space where you can do a more comprehensive kind of modeling and understanding of human interactions. So for the Marelion capability, so in addition to looking at what we want to extend to answer questions of why. So this spans from audio scene understanding, so making sense of physical sound sequences to voice characterization of
where your voice can imply different information about you besides what you're talking about, your gender, your age, your accent, your emotions, your health status. And of course, in conversation semantics, when you're talking with someone else, there's a lot going on. A lot of it could be contextual. And so here I will give one example with this video of a conversation between a young toddler and her mother.
What did you say? Are you being mean to me? No. Yeah. I need another mommy. You need another mommy? Yes.
Okay, who do you want as your mommy? Okay, I'll tell her. But you can't call me mommy anymore. You can't call me mama. What's your name? Michelle.
You're not Michelle. Are you ready to go now? Yeah, mommy. Okay. Yeah, so here in this conversation, you could see there's a lot of progressions in the motions of the child and actually the mother handled it pretty well. So she was able to...
embody empathy into her interaction with the child without saying oh I understand your viewpoint but really putting herself in the other person's shoes so you can see that the child is complaining that she wants another mommy so this is a superficial signal in the sense that she's upset what she's really saying is that I don't think you're listening to me so I don't want to cooperate I don't want to quickly put on my clothes and go out
I feel like we're not connecting. So, but it's very implicit. So instead of getting angry, the mother acknowledge the need that maybe we should consider someone else to be your mother and...
So and then ask you know who do you want this to be? So they continued on and so then you could see that the child's perspective changed because now her problem is actually solved. Her mother is listening to her and so actually this solves her fundamental problem so she actually doesn't really need, she never really meant she wanted a new mommy and her problem is solved. So in that sense she also of course got confused when she
She cannot call her mother mommy anymore, so but then the situation resolved. So in this sense this is the kind of empathetic reasoning that we would like to model and make our AI systems understand better and so from the
biology perspective there are different neural correlates in the brain that helps humans model empathy so roughly speaking you can think of it as two parts the first part is the limbic system which is more fast and reactive and instinctive it processes emotions in a more rapid way and then the other part is the long-term planning reasoning learning part of the prefrontal cortex
And so for the free frontal cortex, it actually might take decades to mature. It might take up to 25 years or more. So it's a long learning process, and it works together with the limbic system that acts faster and is present in many, many animals.
And so when we think about how we want to structure the empathetic reasoning part, we can think of it in two parts. One is the fast part and one is the slow part. So the slow part is the perspective learning part where it might include contextualized knowledge, embodiment and role play, logical analysis, which we've seen a lot of advancement in AI reasoning models with LMs, and of course with ethical considerations.
For the interfacing with the human side then we want savvy awareness of the social dynamics so it could be emotions it could be cultural aspects and nuances and then with the perspective learning you want compassionate action to follow on
And so this is how we characterize the different aspects. And in the human AI collaboration applications, we have some ongoing agentic AI initiatives. So this includes initiatives in education 4.0, which focuses more on personalized AI-powered skill-based lifelong learning. And this also includes mental health and well -being, where...
can use empathetic reasoning aspects to better support wellness and also embodied learning and robotics, especially on the social robotics side. And also when we think about policy forming, it's good to take into considerations on these aspects and better inform how we can think about these things in a more
inclusive aspect so here I'm going to use education as one example and so here then the contextualized knowledge would be the education learning theories and we want to use empathetic reasoning to enable scaffolding for engaged learning so here the scaffolded guidance can help the child or student or learner engage better and have
Better learning interactions, so here I'm going to show one example Hello. Let's think about how a rainbow is formed. We know there is both rain and sunshine when we see a rainbow. What do you think happens to the sunlight when it hits a raindrop? I don't know.
It's okay. Let's think about it together. When sunlight enters a raindrop, it's like the light goes on a little adventure inside the raindrop. What do you think happens to the light inside the raindrop? The light disappeared. Not exactly. The light doesn't disappear, but it does change.
What do you think happens to the light when it enters the raindrop? It's too difficult. I don't know. That's okay. Let's simplify it. When sunlight enters a raindrop, it bends, which is like curving or changing direction. Inside the raindrop, the light breaks into many colors, like when you use a prism in science class.
Can you think of why we see different colors instead of just one color? Ah, I got it. The light bends in the rain. So I won't continue but this gives you a sensing of how you can enable scaffolding in this interaction so you can better explain and provide a better foundation for the child to understand. So here we...
We did and we have been doing is to for education theories on how to do scaffolding we try to integrate it into the system and so the idea is that you can use clarifications questioning or presenting different types of analogy models to help the learner close the gap between what the student knows and what the student doesn't know so this is the
proximity development zone that we want to the green part in this digital that we want to close and so so this enables and encourage them to connect new information with their personal experience and prior knowledge and so so this is one example of the pedagogical instructions that we want to add in and integrate into the modeling so that we can have more streamlined
applications. So the one I just showed is zone of proximal development and there are other kinds. So it includes knowledge construction, inquiry-based learning where you focus on asking questions to inspire curiosity or probe the student to think more and dialogic teaching where you have a more interactive
conversation going on and so so these have different roots in the education learning literature and so so here is one example where we use scaffolding in a language learning application to help younger children learn how to describe images so the image itself is an anchor for common ground

common ground especially for younger children this could be a better way to get this learning started and this is especially something that's important in Singapore because Singapore has four official languages so English is used for
A lot of official usage, so in government and education and business and law. And then there are three other official languages, Mandarin Chinese, Malay and Tamil that approximate the different historical ethnicities and cultures that are in the society. And so students in school need to choose one of these three to learn. And so it's a little bit like in the U.S. when you learn a second language, you might get.
several hours a week for French or German. So to really be able to learn it well you might need additional help. So here what we also constructed is to use it the education theories to construct the evaluation rubrics where you might have different aspects where you might be giving hints or
providing questions and explanations and social emotional support and so here is so for in terms of social emotional support we borrowed the big five personality traits that adapted it for a tutoring conversation agent especially for the education use case and so here then we can train our system to be more aware of the different personalities so that when we
engage with the students learning it can provide more personalized responses to do scaffolding and so so this is and we do both automatic and human evaluation to help complement it and so some of these are at the dialogue level some of these are at the utterance level to provide different types of scaffolding
And another thing that we have looked into is code switching. So code switching means that in the same language, in the same sentence, you might have terms in different languages and this is quite common in more multilingual societies or when you're talking about topics where there might be more borrowed language from...
From more different languages and so so in Singapore a common phenomenon that you see is that the child might be most familiar with English and so when you're trying to encourage them to speak in Mandarin Chinese Malay or Tamil they
might feel like they might feel very shy they may not feel comfortable and they may not have sufficient terminology and vocabulary to express themselves so here depending on your target you might need to craft the code switching of usage of the different languages properly so for example if now the goal is to let the child
Say the word library and Mandarin Chinese you do not want to give out the answer by spoon-feeding so this part you might need to use English the word library and try to encourage the child to speak out but of course at certain points when you realize the child really is not his or her knowledge base is not
large enough then you might need to directly introduce but before that you might want to try the different encouragement and not give out the answer so soon so so sometimes the clarifications and questions that you ask should be in English so that to make sure they understand so this is another aspect where we are modeling
So here I also want to bring in another aspect of cultural contextualization. So a lot of times we think about culture equating it to language, but there are nuances beyond that. And so here I'll give another example. So here is a picture of
Lunar New Year Chinese New Year reunion and you see a lot of different decorations and so the their lantern decorations and this might not be a common term that children use in daily life and you want them to be able to know this and so in English you might easily use techniques like a tag question so you might say this is the lantern isn't it
So when you directly translate this to Mandarin, 这是灯笼不是吗? It will sound a bit like scolding in this context because it's actually westernized Mandarin and so although it is Mandarin, contextually it doesn't sound right or it might achieve the opposite effect that you want. So instead of encouragement, it might...
Sound like you're implying the student is not very sharp. How can you not know something so basic? So then in this case, if you switch the sentence structure a bit in English, this is a lantern, right? And do this kind of translation. 这是灯笼,对吗? Then it will sound much more encouraging with a more positive attitude to encourage the child to speak more in Mandarin. So these are subtle nuances that
We see in a lot of our test bedding and use this to help us improve the modeling aspect. And we've also observed these westernization patterns in Malay and Tamil too. And so...
These are very important observations to help us understand how to better improve and the nuances between language and culture could be separate at times. So right now our system is being trialed in primary schools in Singapore and so we keep getting different types of feedback like these to help us improve.
So here is, so for the more deployed model for this education use case, this is where we have three parts where there's multimodal understanding, multilingual, large language models and the speech generation part.
And so this is part of the AI for Education Grand Challenge in Singapore. So I'll show one example in Chinese. Some of you might understand it. And so here we try to use a more engaging voice. So these are six or seven-year-olds, so they prefer to speak to peers and this helps them better engage as well.
小朋友 我们来看这张图片 你看到左边有一个男 孩在做什么吗 你 男孩在哭。他 知道为什么男孩在哭吗 他 好像摔倒了。我 可能摔倒了 你看他的 姐姐在做什么呢 没 看不出来 关系 我们再仔细看看
姐姐的手 在男孩身上, 他的表情是怎样的? 他很难过 他很难过,姐姐在做 什么让男孩不难过呢? 姐姐在安慰他 非常好,现在我们来看右边, 你看到那个女孩在玩什么吗? 滑梯
你觉得 她的心情怎么样? 小女孩看起来很 开心 开心 她看起来很开心,你能 再说一遍开心吗? 今天我们学了三个词, 安慰、华金和开心, 继续努力哦! So we also develop ones for Malay and Tamil, but maybe fewer people understand it, so I'll skip it.
Um, and so here I wanted to use this as an example to show some of the gaps with academic research and when you do deployments on additional considerations. So for this kind of language learning engagement, a lot of times the teacher would prefer images that are quite dense because for one image they might want to achieve multiple purposes.
And so for the dense image captioning to make sure you fully understand the dynamics between the different group activities could at times be.
It may not always be very streamlined, and so this is something that we're working on, and of course the cultural nuances that attach to the multilingual aspect also comes into play when we want the whole system to work. And to give some perspective, so when we do the speech understanding part, while Mandarin and English might work reasonably okay, for Malay and Tamil often there is a pretty big gap, so we had to do a lot more instruction fine-tuning.
and to boost up the performance. And so the last column is in terms of we did a human evaluation of comparing the base model with the model that we beefed up on the multilingual aspects. And so the dark blue means that the human evaluation is preferred our newer model, and the light blue is the base model.
The other blue in the middle is when it's a tie. So we looked at the translation capability and also multilingual instruction following capability to get a sensing and realize for Malay and Tamil there was a pretty big gap that were

It was a pretty big gap that we were able to help fill in. And so here is another example of how we want to achieve balanced multilingual capability with a...
compact model size because in some of the operational constraints there's very lean operational budget so the model size cannot be too big so here the horizontal axis is the English capability the vertical axis is the multilingual capability and we're looking at language understanding and reasoning so the pink
Circle is our model. So this is a four billion model. And so we compare it with models from Meta and Qianwen to try to make the multilingual capabilities a little more balanced. And so here is the ideal case. So this model size is related to the circle size. So ideally you want both the multilingual and the English capability to be
both very good and the model as small as possible if model size is a constraint. So this is for the language generation side. So usually language generation is much harder than language understanding and reasoning. But you can see similar trends where we try to strike the balance between the multilingual and English capabilities.
So this is ongoing work, and so here I will close with this Marilyn Chinese character lesson to help close it and here are some of the publications that we had recently in multimodal and multilingual LM empathetic reasoning and applications beyond education that includes healthcare, neuroscience and social media.
Thank you. Thank you, Nancy, for the nice talk. For the audience, do you have any questions for Nancy? Yes, please.
Hello. Okay. Hi Nancy, thanks Oh, for the hi. talk uh and for the work. I'm Kelvin from uh Singapore Unis uh University of Technology and Design. Um I have a question around so on this on this multi -modality and all that I have a question around how much work um is on the uh model itself or the architecture.
Because like one of the challenges that we face with multi-modality is actually quite upstream, which is the tokenizer. So I mean I came in your top pathway so I'm not sure if that is discussed at all. If that is causing, do you see that tokenizers are causing issues and obstructions to realizing some of the potential that is actually possible?
Yeah, yeah, so there will actually be another talk in the afternoon at SUTD that might touch upon some of these. Yeah, so we haven't looked into tokenization as much, but it's true that when we were evaluating base models, we do take that into consideration. Some may not work as well. And so typically...
In our past experience Tamil might have more of more issues like this so we might try to streamline the issues for other languages first before we work on Tamil because it might have extra considerations to deal with yeah so yeah that's some of our experience yeah we can also discuss a bit more offline too. Right. Okay. Thank you. Do we have any other questions for Nancy?
Is no? Okay. Let's thank Nancy again for her nice talk and then we'll move on to the oral presentation.
It should. Yes. Um hello everyone. We are going to our oral presentation section. So our first speaker um Chen Ye um he he will give us a talk about like what uh large language diffusion models. That's welcome.
Uh, thank you. Hello everyone. This is from Renmin University of China. Today I am very glad to introduce our work, large language distribution models. In this slide, in the background of this slide, we can see the generative process of a diffusion language model. It is different from the traditional left to right, like token prediction. It is a diffusion process which can generate a sentence in any order.
Firstly, I wanted to present our understanding of generative model. We know that for the data, for example, text, image, video, or 3D in our world, they are all high -dimension features. The task of generative model is to model the p-theta which is as close as the true d true data distribution P-data.
We think there are three key elements in the base code generative models. The first one is the neural network, for example, M_L_P_ or M_N_ C_N_N_ transformer. The second dimension is the scaling behaviour, for example, the model parameters, the data scale and the G_P_U_ hours they used. The third dimension is the probability modelling method, for example, V_A_E_ GAN flow.
water-regressable or diffusion. At very low, language is the core modality of intelligence, but we believe the strengths of large language diffusion models are not unique to auto-regressable modelling.
For the generative model, at the usual way use the maximum likelihood estimation (MLE) to learn the parameters which is equivalent to minimise the KL divergence between the big data and the p theta. There are many ways to model this joint distribution p theta for old for the auto-regressive model. Auto-regressive model use the chain rule chain rule to model this joint distribution.
And we believe that many of the good ability of large language models come from the equation one, not the equation two.
For example, the first ability, scalable ability, comes from multiple factors working together. First, the feature consistency tell us if we use the M_L_E_ as the loss function, as the amount of data increases, the model distribution will add closer uh will be very close to the data distribution. The second fac factor is that the lagged token prediction is a very simple tool optimization.
And the third factor is that the transformer is a excellent neural network.
Based on these three factors, they believe that auto-regressive is thus the only way to be to build a scale-scalable models. Because you know that diffusion model use the M_L_E_ as the loss function, and the diffusion uh D_Lloyd and Noise is uh also very simple. It's also very simple for optimisation. And the diffusion model can also employ the transformer.
Second, for the instruction following or the in-context learning is worth a lot of unicorn to the auto-regressive model. We think any strong condition generative model which model the probability p-response given the prompt should work.
Third, Yin Yang had said compression is intelligence. Based on the Xianglongzi source coding theorem, MLE is equivalent to data compression. So the data compression is sourced from the MLE principle rather than the auto-regression method.
Uh next I wanted to introduce the background of mask diffusion model. Similar to the continuous diffusion model, mask diffusion model also has a forward process and the backward process. For the forward process, given T which i uh between the the o which between zero and one, each dimension is in

Further on the one, each dimension is independently masked with probability t and remains unchanged otherwise.
For the reverse process, we denote them start from a full -masked sequence. And as they uh reverse process goes uh going on, the mask ratio gradually decrease. The key difference between the masked diffusion model and the masked language model, for example BERT, is that the mask ratio of BERT is fixed.
Uh based down on based on the forward process and the reverse process, we can get the uh following evidence lower bound as the loss function and utilize the transformer encoder as the backbone. Uh
Given the data X_VO_ though, we can add a noise to it to get a X to get a X_t_ and we use X_t_ as the input to the transformer encoder and use the cross entropy loss to predict the masked tokens. This is the production pipeline of masked diffusion models.
Based on the motivation and the formulation, we develop the LADA, Large Language Diffusion Model with Masking. On around the 20 standard language modeling task, LADA achieve overall performance comparable with LAMA3. Our inference code and model weight has open source. Please enjoy it.
Not a employs this standard training pipeline of large language models, including pre-training and SFT. Not a is pre-training on 2.3 training tokens and instructs tune on 4.5 million examples. The first key difference, the architecture of NADA is very similar to LAMA and the first key difference is that we remove the causal mask.
And the second key difference is that Lada does not use the group quality attention. So the key value heads of Lada is equal to the attention heads.
We can see that as the FLOPs increase, the scalability of mask diffusion model is comparable with the autoregressive baseline, and especially for some downstream task, for example MMLU, CMMIO, or GSM8K, the scalability of mask diffusion model is more powerful than the autoregressive model.
Uh we come also that the mask diffusion model has the in-context learning ability and that in-const and that the instruction following ability. Yeah. And the latter is the first long auto-regressive model that had the ability to uh multi-turn chat. Mm at last I wanted to show that the sampling method of ladder is very flexible. They can use the pure diffusion reverse process to generate a sentence.
You know, these things, we can also use a block-wise autoregressive sampling just to like the uh for example block diffusion, but uh with the auto the modification of the pre-training pipeline. Uh in each block, we use the pure diffusion reverse sampling, but uh between it between different uh block, we use uh left to right uh like f to left to right generation.
At last the Lada account also uses the left to right like token prediction. So the sampling method of Lada is very flexible. Among uh this three sampling methods we found that the first one, the pure diffusion sampling method had the best performance. Uh thank you.
And do you have the question from the audience? Yeah, thanks so much. Really inspiring work. So I think your group also had some previous work scaling up these diffusion models and saw a distinct gap.
In terms of like token efficiency from the perplexity perspective, but now on downstream tasks you're seeing better or equivalent efficiency. So like what in your opinion can potentially explain that gap is perplexity not the right metric in evaluating these diffusion models?
Uh okay, thank you for your question. This is a excellent question. We can say that in this finger, this scale ability of mask diffusion model is comparable with the auto-regressive model. But in my previous work, we can see that if we use the um perplexity as the evaluation metric, then mask diffusion model is much worse than the auto-regressive baseline. I think the reason is that uh the training
Uh the training notes of the auto regression model is the exact likelihood. But for the diffusion model, it's uh evidence lower bound. So maybe there is a gap between the exact likelihood and the evidence lower bound. I think this is maybe one reason which can account for uh the gap between the perplexity and the uh downstream task. Yeah. Thank you.
Okay, thank you. Thanks for our talk again. Okay, so next will welcome
Le Tianchen will present actual diff Dada's cause actual pistol more generation by a multitask retraining
Oh. Hello everyone. Today I will introduce our latest research, AROP-Diff, Data Scares AROP-Summer Generation via Multi-Type Recurrent Classifier Guided Diffusion. I am Le Tianchen from Shanghai Jiao Tong University and Shanghai Innovation Institute.
First let's understand what a chiral isomers are. They are isomers arising from hindered rotation around chiral axes like the molecule shown on the right picture.
These molecules play a pivotal role in asymmetric catalysis and drug discovery, making them highly valuable for research. However, generating and predicting atropisomers faces significant challenges. The first challenge is data scarcity. It's difficult to determine atropisomers using experimental way such as spectrum or quantum chemistry calculation.
The second challenge comes from model itself. General molecular generation models struggle to capture a topisomeric determinants. And currently no model can accurately describe a topisomer. So the core idea of our work is to embed domain knowledge into diffusion models via a pre-trained.
Pre-trained classifier and scaffold information, overcoming the challenges of data scarcity and structural complexity. Our main contributions include three aspects. First, we pre-train a chirality classifier on multiple tasks for gradient-guided chirality control. Second, we dynamically balancing chirality accuracy and molecular validity during the denoising process.
Finally, we gradually integrate the scaffold information into generation process, enabling optimization on non-atropic somers. So here is the overall framework of AtropDeep. It consists of four parts, the dataset, the classifier, the generator and two sampling methods.
So a high quality data set is crucial for model success. For pre-training data set, we constructed start scaffolds by connecting common aromatic rings pairwise. Then we added various common subunits adjacent to the chiral axes, yielding about 1.7 million structures. Next, we used XTB for flexible scans around the axis for each molecule.
to calculate the rotational energy barriers and relative conformer energies. Finally, CHIROL FINDER was used to annotate the CHIROL axis, resulting in 12 million annotated conformers. For fine-tuning dataset, we performed similarity searches on PubChem based on known H-propysomers.
Then we applied speech filtering using Cairo finder and C_S_M_ software, selecting high symmetric molecules with Cairo axis. And uh notably our nega -neg

Notably, our negative samples are structurally similar to positive samples to increase classification difficulty and improve classifier performance. Now let's look closer at the classifier components. We chose UniML as the base model, which is a pre-trained 3D transformer for general molecule tasks.
We introduce X-ray protein training task chiral axis identification which was noted uh annotated by chiral finder, rotational energy barrier prediction and relative energy prediction by calculating uh using uh STB.
The objective is to enable the model to learn fundamental atomistic numeric patterns from computationally generated labels before fine -tuning. This improves robustness and performance when fine-tuning on limited data. Next is our generator. Our base model is the equivalent diffusion model using equivalent...
Graph Neural Networks. The first sampling method is gradient -guided generation. We adopt a training-free classifier guidance using our pre-trained predictor by making the classification network differentiable to past gradients. The advantages is the first, firstly it effectively leverages prior knowledge from the pre -trained classifier and it requires no additional model training for guidance.
The second sampling strategy is scaffold-guided generation. This is inspired by image inpainting techniques. The method involves fixing the co-scaffold during the diffusion process. We gradually introduce the noise-scaffold structure consistent with the current noise level during sampling.
This enables lead optimization and decouples a trapezoid merit scaffold generation from substitute sampling, reducing the difficulty of generating novel atropisomers. To evaluate the result of our framework, we test the performance of both prediction part and generation part. The table on the left shows that our multitask pre-trained model achieves
Best performance on our fine-tuning data sets. The ablation study shows that each of our pre-training tasks attributes to the final performance. The table on the right shows that our sampling methods outperforms the unconditional generation in terms of success rate, which is the ratio of molecules that has chiral access and can be viewed as a trope simmer.
And also our sampling strategy preserves comparable performance on uniqueness and novelty, and the low validity of scaffold guidance is mainly due to the large number of atoms of our chosen scaffold. In conclusion, our framework shows great potential in generating a tropismers and provide a feasible way to solve generation problems in data scarce scenarios.
So thanks for listening. Okay, so thank you for your great talk. So any question from the audience? So maybe I I'll ask one. So could you comment on the cost of pre -training a classifier?
Like pre -training the catch Yeah. virus anymore Yeah.
So we had 1.2 trillion conformers and the Unimal baseline was pre-trained on two million conformers. So and we call our frameworks pre -training but we just borrowed the pre -trained parameters from Unimal.
that do three additional pre-training tasks on our model. So uh it converges very fast. So Okay. like the cost is uh relatively uh uh low. Okay. Thank you. So there are no other questions. Okay, so I think
Let's thank the speaker again. So we're going to have our last oral talk by Shen Chao. Yes, can you see my screen?
Okay, okay. So yeah, unfortunately I'm not able to join the conference due to the visa issue, but thank you for coming here today and I'm very happy to introduce our recent work on the flow along the K amplitude for the generative model. And this is joint work with Wei Tao and other group members from DAMO Academy and feel free to send us emails if you have any questions. So let's get started.
So first is about some key concepts, okay. For example, like the flow matching, we have the data and then we define the vector field and the flow function on top of that. And the vector field defines a flow through an ordinary differential equation. And we also have the flow matching loss and by injecting the continuity equation, we have this conditional flow matching loss. And so the key point here is like
Like we include like we define different interpolation paths to give us like to help us provide like the ground truth velocity function as a supervised signal.
And the next I want to introduce is a scaling parameter. So it is a measure that can organize a frequency bands. All you can understand is as a projected coefficient. And we also have the K amplitude, which describes a norm of such projected coefficients. And so just like in the figure here, for simplicity, you can basically understand like the scaling parameter as a frequency.
But in the few, the earlier slides will show you like how the scaling parameter can go beyond the frequency, okay. And so we also did some very interesting analysis.
And what we call this as a low scaling hypothesis. So the point here is like, for example, if we take the image as a data and then we just analyze the k amplitude, which is a norm of the projected coefficients after projecting into some like decomposition method, for example, here we are using the wavelet and we can see like this k amplitude or the norm are much higher when we are.
using the low scaling parameter. And when we increase the scaling parameter, the amplitude or the norm gets lower. So this actually has some very nice motivations. So first is like we have, we can assume like the frequency has an inductive bias. It exists wildly in the data space or the latent space. And
When we are talking about the multimodal transformation, we are basically doing two things, the alignment and the completion. So alignment means like we are trying to align the shared information between different modalities. And typically we may say like these shared information, they are mainly like in the low frequency. So what does this insight lead us is like in the original flow matching.
like research line we are typically doing this flow along the time reel okay and in the K flow what we are thinking is like maybe you can try to do this flow along the K amplitude or like we can name it as a frequency domain for simplicity and it has many advantages for example like
So the k amplitude in physics, it is highly related to the energy and we can also because in this case we are explicitly divide the inference in the inference process with respect to different scaling parameters which provides us with a better stability or like controllability of the generative process.
And then like because right now we have the k amplitude and scaling parameter, then we can introduce like the k amplitude decomposition. So here we think of the data as a signal of a function and
And different decomposition methods give us like different function basis. And then the scaling parameter means like they, according to the scaling parameters, we can partition the function basis into different subsets. And with this, we can then do this K amplitude decomposition, which is like trying to decompose the data with respect to these subsets.
Okay. And there are some very standard like K amplitude decomposition method. For example, like in a frequency realm, people have been using this Fourier transformation or like wavelet transformation. These are very typical. But in addition to this, we actually also do this PCA transformation. Well, that's what I want to highlight in this slide.

like in this in this slide so for example in the figure here you can see like the principal component analysis right so the way we do that we are doing this is like we take the covariance matrix of the data and what we are doing here is like we take eigenvalues of the covariance matrix in the descending order and this this ordered eigenvalues are actually the scaling parameters we are defined here because like we are doing this from the low uh from the from the likes of
a low scaling part to the high scaling part okay and with this k amplitude decomposition we can and also like the scaling parameter k we can then do this k we can introduce a k flow so
On the figure here we have the image and then we have the scaling parameter corresponding to different base subsets, okay. And then we can do this k amplitude transform. We transform the images into the k amplitude space and then we will do some interpolation in this k amplitude space after which we'll do the k amplitude inverse transform to transform it back to the data space.
And after that, it's a very typical flow matching paradigm.
So recall in the previous slide we mentioned like the key point of the flow matching is how to do the interpolation paths right or like how to design the interpolation paths and then the question here is like so how can we design this interpolation in this k amplitude space okay so the answer here is like we can do the interscaling interpolation which is smooth and differentiable there are a lot of there are some technical details so I won't be able to cover it in the 10-minute talk so
out like if you're interested, feel free to check the papers.
And then for the experiments, we actually cover a wide range of the, like, for example, like the image generation tasks and also like some molecular assembly tasks or like some scientific tasks. And there are too many insights and here I just want to highlight one very interesting observation. So we call this experiment as image controllable class conditional generation.
So first it's about class conditional generation. So that basically means
At each inference step, we have, we're feeding the class condition, feeding the class labels as a condition to the velocity function, okay? For example here, this is like, so this means like the low scaling part and then we, during the inference time, we gradually, you can think of this as a gradually denoising from the low scaling to the high scaling part, okay? So you can see like how these red regions, it...
of the polar regions expanded along the two axis okay and so we call this as un-dropped images because during the whole process we keep feeding the class condition into the velocity function and we did another like the control control experiment it's like in the in the K flow model we
we draw the class labels as some intermediate inference steps during the during the whole like the inference process so the conjecture here is like because because recall like in the k-flow we kind of disentangle the low scaling and high scaling or like the low frequency and high frequency part and we assume like this class label it's a it's a low frequency information so which means like in the in the in the k-flow inference
process if we keep the class condition only in the low scaling part and drops that in the middle scaling or like higher scaling part this dropped images that are like the generated images at this step should be very similar to the undropped images in the in the first row okay so this is expectation and
Here is our observation. So you can see like in the k-flow, we do observe like even though we drop like the class condition in the intermediate inference steps, the generated images are actually very similar. So which means like the low scaling part does actually encode these
like the general like the information as expected and as a comparison we also test a local latent flow matching and we pick up like some very these images are already sound like very well
recognize images and actually during our experience we found like more images that is not recognizable and so the takeaway is like class information as a low frequency component it's actually learned in this low scaling part in the K flow and there's no such we are disentangled properties in the latent flow matching okay
So, of course, this is just one insight from the paper. We have more results, so feel free to check our paper and also like feel free to reach out to us if you have any questions. Okay. And yeah, that's all for my talk today and feel free to ask any questions you have here. Okay, let's thank the speaker.
And do you have questions from the audience? So maybe I can ask one. So is it possible to extend to maybe multi-module case for your method? Yeah that's actually the goal of uh you can see like that's actually in one of the main motivations for the for this project and we actually work on that now yeah
All right, thank you. Okay, Thanks thank you again. All right. Thanks everyone come for the morning section. So it's time for lunch and please come back at 2 p.m. We'll have more interesting talks and posters.









you









This afternoon section will start soon. Please have a seat.
So, um, we will start the afternoon section. So first I have uh Shin-Hu Choi from Yale University. Today he will introduce uh D_D_P_M_S_G_A_ matching and uh distribution learning. Let's welcome. And uh thank you to all of the organizers for organizing this workshop.
So this talk will not really be about how to build better diffusion models or anything like that. Instead, it's going to try to explore the capabilities of diffusion models and score matching from a theoretical perspective.
So this is a joint work with a bunch of collaborators from Yale, Alkis who's a postdoc, Anae who's a PhD student, and Omar who's a professor, so it spans all the different ranks.
All right, so let me start by setting up the notation of course. So the data distribution is going to be p0, it's the start of our generative process. We have a forward process, which is for this talk just going to be the standard Ornstein-Uhlenbeck process. So typically you might have some time rescaling here, but from a mathematical perspective they're all equivalent. So when we do mathematics we keep it simple and we just have this standard process.
And then we can reverse the process in time to form our generative diffusion model, where we flip the sign of the drift and we add the score function. Okay, and of course, in order to run this reverse process, we need to learn the score function, which is where the role of score matching, which is what the topic of this talk comes into play. So score matching, we learn the score function via the score matching objective.
Now this might not be the form of score matching that you've seen previously, but you can take my word for it that it's basically equivalent. So in score matching the the key is that the true score, the gradient of the log density of your process at time T_ is the minimizer of the expectation of what I'll call the score matching loss at time T_ associated with the score function S_T_ and of initial point x_0.
It's a minimizer where x0 is drawn from the data distribution p0. And I put the form of the score matching objective here. Basically, it tries to align the score function with the transition density of the OU process, but it won't really be so relevant for the talk here, so I'll just keep things as S and T for this talk.
And of course that's at the population level. What we do in practice is that we minimize an empirical version of this. So what we do is we replace the expectation of X_0 over the data distribution with N training samples and this is what we train instead. And then we might minimize this objective over some class of score functions, for instance some kind of neural network architecture and that will give us our learned score functions, S_0 hat T.
Okay, and then once we've trained the score functions, then we use them to generate, which means that we have to discretize and implement this reverse SDE. Okay, so suppose that we have a bunch of estimated score functions, S hat T, then what we do is we first of all replace the true score function with these estimated scores, and we also have to discretize. So I have this notation T with a minus sign under it, this is just referring to the discretization time step rather than the true time step.
Okay, and then we initialize the reverse process at standard Gaussian, and at time capital T of this reverse process, we have the law of this reverse process is some p hat zero, which we hope is close to the true data distribution p zero. Okay, so let me start by recapping the known results about the generation aspect of this problem.
So this is kind of an informal theorem that summarizes what we know about this generation. So denoising diffusion models, or DT-PM, it can actually achieve total variation guaranteed to the data distribution. And the number of steps is polynomial in these various problem parameters under the following assumptions. So the first assumption is that the score functions are Lipschitz along the forward trajectory.
And the second is that the data distribution has some bounded second moment. And also, of course, we need to assume that the score functions are learned correctly. So we'll assume that the L2 error of the learned score estimates is epsilon star squared, the integrated score error. So this result, what it says is that we can learn the distribution in total variation distance up to the score error, epsilon star.
And out of all these assumptions, of course the score, the assumption that the scores are learned accurately, this depends on the situation in practice. So this we cannot say much about. However, for the other two assumptions, of course the bounded second moment is reasonable, but the fact that the score functions are Lipschitz along the four trajectory, this is not a realistic assumption. For instance, if your data lies on some low dimensional manifold is a typical example where this would not be satisfied.
However, you can also remove that assumption entirely by doing some early stopping. And if you stop your process at time tau, then again the complexity becomes polynomial now in log of 1 over tau, which means that you can take tau to be extremely small and you can still have some good results. Okay, so this is kind of the...
results on sampling from diffusion models. And I guess I worked on this with some co-authors, which was accepted as an oral at ICLR two years ago. And it's actually a really great experience to come back here for ICLR and see some of my co -authors I haven't seen since writing this paper. And then there's also some concurrent work, and since then there's kind of been an explosion in the literature on various sampling guarantees for diffusion models. Sorry, I couldn't list them all here.
But going forward from this theorem, what I want to explore is kind of to dig a little bit deeper into what these diffusion models are really doing. So I thought I would play a little game with you, which is I'm going to ask a bunch of yes-no questions, and I'd like you to raise your hand if you think the answer is yes. And the...
The questions here are just like which of these tasks are kind of well-defined tasks in the sense of having like a clear goal with some measurable notion of performance. So the first question is, given access to evaluations of the likelihood function for some distribution P0, I want you to use that information to output a sample from P0. So who thinks this task makes sense?

Okay, I see some raised hands, some not raised hands. Maybe you're...
bit hesitant like why I'm posing this game in the first place so don't be shy so the answer to this question is indeed this this task makes a perfect sense it's actually the standard setup for MCMC algorithms in general this is typically the information we have access to and it makes sense as a question because you can actually formulate this as a complexity question what's the minimum number of times that you need to evaluate the density in order to output this sample and that has a well-defined answer
So second question, given samples now from the distribution p0, we want to be able to learn the score functions along the diffusion. So hands up if you think this is a well-defined question.
Hopefully there's a lot of hands raised because this is a standard just stats question. A given sample is learn something about your unknown distribution. And indeed there's been like a lot of work recently which tries to provide statistical guarantees for how you can learn score functions, what's the minimum number of samples you need and so on. Third question, given access to score functions along the diffusion,
Can we use these score functions to output a new sample from p0? Okay hands up if you think this question makes sense. Okay good again this question does make sense that's exactly the setting of the previous theorem so this is saying like I have access to my distribution p0 and through some form and the way that this distribution is presented to me is through these evaluations of score functions along the diffusion and then you can ask like what is the best way to make use of this information to sample.
Question number four is the question of generative modeling. Given samples from P0, generate new samples from P0. Now who thinks this question makes sense? Okay, so the point of this slide actually is that this question actually does not make sense, strictly speaking from an information theoretic perspective.
And what do I mean by this? I mean when I say generate new samples from P0, what I'm implicitly assuming is that the new samples are independent of your previous samples. Otherwise, I could just give you back your original samples and you haven't really done anything. But if I really require my new sample to be independent of my previous samples, this is just information theoretically not possible.
Because when I have my original samples, like all I know about my distribution, all that information is contained in these like in these original samples. Now, if I had truly independent new samples from my distribution, I would somehow have more information about the distribution, but that couldn't have possibly like been contained in the original samples, which is all the information I started with. So basically like from an information theoretic standpoint, this question does not make sense.
I mean, it would kill all of statistics if you think about it. In statistics, we have some like notion of the best possible performance you can attain with N samples. If I had, if I were able to use these N samples and generate even a single new sample independent of my original N samples, I would be able to do better on my statistical test, but that's just not possible. Okay, but one thing that's kind of curious is that task number four on this slide is the composition of tasks two and three.
Okay. So in task two, I start with samples, I learn score functions. In task three, I start with score functions, I learn, and then I use this to generate a new sample. So how is it the case that task four does not make sense when it's a composition of two tasks that do make sense? And the reason why is again this implicit assumption that the new sample should be independent of my original samples.
Because in task three, if I have a sampler that uses score functions, then the new sample is going to depend on the score functions. And in task two, if the score functions are learned from samples, the score functions are going to depend on my original samples. Therefore, if you compose tasks two and three, then the new samples I generate are dependent on the original samples. So I'm not really generating new samples.
Okay, this might seem like kind of a pedantic point, but actually that's kind of the point of this talk is to really think clearly about what diffusion models are doing. Now, on the other hand, if you are a machine learning practitioner, you hear this kind of thing said all the time. Like generative models, you start with samples, the goal is to generate samples from the distribution.
So, like, there's so many people working on generative models, it can't be that they're all crazy. And indeed, there is actually a sensible task that is captured by this paradigm.
And what I want to argue is that the correct paradigm to think about is that diffusion models are really a problem in distribution learning. In distribution learning, I get a bunch of samples and I want to learn a distribution. It's just that the distribution I learn is represented implicitly through an algorithm. So I'll get to that in a little bit.
This is the last task of this slide, which is given samples from P0, we want to be able to learn a sampler for the distribution P0. And this is what I'm going to argue is that this is exactly what we're trying to accomplish with generative models or diffusion models. OK, so let's talk about distribution learning in a little bit more detail.
So what does it mean to learn a family of distribution? So we have some unknown family of distributions. When we talk about learning, we have to talk about a family because it doesn't make sense to learn a single distribution because I guess the assumption here is that we know the family. So if you know your family just consists of a singleton, you've already learned it. So you have some family of distributions and I have some samples from some distribution which belongs to the family and then I want to figure out what is the distribution that the samples came from.
with the prior knowledge that I belong to this family. Okay, now this question, to be able to take samples and output an estimate of the distribution, it makes perfect sense if you're a mathematician because you could say, okay, just output the distribution. It doesn't make sense if you actually want to do anything in practice because I don't know exactly what it means to output a distribution.
Until I talk about how you actually represent this distribution. And various ways of representing your distribution give rise to computationally distinct tasks in distribution learning. So here's some examples.
So maybe the most classical one is suppose that your family of distributions is indexed by some finite dimensional parameter theta. In this case, theta summarizes all of the information about your distribution. For instance, my family is Gaussians with unknown mean and covariance, in which case the mean and covariance completely summarizes your distribution. And in this setting, the most natural thing to do would be to just output an estimate of the parameters themselves. In that sense, we could say we have learned the distribution.
Another very popular form of learning a distribution, and this is what I see when I open any textbook on statistics, is the problem of density estimation. So in density estimation, what we want to do is we want to output a function essentially, P hat, which is this function I'm allowed to query it at any point in space X, and this is supposed to give me an estimate of the density at that location X.
Okay, so think for instance like kernel density estimators and so on. These are all examples of density estimators. However, there's another way to represent a distribution and that's this third definition which I call learning a sampler.
And in this goal, in this task, the goal is actually to output a generator. So what is a generator? A generator is a function or an algorithm, if you prefer, that's learned from data. It takes as input a random seed, which I'll just take to be a uniform random variable in 0,1 because we know that's a universal source of randomness. Okay, so it takes in some random seed and then outputs some point. Sorry, I think there's a typo on this slide. It should say a function from 0,1 to R to the D.
right so I'll put a sample okay and this this generator we can call it as many times as we want we can just run it again with a different random seed and we get another sample out and what is the notion of accuracy for learning a sampler well what I want is that the law of the output of this generator on this random seed conditioned on my original data is a close to my data distribution p
So why does it have to be conditioned on my initial data? It's because I want to make sure that I'm not just, again, like outputting my original samples. So if, for instance, I just output my original sample X1, that's not really learning a sampler. And indeed, if I condition on the data and look at the output of this trivial procedure, it would just be a distribution which places probability 1 on X1, the first sample. And this is not close to the distribution.
distribution P. Okay so this task is really formally defined as learning the I want the distribution of the generator conditioned on my data to be close to P.
Now like this last task, this is exactly what we do when we consider diffusion models because the generator, the process of learning the generator is exactly the process of estimating the score functions. I take a bunch of data, I learn score functions. Now imagine I come up to you and say like happy birthday, I got you a present and I just dump a bunch of score functions into your arms. So these score functions are actually a representation of a distribution.
How do they represent a distribution? They represent the distribution implicitly.

They represent the distribution implicitly. Oops. Oh, no. So these score functions, they represent the distribution implicitly by saying it's the law of the output of the sampler that you've learned.
Okay, so now that we're clear is that the composition of tasks two and three that I stated on the previous slide, the correct way to think about it is as a distribution learning problem where the form of the distribution we're learning is as a generator.
Let me make one quick remark, which is that this distinction between, let's say, density estimation and learning a sampler, this distinction is purely a computational question. And the reason why is that these two tasks are equivalent at the level of information theory. So what do I mean? By information theory, I mean like given a number of samples, a fixed number of samples, what's the best you can do? So given a fixed number of samples, if I have access to a density estimator,
then what I could do is I could just sample from this density estimator and that would be learning a sampler. Okay, and of course that might not be easy to do in practice, but that's why I'm saying the distinction is a computational question. And in reverse, if I have access to a sampler, what I could do is I could call this sampler infinitely many times, generate infinitely many samples, and then use this to produce some density estimate.
And these like procedures like the density estimate I have versus the sampler that I have, these contain like the same amount of information about my unknown distribution P. But converting between one and the other, this might require a lot of computation. So these tasks are not equivalent at the computational lens.
So just as an example, if I consider a minimax lower bound in statistics, this is an information theoretic bound. So a minimax lower bound in stats would apply to both of these tasks. Okay, the information theoretic lower bound would say given this many samples, you cannot learn a distribution better than this level of error. And that applies whether you're trying to learn a density estimator or whether you're trying to learn a sampler.
However, this equivalence is not true when we talk about computational lower bounds later in this talk. Alright, so given this discussion, I want to now take this previous theorem that I stated on the sampling guarantee for DDPM and reinterpret it as a theorem on distribution learning.
So now this is the informal statement of the theorem. Let this class of distributions be pretty much any realistic family of distributions. So this is capturing the fact that the diffusion model theorem had no real assumptions. Then the first statement is that the sample complexity of learning a sampler for this distribution, script P, is at most the sample complexity of learning the score functions along DDPM.
So why is this true? It's because the previous theorem said that the score function error translates into total variation error between the distributions. Okay, so if I can learn the score functions well to some amount of accuracy, then I can learn the distributions well to that same level of accuracy in total variation. So the sample complexities are the same.
And moreover, this reduction, so to speak, is computationally efficient because the theorem said that these diffusion models would run in polynomial time. Okay, so the computational complexity of learning the distribution is at most polynomial factor worse than the computational complexity of learning the score functions.
And phrased as a result on distribution learning, we can summarize it by this slogan, which is that learning a sampler is as easy as learning this course. This is kind of the prior work on diffusion models interpreted from this lens.
Okay, now what is, okay, and let me just give some examples of some results on learning a sample via GDPR in the literature. So for instance, you can consider learning score functions for various non-parametric classes of densities like base soft classes or holder classes. You can also consider it for mixtures of Gaussians and so forth. And these prior works, they use this GDPR theorem to say like, okay, we have a procedure to learn the scores.
This actually lets you learn the class of distributions under consideration and the form in which you learn the distribution is again you learn a sampler. Okay, so now what is the point of my talk? My talk is to kind of connect this idea of score matching along diffusions to these other forms of distribution learning.
So as you can see from this figure there's these prior works which really say that the problem of generation or learning a sampler is reduced to the task of score estimation. And now what I want to argue is that these other two forms of distribution learning, namely parameter estimation and density estimation can also be reduced to the problem of score estimation.
So this will be kind of the outline for the rest of the talk. First, I'll tell you about this one key identity about the score functions and the likelihood, which will be like the basis for the rest of the talk. And then I'll talk about implications of this one identity for parameter estimation, for density estimation, and also for the computational hardness of learning score functions.
All right, so what is this likelihood identity? So just quickly recall that the true score function is the minimizer of this population score matching loss and the learned score functions are the minimizer of this empirical score matching loss. And all of these are summarized by this function S_M sub t. Now here's the identity. The identity says that the negative log density
of my data distribution at any point x0 is exactly equal to the score matching loss, like the integral of S_M_T evaluated at the true scores and at x0 plus a known constant C_D_T which is written down below is just some function of the dimension and the time that you run the diffusion, but some known explicit constant plus an error term which decays exponentially fast with the time of the diffusion.
And this is really just because I'm considering the Ornstein-Ollenbeck process, so we need to run the diffusion for some amount of time. But if you did one of these other schemes that runs in finite time, then you wouldn't have this error term. Okay, and this identity is not really the novel part of our work.
This kind of dates back to ideas in like how diffusion models are doing MLE training and there's like other works, some references listed here which make this identity like more explicit. But what I want to do with this identity is just to use this identity to explore the capabilities of diffusion models. Alright so the summary of this lemma, minus log density equals score matching loss plus known constant plus small error.
Now let's start with this first setting which is that of parameter estimation. So in parameter estimation our setting is this family of distributions that's indexed by some parameter and we have some IID data which is drawn from a true value of the parameter theta star and the goal is to infer the value of this true parameter theta star.
So this setting has been a setting of interest in order to explore the statistical consequences of score matching. Okay, so in classical statistics, the way that you estimate the parameter is through maximum likelihood. Of course, maximum likelihood is not always tractable and score matching is this nice computational alternative. So there's been some works which try to explore, well, how good is a score matching estimator in this parametric setting?
So in particular the closest related work to ours is this paper by Kohler et al. which studied what's called the implicit score matching estimator. So the implicit score matching estimator, this is another form of score matching and it's defined as minimizing over theta this expression on the right which is obtained by some integration by parts. Okay but this is just one of the classical forms of score estimation.
And for this estimator, they were able to show that it's asymptotically normal once you normalize by root n and it has a limiting distribution which is Gaussian with a certain covariance matrix which I'll call sigma ism.
Okay, and once you have an asymptotic normality result like this, the way that you compare different estimators is that you compare their asymptotic covariances to see which one has the smallest asymptotic covariance. In statistics, that's called efficiency. Now, what they were able to show is that when this family of distribution satisfies what's called a restricted Poincaré inequality, I'll talk about this a little bit more in a second, but this is a real assumption.
So under this assumption, then they can control the covariance of the score matching estimator in terms of the gold standard, which is the covariance matrix of the MLE. Okay, they're able to relate the two objects. And what's known in classical is that the covariance matrix of the asymptotic covariance of the MLE is the inverse Fisher information. And there's like various statistical justifications for why this is the best you can do.
However, if this assumption of a restricted Poincaré inequality is violated, then actually the score matching estimator is provably inefficient. Like you can show that the asymptotic covariance is maybe exponentially.

some dark covariances may be exponentially bigger. So this arises when you want to estimate, say, the weights of a Gaussian mixture or something. Then the score matching approach will be much, much worse than MLE. So they had an interesting message in this paper, which is this Poincare inequality I've been talking about, this Poincare inequality is really a spectral gap for Markovian dynamics. It's related to rapid mixing of your Markov chain.
And so the fact that a Poincare inequality leads to like a good asymptotic covariance means that there is kind of this rough equivalence that they started establishing, which is that rapid mixing of a Markov chain corresponds to good statistical efficiency of the score matching estimator. That's a cool message. And then you can try to ask then like, okay, can we like somehow develop score matching based on faster mixing Markov chains? Will this lead to better statistical efficiency?
And indeed there were some follow-up works which studied this for Gaussian mixtures. Basically they can replace the basic Markov chain with something more based on like ideas from annealing and they develop a different score matching procedure based on that and they can get a polynomial sample complexity via score matching along some other notions of diffusions for Gaussian mixtures. Whereas like the basic score matching estimator would not get this polynomial sample complexity.
Okay, so this was kind of what was known before. Now a natural question is what happens if you do score matching along DDPM, along the diffusion model. Now one thing we know about diffusion model is that they don't suffer from this slow mixing problem. Like this theorem I showed on DDPM mixing, it didn't need to assume that your distribution was unimodal or anything like this.
So the way that you formulate this is that let's define the GDPR estimator of the parameter to be you minimize over theta of this like score matching loss, where like here I have a constraint. Like normally we learn the score functions for each time separately, but here there's a consistency constraint that all the scores I learn correspond to a single distribution p theta, which makes sense if I know a priori that my distribution lies to this parametric family.
Okay, so this would be a natural notion of what is like the DTPM estimator of a parameter and this was kind of the starting point for our work. But actually like in light of this identity, what you can say is that if I look at the minus sum of the log likelihoods, that's by this identity exactly equal to this like score matching loss plus like this constant that's irrelevant for the optimization plus a very very very tiny error.
And what you have on the left-hand side is actually just the maximum likelihood estimator. So from this identity, you would actually think that the score matching estimator along ddpm is nothing more than the maximum likelihood estimator. And indeed this is true, and then you can formalize this, and you get basically this theorem. Okay, assume that the time that you run the ddpm grows faster than half log n.
Then you have asymptotic normality of this DDP estimator, and the limiting covariance matrix is the optimal one. It's the asymptotic covariance of the MLE. It's the inverse Fischer information. And in statistics, we say that this estimator achieves full efficiency. So, okay.
Since we want to summarize everything as a slogan, the slogan here would be parameter estimation is as easy as properly learning the scores. And what I mean by properly learning the scores is that all the scores should be consistent and correspond to the same value of data. Okay, so this maybe tells you that score matching along DDPM is actually quite powerful in principle, but I think that this more as a negative result because it tells you that you shouldn't ever study this estimator, it's just the same thing as MLE.
But maybe this wasn't fully realized before. Okay, so next I want to talk about the implications for density estimation. So let's recall the likelihood identity, which gives you a formula for minus log density in terms of the score matching loss. So now, like given this identity, there's a really obvious approach to estimate the density.
I just estimate the density by, well, first I take this score matching term and I replace the true score, which I do not know, with learned scores, S hat T. Okay, and then this numerical constant CDT, of course I keep it there. And finally this exponentially small error, I just throw it away because I think it's small. And then this would be an estimator of the density itself. Okay, so what this is saying is that you can use the value of your training loss when you fit the scores.
to give you an estimate of the density of your distribution, which I think is pretty well known in the community probably. I'm not sure. And this is kind of our main result, which analyzes the performance of this as a density estimator. So what it says is that, okay, it gives some guarantee on how close p hat is to the true density p.
It runs in polynomial time and the assumptions are very similar to the ones on the first DDPM theorem. So we have some assumption that the score function is Lipschitz and that the second moment is bounded. And then also like we have an assumption that the score functions are learned accurately. Now there's two differences between this theorem which is about density estimation and the first theorem which was about learning a sampler.
So the first difference is that this theorem is not a total variation guarantee. It's giving you some other metric, which is like this expectation of the log ratios. And I'll discuss that in a bit. The second difference is that this theorem is a little bit lossy. So in the previous theorem, what we saw was that the score error translates exactly to the error in total variation distance. But that's not true for density estimation. It's lossy by this extra factor of the dimension.
But I guess roughly the message is the same. And just as before, if you don't like the Lipschitz score assumption, you can remove it again by early stopping at some time tau, again with some complexity that now depends on tau. So the complexity here is no longer logarithmic on one over tau, but this actually turns out to be enough for applications that we have in mind. Okay, so a couple of remarks.
Uh, so this density estimate that we output is non-negative function. However, it does not necessarily integrate to one. In fact, we can't, we don't know its integral at all. So maybe its integral might be infinity, which is also like I would say common in the literature on density estimation. If you just use a kernel density estimate, actually your kernel can take on negative values and it must take on negative values if you want minimax rates. So this is actually standard in the density estimation literature.
But it does make it a little bit difficult to talk about like total variation guarantees. And in our paper, we refer to this notion of density estimation as PAC density estimation in analogy with PAC learning from computer science. So PAC stands for probably approximately correct.
And the reason why we call it that is because this error guarantee implies a statement such as the following. You can guarantee that on 99 % of the space where 99% is measured under the true distribution P, the output of the density estimate is a multiplicative approximation to the true density up to some factor of e to the epsilon.
All right, so the slogan for this part is that packed density estimation is as easy as learning the scores. So let's see a quick example of this. So this is a classic example from stats. Consider this class of holder densities on the interval minus 1 to 1. So these are, roughly speaking, densities that have s derivatives, but s is allowed to not be an integer here.
You have like s derivatives, you have some lower bound on the density on this interval, and L is controlling like the size of this this holder ball. So you have some like non-parametric class of distributions, which is the main parameter is the smoothness s. Now this is one of those classes for which score matching has been studied extensively. In particular, there was this recent paper that also came out of Yale, which studied the optimal rates of score estimation over this holder class. And
What they're able to show is that if you use these like their score estimators and then plug it into DDPM, you get a minimax optimal generator or sampler. In other words, like you learn the distribution up to the minimax rate of estimation, but the way that you learn the distribution is you learn a sampler.
And now with our reduction, what we're able to say is like, not only can you learn it in the sense of learning a sampler, you can actually learn it in the sense of learning a density estimator. So there is a density estimator which is directly based on DDPM score matching. And this is the precise result, we consider the L1 risk, so it's the integral of the difference between p hat and p.
And for this L1 risk, the minimax risk turns out to be n to the minus 2s over 2s plus 1. This is a classic non-parametric rate. And our DDP-M based estimator achieves this minimax rate up to some square root log n factor. Okay. And of course you can always do this in higher dimensions too. Just you have to, yeah, everything generalizes easily and then you get n to the minus 2s over 2s plus d.
But okay, the message is like wherever in the prior works

Wherever in the prior works you were able to learn a sampler, now with our reduction you can just learn a density estimator as well. So in our paper we give another computational example which takes one of these prior results on the literature on learning score functions of mixtures of Gaussians and this leads to some new algorithmic result for learning a density estimator for this class.
Alright, so the last section of this talk is about how we can use this to argue about the computational hardness of score function estimation. So, okay, in computer science, we're interested not just in how fast we can do something, but we're also interested in whether tasks are impossible to do in polynomial time.
And so these are like computational lower bounds and since density estimation is such a ubiquitous task there's also been some computational lower bounds for density estimation. But now this leads to the question can we use our reduction to use this result and therefore argue about the computational hardness of score estimation.
So again, I just want to emphasize that the distinction between generation and density estimation is a purely computational distinction. Now there's like if you directly attack the problem of lower bounds for density estimation, it's actually a pretty hard problem.
And so there's been lots of different frameworks for trying to argue that a density estimation problem is hard. So there's some frameworks, for instance, like statistical query, in case you're familiar with it, or like low degree likelihood or etc. Like a lot of these frameworks are actually like information theoretic in nature. So it doesn't really matter whether you're considering density estimation or learning a generator. So in other words, like these lower bounds would have just applied to hardness of learning score functions just based on the previous results.
However, that changes if you look for genuine computational lower bounds. By genuine computational lower bounds I mean you start with some computational assumption that a certain problem is hard and then use this to deduce that your problem of score estimation is hard.
So in particular, the kinds of hardness assumptions we're going to look at are cryptographic hardness assumptions. So we say that a task is cryptographically hard if solving the task is at least as hard as breaking a crypto system.
Now, like since we use crypto systems in order to like encode all our transactions, etc. This is like a pretty good assumption for arguing hardness because either like this crypto system is truly hard to break, in which case score estimation is not possible, or like you managed to break the crypto system, in which case you have other problems to worry about.
Now, like, there have been some recent progress on establishing these cryptographic hardness results for certain density estimation tasks. However...
I would say that it's still a very elusive problem to try to establish cryptographic hardness results for the problem of learning a sampler. And this is kind of fundamental to how these problems work. Like basically like these cryptographic hardness assumptions are based on saying like I cannot distinguish between a null or planted distribution with polynomially many samples.
And the way that you reduce density estimation to this is you say that if I could solve density estimation, I would be able to distinguish these two distributions and therefore break the crypto system. But if I only learn a sampler, this only lets me draw more samples.
Like the problem that doesn't really help me break the crypto system because the original assumption is a crypto system is no matter how many polynomially many samples I get from these distributions, I cannot distinguish. So somehow I feel like this is a pretty fundamental and interesting question. But for us, this represents an opportunity because there's no cryptographic hardness results for learning a sampler. Like before our work, it was hard to use this to get cryptographic hardness of learning a score function.
But now that we have reduced like density estimation to score function estimation, now we can use the cryptographic hardness lower bounds against density estimation. Okay, so here's a result which is actually there was a prior work by Minjie Song who managed to show crypto hardness of learning score functions for mixtures of Gaussians and his argument was
is like a nice paper but it's also very tailored somehow to the setting of Gaussian mixtures and the score function problem. I guess the what the advantage of our of our framework is that it provides this kind of general blueprint for figuring out when a problem is expected to be computationally hard.
Basically, the blueprint is in two steps. First, you want to check that this family of distributions satisfies the conditions of our reduction, which is pretty mild because our theorem assumptions were pretty mild on the distribution fee. And then you just want to argue that path density estimation over this class of distributions is crypto hard. And then this would imply that learning the score function for this family is also crypto hard.
So here's the last looking of the talk, which is finally like the reverse direction. Now I'm saying learning the scores is as hard as practicing estimation. So although score estimation is very powerful and therefore lets you solve many tasks, this power makes it so that for a lot of settings, we expect the task of score estimation itself to be intractable. So here's the result you can get, which is...
For any epsilon, if I want to learn the score functions of mixtures of Gaussians with many components, like D to the epsilon components in dimension D, then this is a cryptographically hard problem. So in case you're curious, this would be how this chain of reduction goes. So we say score estimation is as hard as packed density estimation. That's the framework that I showed in our work.
Okay, and then packed density estimation for just class of mixtures of Gaussians is as hard as this continuous version of learning with errors. That was this contribution by Bruna, Regev, Song, and Teng. And this continuous version of learning with errors is in turn reduced to this original problem of learning with errors. And learning with errors is as hard to solve as certain like worst case lattice problems.
This is a kind of classical in the cryptography literature and then finally these lattice problems are the basis for cryptosystems which we expect to persist even post-quantum computation. This is a pretty strong notion of cryptographic hardness. Okay, so that's it. I'll just leave you with this summary diagram and thank you for your attention.
Okay, thank for a great talk. Is there any question from the audience? I assume and thanks for the nice talk. Um I had a question about going from a generator to a density estimator. Um can't we just use the change of variables formula. If you have something that maps a uniform random variable to a sample
Of distribution, or am I missing something? I guess that depends on how explicit your G is. So if you cannot compute this Jacobian determinant. Right, so I guess you're not assuming that the generator is smooth and that you can differentiate. That's why there might be a difference between the two. Yeah, so I guess for this setting, I'm just saying that it's a polynomial time algorithm.
Okay. Thank you. I have a question regarding Boolean hypercube. Have you thought about extending the result or is it already done? Sampling on the Boolean hypercube, density estimation and all that? Hypercube? Sorry, I'm not sure what you are... Boolean hypercube. Boolean. Boolean Binary hypercube. data.
Um, well, I will say like, because you can do early stopping, some of these results would apply to the hypercube as well. Like how hard is sampling an Ising model, for example. Right, okay, that's a good question. Because I was thinking maybe you could
Try to argue that if I could learn the density of the early stock distribution very well, then that would imply that I can learn the density of the original easing model, and Mm-hmm. then you can maybe get some results that way. I haven't thought about it. Okay, thank you. Okay, then thanks the speaker again.
So um for the next we are going to welcome Jerry Li from University of Washington. His talk will be on S_ for S_ Solving a Diffusion Model Solver.

Okay, cool. Yeah, thanks for having me. So yeah, I'm going to be giving a talk which is perhaps of a slightly different flavor than some of those, although it's on a very similar topic. Mm-hmm. Oh, okay, sorry. Hello, can you hear me? So yeah, so I'm going to be giving a slightly different flavor of talk. It's a much more empirical result. However, I would argue at least for now it seems like perhaps this sort of much more empirical approach may be actually the more principled one for now. So I'll explain what I mean.
So since I think every talk has talked about what a diffusion model is, I don't want to go over the whole sampling generative model paradigm, so I'll try to be brief on this. So hopefully this is not the first talk you're attending of this, right? But to be slightly brief, right, diffusion models, you can think of this as a proxy, it's a you're trying to solve a generative modeling problem, right? You're trying to given samples from a distribution, you're trying to output, you know, I guess you're trying to learn a sampler for this distribution as a
What just happened? Okay. Right? But more, you can also think of it sort of from an algorithmic perspective. You're trying to approximate this reverse process of this noisying process, right? So you can think of, you know, a very boring thing to do of an image of a cat is to add more and more noise as a function of time.
And just to turn, you know, for instance using the Ornstein-Ollenbeck process, just to turn this picture of a cat into Gaussian noise, right? And of course the whole point of diffusion modelling is that while this process, which takes, you know, some nice distribution Q0 into something which is just noise, it's very boring in some sense, the reverse process is exactly what we are interested in, right? This allows us to turn noise into fresh images of cats, which is the goal of life.
Right, so if you could, but more generally, right, if we could run this reverse process, then we could obtain samples from this distribution Q-naught, which would be great. Okay, of course, there are a couple of problems, and, you know, again, I'll try to be brief because, but I need to set up the notation anyways. Right, the first problem is that, of course, nothing in life is free, and this reverse process requires us to learn a score function, and this depends in some sort of, you know, complex way perhaps on this unknown distribution Q -naught.
Of course, it is well known at this point, and this is a classic fact in this literature, that this dates back to, you know, a very old work of Yarin, it says that learning the score function is equivalent to some denoising problem. That could be optimized using samples from Q0 specifically has the following sort of nice form, right? You want to, for an average image of a cat, you want to find, you know, some
a model which takes or some function I should say which takes your noisy picture of a cat and turns into a you know your original image as well as possible and again in fact so we do is we take epsilon sub theta which is a score function to be parameterized by some large neural network so we instantiate this with some large neural network
Right now there's a second process problem with this picture which is of course we would want to ideally run a continuous time you know evolution that's at least what the mass says we should do but of course we can't do this so I guess let me back up one second right so just just to put some formulas to this
Alright, so suppose I have learned some uh score function epsilon sub theta with parameters theta. Uh suppose the learned function uh is, yeah, this is a score function at time then at least one backwards evolution um that will yield sort of uh the right sort of backwards process that denotes your image can be written this way. There's of course many others. Uh this is for instance uh this uh the probabilistic probabilistic flow at each instance.
For some, I guess, appropriate choices of f and t. Okay? So this is ideally what we would run, right? So if we could run, you know, if we've learned our score function perfectly, and we could run this, then we'd be really happy. Now, of course, this leads back to the problem that I was trying to get to, which is that we can't actually run this continuous time process on a, you know, real computer just because, you know, we don't have continuous time.
Now this might sound silly, but of course it actually turns out to be a huge deal computationally. Uh so what would you you know naively do? Of course the the the naive thing to do is just to discretize this process, right? To just simply, you know, instead of running a truly continuous time evolution just literally take some delta t_ and approximate the evolution across delta t_ Now the problem, and we'll get to this in a in a bit more detail later.
is really that the amount of discretization that we need not only affects well first of all it affects the sample complexity it turns out how much you need to learn but also more importantly for us and also in practice it will also affect the direct runtime particular at inference of our model okay
So okay, let's get into a little bit more brass tacks on how you actually do this, right? To to solve this in some continuous time, what we take is let's say we're trying to discretize zero to capital T, we take some discretization schedule, you know, so T not up to T n, so we take n steps of discretization here. And what we do is we approximate the OD with some sort of numerical solver.
So we say that the solution to x time at time t i plus 1 is some function, some numerical solver, function of the parameters, epsilon, of the score function, epsilon theta, and perhaps of its evaluations at certain previous time steps, right. And what we typically do, at least in practice, is we take some numerical ODE solver. So this is a little bit of oversimplification.
But you know something that sort of tries to approximate the true O_D_ evolution. At least if we're talking about these probabilistic three O_D_s. Okay, so this includes stuff like maybe Rangakata or some Adams bash forth or linear multi-step or or or so on so forth.
Okay. So hopefully so far this makes sense, right? So again, the whole picture is, you know, we want to run this continuous time reverse process. It depends on some unknown score function. We first learn the score function from data and then to approximate the continuous time reverse process, we do some discretisation to solve the resulting ODE and we do this by using some ODE solver. Okay. Now the problem is that this is actually very expensive to do, especially in practice.
Because every step, when you want to run an ODE solver, every step of this discretized reverse process requires an evaluation of your score function, epsilon sub theta. And in practice this is a very large neural network, and it's very expensive. And if you have to do many, many time steps of this, this results in a very lengthy evaluation time. So your inference time is very slow.
And the resulting process is not particularly scalable. This is actually a huge problem in a number of application domains. For instance, in applications where I want like real time inference and stuff like this, this is often a huge bottleneck to actually applying these methods, even though they're very powerful generative models to these settings.
So to restate, if we need to run many steps, what we're going to need is many neural function evaluations or these NFE's. So we need to evaluate the score function many times, and again this renders inference time slow. And because these neural function evaluations are primarily the bottleneck, we're really going to focus on just trying to minimise the number of NFE's in this talk. Okay, we're going to use that as a proxy for actual run time or wall clock time.
So the high level interesting question, high level question we're interested in, I should say, is can we decrease the number of NFDs while maintaining the generation quality of a resulting model? Okay, again, this is a very, this is a problem that people have been thinking about a lot. Okay, and one disclaimer before I really get into details is that there's a number of approaches to dealing with this.
Uh in this work we're gonna work with a fixed score function. Right, so we're not gonna change our score function, we're just gonna try to optimise the performance of the rest of the framework relative to this fixed score function. Okay. Now there's an lot of work as well on methods that try to learn a better score function.
that is tailored to the small NFE regime. So this is often known as distillation. Again, there's a huge literature, so I'm oversimplifying quite substantially. But for instance, some famous work includes like progressive distillation, as well as, you know, work on consistency models or consistency distillation, okay? And I should say that, you know, in this small NFE regime, these sorts of methods do tend to work the best.
in terms of just generation quality. However, they also do have several downsides as well. So for instance, these distillation methods often themselves quite slow to run, which may render the usefulness of the fast inference time a little bit moot. And also, sometimes they lose interpretability for certain downstream tasks. So for instance, consistency model, you don't have this nice interpretation of the score functions as much.

of like these score functions as much uh so you can't it's harder I should say to use them at least immediately for stuff like you know in painting although of course there's also work using these methods for such tasks as well
But in many ways I would argue that sort of the idea of like how to like optimize performance of a neural network given a fixed score function is in many ways orthogonal or complementary to the idea of like learning a better score function. And ideally one should be able to do both, right? We should learn a good distilled model and then still be able to optimize it further on. Okay, but in this talk I'm going to really focus on really just this optimization aspect. So given a fixed score model, how do we optimize the performance of the rest of it?
network. Okay, so hopefully that makes sense. Now again, just to reiterate, the problem of this is that we really want a fine discretisation, right. So because if we have a good fine discretisation of the time, this uh uh results in a potentially good approximation for the true ODE.
But again this requires many evaluations of the score network. So really our question is like very different It's a very different regime actually from the classical question like what are you what can you do when you're only allowed to evaluate your score function? Let's say four times Okay, so now this is like a very different world in many ways as far as a classical view of this stuff So there's one very natural idea given that I have such a limited budget
of evaluations, I should choose good time steps along the backwards process to evaluate these evaluations. So the idea is to choose good discretization steps. And there's a lot of academic work on this. And I would argue that at least in this sort of optimization, optimizing a fixed score network literature, this is primarily what the academic work has focused on, which is very natural, of course, given that this is one of the few degrees of freedom we have.
But there's still another question. It's like what do you do after you fixed discretization? Well it turns out here there there seems to be I shouldn't say there's like no work, but there's somewhat less. And in fact the default approach is actually fairly naive I would argue. Alright, so just to recall this is sort of the picture that we have. Oops. Picture what we have when we have many time steps, right? We take some O_D_E_ solver, and we plug it in.
But this is also what we do, it turns out, for a lot of these methods when we have four time steps. All we do is we just plug in the solver four times. But in some sense, this no longer makes, this is like a very strange thing to do, and is not at all principled. Right? Because it doesn't make any sense when you have four time steps to use an ODE solver whatsoever.
For instance you know classic guarantees of stuff like for instance run the code of methods and this is true for pretty much all these you know or many of these methods like you know Adams bashforth or linear multi-step is that you have some sort of guarantee of the following form
that if x sub t minus 1 is the evolution of the true time of the true ode at time t sub i minus 1 and x sub hat is like your solved evolution at time t i minus 1 then your guarantee or i plus 1 i should say then the difference between these two evolutions is upper bounded by some you know higher order term in the size of the time step right in t i minus t i plus 1 minus t i
And the whole point of a lot of these fancy methods is that you get a larger and larger power here because you're able to match more and more of the Taylor terms. And so you get a higher degree Taylor expansion or higher order Taylor expansion error guarantee. But this doesn't make any sense for us in some sense, right? Like in some sense, it's kind of weird. I mean, not that these guarantees make sense in the first place already. But again, like TI plus one minus TI is like a massive.
Number for us. So why would you ever use an ODE solver not to mention a higher order ODE solver in this setting? Okay. So it's a very simple observation, which is that because we only have these sort of four time steps, it makes a lot of sense to just completely rather than trying to find better ODE solvers, try to just abandon the idea of like using this formalism of solvers in this time step, in these regimes.
But the perhaps surprising observation we had is that the choice of solver makes a really huge difference here, even though none of them have any real principle guarantees, especially if I'm only allowed to take two or three or four steps. So for instance, using a recent solver called IPNDM versus a slightly older solver increases FID or decreases FID by something like 50%.
So here FID is a standard measure of image quality. Lower is better. So this says that using one of these solvers versus the other makes a massive difference, even though these are all sort of based on these methods which are like trying to solve ODEs. And so the idea that we had in this paper is that instead of sort of trying to like find a magic good solver, we should try to learn a good solver from the data. Okay? And...
To abandon this framework of learning or solving an ODE, we just like directly find a good solver for the problem that we care about. Okay. So how do we do this? Well, we first observe that any solver is parameterized by a relatively small set of coefficients, at least all the classic styles of solvers. So it's not entirely important to like, you know, actually digest.
what these uh you know what this table is saying but you know for instance all these things like linear multi-step or whatever there's a small set of free parameters that you can choose or that are set really uh classically these sort of five parameters uh that are just some sort of magic numbers that are set by the algorithm designer right and then you just plug them in and you run you know the linear multi-step method with these parameters
So to reiterate, right, in this high NFE regime, so in other words, in the regime where we have really small step sizes where you can hope to approximate an ODE, there's really good reasons from, you know, because you want to, you know, approximate sort of higher order tailor effects to choose specific magic values for the parameters of these, in these solvers. And again, this is, in that regime you're allowed to, this guarantees that the resulting solver is a good approximation.
But again, this is not very relevant for us, okay. So what we instead propose is just try to learn uh a good set of parameters to replace these magic values with ones which are learned from that are good for our data set. So this is what we call S_ for us, or solving for the solver. And idea is I think very simple, given this sort of framing.
Given a teacher solver, five stars, so think of this as the original model we are trying to sort of match the performance of that uses many NFE's, so uses many time steps. The goal is to learn a student solver that uses very few NFE's but which matches the performance of the teacher. And we want this student to only use, let's say, four time steps. Of course, this is a parameter. You can do this for one or two or whatever.
And the goal is to match again more formally the output of phi star on some fresh latents. So here our latents are drawn from a Gaussian, a standard normal Gaussian. Okay, so formally here's how we do this, right? We take just a set of fresh noise latents x1 through xn, and then we just minimize sort of the following very natural objective using, let's say, any method we want. In this case we use SGD.
Right, just like the average loss, the average distance between phi star of Xi and phi sub theta of Xi as a function of theta, right? And here in our paper it turns out we use this sort of Lpitz loss, which is some sort of, you know, very common sort of measure of perceptual difference between images, okay? But of course you can do this for any.
any loss okay so that's the that's the extent of the sort of method I want to make a couple of remarks how this works first of all this is a very complicated you know optimization objective right it's you're sort of differentiating through the model and all sorts of kind of potentially weird ways however the resulting set of like parameters phi
It's very small. It's like, I mean, it's a very low dimensional problem. It's like maybe like 16 dimensional something like this. So it seems that this is relatively feasible to optimize reasonably in practice. Secondly, this method is, at least stated here, completely data-free in the sense that you don't need a data set to do this. We're just generating fresh, you know, samples from our...
Like we're just using new latent and just pushing them through our teacher model. So it's relatively, you know, it's clearly data-free. And also it's relatively lightweight, especially in relationship to like some of these distillation methods, which take considerably longer since the wall clock time. And also it's very black box. It's a very plug-in estimator, which I think is really valuable, at least in practice. In the sense that like...
If you fix any discretization schedule at all, you can just, turns out you just plug in s rest. And minor spoilers in a second, it turns out it seems to uniformly improve performance across the board. So this is sort of, it works with any discretization method and this is actually going to be important for sort of a further application that we talk about in a bit. And finally on a more sort of bibliographic note, I should also mention that a very similar idea.
was independently proposed in his work on, like, bespoke non-stationary cell regression.

on like bespoke non-stationary solvers by uh fair and meta ai although including one of the previous speakers i'm not sure he's here anymore though okay one slight additional complication is it turns out that this is not in some sense this is somewhat orthogonal to the message of the of the paper but i thought i should mention it which is that one one optimization that seems to improve things somewhat is to do this thing called soft teacher forcing
So what this is, is given a latent X drawn from a Gaussian, as stated, what we would do is just try to match the performance of the true teacher latent at X. But it turns out it's slightly better to allow sort of the teacher some leeway. So instead of trying to match exactly the same latent X, you know, the...
Match any latent X prime which is kind of close to X. So the idea is instead of exactly sort of matching X, you're okay as long as there's any X prime which is close to X. Just that phi star applied to X prime is approximately phi sub theta. And this makes sort of the optimisation a little bit easier. I should say this is inspired by you know the soft teacher forcing in this work on LD3 by Tong et al.
Okay, so let me show you some empirical results. So the high level takeaway, which is pretty, I think, pretty interesting is that essentially in our evaluations, at first uniformly outperformed all previous methods, like in every setting we tried in the sense that it always increased like image quality as measured by FID.
So it seems like we have the following takeaway, which if you just replace your solver with this learned solver, S for S, you just immediately improve your performance of your model in the small FID, in the small NFE regime. So for instance, here's one table. We have like a bunch more. And this seems to hold across data sets, across architectures, across whatever for now, as far as we can tell, which is like pretty cool. Okay, and I want to dig.
a little bit deeper into actually what SRS seems to learn empirically because I think there's some interesting behaviors here. In practice it seems that you know when we actually learn look at you know what the good sets of parameters are in this small end of your model so what SRS actually learns they seem to be very different sets of parameters than what are suggested by theory and indeed even those which seem natural to us. So for instance you know there's a
There's some sort of natural consistency conditions for if I have a Runga-Kutta method you need that some sets of parameters sum to one for this to be a good approximation to the ODE. The parameters that are learned by SRS do not satisfy these conditions and moreover if you try to enforce this we try an ablation of this sort if you try to just like you know constrain SRS to have to do this actually you lower performance.
And so again, there seems to be strong evidence that it's very important to abandon this classical paradigm of like taking an ODE solver in this regime, right, that you really want to deviate from these sorts of classic methods, that something else seems to be necessary.
In fact, you know, there's some very strange behaviour that seems to be happening. So for instance, you know, one natural thing that you would always want to do is, it seems like you would always want to move in the direction of the of the gradient. Okay, do you want uh uh wanna negate the sign, I I guess, on you know the gradient at the next step. But this is not even true. Sometimes S_ does learns a positive gradient. You you learn you go to the opposite way, it seems like, potentially. Uh then you might expect. And okay.
I don't know if these are particularly visible, but we tried, for instance, plotting, you know, with the actual learned models or learned parameters of SFSR, and they're, the takeaway is that they're definitely not what theory might suggest, okay, at least the standard theory. But this raises a natural question, right, like, it's really, it would be really cool to understand what sorts of parameters, like.
first of all why is it even possible right we know that in the worst case these methods need to have number of like time steps that scale polynomially with the dimension so first of all why is it possible to take such a small number of time steps in the first place there's some you know some interesting theoretical work on this direction and also understanding like
Different ways of understanding these parameterizations in this setting where sort of it is not an ODE solver, it's doing something else, but something that seems to be still quite, you know, non-trivial. Okay, then I want to mention a slight like follow-up or you know something that builds upon S for S which
It's also very natural. So I mentioned before that we can combine, you know, we can just plug in SFS with any discretization schedule, right? You fix any discretization schedule, you tell me, and you know, you can plug in SFS and you'll improve the performance opposed to some fixed solver. Now it turns out that methods such as LD3 by Tong et al., they actually sort of do the opposite. So given a good solver,
They actually learn a good discretization schedule right so one can ask like can you combine these two right? Can you can you find you learn both a good solver and a good discretization schedule and it turns out you can at least in one way is what we call s for s alt So what we do is this very natural. We just alternate steps of learning the discretization and learning the solver
And so just repeatedly, given some initialization, use LD3 to learn a good time step schedule for the current solver, and then use S-Press to find a good solver for the current time steps and just repeat this process for, well, ideally until convergence has been practiced for some number, some small constant number of steps. And it turns out that this actually improves upon both the performance of S-Press separately and LD3 separately and actually fairly substantially.
Yeah. So what it seems like is like, I'll show you the numbers in a second, but really it seems like what's happening here is you're really exploring the full landscape of these sorts of low NFE solvers, right? You're jointly, you know, so there's sets of parameters that include both the step size schedule and the solver, and sort of you need to optimize all of these sorts of parameters sort of jointly to find sort of the best low NFE solver.
Right and in doing so it seems it's also important that you abandon sort of these classical paradigms of solving ODE but by doing so you can actually significantly improve performance So I'll show you some numbers in a second but the you know the the high level sort of takeaway is that this actually improves performance actually quite substantially and this performance improvement is also often much larger
than what we have by just express itself or ld3 itself so somehow by you know there's some like these things synergize do something pretty non-trivial so for instance here are some numbers of course there's many more in the actual paper as well all right cool so uh i want to talk about a couple of extensions that one that are natural to try that we also discussed and thought about for a bit
So one natural extension is to do some sort of joint optimization of the discretization in the solver. And for some reason, so you know, you can write out the, you know, I mentioned that, you know, like you can just write out some fairly complicated looking objective in terms that has as parameters both the time steps as well as the solver and just run SGD jointly on this full landscape potentially.
Right? For some reason, it seems that this is somewhat worse than alternating, at least naive optimization. And our, you know,
Our intuition, although we don't have any math or anything to back this up, is that it seems like this is because the resulting optimization landscape becomes too complex to truly explore well. And this also seems to be an issue in the method proposed in Shao et al. 24, where they do these sorts of things. And as a result, it seems like the improvements that they get are not quite as large as the ones that we observe by using S for Assault.
Another slightly, you know, I should say what? Okay, I shouldn't make any value judgments. But another natural extension of this is that you can also use time-dependent solver coefficients. So here, we're just solving for, let's say, the same time, same solver coefficients across all time steps. And it turns out you can also, you know, learn different solver coefficients across different time steps. However, the gains here are...
It does improve things, but only marginally. Okay? And I guess these things are important, although I find them a little bit silly. But here are some, for instance, some qualitative results. I will not argue about the relative value or the relative, it's hard to argue about, you know, which ones are better or worse. But there's, I think, some reasonable arguments to say that the images that we're able to generate are perhaps better.
But I don't want to get into too much, I don't want to worry too much about that. Okay, so that's pretty much all I want to say about this. I want to mention several future directions which I think are very interesting. Of course, one that's very natural is, and I think people, a lot of people have been thinking about, is, you know,
Can we do these sorts of similar methods for like few NFT evaluations beyond images, for instance, for discrete diffusions or for robotics applications where real-time evaluation is potentially a lot more pressing as a question. There's also...

There's also questions on whether or not these approaches can also be applied beyond for diffusion to like improve the few NFE performance of a lot other methods And of course as a theorist I think this work is it's somewhat frustrating in the sense that nothing here really has that much of a theory I mean like we have no theorems in our paper, right? We don't really understand why it seems to work so well So it's a very natural question to understand like why can we afford to take so many so few steps?
And can we explain what S for S is potentially even learning in the first place? Okay, so I guess I went a bit fast, but that's pretty much all I had. So thank you very much. So let's thank Jerry for the great talk. So any question from the audience?
Yeah, thank you for the great talk. I was wondering like where's the boundary for the few in a few steps method, like when it stops performing better than the classical ones? Is it around eight or 16 steps or whatever? Oh, you're saying like when does learning, like when does Espresso start working worse than like just classic Yeah, methods? yeah, exactly.
So we only tried up to like 16, but as far as we can tell, it always seems to improve. Of course, up to a certain point, I mean, in some sense, you should never expect it to do worse. If you get the true optimal sort of solver coefficients, then these will always improve upon assuming things generalize, you know, any fixed set of coefficients. Yeah, unless your optimization failed at some point. Correct. So I guess we didn't see that the optimization was failing, but we didn't try past, let's say, 16 or 32. Yeah, thank you.
Hi. Thanks for a nice talk. Oh, sorry, sorry. Oh, I have two questions. They're kind of related and are related to distillation. So when you were motivating S4S, you mentioned one advantage these type of methods have over distillation is that they're cheaper.
But when you train SRS, you have to solve all these, you have all these calls to the expensive solver. So I was wondering what the computational cost, how it compares against distillation. And then the second, you were saying, you were talking about how these solver methods are orthogonal to distillation methods. I was wondering if you have experiments using these methods alongside a distillation method, and if so, how does that work? Okay, so to answer the first question.
Sorry, could you remind really quickly what the first question was? Oh, yeah, just the computational cost comparison Oh yeah, yeah, so I forget the exact wall clock times, but we have the wall clock times in the paper, and they are significantly, they're like on the order of like maybe, they're much faster than the progressive distillation and these sorts of standard things, or like consistency training or easy consistency training. I do not believe we, for the second question, it's a very natural question.
and whether or not uh I don't think in the paper we actually tried this um I guess in the sense I thought of that they should be orthogonal is no actually this is a good question we should I think we should try this, but I don't think we have. Hey, thanks. Hello. So thanks for the last talk. Um you mentioned that sometimes the solar will go to the opposite directions of the gradient. And do you have some intuitive uh explanation?
No. It's very strange what's happening, to be honest. But it seems, it's not even like slightly positive actually, it's like quite positive sometimes. But sometimes it's also quite negative. So the behaviour seems to be rather chaotic as far as I can tell. It's very surprising. So other questions, so it's a very small question.
In your talks, you mention many times it's four times that. So it's just a window numbers or uh any Yeah yeah. other okay. Four four is just a magic number in the context of the talk.
Hi, thanks for the learn nice talk. Uh I'm very interesting for this solver. But uh I'm wondering that if this solver, since this solver is y you are using some new network to learn this solver to form the O_D_E_s and uh for each problem you need to learn a specific uh learn solver or this can generalize to m to to different tasks.
We did not evaluate whether or not it generalized, I guess. But yeah, at stated at least, you would have to learn a different solver for every task. And even potentially every model. Okay. Yeah. So you need for for each case you need to learn a specific one. Okay. Correct. It's a good question to ask you whether or not they generalize. I don't know. So is that different neural network structure works a difference? Have you tried?
Oh, in terms of, sorry, what do I you mean? mean, so have you tried different neural network structure or you just simply using some MLPs? We tried different architectures, yes. But, and I mean, the resulting solvers are quite chaotic in general. So I don't know if there's any like shared similarities across the solvers that we find anyways. Okay, okay, yeah. Thank you.
So I'm very confused by like the high level intuition of like why you're able to approximate with just like four steps. So is it like correct to interpret?
That like is it still approximating the original reverse diffusion process or do you think there's something else going on? No, I mean it seems impossible at least in this setting. I mean unless your your distribution is fairly trivial It seems like it should be impossible to approximate the original diffusion process. So something else must be happening and I think it's a great question I don't yeah like from a theoretic point of view like what what's really happening in this regime So I guess no other questions
So let's thank the speaker again for the nice talk. Great. So now we're going to the afternoon poster session, and we'll come back at 4.20.












It's come back and have a seat. We'll start our next talk soon.
Our next speaker is Ben Hato. He will give us a talk about noise is our feature, a conditional diffusion model framework for adaptive evolutionary research. This is our online talk, so let's welcome. Hi everybody, good afternoon. I hope you can hear me.
So first of all, let me thank you organizers for giving me this opportunity to present our work today. I'm part of Michael Levin's lab at the Allen Discovery Center at Tufts University and we are basically a biology lab who is trying to reframe biology as a form of collective intelligence from the bottom up.
And as a part of this endeavor, we also try to relate or understand how generative models play into this entire field of research and today we'll discuss how generative models, particularly diffusion models, might be involved in the evolutionary process and also might be exploited in evolutionary search.
So let me give you a brief introduction to how we understand or can understand biology in modern terms, namely as a multi -scale competency architecture. So what do I mean by that?
Well, it becomes more and more obvious that biology is organized in this nested layers within layers of agents that show competent problem solving capabilities in their respective problem domain. And especially interesting is that this also applies to cellular and also to the organ level of different organisms, for instance, there's these
Um amphibious species which can regrow amputated limbs and the cells can detect when something is wrong in this case and start regrowing the limb until the final target stage is reached again. And another interesting feature is this planaria flatworm you can see down here.
This is a really weird creature. You can cut this into pieces and every little piece of this animal will afterwards be able to regenerate and grow a fully functional worm again. I think that the record for doing this is cutting this animal into 276 pieces. I'm not completely sure about this number, but this is truly remarkable. It's like a, well, Deadpool or Wolverine on steroids, right?
Another interesting experiment which people in Mike Levin's lab did is exploiting how organs might show problem solving abilities and on the right you can see two pictures of tadpoles, the larval stage of frogs, where one has particularly
distorted facial organs like the eyes are in the wrong place the mouth is disformed but during metamorphosis so when they de grow they develop into into the frog the organs find the correct spots and eventually form a perfectly fine frog face and one example which actually blew my mind is that while cells can not only show structural plasticity as I showed you before or organs but also functional plasticity
People or scientists in Mike Levin's lab, they try to reduce the growth of an eye on the tail of a tadpole. And this eye did not only grow on its own, but it connected to the spinal cord and the animal could eventually see with this eye. So this is incredibly exciting also from an information theoretic perspective because this means that cells show this problem solving abilities and not only cells but also organs and this might be a unique.
unique or unifying feature across biological organization. Today we're interested in how this might relate to the process of evolution and typically if you learn about evolution the story goes something like this that you have a genome and different genes encode phenotypical traits and depending whether these traits are beneficial or not beneficial an organism has higher probability of passing on its genes to the next generation and at this stage mutations may occur.
And the offspring might be better or worse adapted to the environment and in this way good traits or good genes will prevail and bad ones will perish over time. However, the story is basically much more complicated because genes don't really encode good traits directly but they encode proteins, protein sequences.
And these proteins then reconfigure cells, how these cells differentiate, how they interact. And this is even much more complicated than this because while all the different agents in biological organism or different components of a biological organism are agents with a gender of themselves and the critical missing piece is really in our understanding of evolution is really that even cells display problem solving abilities as we
as we as we saw before and in fact there's an entire layer of physiological computation between the genome of an organism and its final phenotypical form so you can almost say an organism is computed or generated from autonomic prompts and a typical question usually is how evolution can give rise to this competency architecture of biology which we know
And in a bunch of recent publications we also showed that having a cellular substrate which is capable of solving problems also has significant implications for an evolutionary process. So the genome itself basically in a more modern interpretation can be seen as a generative prompt which is shaped by evolution through natural selection and which is decoded by organismal development.
This, as I mentioned before, spans multiple scales in organizational hierarchy in biological organisms. And it basically can integrate it roughly as a self -regulatory multi-scale denoising process where really all components in this multi-scale architecture try to maintain at a certain homeostatic level.
And today we ask whether this can also be applied to evolutionary processes, so whether evolution can be understood as a way of denoising. So typical genetic algorithms try to exploit these principles of biological evolution by selecting from a population of candidate solutions.
fitness candidates and then they apply these genetic crossover operations mutations and then these candidate solutions are evaluated in an environment and then reintegrated in the population based on the fitness values. What's interesting for us is that this crossover and mutation operation can also be understood as a generative process and there has been progress since
multi to thousands where people have very successfully used Gaussian models to as generative models to produce new offspring data for next generation

data for next generations based on the evidence of a current population particularly with this covariance matrix adaptation strategy people parametrize or re-parametrize a Gaussian model across generations and try to go towards higher fitness regions in the parameter space by expanding the principal directions of the Gaussian and extending the standard deviation and the covariance matrix appropriately.
until eventually the population can zone in onto high fitness regions and be very precise here and what stroke us when we looked at this picture and also have been working on diffusion models recently is that this kind of looks similar to
Well, a denoising process when you go from generation one to six, but if you go to the reverse direction, it looks like adding noise to the parameters of this particular example. So it's very similar to how diffusion models actually are trained and generate data as depicted here with this simple two peak function.
So let me give you a brief recap about diffusion models, but I'm sure you've heard this plenty of times during this conference. Well, diffusion models are two -stage models. They're first trained to or while they're trained to denoise, remove gradual noise from data. They're trained by adding noise into the forward direction by blending the data points X0 with a particular amount of noise epsilon.
Then they are trained to estimate what noise has been added to the picture or to the data. And then this estimate is removed from the data itself in consecutive steps. And this allows diffusion models to go from pure noise to photorealistic images or videos or even text by now.
And another particularly interesting feature of distribution models is that you can use something like classifier-free guidance to control the direction of what will be the outcome of the diffuse, the generative process of diffusion models. And, for instance, you can ask for a picture of a panda and a bear or the famous astronaut on a horse in the moon.
What's also interesting for us is that the data seems to be organized hierarchically by diffusion models. That means you can basically tweak certain features like here the eye of this cat here, the eye color, or you can even exchange the species while other features of the data can remain basically untouched like the background or the color of the animal.
So this basically allows for a model of feature selection, which also is reminiscent of how genetics works. Diffusion models have been applied to protein structure prediction, but also to genetic data by now. And today we're interested in how this might be exploited for general optimization tasks, evolutionary optimization tasks to be precise.
In a first publication, which was presented at the ICLR 25 by my colleague Jammo, we asked the question whether we can directly estimate our use to the math of diffusion models to go from a noisy data cloud to a high fitness region in the data space. And to do this,
We basically need to estimate what the target point X0 is given a particular data point Xt at different noise levels. And to do this we can simply evaluate the estimated value for X0 by evaluating the mean estimator.
of x given the current states x_t within an evolutionary population and to get this probability of x being the target state given the current state x_t
We can use Bayes rule and turn things around and basically replace this complicated probability with something we know, namely just this what you can see here is basically only the default process of diffusion models, namely applying noise to the data.
and ending up at a particular target state XT, or not target state, noisy state XT, and we can replace the probability of X0 being a target state by the fitness function eventually, where we need to remap the fitness function into a probability density.
And what you can see here is that this entire formula boils down to something very similar to evolutionary algorithms. Namely, you have something like a selection criterion, which reflects the fitness of the data points. And here you have something like reproductive isolation. That means this here is a smoothing function or exclusion function.
which relates data points with its neighbors so if data points are far apart of each other this term will be low and eventually will affect what the the target estimate for X0 will be so yeah we can now substitute X0 into the denoising stack of this diffusion
DBI-AM step and we end up with our diffusion evolution update step which is model free and purely based on an estimate of the target state given the current state of the evolutionary population. This includes now this drift term which we interpret as a direct evolution as an adaptation term but it also includes a noise term which accounts for possible mutations of the data.
And in a toy example, we applied this, for instance, into the two big function you saw before, where we start with a randomized initial population and the blue spheres basically emphasize the neighbor relation, how many different neighbor states are accounted for updating particular targets.
noisy states and guiding them towards the estimated X0. So the estimated final state, high fitness state. And as you can see over generations, this neighborhood relation shrinks and it becomes more
more isolated and eventually these target states converge very well to high fitness regions in in our two -dimensional toy example so we also applied this to different fitness landscapes as you can see here for instance to this Rosenbrock, Biel, Himmelblau, Eklö and Rastrigin problem and we compare our algorithm to different well out of the box
algorithms like covariance matrix adaptation open yes or patchy and what we see is that our algorithm is quite competitive it finds multiple optima at the same time and it shows a remarkable quality diversity score across different problem domains we also can use our algorithm in higher dimensions and also in reinforcement learning problems but today I don't have time to go into detail here
here. So based on these results we wondered whether we can also use well deep learning and and well diffusion models as we know them in an evolutionary algorithm like I showed you before in discussion.
Forensics matrix adaptation algorithm and basically what we did is simply replacing the Gaussian model with a diffusion model and we train it across generations and use the retrain diffusion model to sample the next generation of high quality data.
We literally here understand diffusion as reversed evolution and evolution as an heuristic denoising of an iteratively refined diffusion model across generations. So we retrain the diffusion model based on novel evidence across generations.
The algorithm can also be be sketched like this where on basically if you follow the gray line this is a typically heuristic evolutionary algorithm where you use population data, crossover mutation moves to produce novel data points.
novel parameters which are tested in an environment and you return some some fitness value classifying how well is this particular parameter data in the environment but if we use diffusion models we can store the different populations into a database and we can train the diffusion model then on high quality data and use the diffusion model as a turnative model to produce
better and better adapted offsprings which can while correlate subtle parameter or which can identify subtle parameter correlations much better than the Gaussian model would be able to so we again applied this to a very simple toy example this oscillating tube

To our example this oscillating two-peak function where green is high fitness and red is low fitness and compare it to a Gaussian model on the left. And what we saw is that our model can be very adaptive and quickly adapt to changes in the environment while the Gaussian model structures due to the inductive bias of its Gaussian priors to adapt in time to this changing environment. Yes, so...
Another quite interesting thing, as I mentioned before in diffusion models, is that you can
bias degenerative process with classifier-free guidance. So what we can do also in this evolutionary task is we can not only restrict ourselves to evaluating the fitness of the data points, but also evaluating certain features which we are interested in, for instance, in what parameter region our data points are located to exclude a certain range or to guide.
the evolutionary process towards a certain range of parameters and we can then train the diffusion model jointly on the data points and the evaluated features and then during the sampling stage we can ask the diffusion model to generate data but conditional to a target feature which I mentioned before so to go for instance to target ranges in the parameter space and
Actually this not only works for the parameter space where we can for instance go to the upright or to the bottom left for either of these two peaks here, but we can also apply this to phenotypical traits for instance to fitness values of the data. So we can, after we did, or during doing this evolutionary process with the fusion models, we can guide or we can
select what fitness an offspring should have and by that also for instance asking the diffusion model give us something slightly better than then you had before to really go for higher fitness intentionally which is quite related to inverse reinforcement learning applications and what we also can do is for instance condition on
The target behavior of reinforcement learning agents, for instance, which are trained to these cartpole examples to stabilize the cart, the pole at a certain location. So this is the fitness. But orthogonal to the fitness, we can also ask with conditioning, find a solution that balances the pole at a certain location, which does not affect the fitness. So we don't need reward shaping techniques or something like this.
Good. So here's an example where we applied this again to this two-peak function, where we first ask
the evolutionary algorithm across generations to go for instance to the upper right peak and we see that this works quite remarkably we did this for 10 generation 10 different runs and these are overlaid here and basically after six seven generations they rigorously find the correct peak which is asked for we can also ask for the bottom left peak and something interesting happens when you ask for parameter regions which don't have a maximum in infinity
And in fitness, there you see these frustration effects where the diffusion model basically makes a compromise and draws data or samples data which are close to the optima but also within the respective parameter ranges. What's quite interesting is that you can do this.
conditioning also time dependently so you can start off with a an unconditional optimization where you you optimize for both or multiple solutions at once but then at a certain stage you might ask for a particular solution and the population will follow this request or just this conditioning and after a while you might change your mind and ask for a different the different solution and
Since we have this epigenetic memory database of good solutions, the diffusion model will pick this up and immediately readapt to the other solution without doing cumbersome mutations in between. So it kind of shows a form of environmental memory about how fitness re-chains. And this allows for direct adaptation if the corresponding memory is present in the diffusion model or in the training data.
As I mentioned before, you can also use other conditional conditions like you can try to sample high fitness parameters of your parameter of your fitness landscape. Yes, but now we're interested in evolving reinforcement learning interest. So as I mentioned before, we applied our method to decouple environment.
where the task really is to control this cart position with a basically neural network. So the pole will be balanced at an upright position.
And we did this with different network architectures, for instance with a recurrent neural network with one layer up to three layer and we also use different numbers of hidden units from 8 to 16. So these are typically quite cumbersome to train architectures in terms of reinforcement learning because of these recurrent feedback connections.
So we compare our algorithm, which is here drawn in
blue and then in green we compare this to other out-of-the-box algorithms like covariance matrix adaptation simple genetic algorithms and and we draw the fitness versus generation here and what we see is that our algorithm can learn this this problem much faster sometimes in as little as well three or four generations and outperforms these design methods greatly
Especially in the lower parameter regions. So what we are now interested in is can we also condition the behavior of this of this agents. So guide the evolutionary search so eventually the agents will show target behavior.
And to test this, we first used the data generated up here. So we basically tracked all the population data from these experiments and tried to identify whether we can predict the target cut position based on the parameters that we found in an unbiased evolutionary setting. And we here draw the predicted cut position versus the measured cut position.
And we see that especially for high fitness regions in this white region here, we can very well predict at what target location the cart will be eventually stabilized. And after that, we trained a diffusion model without using it in this evolutionary stack to generate parameters of these agents that show this target behavior. For instance, we asked the diffusion model to generate
parameters for agents that stabilize the cart at position 2 to minus 2 and also this works quite well although there's a certain deviation of course but this was quite promising and we also used these now technique to do this in an online training form namely in an evolutionary way where we started without any prior information and we asked the evolutionary algorithm
The diffusion model just to find policies that stabilize the card for instance at axis minus 0.5 to 1 in green here. So we can in principle guide an evolutionary algorithm to find solutions to reinforcement learning problems that show particular target rates without changing the reward function of the problem. So this is an interesting alternative to reward shaping.
techniques and reinforcement learning applications. Another example where we tried this is these lunar lander environments where the task basically is to
um land the capsule safely and a pitfall if you do this with without proper training and if you don't train long enough is that for some occasions these capsules might not turn off their thruster after they landed so this this is kind of a pitfall and this is a waste of resources especially if you think about an astronaut
which is waiting for the capsule to pick it up and during the pickup while it's burning fuel and this might not be the best the best strategy to do this so what we did is we used our conditional diffusion evolution
And formulated a condition that accounts for the total throttle of the agent as soon as its feet touch the ground. And we conditioned the diffusion model to generate samples during an evolutionary process, which minimize this quantity. So that basically...
translates into turning of the thrusters as soon as the capsule lands and the results are presented on the right and I think they speak for themselves.

So this seems like a quite interesting way and of course there's still many many steps to proceed and improve this algorithm but it's an interesting way in training all different kinds of agents with
the motivation to show target behavior without using reward shaping but only using conditional conditional sampling during the generative process of the diffusion model okay so this basically brings me to the end of the talk what I showed you today is that evolutionary processes and diffusion models are quite related
They both involve iterative refinement of data during their generative processes. Evolutionary processes do this based on population data and based on selection. While diffusion models have this mathematical framework of noising.
destroying information and denoise and training a model to to reconstruct information iteratively but but they share a deep mathematical connections which we showed in in this ICLR paper and in the second approach in our basically adaptive diffusion model evolution strategy we
Particularly used diffusion models to generate better adapted offsprings or well adapted offsprings to arbitrary fitness landscapes during an ongoing evolutionary search. It reduces memory across generations about the evolutionary history and allows for
violating genetic data high quality genetic data to high fitness regions in the parameter space we see an improved quality of the generated samples we have better conversions than other techniques and also we see a high diversity measure in our results yeah so another thing to mention is that
The algorithm seems to be highly adaptive to environmental changes and especially if you use conditional evolution, we can also
guide the evolutionary process towards target features or target traits, what we expect from the results of the evolutionary search. So we can use classifier-free guidance to condition the degenerative phase of the diffusion model during the evolution process to guide the population towards target features which we are interested in. But we might also ask to exclude particular solutions.
is from from the search from the search behaviour yes so as an outlook we hope that our method can significantly improve evolutionary search with the help of deep generative learning and we also hope to induce a cross pollination between evolutionary algorithms and generative AI
There's also intriguing parallels to this novel understanding of the genome as a generative model basically or a prompt to a generative model by interpreting the diffusion model itself as kind of a functional genome and the parameters which it produces could be understood more like machine expressions like particular examples that are currently or interested for a particular context especially if you
if you related to particular conditions you are interested in and as a follow-up or outstanding questions we want to investigate what the role of phase transitions during the alternative process of the diffusion models are in with respect to the data generation and evolutionary algorithms because these might relate to particularly interesting
uh regions where mutations make can make a strong impact on the on the results of the alternative process and also we're interested in the fundamental question whether this diffusion evolution might be a valid model for actual biological evolution okay with this i want to thank the people in both namely
Yanbo, who was quite involved in the first paper, but also Hallenel and upfront, of course, Michael Levin who runs the lab and I also want to promote our code. So this diffusion in the model-free diffusion evolution algorithm is available and also the conditional diffusion evolution code is available on GitHub. Okay.
With this, I'm happy to take any questions if there are any. Yeah, thanks for your attention. Okay, thank you, Ben. Thank you for your great talk. So for the audience, do you have questions?
All right. Maybe if you have questions, please send email to Ben. And thank you very much. So our next section is oral presentation.
Our first uh speaker is uh Enming Liang. He will give the talk about uh uh god flow matching for efficient constraint uh generating modelling over general convex set. Uh let's welcome.
Thanks for for organising this nice workshop. Hello everyone, this is a admin now from City University of Hong Kong. Today I'm honoured to be here to represent my colleagues to present our work, gauge field matching for efficient constraint generating modelling over general convex set. So as we know that in recent years the diffusion model or field matching based models has quite successful in various areas like the
Structural video generation, the robotic planning, for example the epitome policy or the in scientific area the protein or material generation. They are quite good to generate the high quality samples to up in the convex distribution. But there's one thing matters, the constraints. Actually there are many constraints in this generative tasks.
For example, the physical constraint, we have many safety critical constraints for robotic planning. We have the many structured constraints in the protein or material generation. And in the picture generation domain, we have the water mark generation which means that the the user would try to constrain certain tokens that is invisible to the external users as a water mark for for privacy. So how about the diffusion model or model in tackling this constraint generation?
The answer is it suffers from the feasibility issues. So we know that this model, the generation process follows certain differential equations.
And there are two types of errors. The first one is the neural network approximation error, for example, we approximate the score function or the vector field. And the second type of error is the discretization error, because we do solve the integration in the discretized time step. And the two types of error are going to propagate within the integration.
And the final error bound typically has an exponential dependence of the Lipschitz of the score function of the vector field. So such a large error can easily divide out, divide the general sample outside of the constraint set, so cause the invisibility.
So how about existing work tackle this problem? There are many actually there are many works for solving the constraint generation task and uh many of them so first one is a reflection based method so they add a additional reflection term during the generation to keep the generation trajectory within the constraints yet. But they only work for specific constraint and for general constraint they have the high inference compro uh inference complexity. And the mirror map best method, a map simple
Back to the both syntax or structure linear constraint to the unconstrained spectrum to the generation. But again they have not general enough for general convex sets and there are many other like the projection based, the barrier based method and this method in summary they either has a limited applicable constraint set or lack the strict feasibility guarantee or the distribution

strict feasibility guarantee or the distribution approximation bound or it has a high training or inference complexity. So in this work we propose the gauge deformation. First it works for general compact convex set and it guarantees a strict feasibility and has a bounded distribution approximation error and it only has a minor additional complexity compared with the original unconstrained version of the formulation model. So how it works?
So given the data set as a support on the compact convex set, we know that a traditional volume margin just uh selects a simple initial Gaussian distribution and then there's a vector field from the Gaussian to the target distribution as and uh as we discussed uh before, the arrows gonna t divide the samples outside of constraint and uh cause the infeasibility. So how how can we do it? So here we can transform the generation task
From the compact convex set into a unit ball. And this mapping we will introduce later. So first thing we do with maps the data or the data in the convex set into the data within the unit ball. And then we model the generation task within the unit ball, just run the regular from matching. And after training we do the generation in the unit ball by running the reflect from matching. So it has a
Cross-form solution, because we are doing says the same power unit ball, and after generation we just map it back to the original constraint set, and we get the feasibility guaranteed, generate the samples, and as you can see it
The only mu only the additional complexity comes from the inverse mapping during training and the forward mapping during inference. So it has a so the core problems how can we find such a invertible mapping that maps the constraints set to a ball and the vice versa for general convex set with low complexity. And the answer is a gauge mapping. Okay, a gauge mapping that's a let's say how it maps a ball to a convex set. And in a sense it in two steps.
As as simple as a plant elephant into the refrigerator. So the first step is to translation. You find the entry point and you move the unit ball to the entry point. And the second step, you do the scaling. So for each direction, we gonna calculate a scaling ratio given the direction, x_ D_ one and D_ two which is a point to boundary of the ball and the point to boundary of the constraint distance.
Okay so if we set a unit ball so d_1 would be equal to one and for general compact convex sets the point to boundary distance can also be easily calculated, so we got the scaling ratio along this direction. And this uh s s scaling function actually has a corresponding solution for common convex set likes the linear, quadratic, second order con or linear matrix inequality, and it can be calculated efficiently with bisection method for general compact convex set.
And it is invertible. We just scaling back and move back to the origin. You would get you can just map the convex head into a ball. Okay? And it has also has some nice properties like differentiable almost everywhere. And in a sense, it's just a bi-Lipschitz homomorphism. Actually it preserve many nice properties in the original space such that we can do the flow matching in the transport space with zero-geo guarantee.
Okay. And after we use the gauge-fluctuation to generate the distributions, the first one, the distant, the assessment distance between the data distribution and the generated distribution would be bounded by the bounded by the Lipschitz times the reflect -fluctuation error, which has been established in previous work. And to reduce this error, we can either training hard to reduce the L2 -fluctuation loss, or we can just reduce the Lipschitz of the gauge-fluctuation, and it can be achieved by select a central in
interim point of the original constraint set. So the second part is the inference complexity. So compare with the original flow matching generation complexity. The only additional complexity comes from the final step, the gauge uh the gauge mapping calculation. And that can say that depends on the number of constraints and the uh complexity for evaluated the specific constraint functions. So it has a minor additional complexity.
So what do you design to? So what do you design experiment to validate the effectiveness of the upper our methods? The first one we test our method in some simple constraints uh linear constraint or quadratic constraint. As you can see the first one the gauge flow matching has similar distribution approximation quality compared with the existing method, like the unconstraint flow matching or the reflect flow matching or the project flow matching. And it has uh
The significance is lower than infrared time compared with the reflection of projection -based method, and actually it has a very s very l uh close to the unconsidered version of the flash sound, which means that we have the with a minor additional complexity caused by the gauge mapping. And we also do some stability test of the b of this gauge mapping, as you can see, we test under different convex set and you and the for for example for the one thousand dimension,
Constrains the sketch mapping only takes like a one second to to complete the calculation and it also can do the batch calculation for example can generate like 100,000 samples just within 10 seconds for the linear matrix and equality constraint
Okay. So let's give a quick summary. So in this work we only, we mainly focus on the constraint generative task over the compact convex set. And it leverages a closed-form back trajectory gating mapping for general, that is works for general convex set, such that it enables a low complexity generation task. So the next step is naturally we can extend this method to some structured non-convex set like the star set or the geodesic convex set over manifold.
thoughts or more generally we can extend this method to the ball harmonic set, which means that uh non-convex has the same topological structure with a projective set just like the couch shape set. And of course we can consider the one step generation, on and put this measured in more real world applications. And that's all for today's presentation and thanks for your listening. I see there any questions? Thank you.
Any questions from the audience? Okay, um let's uh thank the speaker again. Thank you.
So for the next talk we'll welcome Olga to present the topic Towards Variation of Flow Matching on General Geometries.
Okay. Um hello everyone. I'm very excited to be here. Uh I'm Olga Zagen and I will present now um towards variation of low matching on general geometries, which is a joint work with Flor Aichelbaum, Alison Poulin and Eric Beckers. So uh to provide some context, flow matching was uh introduced as a method to um
Transfer at base distribution P_0, which is generally a Gaussian, into a target distribution P_1 by learning a velocity field. And more specifically, conditional flow matching, C_F_M_ learns a velocity field that is conditioned on the end points in P_1.
Recent work has extended CFM into two different directions. On the one hand, we have variational flow matching, VFM, that reframes it as a posterior inference problem by probabilistically generalizing.

by probabilistically generalising it. Um uh while remaining to matching R_F_M_ takes that geometric route by extending it to non-euclidean spaces, um in order to respect the underlying manifold structure. So what we do is uh um introducing Riemannian Gaussian variation of to matching R_G_V_F_M_ um
That is a flow-based generative model for Riemannian geometries in which we try to bring together these two directions. And the reason why we do it is to combine the benefits of the variational perspective of VFM with the geometric rigor of RFM. How we do it is by geometrically generalizing the objective of VFM.
Because we observe that it is particularly well suited for explicitly parametrizing the support manifold of the distributions. Let's now take a closer look at the models that set the stage for our work. So VFM reinterprets flow matching as a KL
minimisation problem by explicitly learning a posterior distribution over the end points. In standard flow matching learning the velocity field basically corresponds to solving a variational inference problem.
We that specific Gaussian distribution, and for this reason we say that V_F_M probabilistically generalizes Z_F_M uh in a way that uh instead of learning directly the velocity field, uh we learn the endpoints.
RFM instead is a method that uh um tries to address the problem uh where the data lies on a curved manifold like a hypersphere or hyperbolic space. And in this setting there is a shift um from
Um interpolation, straight line interpolation in Euclidean space to geodesic interpolation. In Riemannian manifolds with uh close-form geodesics, this problem becomes much more tractable and also the resulting loss uh takes an elegant and simple form as the one that you can see in this slide through the logarithm and exponential maps.
With this background information in mind, we can proceed to define our model, that is R_T_V_F_M_ Reminian Gaussian Variation of Flow Matching, um of which the key idea is basically to uh combine V_F_M_s and point probability perspective with uh R_F_M_s manifold aware framework.
In order to do it, we define the posterior distribution in VFM objective as a Riemannian Gaussian that is essentially a generalization of the Gaussian distribution to Riemannian manifolds.
on homogeneous manifolds with closed -form geodesics. This reduces to minimizing the geodesic distance between the target data point and the predicted end point. That essentially is a manifold-aware extension of mean-square error. Let's now go through the two key benefits provided by our method.
The first one is a end point distance, geodesic distance minimization opposed to vector alignment as it is done in RFM. Intuitively, our loss provides a stronger form of supervision and we formally prove it in a subsequent work using a geometric tool that is Jacobi vector fields.
The second benefit is the flexibility to choose between what we call intrinsic version of our model in which P0 and the flow are constrained on the manifold itself opposed to the extrinsic version in which instead P0 and the flow can be defined in the ambient Euclidean space.
Essentially, this extrinsic version allows to learn a distribution on a manifold without having to deal with the burden of Riemannian geometry on the flow itself. Instead, RFM by design only allows for the intrinsic framework. This slide provides an overview of the approaches that we have discussed so far.
As I said before, we can think of VFM as a probabilistic generalisation of CFM while um remaining geometric uh geometrically extends uh um CFM. In the same way, we can uh see our method, RT_VFM as a geometric extension of VFM.
We end up with the neat two by two grid in which we have the Euclidean methods on top, on the top row, opposed to the geometric methods in the bottom. And we can also differentiate between the velocity -based methods on the left, opposed to the variational methods on the right.
Moving on to the experiment, we define P_1 as a spherical checkerboard distribution that is built by wrapping the standard checkerboard from R_2 onto the surface of the sphere S_2. Instead, P_0 is defined as a uniform distribution either on R_3 or on the sphere itself, depending on the model that is considered.
And we compare the performances of the previously mentioned methods, so CFM, VFM, RFM, and both the intrinsic and extrinsic versions of our method.
Moving on to their results and comparing the geometric methods to the Euclidean ones, we see that the geometric approaches consistently generate points with a norm that is close to one, which means that these points lie on this sphere, respecting the underlying manifold structure.
Instead, the Euclidean methods intend to generate points that deviate a bit from this surface, and this happens because they don't enforce any explicit manifold constraints on the outputs. When we compare the results of the variational approaches with the velocity-based ones, we see that the variational models
tend to capture sharper details in the checkerboard patterns and also the original Euclidean VFM does a pretty good job with this. We believe that this comes from the way this models match the end points in a probabilistic sense.
RGVFM basically brings together the best of both worlds because by being manifold aware it allows to it allows to point it allows the point to lie on the sphere and the variational approach instead helps to better capture the details of the checkerboard pattern.
To summarise we uh introduce uh R_G_V_F_M_ as an extension of the F_M_ to non Euclidean spaces, um trying to leverage the m end point probability of the F_M_ and introducing the Riemannian Gaussian distribution concept. So far we tested the model in a simple spherical setting and we showed that it can outperform um
The previously mentioned approaches, so the Euclidean methods and the non-variational methods, uh establishing itself as a promising flow-based uh um generative model for Riemannian geometries. Um
In the future, future work includes formal proofs on the guarantees of our loss in terms of supervision as well as additional experiments on a wider set of different manifolds. Thank you for listening and if you have questions or would like to discuss more, feel free to reach out.
So, Thank any you. question from the audience? So maybe I ask one. So do you have any assumption on your manifolds? Yes. So in this slide the
Is uh you see the the first uh expression of the loss is the most general one that we have. So the one as a the the expectation of the log of the um normal distribution. And uh in order to get the

In order to get the simpler version, so the one in the last row that is just the geodesic distance between the predicted point and the target endpoint, we have some assumptions that are that the manifold should be homogeneous and that it should allow for a closed form geodesics.
The reason why we have these assumptions is that we want the Riemannian Gaussian distribution to basically have the same
Uh result, like if we take the integration of the uh Riemannian Gaussian over all the manifolds, we want this to be independent with respect to the uh mean point that we consider. So we need to have these assumptions. Okay. So another question is how do you sample from a remaining Gaussian distribution in Um practice? Okay, so uh
We don't actually sample from this Riemannian Gaussian distribution. This is just how we define the posterior that appears in the in the loss itself. What we sample, I mean we sample from p0 that is defined as a uniform distribution on this space. So
Um with the geometric methods for example we define P_0 as a uniform distribution in uh R_3, I mean actually in the cube minus one one in the three in the three dimensions, and then we project these points uh on the sphere itself, and these our these are our points.
initial samples. So the m the the Riemannian Gaussian distribution actually m doesn't appear in the sampling phase, it's just uh uh something that appears in the loss. Okay, so thank you very much.
Hello. Thank Uh-huh. you for the talk. It was really interesting. Um my question is in the inc extrinsic viewpoint, um is the problem setting the same where you sample it like P_ zero is on the manifold and P_ one is also on the manifold and do you have a guarantee it if it is, do you have a guarantee that you will stay on the manifold as you flow? D yeah.
Okay. Thank you for your question. So, yeah, I didn't explain too much in detail. Maybe this difference that I think is important.
The difference between the um intrinsic and the extrinsic version is that uh in the intrinsinc version as in uh uh Riemannian flow matching, we have uh um okay i in both cases we have P_ one that lies on this sphere, it said. In the intrinsic version we have that also P_ zero lies on this sphere. And uh the flow
um the velocities that define the flow they are also enforced to live on the tangent spaces to the different points on the sphere and in order to do it um
During a inference, um we need to um like do any integration on this fear. So um uh we need to do also um geodesic interpolation on this fear. In the extrinsic setting, uh we still have P_ one on this fear, but P_ zero can be uh for example a uniform or Gaussian distribution in R_ three.
Because, so the point is that in our loss we have, we are minimising the geodesic distance between the endpoints so we don't care about the velocity, like the form of the velocity in an intermediate point of the flow and so
Yeah, we can basically enforce the model to learn the correct geometry of the manifold by just considering the metric where P1 lies.
without caring about the geometry of the flow because we are using that metric and so okay p0 and the flow can be defined in the R3 so in the ambience space you see here on the left of the example during um inferences so during um
Uh when we define, like when the flow is generated, uh the interpolation can be the straight line interpolation. So no um like we don't do um geodesic interpolation in this case. And um the
Points, the generated points can still lie on the sphere for two reasons. One is that the model is already, like by design, we enforce the output to lie on the sphere.
And also because the the metric is uh um is already embedded in the loss itself, let's see. But the main reason why they still lie on this fear is that uh um by design we enforce the outputs to to leave there. Thank you. No problem. Thank you for your question. So let's thank the speaker again for the great talk.
So our last speaker is Sampam, and the title of the presentation is the diffusion duality. Let's welcome. Hello everyone
I'm Shubham. Today we'll be discussing the diffusion duality. The idea behind this talk is to build language models that can generate text in just a few steps. Auto-regressive models are slow because they generate text sequentially one at a time. On the other hand, we have mass diffusion models that offer a non-autoregressive alternative, starting with hard blank tokens top row.
They use a bird -like model to fill in words at random positions. Since multiple words are generated at once, fewer denoising steps are needed compared to autoregressive models. However, mask diffusion models struggle in the few-step regime as shown here when generating a sentence in just three steps, the model fails to produce coherent samples. This happens because it cannot predict.
Correct mistakes. Once a word is predicted, it remains fixed, similar to autoregressive models, even though words are filled at random locations. Due to algorithmic limitations, we must move beyond mass diffusion for language modeling. Our focus in this talk will be on a largely overlooked class of diffusion algorithms called uniform state diffusion. The generation scheme looks something like this. We start with a randomly initialized sequence.
a denoising transformer that iteratively updates the words with underlined words indicating those modified at each denoising step. As you can see, an impressive property of this model is its ability to correct its own errors. Hence, this type of model is highly suitable for few-step generation. However, this model self-historically underperformed mass diffusion models. Now let's take a look at some of the contributions of this work.
In this work, we make a remarkable discovery: uniform state diffusion processes naturally emerge from Gaussian diffusion processes. This has a profound implication, most important of which is distillation. In this talk, we'll leverage the PFODs of the underlying Gaussian diffusion model to enable USDM's perform few -step generation.
Let's walk through how uniform state diffusion works. For simplicity, we'll define the diffusion process for a single token, extending to multiple tokens like a sentence is straightforward. Here, t equals 0 marks the start of the process and t equals 1, the end. The forward process transforms cat as a yellow one-hot vector to horse, gradually transforming the data distribution into the prior distribution, as shown in blue.
Each intermediate marginal is a linear interpolation between the data point X, the initial probability mass function, and the prior distribution. The diffusion parameter alpha t represents the signal level decreasing from 1 to 0. Now we need to train a denoising model X theta using the Nelbo loss which is a bound on the negative log likelihood. To compute the Nelbo we use a function f whose exact form isn't important.
What matters is that F depends only on the noisy samples z_t, the reconstruction x_theta, the signal level

Theta, the signal level alpha_t, and is marginalized over the full diffusion trajectory. This function f will be important later. Okay, now we'll get into the most interesting part of the talk. First, we define a Gaussian diffusion process by creating x as a continuous valued one -hot vector.
Let W_T be an intermediate Gaussian latent, with its marginal shown here. Alpha_T tilde denotes the signal level decreasing from 1 to 0 as diffusion progresses. The prior for this process is a standard normal distribution. Next, we apply an argmax operation to the Gaussian latents, mapping the continuous-valued vector to a one-hot vector and producing the discrete latents as shown in blue.
In the paper we show that the distribution of the discretized latent matches the intermediate marginals we discussed a few slides ago. The signal level of the discrete diffusion process shown at the bottom is a function of the signal level of the Gaussian diffusion process. We call this mapping tau, the diffusion transformation operator.
The marginal's p.t. also evolve as per the following ODE as shown at the bottom, which is a signature of the Markovian discrete diffusion process. Thus, we establish that the uniform state discrete diffusion process emerges from Gaussian diffusion. In the paper, we also demonstrate that the elbow is tighter in the discrete space, hence its natural advantages to operate in the space.
Now we'll see two applications where this duality helps. First, we'll see how a curriculum learning strategy speeds up training. First, we rewrite the discrete elbow in terms of Gaussian latents. For this, we need two things, mapping of Gaussian latents to the discrete space, which is done by the Orgmax, and then mapping of the signal level, which is done by the diffusion transformation operator. Our final training objective looks like this. The elbow remains defined over discrete structures Z_T.
However the input to the denoising model is now a continuous valued vector where the argmax is approximated with tempered softmax. X theta is still a transformer but instead of hard vocabulary look up it performs a soft look up. If the temperature tau is set to zero we recover the true elbow.
During training, we use a non-zero tau, which introduces bias into the objective, which reduces training variance. We train all models for one million steps using tau equals 20 minus 3 for the first half and tau equals zero, that is the true objective, for the second half. I highly recommend checking out the paper for deeper explanation of why this curriculum learning is so effective.
In terms of results, we find that Duo closely matches MDLM in validation perplexity on open web text while remaining highly competitive with AR. When evaluating the OWT train model on out-of-distribution datasets, we find that Duo outperforms AR on three out of seven benchmarks, a notable first for uniform state diffusion models. Now let's explore discrete consistency distillation that we proposed in this paper.
Given a Gaussian random variable W1, the PFODI, assuming a perfect denoiser, is given as follows. To perform distillation, we pick two Gaussian latents at time steps S and T, then apply arcmax to obtain the corresponding discrete vectors ZS and ZT. As in standard consistency distillation, we train a teacher model that sees a less noisy version of X and force the student model to match its predictions.
using the k -loss shown at the top. In practice, we perform multiple rounds of distillation with progressively larger step sizes, freezing the teacher's weights each round. In this figure, we compare the sample quality from the MDLM and Duo after every round of distillation. For MDLM, we use the SDTT algorithm and for Duo, we use the DCD algorithm that we proposed in this paper.
To measure sample quality, we measure generative perplexity of the samples computed under a larger GPT-2 model as reported on the y-axis. A lower number is better. On the x-axis, we plot the number of sampling steps to generate 1024 tokens. The curves of interest are the bottom most blue curve, which is
For duo, and the bottomless orange curve, which is MDLM, we observe that duo model is significantly better in the low sampling steps regime. Generative perplexity can be gamed by producing degenerate samples, so we also compare sample diversity shown in green. The distilled model successfully reduces the sampling steps from 1024 to 16 without any loss in quality or diversity.
For the extreme case of generating 1024 tokens in just 8 steps, we use the greedy tail sampler proposed in the paper, which performs ancestral sampling up to the final denoising step, followed by greedy decoding. With minimal entropy loss, this approach achieves around 100x faster sampling.
In this paper, we expanded the design space of uniform state discrete diffusion models by incorporating Gaussian diffusion, enabling more efficient training and inference. This also opens new research directions for adapting techniques from Gaussian diffusion to further improve discrete diffusion. An exciting question now is whether we can design a larger diffusional language model that matches AR perplexity while achieving faster generation.
Thank you so much for your time and patience. We have uploaded the code and checkpoints on this project page. Thank you. Thanks the speaker. So any questions from the audience?
All right, so it comes to our final section is a closing remark and also the award section. So I would like first to thanks everyone to come here to our Delta workshop. And here we have a workshop highlights, we have six inspiring keynote talks and thanks to the...
Great talk from the our invited speakers. And we have 130 engaging paper submissions and we accept most high quality papers. And thanks to to the everyone to
um contribute to the submission. And uh we have uh seven oral presentations including one by Zing Hao and he's also our invited speakers. And uh finally we have two post and network sections. And I have hope everyone um enjoy a lot in our sections. And uh also I would like to thank thank to our team, we have uh uh
um 10 workshop chairs and to our organizers who has come here and also like a great job and uh i would like also like to thank the reviewers who gave uh great efforts to review our papers and also thank to the staff who managed the videos and equipment on site
And now we're going to the paper award. So because we have many like...
great papers, and uh so this time we have uh eight awards, uh including four for the long trai long paper track and uh four for the short paper track. And we have uh for each track we have one best paper and uh three outstanding papers. So we will give a digital certificate to the authors and uh here I will give the
And title and also of these papers. So the first is best paper for the long paper track, which is large. So which is large language diffusion models. Let's congratulations to the authors.
And next we will have three outstanding papers of the long paper track. So the first is a guiding time varying generative models with natural gradients on the exponential family mainfold. So let's congratulations to

So let's uh congratulations to the authors. And the sec the second uh outstanding paper of long paper track is uh a unified diffusion bridge framework via stochastic optimal control. So let's give um congratulations to the authors.
The last outstanding paper in the long paper track is a past planning for mask the diffusion models with application to the bio biological sequence generation and uh congratulations to the authors. Next we'll uh uh show the um best papers and outstanding papers in the short paper track. So I will first uh show the
Best Paper Award in the short paper track, which is DDPAM's Gaussian Matching is assembly assemb assemb totic efficient. Let's give a huge congratulations to the authors. Then we'll show the
Our standing paper award in the short paper track. The first is a data scarce, a trial for summer generation -wide multitask pre-trained classifier -guided diffusion. Congratulations. Next is a guide flow matching for efficient constrained generative modeling over general convex set. Let's give the congratulations to the authors.
The final outstanding paper in the short paper track is towards variational flow matching on general geometric landscapes. Congratulations to the authors.
So this is a closing marks. So the future of the generative model is a bright and a limitness. So and let's continue to push the boundaries of the machine learning research and thank you for coming to our data workshop. Let's stay connected and hopefully we can see you in the near future.
And uh we will come any suggestions and uh feedback and please contact us by this uh email address and uh thank you very much for coming today.
