# Workshop 23990

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

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

Welcome to Frontiers in Probabilistic Inference: Sampling Meets Learning Workshop. We're very excited to have you here. This is the first edition of this workshop that we are doing here at ICLEAR 2025. And we will be centering the discussion around probabilistic inference and sampling-based methods.
As because you're in this room, I'm sure all of you know, probabilistic inference is a cornerstone in modelling in different national sciences fields like in biology, physics and chemistry. And while for many years um methods have been developed to address some of these problems um in sampling and probabilistic inference, there are still many challenges that exist. For example how to scale to higher dimensions and more challenging energies and um problems in general.
the sometimes very high computational resources that are required to tackle some of the real-world applications, for example in molecular dynamics, and just in more general how to mesh theory and practice where practice may sometimes be lagging behind theory.
In recent years there's also been a rise in new sampling uh or in machine learning based approaches that are have been developed to um tackle sampling. Um like even in the last one or two years uh we see like a lot more papers coming out in this field. And this is a very just generally a very exciting field for machine learning because as you know M_L_ is usually limited by the amount of data that we have and if you can sample and um like basically get our own data, this is very exciting. We don't have that limitation anymore. And
We're now limited maybe by computational resources.

And we're now limited maybe by computational resources, but not by data. So we thought that given this new rise in ML-based approaches and the interest in this field, it's a great opportunity to bring together people from all of these different communities, from those working with non -ML-based but like statistics and like mathematics-based approaches to those that are developing these new ML approaches, as well as those looking to utilize these methods for their applications in natural sciences and chemistry and biology.
And just bring them together to discuss what are the key challenges and opportunities that still remain in this field and how we can best utilize sampling, sorry, learning-based approaches for sampling and where we can, what we can learn from what applications require to develop better methods. So we have an amazing line of speakers who will be...
who are all coming from these different fields who will be sharing their expertise with us. We also have a panel discussion where we will like delve deeper into some of these questions.
that I've mentioned on some of these challenges and we also have oral talks and poster sessions from you guys where you'll be presenting your work in this in this area and here just is a quick map to look at the submissions and the reviewers that we had like a map of like where they came from so we had 111 submissions which is which is pretty cool for like a first time workshop and yeah
I guess kind of skewed, but hopefully we will cover the math in the future editions. And yeah, so again, this is our schedule. We also have a best paper award presented by NVIDIA at 11. It's right before the poster session, so make sure you're here for that. And yeah, I guess we'll talk more about the schedule as the day goes.
Um and oh, I also want to thank all of my co-organisers um who made this uh workshop possible as well as our sponsors, Genesis Research, NVIDIA and Morgan Stanley um who um very kindly sponsored the workshop. And um yeah, so I want to introduce our first speaker, um MTS MTS um I will let you get set up.
Institute of Advanced Intelligence project. Um he's a team leader there and he will be um talking about adaptive Bayesian intelligence. Okay, it works. Thank you. Alright.
Wow, you guys got up and came here. So I'm really, really, really honored. I'm happy to have like 10 people in my talk. So this is way more than what I expected. Yeah, very happy to be here in Singapore. I just had mango for breakfast. I am very happy. And I know that it's supposed to be sampling meets learning.
But when I was invited, I said, well, I don't really do any sampling and they said it's okay. So thank you for that. So yeah, I'll do some non-sampling stuff and then I'll get out of your way and you can go into the cool stuff afterwards. I thought I'll talk about something that I have always been passionate about, which is adaptivity, and talk about some Bayesian touch to it and how you can try to fix certain things that
are broken with all this AGI stuff that's going on.
The main goal of the research that we do in our group is on designing AI systems that can learn like people, like animals, basically by quickly adapting and continuing to acquire new skills throughout their lives. And humans are extremely amazing. And if you've seen my talks before, you've seen my daughter. This was taken like 10 years ago. And
Maybe before Laura was around, so, you know, just thinking about adaptation a long time ago, many machine learning folks were. And it's a pretty amazing thing that, you know, kids can randomly sample things around there in the world and kind of figure out what experiences they really enjoy, they really like. If you give them enough time, so this is after six months, they...
figure out what things they want. They adapt themselves to the environment and only gather the data that's the most relevant to them, right? It's very informative. But not only this, they will take this knowledge and they will go on to live their lives. And if something changes in the world, so this is going from ukulele to guitar, they'll adapt their skills and reuse their knowledge and repurpose them to get more of the experience that they like or learn new things.
things that they haven't seen before, right? It's this incredible, incredible thing, right? So we talk about conscious godlike AGI, but really, are we there yet, right? If we think about this, so this is not an AGI, thank God. So this is a caricature to make you think about how small changes in the system can make it fail, right? These systems are very rigid and they're trained in very specific
these specific ways, if you want to change this, if you, you know, go from 2021 to 2022, suddenly things are changed. There's pandemic, there's change in government, right? And then the model doesn't really able to adapt to these small changes. It has to be trained again. This is really, really bad, right? Because it favors people who can actually afford
to afford that training. And it also is unsustainable because you can't keep throwing that amount of money again and again, right? I really think that we need to rethink, we need to go back to the roots of learning, of what we started the whole machine learning, the idea of it with this adaptivity thinking like we'll make machines that will learn like people, we'll teach them in that trial and error basis, but we're not doing that right now, right? We have somehow.
gotten into a different path. So that's something that I think about all the time. And I present to you adaptive Bayesian intelligence, which is not like AGI, but I think it complements it in a new way. And the whole idea is that we know that some of these Bayesian principles, they have quick adaptation built in.
to them. So why don't we utilize this print these principles, these philosophies to build a low -cost AI system? So all of this actually would get you cheaper AGI is what I'm trying to say. That it's important for that reason. Okay so because of it's a very short talk I will be very very quick into you know lots of things I'll present. I'll first go into Bayesian nature of learning algorithms.
So if we were to use Bayes for adaptation, we must first understand if there is something Bayesian about existing algorithms. So I'll present Bayesian learning rule, I'll show how this actually leads to uh training GPDT2 from scratch. Then I'll go into the adaptivity like how can we adapt these algorithms. Some of the things that people are doing in model merging, continual learning, distributed learning, data attribution, these are all casted as adaption.
adaptation task. And I'll try to show you that if you view it as a Bayesian uh operation, y it's very easy to improve them and get extensions to them. So I think I may not have time to cover the last part, everything. Let's see how far we get, because I don't have that much time.
Okay, so there are seven papers here and those are the ones that you may want to look at, maybe pick your favourite one or two. That'll be enough to understand what we're doing.
Okay, so I'll start with the Bayesian nature of uh algorithms. This something that I've actually done for for many years s uh almost maybe like eight to ten years. And I gave a new rips tutorial on this in twenty nineteen uh that has more details of things. But now there are some new results, new exciting results that we have got. So what we are able to do is uh we are able to modify Adam uh i uh in a
In a way that it doesn't increase the computation cost, but we're able to actually optimise a Bayesian variational objective, the elbow, exactly. So there's no approximation there, but the cost is exactly the same.
Well, nearly the same. Okay, so it's shown in this uh this this figure. Uh okay, I don't know if my can get my cursor there, but basically lower is better and the red line is uh is the new algorithm that we call I_ one and the grey line is uh is Adam W_ and I'm showing it for like uh G_P_D_ two hundred and twenty five million then three hundred and fifty five million. The most bottom one is the largest one is seven hundred and seventy
seventy three million, okay? And it's not only that the cost is almost the same, we get a s slight improvement and I hope people tell me that it's significant and I trust them. But, you know, it's not only that you uh you get the benefit of base at the same computation cost, uh you're also able to generalise these things to other things. So for example y if you wanna do fine tuning, you simply take Adam W_ and just replace it by I_ one.
And there it is, you get like.

and there it is you get like three percent to five percent improvement on uh on on llama to seven billion so when people tell you that oh Bayesian methods don't scale well I mean you know for a while we have known this and I'm trying to tell people but uh you know hopefully people will pick these things up and not be so scared of Bayesian idea so that was the hope that we had and basically what actually we did is that we try to make
make uh the comparison fair. Like if you look at R_M_S_ prop kind of algorithm, they use a computational budget, right? And Bayesians are always feeling shame about their algorithms, thinking that all our posteriors are diagonal Gaussian, they're not as good. But, you know, uh if you're if you wanna be fair then give the same computational budget to a Bayesian algorithm and see if it does worse, and then you can feel shame, right? So here we kind of took this Bayesian uh you know um
learning rule idea which I'll show you in the next slide. And it basically from there try to make it as similar as possible to RMSProp.
So this is like a line-by-line comparison to RMSProp. The algorithm on the left side was derived by a very clever guy in his lecture notes through some clever hacking, right? And the algorithm on the right side was actually derived in a principled way from a Bayesian algorithm, which directly optimizes the Bayesian objective. So it's very remarkable that you see such a close, you know, connection to it.
There's no monkey business here. This is optimizing the exact thing. Okay? And how do we get to this, right? We are optimizing the line four and five, the mean and the variance of this thing. So essentially we get to it by kind of
Going to the variational formulation, so in the left hand left side you see uh you know m usual empirical risk minimisation. In the right hand side I have uh a Gaussian objective um uh for a variational objective, a Gaussian distribution with the mean and the covariance. And uh basically it's a it's a specialisation of the elbow. So the second term that's added there it's the entropy of a Gaussian.
and the first term is just the expectation, right? So you know the elbow form. Maybe you're used to the KL form prior is in the loss right now. So you could pull it out and you'll get the KL out of it, right? So it's just the elbow.
And essentially in Aramis problem you're using gradient based things. So you have a preconditioner and you do this kind of stuff. What we basically said that instead of using gradient based, you should do natural gradient based. And it's not the natural gradient that Amari did for maximum likelihood estimation or Roger Gross did with K-Fac, not using empirical Fisher. So it's slightly different. We're using Fisher of the posterior distribution. Okay, so it's something called information geometric optimization.
So if you do this very specific update, it turns out this is just an extension of Bayes' rule. So we call it Bayesian learning rule. It's specifically suited for learning problems, not inference problem, if you want to go beyond that. So what we show, so this is the paper that I wrote in 2023, but I've been working on this for years. And essentially, this is a table, and I hope the fonts are not too small and you can see it.
In the first column you see lots of learning algorithms and the second and the third column are making approximation to the posterior and the natural gradient.
So just by making these two different approximation, you can derive all these algorithms. It gives you a way to loosely connect all of the learning algorithm through this ba Bayesian learning rule. Somehow you can convert these learning algorithms to uh a step off a kind of a base rule. You can figure out what model you're doing Bayesian inference on that uh is equivalent to taking a step of gradient descent, R_E_M_S_ prop. Something of
of that sort, okay. So this basically revealing the Bayesian nature of algorithms. You can also do this with Sam by the way, so we have an extension. The lots of things are on this and you uh once you start to see it then you you you see that it's not that hard to connect the non -Bayesian and the Bayesian world and you will learn to accept it, that Bayes is probably not that bad as you had been taught in your courses in your books.
Okay.
So if you're convinced with that then this I was convinced with that many years ago. And so I started looking into uh um Bayesian nature of adaptive algorithms. I've always been interested in continuous learning, sequential learning that was my background 20 years going back when I started in this field. And it's quite cool that these things become uh popular in 2016, 17 people started talking about continuous learning and lately people uh are doing uh model merging, federated learning is important.
Horton again, data attribution at this workshop, this conference seemed like
kind of exploded. It was not there last year that much. So things are coming back, so I'm very happy about this because we've been thinking about this for a while. Just wanted to start uh telling you about the Bayesian way to think about this with the simplest problem that I think it's quite exciting uh model merging. This is very popular in LLMs now. So what we actually do is that we have uh we have two data sets suppose, right, you have a
you have a pre -trained model trained on English, and then you want to train on Japanese, and then you want to train on perhaps French, right, and then you f so you fine-tune on those two uh data sets. You get theta one and theta two, and then you wanna merge them together uh uh uh quickly s so that you can um uh so that you can uh get to a model uh as close as possible as if you
uh trained on both Japanese and French. Okay? So that's the goal. Just theta one plus two is the joint training and theta one and theta two are separate training and you want to get to theta one plus two quickly from okay theta one and theta two, okay?
So the simplest strategy, and this is a quick adaptation, that you simply add the parameters of the two. Well, you do a little bit of subtraction, it's called task arithmetic, but I'm writing a simpler version here. You simply add the parameters and then people say, oh wow, it works great, you know. Why does it work that great? This is crazy. I can just add the parameters of like two separate training and then I can get closer to the joint training. So this is...
It's a very interesting case for me because it's quick adaptation. Why is this quick adaptation working well in certain cases? That's the question that I started to ask. And as a Bayesian, I start to think about it that somehow if the two tasks, two data examples, two data sets are very separate from each other is it my time already? Okay. Yes, yes. Thank you for the warning though, you know, wake up call.
Cool. So you have these two data sets and if they are completely independent from each other, then perhaps adding them would make sense, right? That's the kind of the notion. So if you think like this, in a Bayesian way you think about what do you gain when you merge the two things together? It's a very Bayesian thinking and I'm not writing it in a Bayesian way here. Usually you'll write this with KL divergence with information gain.
But I've written a very simple formula here, which is saying that if I add theta 1 and theta 2, if I can very easily get to the theta 1 plus 2, if it's not that far, that means that I gain very little from actually jointly training them. So just separate training would be sufficient.
Okay. So when this gap is small, then quick adaptation is possible. When this gap is large, then quick adaptation is not possible. So I'll try to ev give you an anal analysis with for alpha one, alpha two equals one. This is easy, but but you can see the full case in the in the paper. And instead of giving you the math, I just kinda try to give you um uh an animation. Basically what I'm showing you here is uh the two class uh logistic regression problem.
and a line drawn in the middle, and this is on just D_ one, just one data set. And if I add the D_ two on top of it, uh as D_ two uh goes away, far aw away from D_ one, you'll see that the theta one plus two start to become farther. So that's what this animation shows you. Essentially the shaded one is the second data set.
And you see that as you add the second data set to the first data set, the resultant model gets to be farther and farther. And what I'm trying to make you think about is that as the D2, the second data set, becomes very far, you start to see that at some decision boundary, it starts to interfere with the prediction of the first model.
Okay. And that's where some of the mismatches are happening. Like suddenly when your second data set is too far from your first data set, you have to rethink your predictions because your decision boundaries are going to change a lot. Okay. So the way to think about adaptation is like how much am I going to change. If it's too far, then I'm going to have to change my predictions.
It's theta _ one in this case. Okay? Uh I hope that that was clear. I'm not able to oh I can get my cursor here, but okay, okay, okay, okay. Okay. Alright, what what I wanted to show you is this uh this place here. Basically here the second data set is is quite far and you see that the theta one plus two has changed a lot and now it's interfering with the first data.

It's interfering with the first data set. It's the first data set has to the first model has to rethink its prediction. We call this gradient mismatch. Uh and in the paper we do uh lots of math to basically show how this appear uh arrives. And I will skip the math here and I'll just give you the final expression and then you can think about it. Uh so the main claim is that when you do this merging, it creates some kind of mismatch. It interferes.
uh with the knowledge in theta one and theta two and this can be rewritten as a gradient mismatch. Essentially you can show that this is equal to gradient mismatch. Uh and basically the first two terms there they are evaluated on the first data set. So it's the L_ one, which is evaluated on the first data set, and you're looking into how much the prediction of the old model, theta one, changed.
Okay? So the first model has to think how much my prediction are going to change if I merge with the second model. Then the second model also have to think how much their prediction is going to change on their data set when they merge with the first model. Okay? It's like two people talking to each other and when they communicate, maybe there's a mediator in between and they communicate through them and the mediator is trying to bring them into an agreement together. And the mismatch tells you exactly what the disagreement is.
Okay? If you actually go inside the gradients, you could see that gradients basically Jacobian times the prediction error for classification models, then it's actually about changing your prediction error.
So you're comparing your predictions with the other model and trying to see how much you have to change your predictions to come to an agreement with the other model. Okay? So it's written in this equation. It's not too simple to look at, but this is what I'm trying to say is this is a universal principle of how things happen. Whenever you have information distributed in time and space,
case, you have to communicate and come to an agreement. Okay, and this is a the point that I wanted to make. So once you know this, then you say oh well, can I actually minimise this disagreement, I should get a better method, right? So uh sorry, there's nothing Bayesian until so far, but you start to now kind of see that if you actually do a Taylor approximation of the mismatch, the Hessian comes into play.
And there is your simplest kind of uncertainty that comes from Laplace approximation, and it's sitting right there in the mismatches of the gradient.
You can do this for the for the both of those gradient mismatches, and now you can if you rearrange this, you will get a slightly different formula where instead of just adding the parameters, you're now weighing them with certain curvature information. So this is like a Hessian based merging and because you're reducing the mismatch now in this case, you expect the Hessian based merging to be better than the simple addition.
So that's kind of what the point is, that you look into the error and when you're just adding the parameter, from there you can go to a weighing case where somehow you're using quadratic surrogates.
Okay, and that's the kind of Bayesian connection. Maybe it becomes clear in one more slide. But first I wanted to show you the empirical result. Essentially you can do this on a real merging problem, and here x-axis shows you the gradient mismatch, and it correlates with the test error. So it basically shows you that if you reduce gradient mismatch, actually it reflects in the test error, and it correlates with this, right? So it's the principle.
is correct, at least for this data set.
Okay, so how do you extend these things with Bayesian ideas, so call it variational model merging. And essentially the Bayesian way to think about this, and it's much simpler to derive than doing that gradient mismatch, is that instead of adding these parameters, you should just simply be adding the natural parameters of distributions. Okay, so these Q lambdas that I showed you before, it was in Ivan's case, it was a Gaussian.
and basically lambda would be like inverse of the variance times the mean. Okay, so that's the Bayesian extension of it. You should do addition in the natural parameter space. It basically means that you should multiply the posterior distribution together. That's what this operation is.
Okay. So essentially from here if you choose the if you t t took a variational formulation and you optimized uh you know two models using I1 and you got two Gaussians, so suppose you you used a um identical var identity covariance, in that case you will recover task arithmetic which will just be then addition of the mean. Okay?
And if you use a full Gaussian, well, diagonal Gaussian suppose like in I1, then you'll get something that looks like this hessian-based method that I just showed you in the previous slide. Okay? Hess is the precision in this case. So, we're basically s saying that once you see the Bayesian nature, then you can change the posterior distribution's form and you can get more flexible model merging strategies. Where it's still in closed form, it's just a um addition
in a in a slightly different space, but uh it's still just a one step thing to do. So we use this idea to now do mixture of Gaussian, which is uh very non-linear kind of model merging formula that comes out of it when
I'm sorry, and we showed that uh actually you can use this kind of strategies to better estimate trade-offs between uh between different tasks. So if you use um uh sorry I'm not gonna go into detail in in this, but if you use uh t uh task aromatic and try to uh estimate the pareto front of a three um uh of t three data set problem, three task problem, then it doesn't do very well, but if you did mixture of Gaussian,
then it starts to get the shapes right. It starts to get the interference between these different tasks much, you know, much more accurately. Okay. Sorry for rushing through, but the talk is very short, so I have to make my way to other types of adaptation tasks. Okay.
Okay, uh in the job market, Siddharth. So, okay, I thought that I rem removed this file, uh this this this uh this slide, but okay, it's still there. Alright. So I wanted to show some work on continual learning uh where uh so did I tell you that Siddharth is in job market? Okay, I did. Okay. So so this uh an an example of continual learning. Here you're not doing this kind of merging, one-off merging, but you're going uh
sequentially so you get first data and then you update your parameter then you get your second data and then you you you merge it to the first parameter okay so you continue doing this and in this case you have to think sequentially but you can write very similar formula here as well so like now you you have theta 1 plus 2 will interfere with theta 1 because that was the old model and the first two terms here show you the gradients
mismatch. And basically this is something we showed before doing the model merging thing which was hard to communicate and I think people are not that excited about continual learning at the time so this work was not noticed but essentially what you can show that many methods from like 2000 to the last 20 years in many fields they're all actually doing this kind of gradient mismatch.
business they're all trying to reduce this gradient mismatch using different different kind of strategies so this is quite cool and I think I have like a minute left or okay five minutes okay
Good. So basically, we use this kind of idea in that early days to think about, like, we want to somehow minimize the gradient mismatch to the old task, then we should try to pick certain points where the mismatches are going to happen. So start to think about sensitivity of your classifier. And these are the points that are close to the decision boundary. And so why don't I just simply store those points?
And then I try to when I get my second task, I try to make sure that the mismatch in the first uh first task uh is is uh is not too high. Okay? So you can keep doing this. We call this uh functional regularisation with uh memorable past. It was a frump. It was very fancy name, but uh but essentially it's trying to actually minimise the gradient mismatch.
By using some uh uh uh examples from the past. And this helps you to uh reduce uh forgetting in continual learning. We have a result on this in ImageNet where you can show that if you did this kind of thing, then uh you can actually bet uh
Get quite close to the bat solution. So here the bat solution is in orange and the red line is something that you want to look for. Essentially red line tries to combine existing methods, EWC, functional regularization and replay by thinking about what kind of gradient mismatches they are holding. Sorry, there are.
um they're taken care of okay so like ewc is a fixed thing which minimizes some reduces some kind of gradient mismatch

Some reduces some kind of gradient mismatch, but then functional regularization and replay, they're memory-based method. They minimize a different kind of mismatch. So you can put these things together such that you get the more out of your stored parameters and the memory. So here you can get close to like almost 10% accuracy. So the batches I think 87 and you can get 78%.
8% by just using 7% of the old data set.
We have also extended this to ADMM. This is actually this like federated learning. This paper was published here. And there are lots of like nice connection to base. The algorithms that you would not expect to be connected to, you know, non-Bayesian algorithms, they show up. Somehow the dual variable that we use in constrained optimization, they show up through
uh site parameters of your approximate posterior and we've actually known this for a while so we
We have a grand and a project on something we call bass duality. I'll show you something very soon. But it's very exciting to see that Bayesian and the non-Bayesian world, they're actually quite connected to each other and we shouldn't be ignoring these things. Okay. So I don't have time to go into influence function and all, but we've also done some work on memory and maybe this first citation here, the memory perturbation.
equation that you may want to look at. It basically takes the existing influence function calculation which is something like this and then it basically just replace this parameter theta by the natural parameter and the gradients by the natural gradient.
And by that simple change you can actually generalize all sorts of things. Like you can actually recover the method, influence function method that was proposed in the seventies to the new methods that people are proposing uh based on gradients and the Hessian to the day. Okay, it's a it's all same business by the way. Change the posterior approximation, you start recovering different things.
and you can kind of do it during iteration. So I don't have time to show these cool things and I had some quizzes for you but I'm going to
Which class is this? This is the most influential point. And you'll think that it's shark, which is correct, but none of these things are sharks apparently. This is a truck. It's not a shark. Okay. Okay, good. Let me close with this. Okay, so yeah, basically I showed you some Bayesian principles for quick adaptation that could lead to low-cost AI systems. I showed you Bayesian nature of learning algorithms. You don't have to be ashamed of being Bayesian. Don't
don't call yourself probabilistic. You could call yourself Bayesian. It's okay. It's not that bad, okay? And you could do, you could train large models with this. It's not impossible. And you should be proud of being Bayesian because lots of adaptive stuff, they're all, it has to be somehow related to Bayes' rule. That's my belief and I stand by this. So we have this nice project, Bayes' duality project with lots of people where we are developing.
These adaptive systems will have a workshop in Tokyo in June, if you want to come to that, please shoot me an email. And this is the group, and I thank my collaborator and thank the organizers for inviting me. Uh so we can we can take like a couple of questions if people have questions I can pass on the mic.
Everything's clear, so not nothing to ask, I mean I it makes sense. Hello, I just have a quick question about the modal merging. When you say about uh an gradient mismatch and the you and try to and combine to uh uh
Two probabilities, right? I guess the underlying uh theta uh lives in some uh represents a probability distribution.
I see that one represents a probability distribution and so when you try to uh compute the mean of two probability distributions, uh why it makes sense to compute the average in the parameter space uh but not like uh Wasserstein uh Wasserstein like uh mean, you know you know what I say? Yeah, I know. Um yeah, I mean this is you could do other merging things, right? So
So Bayes is based on KL. So everything is Bregman divergence for KL, right? And it doesn't have an opinion on what, you know, if you want to go beyond this and there are people, many people in Bayes, they do like alpha divergence. I think Ying Zheng is sitting somewhere. So you can choose different divergence function, but it's kind of going beyond Bayes then.
Right, and I'm just a Bayesian. So so I'm just trying to show that this uh using Breckman geometry is useful, but uh I I think if you change it and go to other spaces, that that should also be fine. So what do you do is equivalent to the Q_R divergence. This I is all see. K_L_ I see also. So it's like exponential families. So whenever you use K_L_ if you take the derivative, set it to zero of the objective, you'll get exponential operators.
And so then it becomes exponential family. It's like maximum entropy principle. So these, you'll get distributions like Gaussians, right? And then when you multiply Gaussians, you add their parameters. That's kind of what I'm showing. So if you did some other geometry, the operation is different, right? But it's still additive and my belief is that it's still additive in some space, which is the beauty of all of these things. But
If you go away from Kale, it's almost impossible to write a simple formula like this. Okay, so this is a this is why I stick to this, because this helps me to connect to deep learning folks.
I guess if you don't have any other questions, we have a coffee break just when we started. But if you didn't have breakfast, you can now go out to get breakfast and we will start again at 10 for the spotlight talks. So let's thank the speaker.

I'll see you next time.
If people could start taking a seat, we're going to get started very soon with the oral presentations.
in your title. So you don't have to do it. So I think we're gonna get started. We have for the first um oral talk, we have under-damped diffusion bridges with applications to sampling where Dennis, Julius and Lawrence will present. Thank you. Hi everyone. So I don't think I need to motivate it a lot for this audience, but our task is to sample from complex distributions that can be high-dimensional and multi-modal, and we denote them by P_ target.
And typically in generative modelling these distributions are given by samples, can be images, text, audio. But there's the arguably even harder task where this distribution is given by a density, an unnormalised density. And this is very common in for instance molecular modelling, where you have Boltzmann distributions in lattice field theory, in Bayesian inference, all the tasks in reinforcement learning and recently has also shown to be connected to diffusion model fine-tuning.
And for most of this talk we will focus on the second part, so the sampling problem. But we will also show connection

problem, but we will also show connections to generative modelling and implications for this field. For the second part, so sampling problems, there's a classical mat m method which is over damped Langevin dynamics. So you take this un-normalised um density, you take the logarithm, the gradient and then you follow this S_D_E_ you simulate it and you can show that for S_ to infinity those so this st stationary density of this process is the target distribution.
However, we d also know that these conversions can potentially be exponentially slow, especially for multimodal targets. And so inspired by statistical physics, people have been developing underdamped Langevin dynamics. And this is a system of an O_D_E_ and an S_D_E_ It can also be viewed as one S_D_E_ where the diffusi or the noise or the diffusion coefficient in the first component is zero, and so it's a degenerate um noise.
And here we have this gradient of the lock target anomalized density in the second component. And so the second component is modelling the velocity and then we integrate this velocity to get uh the position X_ And you can again show that this stationary distribution is given by here a product measure of the target distribution and the Gaussian. So it can be used to solve the sampling task.
Um and one can also show that under certain regularity assumptions and for certain targets this smoothness of X_ so because we integrate Y_ X_ is smoother and it can lead to faster convergence.
However, we also know that for multimodal targets, this conversions can still be um slow, and so it cannot be used directly for many of the multimodal targets without waiting for a long time. And so the promise of diffusion-based sampling is to learn a control to accelerate this convergence and to reach conversions after a finite time instead of the um um S going to infinity. Um and the question, natural question is how can we learn this um control U_ and there has been a a lot of literature and the and the past years on doing
and doing that. But then also how can we generalise this literature to the underdemmed case where we have this degenerate um um diffusion coefficient.
All right, so let us answer these two questions now and kind of recap the the setting that by now many people are considering. So we have a forward and a re reverse time S_D_E_ The reverse time S_D_E_ starts in the target and runs backward with this backward Brownian motion here. And note that we have two different control functions U_ and V_ And the key idea is that we want to learn these two functions such that the processes are time reversals with respect to
respect to each other, which then by definition basically automatically implies that um the yeah, thanks, that the process at terminal time is distributed according to the prescribed target.
So how do we do this? We want to use the PAF space perspective. So we consider PAF space measures, P_U_ and P_V_ time reversed. And the very simple idea is that we want to minimise the divergence between these two PAF space measures in the functions U_ and V_ simultaneously. Because if this divergence is zero, then clearly we have time reversal and have solved our sampling task. And this is illustrated
The picture here on the left-hand side, so this is basically before optimisation. So the trajectory is just run and and up somewhere. But after optimisation we want that the the measures agree, so in some sense the trajectories uh agree. And there you also see a little bit that we have infinitely many solutions in this problem, which is kind of hinted at these um like transparent curves here um but we accept this uh non-uniqueness for now.
So how do we actually compute um the corresponding divergences? Well the idea is to rely on likelihood ratios and path space and um these are the two S_D_E_s from before. And also by now m more or less standard is t um the idea to yeah compute this Radon-Nikodym derivative of the forward and backward uh path space measures and I mean you don't have to understand the formula now in detail, but the
The key observation is that this formula is explicit in the functions u and v, it contains some deterministic and some stochastic integrals, also having background integrations, but this can be readily implemented on the computer, and this is the yeah, this is the key observation. And so what we did in the paper is that we extended this framework to the degenerate case. So as Julius j just said, this diffusion matrix
Ita um in our case can be degenerate. So really think of a matrix that has a bunch of zeros in the in the first rows such that we cannot invert it anymore.
And this also then yeah leave leads to slightly different uh slightly different formula. So the first observation is that we can basically uh yeah run all the all the computations, but we need to be be a little bit careful and we have this eta plus appearing here, which is the pseudo inverse of eta. And so now with this um degenerate case we can incorporate under-damped um
Large one dynamics, so I just quickly wrote down here how one does it. So one takes uh for this process Z, um basically just a combination of this X and Y. We had uh at the beginning one chooses a particular function F and then we can incorporate um the large one the underdamped large one dynamics. I briefly want to mention that one can also derive this um heterodyne demodulate with P_D_E_ arguments. But then one gets a formula where um as can be seen here, um the divergence appears and
s and no backward um integrations.
So with these um observations we can um we have applications for generative modelling. So first of all we can readily derive the elbow um for under-damped diffusion bridges. Uh so where we basically have data but no density. Uh one has basically an extension of this uh likelihood Schrödinger bridge work by Chen et al to the under-damped uh cases. So we didn't run any experiments yet, but I think this also might be interesting.
Um and when readily gets the square matching objective for under-damped diffuge diffusions, which was um presented by Dockhorn et al a couple of years ago.
it was uh sampling, however, um we can simply minimise this divergence in the functions U and V_ by using um concrete divergences, for instance, the Kullback-Leibler divergence or the log variance divergence, which then um yeah relies on trajectories. And this then incorporates um already existing under-damped samplers as special cases such as UHA, L_D_V_I_ M_C_D_ D_D_S_ or C_M_C_D_
But we can also readily get under-damped versions of other existing samplers, such as P_I_S_ D_I_S_ G_ Flow Nets or other general bridge sampler. Um and so the last uh part of this talk we want to focus on how we can use this framework in practice. Um and so for that we have to discretize time and also um develop an integrator.
And so in the other DAP case, you can make use of splitting methods, meaning that we split our S_T_E_ in different parts, integrate them separately, and then merge them back together. Um and so here we can look at the performance plot where we see the effect of sample size averaged over eight different experiments. And we l we look at different integration schemes. So for example the ODE na Romer discretisation um in the ODE case, which is the blue bar.
Um then in the other then case which is the orange bar and then we have three different splitting um methods. And we can see that the splitting methods are really integral in getting good performance with these other than diffusion um assemblies. Um
And another practical consideration is type of parameter tuning. And the variation formulation that we use allows us to uh optimise quantities that are usually treated as type of parameters and end to end when minimising these divergences on on paths basis. And Mm-hmm. this would for example include diffusion coefficients, um the mass matrix, um the terminal time, um or even the parameters of the prior or the base distribution.
Oh, sorry. Um and so the cool thing is that we don't have to do any hyper-parameter tuning. And in fact, for the results in the paper we didn't have to do any any kind of tuning. Um
And so lastly to some numerical examples. So here we look at three different experiments, but we have more in the paper. Um but so one of the observations is that if we use um under-damping we can virtually improve all of the samples. And and so here we look at five different methods um in the over-damped and in the under-damped case. So over-damped is um dashed lines and under-damped are just uh the normal lines.
And we can see that in particular the diffusion bridges um where we learned uh the forward and the backward control uh we get uh very good performances, basically state of the art performance um without any hyper-parameter tuning um across all the targets and all the metrics. And this would be the orange curve in this spot here. Um
And so lastly one very surprising fact is also that uh we can achieve very good performances with as little as eight discretisation steps. So here for example we can see for the orange curves that um on the left side we have only eight discretisation steps, um and the performances is very good um which um allows us to have a lot less target evaluations in practice and also we have um a lot faster training.
And with that, that concludes our talk. I thank you for your attention. And if you have any questions, feel free to approach us in the postal session. Thanks. So next we have Aaron presenting Adjoint Sampling.
that's set up. And yeah, for all the uh all presentations, uh for questions just um go to um their posters.

Excuse me. The side notes on this, the presents. I'm not the last person for his keynote.
Hello, hi. My name is Aaron Havens and I'm a PhD student from University of Illinois. Today I'm going to talk about a work called adjuvant sampling where we create highly scalable approaches for learning diffusion samplers directly from energy functions. So this was a collaborative work done during a PhD internship at Meta along with several people from bare chemistry.
who really helped us understand the chemistry, downstream chemistry applications of our work. So core contributors are all marked there. So like in many talks today, we were interested in doing sampling from unnormalized densities. Applications can be seen in computational chemistry, optimization, Bayesian inference.
Um, so yeah, clearly MCMC methods are well established and there's many, uh, like out of the box methods for accomplishing, uh, sampling from these densities. However, uh, they have oftentimes have long mixing times and resampling is typically very energy intensive, which is perfectly fine for classical energy functions.
However, these energy functions are oftentimes heuristic and require some empirical tuning. So the same time energy functions themselves are evolving and are necessary for capturing more accurate interactions in complex systems, namely we have DFT based
uh calculators based on quantum chemistry and we have recent works where we try to learn surrogates of these models such as meshof and escn these methods are highly generalizable are general and transferable predicting force fields across like various different organic molecules and materials however their complexity presents a lot of challenges for sampling
and but these models are highly oops sorry these methods are going to be really important for downstream tasks like drug discovery material design where your energy function is far away from a classical energy function where you have not only you want to find a stable configuration but like something that adheres to
binding affinity and selectivity such as carbon capture materials. So similar to the previous talks, delineation of current approaches, data-driven approaches for generative modeling are more or less ubiquitous these days, such as score matching, flow matching. But the analog for sampling from pure energies or unnormalized density
is still developing. So current approaches are either very simulation intensive, querying the generative model itself many times, or very energy evaluation intensive, such as this recent state-of-the-art method IDM, which requires a Monte Carlo estimate of the score target.
In this talk, we want to push two things. We want to propose a scalable method for conditional diffusion sampling, and we want to propose a new benchmark beyond these classical energy functions, which will hopefully make direct impacts in computational chemistry for future sampling works. So as opposed to asymptotic samplers like Langevin STs.
And similar to diffusion-based approaches, we aim to construct a sampler in the form of a drift function which samples the target distribution at time one. So although we don't have any data, nothing can stop us from writing down a path measure target which happens to have a time one marginal which is the target distribution. And this is not a new construction, this is originally
observed and Tenzin and Bruginski 2019 and it's been used in several other sampling frameworks already. But the point is we can take this constructed target and we can try to minimize the path KL which if you minimize this loss function you will end up also matching the time one marginal.
And it turns out that this loss can be optimized since the normalization constant doesn't change the solution to this optimal control problem. And so we can directly optimize it. So standard approaches for solving this problem through the view of like stochastic optimal control solvers.
Namely, path integral sampler involves using a forward simulation and backpropagating through it directly. However, this is very simulation intensive. A recent approach called adjoint matching simplifies this drastically by removing the need for backpropagation and formulating a pure regression loss.
Still, this is not ideal because it requires a full trajectory simulation for every loss evaluation. So because of this, we need to refine the agent matching objective, and we can actually use the form of the optimal distribution, the joint distribution of the directories, and we can see this as a necessary condition for optimization problem.
So if we just plug this necessary condition into our problem during training, even though we're not necessarily at the optimal solution, we can make sampling trajectories much more efficient by sampling conditionally independently based on the time one samples. And this is going to allow us to reuse simulated trajectories. And we can do this because our base distribution, this posterior distribution is actually known in analytical form.
So we can easily do this backwards sampling using the base distribution. So taking this idea that we are calling reciprocal process sampling, we can, and combining with this viewpoint that you can equivalently optimize the adjoint matching loss under joint pairs rather than trajectories just by exchanging integrals.
We come up with a new loss, which is seen as a specialization over adjoint matching, which can sample trajectories independently outside of the simulated trajectories. And most importantly, it will preserve the optimal solution as a fixed point. So it's not exactly the same objective as the original KL, but...
As far as optimization is concerned, you can still solve the sampling problem by finding the optimal solution. So with these changes to the loss, we can actually drastically boost training efficiency and practice by reusing these final states and energy evaluations by just maintaining a buffer very similar to IDM.
And this is what we're calling adjuvant sampling. So first in the outer loop, we collect samples from the controlled distribution, evaluate the energies, store them in a buffer, and then in inner loop we're going to optimize the reciprocal adjuvant matching objective. And the key thing here is that no further stimulation or energy evaluations are needed. This is going to enable us to sample from highly complex energy distributions.
being able to reuse these this these evaluations and not much needs to be said here but if we use equivariant networks we basically get a lot of symmetries and energy invariance for free and we allow allows us to condition on atomic species and connectivities and it's going to allow us to make our model transferable and

make our model transferable and amortize across many systems just like these energy foundation models are capable of doing. So as a sanity check, we evaluate adjuvant sampling first on some synthetic energies where we have ground truth MCMC samples such as double well and Leonard Jones potentials and these potentials are really relevant to previous work.
And we see that we see improvements on the Wattsine 2 metric over say the art methods proposed recently. And we most importantly we do this, we get these state of the art results with a fraction of the energy evaluations. So
Because we have this really efficient algorithm, we want to really test the scalability and generalization of adjacent sampling. And so we want to propose a new amortized conformer sampling benchmark, which makes use of the state -of-the-art neural energy models that are trained from DFT calculations. So the data set will be given as...
Only smile string specifications, which describes the molecular graph and not the conformer coordinates from a SPICE data set, and the sampler is going to learn to generate low energy 3D atomic coordinates for thousands of molecules with a single model. And these molecules are composed of the 50 atoms and 10 rotatable bonds.
So just to wrap up, we evaluate adjoint sampling and we get higher precision and recall over RDKIT, which is a standard off -the-shelf geometry optimizer. And we specifically see adjoint sampling performance over RDKIT for atoms with a very high number of table bonds.
And this is, this emphasizes where classical force fields struggle to capture these complex interactions and where these new energy models are succeeding. So in summary, we've proposed a new algorithm and we have also proposed a new benchmark which we hope will drive progress in scale with your modeling and computational chemistry. Thank you.
The posteriors in neural networks. Is this good? Perfect. Alright, um hi everyone. Uh it's an honour to be here today, and not only for the two of us, but also David our co co-author is in the audience. And today we would like to share our perspective, our findings on the approximate
a posterior that is induced via sampling-based inference. And recent advances advances in sampling-based inference, for instance these two papers from our group, they show superior performance over optimisation-based approximate inference methods. And work like microcanonical Langevin ensembles actually renders these methods actually feasible with comparable run times to optimisation techniques.
So, concurrently, however, there's another line of research that not is only about the core sampling techniques, but actually studies the symmetries in Bayesian networks. And this line of research uh suggests that actually symmetries impede sampling performance. So just to recap shortly, when talking about symmetries we talk about different parameter states of a neural network that yield the same functional output. And coming back to approximate Bayesian inference.
The research community, as you can see here by three out of these four exemplary papers, has uh put its its attention on optimization-based inference and in combination with symmetries. But all of these works have one thing in common, they basically claim one thing, symmetries need to be accounted for if you want to have good performance downstream.
And but first, uh we ask ourselves why does sample-based inference without explicitly treating uh the symmetries then work so well in these recent works. And to answer the question first we want to take one step back and actually challenge one common perspective on the problem of symmetries in Bayesian neural networks.
As an example, uh we look at uh one small M_L_P_ that was exac exactly analysed in one of these aforementioned papers. And uh in the plot you can see a bivariate margin um marginal empirical density of uh two network weights, and we display the empirical density for eight million posterior samples from eight thousand independently trained chains. And you can see quite uh a distinct pattern. So you can see these uh distinct symmetries where the mass of the
half of the posterior concentrates, which basically are high likelihood regions.
And given this viewpoint, uh it's very natural to assume that uh the computation of uh this posterior is very redundant and expensive. Um but what I didn't tell you so far is that uh this is actually a pretty under parameterised neural network, which you wouldn't see in the wild. And if you now switch from the under parameterised reg regime to the over parameterised uh regime with more parameters, you actually consider an architecture now on the right
that is actually you could see in a practical application. And uh this is again the same setting, eight million poseur samples, same sampler um but now the over-parametrized architecture and clearly the two plots differ quite quite a bit. Uh while on the left in the under-parametrized setting there's no you can s d do don't see a visible influence of the isotropic Gaussian prior that we used.
And the over-parametrized setting, on the right, the plot perfectly adheres uh to the smooth unimodal prior that was um put there and there is no sh uh no sign of these complex symmetries that you can clearly see on the left side. So moving from uh the under-parametrized to the over-parametrized regime actually leads also provably to a higher prior influence, uh and in combination with a sufficiently high model capacity,
the parameters of the model are actually able to align with the prior. But I should note not in the dependent structure but actually in the margins. So in high dimensions beyond this marginal viewpoint everything naturally becomes more complex, but also as we kind of heard uh in the same note before, um we conjecture also that with increased price moving the posterior landscape is actually easier to navigate also in high dimensions. And um
Well, given these insights, basically we questioned uh how should we then treat symmetries during inference time and with that I will hand it over to Julius.
Uh so thank you Emmanuel. So given that we are in this over-parametrised setting, we want to consider both the parameter space as well as the function space. And in parameter space we expect no entrapment in symmetry manifolds as symmetric mechanisms that govern our MCMC sampler dynamics are very similar to the ones that we would encounter for instance in the stochastic optimization literature.
uh what is actually important to us though is how this materializes in function space. So is there evidence that neural networks symmetries impede the diversity of models that are provided to us by the sampler? And to that end we run a range of experiments, two of which we want to show you here today. So on this plot uh you can see on the X_ and Y_ axis we have placed fifty different parameter posterior samples that are recovered by our uh sampler from one sampler chain. And we want to measure the function diversity between the models that are in
are induced by these parameter pairs, where blue indicates functionally significantly diverse models, and orange indicates model pairs that are functionally very similar to each other. And as you can see, there's lots of blue in this plot, not so much orange, uh which tells us that we can basically um uh get functionally diverse models from our posterior in almost every step of the sampler. Um and now we also uh ran an experiment looking into the discrete counterpart of the the symmetry, namely a permutation symmetry in this case.
And the experimental setup in this case is that we start different sampler chains from pre-muted yet functionally equivalent positions in parameter space. And the blue lines
Um, R is the uncertainty quantification performance of the individual sampler chains, while the red line shows us the um Bayesian model average uh uncertainty quantification performance across these individual chains. And as you can see, the blue lines um take different paths through parameter space, and the Bayesian model average is also able to boost performance across ab above these individual sampler chains, which in essence means that we are still recover to uh
Uh gets functional adverse paths even though we started at symmetric starting positions and all sampler chains are able to escape this distribution type of symmetry. So the take away from these two experiments and also our paper as a whole is that symmetries do not seem to hinder a sampling based inference in practical settings.
But this only holds true if we consider two very important key ingredients that we also mentioned in our paper. The first one is the use of warm starts. And as warm starts we denote pre-trained initializations. Think for instance the parameter vector of a D-Ball sampler that we use to initialize the dependency structure in our parameters for our posterior sampling algorithm. And this also using warm starts also leads to a high initial likelihood which is then retained throughout sampling due to
due to the autocorrelation in the individual chains.

for auto-correlation in the individual chains. The second ingredient that we make use of and that we uh highly advocate for is the use of an ensemble over sampled sampular chains, which uh is very um relevant in this case because to the high pr dimensional parameter space that we uh navigate with our samplers, we require both exploration as well as local exploitation to capture well-fitting hypotheses. And the question that not actually arises is, okay, uh how many ensemble members do we actually need for a practically feasible uncertainty
urgency verification performance and is this computationally feasible?
And we investigate this empirically on a range of tasks and the pattern that emerges always looks very similar to this one here. So you can see on the y-axis the uncertainty quantification performance and as we add more and more chains to our Bayesian model average on the x-axis you can see that the uncertainty quantification performance saturates quite quickly and in this case only adding 10 to 12 chains to our Bayesian model average already yields uncertainty quantification performance that is almost on par.
is on par with an ensemble that consists of ten thousand chains in this case. Um and to demonstrate that this recipe is actually working, we brought a benchmark where you can see that uh our method, which is uh the green one, uh outperforms uh approximate Bayesian comparative methods like zeta plus approximation, mean-field variational inference, and a deep ensemble with ten members both in terms of uh predictive accuracy as well as uncertainty quantification performance.
And with that, I want to wrap up the talk. So we've seen that over-parameterisation considerably changes the perspective of sampling-based inference in Bayesian neural networks, where we see a smooth posterior, which could also be the reason for empirical superiority of sampling-based inference, as the moderator already mentioned. The symmetries are, however, still present.
And if you're worried about symmetries, we would reply to you that we can uh we can recover functional diversity in these multi-modal posterior landscapes flexibly with a well initialised and a moderate-sized ensemble of sampler chains.
And lastly we want to conclude this talk with an invitation to you all to maybe also reconsider sampling-based inference uh for deep learning applications, because due to uh recent advancements in uh software and parallelisation it is now much more feasible and efficient than it uh once was, um and yeah, we're looking we are looking forward to taking questions at our poster, and we thank you for your attention.
much so next we have Grant thank you so Grant is an assistant prof of chemistry at Stanford and he will be talking about efficient variational inference with generative models
Good, okay. Yeah, I gave myself a sufficiently general title that I could talk about whatever I wanted, and I am in fact going to do that. Okay, so I'm going to tell you a little bit about how I've been thinking about denoising models from the perspective of non-equilibrium physics. So I have a lot in common with other things that we've already seen today, and also I'm not sure that there's anything really, you know.
foundational or new here. It's just a nice perspective on it from problems that have been in physics for a long time. Okay, so this is maybe the one thing that looks a little bit like variational inference. So across many problems, you know, our goal is to sample from some posterior or some target density, and we're trying to make variational approximations of that with some sort of parametric model.
And, you know, most of the time in problems that are relevant to physics and chemistry, which is what I work on, I'm a domain scientist as well. And we often don't have, you know, substantial data about this probability distribution, we might have a few confirmations from some sort of experimental or let's say DFT calculation. But usually we'll have access to reasonable likelihood models. So, you know, MD force fields get a somewhat bad rap in the machine learning community.
in community but they're actually extremely useful and we use them extremely heavily to to sample and to understand biophysical systems and the same goes for density functional theory and other approximate quantum mechanical methods these are things that are widely used because of their practical utility
However, you know, when we look at something like a protein, the free energy landscape can be complex, multimodal, and the transitions between the various states can have timescales that are far too long for molecular dynamic simulation or some other explicit method. And I'm just indicating here in the stars that the different metastable states in this protein that I'll talk about a small amount later, which involves the experimental structure, which you can see in this low dimensional.
projection in the top left and then a meta stable intermediate that would not be resolved in an experiment and the unfolded state which would also not be resolved in an experiment and so these are things that you know we don't have large-scale data available to train on so
Let's take a step back and think about, you know, how do we actually build models of these types of systems and how do we do any sort of principled sampling using generative models. So over the last, let's say, five years, a Markovian parameterization of generative models has emerged as kind of the dominant paradigm. So that's something that applies to diffusions, to flows, to discrete diffusions. And the setup that I'm going to walk you through is basically thinking...
thinking about the relationship between this Markovian parameterization and non-equilibrium control problems. So the Markovian parameterization gives us an enormous amount of flexibility over what the specific generator we use for the system's dynamics actually is. So typically what people will use in practice are, you know, Ornstein-Uhlenbeck processes that converge to a Gaussian, random unmasking and discrete diffusions that make your distribution uniform.
or things of that nature. However, this also would work for levee processes and other things that involve much more complex stochastic dynamics or geometric Brownian motion. And that's something that's really underexplored from both the theoretical and practical point of view. So in general, we can construct the time reversal of a Markovian generator in a relatively straightforward way. And in fact, it's a perturbation of the time forward generator.
And so that's what this somewhat complicated equation is showing you. So this is just looking at the generator and the instantaneous probability density P. So that instantaneous probability density is obviously the object that we don't typically know. But you can express the time reversal of this generator in terms of its adjoint and a particular function of its adjoint, which is called a carré-du-champ. So this operator you should view as a perturbation of the generator.
of the forward time adjoint generator that gives you access to the time reversal.
So immediately this tells you explicitly how to construct the time reversal of a Markov process. However, you need this instantaneous probability density. And of course, there are strategies that are that are widely used now for avoiding the time dependent density. And these usually involve using ratios of densities in the forward and reverse time. So this equation is just rewriting this now within a proc.
approximate operator k that's playing the role of the time reversal and phi here you can think of as an approximation using a neural network of the instantaneous density
So we can put this all together into really a unified framework for thinking about diffusions, discrete diffusions, thinking about Markov jump models and Levy flights and this kind of messy and complicated but interesting figure that shows you the relation between all of these things. And so the basic perspective is that you have a data distribution. This is closely related, I should say. I think I...
I accidentally maybe deleted the citations to Peter and Arnaud. So there's a denoising Markov model paper by Arnaud and Joe Benton, and Peter has a recent paper on generator matching that has a lot of similar ideas in it.
So the basic perspective here is that we're given samples, we noise them, right? And we would like to reverse that. And we can view through arguments that are gone to in quite a lot of detail in the paper, we can view all of the optimization that we do in any of these contexts, be it score matching or some other procedure, as minimization of a path Y scale. And so what we show is that this objective controls all.
solves all of the other objectives. And you can express all of this in a sort of unified framework, which means that in principle you can mix all of these different types of dynamics together into a single Markov process. So you can have continuous diffusion, discrete diffusion and levy flights all working together.
So one important realization from this framework is that rather than viewing this simply as time reversal, we can actually view this more like a non-equilibrium control. And that's how you should think about this complicated operator gamma. It is essentially a controller that is driving the dynamics in a particular way. And that's a problem that has a long history in non-equilibrium physics, one that people have been working on for decades.
kids now and there's a lot of know-how about how to do this and how to sample within these control frameworks so so just to give you sort of one formulation of it

formulation of it. In the non-equilibrium physics literature, there's a large focus on dupe transforms as a way to compute expectations of quantities that are statistically, that are dominated by statistically rare events. So one of my collaborators, Ugo Touchette, who's a physicist, has worked heavily on articulating and formalizing this framework of using the dupe H transform for path.
path measures. And in this very nice paper from 2015, they sort of lay out how you would express the dube H transform for this sort of time reversal process or for any sort of general perturbation F in terms of random nicodem derivative. So these are objects that you've seen and I think many of you are familiar with.
So, you know, there's some path measure that is perturbed and you want to reweight it relative to the original path measure. And then in the problem of, you know, building a Markov, a denoising Markov model, essentially all that you're trying to do is minimize, you know, the expectation of a KL, for example.
expectation of the log ratio of these path measures. So that's something, you know, immediately that makes this connection to control because we generally are viewing the H transform as a controller. It's a way of realizing a particular event that might not be statistically likely. So the connection to physics here is that when you have this forward process that is denoising or that is noising the dynamics of the
mix of the of the system the time reversal is something that is incredibly statistically rare under the forward dynamics and the conditioning that you're doing is adding a sort of force to push the system back towards the original data distribution so so one one sort of nice thing again about viewing all of the the different losses through this this KL is that you get a unified error analysis based on on this sort of
objective, which allows you to systematically identify a bound on the error for sampling, that decomposes nicely into kind of intuitive errors that you see in these models. So one is the truncation error that arises from not noising perfectly to the target distribution. One is an estimation error that comes from exactly the dupe transform.
And then finally, if you're into discretization errors, then you can add the discretization error as well. This is something that is usually dominated by other aspects of our inability to estimate score functions as accurately as we would need in order to see the side effects of very good integrators.
So this is something, you know, that sort of puts all of this in the language of H-transformations and of large deviations. And so I want to walk you through, you know, how we've thought about this in the context of large deviation theory for non-equilibrium systems and maybe make the connection to sampling a little bit more clear. So for a long time in the physics literature, we've been interested in this question of, you know, how do we compute.
these objects which are called scaled cumulant generating functions the scaled part is just that we divide them by time because we're taking a limit as t goes to infinity so the setup here is that we're going to start with a diffusion process
And that diffusion process is not going to have a Boltzmann equilibrium distribution. So B is going to be some sort of vector field that is not the gradient of a conservative potential, right? So this is not a conservative vector field. And that means that there's dissipation in the system. So just to show you one of these particle systems that's kind of interesting. So this is a system of chiral active particles. These are dissipative particles that undergo dynamics and have this sort of
sort of phase separation. And there are many questions about the nature of these phase transitions, how they arise, and what the energetic signatures of those transitions are. And one of the things that the general non-equilibrium physics community has focused a lot on is understanding fluctuations in observables that depend on path measures, so time additive observables. So in this context,
Next, we're going to define this general class of observables A, which consists of a density -like part, so something that you just integrate along the trajectory. So this could be an instantaneous snapshot of the system you accumulate over the trajectory in time at rigid. And the other involves a Stratonovich product with the SD itself, and you should view as like a current-like observable. So this is something that would tell us about currents through the system or...
Quantities like entropy production tell you about the deviation from time reversal. So the entropy production is exactly how much of the dynamics is deviating from its expected time reversal.
So when we have a setup like this, because these observables are time additive, we can write a sort of scaling form for, so you can view this as like a free energy, a non-equilibrium free energy. So the log of an expectation of E to a biasing parameter times the total time times this observable A. So this has a large deviation form, meaning that
that you can write this asymptotically as e to the minus t times some rate function and that rate function tells you about the asymptotic statistics the statistical fluctuations but of course just like many of you probably know from trying to use Jarzynski estimators these types of expectations which involve e to you know something are extremely difficult to converge they are dominated by rare events
So if, you know, one value of A is anomalously high for a given lambda, those rare events are going to dominate the expectation, but you won't necessarily sample them under the normal dynamics of X. So this puts you in a bit of a complicated situation because the only thing that you know naively how to do is integrate this equation of motion. And these particle systems that we're typically working with are...
with are quite large. I mean, if you had told me 10 years ago that we would be benchmarking on Leonard Jones 55, I would have laughed at you. I mean, this is like, you know, the systems that we're currently studying right now from the generative sampling perspective are so small in comparison to the ones that we typically encounter in physics that methods that try directly to estimate the density are not going to work. So we need to formulate this in a way where we can actually run the dynamics and
and potentially perturb it in a way that we can actually compute these expectations.
So, one option here is to formulate this as a stochastic optimal control problem and try to determine an optimal control force that will do important sampling on this objective. So, remember, this is the object that we want to compute, psi, and we need to sample events that are statistically rare under the distribution of x. And so, what we do is essentially important sample, right? We're going to...
going to reweigh this expectation with a path measure, and it turns out that there is an optimal path measure that in principle one could construct. So if we were to be able to construct a path measure that gives the weight of each trajectory as e to the lambda t, a t, divided by the expectation of that quantity, then every single sample would give us after reweighing this expectation exactly the expectation that we want. This is, of course, a kind of
kind of trivial construction because we can't typically do this right we don't know the answer already but if we could put in the answer there would be an optimal controller and so this is just a statement that you know an optimal control force exists you could in principle build it but the nice thing that you can do with this realization is you can build a variational objective so so the variational principle here just says that if we now view the expectation under the controlled process process
and just do a supremum over this quantity, right? So something that involves the expectation of the quantity that we're interested in and KL divergence between the two path measures, then this controlled process will not only realize the rare event, it will actually, the loss function in some sense, this variational value will be equal to the scaled cumulant generating function that you're trying to...
trying to compute. So you get the information about this asymptotic probability distribution directly from the loss, but you also get the control force which you can apply to the dynamics and then realize these rare events directly.
So as I was saying, you get two things simultaneously. By doing an online minimization of the controller, you can actually build a representation that allows you to control the dynamics, to realize different types of rare event. And there's no a priori data here. It's just simulation-based rollout of the SDE. So there's one important caveat here, which is a little bit different from the cases that I think are hard from the equilibrium perspective.
perspective, which is that here the observables that we're interested in, especially current-like observables, they accumulate gradient information over short time scales. So you don't need to run extremely long time scales and then do an adjoint method to go backward in time over a huge trajectory, which would be both far too costly and also have far too high of a variance to be useful. So you can actually do a sort of simple strategy of
of backpropagating through the dynamics directly, or you can implement the adjoint method over sufficiently short time scales that everything works well. So this is a kind of nice thing because you can then go and compute for very large particle systems, entropy production rate functions, things that we don't have another way of accessing through.

don't have another way of accessing through, you know, an alternative paradigm. And this also works equally well for discrete models. So this is something that we can do for processes where this is more of a benchmark problem, the asymmetric exclusion process, because there you can actually calculate the rate function asymptotically exactly. And just as an aside, this is a sort of interesting way of
of building an equivalent objective for the discrete case, which is to use this idea from large deviation theory, which is called level 2.5 large deviations. So level 2.5 large deviations, as you might guess, it's between level two and level three large deviations. And it's essentially trying to construct a rate function for the joint empirical density and empirical currents. So
This intermediate thing is only useful because the expression that we have for the rate function is very explicit. And what you can do is you can contract this in a control process. So essentially like plug in a choice of what Q should be, which will be non-optimal. And you can turn that into a loss function through the supremum.
So, so then again, you get a very explicit loss function, which you can back propagate through exactly. And, and this works, right? And so, so we can perform it, we can do benchmarks against tensor networks in this case. So these systems are amenable to representations through matrix product states, because they have this sort of like low rank one dimensional structure. And that allows you to do essentially numerically exact.
exact calculations using density matrix renormalization group. And what we see is that when we do this control form, it's first of all much much easier than implementing DMRG which is kind of complicated algorithm, but secondly it gives very good accuracy on short time scales. So when we do controlled simulations over short times, we converge the value of the loss and you can sort of see that here. So if we look at, so this
This one -dimensional, okay, so let me just tell you a little bit about the setup here. So it's just hopping particles on a lattice. It's exclusion, meaning that if a lattice site is occupied, a particle can't hop into it. And the object that you would like to compute is essentially the asymptotic fluctuations in the current through the system. So it's initially sort of a model for traffic jams. So you can have these big fluctuations in the current where
Where the current slows because there's a buildup of particles and then evacuates rapidly.
So we want to know about these fluctuations, and when we do the optimization, what we obtain is a control force that realizes different types of behavior. So we get the average behavior when lambda is equal to zero, so that's the typical expectation. We can also get very high current and very low current behavior simply by changing lambda in this optimization, and you can see that the variance of these currents is quite large.
Okay, so that's essentially a long aside on denoising Markov models and in the context of non-equilibrium control. And so here, you know, the object that we generated in the end is basically just generalizing the notion of these models to a specific application of stochastic optimal control.
If we now take a step back and ask about the sort of general perspective on how to connect all of these different types of Markovian dynamics through the language of the H-transform, we obtain a sort of single meta algorithm that allows us to do training of denoising Markov models from this sort of KL perspective by specializing to individual choices of the dynamics.
So I guess I'll walk through this a little bit. So basically the idea here is that we, you know, we're estimating some backward generator and we have a parametrization of the time dependent density. And then as you all know, we sample from a conditional density and then do a procedure that looks like score matching and in this case it just involves the ratios of the instantaneous density to our approximation of it. And what's nice about this is that it enables.
examples alternatives for the SDE of choice. So one kind of trivial example of this is using geometric Brownian motion, where instead of having additive noise, we have multiplicative noise. And in this case, you can construct again, a direct representation of the backward dynamics. You know, we don't know if this gives any sort of realistic performance improvements for sampling for this particular problem, but it does.
It does open up a class of problems that, you know, are probably not currently tractable with additive noise. A maybe newer and more interesting form of this is to use ideas that we have been building on over the last year or so and have a separate iClear paper on, which is the use of these Poisson random measures for denoising discrete diffusions.
And the idea here is basically to have a jump process that's really a pure jump process in 2D space. And so you can see here the forward and backward trajectories in red and blue. There's no discretization, no drift, no diffusion. So this is really just a jump process. And I think that, you know, again, this is not a problem for which we know that this approach will be superior, but it's a class of stochastic.
Fantastic processes for which denoising models haven't really been built yet.
Okay, so I now want to take even a further step back. So we've worked on this sort of generalization of denoising Markov models, and there's some nice sort of theoretical gains from having a unified perspective across all of these models. But now I want to really ask the question, what does the perspective teach us about, you know, the large scale models that I think most of us hope to build?
So one of the things that I think is very apparent in the context of these problems is that when the observable is compatible with time local control, non-simulation free methods actually work well. And there's no point in trying to make everything simulation free if you can optimize through simulations, especially in contexts where you have real data scarcity.
This is often not the case. So that is something that is going to, you know, affect our ability to build models for certain classes of problems. But I think the answer is not in trying to just build better scale or simulation-free methods. I think it's also in building good latent representations. So, you know, scaling...
sampling is something that's going to require more than just a good model. Like, you know, the fanciest equivariant flow matching is not going to solve the problem of not having any relevant data, even if you can do energy evaluations, because there's a huge advantage to having some sort of approximate knowledge of modes. So, you know, if we think about what, you know, these sorts of KL results tell us about the learned landscape.
escape when training on data. In fact, we know that the optimal density is going to be a sum of deltas at the points that we've sampled. So even if we know all of the modes in this case, maybe we can fine tune with use of the energy function. But in many cases, the modes themselves will be large and diffusive and there may be slow timescales to actually diffuse on the mode.
So sampling is going to really require that we build representations that are transferable across systems, and I think this is something that many people are currently thinking about. So I want to talk a little bit about how I have thought about trying to efficiently sample latent spaces and to build good representations. So the basic premise for this is the curse of dimensionality, right? And we know this for nonparametric inference.
Local methods, of course, converge slowly and are subject to meta stability. So the question that we have to ask in this context is how do we simultaneously reduce dimensionality and effectively increase data? And, you know, the main thesis here is that you want robust representation learning across classes of systems and low dimensional latent spaces that can be sampled with methods that work, right? So MCMC, molecular dynamics.
So really this is a kind of fundamental constraint on density estimation, and that's something that you can see from these nonparametric lower bounds on inference rates, which tell you that unless your distribution is extremely smooth and the dimensionality is low, you have poor inference rates, right? So that's a really fundamental constraint that doesn't depend on the model at all that's nonparametric.
So so one one sort of simple way of thinking about this is that what you actually want to do is some combination of coarse graining and and sampling. Right. So that that's, you know, representation learning plus sampling, I suppose. And so so that's something that we have thought a lot about in the context of sampling protein conformational ensembles, where, again, because, you know, we have access to.
only experimental structures typically we need to augment with strategies that will allow us to explore low-dimensional landscapes and then take those low-dimensional landscapes and convert them into things that are actually experimentally relevant and valuable and so that's something that we've been doing over the last couple of years with my former student

uh my former student triram who's i think here and now works at prescient design uh and uh abigail park who uh who is writing a paper on this now and hopefully will be out fairly soon um okay so i'll stop there and take any questions um yeah thanks
so much. So if there are any questions I can pass down the mic. If not, we can move to the best paper award. Yeah? Thank you so much. Let's thank Grant again, one more time.
So we have the best paper award presentation now from NVIDIA, and after that we're gonna c move to the poster sesh poster session. So just right after please take some tape um from that table and put up your poster. We also have some flag from Genesis. So take some as well. And I'll let Marta present the best paper.
It's coming. Cool. Hi everybody. My name is Marta and I am one of the organizers of the workshop.
And now we are super excited to announce the best paper award generally sponsored by NVIDIA. So we had a really hard time selecting what we thought was the best paper, which is a super lucky problem to have. But in the end, we selected this paper because we thought that it's exciting to see how novel ideas such as discrete diffusion and equivariant architectures create an elegant leap to simulating one of the most classical sampling problems in natural science.
against the icing model. And so with that, we would like to congratulate Leaps, a discrete neural sampler via locally equivariant networks. So we invite them to come up. Yeah. And we'll take a photo.
And with that we have the first poster session. We promise.





What do you think?
















Take a seat please, we're gonna get started.
We have Francisco from Cambridge and Zyra who's going to be talking about sampling and free energy estimation with approximate transports. So please welcome our next speaker.
Hi everyone. Um so this is a two part talk. Uh uh first part's given by myself, uh second part by Michael. Um just gonna talk about some different thoughts, perspectives on sampling, uh inference and transfer. Um so the first part of the talk uh is gonna be on important sampling heavily focused uh with S_D_ transports uh that may not be uh exact transports.
First, just a shout out to all the collaborators and colleagues in the community that have, you know, helped with these slides and just in general shaped many of the ideas here. Okay, so starting, you know, with the task at hand, we want to sample from our normalized densities, right? We have access to a probability density up to a normalizing constant. We do not have access to any samples, so it's quite a little bit different to generative modeling, right?
The task is then maybe twofold. We want to estimate the normalizing constant, the free energy of the normalized density. And we'd also like to generate samples. If you kind of solve one task, you can potentially use that to solve the other, right? So just a quick recap on important sampling, right? Assuming, you know, we can't generate samples from P, right? But we might have access to a tractable proposal Q.
Um and so we can just do importance sampling right we generate samples from Q and we reweight appropriately with the ratio of P over Q right these are importance weights um and the variance of of this estimator you know it's going to scale uh to some level in in how similar um our proposal or how close our proposal is to our target right we want to have ideally an estimator with very low variance right so we seek to design such proposals.
Right. A little bit on notation, right, just to, I mean, might look a little bit intimidating at first, but we're going to be using this notation quite a bit. So, you know, before you saw we had the ratio between the two distributions, right. So now we're going to use this R_M_D_ notation, right, instead of writing P_ over Q_ we're going to write D_P_D_Q_ right. And that's just to symbolise just the tensor re ratio um between these two distributions, right. Uh the reason we do this is this is a bit more general uh than writing
ratios between densities when you look at STs and stochastic processes they do not necessarily have densities but they do have this radon-nikodym derivative, this R and D, they have this relative density ratio with respect to one another, giving some assumptions. So just to start with a particular proposal, this is the one we're going to be looking at the most, so we're going to look at Andri and

Uh so we're gonna look at angi uh annealed uh Langevin dynamics. Um you know, it looks a lot like gradient descent on the target distribution to some level, an annealed version of it, right, where we just simply do a geometric combination between a prior Q_ which usually just a Gaussian, and our target distribution.
And you know we're kind of just following the gradients plus noise, right. If we were to run this uh for a sufficiently long, you know it's all the way to equilibrium then we would be able to sample from the target distribution. So it's a reasonable uh proposal, a reasonable approximation, right. Um but then the question is you know how do we
I do importance sampling with this proposal, right. We don't actually know what the marginals, what the intermediate distributions of this process is. Um all that we know is what is the joint distribution, right. So you know thinking back to importance sampling we've got access to Q_ or the the joint distribution, right, of the proposal. Uh but what is what is P_ now, you know. Before P_ was, you know, the marginal target distribution but here we're working with joint weights. Um so what do we do?
So P_ is actually also gonna be a path distribution. Um it starts at our posterior or our target density and it evolves it backwards in time trying to reach the prior. So we're just doing Langevin dynamics in the opposite direction right. And if we want to perform I_S_ now, we just take the ratio uh between these two distributions, right?
So yeah, exactly. So we wanna uh calculate an expectation uh with respect to the posterior. Well now what we can do is we can sample from this path distribution, this discrete path distribution, multiply by the importance weight the random derivative, and um just evaluate the function at that sample, right. Clearly, you know by construction you know this is gonna be drawing samples from this expectation is going to be with respect to the marginal.
Because just going back a slide we constructed our uh let's say our reverse process or backwards uh uh stochastic process to start uh from the distribution that we want to sample from. So I mean this is just uh annulled uh
important sampling right and I guess what you know why is this a good idea if we if we happened to be equilibrium which we're not this would be optimal from the sense of like important sampling variants but we are not at equilibrium right so this is a non-equilibrium identity in a sense a non-equilibrium is analogous to just doing important sampling to a large extent so there's a non-equilibrium identity that is you know only optimal in a very sense if it were
our equilibrium which we are not. So can we can we do better right? Um just um a little bit of of of further notation, so we've been doing these path measures here. So we're putting a hat here to denote their discrete time. Um we're also adding the initial distribution as a superscript and we're also adding the drift right as a superscript after the comma. So we're gonna just be using this notation throughout the talk.
Uh and yeah, of course I forgot, um if it has an uh forward arrow, this is a process that is travelling forward in time. So from, you know, zero to T_K_ and if it has a backwards arrow, this is a process that is travelling backwards in time. So from T_K_ uh to zero, right?
Okay, so rewriting everything in this notation, right? Um we can write important sampling as above, right? Um to if want to carry out an expectation, it's it's a little bit verbose. Uh maybe a little bit intimidating, but, you know, just remember whenever you see these things, they're just importance weights, nothing else. So okay.
Um something that we'd like to think about now is what happens when we take the continuous time limit of these processes, right? And so um we're what we w what we'll show is that we arrive at uh at Jersinski's uh
uh equality, right? And so um let's write it down here uh initially. So you know if you take the expectation of of this work, you can uh obtain the ratio uh between normalising constants. And the processes here are you know, this is the exact same process that we wrote earlier, the and yield import sampling, but in in a continuous time, right? So just going back to our notation.
Right. Later on, like there's been a more general version like Crook's fluctuation theorem, which is just the important sampling statement of this. Right. And these terms are typically called like the work functional because it is exactly just work and the free energy delta. Right. So we could do important sampling in continuous time. But what we'd now like to show is what how AIS is exactly equivalent to this, which is something that is already known in the MD communities.
And the sample communities too, so So what happens to our discrete process um as we take the small step limit? So we just, you know, we arrive at a stochastic differential equation, right? What about our backwards proposal? Exactly the same thing, we arrive A_D_ backwards uh S_D_ right? Just with a flip sign. Um so what happens to the Rydberg and Nyquist derivative as we take the limit? Well, that's maybe a little more complicated.
So, I'm sorry.
So we write out the discrete R and D, right? The log of the R and D. These are just these are just Gaussian terms, right? Uh you should be able to maybe identify some of them. And let's say we just heuristically take these limits without to think think about too much about modes of convergence, right? So you know, this first limit here is gonna be a forward uh stochastic integral. The other one is gonna be a backwards stochastic integral. Any of the delta T_K_ terms are just your standard Riemann integrals. Um
So uh sorry for the misspelling of names. So uh yeah. So we can arrive at a formula for this.
and it's yeah, this lit lit limit has been uh formally taken uh uh it's some excellent work. So I think you should read that. Um so you know we arrive at a at a formula for what the R_N_D_ would look like uh in continuous time. Uh but instead of like taking this nice uh intuitive uh limit from discrete time to continuous, what we'd actually like to show is what is the R_N_D_ of these two S_D_s, you know. We have two S_D_s in continuous time, can we use something like Gersonov theorem?
or such to um derive the R_N_D_ And uh we can. So this is something we showed uh we will do a quick sketch. Uh but yes, the R_N_D_ can indeed uh be shown to be this, uh between an S_D_ going forward in time and an S_D_ going backwards in time, which is you know the same result that you could kind of guess already by just looking at the uh discrete time uh formulation. So um to go ahead and prove it uh
We need an intermediate result, that again this is not not not the way we proved it in the paper, I think it is indeed much nicer, right. So if if you take a Brownian motion going forward in time and a Brownian motion going backwards in time with, you know, uh they don't have to be Gaussian end points, but the R_n_D_ between these two Brownian motions, basically just because of symmetry, are going to be the bound uh just the ratio between the boundary distributions, right?
And to prove this um what you need to do really is just apply the product rule twice, right? So you you apply the product rule once on both of these processes, you're gonna get a standard Wiener process starting at a fixed point, right?
And same thing with the other one, only that it's going backwards in time. You apply the product rule once more and you're gonna get a Brownian bridge. And it's gonna be the same Brownian bridge on both the forwards and the backwards process simply due to symmetry. So once you calculate the R_N_D_ the Brownian bridge terms are gonna cancel out. Uh you know these transition densities are just Gaussian and again due to symmetry they also cancel out. So you just end up with um
the uh density ratio between these two boundary Gaussians, right? So it's very easy to calculate this forward backwards R_N_D_ F_B_R_N_D_ we call it, between Brownian motions. So how do we use that for the more general result?
Well again, we just uh kind of multiply and divide uh so you know we use the chain rule of of R_N_D_s, right? And this way we can write the forward measure uh we it's R_N_D_ with respect to the forward pran random measure, the backwards measure, it's R_N_D_ with respect to the backwards pran random measure, this we can calculate via Girsanov theorem. There is a backwards S_T_ variant of it. And then the final term is the one that we just proved, right, which is just this ratio of these Gaussians, so you know we arrive at our result just by applying Girsanov theorem twice.
Um furthermore, if we do a further application of Itos lemma on this result, we arrive exactly at your Zinski quality, right? Uh so well to be more precise, we arrive at Kruk's uh identity uh but from there you can uh derive the equality.
So that's quite nice. Uh it's it's a nice connection, right, whenever you know, if you don't have a physics background like me, and you see all these identities in terms of physical quantities, um this is just a nil of importance sampling, right? It's just a density ratio between a bunch of Gaussian Markov kernels, at least in the limit, right. So yeah, Okay, just move on. So okay, um what can we do with these R_and_D_s? Um
So, you know, any form of like at least majority of divergences are just going to be expectations or variances or other operators on R and Ds, right? So now we can actually calculate, we can actually compute uh Kail divergence in a somewhat tractable manner. Uh we can also compute log variance divergences among other things. So if we wanted to learn a sampler, we just need to minimise this objective with respect to some forward and backward drifts.
Um and we can discretise all these integrals there um just using Euler Euler methods and such. Uh so before going back to how do we sample um just to give a little bit of intuition on you know the objectives that you can recover by this R_N_D_ Right. So if you you know, if you set the backwards drift if you fix the forward drift and set the backwards drift to have this score-like parameterisation, uh you plug this into the R_N_D_ and take its expectation so it's the KL divergence.

It's just the curl divergence. Um you're gonna recover um like the score matching loss as well as the implicit score matching losses uh with V_P_S_D_ if you use this particular parametrisation. Again if you change the parametrisation to like a pink brownian motion, uh you're gonna recover first hitting diffusions. Um and very similar with sampling, right. If in sampling it's flips around, right, so now you actually optimise the backwards drift. Sorry, uh you optimise the forward drift and fix the backwards drift and from here you can recover D_D_S_ D_I_D_
D_I_S_ P_I_S_ among many other, you know, early of the uh neural uh sampler methods based on S_D_s. So, okay, going back to sampling. So we discussed um that the variance in I_S_ is well, first of all it's not something we can control, right, it's somewhat fixed. Um we have we could take more steps, I guess, but that's not the most tractable. Um and it's not optimal to begin with. So could we build on I_S_
by optimising some sort of divergence, some sort of loss based on these R_ and Ds. Um and you know ideally what we want to try to do is optimise the forwards or the backwards drift such that the thing that we learn or the optimum of these objectives, you know, matches the interpolating uh flow that A_I_S_ is trying to reach. But A_I_S_ never quite really reaches that. So let's let's have uh an initial initial look.
how it looks like. So so now you know this is how AS trajectories uh look like. You know if you run them for not not a very long uh time horizon horizon. So you can see at every point in time AS does not match the intermediate distributions. And you know on the other hand, if we had a process where we somewhat controlled them to go through these intermediate distributions they would actually look like this. So here's here's a baseline. Another uh thing to consider is the reversal for AS.
again, because it's out of equilibrium, it's not the same. It looks quite different. It's not matching the intermediate distributions and we would like to have something like this, you know, where the reversal is the true reversal. If if we actually have something with access to both the forward and the backwards, the actual reversals of the process, then the you know, the variance is going to actually be zero.
So how do we achieve that? So we minimise in this in our in our work we minimise the KL-divergence uh between a forward process parameterized by a learnable drift plus the A_I_S_ drift and a backwards process, again, parameterized by the same learnable drift minus uh the A_I_S_ drift, right? And if this you know if if you minimise this, like KL equals zero, then it's saying that these two measures are the same, right?
If these two measures happen uh oh, so this is just looking at the permutation as expanding notation a little bit. So if these two measures happen to be the same, then um by Nelson's uh lemma, so just by time reverse by arguments of time reversals, we can relate their forward and backwards drift to find out what the marginal density of this process is at equilibrium at not at equilibrium, at optimum.
And you know if we plug in these drifts, right, at optimum, things cancel out and this tells us that the marginal density is pi t, uh which is, you know, what we want to. So we have now recovered a process um whose marginal density is the interpolating distribution that we pre-specify in A_I_S_ And also, you know, at optimum this process uh is yeah, it's an optimal I_S_ estimator, right? We could uh we could do importance sampling with a single sample and this would give us the normalising constant.
But I guess yeah, the question is, you know, in practice we don't really have access to even if we optimise the scale we're never gonna actually reach this optimum. We're just gonna have a new network that approximates approximates B_ five star. So how can we do important sampling or uh normalising constant estimation with an imperfect network? Well, I mean we we just do it. Yeah, we just use the importance weights uh that we have been talking about, right? But now we are using importance weights that have been tuned.
uh to, you know, more or less implicitly minimise uh i s variance. So here's an imperfect transport and if you know if we're estimating normalising constants instead of an arbitrary function um this would be an unbiased estimator. In this case it's consistent but biased. So um yeah. So yeah, trying to get a bit more practical, um how do we discretise these quantities, right? Um
If you just do kind of like the standard discretizations, plus some little uh specific tweaks uh to this important way, what you arrive at is really nice. You arrive at what you'd expect to arrive at. You it looks more or less like the A_I_S_ kernels, right? Um only that, you know, one process has the transport drift, you know, the Mm. control that we're learning with a negative sign and the other process has it with a positive sign. So, you know, just
Starting off from discrete time A_S_ could we arrive at this parametrisation, could we have some what guessed it? Maybe not. But the point is it's it is it is quite intuitive, right? If we are, you know, starting off uh A_S_ where out of equilibrium, right? These process are not the same, they're not reversals of one another. If you add a a transport of mass in one direction, then you probably want to subtract it in the other direction. So there's, you know, there's a little bit of intuition behind this. But I guess
at least without the formalities of time reversal, I don't think we would come up with this. Um so yeah um again if we do the same trick that we did before, so um if we apply Ito's lemma to the importance weights, um we can arrive at a more Jarzynski, Crooks fluctuation theorem uh like formulation uh of these importance weights. It's still the same quantity, right, it's just a maybe simplification of that.
uh or an equivalent expression. Um these weights uh have actually already been proposed. Um and also like independently arrived uh in within M_L_ as well uh from the perspective of like Feynman-Katz P_D_s and Feynman's Katz measures. Um
But yeah, I mean this is like typically referred in the M_D_ literature as discordant Jarczynski and it's equivalent to these forward backward R_N_D_s. Once you discretise if you discretise in a particular way, it is actually indeed equivalent to this and this expression is actually more computable or more tractable than this one which requires a divergence. Right. So yeah, you just wanna use these as your weights once you have trained a model.
So okay, what can go wrong if you train models this ways? So here's a short list of papers of how you shouldn't train uh neural samplers. And you know you'd think after two attempts I would have figured this out, but I I just kept going. Uh so maybe I should be doing something else. Um so yeah, anyways, humor humour aside, sampling is quite hard. Ah
um the paths are difficult um these objectives in particular all lead to mode collapse uh once you address mode collapse you might get high variance and unstable training losses and nearly everything requires simulation um so here's a here's a little plot from some recent work where we we benchmark a lot of these methods um and you know it's it's they they struggle actually you can just take parallel tempering uh which is very old from the md community and it just trashes all these methods and you're not learning a neural sample
sampler right so why are we learning neural samplers i'm not sure but it's fun right at least at least at least discovering other identities these things are useful for other things right um so um yeah so like maybe being a bit more concrete about you know uh what went wrong in some of these works right so of course if you um
If you just minimize like a KL divergence, it's mode seeking, this is going to happen. Uh you can play around and tweak it, but it's ultimately you're you're not going to avoid that. Um and if you look at so these are called on-policy losses, not just the KL divergence, you can also have other uh such. So if you look at things like log variance, trajectory balance, uh, you know, physics in formula networks type of objectives, um
You know, these are off-policy and have much better non-mode-seeking behaviour. Wouldn't say they're perfect in that sense though. But um they they do struggle to stick the landing. Uh what do I mean by this is that as you approach the optimum, this can get quite unstable, you have to clip and do a lot of tricks. Um and even then, yeah, i i they're tricky uh unfortunately. Even though the theory for some of these actually does explicitly show that they should stick the landing, uh in practice uh at least I found them to be quite tricky.
Um, and then yeah, the other thing that you can vary is the path that you're actually taking, right? And that should be a pi t, sorry. So, um
Yeah, so like the path that we've mostly discussed in this work, you know, has been pi T where you do this geometric combination. So, you know, methods, a couple of methods that I've explored these paths, like one big limitation of this path, as shown in this image from Phillips et al. is that, you know, you have the teleportation of mass or mode switching issue. Actually, these paths have quite poor mixing times as has been shown quite recently too.
uh A_I_S_ can ex um you like can actually be worse at mixing than um standard dynamic dynamics. So yeah, it's it's it's not ideal. And then the diffusion path, which we all know and love, that works really well in generative modelling, there's again there's been quite a few works explored this uh in the in the setting of sampling, it's not the same, right? We we can't actually simulate uh these paths um again, lots of typos. Um and so, you know, we we can truly leverage the
Whilst these paths are nicer theoretically, you know, they're taking convolutions between Gaussians and the target distributions, they don't have these issues, uh it's not amazing. And also they rely quite heavily on uh just a neural sampler whilst AIS always has this gradient term which introduces some consistency in the limit at least. So um yeah some ideas that have come out recently. Uh many of them are in this workshop. Uh relating to to the path is uh yeah one issue like

Uh yeah, one issue like with the diffusion path is that you know it suffers the limitation of not being consistent uh in conscious to A_S_ which I think Michael will talk about in the second part of this talk. Uh the A_S_ component of that. Um and then on the other hand, you know, geometric paths don't have great geometry, actually have poor mixing um so yeah, maybe don't wanna do that. So some uh alternative that is also presented here uh in the morning, which is pretty I'm pretty excited about is you know
The use again of like under damped Langevin dynamic bridges um and again whilst it's still using the annealing path, uh it's still a little bit different so it it addresses this to to some level. Um I think I I lost the bullet point here but another another point is you know learning paths as well. Yeah. Uh so yeah so closing remarks uh sampling is quite hard.
Like neural samplers rely on good initialisations like line-jumping preconditioning, uh buffers. So far everything requires some form of mus sim simulation, even if you use a buffer, uh it's you're still simulating at some point. Um so yeah.
It's all kind of sad. But, you know, on the bright side, starting neural sample does lead to useful methods that can be useful in generative modelling. So deriving some of these important sampling weights can be useful if you pair them in conjunction with S_M_C_ to control generative models um and also for you know fine tuning as well. So and even within like free energy and M_D_ there's exciting applications, right? If you have access to to samples,
and from from a metastable states of an energy and you would like to compute the free energy uh you can use many of the results of the sampling community or the neural sampling community has been developed uh to calculate these estimates so uh more misspelling um so I'm really bad I'm dyslexic by the way it's a bad excuse so if you if you find like Jarsinski and it's its corresponds maybe a bit difficult to understand or maybe you don't actually if you have a
you have a a physics or a background. Um just remember, it's it's just the new Lagrangian sampling, it's just the ratio of Gaussian kernels trying to balance uh one another. Uh thank you. Thank you very much. Uh we have time for some questions. Uh thanks for the great talk over here.
Sorry. Uh great talk. So I had a s question w in all of this uh stuff that you presented, the design space of these algorithms, one thing I guess maybe we uh machine learning take for granted is easy access to the energy and like cheap access to the energy and its gradient. And in some applications we don't really ha easily have this. So in those applications how does the design space in your mind change or does it change at all? Or what could you do to do differently?
Uh yeah, there's yeah, good question. Um so there's yeah, there's quite a lot of works looking at you know trying to budget the number of green evaluations. Um definitely if you if you fall into that paradigm these neural samplers are even worse, right, if you if you constrain the number of steps actually it's something I didn't mention, despite all these methods uh being non-argotic in a sense that, you know, they they're controls or they're finite number of steps methods, you know, they really do rely on a lot of steps to train them well and such.
such.
I think yeah, I think it's a bit tricky there. Um I think maybe the thing I'd consider there is kinda like more like amortisation, right, where you're looking at these methods uh from the M_D_ and the m maybe classical sampling communities that work really well, they do use lots of variants evaluations but you know quite a lot of data has already been generated for many of these, right. And so once you have access to to these data to these samples, you can maybe treat this problem like a generative modelling problem uh to amortise these really expensive grain evaluations. Yeah, but this is reliant
relying on the fact that someone has already done all these great evaluations for you. Uh that's true. Yeah. Do you have any other questions? If not, let's thank the speaker again and close up our program.
And the next talk is going to be by Michael, who will be talking about non-equilibrium transport sampler, another perspective on Zrzeski. It's the second part of this talk. Right. So I'm going to keep the sombre mood going. I think that's a good thing to do for these workshops. Also we have to set up the panellists to have some controversy to talk about. So Okay, cool. Yeah, so this is the second part to um
What Francisco is talking about, you know, if you are, we wanted to sort of give complementary perspectives on how to arrive at some of these similar relationships. These are relationships that people have known in different communities, as Grant was talking about earlier for a long time. So yeah, this will be just another perspective on non-equilibrium transport sampling. And at the end, a little bit of a reflection on trying to set these goalposts that we're now bringing into question about what we want from neural samplers.
So what I'll do instead of the R&D stuff is a PDE perspective on the Jarzynski equality just to give another look at it. OK, and then how again we might want to try to augment the relationship you get from a Neald Langevin dynamics with some additional learning. And if maybe you look at it from the PDE perspective, you can arrive at some of these different losses that might be more favorable, similar to the work by.
trying to find Julius and Lorenz and people in the audience, but if you want to think about these stuff, you should talk to them as well. Yeah, and then we'll talk about what are neural sample layers actually useful for. And maybe try to identify th oh there you are. Some uh some circumstances in which they're good. So the main brunt of this little derivation will be um work with Eric Vanden-Eyden and then I'll briefly mention that there are some generalizations of it that you'll hear about I guess right afterward from Peter and and Tommi Jaakkola.
And students Brian Lee and Paul, who are they the next section? You're right after? Okay, cool. Cool. And of course, these problems are for me at least inspired by a lot of work with the folks up at the top here where we work on problems in lattice QCD, and these methods have sort of been developed with these folks at the bottom.
And shameless plug, I need students and I'm starting a lab. So if you are interested at working at the intersection of computation, mathematics and want to do that in an interdisciplinary way, give me a shout out. My university is in financial straits, but we're going to figure it out. So long live knowledge building.
Okay, so the two probabilistic problems that we have, right, that I just want to at least meditate on to compare, to try to motivate like, you know, why have we ended up trying to use generative models to do sampling, okay? So we have this historical development with generative modeling that 12, 13 years ago, I use this slide all the time, the best we could do was sort of sample MNIST digits, right, using sort of Boltzmann machines.
And as both computation and methodology improved, you know, now we can do these wondrous things that this needs no introduction in this room, right? We can generate all sorts of complicated data that we wouldn't have imagined just 10 years ago. Okay, and the sort of important thing for this crowd is that this is...
emerged more and more with a measure transport perspective, right? Building maps between probability distributions. And, you know, we might ask for this community, right? How might this dynamical transport, you know, dynamical connection of distributions play a role in sampling when we have no initial data to learn from, right? These are the dual problems where we want to estimate a probability density function, row one, either through sample data or query access to the unnormalized.
likelihood okay
So we've seen a few examples of these today, but maybe just to motivate why people, you know, care about this in science. Okay. In this case, we may have an energy function that describes a physical system, which I call here U1, just to tie it to the rho1, which we'll see as a dynamical role. You may want to do this for sampling Boltzmann's distributions associated to molecules, studying quantum field theory. That's how I got caught into this mix. Condensed matter problems or sort of any sort of posterior inference.
you might do in cosmology, astrophysics, the like. Okay? And so this is the object we need to be able to sample under, this U1. And what I want to do now is say just a little bit of how methods that have been developed, this was the riskiest thing I did this morning, was try to make a historical overview of the sampling literature that combines machine learning and sampling.
That I wanted to do originally just because I wanted to say we've tied all the same methods together for 20 years, 30 years, but I just ran the risk of leaving people out of the slide. So please let me know if I did and you can yell at me anytime you want. Right. But OK, what has happened in the past 10, 15 years? OK. In the early 2000s, as Francisco was mentioning, people had begun thinking about how.
you know, you could take a kneeling important sampling or in this case, you know, we refer to it as the Jersinsky equality.
And you can imagine trying to adapt it by sticking something else in these non-equilibrium equations to improve the variance of the estimators you'd get in the sampling procedure. So there's some early work on this by just trying to do a preconditioning of this, I guess, non-parametrically. And then in the 2010s, you know, folks like Yusef Marzouk's group started thinking about, can I do sampling with measure transport? Can I build MCMC estimators this way? We had some work applying this to lattice field theory.
Kim, Nikolai and the crowd has also done some work on this for statistical mechanics and of course there's the Boltzmann generator.

and of course is the Boltzmann generators paper and then when people realize these are not really good enough on their own they thought maybe I can add back in the tricks that everyone else has developed already so in the 2020s people started sticking in SMC type tricks parallel tempering just you know works from Arnaud's group and Neil the flow transport craft there's some physicists who are not in the crowd who I always have to solidarity support who have re-derived some of those
in what they call like out of equilibrium samplers okay for statistical physics problems and some replica exchange stuff and then I went to make the last column of the slide and I realized there's like 500 papers so they're all diffusing out as we moved into bringing these back to continuous time and sticking in diffusion so
You know, I think a lot of us are here today to talk about these types of works. And now I just wanted to contextualize them that, you know, we've come full circle in some sense in using these types of ideas. Okay. But importantly, this trajectory that I showed takes a trajectory of how generative models sort of adapted. And then we have to ask maybe later on, is this the right sort of mentality we have given the types of problems that we want to solve?
Okay? Okay, my equivalent introduction to this problem, just to lay out some notation. How do we usually approach sampling? You might want to run some sort of MCM chain according to the gradient of your...
uh your target potential okay what we're trying to do is build a you know sequence of randomized transitions such that on this chain of uh of variables that we uh of samples that we that we construct any estimate of an expectation value is going to converge to its true value okay so one version of this that i've written in continuous time here is langevin dynamics okay so what are we going to do we're going to take the gradient
of u1 with some diffusion coefficient epsilon and add on some Brownian motion and, you know, evolve this walker in time with a time step dt. Okay, and the alternative we might do if we don't want to do this is construct a surrogate model to rho1 that I called rho1 hat. Okay, and if these guys have overlap then you could, as Francisco was referring to before with w on his slide, compute importance weighted expectations of h.
Okay. But obviously, if we're all here, we know these can go wrong. Okay, so what's one issue? Well, if you have a non-log concave target, okay, these modes are separated, then the mixing is going to be exponentially slow. And if you just choose a bad surrogate for your importance sampling, then the variance of the estimator you're going to get is really bad. So, okay, what's one thing you could do to try to alleviate some of these issues? You could construct a time-dependent potential.
A U_T_X, okay, here I chose a one that we have also just discussed is really bad, but it's just an example, where you say, I have some simple distribution, U_0, or anything that I know works with M_C_M_C, maybe a higher temperature version of a lower temperature system you want to study, and you're going to construct an interpolation so that you have a time dependent PDF, rho_t, okay, which I've just written as e to the minus U_T with the partition function F in the exponent.
Okay, and I want to take the Langevin dynamics I was running before, okay, and now I want to replace the u1 with u_t. Okay, so now we have a time-evolving potential, epsilon of t sets the speed of these walkers, and, you know, this is how you may start, for example, from something unimodal and want to anneal this to cover both of the modes. Okay, but the question that Francisco was also getting at here is, does the solution of this SDE, X tilde,
Have rho t as its law. Okay, rho t being the actual density that we wanted to interpolate through. And I wouldn't write that if I didn't want to put an x through it. So no, this is only true if we took epsilon to be infinitely large and dt to be infinitely small. And that's just because what we've written down is a local, you know, local equilibrium sampler and then we moved in time and we hoped that the equilibrium sampling would reconverge. Okay, but if we keep moving there's going to we're going to construct a lag.
And what is the little tiny PDE manipulation to do that you would do to show this? Okay, well, let's just read off the Fokker-Planck equation from the SDE that we had. Okay, we have a gradient of U. This is going to appear on the right-hand side for the drift in the FPE. And then we have the Brownian motion. So you get this Laplacian of rho tilde. But we know what rho T is. I wrote it right there. So if I wanted an expression for DT rho T, I could just take the time derivative.
Okay, and what you're gonna get is you're gonna pull down a factor of the UTNF, okay, and they're time derivatives. And then what you can do is add zero to this equation, basically because grad rho T is equal to minus grad UT rho T. Okay, so what has happened? We have the explicit formula for DT rho, we have the Fokker-Planck equation DT rho tilde, and as you can see they're gonna differ by this term DTU minus DTF.
Okay? So what is this going to tell us in practice? It means that if I walk out a walker with this SDE with respect to X tilde here, these walkers are going to lag behind the actual evolution of the PDF. Okay? So what does that look like in practice?
If I had this God-forsaken 40-mode Gaussian mixture, okay, that I think we should never sample again in this literature because we don't care about 2D problems, but they're useful for illustration.
What you'll notice is if I run those dynamics here on the right -hand side, these walkers will move in a very, very slow walk as compared to the potential which is evolving in the background there. Okay, and if I crank up the diffusion coefficient, you can see that it gets a little bit better, but of course this won't work for highly multimodal things. Okay, and what Francisco showed us and many other people will discuss is you can fix this with reweighting.
Okay, so what do you do? You take the S _tE that you had, which was our annealed Langevin dynamics, and in addition to X_tE, you keep track of a log weight that we call A_tE. Okay, and what is this weight? It's explicitly the dT_uT that appeared in the time derivative of the time-dependent density that we were looking at before.
And if you look at the joint Fokker-Planck equation of these two guys, then you can show that for any test function H, you can compute its expectation by taking the re-weighted expectation over the law X_t and A_t. Okay, and what does this really tell us? It says the expected value of these weights is going to be the average work done on the system. This is the Jarzinski's perspective, okay, and it's going to give you the change in free energy.
Okay, what's the issue? Well, we just saw if I did this on the walkers that were nowhere near the right target distribution, the variance of my estimator would be infinite and I wouldn't have learned anything. So the motivation we have here is just another way to arrive at the fact that if we stick measure transport into this picture, we can fix some of the issues, hopefully. Okay? So to set some more notation, how might measure transport help us here? Well, we'd like to add something to this SDE.
And what we might want to add is to say if I have a map that takes every sample from row 0 to row 1, okay, through what we call here capital X of T, then this guy is going to assign every X to some X1 later on on these characteristic curves that I've drawn here in the top right. And how do you realize these characteristic curves?
Well, you need to solve this probability flow ODE right here, which says the time derivative of the map is going to be equal to some vector field that we call Bt evaluated at that point in the map, okay? So that's what would happen at the level of individual walkers. And of course, there's an equation for what's going on at the level of the density itself. And what we need these two guys to solve is some transport equation, okay, that basically says if I start at row zero, I'm going to end at row one.
Okay, and like before, we can add on zero to the right-hand side to turn this into a Fock or Planck equation that says I don't need to do this with a deterministic map, but I can do it with some sort of stochastic process that includes some Langevin dynamics. So if we find this B, then what do we know? We know that if we stick it into the SDE we had before,
Then solving this up to time t will give me a sample xt that is exactly from rho t, i.e. we would have removed the lag from these walkers that we just saw. Okay? So what if you don't have the perfect b? Here's another way to arrive at the equations that Francisco was just telling us about. Okay?
If I just take the expression that appears in the transport equation, nabla c dot bt rho t, and I expand it because I know that I want this thing to be equal to zero I mean uh it t to be equal to minus dt rho, but it may not at this point if I have a parametric model that gives me the wrong bt. Then what I can do is take this non-equilibrium equation we had before and add the left-hand side to the left-hand side and add the right-hand side to the right-hand side.
Okay, so before we had this non-equilibrium term in our dynamical equation that was dTUT plus dtF, and now we're going to add on this factor that comes from the emphasis of this new drift. So what we get is this new, bigger non -equilibrium term, and just like before we can read off what the associated dynamical weights need to be by just taking this term and sticking it into the ODE we had for A.
Okay? So this means we have some sort of correctable dynamical transport for sampling that will be valid, importantly, for any diffusion coefficient epsilon. Okay? And if you want, you can combine this because you have these weights.

Combine this because you have these weights at all times with any sort of resampling procedure that you may be interested in, a la sequential Monte Carlo. There is some work by Lorenz and Julius and Jun-Ha, who I think is also here if you want to talk to him. His poster is somewhere in this room. I find it very hard to navigate the posters with all the chairs, so I don't know exactly where it is, but talk to him, which is going to give you some similar perspectives on this, okay.
So how do you learn the B that you want? Well, again, all we have to do is look at this one equation. What do we want to do? We want either the left-hand side to be equal to zero because that means we've satisfied the transport equation that we had, or we remove the non-equilibrium source of our lack. So if you go to the right-hand side, there's this pin that you can write down, a physics-informed neural network loss that says, I just want this term to be zero everywhere.
Okay, so I want to learn over, you know, any distribution that has the support where I need it to actually perform the transport to minimize this loss function, okay? And so, you know, as Francisco was alluding to, one benefit of doing this is you don't need the true distribution, you don't need trajectories, but...
One challenge is not you have to match basically gradients of your neural network. So it's not as straightforward an optimization procedure as just like, as it may appear, minimizing some residual term of PDE. Okay? And there's some other work by Tian, and also this will appear in the Dynamical Measure Transport paper from Julius and Lorenz, where you can see other ways of arriving at this.
Okay, just as a toy example, our favorite distribution, you can remove the lag if you learn to include this drift that you learned from the pin, okay? And the only thing I want to stress that I think is nice about these types of methods in general, this is applicable to lots of the stuff that pretty much all the methods that Francisco was mentioning before, is that at least from where the literature was before on neural samplers.
If you have a diffusion and you can write it in this way, then you really can choose any diffusion coefficient you want. And what we said in the beginning of the talk was that if I could choose epsilon equals infinity, I would have a perfect sampler no matter what. Okay, so obviously that's not a free lunch. What happens is you'll have to take a very, very small time step to realize what the SDE is trying to do without bias. But you can observe that.
If you had some growingly higher and higher dimensional distribution, here we have a Gaussian mixture that's in 36 up to 200 dimensions, and here are some cross sections of what this Gaussian mixture looks like. You can observe that if you have no diffusion right here on the left-hand side on the y-axis, as you increase the dimension of this problem, your performance is obviously going to go down.
But as you increase the diffusion coefficient that you'll use sampling, you can of course push this close back up to 100% ESS. And this is a benefit that at least we can see in practice if you use transport versus if you just use the annealed Langevin dynamics that we started with, which are the lines here at the bottom. Okay? So we applied this also in a little...
a scalar field theory problem that I would actually encourage people to use instead of the two -dimensional distribution because it's well characterized about how hard it is to sample with MCMC and there are some nice benchmarks out there. Okay and if you get a chance you can also check out the talks that are coming next where Peter will talk about how to generalize some of this stuff to the discrete case and how it can also be used for fine tuning.
But great. Okay. All of that was really expensive to run. So you really have to ask, are we playing by the right rules in the neural sampling literature? Okay. If I have to evaluate the gradient of my energy function all the time, this seems a bit unfair because that's exactly what I'll do in the MCMC literature anyway. So I have to ask, am I really getting a huge benefit from doing this or not? And I would argue that there are a few domains where this could be useful. And I know Ricky might talk about this on the panel.
And it's definitely something that Grant has thought a lot about too. So here are some scenarios where I think it might actually be useful under the right circumstances. In the case where your neural network evaluation is somehow cheaper than your likelihood. For certain physics problems, this seems totally out of practice.
But if you have some big, you know, posterior inference that you want to do, then this isn't actually totally unreasonable. For example, there's some work by Dai and Eroseljac where they try to do this on a cosmology problem where the evaluation of their likelihood is just incredibly expensive. So if you could come up with some neural sampler under which, you know, the process of sampling separate from the diffusion stuff we've been doing doesn't involve the gradient of your likelihood at all or your likelihood at all.
then you're in a pretty good spot. So they've had some success doing this by learning an old school normalizing flow, a one step map that they can optimize over simulation data. Okay.
And one that's a little closer to my heart is if you have a really, really high dimensional, really hard distribution, but you only care about one of them, okay? There's a single theory. And once you've got a sampler from the single theory, everyone in the community who wants to understand the physics of that single theory can do something with it, okay? And so this is the case for lattice QCD where they're trying to sample distributions that are up to 10 to the 12 dimensions, okay? Just absurd.
Um, and then what they'll do is they'll run an HMC chain to try to sample this, but even running this a thousand steps is like enough to start burning the oceans. Okay. So, and of course you have to wonder if it's, it's close to mixed or not. And there's lots of other issues, right? So if you can have any cheap sampler that gives you any independent samples close to this distribution, it's useful. And the third case is one I think is more, you know,
is is really more applicable broadly is that when you want to solve a bunch of sampling problems all at once okay so if I had to learn this
this B that I've been talking about for distribution after distribution. Well, obviously that's not going to be useful if I have to train at each time, right? So if you can amortize those costs away, which is something we've been thinking about since around 2021 for the lattice field theory problems, where you learn, for example, how to sample across all the parameters of your physics theory, maybe all of the nuisance parameters for your posterior inference problem.
or for the Hamiltonians associated to many different molecules, as Ricky might talk about in the panel, or something that Grant has been thinking about too for sampling a bunch from a bunch of conditional distributions conditioned on structures of the protein. Okay, this is an arena where I do think you can win if you can actually amortize away those costs. Okay, that's it. Thanks.
Thank you so much, Michael. Uh we have time for some questions again. Please don't be shy. Hello. Thanks for the cool talk. Um so in your talk you all you talked about a particular choice of path. Yep. Um do you have um
some idea about what kind of properties we want from the path, like uh mathematically what should they satisfy for it to be a good interpolation path basically. I've been thinking about it a little bit. Uh but it's actually kind of hard. But m just to motivate it like, okay if you choose this geometric path, you know people have studied this up for a long time in the sampling literature.
You obviously could do things that are bad for transport. So for example, if I do this sort of teleportation in the front where I have a single dimensional distribution I'm sampling, it's centered maybe at minus five and I need to push this to five. Well, if I do this suddenly where I transport, teleport samples from one distribution to the other, the vector field which would realize that in continuous time is going to be horribly conditioned, right? So you obviously wouldn't want to do that.
Something that has a little bit more of a geometric picture to it like the OT path or what we get for the diffusions or what we've been thinking about with stochastic interpolants might be a little better. And there's a tiny relation that you can write down that says, you know, we know if I look at the stochastic interpolant stuff, which is a means of basically constructing this path without ever defining what the density is analytically, right, that there is a Bt and an St, a score and a vector field that will do this for you.
Okay. But the question is what is the UT associated to it, right? Um there is a way to say that it's the minimiser of an equation. And that equation is the following. I I won't explain it just because it'll take some time. But you can represent B as the gradient of a parametric potential U_ okay? There are some relationships between uh the drift and the score. And then minimise the pin over this guy.
And you know, it c it works in practice, but the trouble is what's nice about the pen is you can do this sort of uh sequential solution. But this is a global condition, so you can't really do the sequential solution anymore. You have to learn over the whole space. Thank you.
So thanks for the great talk and also the Francisco was a nice back to back. Uh I have a question regarding inductive biases that you can incorporate into generative models. So you learn you worked a lot on in lattice field theory and in that context with flows the key for you to get some success were to was to incorporate as many symmetries possible into the model to get them learned. Yeah. Uh or uh sorry, not to get them learned, but to have them already. Yeah. Do you see any
possibility to do this as efficiently in this context? Or uh is there any work that has tried this? Uh there's been some work where people enforce equivariance. I mean, Yeah. I mean like in the in the continuous setting. You mean Yeah, when you no, exactly. exactly. So in diffusion model

Setting, you mean Yeah, no exactly, the schedule? so in the future a lot of people have tried in for molecules to have Right. this equivariant neural network. But Yeah. I was wondering if there was some because these paper are fairly old.
we're all this subjective Right. but two years old it's ages in the community now Right. so yeah I don't know of anyone directly doing this stuff with equivariant architectures, but, you know, there is the work from Alessandro, Nada, and whoever's doing the lattice gauge theory stuff or the trivializing maps, they're doing a lot of the equivariance on those guys, right?
Yeah, right, for the The annealing portion sampling. Yeah, it like I mean it won't look too different But in from the this so Yeah, but in general I don't know this is kind of the other part of this is is equivariance useful or not I feel like something Grant and I've been talking a lot about it's like useful until it isn't You need to find like the right amount of it right and it's like very case-by-case Yeah Right, thanks.
Do you have any other questions? If not, we can just thank Michael again.
Graph your shoes. Separate.
And we have Peter that you guys saw from the best paper award. He's gonna be talking about leaps. And I'll just let you get started.
Uh so uh thanks for an introduction. Also I just want to say thank you for organizing this workshop. I think uh yesterday uh the social somebody said to me it's great to see that behind great papers there's also great people. And I think really cool to bring this community together. So thanks for doing this. So I'm excited to talk about leaps which is basically great to uh w uh you know well organized to speak right after what Michael just talked about in the continuous setting. Uh so this is joint work with Michael and uh Tom Jakala.
So the problem setup we're studying here is we're looking at discrete state spaces. So we want to build a sample in discrete spaces and we have some sort of target distribution where the...
The function U of X is given to us, as we want a sample from rho, that's the goal, and this is an annealing method, so we design a set of annealing distributions that start off with some sort of distribution that we know, so similar to diffusion for example that starts off with a Gaussian distribution here, in the setting usually the initial distribution is some uniform distribution, and we want to end with the distribution that we want to sample from, so rho one is our target distribution.
And we're doing this with discrete diffusion. So mathematically speaking, we're using a continuous -time Markov chain, which is usually given to us by some rate matrix that we write here as Qt. So Qt gives us the rate from X to Y. So basically you can consider it as a flow that flows from X to Y. And what we want, we want to make this continuous-time Markov chain have the marginals that we just designed in the previous slide. So we want to start off with rho 0, and we want that Xt has the desired distribution.
distribution road to you at every step. And the good thing is that there's an equation, a Kolmogorov forward equation that basically gives us an equivalent condition of this desired condition, which is basically a constraint on the rate matrix Q.
Alright, so um already in the previous talks people talked about uh Raymond extreme theme the rivers in path space, we are basically doing and deriving here a similar uh result in continuous spat uh in descrete spaces. So we have uh forward process, it's our model so uh wi writing here this as a path, forward path measure q, and we have a backward process and that backward process at this point is just hypothetical. So we're never really simulating that, which is
postulating that this one exists. And what we're deriving here is the Rayleigh-Nikudim derivative. So basically a relative likelihood. So you can think about this as a likelihood ratio in this trajectory space. And you see here a very complicated formula that I'm not going to go over detail, but basically it depends on the initial distributions of the rates of staying and then also it compares the rates basically when jumps happen.
Right, so this result essentially allows us to derive an importance sampling scheme which we call proactive importance sampling. So the first thing we do is we're basically looking at, we're defining this K_F_E violation operator. So that we write here as K_T_ And essentially gives you the difference, the normalised difference between of the cl um two sides of the Kolmogorov forward equation. It basically tells you how much does the Kolmogorov forward equation that we wanna solve violate it as a specific point.
And when I'm accumulating this error over time, which we write here as this A1, so it essentially is the integral, so the accumulated error over time of the equation we want to solve over time.
And the cool thing is that we can basically use this to, we can interpret this as a sort of Rayleigh-Neck-Rodime derivative. So what we do here is a similar trick that already controlled Monte Carlo diffusion does, is that we're postulating basically a hypothetical backward process. We're saying, if our process had the desired marginals rho T, what would be its time reversal? And if you do that, you essentially see that the Rayleigh-Neck-Rodime derivative of that specific choice of a backward process.
coincides with or is proportional to the exponential of this violation of the Kolmogorov -Pover equation.
And why is this so cool? Because we can do important sampling now. So we can say an observable H, we want to estimate under the target distribution, we can basically express that expected value as an expected value of Q, which is our model. So essentially, we can basically re-weight expected values of our model to get expected values of the target distribution. And for this specific choice, it also holds that the weights are constant if and only if.
The model has to design margin also we're basically minimizing the variance of the importance weights and solving the come or go forward equation in this case coincides all right so let's train it so we're making basically the whole thing now neural networks so the new the rate matrix cube it has a parameter feeder and it also has a path measure that we now just denote as Q feeder
And it already has been discussed earlier, and it's well known in the literature, or it's a loss that many people use, which is the lock variance divergence. Essentially gives you the variance of the lock weights that we use for important sampling. And that's off policy, which is great, and also you don't need to backprop through the trajectory, but it still depends on an entire trajectory, right? So it's every time step will influence that value, which makes it more computationally expensive.
We then establish this theorem though that you can basically bound the log-variance divergence by a pin objective, so it's very similar to the continuous case, basically says that we're introducing this free energy network FtPhy, and we can basically bound the log-variance divergence as this common loss of theta and phi, so as the rate matrix network and the free energy network, which is the simple mean square error. So we basically translated training the sampler into minimizing this mean square error.
Great, cool. So unfortunately it's not that easy and it's one of the core points of our work is that, you know, the world is not as easy as it just seemed. The problem is that there's some sort of scalability issues for the way we currently parameterize discrete diffusion models or like, you know, rate matrices. So let's think about how we currently do this. So we have some sort of input X and we return usually in our neural networks a whole
column of the rate matrix. So we get all rates from X to neighbors of that point. Okay? And the problem with that is that if you look at the K of eval uh violation operator that we uh that you know all the previous slides depend on is that there's a sum where the
input on the network we sum over the input of the network right so this y is what we're summing over is the input of the network so to get this operator evaluated you need to evaluate as many times as neighbors and a neighbor is for example if you have a text sequence a neighbor of a of a certain text would be all sequence that only depend differ by one token but that's really large so all of this is to say
With the current way of the way we parametrized discrete diffusion models, this would be extremely intractable. Like, you should not do this. So that's why we're now introducing this notion of local equivariance. So what we do is we're essentially parametrizing this one-way rate, this rate matrix as some sort of value of a function that we now have no constraints over first.
But we're now imposing a new constraint on this function f, which is what we call local equivariance. Essentially says that the flow to a neighbor is the negative of the flow from that neighbor backwards. So if I go from x to y and I go from y to x and I add these two things up, I will have no difference, okay? And in some sense, you can also think about this as that we can only go one way once we put that value on the...

So on the F. And you can see very easily that once you establish that constraint that the KFE violation operator, all of this depends on, becomes scalable. So now we only have to validate the network once because once we know X of X to Y, we also know Y to X.
Great. And there's also just as an aside, we're not losing any representative power because we've shown the work. Any Kolmogorov forward equation actually admits a solution of this form. So the solution space admits a solution of the form we just showed. All right, cool. So how do we design these locally accurate neural nets? And I think there's one core problem that is basically.
you see at the core to understand and it's first of all the negative results so equivariant neural networks which have been very popular not so much in the assembly community but in general is rely on one fact right so if i design an equivariant neural network i use the following fact if i have two functions and i compose them they can be and they both equivariant their composition is also equivariant right the property of equivariance is preserved under composition
The problem is local active variance, also even invariance, is not preserved under this composition. So we're not conscious to say, okay, let's design locally active invariance layers and then to stack them, that's not going to work because this property doesn't allow for that.
So that's why we have some, we process some initial designs that differ from that. So one design we have here is we're basically parameterizing this F function as, basically we decompose it into a function that only depends on a specific token, which we write here as P, and then this function H T which we call, which we impose to be locally invariant. So that simplifies the problem a little, it just doesn't have to change if I change certain, perturb certain dimensions.
And we then also introduce a set of different networks, illustrating here one network that we use in particular where we design locally equivalent convolutional layers. And it's a bit hard to explain that in a short talk, but basically you design kernels where the center of that kernel is zero, so basically ignores the point we're currently at.
We can then stack these into bigger networks so we get this like bigger locally accurate convolution network by using state dependent, the state dependent convolutions that I just talked about. All right, cool. So let's look at some results. So here we study the Ising model at a critical temperature. This should be a
Yes, there we go. So you see here the annealing over time run by leaps. So you basically start off like a uniform distribution and you end up with samples from the distribution. You see here on the left some observables plotted. So all of this is to show that the observables we sample or we get from leaps match the ones that we would expect.
Uh we compare it here with annealed importance sampling, so LEAPS is an extension of annealed important sampling. So essentially the red line is like sampling LEAPS of a hundred steps which gives an effective sample size of around sixty eight percent.
And you see that on the x-axis the number of annealed importance sampling steps that you could take, so without any neural network transport. And you see that annealed importance sampling requires almost a million simulation steps to achieve the same effective sample size or just the same order of magnitude of effective sample size. I should say and you know take this with a grain of salt like this does not account for training time and this is simulation steps not wall clock time.
Next thing, we're comparing here against MCMC samplers. So also I want to make here disclaimer like we're comparing here apples oranges. So this is just give you should give you a sense of like how we compare how MCMC samplers would perform on this task. But here also the effect of sample size kind of compares favorably in our favorably in our case. And we see that like this, we really learn a transport that gives you real samples with only a few simulation steps.
Quickly, we can also do this on other models. So here's the POTTS model, which basically leads to similar results and we're currently also working on scaling this up to other problems.
All right, just let's recap real quick. So as I said, LEAPS is a discrete neural sampler using continuous Markov chains that extends annealed importance sampling in sequential Monte Carlo. We're building, we're deriving these radon-nicodem derivatives, which then allows us to do this proactive importance sampling scheme, train with the spin objective, and to make all of this scalable we use these locally equivalent neural networks. We first showed that it's possible to make this scalable and also design a few initial
We propose a few initial designs. Great. Okay, so I want to finish off because there's a workshop. And I think, you know, because we got this great honor, I also want to, you know, stress the limitations of this of this work and encourage people to work on it more. So the main contribution of LEAPS, I think, is translating the sampling problem in this neural network design problem, right? So basically, it's like, how can we build these locally accurate neural networks? And I think...
We propose initial designs, but I think there's much better designs out there and I think, you know, would be great if people could work on designing better locally accurate neural networks. So one thing, for example, we could build approximately locally accurate networks. So, you know, if you say this is locally accurate up to some epsilon of 10 to the minus 9, I'm like, okay, I take it, right? So very, very happy to do it. We want to improve expressiveness and in theory, the networks we write down here actually
We proven it's not in a paper yet, but uh any new and that any continuous function you can approximate with them. But really it's expressivity divided by number of parameters that we're gonna push up here. And there's many other ways of making this scalable uh maybe that doesn't even require local equivariance like weaker constraints or something like this. Alright, I think I'm out of time. That's why I'm thanking my co-authors and leave it to the rest. Thank you.
All right. Thank you. So next we have Paul talking about debiasing guidance for discrete diffusion with sequential Monte Carlo. Paul and Brian. Sorry.
Okay. Hello everyone. Thank you for being here. So we're going to talk about debiasing guidance for discrete diffusion with sequential Monte Carlo and it's a joint work with Brian, Pierre Macar, Francisco. So the problem that we're addressing is essentially if you want to do standard guidance in general, it usually fails to sample accurately from like the desired temporal distribution.
So in yellow it's like this is a small 1D example, in yellow it's like the distribution that you want. In red it's if you were to apply a standard classifier guidance, classifier-free guidance, and like the size of the disk for the probability mass and you see that there is a mismatch. And in green, our magic method aims it perfectly. So how do we do that? So we're gonna come up with an SMC method based to unbiasedly sample from the temporal distribution and we do that for discrete diffusion.
And so we have three main contributions. We derived the exact transition rate for the anomalous sample distribution, which is already known in continuous diffusion. We propose the SMC method to sample from temporal distribution, and then we validate on some controlled images, sorry, and text. Okay, a small illustrative example, I like them. This is what discrete diffusion is, the standard 1D.
Category distribution, you noise it, it mixes to something. You learn a reverse, that's it. Here it mixes to a uniform, but most often you'll see like a mask distribution, like a mask process. Okay, how do we do that? Uh we do that usually with CTMCs, with continuous time Markov chain.
you have two things. So you have the forward HMTX, there is a backward one X_T_bar, and the main thing that has already been said is that there is a rate matrix R, and it tells you how much probability mass flows from X to Y. And it's important because that defines the transition probability from T to T plus D_T_ and this is the diagram basically showing you how it flows. Okay, and then the question is how do you sample from this conditional distribution?
Uh so if it was like the standard um conditional distribution, you have a s conditional rate matrix, and it writes as a the product of an unconditional rate matrix and as a ratio. That ratio of likelihood that you can learn with a store matching. Uh but then the question is how do you do it when there is a temperature parameter alpha. So what is done usually uh is that you just power up that ratio and then you
Pray for the best and hope that it samples from the from the temporal distribution, but it doesn't do that it's a known result and we also show it a bit more and Brian will tell you how we fix that now.
Thank you all for the introduction. And to begin this section of the talk, I'd like to thank Marco, Pierre and Francisco for the techniques that this work builds on. And so let me first talk about why sampling from a true tempered distribution is difficult. So imagine if you'd like to generate independent samples from this tempered distribution here. You would imagine yourself to be using a CTMC where the marginal would correspond to
the one constructed by corrupting this temper distribution, which you can see here, which is equal to the marginal of time T tilted by this expectation, or normalised, also have to normalise it. And the rate matrix that would generate

The rate matrix that would generate this set of marginals can be seen below, and it takes a very similar form, where you have the unconditional rate matrix related by this ratio of two expectations. One thing that you should note here is that this expectation is conditional on x_t. So this means that, you know, at state y at time t, you would have to simulate trajectories from time t to time zero, evaluate this over multiple Monte Carlo samples to be actually using this rate matrix. So with that.
That means that this would be very computation expensive, and if you don't want to pay this computational cost in inference time, you might not be able to do this. So our solution is to instead use SMC. So I'm sure a lot of people in the audience know what SMC is, but in the next slide I will still very briefly talk about how you can do SMCs. So to employ SMCs, the first thing you do is that you define a set of intermediate target distribution from time t equals 1 to time t equals 0, because here we're working in reverse.
reverse time. Okay, so here we choose the intermediate target distribution to be this p t x t to the by p zeta given x t. So this is the probability of you know of our samples belonging in class zeta given the current state at time t. So this is slightly different from the true marginal that we would see in the previous slide such that the weights are easy easily computable. Okay, so to construct the set of weights the easiest way is to do it via random derivative.
And for any arbitrary proposal process Qt, you first relate it to the unconditional one, and then you augment that with a term that brings you to the unconditional one towards the temperature distribution. In the paper, we also have a PDE-based proof, and in a concurrent work in this workshop for Feynman-Kak corrector, there's also an alternative PDE-proof, which we will discuss later. But using the rate-negative-2 box, we can very easily show the importance sampling.
inequality that we need to do SMC and it's just right here
So for those who are unfamiliar with SMC, what SMC does is that it computes this weights, which, you know, is a metric over how likely your sample is in the target distribution. It duplicates those with higher weights and dumps away the one with more weights. And that's basically it. And one very practical aspect of SMC is the resampling algorithm. And one tool that we found particularly useful is this trick called partial resampling, where, you know, at the resampling step, you don't necessarily have to.
you resample all particle at once, but you can select a subset of particles which you engage in the resampling. So you can see here, if you don't do any S_M_C_ at all, uh just doing guidance would have class would have samples that, you know, lies outside of class. Doing S_M_C_ with like polynomial resampling would collapse a lot, where using partial resampling would help massively. Okay and finally we move on from this small tiny image experiment to some larger scale things. So here you can see a G_P_T_ two scale test experiment.
with mass diffusion and we use as the proposal the wrong rate matrix that we were looking at earlier then that gives the beta temperature parameter and an alpha parameter which is the set of intermediate target distribution that we're obeying to it. And you can see here using a high alpha parameter here no matter what beta you're using you can still see the samples exhibit some uh uh property that we wanted to have so you can see here from the toxicity score graph
graph. And the other observation that you might see here is that
For perplexity, which is the likelihood metric, as beta equals to zero, which is the unconditional model, the perplexity is at the lowest range. And as beta slowly increases, the perplexity slowly climbs up. But however, changing alpha doesn't seem to change that quantity as much. So it kind of stays at using SMC doesn't change the quality of our sample as much. You know, but at the same time, perplexity has a lot of issues.
you know take this out so you know take this with a grain of salt okay and finally you know again like to highlight the work from from the family characteristics which has the equivalent result in Euclidean space so you can just replace the radial and the derivative that we had there with you know the Gersona version for ethos process and the result would be the same the proof techniques there are different and I would strongly encourage you guys to kind of talk to the authors of that paper
And that's it for the talk today, and any questions? Thank Thank you so much. I say we do questions maybe at the posters. And we have the last spotlight talk. I don't know if they're here. Distributionally robust posterior sampling? Great.
We have Bohan talking about their work on distributionally robust posterior sampling, a variational base approach. Yeah, thank you for the uh introduction, so my It's work is a cat. Okay, thank you for the introduction. This work is going to be more conceptual. Uh this is joint work with my collaborator Ben and uh my advisor David Bly. Um
So to motivate this uh line of work, posterior inference is sensitive to shape shifts in the data distribution, and what I mean. So there are more there are many cases in the machine learning uh applications where we encounter, for instance, distribution shift. Where the distribution we use has a at a test time is different from the distribution we use during training. What we might have data contamination where the training data itself is corrupted by some outliers or adversarial noises.
Uh I think rubber contamination statistics. And in real data applications we often encounter a mixed form of contamination. We have both global outliers o and local shift uh as well as distribution shift uh between test and training.
But if we want to do probabilistic inference, we want a robust based procedure that deals with this kind of distribution shift. And this is not what uh robust b based literature has looked at so far. So existing work on robust uh base sometimes look at prior sensitivity, sometimes look at model misspecification. And the one that closer to our work is um uh a paper by um f from Max Jordan's group that studies posterior mean.
uh under homocomm contamination loss. But this setting is restricted, as we see, because real uh data often have mixed form of contamination. And we want to get robust posterior samples, not just um point estimates. Okay? In this work we design a sampling algorithm that is provably robust under various contamination model, not just the Huber ones.
Okay, so to motivate our approach, we set up we we set up our probabilistic model. We have a log trend that's separable among the data data points. The goal is to sample from the posterior and the disc log trend. Uh in variational base uh setting we minimise the KL divergence with respect to the posterior. Uh and we can rewrite the um uh minimising objective using the empirical distribution of the data points.
Uh so to see the brittleness, if the empirical distribution is not the same as the population distribution, then um the posterior or the minimizer can be arbitrarily distorted uh by a factor of N_ And to solve this problem we propose a distributionally robust version of the variational Bayes algorithm, which I will show you now.
Um so in distribution robust setting we have ambiguity set instead of we looking at the uh empirical distribution which could be contaminated, we study a neighbourhood of this distribution, uh use here use Wasserstein distance. And the DROB objective is given by this minimax objective where we first maximise over the data distribution in this ambiguity neighbourhood, and then minimise over the space of uh um measures over the latent variables.
The linear max maximization problem finds the worst case data generating process distribution and the other uh minimization problem does posterior inference. It is in practice it is easy to work with this Lagrangian form where we transfer the constraint in the in the maximization problem to the uh to our Lagrangian multiplier. And this motivates a Wasserstein gradient descent ascent algorithm to solve the Lagrangian problem.
Okay, in the when we derived the worst and greatest descent algorithm, we there is a reparameterisation trick. Um we represent the worst and distance in terms of a coupling, and then we minimise the coupling given one marginal fixed. Uh the theta flow, which is the template flow, is the same as the Langevin S_D_E_ uh where we has uh S_D_E_ that drives towards the worst case exact posterior.
The innovative part is this uh adversarial flow where we want to mimic what the adversary does within a neighbourhood. In this adversarial flow we um does do deterministic ascent um with a given uh initial point from the data generating distribution. And that uh the the updating flow is given like this. This is c uh you can derive this by taking the gradient of the inner maximisation problem.
To algorithmize it, we use uh the Euler uh discretization scheme for the theta updates and gradient ascent scheme for the X_ updates. To look at an example of our algorithm in action, uh we uh study a very simple example from bivariate Gaussian. We start with a hundred clean observation from a uh g from a Gaussian distribution, where the unknown parameter is theta to the analyst.
And we have an adversary rep that replaces twenty points from this uh a clean data set with exponential outliers. The analyst does not know what the adversary does. So he or she posited a model that models the data using a Gaussian distribution and does posterior inference from there. So if we use our uh Wasserstein grade and descent as an algorithm for this task, we'll g get to recover the ninety five percent region.

get to recover the 95% region around uh the uh clade posterior, but if we do Dirichlet M_M_C_ M_C_ it drifts away uh because of the contamination. And if you see look at a plot on the right, the
The blue region is the exact 95% credible region of the posterior based on clean data. The blue dots are the results of our graded descent ascent algorithm, and the red dots are from Lagrange Monte Carlo. So as you can see, the Lagrange sampling algorithm is not robust against contamination.
And to see more simulations, we have uh the wash distance of the result of the resulting posterior against the clean posterior theoretically. Uh so as you can see the Langevin line is right there on top. It's very far from the clean posterior. But if we do a wash squared in descend ascent, it's closer to the exact posterior, uh and with smaller lambda we get closer examples.
Uh of course this is a more statistics paper, so we want to probably show that our posterior is robust. To see that we consider the following contamination model. Uh we have a data points, X_ one to X_ N_ and we want to look at all contaminations that are within some Wasserstein distance to the data points.
And this is what the adversary does. It uh takes uh returns the arbitrary distribution in this neighbourhood. And we want to show that our algorithm gave us uh robust posterior against this adversary. This is our main statistical guarantee. Uh so the K_L divergence between the
uh distributional robust variational base posterior and the posterior and posterior based on clean samples is upper-bounded by something called the Wasserstein regularizer. And this Wasserstein regularizer depends crucially on delta, the radius of the ambiguity set. And under mild smooth technical conditions on the loss function, we can show that the right-hand side grows sub-linearly in delta so that our
So that when delta is small, our uh distributional robust posterior is close to the clean posterior.
So we this is one contamination model, we can also study other contamination model. Uh in model one, which is local contamination, we show that Wasserstein gradient descent ascent algorithm give us provably robust posterior samples. Uh but there are other form of contamination, for example the contamination in T_V_ distance, which is equivalent to uh Huber contamination, uh in this setting we our empirical results show that official raw gradient descent ascent give us
probably robust samples. And we have the third case which is a mixture of these two contamination model. We have a global shift uh that where the adversary adds outliers and we have a local shift where the whole distribution is shifted by a little bit. In this case we uh our empirical results show that a Wasserstein Fisher-Rao gradient descent ascent give us robust posterior samples.
Uh to add my talk I want to give you a flavour of the worsting c uh Fisher-Laplace and descent ascent. In the sampling step we do the usual Gaussian gradient flow uh where we update the parameter theta using um uh the score and uh uh Brownian noise. And in the adversary step we um use a Fisher-Rao update, where we first run sinkhole algorithms to get a potential
uh fee which used to mimic the exact uh Washington potential. And then we instead of updating the sample we update the weight of each sample uh using the uh quantities that we calculate.
And a crucial question is why Fisher-Rao uh geometry is better suited for outlier contamination than Wasserstein. Uh the reason is Fisher-Rao geometry is updating the weights of the samples while Wasserstein is updating the location of the samples. Um so if we do perturbation and the Wasserstein because the outliers are very far from our actual data sets, the Wasserstein might take very long to shift the outliers to uh match our data set.
Whereas in Fisher -Rao we just decrease the weights of the outliers. And this is this is fast in practice. And uh that's it for this talk. For some future directions, we want to investigate the theory of um uh contaminate uh of sampling and their data contamination. Uh, curiously we have found that Wasserstein Fisher-Rao gradient flow is uh robust against mixed form of contamination, but we want to um
We want to show this in theory, and we also can want to consider other forms of distribution shape than design sampling algorithms that are uh robust. Thank you.
Okay, next we have an invited talk. We have Sitan who will be talking about mixture models, a lens on score estimation, feature localization, and guidance.
Great. Yeah, thanks so much for the invitation to speak at this wonderful workshop. So I'll be talking about some sort of theoretical perspectives on various empirical phenomena surrounding diffusion models.
Um, so I just want to start by saying, you know, the community represented by this workshop has really made amazing strides in the last few years towards developing a principled understanding, not just of how diffusion models work, but also how to make them work better. But I think it's still accurate to say that there's a whole zoo of empirical phenomena that we still don't really have the right theoretical framework to reason about.
So on the training front, you know, there's still this question of memorisation and creativity, right? So neural networks that are trained on the score matching objective to perfection, why are they, you know, not simply learning the score function for the empirical distribution over your data sets? And more generally, how are these division models able to kind of generalise out of distribution and exhibit kind of creative creative generation?
Right. I would argue that at the root of these kinds of questions is an even more fundamental question, which is in what context is score estimation actually algorithmically tractable, right? So what are conditions on the underlying data distribution for which there actually exists some polynomial time algorithm to perform score estimation, right? We know that if you can solve this task, then you can sample from, you know, very rich distributions, but it remains to be seen, you know.
You know, what is the ultimate computational complexity of this problem? On the inference side of things, you know, we've come a long way in understanding things like discretisation error, but I would argue that it's still you know far from clear how we're able to get you know generations for which discretisation error doesn't hurt you in this the very few NFE regime, which is kind of the norm today. There's the persistent question of you know should I use an SDE-based sampler, an ODE-based sampler or some other choice of path.
Right. And then in this talk, we're going to focus on two other kind of empirical questions that arise in inference. One is which has been touched upon in one of the spotlight talks is, you know, it's clear that things like classify free guidance aren't actually sampling from, you know, the appropriate tempered distribution, but it seems to be doing something very effective in practice. What exactly is that?
And lastly, another interesting phenomenon that happens with these models is that certain salient features of the generated outputs appear to emerge in very narrow time windows during the sampling process. So what is this origin for this sudden feature emergence?
Okay, so on on surface these kinds of questions are all, you know, they're within this wide kind of menagerie of uh of of uh questions that one would like to understand. And the reason I'm gonna tell you about um uh these specific problems that they actually admit kind of a unifying uh theoretical abstraction um which turns out to be fairly productive for getting useful mathematical insights.
Again, that abstraction is fairly simple. It's just to view the data distribution through the lens of measure decomposition. Okay, so suppose I'm interested in generating samples from some data distribution over R_D, and let's call it Q.
And we're going to regard Q as ultimately being decomposed into some nice atomic measures. So imagine that there is some distribution over parameter theta, and we imagine that Q is simply a mixture across all of these constituent distributions Q sub theta. So here theta might correspond to perhaps modes of your data, in which case each of these Q thetas might be some kind of bump around that mode.
Theta might, on the other hand, correspond to, let's say, image classes, right? So in which case the constituent Q thetas are simply conditional distributions.
And theta might also correspond to subpopulations in your distribution. So if I imagine that my data distribution comprises samples that each have different relative intensities of different kinds of features, then theta might correspond to a particular profile for those intensities. And each Q theta then will be a corresponding subpopulation in my distribution. Okay, so mathematically these are all kind of equivalent notions.
But I find that it's helpful to think about the ways in which one might decompose such measures in a natural fashion. And through this perspective, you can actually get some useful theory for understanding.

useful theory for understanding the questions that I mentioned on the previous slide. So specifically in this talk, I'm going to tell you about how to use mixture models as a way to think about things like the algorithmic complexity of score estimation, how to think about what exactly diffusion guidance is doing, and lastly, how to get an explanation for this sudden feature emergence phenomenon that we encounter not just in diffusion models, but actually more generally for any kind of
if localization -based generative model. Okay, so hopefully the the plan is clear. So let me start by talking about the complexity of score estimation. And so this is a slide that you know sort of needs no introduction for for this audience but just to make sure we're on the same page notationally. All right, so let's just let's just work with the the most basic instantiation. So let's imagine we're using DDPMS, okay? And I want a sample from some target distribution Q.
And let's say I just want to run the reverse SDE. So really the object that I care about is the score function, this gradient of the log density, of the distribution convolved with some noise. So here Qt corresponds to the marginal if I run the Ornstein-Rohlenbeck process for time T. So the larger T is, the higher the noise level is. Okay? Okay. So this grad log Qt is the thing that I want to approximate with the neural network.
Right. And OK, this is, you know, old news at this point that you can get access to that object approximately through supervised learning. Right. So ultimately, what I want to be able to approximate is some kind of denoiser. And in practice, to learn that denoiser, you just train on a bunch of samples that have been corrupted by noise and you want to be able to predict what was the noise that was used to generate that noisy sample. OK, so this is all very standard stuff. But kind of the burning question at the heart of this is.
Why is gradient descent able to accomplish this task? In what context is it actually successfully learning the score and what are the underlying learning mechanisms that ensure that that's the case? This is a very, very difficult question in my view. But you could take one further step back and ask in general, ideally the end goal should be to understand why gradient-based algorithms can succeed, but more generally why is it that any polynomial time algorithm can do the trick?
Okay, so this is the question that we'll we'll try to answer. In uh you know it turns out that this question is is fairly non-trivial even for rather simple toy models of data. The toy model of data that we'll consider is a Gaussian mixture model. Right? So uh we imagine that our data distribution is some convex combination of uh Gaussian distributions, and throughout this discussion we'll uh let K denote the number of uh components in this Gaussian mixture, and we'll let D denote the ambient dimension.
And our goal is the humble goal of distribution learning. Given a bunch of samples from the stated distribution, I want to generate a sampling oracle for some other distribution which is close statistically to my target distribution. And at least in kind of this neck of the woods in learning theory, this is a widely studied toy model for understanding what is the ultimate complexity from a computational standpoint for learning from multimodal data.
So I'm going to show you that actually this problem you can solve using diffused models. And in fact, you can get an algorithm that provably estimates the score for such distributions.
And kind of the surprise, at least for myself and my co-authors, is that this actually yields sort of state-of-the-art theoretical guarantees for this very toy problem in theory. So this is a problem that's been studied from many different angles, certainly not just from the perspective of generative modeling, many sophisticated kind of theory algorithms for this problem, but somehow diffusion models end up giving the best known guarantees for this.
Okay. All right. So just to recap what's known for Gaussian mixture model learning. So this is something that we learned and kind of intro to ML courses that maybe you should use EM. But in terms of the actual sample and computational complexity of this, on the sample complexity side, this is totally solved. Okay. So with optimal sample complexity, you can learn a general Gaussian mixture, but in time which scales exponentially in the dimension. Okay. So very inefficient.
On the computational side of things, thanks to this long line of work within the theoretical computer science literature, we now have an algorithm that effectively scales the right way in the relevant parameters, namely the dimension and the number of components. And why do I say it scales the right way? Because there's a matching lower bound.
But the caveat is that this is this term in red, which I pray shouldn't be there. This is a term that scales doubly exponentially in the number of components. And it appears for various subtle technical reasons that ultimately stem from the fact that you could have components that are arbitrarily close together.
and you don't have an a priori estimate for how closely spaced your components could be. And this poses various mathematical issues that might not emerge in practice, but at least in terms of the best known ways for us to analyze the complexity of this problem, this is a bottleneck.
All right. So where do we go with the story? Well, it turns out that you can get around this doubly exponential dependence by using diffusion models. Okay. So this is a joint work with my wonderful collaborators, Vasilis Kontonis and Kulun Shah, where we show that under mild technical conditions, technical conditions that would still result in kind of a doubly exponential dependence using prior techniques, there actually is an algorithm that scales qualitatively.
with just singly exponential dependence on the number of components, and it's based on score estimation. So at least on the sort of theory side of things, to my knowledge, this is the first example of a learning problem, a distribution learning problem, for which an algorithm from practice actually provably outperforms the best known kind of theoretical guarantee. So I find that as a theorist quite exciting.
And as I alluded to, the main challenge from an algorithm design perspective is how you can really show that you can perform score estimation efficiently. So I'll give you kind of like a one slide summary of how that argument works, but the main takeaway from this part of the talk should be that what made these prior works kind of struggle to get over this doubly exponential hump.
turns out to actually be an easy special case if you want to use score estimation okay so let me let me give you kind of a flavor of the proof all right so in general the the strategy will be the same as what people do in practice but of course we're not going to use neural networks because that's very painful to analyze instead we're going to use just low degree polynomials but otherwise the the recipe should be the same you want to run ERM
with a particular carefully chosen hypothesis class, and for us we're going to use low-degree piecewise polynomials. Okay, so why is this hypothesis class sufficient for our purposes? So let's start with a base sort of a very simple example. So let's imagine we're working just in one dimension, and we have just a mixture of two Gaussians. Okay, then you can explicitly write down what this score function is, and you get a linear term, and then you get this non-linear tanch term.
Okay, now you can plot this Tanch term as a function of mu. So what is mu? That's effectively the separation between the two modes of your distribution. And you see that as that separation increases, as these components get further and further away, this Tanch converges to a sine function. So it gets less and less smooth. But when the components are closely spaced, this Tanch function is...
smooth and just using off -the-shelf guarantees for polynomial approximation, you can get just a low degree approximation to the Tanch function. So somehow in the challenging regime where the components are closely spaced, you can actually approximate the score fairly easily.
Now the issue for score estimation is kind of the opposite regime. When the components get further and further away, as mu, the separation level, increases, the score function gets less and less smooth and it becomes harder and harder to fit using a low degree polynomial. And so the key punchline is that that is sort of the easy regime because when polynomial approximation is hard because you have far away components, that means that those components are already just easy to directly cluster.
Okay, so instead of just using a single polynomial to approximate your score function, you can simply naively cluster your data into these super clusters, and then within each super cluster, you know that all of the components within that super cluster are closely spaced, and therefore the score function over that sub-region is sufficiently smooth that I could approximate it with a low degree polynomial.
Okay, so within each of these clusters, I'll use a different polynomial. Overall, I get a piecewise polynomial that efficiently approximates my score function, and I can learn that using polynomial regression.
OK, so this is an algorithm that shows that at least in principle, score estimation for this fairly expressive family of distributions is algorithmically tractable. Whether or not gradients descent can learn such a thing is another question. And this is a question that we also looked at, not at this level of generality, but for an important special case. So let's imagine that now the components of your Gaussian mixture are identity covariance. So now you just have spherical Gaussians.
Well, the score function for a mixture of spherical Gaussians admits a fairly nice form. It almost looks like a tension. And so you can imagine training a neural network, a very shallow one at that, which matches the architecture of the true score function. And what you can show is that actually gradient descent does converge to the true parameters of the distribution in two special cases. One is when we're working with a mixture of two Gaussians.
And if working with more than two.

And if we're working with more than two Gaussians, we can at least show some kind of local convergence guarantee that says that if you can warm start the parameters, then it'll converge very quickly to the ground truth. Okay, so I don't want to say too much about this group. This is maybe, I think the conceptual takeaway here is the more interesting aspect, which is that if you stare at the actual gradient updates for this architecture.
You find that they mimic two existing off-the-shelf algorithms for learning mixture models, and it really depends on which noise level you work at. So if I look at score matching at high noise levels and I look at the resulting gradient update for the score matching objective, it actually looks very similar to one step of power iteration on the covariance of your mixture.
So that's just some classical spectral algorithm that would succeed at learning a mixture of two Gaussians, and you see that it just pops out naturally if you look at the gradient.
On the other hand, if you look at the score matching objective at low noise level, you find that this gradient update looks a lot like one step of gradient EM. So again, some off the shelf algorithm that naturally pops out of the analysis of gradient descent for score matching, right? So this, I think, is, you know, hints at some interesting future work to be done on learning dynamics for score estimation that, you know, I'll leave to this community. Great. So now let me turn and switch gears. So
So, you know, if you don't care so much about computational complexity, but you do want to understand various phenomenology in the practice of diffusions, then let me now tell you about the dynamics of guidance. And again, we're going to sort of take this mixture model perspective.
Okay, so fortunately, the kind of general setup was already introduced in the spotlight talks, but let me just remind you, we're interested in sampling from some kind of tempered distribution. So let's say we actually have access to the score functions for some base distribution Q.
We have some function h, and now I want to sample from the tilted measure q tilde. q tilde, the density is proportional to q times this exponential tilt e to the wh, where w is your guidance parameter or your inverse temperature parameter, and h is your reward. Okay, so in the case where the guidance parameter is zero, then you're just sampling from the base distribution, and that's trivial if I already have q.
When W equals 1 and let's say this function H is log of Q of Y given X or Y, think of it as some kind of class label. Then this is simply by Bayes' rule sampling from the corresponding conditional distribution Q of X given Y. But in practice, we don't take Q to be 0 or 1 or even anything between 0 or 1. We take it to be like 3 or 5.
Right. So we, you know, and it turns out that if you take a guidance parameter which is relatively large, nice things happen.
Okay. So what do people do in practice if you are just working in kind of like a training-free setting where I just want to cheaply modify the drift of my diffusion model, then a longstanding kind of popular hack has been this trick of diffusion guidance, right? So you say, well, I want to get access to the score function for this tilted distribution. Well, the gradients of the log density of this tilted distribution is just the sum of the gradients of the log density of my original distribution.
function plus some multiple of the gradient of the reward okay well the issue is that you know as mentioned that's fine if you're just working with the base density you know at noise level zero but in general you need access to the score function at all noise levels
And so in practice, you know, people just take this approximation, which here is entirely principled, and they pray that some kind of approximation also works even when I work with the noisy distributions.
And of course, this is not quite principled, but people use it anyways. And as you can see, if I look at unguided samples versus guided samples, I think with guidance strength like five, the quality in the generations is rather stark. And what you see is both samples which are archetypal in the sense that they very closely align with whatever prompt you were given. I think in this case it was something like pandas over stained glass.
But you also see that there's a corresponding drop in diversity. And worse yet, if you increase this guidance parameter any further, you're going to start getting degradation in the quality of your samples. So this is stuff that in practice we've known for quite a long time. So it's clear that this is not sampling from the temporate distribution you want. And the issue, of course, is that applying noise and applying this tilt operation, these operations don't commute. But you can still ask, like, what's going on in this picture? Why is guidance actually doing something useful?
And here's kind of a very simple toy model for thinking about the dynamics when I sample using guidance. And this is going to be the world's simplest mixture model. Let's imagine a mixture of just two uniform distributions over disjoint intervals. And let's consider the world's simplest reward model. It's just one that picks out the interval on the right.
right so it's equal to one if your point lies in this blue interval and it's equal to zero otherwise but but apart from that it doesn't encode anything about margin right so it doesn't benefit you to somehow be further from this other class all of the points on this blue interval actually get the same reward okay so what is guidance sample from if you really wanted a sample from the tempered distribution then you would just end up with the uniform distribution on this blue interval
But that's not what guidance samples from. In fact, you can run this experiment and you see that it's actually sampling from things very close to the right endpoint of this blue interval.
Okay, and in this joint work with Muthu Chidambaram, Kashiargat Miri, Holden Lee, and Jianpeng Liu, we give a very precise analysis for what exactly guidance is doing on this toy distribution. And I think there are some interesting takeaways from this analysis. Okay, but what we show is exactly a sort of theoretical confirmation of this behavior that we saw on the previous slide, where all the samples are, you know, as you turn the guidance parameter higher and higher,
here the sample is concentrate at sort of the rightmost endpoint of the target distribution okay and this analysis you know you don't really need uniformity this works for Gaussian mixtures it works for non-uniform distributions over these intervals that have bounded divergence with each other but let's just focus the discussion on the uniform case
Okay? And so I think the main takeaway from this analysis is the fact that the dynamics of guidance have this interesting two-stage behavior, right? So in the first stage, what the particle is doing is while you're guiding it towards this rightmost interval, so it stands to reason that's going to move toward that, but it actually will swing past it, well past it, right? So that's the first phase. In the second phase, what happens is that it will gradually move back to the support of the data distribution.
But the velocity field at that point is, you know, it's not sufficiently large that you move really quickly back to the support. And in fact, you don't really have that much time to move back to the support because the first stage occupies most of the reverse process. But at the very end of the reverse process, what happens is that the particle gets guided back to the edge of the support.
And once it reaches the edge of the support, there's a relatively little movement left at that stage so that you end up just within a vicinity of the rightmost end point.
And this is something that you can at least see on MNIST, but I won't go into the details of this. I think conceptually the main takeaway from this part of the talk should be that this gives a nice story for why diffusion guidance is exhibiting these various properties. So for instance, if you take large guidance, guidance which is larger than just W equals 1.
What you get are samples which are generally low diversity, right? So even in this toy model where the reward doesn't have any notion of margin baked into it, what you end up with are samples that have very high margin relative to the class that you don't want to guide towards. And they're archetypal in the sense that they're very far apart geometrically from the other class.
additionally you know why is it that when you take guidance really large you get degradation in image quality well if you look at these this two-stage dynamics what's really happening is that I mean we've made no assumptions about estimation error we assume that we actually had perfect access to the velocity field and what we find is that in that case you're swinging well off the support right in this first stage and so it stands to reason that as you increase the guidance parameter you swing even further away from the support
Well, we expect estimation error to be, you know, to get worse as you get further and further from the support of the data distribution. And at some point, you know, the image quality will degrade simply because your estimation error is too high and you're too way too far off of the data distribution. And so these are some natural intuitions that, you know, practitioners have. And this is maybe some theoretical confirmation that that's exactly what's going on. Okay, so I probably don't have time to go into the proof. So let me now skip to the last part of the talk.
Um, so now I want to talk about, uh, you know, the last part of the story, which is, uh, about feature emergence.
Okay, and the phenomenon that I want to kind of surface here is what we like to call critical windows. Okay, so it's been observed, you know, a while back that diffusion models, and in fact other kinds of generative models as well, have this sort of phase transition behavior where let's say I have just as a concrete example, some image of an animal like a horse.
And if I run the reverse process to sample from the distribution over such images, what I find is that, you know, I can run the following experiment.

I can run the following experiment. So I take the, let's say, the SDE trajectory that generated this picture of the horse. And now let me rewind this trajectory to some intermediate point in time and then rerun the SDE starting from that point. And I can ask, if I rerun starting from that point, do I still get an image of a horse? So certainly if I rerun for only a small amount of time,
And then I run the SE again, I'm going to get pretty much the same image because I haven't added too much noise when I rewinded the process. But if I rewind the process all the way to the beginning and just start with a fresh trajectory according to the SE, then I'm going to sample just a fresh image. Okay. And so then in that case, the probability that you get a horse will be much smaller. But the key phenomenon is that if I look now at intermediate time windows.
There is kind of the sweet spot of time where if I rewind this process and rerun the SDE, what I find is that the probability that you get a horse jumps very quickly from effectively 0% to 100%. So this was observed, I think, by multiple works. This is just a very one particular nice figure that was shown in this work by Madri's group and by Giorgio et al.
Okay, so that's essentially the phenomenon that we want to understand. Just to kind of rehash what the experiment is, you're effectively starting from some generation.
running the forward process again up to some time t and then running the reverse process from that point in time to get a fresh sample. And the question is, what is the probability that you get an image with the same kind of feature that you're interested in? So for instance, if your feature is that it's an image of a cartoon cat with a laptop, then depending on how much noise you run this experiment for, you can transition from your original image to something that doesn't have that feature.
And maybe there's some sweet spot of noise where you don't exactly get the same image that you started with, but you get something with that particular feature. Okay, so we want to understand why these kind of critical windows happen. So we're going to use mixture models to understand that. So we're going to model the data distribution as some kind of mixture over atomic distributions.
And if I have a particular feature in mind, I'm going to think of that as a submixture within my overall mixture. So it's going to be a sum over all atomic distributions in this measure decomposition which satisfy the the feature that I'm interested in.
And just as a bit of notation, if I have some subpopulation Q superscript S and I run this noise -denoise experiment starting from a sample from that subpopulation, then I'll denote that by QS bracket T. So the larger T is, the longer I run this noise-denoise process for. So let me just briefly state the result and wrap up. So what we show is that there's actually a fairly clean characterization of when these windows emerge.
So for concreteness, let's imagine that I have some subpopulation I care about, let's say S, and that maybe is the subpopulation of images of cats and dogs.
And on the other hand, maybe I have, you know, some larger subpopulation that's oh, sorry, let's say my the target subpopulation is cats and the larger subpopulation is cats and dogs. Now you can ask if I start from the smaller subpopulation, I run this experiment, how much noise do I have to add before I denoise so that I actually end up in this larger subpopulation of, let's say, cats and dogs?
And effectively, the range of times that you can run this noisy noise experiment for and get a sample that's approximately from this larger subpopulation is demarcated by the following two times. The first is the minimal amount of noise that you need to add before these two subpopulations become indistinguishable. And the second is the maximum amount of noise you can add before the target subpopulation and its complement overlap.
Okay. And so this defines some range of times so that if I run this noisy noise experiment starting from a particular subpopulation, I will then degenerate to this larger subpopulation T.
Okay, but of course this is all like fairly abstract. The burden in terms of the analysis is really on understanding when the resulting windows that you get out of this are actually sufficiently narrow. And, you know, we give these kinds of analyses for various families of distributions in the paper. The main takeaway should be that in general if I have a distribution which has sort of well separated components and some form of hierarchical structure.
then these critical windows will emerge. So you can kind of think of this as there's some notion of saliency of a feature, and if that feature is sufficiently salient, then there's kind of just a generic probabilistic reason why these critical windows will emerge.
Okay, and the last thing I want to mention is that actually this is not specific to diffusion models, and in fact the theorem applies not just to diffusion models, but also to, let's say, autoregressive sampling, mass diffusions, what have you. The proof actually doesn't use anything specific to Gaussian diffusion, it just uses the fact that the sampler corresponds to some so-called localization scheme.
Okay? And indeed, this kind of critical window phenomenon shows up all the time in the context of auto-gressive uh models. Um and you know, I won't kind of go into these uh these figures, but let me just mention that kind of one uh auxiliary finding that we that we had uh is that these critical windows often coincide with failures in reasoning. Right, so if you actually look at uh the range of tokens over which this critical window emerges, you can check that actually the the point at which the you know, the
you know, with the autoregressive model screwed up in their mathematical reasoning exactly happens in this in this window. So this doesn't happen all the time, but it there there is a strong correlation and indeed this correlation with reasoning failures was the basis for a certain you know post-training intervention that I think the FI4 folks used. Okay. All right, so just as some general takeaways, I think that's this general abstraction of measure decomposition is fairly flexible and useful for thinking about various aspects of training and inference.
in generative models and we saw three specific instantiations of that abstraction first for you know understanding the algorithmic complexity for score estimation also understanding the dynamics of guidance and finally for understanding critical windows of feature emergence so with that happy to take questions thanks Thank you so much for the great talk. Do you have?
Perfect. I was going to volunteer for that. Hi. Uh thank you for the great talk. Um I had a question about so at the first part of the talk you showed some theoretical result on the score s um ability to learn the score. Yes. Um and you had some assumptions on the Gaussian mixture models. Yes. I was wondering if um you've al also have these results for
low-rank covariance matrices when the covariance matrix is not full rank. Ah yes. Yeah, that's a great question. So um this is maybe more of a like c uh uh uh technical obstacle than I think a fundamental one. Um so we do need that the covariance matrices are relatively well conditioned, but the dependence on the condition number is is fairly benign. Uh so uh for low rank, the the issue is that okay, the distribution will now be degenerate. So you can't hope for something like that.
like TV recovery. But what you could hope for is maybe some kind of hybrid recovery guarantee like okay I samples from something which is close in TV to something which is close in Wasserstein to the target. And these kinds of things you can get through some form of early stopping. So I can imagine instead of targeting the distribution at noise level zero I target a low rank mixture but convolve with some noise and you would build a sample in TV from that but yes. Hmm
But Okay. the the distribution will end up will will still fill the space Yeah, fully. that's right. Yeah. That's right. So learning the manifold itself, uh you can imagine maybe doing some post-processing, but this part to you we we don't address. Yeah, that's a good question. Yeah. Thank you. Thanks. Uh thanks for the great talk. So on your second part
Uh so you basically on the certain toy examples you show that Yes. uh that the guidance the way people do guidance these days are not not ideal. So a any intuition on like building like a better uh a guidance technique scheme so to speak? Yeah, yeah. That I mean, it's a hard question. I mean, this is, you know, a lot of, of course, works in even in this workshop alone or and at this conference on targeting this kind of question. I would say we don't.
It doesn't really shed any light on explicit interventions, but it raises the question, are there alternative tasks that you could try targeting beyond sampling from the temper distribution? For instance, one thing that I haven't really seen articulated, at least in kind of my area of learning theory, is alternatives to distribution learning or sampling in traditional statistical notions. For instance, you can imagine some kind of learning goal where instead of
of sampling from a distribution which is close statistically to the underlying distribution maybe I wanna sample from something that's close in some sense to the data manifold, whatever that means, uh but still has sufficient diversity. And this kind of thing, it might be reasonable to try constructing different en interventions, um but yeah, that's a conversation for another day. Yes. Yep. All right. Let's oh you have one more?
Hi, thanks for the nice talk. Um do you have some recipe for finding the critical windows so as to discretize perhaps more finely or adapt the schedule around these times? Yeah, yeah, it's a great question. I mean, that's largely like, you know, that's a very important motivation for

You know, that's a very important motivation for understanding these because it's really the key places in the generation process where certain crucial decisions were made. So I think the general rule of thumb that we have is
Okay, there are really these two quantities, right? There's this T0, which is the amount of noise you need to destroy the distinction between your two subpopulations. And then there's the amount of noise you need to kind of disentangle the target from its complement. I think the best rule of thumb that we have is if I have a mixture of distributions that have some notion of separation, then the amount of noise you need to destroy at least from the perspective of Gaussian diffusion is really just...
really just like something like logarithmic in the separation between these components. And so if you have a mixture for which you have this hierarchical structure where components within some supercluster are much closer to each other than they are to things outside the supercluster, that's precisely when you get narrowness. In the paper and you know happy to talk about this during the poster session, we also show some interesting connections to this phenomenon of like the all or nothing phenomenon.
um uh and uh you know so they can also arise for instance in the context of in-context learning, um but yeah. Oh, oh. I guess the last question.
Uh have you looked at the rank of the score function uh throughout the simulation? I think there is some work showing that at least in um like image uh diffusion models uh the effective rank uh in the middle of the simulation is quite low. Um I wonder if this also shows up for your model.
Oh, so are you asking about whether there's like a phase transition in the rank in the context of critical? Yeah, no, this we haven't looked at. But yeah, that's very interesting. I mean, even even the earlier parts of the talk when we're talking about just Gaussian mixtures, somehow that level granularity we haven't really surfaced yet because this notion of estimating the gradient of the log density we're applying, you know, because you have Gaussian mixtures, those are closed under under the noise process.
Um so sort of every noise level is created equal in our in our context, uh but that definitely is an interesting uh direction to look at. Great. Alright, thank you so much. Let's thank Zitao one more time.
So just a few points, we have a a break until three fifteen. If you got the g uh Morgan Stanley travel grant, please come and find me. I need to confirm your attendance. Uh and please put up your posters for the next poster session and if you have it on from the previous one, maybe like take it down so that we can um have space. Also if you're on the panel, can you come to the front for a brief sync.

Okay, next we have Mary Lou from who's an assistant prof in the physics department at UNS Paris.
I think Marilu, you can go ahead and share your presentation. I can go? Okay, because I'm not seeing the slide on the screen, so I wasn't sure. Yeah, perfect. Okay, thank you. Yeah. Hello everyone, can you hear me? Can we hear?
Yes. Yes, is it okay? Okay, so I'll start. So thank you very much for putting together this very nice workshop. I'm extremely sad I couldn't join and I'm very grateful that I have the opportunity to present our work here, even remotely.
And so my talk indeed is going to focus on multimodal distributions and on methods that are inspired by diffusion models and their denoising process. And all this work has been done with the three great collaborators. So Louis Grenieux and Maxence Noble who are in person at the workshop that you might have already discussed with and my colleague Alain Olivier Voyamas.
And to start with, I'd like to convince you that multi-model distributions are not at all a special case and that they are actually highly common. And one first set of applications where they can be found is in physics, where a target distribution rho star can be given by a Boltzmann distribution. So knowing an energy function for the system U of X, we have that rho star of X is proportional to exponential minus beta U.
And for example, if we look at molecules and here more specifically the very famous small protein alanine peptides, if we look at projection of the marginal distribution as a function of two of its angles, we can see very well that the distribution is highly multimodal, that we have several different wells of high densities that are separated by energy barriers, so if you want low density regions. So this is one instance where we have a lot of
with remote distributions but it can also arise in Bayesian inference in particular under scarce data where this time our target distribution rho star is going to be for a parameter of some model theta
And then if that is going to come from base formula of course with the likelihood and the prior distribution L and row zero and here we can see from this little example that comes from astrophysics that if we are looking at the radial velocity as a function of time of a star around which is orbiting an exoplanet we know that this is a periodic signal so we want to fit a periodic model.
And if we have little data, we see that if we look at the period and the phase, well, there are different periods and phases that can fit the data as we were just seeing before. And therefore, you will transcribe in the posterior distribution in several highlands of possible parameters and therefore something that is quite multimodal.
Now why should we care so much about multimodal sampling if it's everywhere? It's because it's very hard and I would argue that if we think of the two fundamental approaches to sampling that were really introduced at the same time as sampling was really becoming something we can see this very clearly.
One first fundamental approach to sampling is to shoot largely in space and then reprocess the points. So either by some accept reject or by some rewriting. And so one such instance is important sampling. And if I exemplify this important sampling on a simple two-dimensional multi-modal distribution, it could go like this. So this is my target flow star.
I'm using proposals realization. So I take as a proposal a white Gaussian and I shoot very extensively with this unimodal Gaussian. Then I compute the importance weights that are going to balance or be the ratio of the target density rho star and the proposal density rho prop.
And if I then use ponderated sum to make estimations of expectations, I can see that I will recover good representations of the fact that we have a multimodal distributions, but we can also see that most of the points that we have shooted at the beginning, those points, the realizations from the proposal, they have taken a weight that is actually equal to zero because they were.
They were in between the two modes and so they are in a sense wasted computations whereas only few points that really lied in the high density regions are being used to make the estimation and this means actually that we are going to have high variance estimators when we are trying.

as estimators when we are trying to do this important sampling on multimodal distributions and this is of course going to become harder and harder and more and more of a problem as the dimension of the problem increases and so this is where we should turn to the other very fundamental approach to sampling that is Markov chain Monte Carlo samplers
that I've done a lot of good in high dimension precisely and if I run on my little example two chains of one instance of this Markov chain Monte Carlo namely here the metropolis adjusted Langevin I can see that the realizations that I'm creating with these two chains if I collect them to create estimators of expectations with respect to rho star they're going to describe well what happens
in each of the wells but they are going to miss some global information about the distribution namely the relative weights of the two different components of my target mixture of Gaussian here so
this results in high bias estimates and if I summarize this means that on one hand we have a fundamental approach that endorse multi-modality but actually does not scale with dimension and on the other hand we have something that scales better with dimension but that does not handle multi-modality so this is you know the one-on-one samplers and we see how they struggle with multi-modality but of course there has been decades of research on how to best
best tackle those multimodal distributions. So starting with annealing methods where the idea is to have a pass of distributions that bridge the target we are interested in with easy to sample distributions. And this is the case for example with parallel tempering also known as replica exchange, annealed important sampling or sequential Monte Carlo.
It's also another category of algorithms that is really custom made for multi modality are enhanced sampler with so-called collective variables where here the idea is to identify low dimensional projections that are going to separate well the different modes if you want like a bit in my first example of alanine peptide and then force the exploration of this lower dimensional space to really force the fact that the sampling algorithm is going to visit all the modes.
And this is the case, for example, of metadynamics, the adaptive biasing force algorithm or umbrella sampling, which are all very popular in molecular dynamics simulations.
And of course more recently, and that's been the core of this workshop, there's been another kind of enhanced samples if you want that are assisted by generative models, where the idea is to train the model to approximate the target and then to use it as a helper and I'm sure you've heard a lot of it already. So this has been mainly done with autoregressive models, normalizing flows and diffusion models and this talk is going to be precisely on strategies that are inspired.
by diffusion models. So this is why I call the talk sampling by denoising.
And as you know, when we have still this little pictorial example, when we take samples from it, we can bridge them towards sample of an easy distribution by adding noise and specifically using a stochastic process such as this Ornstein-Uhlenbeck process that converges towards standard Gaussian distribution. And this creates again a bridge of distribution a bit like in an...
machine learning methods where the time marginals are convolutions between the initial target distribution rho star and the Gaussian kernel.
And the idea, of course, would be can we now use samples from the simple distribution, so here the Gaussian standard, and denoise them such that we create samples from the target. So, of course, for this we can think of the backward denoising process, but for which the score, I mean, it involves the score of the marginal distribution, so the gradient of their logarithm, and of course this is something that is non-tractable.
So as probably everyone in this room already knows, in diffusion models these scores are learned from an extensive set of samples and here the question is can we adapt this idea to sampling problem where we don't have samples, merely the knowledge of rho star of x or up to a normalization constant usually as a two star points.
So I will discuss two approaches we worked on, a non-parametric approach and a variational approach. And so I'll start with this non-parametric approach that we call stochastic localization via iterative posterior sampling, or SITS.
So this belongs to the class of Monte Carlo diffusion samplers that rely on the following idea that to simulate the backward denoising process, we are going to build an estimator, a statistical estimator of the intractable score. And for this, we rely on Tweedie's formula that links the score to the denoising function, where this denoising function is the conditional expectation.
of what was the realization at time 0, X0, knowing that at time T we are at Y, so it's the conditional expectation with respect to the so-called posterior distribution. So the Montecarlo diffusion samplers boils down to a Montecarlo estimation of the mean of this posterior distribution that is simply given by the
Try, I mean, the initial distribution will stop multiplied by the noising kernel, so p t of y knowing x0, that is simply, again, sticking to this Erstein-Lungberg process for simplicity in the talk, is going to be given by a well, I mean, a known Gaussian kernel. So, okay, so we'd like to build a Monte Carlo estimator of this denoising function in order to be able to simulate the process backwards.
wealth and therefore sample from growth star. And so slips among those Monte Carlo diffusion samples rely on the idea of estimated disposterior mean via Markov chain Monte Carlo.
And let me walk you through an example in 1D to show you a bit how the different distribution looks like and so how the algorithms unfold. And you're going to see that actually they're going to be linked with the previous talk on the critical window, although I could not hear the entire talk. I got that there were definitely some links here that would be nice to explore. So I have a 1D example. It's a multivariate target. My roof star in blue dashed line.
And I have as a function of time in colors, so red to actually white to black going through red, the time marginal also of this Pt of Y, that is this convolution between the target and the Gaussian kernel. And we have in green one realization of the backward process.
That's one realization of the backward process. So given this one realization of the backward process, what we can do is look at the posterior distribution, that is this probability.
Density of X0 knowing that at Xd we were at the location Y and if we look at this denoising and this posterior distribution as a function of time what we can see is that at the beginning the process I mean it's not clear if the process is going to go towards one of the two modes so this posterior is multimodal but then after sometimes it starts to be more and more peak and becomes unimodal and so this means
That's the posterior is actually going to become easy to sample after some time T0. And so in a sense, then we can estimate the score and we can simulate the backward FDE. And so it means that we want to start, if you want, our integration at time T0.
But then the problem becomes, how do we initialize the process? Because if we knew that in terms of backward time, Y0 is simple, it comes from a standard distribution, standard Gaussian distribution. Now we need to be able to compute, I mean, to sample Y0 to start the integration from there. So how can we do this?
So again, as long as I have t large enough, I can take 2d's formula and use it to estimate the score by estimating the posterior mean using some MCMC, some traditional local MCMC. Now to start the yt0, I should look at the marginal distribution of yt as a function of time and here I see that the opposite is happening from the posterior.
Well, at the beginning it's a unimodal and after some times it becomes multimodal.
So it means that we end up with the following situation where we want to take the intersection where the marginal is easy to sample with MCMC and the posterior is easy to sample with MCMC and so we end up in with a given time window with which we can start the algorithm and since this is wrong we say that it respects the so-called I mean
something we call the duality of lock concavity because we need both of these distributions to be lock concave and given that we have this T0 that respects this condition then we can run the SIPS algorithm that goes the following way so the first step again is the initialization so what we're going to do is run

So what we're going to do is run a Langevin sampler for white t0. So at fixed time t0, we simply iterate the Langevin algorithm using an estimation of the score that comes as above from the MCMC estimation of the posterior mean. And once we have initialized this white t0, we can go on and integrate backward the SDE towards large times capital T.
again simply by estimating the score using the I mean an estimation by MCNC of the posterior mean since we are in this region where this is simple and as a result we have for reach once we reach the capital theta of the backward process an approximate sample from our distribution rho star
And just to show you a glimpse of the numerical results, and I choose to show you some things that are on Gaussian mixtures for which we systematically increase the dimension from 8 to 64, as I will later again advocate for this type of systematic experiments. And here what we can see is that both in terms of sliced Wasserstein distance and in terms of error we are making in estimated...
Let's meet the weights of the different components of the Gaussian mixture. The slips algorithm, that are those three lines, pink, yellow and grey, compares favourably to other multi -modal samplers such as the annealed important sampling AIS or sequential Monte Carlo SMC. So if I recap.
an on this fixed non-parametric approach we see that we have promising results in relatively high dimension but that however the algorithm requires to decide for this initial time t0 and it's not entirely obvious how we should do it in general and another drawback is also the fact that we have no amortization in the sense that each time we want to sample a new batch
we need to start from scratch because we are all the time estimating the scores on the fly so we don't have we are not learning something that will keep on helping us for the future iterations and so this is precisely to remedy this second point that we explored another approach that is variational and that we called learned reference based diffusion sampler which I'm going to cover in the remaining time
So this anisotropy S, it belongs to the class of variational inference, where as you know, the idea really is really to here is really to learn for sampling and this is done by having a postulating a model p theta with some parameters and minimizing a callback library divergence between this model and the target distribution. So
This has been first, of course, proposed with very simple probabilistic model PCA, such as Gaussian models, but recently it has been extended to leverage the great power of generative models, such as normalizing flows or autoregressive models.
Nevertheless, even with those powerful deep generative models, we know that this simply learning problem is prone to mode collapse, meaning that the learned model p theta will typically concentrate on a subset of the different modes, so maybe only one of the different modes of the target. And of course, this is an outcome that is highly undesirable.
when we are trying to do multi -modal sampling. And so this is why a series of different works which I'm referencing here at the bottom of the slides have proposed to
Suppose, if you want this variational inference problem, to the past measures space. And the idea is that rather than just trying to fit rho star to rho p theta, we are going to try to fit the entire past measures that corresponds to this noising to the past measure of the variational model. So here, if I just recall what things looks like now, we are going to have a past measures that I denote with this.
a large speed and it corresponds to either starting x0 in row star and running of Stein-Ullenbeck or backward starting y0 in a standard normal distribution and running the process backward always with the interruptible score of course and the idea is now to have a p theta that is again a pass measure that is parameterized and that is going to be parameterized in a way that it's easy to simulate it
So it starts y0 from n01 and have a backward SDE where we have a learnable part in the drift that if you want would correspond to the score of the target process. And then the BI problem is promoted to this path measure space.
And we are looking to minimize a quick backlight door divergent with respect to the parameter of this variational model. And so this same series of work also realized that to be tractable the VI problem could be rewritten using a so-called reference process.
So here I just copy pasted the target process and the idea is to copy, I mean to as a function of this target process, define a reference process that will have the same noising SDE, so here I'll shine you learn back for both of them, but two different initial distribution. So the reference process starts at the rho ref distribution that we're going to discuss in a second.
But it has the same noisy. And then additionally, we define the variational problem in such a way that the drift of the variational problem is actually decomposed with
The score of the reference process plus a learnable control. And by setting up the variational problem this way, we can use the chain rule of the pullback Leibler and Dirsenov theorem to obtain a tractable loss for the variational inference process.
So it allows such requires to simulate from the model that is what I mean in the in the genre of this literature that is not simulation free but it's tractable and we can learn the parameter of the control to try to match the process in this two in this measure space.
Choosing a simple initial reference keeps the score tractable, so that's if you want part of the trick. If I choose this reference initial distribution to be a Gaussian, I keep that the marginals of all the reference process are Gaussian and so the score of the reference process which is needed in the training and in the simulation is going to remain tractable.
However, what we found is that such a simple choice makes you also vulnerable in the sense that you would need to really, really carefully tune the variance of this Gaussian.
So the little experiment that was done by Louis and Maxence was the following, where what we have is a binodal Gaussian, so it was in 16 dimensions here, and the idea was to change the variance of the reference distribution for two of the proposed variational approach, so PIS for the passenger sampler and DTS for the denoising diffusion sampler, and what we found is that we needed to really
Carefully tune the value of sigma, so the variance of the reference initial distribution, to the best Gaussian approximation of the target.
order to have a correct estimation of the relative weights of the two modes of the Gaussian so in a sense yeah again an instance where we need really careful tuning that is not clear how to do if we don't have samples to start from so the idea of the learned reference space diffusion sampler was to learn the reference process learn the initial distribution of the reference
From approximate sample to increased robustness.
So, in practice, what we do is that we use a row field of, well, row refs that are starting to find out since it's learned as a Gaussian mixture for two reasons. First, because using a Gaussian mixture keeps the core of the reference process analytically tractable. And also because it's a well -chosen form of multimodal row star, which is our main focus. And then we can run the LRDS algorithm where we...
In first, learn on the colleague the same theorem to target to fit the parameters of both phi refs, and then we can fit the parameters of the variational problem simply by minimizing the VI objective I was just discussing. So if I show you again on the very simple 2D example what it looks like, the idea is
Start with Gaussian simple sample that will not recover the right ways. I mean, that, you know, use them to fit a Gaussian mixture that will serve as the reference distribution, again, still with the wrong weights, but that defines a backward process that can be simulated using the analytical scores of this Gaussian mixture process.

process but still has different weights and ultimately learn the control parameters such that when we simulate really the background process of the variational problem we have corrected for these weights and we obtain well the appropriate weights and so this LRDS has promising also numerical results so again if we repeat this
Experiments of taking Gaussian mixtures in increasing dimension and looking at the error you're making in the mode weight estimation, we can see that it's very competitive or even sometimes oftentimes much better than most of the other.
approaches in terms of bias and in terms of variance and what we've also looked like looked at was a model from statistical mechanics that is a so-called five field theory that was in dimension 32 and for which we can change a parameter h in the x -axis so that we change the ratio of the weights of the two modes of this theory so this is the w1 of w
sorry, W minus over W plus y-axis and we can see that with this GMM, so Gaussian mixture
At RDS, we are getting a decent approximation of these weight ratios as we change the parameter h. So for the sake of time, I won't have, I will not be able to discuss this extension, but what we also propose in the paper is to extend this idea of a learned initial distribution to have something that is even more flexible than the Gaussian mixture and this by learning an energy-based model for further flexibility.
ability and but this comes at the price of learning the score of the reference process as well so with some yeah it's computationally heavier so if you're interested we are happy to discuss it but I won't have time to cover it in the top so I'll
I have some concluding remarks on sampling by denoising. So it combines two things, inspirations from diffusion models and intuitions from enhanced samplers where we are really bridging easy to sample distribution and distributions of interest. So it's in a sense something that is quite new in the landscape of samplers and it's quite promising, but I would say that in all essences that we've seen, it still requires some tuning.
that itself requires non -trivial knowledge about the target system.
and or several steps approaches where we need to learn model to learn models so it's not magical let's say at this point so but finally in order to really identify which are going to be the most promising avenue I mean research avenue for this multi-model distribution I would say that what we need in general is more systematic evaluation and this is the actually the topic of our poster
with Louis and Maxence at this workshop that is called improving evaluation of samplers on multimodal distribution and on which we advocate for two things for systematic experiments where we are going to increase the separation between the modes which is really something that makes the multimodality more and more tricky to handle for samplers and of course the dimension of the problems
And then, so that we are able to make little graphs like the one at the bottom of the slides where we change on one direction the dimension and on the other the separations between the modes and for example also looking at a simple but meaningful metric that is this mode weight accuracy I've used several times in the talk and so we can see for example on important sampling how the sorry this is the error in orange.
French and in blue it's the variance. We can see for example how the variance increases quite fast for important sampling so it's we think it's quite meaningful ways of evaluating samplers for multimodal distributions that should really help in identifying the most promising research avenues. And with this I thank you very much for your attention along with all the collaborators I've had along these topics.
Uh, thank you very much Mary Lou. I think she can hear us, right? Yes. Yes. Oh, perfect. Uh so we have time for questions. Oh, we have a couple. I'll give it over there first.
Uh thank you for your talk. Uh I just have a question on the second part about uh the reference distribution. So uh maybe I miss something but uh my understanding is that the reference distribution is only used to be able to calculate the random Dirichlet derivative between the uh forward process and the backward one, right? So how how can it influence Mm-hmm. the result uh so much?
Well so I mean it's used in the for to evaluate this random decoding this derivative and you see that it also shows up in the loss in the in the second last term of the loss right and so here you see that you have a ratio of two distributions precisely so
This ratio between two distributions, if they are really different, can yield things that are really poorly conditioned, in the sense numerically not very stable. And it turns out that it seems that it's really hard to get the right signal for learning if actually they don't match quite well. That's what we found. Your relative is the same.
Just a derivative in the same regardless of the choice of reference, right? The So, you mean the derivative of the KL? Yes, Yes. it's the same. But the thing is that we are doing statistical estimation of these derivatives. And it turns out that the estimation is really poor if this is not really well matched. Okay, thank you.
Okay. Uh I think that's it for questions. Thank you so much for your time. And uh we'll move on to the panel now. Thank you. Take two more minutes. Uh can I invite all the panellists to come up please.
Maybe I'll sit like this somehow not in a line as well. We're just gonna wait a couple more minutes. Okay, uh
While we're waiting for our final panelist, maybe we can do a quick round of introductions. So I'm going to first pass it on to Pranav Murugan. Hi everyone. My name is Pranav Murugan. I'm a research scientist at Genesis Therapeutics. I'm excited to be here representing our awesome team of ML researchers, comm chemists, wet lab folks, where we work really hard to solve the challenging but important problem of small molecule drug discovery.
Uh hi everyone, I'm Michael Hutchinson. I'm a research scientist at Isomorphic Isomorphic Labs. Uh similar we're also working very hard to revolutionise drug discovery using AI and yeah hopefully I do a good job here representing all of the the machine learning teams, drug designers, comp chemists and uh company as a whole um yeah.
Hello. Uh my name is Wonlei Tao. I'm a professor at Georgia Tech and uh uh some of the things we work on are probabilistic machine learning, including both sampling and uh and uh diffusion model. And uh and we also work on deep learning theory. Uh so we're trying to for example understand how diffusion model actually works. So i uh really excited to be here.
Hello everyone, I'm Sunho. I'm a professor at Yale, um and my background is mostly optimal transport and Markov chain Monte Carlo, and I guess I worked a little bit on the theory of diffusion models. Cool. Uh thank you. So let's get started with a simple question. Um and hopefully this is a good warm-up for all of us before we get into more of this the spicy questions later. Uh
So, given that the theme of this workshop is learning to sample, uh what do you guys think is perhaps the most exciting opportunity or under-appreciate opportunity so far in the community? Maybe I'll start this question off with asking Michael Hutchinson. Uh to me I guess um it's been highlighted by a couple of speakers already um but
it's using generalisation of deep learning to extend the capability of samplers. So uh samplers are very expensive and it doesn't hasn't yet been proven that we can sample better with these machine learning

you can sample better with these machine-learning techniques on individual systems, but, you know, the one thing we know deep learning is very good at is um using a lot of data from different problems to extrapolate to new ones. And so I think probably the biggest exciting opportunity is it pushing more into that direction of using big data sets across multiple tasks to get generalised performance and speed up sampling on, you know, close but not the same problems.
Maybe, Lowell, you have a few words to say? Um so I I i in general feel like um so there should be a lot of uh physical knowledge uh that we know about uh particular uh application domain uh that we haven't really uh fully utilised in uh in sampling. So so typically, um
People may say, oh, I have a normalized density and I'm just going to design really good M_C_M_C_ or alternative methods for example, learning-based methods uh to actually do it. Um however um you know there there could be actually a lot of domain knowledge uh that people have uh accumulated about the p the problem. So uh it'll be interesting to have a uh sort of like a integration of physical knowledge uh into your learning model.
Cool, thanks for the responses. So giving a follow-up to this question then, and because we have Ricky now, uh some people say that sampling is a significantly harder problem than generative modelling and given one of your esteemed history as a generative modeller, do you agree with this, or do you disagree? Uh
So, I mean, I think sampling is also generative modeling. But just to be clear, I think what you mean is if you have a bunch of data points and you try to fit a model to those data points, it's easier than trying to do exploration and trying to find samples that are, you know, low in energy, right? Yeah, so for sure, I think that sampling is a harder problem. In fact, we have such scalable algorithms for data-driven learning now, but we don't really have really good scalable algorithms.
algorithms for these reward-driven problems like sampling or reward fine-tuning but I think we've been seeing the sprouts like the beginning of these scalable algorithms and I think we should really try to you know make our methods the sampling methods really work at scale
you know similar to just general models where we can amortize over a bunch of different conditionings text or molecules what have you train this based on whatever data set we have and see if it generalizes to new conditions right not just overfit to the same you know energy function that we've been doing but actually try to see if it generalizes beyond the settings that it's it's used during training
I mean I agree with what Ricky said, but just to add, I think generally in sampling problems, the evaluation metrics people care about are much more difficult to achieve. Um, you know it's quite easy to create a good image generation model that has basic very little respect of the underlying distribution and you'll still get nice images out, but making something that really accurately samples a a physical density is much much harder when you have to match that distribution precisely.
Yeah, I also wanted to mention like the recent advances of thinking about generative modeling in terms of like stochastic interpolants and like all the variations thereof like I think lead to a very natural connection between like the long history of work in sampling and like more data-driven modeling that I think has shown some like promising seeds of like results combining the two that I think can hopefully push sampling to like a
New level I just wanted to talk about the metric evaluation. I think that's a really good point. To me, I think there's sampling is a very, very broad problem statement, but ultimately the applications might not be like one-to-one to that problem statement. Ultimately, they maybe care about something else like, you know, image quality, not so much image diversity, not so much like I say matching the correct distribution. And I also think we should.
Maybe try to acknowledge that and focus a bit more on specific applications or focus on methods to work in certain regimes where if all we want is one good sample, but maybe the sampling method can still be used for exploration or maybe if our benchmark is meant to see if it covers all the modes, then we can also do other metrics like precision recall and not just like what's inside distance using noisy samples.
Um, yeah. Thanks. Uh so another dimension to this problem is like unlike generative models, uh we have often a lack of data or sparsity of data. So this is typically faced in many different problem domains and drug discovery and what not. Uh to what extent this is actually a problem, let's say in industry now, so maybe Pranav and Michael can pitch in a bit. Yeah, I I mean, um Michael and I work in very similar spaces and uh
for like the problem of maybe like structure -based drug discovery in particular like the gold standard data source is like the protein databank uh which is by like biology standards a large data set you have a couple hundred thousand structures but that took like 50 years and 50 billion dollars worth of investment to create and so to reach like the scale of data that has shown to uh
like push uh interesting emergent phenomena and like vision and language uh you probably need orders of magnitude more than that and so it's in the scale that we know machine learning can go to a very sparse and data limited area and that's where like the creativity and uh research in sampling and trying to leverage physics and other like priors that we have into this generative model is really important
Someone else want to give a different perspective because I'm gonna have a very similar. Does any other one want to jump in on that? Uh maybe one quick comment is uh if you can actually solve sampling, then you can remove the middleman of trying to get good samples.
in the first place. So I think your question was hitting more at, you know, maybe running MCMC or trying to get ground truth samples for general modeling, data driven, right? But you could also think maybe we don't need really strong samples to train a energy model. They don't need to be, you know, from the correct distribution. And maybe if we can do that, then we can use that to train a sampling model that can do better so, you know, total computation cost can be reduced.
If that makes sense. Um one of the difficult parts of sampling is always mode discovery. So finding isolated modes that are disconnected from each other. I think this is one of the things that deep learning might, if we get it right, really help with is generalising across, you know, we might have really well characterised systems in some cases, and if we can generalise that performance on at least mode discovery from system to system, problem to problem, that would really help us speed up.
something in those new problems, if we can correctly hit all those different modes.
Uh so speaking of this mode discovery problem a bit more then uh it it's a really hard problem and and there's been other fields that have been kind of poking at this as well, not just sampling, but this is R_L_ where you have other assumptions. And the theory over there seems to be completely decoupled from what we're kind of doing in sampling. Uh is there any symmetries that you might see, maybe a mole or or on how we can kind of bring other tools that are maybe in other fields to develop new theory here.
Is this on? Is it on? Uh m maybe one point to make is that these methods uh which are used in diffusion models are used in theory as well, in order to design new methods. So I think there's kind of a false dichotomy in your question. Uh perhaps what I meant is that in terms of exploration, like, there's been a lot of work in R_L_ that's predominantly focused on finding, you know, high reward regions. But in sampling, it seems like there's been a decoupling of
Methods that use R_L based approaches versus p ones that are learning to sample using diffusion. Do you think this is a there's a particular reason for this or is there I think a false dichotomy as you mentioned still?
Uh so in in general I I think um so there there have been wonderful talks for example at this workshop uh that uh sort of connected uh things like um meta stable transitions. Mm-hmm. Uh
to the problem of sampling, uh so so uh for example so it's it's the the problem of sampling mou multimodal distribution is hard because uh it's it's hard to explore in the middle, as as as you guys have been mentioning. Uh but uh but I think that there are a lot of tools that that specialise in just doing this. Uh it's not necessarily R_L_ I think I I'm pretty optimistic about R_L_ because uh uh people have been already using it for like fine tuning the
the sampler and also even generative model. Uh but uh I actually would even uh want to take one more step and say that uh really there is a there should be a synergy between techniques across fields for sure. Has anyone wanna jump in on that? Any other comments? No?
Okay, so in that case let's move on to a bit more spicy question that was kind of raised earlier in Michael Albergos talk, which is are the valuation criteria across general general models in this space and M_C_M_C_ are they fair? Do you think we're just, you know, beating a dead horse? Are we doing the right thing? This is any comments? Uh maybe I'll direct this question directly to Ricky first.

to Ricky first. Uh so is the question about uh whether or not how we're evaluating our sampling methods uh comparing to MCMC fair? Okay. Um yeah so I think Michael also brought this up but basically in in the re in the regime where you have a really expensive energy function uh Mm-hmm.
these sort of amortized methods and the non-amortized methods can have very different properties right so MCMC you would base you cannot you cannot amortize so every single new system you would have to find all the modes from scratch right so there's something Michael brought up as well where if you have an amortized model and sort of put on your deep learning hat and sort of believe the magic of deep learning you can potentially train on a few different systems and it'll actually generalize to new systems and in particular if you train on a whole set of systems you don't even need to find all the modes of any one system you
it can magically you know maybe magically transfer to the existing system that you're even training on to try to find even new modes but ultimately i think uh we should be careful about like how we prop uh each of the properties of each of the methods right some methods are just very shortly inference so there are approximations to the thing that you're trying to sample from some methods are maybe asymptotically correct like mcmc but also in practice it's not entirely clear what's going what's going to happen
So for proper evaluation I think there's also the case of like if you do train a version inference model what do you intend to do with it and I think most people in practice would actually use it as initialization or combine it with MCMC. So in a sense maybe the combination with MCMC should be part of the evaluation of the version inference method itself not necessarily part of the method but just part of the evaluation right to see if it's actually finding all the modes even though it might not get the.
give them the proportions right. Um, yep. So I I think um uh just as you add up to what uh Ricky has been mentioning, um there is also a different perspective which is uh um
Ultimately, one only cares about the downstream task. So for example, so if you if you do sampling for the purpose of a Bayesian inference, maybe you draw the samples because you want to actually evaluate uh some observable. So the expectation of a function of the uh you know the posterior um distrib distributed uh random variable and then you know i it really boils down to the accuracy of this function.
So if you are, for example, thinking about all kinds of test functions and then this is sort of like some statistical metric or some quantity that you can analyze. But if you're specializing a very specific function, for example, the variance, then I believe that more work can be actually done. It's not just like evaluating the distribution of the random variable and compare it to the.
to the ground truth, it's it's really a very specific observable.
And kind of to extend on that, um a bit like all of statistics, I view sampling as a kind of service discipline. Um sampling on its own is not the goal. The goal is to be useful to some someone else. Um so it's not really about being fair to ourselves how we're evaluating it. It's whether we're living up to what what downstream tasks need us to be doing. So you know if we're trying to compute uh properties of physics models, you know, we need to be as accurate as M_C_M_C_ or more accurate to be useful to them and
And there's no point us changing our benchmarks to look better. We have to choose tasks and problems that this these methods can be useful at and evaluate them in the ways that people who want to use them would want to see them evaluated. Um so
A follow-up question to that, I guess, is right now there seems to be a l uh lot of hammers that we're building in M_L_ maybe and maybe not the right nails. So one question that one could ask is that are we attacking the right problems that maybe industry cares about or are there are we attacking the right problems in the right dimension and scale uh or are we misguided in our current approaches. Um maybe Pranav or Michael can jump in.
Yeah, I think as a whole, we have like the same set of like ambitious goals of we want methods that are accurate, they're fast, they scale across dimension and everything, but I think that's where it's.
They both like the access to data, I think, and then access to like better and better benchmarks lead to like a more concerted effort that's, I think, more globally productive for people here and also people that use the tools that we build here. And so whether that's like having better like biological or chemical benchmarks that actually operate at the scale and the time scales that we care about.
uh or measured quantities that are more relevant outputs of the sampling tools that we build uh will help align people, I think. Do you wanna jump in Michael? If you have a comment. I think um in some sense benchmarks industry would care about are quite difficult to generate, because if they have a benchmark then you have the problem solved some other way. And so it's quite hard to, you know, say oh well we have this method that can generate a benchmark accurately.
And therefore we're then gonna develop new methods that can go after this is a bit of a chicken and egg thing, but um yeah. Uh b you know I think there's incrementally sized benchmarks that we can climb up the ladder of uh in academia to to produce methods that could then be useful to go after the next scale of problem. Cool. Uh maybe somehow has a comment there.
Uh just a quick comment is I don't think it's necessarily a bad thing to start by developing methods because if we have a class of methods which works really well on a certain class of problems that encourages more problems to be modeled in such a way that there are minimal to these methods. Cool. Uh maybe now we can take on any audience questions. Are there any audience questions that you'd like to ask our panelists?
So there was uh there were some recent impossibility results, right, that like um say that you know it's exponentially hard from to sample from a general uh non -locum k distribution in D dimensions. Um seems very concerning, like a lot of what you've been saying is like oh we should actually see if it scales like if it really scales and
Well, there is like there are theorems that say okay, it cannot scale, right? Um is there a disconnect there? Maybe s have more layers to know what I have to say.
Yeah, I think this is a problem with modeling and theory is that I don't think we believe that the distributions we encounter are really as bad as these worst case ones. And yet at the same time, I don't think we've hit upon like the correct model for what is a hard multimodal distribution, which is not just say a Gaussian mixture.
So I think it would be interesting to try to formulate what is actually a class of distributions which lies in between this pessimistic worst case and like a super tractable setting for theory.
Yeah, I completely agree with Xin Hou. Actually, so this is what I meant by using your domain knowledge, at least that is one instance of it. So for example, so think about the following. So you're trying to sample a really hard multi-model distribution, but what you are given are not just like the gradient oracle. Suppose you actually have oracle that sort of tells where the modes are and then it's much much easier, right?
Right, and also, so say if I have a d-dimensional problem and I have two modes in each dimension and then I have two to the d number of modes and then it sounds like an extremely hard problem, but maybe, you know, because of some domain knowledge, you know, the problem class that you're considering is actually admitting some sparsity, low rankness, I don't know, low dimensional structure such that it's not that bad.
And then uh more things can be done. So uh so I I think uh there are some truths to to Xingho's uh uh actually a lot of truth to what Xingho said. Uh it's it's really that uh um considering the worst scenario is uh is is not always the best. Oh I I just wanna make a slight analogy to like um when people first created
When they first created Transformers and got popular, there were some papers based on basically creating data sets of sequences that they said you really need to scale exponentially in depth or your attention layers need to be exponential in the width and the number of attention layers, hidden dimension or in the number of attentions, similar works like that. But I feel like that also has sort of somewhat died down, you know, with the big boom of LMs and people just scale up and yeah, the natural data that we see in practice aren't.
They don't really satisfy those sort of worst case scenarios. But at the same time for sure like I think it's worthwhile to understand the theory and understand for example if your method isn't working, why? Right and that that is still useful use case. Uh any other audience questions before we move on? Okay in in that case, uh another controversial question then. I apologise in advance.
Right now there's been a lot of cool methods in sampling, but a lot of the data is currently locked behind pay walls or industrial barriers. How do you foresee this I guess roadmap going forward? Is there better ways for industry to collaborate with academia or vice versa? Maybe I throw this question first at Pranav and take it from there. I think there's a
A lot that we can do to like collaborate both between.

it like collaborate both between industry folks and with industry and academia the ultimate challenge is that like in our domain generating data is incredibly expensive like either the computational methods that like approximating quantum mechanics are intractable or you have to like crystallize a protein which is also incredibly expensive and so even as someone in
uh industry like the fact that we're a startup means we have like orders of magnitude less data than like the pharma partners where like we have to set up agreements with them to get them to share data with us but even that's kind of firewalled away uh well that's where maybe there's a good way to set up some federated learning setups or um like convince them that more data will solve this problem in a way that like helps everyone and if we can do that
then we have evidence to lead to more data sharing, hopefully. Yeah, I mean, beyond finding ways to get this data out of industry, I think there is a huge opportunity for collaboration within academia itself.
You know, when working as a PhD student not that long ago, there are massive, massive computers in other fields of research. So there are molecular dynamics groups, there are quantum physics groups, there are weather groups who have huge computers screaming away, you know, something from lattice QCD theory, something from weather models, something from molecular dynamics in those domains. And it might be that stronger collaboration on producing data from those settings that becomes useful for machine learning because lots of this data exists, but it's sort of tailored.
created for those specific domains rather than training machine learning models, there might be something to do in that setting of collaboration as well, so beyond the industry but academic, academic collaboration too.
Okay, then moving on to a s separate question. So the theme of the past couple of years, it seems like as you scale up you need less and less inductive biases. Uh one particular inductive bias that's been kind of been removed through that throughout the years is the the need for equivariance, it was kind of touched upon in some of the earlier talks. Uh do you think this is still the case for sampling problems that we're considering, or is are there better inductive biases and better ways to enforce them? Maybe I first throw this question at Mole.
Um, so I think it really depends. So I actually came from a physical background and I think it really depends on, for example, even just in a generative modeling setup, how many data you have. So if you have a huge amount of data and the data contains certain structure, certainly you can learn that structure at least approximately.
if you have a powerful approach, but for example, so if you think about certain AI for science applications where you have to spend one million dollars just to get ten samples and then of course you should you should you know build in whatever domain knowledge you have in a in a learning or sampling model because because then you don't have to learn it so in general I actually
Yeah, I'm I'm more open minded to think that uh uh it's uh it's still interesting to actually hard-wire uh prior knowledge into a learning model. I see just a note nodding over there, maybe he has a comment.
Oh, I I basically agree with Molay. Like for instance I was working on a project with the professor from uh econ and she just does not really have the amount of data that would make these methods practical. So in those cases I think you do have to incorporate a significant amount of domain knowledge. Anyone else want to jump in? I see Rick. Maybe just on the other side of that argument, um
So the more constraints we add to the model, the more constraint the optimization also is, right? And so it becomes harder to optimize. This is not true for like all types of occurrences, but in many cases, the more symmetries we add, the harder it is to sort of go from one mode to another and try to find the correct parameters.
Yeah, and also I think there's also a case to be said where like the simplest method always sort of wins, the one that's the most scalable, whether that's the one with the covariance or not, right? But for example, if you create a method that is so complicated, nobody else knows how to use it, then also that defeats the purpose. So in the case, we really need to balance ourselves and like, we want something that has the right inductive bias, right? That could be, you know, covariance, explicit covariance or some sort of.
sort of implicit representation while also accounting for really scalability. Yeah, I was going to highlight the exact same points as Ricky. There's a lot of theory that says including invariances and equivariances is always better and that's true and you don't consider the optimization problem at hand. Having spent a lot of time working in geometric deep learning during my PhD, yeah, when you get to certain types of equivariances you're incorporating into your architecture, yeah, you complicate the...
the push-forward of function is a parameter, and so the gradients you take become more complicated, the updates get more noisy, the optimisation becomes more difficult, and importantly, the network evaluation cost goes up significantly. Particularly thinking of like equivariant C_N_N_s here, you know the the colour f the cost balloons quite a lot. And so that trading off doing data augmentation on a non-equivariant network versus um just using a non an equivariant architecture, that trade-off becomes harder and harder to make at a practical level.
Yeah. I think one other angle to think about this is what we actually want to do with these models. Or you can use equivariances as data augmentation or to get better coverage of whatever space you're sampling from. But if you need
conservation laws that are prescribed by symmetries like maybe approximate covariance is not enough and so at some level that's us having the right benchmarks and getting empirical evidence for various strategies is the like best way to go here but I think given that different types of problems benefit differently from these inductive biases it doesn't make a ton of sense maybe to rule it out globally
Cool. Thanks. Maybe we take another audience question now, if there's one. I I have two question first regarding
How can we introduce uh advanced mathematical tools into the design of the inference algorithm, sampling algorithm? For example, previously we introduced uh non-incorporating some orthonormics and recently we introduced stochastic optimal control, optimal transportation. So how can we keep on finding this advanced tool into the dis design of the our algorithms such that we can make our algorithm more and more perfect?
This is my first Does someone want to jump in on that?
Yeah, I think that's a great question. So I'm actually a math department. And when I first started doing machine learning, people actually asked me things like, so I'm a student who is looking for an advisor. Why would I want to work with you since I publish more machine learning conferences papers than you?
you uh uh but I didn't give up um so I just keep on working on it because I see beautiful mathematical structures and also uh practical implications. So uh so so I believe it's uh it's really just um you know taking some time for motivated people to keep on trying and eventually there there will be um good synergy and also of of course is the same thing applies to the machine learning side.
I um I I I don't know I'm if I'm answering your question. I would flip the question on its head. Why force it, right?
There's a lot of elegant theory, but ultimately if we want to care about some applications, maybe just a high level, my perspective is the theory is sort of secondary to the application. And ultimately there's a lot of different types of things that people might care about. And particularly, I think theory is very useful when, like I said, you have a method that doesn't work as expected and you don't know why. You really want to try to explain it. And maybe in the process of trying to understand.
this method or this you know this approach if you understand its downsides its upsides and you start modifying it to create something new ultimately if we want to use theory to create something that's you know principled and amazing I think that that is a very rare thing to happen it's it's it's very hard to do that and hard to do it intentionally but yeah having a really solid foundation is definitely a very good thing to have
But yeah, I think you cannot force this sort of thing. But it's always good to think about connections between different fields for sure. Thank you. May I proceed to my second questions?
My second question is that w uh currently we have a lot of generative models that can generate high-fidelity images and video. Uh I'm uh most most models are designed based on the physical process, for example, laundry van and diffusion process. Uh and other c and other kinds of

Another c an other kinds of uh models are designed based on non-physical phenomenon for example uh quan quantile variation also encode a VQ-VAE these models. So they they they inch they utilise the expressiveness of neural network. My question is that what makes what makes we generate high fidelity uh object. Is is the physical is the physical law or the expressiveness of neural network?
I think the this was brought up earlier, but the the physical laws like the diffusions create really nice paths between noise and data. And that's what's allows you to really neatly map these um map these things from noise into data. Um but for sure like the expressiveness of neural networks is key. You know we don't have an energy function for images or for the videos or for text. And so you need a neural network that can learn to express those things uh to get anywhere in those domains. Yeah.
And I think at some level, the types of like physical processes that we study a lot are also ones that are simple yet have very interesting properties and are many times analytical and have nice benefits. And so that also leans or works well with the.
what we've seen of scaling these models and leveraging the principles of simplicity and pushing that to the limit and so in that sense I don't see that they're in conflict necessarily but are designed to be very compatible with each other.
I know you didn't ask this question specifically, but I think the underlying question is also just we're seeing all these nice advances from other fields like diffusion models, general modeling, LMs, how can we adapt that to the things that we care about like sampling and molecular generation. And I feel like one of the key aspects is not even part of the general model, it's part of the conditioning.
um like for example why LM's are so nice and why you can just prompt it with whatever you want and it just generates you know some nice things it's all part of the you know being able to see very different types of diverse conditioning during training and also think um you know why are you know image models suddenly so hyped it's not because that they were trained to generate nice cats and dogs on ImageNet I think it's because they're now able to actually do text conditioning right and really understand text
In fact, the recent, you know, ChachiBT model as well really just has very good text understanding and therefore its image quality generation has significantly improved.
So similarly, I do think I just want to bring back like I think we should also consider things like, you know, how do we put an L M in our model? How do we try to think about more amortized settings where like, you know, maybe can we make use of existing knowledge or existing things that we've trained online and see if we can generalize to new things, right? Whether that's amortizing over a bunch of systems or making use of, you know, pre -training L M, using a dictionary in a smart way. I think there's a lot of things that we can do.
to really try to uh, you know, use our methods but maybe bridge it with the existing approaches from other fields like you you know, hitting it uh and really uh apply it as that scale. Thanks Rickity. Oh, Mole has a ha follow-up.
Uh I just w wanted to uh add one short sentence. Uh so physics um looks for simplicity. I actually said you know that's how that's how people do physics. And uh I actu actually echo with Ricky. I I think um machine learning uh usually finds that uh simpler methods uh more effective. So uh there is uh some truth um physi physical to it. Okay, thank you, thank you.
Thank you once again. Any other questions from the audience? Nope over there.
Um I have a question uh going back to scaling. So there were a few works I think um Michael touched briefly upon that. In the physics domain, where people were using Jarzynski equa inequality or auto equilibrium simulation by just creating something similar to the stochastic normalizing flow. So in flow based sampling just alternate um deterministic and stochastic layers.
And in one of the their last papers they seem to find that this is the recipe to have most scalable general T-models just because of the MCMC or the stochastic component. So what's your take on that? Do you think that this can really be a avenue that it's worth pursuing? Kind of orthogonal to
Maybe just to try to understand the underlying reason why that would scale, like maybe my take on it is that the deterministic one is doing maybe more exploitation, right? And then the stochastic part is more exploration, right? You're adding noise and sort of doing a search. That's sort of the idea. I do think that sort of thing makes sense. I do think this sort of exploitation exploration holds still, especially for the sampling literature for sure.
But yeah, I mean I understand like I don't think anyone really knows what's the correct way to do it like you mentioned so how's it normalizing flow as one particular way of doing that but there must be you know infinite ways of doing that and and there could be better ways of maybe doing this in a more principled way you know more theoretical but also works in practice but yeah so maybe just something that I thought of while you asked the question was sort of all these different search methods that people are doing for general modeling so once you have a pre-trained model and you have some reward
reward, we don't really care about sampling from a distribution, we just want the sample that has a really high reward. And so what they do is then they do a lot of stochastic sampling, and they try to find like top K or do importance weighting, these sort of methods to try to find good samples. So yeah, so like
So I was going to say is like the pre-training you can also think about that as like having some sort of signal as to like where to where to look right the exploitation but maybe we do want to combine that with like a search method like you say that could help improve the coverage of our samples and already find find good samples.
I mean to me that exact paradigm is one of the reasons diffusion models are really good. You have a drift term and a diffusion term and one is forcing noising through the like an iterative refinement process and the drift term is you know putting that deterministic component in that's forcing towards a known good solution.
and then incorporating guidance throughout your thing gives you lots and lots of shots at looking at um looking for good solutions. And then there's been a bunch of papers recently on test-time compute and diffusion models where you do something a bit more like a genetic algorithm where you start with a huge series of noises, you do one step denoising, you then um you you you compute your um reward functions on those, you then cull and resample, and then you do this iteratively over and over again and that kind of
mixes this explore exploit um method with a good prior over initial structures really nicely I think. Okay yeah maybe something I haven't mentioned uh the reason I brought up this question is that this was done in the concept of flow based model where you have attractable density which you don't normally have with diffusion models and in physics that's usually very important and so I was wondering if
And that's exactly why I brought it up. So the the parallelism you made with the fusion model makes sort of sense to me, but um in in this quest for scalability, um I was just wondering if I don't know it because I'm a bit nostalgic here seems like everything now is drifting towards diffusion models seems like that the research in the more like flow-based or auto-regressive models where you have a tractable density seems a little bit
I don't know like plateauing, you know. Do you do you mean track to a density of the model or track to the density that you're trying to match? No, of the variation of that city. Like an analytic uh expression of your variational density. I guess it's the the trade-off you get with diffusion models is you don't get those so easily Right, right. so I was just wondering if you have in mind some that could mec merge the best of both worlds somehow, like some I know it's just speculation here, there's k obviously no clear answer, otherwise people would be working on that. It was just to trigger some thoughts.
Yeah, so as someone who actually did do a lot of machine learning research and reported likelihoods and in the recent papers we just stopped.
It's because like we basically found like when we tried to solve like inverse problems right so like or we try to find like the mode of our model The likelihood just isn't that informative in high dimensions party for images I'm just talking about you know pixel space for sure and we basically just found that you know sometimes the noise or like something that's like completely unnatural you take an image you can completely remove half the pixels just make it black
It has a higher likelihood than an actual image from the data set. So that's a little bit weird, right? I don't know why. Maybe the model is just not perfect, right? Maybe that's why. Maybe it's due to the inductive bias.
One thing that I'll mention is there has been a few works on like, you know, these mass diffusion models on like, you know, text generation and all the benchmarks are actually all multiple choice. I'm not sure if that's well known, but you're given like a prompt and you're given four different answers. You basically check for each answer which one has the highest likelihood and that's the answer that they return. That's usually what people do for evaluating these multiple choice benchmarks.
works um now there um i i think it's interesting because they're not using the absolute value of the likelihood they're not you know it's just they only check the relative likelihood of the values and maybe also for text if i mean for discrete space it's a little bit different than continuous space right in continuous space a lot of things can weirdly break your density goes to infinity right uh but in discrete space that doesn't really ever happen and uh i don't know maybe that's just more well behaved or
Or maybe w maybe if we use like that, we should actually just like integrate over a little region, right? Uh to ge actually get the volume and not just use the absolute

to get the volume and not just use the absolute value but yeah I it's just like I think there's a lot of people that have tried using likelihood for downstream tasks like for out of distribution uh uh detection and they've somewhat gotten burned from trying that approach
Perhaps just say something just slightly more on the sampling front um sort of physics problems and type things like the nice thing about having a likelihood on your model at the end with normalizing flows is you can do a a correction step right you can do importance sampling um but I mean it's great to see so many papers here that you can sidestep that question completely by doing something during the diffusion generation and you don't need the likelihood at the end you can do some sign of some c or some kind of correction throughout your model that that side steps that need and still get those correct samples at the end so maybe it's nice to have but not always like a hundred percent necessary, yeah.
Okay. Cool. Thank you. Any other audience questions? Hello. So I wanted to go back to the topic of amortisation, because I do agree that that seems to be one of the cornerstones of why a lot of these things generalise. And it seems like the crux of it is you need to find the right conditioning to kind of streamline your problem or narrow down your problem.
And in the space of sampling, what do you think would be the right conditioning? As like a quick idea, one thing could be you always condition on the functional form of the energy function. And this defines a problem and this is kind of like a multi-task amortized frame work. But what are some other kind of conditionings that might be informative or share information across tasks?
Yeah, I mean I don't really want to self advertise too much, but like the the recent uh engine sampling benchmark that we do basically is, you know, given a a smile string so that uh includes the atom types and the bonds, and then we generate the position. So pretty standard. Uh it's just in the past people have trained as based on like a data data driven approach where you actually you know run expensive MCMC uh like the Jiang drugs data set um and then you you d do general modelling on these. Uh but we can also ge uh use the exact same framework
but train it using just sampling. You have some energy model that takes in the full molecule and also its positions, right? And output some sort of some energy, some scalar value. And so this is something that does make sense, I think, as maybe not the end goal, but something that's like as a one step forward to building a really scalable, you know, truly scalable method. But this is something that's already quite difficult. There's something that I think Michael also brought up before. It's very expensive to collect.
collects the ground truth data because that requires like expensive DFT computation. So our team in FAIR, like the FAIR chemistry team, when we were creating this benchmark, so the training set basically has 24,000 molecules. These are separate systems. We condition on these. And then the test set has about 100 molecules. And we basically ran the ground truth, which is you find all the local wells, all the 3D positions for these 100 molecules.
and that took us seven days. We ran really accurate DFT, I think that's probably why, but like yeah, it is really hard to collect data for these things. So but in the same amount of, but by the same logic
If we were to run MCMC on 100 molecules, that's basically the seven days. But in the same amount of time, we could have trained multiple of these sampling models and seen 24,000 different systems, maybe not trained them fully, like found all the wells and maybe not done too well on all of these, but it could reasonably generalize to the 100 test molecules and do a very reasonable job at a very much faster pace than the, including the full training loop than full MCMC.
I guess sort of quite domain specific what you choose to amortize on or what you choose to use as your conditioning variant.
Depending on what your problem is, I think just I mean learning representations with, I think is one of the reasons why using an L_L_M_ at the minute is so popular is it's this kind of general purpose system that's seen a huge amount of different things that's uh got reasonably good representations for everything. But there's lots of other ways, you know, if you had domain specific problems you could do some kind of contrastive learning, you could do all sorts of things to generate an embedder that you can then feed to these networks that then do the sampling for you.
Okay, so I wanna ask a follow question that's completely unrelated now. Uh because this is the first workshop on probabilistic inference and what not, there's a lot of newcomers in this field that are coming in. Uh so the first question I would have is uh what are the problems that you would say are kind of underappreciated that maybe newcomers can kinda take a bite into? So maybe I'll first throw this question at Xin Hao then open it up to the rest of the the panel. Oh boy.
Um. Okay, maybe we come back to. Uh, so so the premise is uh most of my bosses only care about AGI. Um
So I have to convince them that whatever I do is useful for AGI. So yeah, so recently, I think there's, we did some exploration on reward fine tuning. So you take a pre-trained model, and then you have some reward model, and you pre-train, sorry, you just fine tune the model to produce samples that are high in reward. It might seem very large scale, but actually...
you only really need like a thousand to two thousand iterations to generalize properly and really you don't want to optimize this too much because all our reward models are really they can produce adversarial examples so you don't want to optimize for too much um so yeah so like i actually think this is uh if you just have one or two gpus maybe two uh you can actually do a lot of the these fine-tuning problems
even at scale like seven billion eight billion models really so yeah i Okay, maybe one problem I think could be worked on more is scaling down actually. How do we make these models less data hungry? Because I feel like this is a real bottleneck for using them for many applications. mean
things I've seen that have been most exciting is things like IDDM and anything that can work without initial ground truth data and so yeah finding ways to train any of these where you can at least bootstrap off your own samples rather than having to start with a pre-trained or a pre-sampled set of big things I think would be a really interesting place to look for more efficiency.
So I think a lot of nice answers have been provided, covering a diverse range of applications. So I just wanted to add one more. So I feel like the connection to optimisation is a little bit underexplored.
So of course, you know, at the most naive setting, you would think, okay, so when you do a sampling problem, you turn the temperature to zero and then you are back to an optimization problem. And then how does this learning to sample business relate to learning to optimize? And of course, you know, there are deeper level questions. For example, a lot of the sampling approaches are
So sort of doing optimization in some uh you know infinite dimensional space of probability measures etcetera. So uh can you know tools from optimization be leveraged uh or the other way around? I think uh that's another under explored direction. Oh as we're running short on time, I wanna open the floor for one final time to the audience, if there's any other final questions.
Hi, uh thanks for the great panel. Um I have a slightly domain specific question about chemistry, but I think relating to sampling. So especially places like the fair chemistry team, there's a big trend on these machine learning force fields that you know s uh try to accelerate the energy computation uh accelerate beyond things like quantum mechanics or D_F_T_ And so one natural way you could think of using this is using these large models to generalise to new systems and generate a ton of synthetic data for new systems.
Um and so in a world where maybe soon we can do this, where we can generate lots of synthetic data for new molecular systems using these types of really uh expressive energy functions, what's the role of these data-free neural samplers in a world where we have potentially really high-quality synthetic data? Uh but I but I think even if you have really strong energy models, you still need to actually solve the sampling problem to get these synthetic samples, right?
Um, Oh. yeah, I guess the the thing I was thinking is like, you know, you could use these really expressive energy functions and run long time scale M_D_ with them 'cause they're a lot faster. Right. So if you could do this
this you know samples from Boltzmann distributions under some ergodic assumptions so if you have these samples yeah that's Yeah, good yeah, that's a great point so like you're right It's gonna speed up, you know these TFT computations or not the FT, but you know these approximate the FT computations for sure But on the other side of the coin I think we should also be aiming for sampling methods that are also as efficient as well in the sense that you know If our energy models are really really expensive which you know these foundation models of chemistry still are
Um, can we try to reduce the number of energy evaluations for training our sampling methods? Uh, and also, um, in general, um, I think it's also back to this question of emortize versus not, right? So, uh, even if you have a cheap, uh, or a cheaper neural network based energy model, uh, even creating these examples, you've got to do it one by one, right? Um, and usually these, you know,

Right. And usually these, you know, start with like just some random or like heuristic based initializations and you start running MCMC. So yeah, you can even we can even think about like training a model at the same time as we generate synthetic data and maybe using that, you know, that sampling method to
improve the initialization of these future MCMC methods. So for sure, I think there's always a nice coupling between these energy function and trained neural samplers. Yeah, I think they're two sides of the same coin.
Yeah, I think there's also a whole class of problems where this kind of amortized thing won't make sense. Michael had a slide earlier in the talk where he had three classes of problems where these neural samples make sense and in the sort of one large theory that you wanna draw a bunch of samples from, but maybe amortizing across different things isn't possible because it's just the one theory you care about. In that sort of setting I think, you know, these neural samples could still be really really useful and you wouldn't be able to get away from uh we would be able to use amortization as much to sort of sidestep that problem.
Um so anything in like the lattice Q_C_D_ domain or or or particle physics or things like this. Uh we have time for maybe one final question, if there's one more final question from the audience? Um I have a
I guess um we've seen like some talks where they've talked about how especially like Francisco's talk was kind of depressing how nothing works and if they work it only works on toy. Um so what do you think is something that's really exciting that is achievable in the next couple of years? Um so not in like yeah, in a kind of near future if you're doing I don't know, a sixth iteration of this workshop. Like what can we see that would be very exciting for you?
Anyone want to jump in? Uh I think the thing that sort of is short term, most achievable that would be really exciting is using this in, yeah, like preference optimisation um across a huge number of different settings. So having a really good prior model that's a machine learning thing and then incorporating some kind of tilting. So yeah, Ricky's got some really nice work here on on doing that in language models but you could do it for all sorts of other settings and
uh short of kind of solving all of sampling which is is the aim of some papers um as an intermediate step that seems something really exciting that would have more immediate um slightly less accurate benefits. Yeah, I mean, I don't actually agree too much with Francisco on the depressing topic. Um, I I do think we can scale uh our sampling methods. I think we're starting to see the sprouts of beginning like uh these uh these sampling methods. Um
Yeah, so I mean, I just want to rephrase, I think that.
there's a lot of applications in the computational chemistry and physics where ultimately the thing you want to care about is just something that we cannot achieve right now right but as Michael said we can try to build benchmarks that you know have really interpretable metrics maybe not just Wasserstein you know something a bit more simpler than that you know but that sort of helps bridge from whatever we have now to whatever end goal we want to do which is I guess self also sampling problems
Or maybe in a self-outcome former generation and things like that. Yeah, and I think, you know, there's to me there's a bit of an outsider, but I think there's clearly a, we're missing benchmarks. We're missing strong benchmarks and we need to create these in order to really set the goal for what we're trying to achieve.
And yeah, so there's this sort of amortized sampling for molecules and I really do think it's something we can achieve and we can really improve very soon in the future as well. And if we can improve it, it directly has impact in computational chemistry. Yeah, as I mentioned earlier, I think one area that we've been seeing a lot of work recently that I'm really excited about is
kind of integrating sampling and generative modeling so things that are data -driven and things that are sampling driven in ways that are very complementary I think is like the way to really move forward here and there's a lot that we haven't explored since this very new area that I think in five years will have make some pretty good progress
Maybe I'll speak a little bit on the theoretical lens. So one reason why I like to work on probabilistic inference rather than LMs is that compared to LMs, I think there's a much better chance to really understand what's going on in this area.
Um just because I think there there is like a lot of background on which like these diffusion generative models are built on a lot of like long-standing ideas from physics and whatnot so I think I have a lot of hope that we could understand a lot more about these models. Cool. Looks like we're kind of out of time, so maybe we join the panelists and thanking them.
post-recession. Um so if you haven't put your poster up, please take some tape from there and put it up and yeah, thank you.












Thank you for coming. I think you're welcome to stay here and discuss the posters, but I just wanted to say thank you for coming and thanks to all the speakers and all the spotlight talks and also the organizers and hopefully we'll see you in San Diego. Thank you.
