# Workshop 23995

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

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

SCSS workshop organisers, uh we are uh your host here on secureless correlation and shortcut learning for workshop. Uh welcome. Uh so today we have several several fantastic invited speakers and uh we also have a panel on five p.m. uh with Soheil and David. Uh I don't want to actually bother you by uh
a massive opening uh without uh actually any uh other time consuming we started. The first talk uh with Professor Baharan Mirzasoleiman, uh she is an assistant professor at uh UCLA and her team uh has had several important contributions in the field, uh both theoretically and practically. Uh we are very happy that uh
I have Baha'u'llah today and I'm very excited to hear her talk. Okay, Baha'u'llah. Okay. Thank you so much, Matthew, for the kind introduction. Thanks for the invitation for organizing the great workshop and for everybody who attended today.
So I want to start by talking about some of the challenges and opportunities of improving worst group generalization in presence of spurious features. In particular, I want to go back to the basics. I know that there has been a lot of efforts in addressing this problem in the literature over the past couple of years. So we have covered everything from supervised learning to unsupervised learning. Then we moved into foundation models.
those vision language models and language models. But I want to take a step back and go back to this most basic setting of supervised learning where we have two classes like this is the standard benchmarks that we study in the literature we have put a lot of efforts on addressing this problem for these two benchmarks in particular waterbeds and celebration.
So each of these data sets has two classes. The first one has the water bird class and the land bird class. And each of these classes has two types of backgrounds. In particular, water bird class, most of the water birds show up on the water background and the minority of them show up on a land background.
And for the Celebate dataset, so most of the men have grey hair, for example, and most of the women have blonde hair or non-grey hair.
Yes, so because there's a majority of each of these classes that show up in a particular background, when we train the model in a supervised manner on any of these two data sets, what happens is that during the training we minimize the loss effectively.

we minimize the loss effectively but at test time the minority group in the training has a very poor test accuracy we call this worst group accuracy because this is the lowest accuracy among the groups during the test time and
This is Furious Correlations. This is one of the issues that they cause worst group generalization accuracy. They study Furious Correlations in other contexts, for example domain generalization, but today I want to focus on this particular problem of worst group test accuracy. So the way we evaluate and we capture how...
How can we, like there is a, there are a lot of methods to fix this problem and we can evaluate their performance and their effectiveness using the accuracy disparity, which is the average accuracy minus the worst good accuracy. We want to bridge this gap and we want to perform well on all the different groups, including the minority groups.
So there are many different ways that we address this problem. If we know what are the groups, if we know all the examples, for example, in the Wetterberg class that are on the Wetter background or on the land background, then what we do is that during the training, we can upsample the smaller groups in the data. For example, I can upsample the Wetterberg on the land background or the land birds on the water background.
If I can balance the number of backgrounds in every class, then I train on this balanced data set, then I prevent the model to learn the background and the model has to learn the foreground, the actual object such that it can minimize the loss effectively.
So group balancing is a very obvious method if we know what are the groups. Group distributionally robust optimization, GDRO, is another famous method. Instead of upsampling it updates the loss of the minority groups during the training. We put a higher emphasis on them. We penalize making mistakes on the minority groups and in doing so the model has to learn.
the foreground instead of the background. PDE is a new method that warms up the model on a group balance subset of the data and later it gradually adds the rest of the examples in the training data but because of that first initial stage and the momentum like we usually use SGD or Adam plus momentum and the momentum of that warm-up stage we can gradually add the rest of the examples.
and still learn the core features in your training. So these are some of the effective methods that we can use to robustly train our model.
again statistical correlations if we don't know the groups which is usually the case in real scenarios then we have to infer those groups like there are group inference methods that are trying to infer these groups and then we do robust training on the inferred groups so some of these methods that are well known like these are not the only set of methods but these are some of the well-known methods JTT just trained twice
It trains a model using normal training, expectation risk minimization, and it separates the examples, like whatever example that is misclassified, we say that this is a minority group because they don't have this full risk correlation and the model doesn't learn them. So we train the model partially, not fully. EIIL is another method that tries to find examples that are having robust features. So robust feature is usually the core feature.
And the features that are not robust, we say that these are the spurious features. And the spare is another recent method that clusters examples based on the model output early in training. We say that when there is the strongest spurious correlation in the data, that is what the model learns very early in training.
And there are also some methods that assume that there is a group labeled high-quality validation data. And they try to use that validation data to infer the groups. Like they need additional information technically. So SSA finds examples that are similar to each of those group labeled examples in the validation data. DFR is another famous method that trains a linear model.
on the group label validation data. So these are some of the well-known methods and the reason that I went over them in detail is that we want to look at the performance and see how we are doing. So again this is the most standard setting in the literature for studying spurious correlation in the supervised setting.
so here you see that the first row is the normal training and we want to bridge this gap as I said between the worst group accuracy and average accuracy so you see that this group inference method for example is fair they are doing pretty well to address this problem and also among the group known methods in the bottom like PDE is doing pretty well like both of these methods are improving even over the average accuracy not only the
only the worst group accuracy right so we are doing pretty well to address this problem and this is standard benchmark data sets water birds and celebay and it looks like we have solved this problem right so it looks like we are doing pretty well average is improved worst group is improved that is the gap we could bridge so is this problem actually solved
So this is the common, as I know, conclusion in the literature that we have solved this problem. Let's move on to other models like ponder share models and all that. So we wanted to take a closer look at this problem and see, did we actually solve this problem? So to study, to answer this question, we looked at
A little bit more challenging settings because the data sets with training pipelines that we use in practice are not just binary classification with one very strong spurious feature or strong spurious correlation there. So we studied what if a spurious correlation is a little weaker, right? So what if the spurious correlation is not as strong and it's not the first thing that we learn in practice when we train a model.
What if there are more groups? What if there are more classes in the data sets, which are usually the case in practice, like binary classification is not usually the case, right? So let's start with this first, like I want to walk over each of these and let's start with this problem of what if the spurious correlation is not as strong? So to study this, to answer this question, we put together a new data set which we call the SpookoSan.
So the data set has four classes. So the classes are taken from the places data set. So there are four classes, recreational, residential, cultural, and infrastructure. These are the four classes we have. In each of these four classes, we have four spurious correlations. So balls is one spurious correlation, vegetables and fruit is the second spurious correlation.
and this baked goods like bagels and muffins is the other group is the other spurious correlation sorry and also the containers right this is another spurious correlation so we have four types of spurious correlations
And we put together two settings. We wanted to make this setting that this spurious correlations are learned very early in training and compare it to the case that these spurious correlations are learned a little bit later during the training. And there are many ways we can construct this setting. For example, if the size of the object is larger, we learn it earlier. If the size is smaller, we learn.
learn it later if the shape is kind of simpler we learn it earlier otherwise we learn it later if the variation is higher we learn it later otherwise we learn it earlier these are different ways but all of them we can unify and call like whatever that is simpler is learned earlier and whatever that is more difficult is learned later so in this work the way we simulated earlier versus later was with this variation
variation so for each of these spurious correlations we put together a setting that there is a higher variation and that is this low learnable spurious feature you see in the middle and another case when there is a smaller variation and that is the fast learnable case that you see on the right okay so now let's see now how all of these methods do on these new settings that the spurious correlation might be learned a little bit later
So here you see the performance comparison for all the methods that I mentioned. On the right, the fast learnable, this is the standard setting, that this is more similar to the standard benchmarks of Wetterberg and Celepe. So you see that group inference methods and group known methods, they are doing relatively well, right? So they are improving the worst group.
within to a very large extent so they are working actually but now let's look at this is lower learnable

Look at this floor learnable case that the Spurs correlation is not the first thing that is being learned, it's being learned a little bit later during the training. So now here you see that the group inference methods in particular, they are working way worse.
Right, so they cannot find the groups accurately anymore. And even the best group inference method in this case, which is EIIL, this is actually there is a very big gap between the EIIL and the group known methods. For example, the best one is group balancing in this case.
So now it seems that here the Laquenda setting is a little bit more complicated. We cannot address this problem with existing methods anymore, right? So this is a very interesting case that needs further investigation. So the best set of methods here are the ones that are using information from a group labeled high-quality validation data like SSA and DFR.
But there is a lot to do for improving the group inference methods and even the group non-methods.
Okay, so why group inference methods are affected so badly? So the reason is that they cannot find the groups very well and why that is the case. So the assumption that they use to infer the groups seems to be violated. So for example this pair which is doing pretty well on the simpler spurious correlations that are learned early in training. So it assumes that
Like, there is a very strong spurious correlation that is learned pretty early. And that is not the case in this data set. JTT assumes that all the misclassifications are for the examples that are not learned that do not have the spurious correlation. And that is again violated in this case. So our EILL has a very much harder time to find the invariant features, find the robust features.
In the case that there is actually, there is a feature that is learned and that is a core feature, that's a very useful feature. So it's also having a much harder time. You see that in the right setup bars versus the left. So the percentage of minority examples that are inferred as majority and the left case is much higher, which is the spook or something.
So there are a lot of opportunities to bridge this gap and do much better in this more realistic scenario. Okay, so moving on to the second case that we have more groups.
So what happens if we have more groups? What happens if we have more spurious features, not just one in every class? So let's take a closer look at that. So to study this closely, we have our focus on data set that I just mentioned. We also put together another data set which we call the spook animals. This we put together from Imaginette. So these are...
images in the ImageNet and we have in this case we have four classes again like big dogs the small dogs water birds and land birds but these are not copy pasted like the water birds dataset or like this book or sun datasets these are the actual images
And there are for the big dog and small dogs we have two variants of background outdoor and indoor. For the water birds versus land birds we also have two variants of the background land and water.
So in total, this data set has eight groups and four classes. So now let's put together all of this, like we have the water burden salivate, binary classification, spook animals and spook sun, each of them has four classes and also the airbank cars. Airbank cars is also a more recently, relatively recently introduced data set, binary classification, but more spurious correlation.
Okay, so in this case we see that first let's take a look at group non-methods.
So we see that the gap between the worst group and average accuracy for the group-known methods, this is increasing as we increase the number of groups. Like when we go from the binary classification with four groups, what are words and celebrity, the gap is relatively small. But when we look at their bank cards, when we look at the spook animals and when we look at the spook sun, the gap becomes larger and larger.
And this seems to be because, for example, GDRO, they are having a very hard time because they now have to adjust the weight. So different groups can become minority during the training. So they have to adjust the weight for many more minority groups during the training and they are struggling. Right. So group balancing is doing much better, but group GDRO.
which is very well known and which is used very widely it seems to be struggling much more.
So how about the group influence methods? For group influence methods we see a similar thing that the gap increases as we increase the number of groups. In particular as pair which is one of the best ones when the number of groups are small and almost bridges the gap like it doesn't do well as we looked at it before. EIRL becomes the best when we have more groups and weaker spurious correlations still the gap is
Getting pretty large for EIL too. For PD as well, the gap just increases when we increase the number of loops.
So here is the plot. This shows the gap on the y -axis versus the number of groups on the x-axis and you see that the gap almost increases linearly as we increase the number of groups. So this shows another opportunity to fix this problem like how can we address this problem when there are more number of groups.
Okay so finally more number of classes like what happens when we have more classes in the data and this is a very interesting case
So what happens is that like here as I mentioned for all these data sets that I was talking about let me move a little bit zoom. So you see that for the binary classification in particular which is the water birth case, lab A case and also the urban car case. So urban car has more groups but it is still binary classification. As we increase the worst group accuracy on the x-axis.
So you see that we can actually also improve the average accuracy on the y-axis, right? So the slope of these lines are positive.
But for the case of sudoku animals and sudoku sons that we have more classes, we have four classes each, so you see that the slope actually becomes negative and not only negative, like there is a very high variance in particular if we look at the orange dots. So you see that there is a very large variance between different methods, like for the same worst group accuracy, the average accuracy might be very high.
Some of them are achievable and some of them are achievable like lower average accuracy, which is a very interesting observation.
So each of these dots are one method, by the way. So the reason seems to be different ways these methods in particular infer the groups, like group inference seems to be the main reason for this huge discrepancy between the performance of the methods when we have more classes. So why is that the case? Here it seems that it really matters.
like the examples that we infer.
to be representative of their own classes. If the inferred examples are outliers in that class or not really representative of the classes, so then the average accuracy is negatively impacted to a very large extent. But if the inferred examples are actually having the core features that are very representative of that class, then we can actually...
get improve the word group accuracy and in the same at the same time also get a very good average accuracy right you see some of the orange dots are actually on the top so this is also a very interesting case another opportunity to kind of improve these methods when we have more number of classes okay so final note I want to also make a final note on model selection
So all of these methods rely heavily on model selection. What do I mean by model selection? So first of all, during group inference, like I said that partially trained JTT uses a partially trained model to find misclassified examples. EIL has another set of hyper parameters as pair also should figure out when to separate majority and minority. And also for
GDR for example like we should know how much to increase or decrease the base during the training for different groups like all of these are hyper parameters these hyper parameters have a very large impact on the worst group accuracy that we get in the end and so here you see this plot on the y-axis you see the relative worst group accuracy
The best and the worst, right?

right like how much different set of parameters
can increase or decrease the workload accuracy technically you see that for the binary classification task for the easier task whatever than celebi and also urban cars the gap is not as high they are not as sensitive to these audio parameters but for the more challenging data sets like animals and so on you see that this gap is huge right so if we don't do a very extensive
Set up fiber parameter tuning and model selection we get a very very bad result Okay, so in part two so model selection we knew this is important But this is even more important when the task is more challenging So this is a concrete example for airbag cars airbag cars is a binary classification task as I mentioned And it has two spurious correlation. One is the background which can be
Kind of cities or it can be nature and the other one is the co -occurring object Which is a smaller one that you may see in this video So the original paper when they introduced this data set They argued that like if you want to address because there are two spurious correlations right background and the co-occurring object
Like each of them if we want to address it results in learning the other one by the model and we cannot address both at the same time.
So they reported a poor word group accuracy in their paper. But here when we did more extensive model selection and hyperparameter tuning, we could actually improve their results by up to 37 % for different methods. So this bar plot that you see on the right shows that for different methods, the originally reported is the light blue and what we could like we could improve a lot.
over what was originally reported by doing better hyperparameter tuning. So model selection is actually very important in this in particular in this more challenging settings.
But model selection is very very expensive like in particular for group inference methods because they have additional set of hyperparameters for group inference stage. So you see on the y-axis the cost of model selection for different methods that I mentioned and x-axis is the name of those methods. Group inference methods they are up to like more than 100 or 150 times more expensive than training a model normally.
Okay, so the question, another interesting question is how to do this model selection considering that we know this is very important. How can we do this faster? How can we do this more efficiently? So here is one observation that might be helpful, but there might be many more interesting ideas.
Like here we were looking at like the group inference stage like in the group inference stage usually people use the validation data to tune the hyperparameters and we observe a positive correlation many times a strong positive correlation between the worst group accuracy of the group inference stage right and the worst group accuracy
at the end of training which is group inference plus robot training so this is something that can make model selection much much faster up to 100 times this is not perfect though this is just one way that we tried and I'm sure there are many better ways to address this question so this is another good question to study further
So I want to summarize by kind of going over some of the opportunities to address this problem better, the problem of worst group accuracy, poor worst group accuracy because of the spurious correlation. In particular, group inference methods struggle when the spurious feature is not as strong and is not the very first thing that we learn.
that the model learns. Second thing is that there is a wide gap between the worst group accuracy and average accuracy as the number of groups increases in particular we observed a linear kind of trend that the gap becomes larger with the number of groups.
The third message was that when we have more classes, when we go beyond binary classification, it really matters what examples we find in our group inference method. It's not just a matter of finding some examples from every group. Those examples should really have high quality core features in them, right? So this is, in my opinion, a very interesting direction to.
look more into and fourth thing model selection is very important in particular when the setting is more challenging and a very good question is how can we do this much faster considering that it is very expensive and slow in particular for group inference methods
So here are the data sets that we put together in case some of you want to take a closer look at or use them to study some of these interesting questions and they also have the implementation, the benchmarking of all of these methods, the code is there, the data sets are there and this is implemented in a modular way to kind of make it easier to address some of these interesting questions.
So thank you so much for listening to the talk and I'm happy to take questions if there is any. Okay. Thank you, Baha'u'llah. Can you hear me? Yes. Thank you very much for your exciting talk.
Uh that was so exciting for me, I can't how I can't experience how much it and uh also thank you for introducing the SKUCo. Uh I forgot to mention it, I wan I wanted to mention it at the beginning of my presentation and that was a very useful data set for uh research and experience correlation. Uh do we have any uh question from uh in-person attendees?
Okay. Hi Professor, thank you for the very nice talk. Uh my name is Tyler Labonte from Georgia Tech. Um I am very interested in this question of how E_R_M_ with sufficient model selection is just as good as any smart methods that people have come up with. So I'm curious
Why you think that is like it seems like the real barrier to improving group robustness is actually finding the right hyper parameters and not necessarily designing, you know, the best method, you know, in addition to ERM, like ERM is good enough by itself. So do you think there's any like fundamental explanation for this or is it just like an artifact of our benchmarks? I'd be interested to hear some deeper thoughts on that.
That's a great question. So there are actually some other studies that have also looked at ERM and they also showed that with careful hyperparameter tuning like ERM can do much better.
So the hyperparameters or regularization usually are learning rate, right, for normal training. And intuitively we can think of why tuning them better can resolve some of the issues, right? So if we regularize things better, like usually the issue is that at the end of the training we overfit these minority groups, the feature in the minority group.
groups and whatever we overfit during training can't generalize at test time right so if we can improve like if we can regularize more and we can learn them in a more generalizable manner we can expect that the features that we learn from the minority groups become more useful at test time right this is one thing and the other thing is learning rate right learning rate is also
kind of dictating what we learn and sometimes what we overfit what we overfit should be with a smaller learning rate like these two tuning them intuitively as I mentioned we can't think of why they can address some of the issue but the problem is that this hyper parameter tuning is very very expensive right although it can address the issue like it would be much nicer if we can tune them automatically
automatically, right? Like if we can come up with ways that looks at training dynamics, maybe checks some of the minority accuracies during the training, it can adjust the learning rates or weight decay during the training such that with the ERM, we can make a robust method, robust training method. I think that would be a very interesting question, that would be a very useful and practical question.

very useful and practical questions, in particular when we have all these more challenging settings of more classes, more groups, weaker spurious correlations. I think that would be a very nice opportunity to work more on.
That's Thank a great you. Yeah, question. it's very, very insightful. I had one more quick question, if you don't mind. So on the topic of like this model selection being expensive, you know, it's also expensive in terms of like group annotations and things like this. So I've seen maybe only one or two works that look at like sort of proxy labels like proxy group annotations for model selection. For example, maybe people use like the worst class accuracy as a
proxy for the worst group accuracy during model selection. So I also wanted to get your thoughts on what do you think about using proxy labels or inferred labels for model selection and do you think that is sort of do you think that we could see the same like really good ERM performance by just doing model selection on these inferred labels? Yes, that is a great question. That is actually what I showed.
Sorry. What I showed here, that is actually what we tried here. We said that like class accuracy didn't work for us. I know that in other papers, like they saw better results with using class accuracy. But when the classes become larger, that conclusion doesn't hold exactly anymore, doesn't hold as nicely as before. And this is what we tried to use.
use the group accuracy as some sort of a proxy.
for model selection. Like this worked to a good extent for us like we could do things up to 100 times faster if we don't do end-to-end tuning if we do like after group influence tuning based on the group accuracies but this is not perfect you see that for some of the models like the correlation is not as good for some of them is much better so I'm sure there might be better ways.
That's a very good problem to look at considering the importance of this model selection. Thank you. Could I ask a question on that actually?
figure uh was Yes. the worst uh group accuracy is uh the amount of worst group accuracy after model selection and and the inferred groups based on the inf inferred groups I mean uh or we have for example model selection with accurate groups and then uh actually this is just uh the grouping friends for the retraining or retraining phase.
Yeah, sorry, I went over this very quickly. So this is like for all of the group inference methods like the three that I mentioned, EIL, ASPAR and JTT. So this is the worst group accuracy and the accuracy is on a group labeled validation data. Like we always assume that there is a group labeled validation data that we can use for tuning and for model selection. And this is different than DFR and SSA that
that train and that group validation data. So these three methods use that group validation data only for tuning.
They are grouping friends. So this is the worst group accuracy and that group labeled validation data after the group for the group intransmitters. We said that, okay, what if like let's assume that whichever hyperparameters work best at group and group in France, they will also work well end to end.
It's So not okay, a perfect assumption but it can't help to a great extent. thank you. Any other question? Let me check the and any question from online attendees?
Okay, I have a quick question uh about uh I want to thank you about all your efforts in clearly preparing any data sets. We actually have very very actually bad problem with th these current data sets, especially whatever is an uh so uh uh about the uh as Fukushima and as Fukushima animal data sets uh
I think that was because you tried to somehow actually make difference between the simpler, actually experience attributes and complex experience attributes. I just want to know your opinion about measuring this simplicity and complexity because I think Yes, it's an important yeah. issue, that's of course. it that's that's a great question so as i mentioned briefly like there are different ways we can
We can think of simple versus more difficult, like the magnitude, the size of the spurious object is one factor. Like if you think of larger versus smaller, like backgrounds or foregrounds, whatever spurious feature is, like if you make their size larger, they become simpler to learn. If the variation...
is larger they become harder to learn right imagine there is the same object with different colors or with slightly different shapes like there are species of birds if we increase the variance then it is it becomes more difficult to learn right shape is one thing variance is another thing
like even the shape you can think of like round versus wavy wavy might be more difficult to learn but in general the way we unify this is that we said whatever is learned earlier that is easier and that is that might be because of the shape
That is simpler, that might be because of the larger magnitude or that might be because of the smaller variation, right. So whatever that is learned earlier that is simpler for the model and whatever that is learned later that is more difficult for the model. So that's the way we unify things. In that data set in the spook was on we used variation so we increased the variation of this correlation to make
make them learned being learned later to make them more difficult but I think the conclusions hold even if we would do this with magnitude or even if we would do this with shape right so whatever that is learned later that is more difficult to learn and I feel the same conclusions we will get.
Okay. Thank you, thank you. So you you mean that this is equivalent the time of the learning is equivalent probably to simplicity. Yes, I think time of learning can be a proxy for difficulty. Yes. And any other questions?
from the audience, and uh that uh for for that uh but for the result of uh actually the various methods on the smoke sign, I think uh you've mentioned that uh methods like T_F_R_ uh performed better, probably. I think uh the main idea that you've proposed is that because they are post-training somehow, because uh they've for example Yes, they actually train you know high quality
group labeled validation data meaning extra data and group labeled right so that's why they are using extra information but i think it is a very interesting like in practice we may not have that extra high quality group labeled data right so it's a very interesting question to improve the group inference methods and also some of the group labeled data
Okay, thank you very much and Thank if you so much. Thank there's any question. you for the great workshop and all the great conversation. Thank you and for your exciting talk and we hope that we have Baharan here but we failed with that and we already get it but thank you for actually having an online presentation that was very exciting and thanks again for all your efforts in the field.
Uh Thanks. special did data set and especially all of this. Thank you. Yeah. Uh okay, uh our next presentation uh is from uh Professor Pavlis Maylov. Uh Just a moment to introduce you. Uh he's uh uh
He's an assistant professor at N_Y_U_ and uh research scientist at the hospital, is that right? And uh without any actually other explanation, I want to invite you to uh p make your presentation. Thank you.

It takes a few moments. So So we can start.
Uh yep. Thank you so much for inviting me uh to the workshop. Very excited to to be here and present. Uh I'll be talking about weak to strong generalisation uh which is a paper that we wrote about a year ago at OpenAI. Uh this is joint work with Colin Burns, Jan Kirshner, uh Bowen Baker, Leo Gao, Leopold, Ashwin Brenner, Yining, Chen, uh Adrian Ecoffet, Manish uh Joglerkar, Jan Laike, Ilya Sutskever and Jeff Wu.
Um and one of the kind of key I think observations uh in the field of like language models and reasoning is that
Uh Mm models -hmm. are getting smart really fast. Uh if you and this plot is from back in 2023 so before we had any of the recent kind of reasoning models uh but basically the conclusion from this plot is if you like if you look at any benchmark uh that we come up with uh we tend to solve that benchmark meaning like reaching close to human level performance very quickly now uh and so the time from like when the benchmark is proposed to when we solve it
becomes shorter and shorter. Uh and uh this is maybe still true uh with the new reasoning models. So now uh we are also seeing this very fast progress on uh kind of hard reasoning tasks such as math competitions and uh coding competitions with models like 01. Um and yeah. And so uh in particular one application is that the behaviour of the models is becoming increasingly difficult to evaluate.
So maybe, for example, before when the models were simple and could not do very hard things, it was very easy to tell if the model solved the task that you asked it to solve. So if you can maybe like ask it to write a simple function and it just outputs a function and you can tell if it actually does what you asked it to do. But like.
Maybe in the future once some uh you can ask the model to do some very complicated thing like implement the whole repository from scratch and the repository can have thousands of lines maybe in some of them in language that you don't know and you cannot tell both if this is a good implementation but also if it is a safe implementation, if it does exactly what you asked your model to do uh or if it maybe introduces some backdoors or something like that.
Yep, so uh and with the recent reasoning models maybe um one re uh one thing uh about them is that they tend to produce this really long uh chains of thoughts already. So hundred thousand tokens for example uh is
Typical already and this is like the length of a book uh so like nobody would really read and carefully check a hundred thousand tokens of complicated math reasoning. And also like the models are starting to be applied to these really kind of expert level data sets like the frontier math uh where um well there is a very small percentage of people who can kind of actually evaluate the output of the models on a benchmark like this.
Um so the core challenge here uh that we think uh about in this paper is that uh humans might be unable to reliably evaluate uh the performance of superhuman models. So right now the models are not uh superhuman broadly they actually like there are experts who can evaluate uh what they're doing but it's already becoming increasingly harder. But in the future if we assume that the models will actually be superhuman in some ways uh or like in many ways.
then this becomes a major challenge. How do we kind of uh do what we now call, I guess, reinforcement learning from human feedback uh where uh we provide preference data to the models and we are trying to uh elicit the strongest capabilities out of the models and also to make sure that the behaviour they um show is safe and aligned with our preferences.
But yeah, so right now the models are not smart enough to like directly study this question. So how do we study this now? And we do that by an analogy.
Um in the traditional machine learning uh the setting is similar to what we illustrate here where the supervisor uh or like the source of labels is assumed to be kind of stronger than the models. So we assume that the source of labels is kind of ground truth maybe with some noise, but that it is a very strong source of labels relative to the student. The student is just trying to learn to reproduce what the supervisor is telling it, where the supervisor is a human labeller.
But in the future we anticipate that we might be in this setting where the supervisor is effectively weaker than the student. So like where the models have latent capability to perform the task better than any human or like the whole of humanity with all of the tools but
Yeah, we are still trying to explain to the models what the task actually is, uh and we hope that the model does better than we do, even though we provide the labels for it. And uh what we study in this paper is an analogy. Uh so instead of kind of making the student models really strong, we just make the supervisor pretty weak. Uh so the supervisor uh is going to be also a model, just a smaller uh model, a weaker model. And uh we will be trying to
teach a strong student using a weak supervisor. And uh I think the core challenges here are actually connected to some of the kind of problems in auto distribution generalisation or maybe spurious correlation literature uh where basically the supervisor is
Uh has mistakes uh in the labels uh so we assume that the supervisor will not be correct on all of the examples that we show to the student or mie and the supervisor will be more often correct on easier examples basically. So there is some bias. The supervisor will be making mistakes, but they are not um kind of random mistakes. It's not label noise. It's uh mistakes that um are biased, they are correlated with each other, and we need to kind of
decoyulate them or like yeah debias the labels
Um and also maybe the supervision is ambiguous, maybe there are multiple uh kind of ways to generalize from the data that are all consistent with the training data with the supervisor signal. So for example, if we only provide supervision on the easy examples you could imagine that there are multiple ways that you can generalize from easy examples to hard examples. And that's quite similar to how you can have multiple ways to generalize uh on data with features so you can rely on the backgrounds or you can rely on the
on the foreground. Um yeah, and we actually have tried some methods from the speech correlation literature that I'll briefly talk about towards the end of the talk.
Okay, so uh the experimental procedure that uh we will be relying on for most of the paper is as follows. So we have some task T_ and first we produce weak labels uh so to do that we just start uh from some weak model, maybe a small uh language model, and we fine-tune it on the task uh using the ground truth labels.
Uh and so the weak labels will be the predictions of the weak model on some held-out um examples for the task. Then we use those labels to train a strong model in a weak to strong. Uh uh so that's what we call the weak to strong kind of setting, weak to strong model. Uh so we train a strong model on the task, but using the labels that are produced by the weak model. And uh finally we also have a baseline uh which is a strong model fine-tuned on the ground truth labels. So
Uh effectively yeah, we have these three numbers, we have the weak model performance, uh with the strong model ceiling performance, both of those are fine -tuned on the ground truth labels, and then we also have the weak to strong uh model. So that's the strong model which is fine-tuned on the weak labels. And we will be computing this metric that we call performance gap recovery or PGR. Uh that's basically how much of the gap between the weak model and the strong model we are able to recover by training only on the weak labels.
And uh ideally we want this uh yeah, this measure to be as close to one. That would mean that the weak to strong model uh is as good as just a strong ceiling model. So training on the weak labels, we get the same performance as training on the ground truth labels. Or if is zero, that would mean that we are basically not doing any better than the supervisor.
themselves. Um yeah so that's will be the metrics that we'll be looking at. The goal is to recover P_J_R_s as close to one as possible. Okay uh so I'll talk about uh some of our results now. Um generally we consider four different classes of tasks in this paper. The first group is just regular N_L_P_ data sets. Uh so we take a bunch of standard N_L_P_ kind of question answering
Uh yeah, knowledge uh or sentiment analysis type of tasks. We turned them all into binary classification problems um and we just uh use those tasks. Um the second group of tasks is reward modelling. That's um kind of the standard part of the uh kind of language model pipeline these days uh where we just have a data set of preferences um of human preferences for
Human assistant conversations, uh maybe the same prompt, but multiple different assistant response.

being prompt but multiple different assistant responses, and we know which of the responses is preferred by the uh human labellers. And the goal is for the model is kind of to predict uh these preferences. So uh we showed two different uh responses and we asked it to predict which one uh the humans would rate better. So it's also a binary classification problem. And we use a standard kind of chatter-PT reward modelling data set uh for this experiment.
Uh next group of tasks is chess. Uh for chess we uh we do chess puzzles uh where we basically show the model a chess position and we ask it to come up with the best move in that position. And um there is only one best move by construction in the chess puzzles. Um and this is a generative task. So here the the model has to output the actual move in tokens uh that
it needs to take. And finally uh we have vision uh problems. Uh so computer vision uh the image that they said uh where we have a thousand classes um and it's a multi-class configuration. But I'll actually not be talking about the vision experiments in this talk.
Yeah, and uh we will be using the pre-trained GPT-4 base uh model family. Uh so this is the model family that kind of was used for the GPT-4 models, but before the OrelHF. So before um kind of any instruction fine -tuning. So just the base language models. Uh but pre-trained.
Okay, and uh so we'll be looking at a few plots like this, so let's spend a bit of time learning to read them. Uh so here uh the horizontal axis will be the kind of the size of the model, of the strong model that we are using, measured by the uh kind of fraction of forward pass compute of GPT-4. So the one here corresponds to the full GPT-4 and maybe like
be like the the left uh side of the spectrum would correspond to small models like similar in performance to gpt2 but all like in the gpt4 family so just like different skills of the same model class and the vertical axis here is just test accuracy on the task
Um, yeah, so the different sides of the spectrum correspond to um yeah the different models. It's not actually GPT-2, it's just a model that's in performance similar uh to GPT-2. Um yeah, and so first uh the kind of solid black line uh shows the performance uh when we train on the ground truth labels. So that's our strong ceiling performance. Um that's what we kind of try to recover with weak to strong uh generalisation. And you can see that it improves with skill.
on in general, which is what we would expect. Um
And then the different lines shown with different colours are the weak to strong performance. So here let us look at the lowest one, that would be the line corresponding to using the GPT two uh like effective GPT two model as uh the weak supervisor and the different points on the line correspond to different strong models trained with the same weak labels. So all of the points on that line use the same GPT two weak labels.
Uh but different kind of uh strong model. The leftmost point would be GPT-2, trained on GPT-2. The rightmost point will be a GPT-4 size model trained on uh GPT-2. And yeah, you can see that in this case the performance improves with scale even when we use the same kind of GPT-2 size labels.
And the other lines uh of other colours just correspond to other weak supervisors. So for example the second line would be kind of a model that's somewhere in between GPT-2 and GPT -3 in performance as the weak supervisor, and again we sweep the strong student. And uh yeah, the colour basically encodes again the fraction of compute uh the of the weak supervisor relative to GPT-4.
Okay, and just visually like the metrics that we are trying to understand is the performance gap recovered. So here you can see that for like the GPT-2 to GPT-4 case, kind of the GPT-2 base model, the GPT-2 sorry weak model performance is at about like 62%, but the GPT-4 trained with GPT -2 labels is around 70%.
uh and then the full GPT-4 like trained with ground truth labels would be at 90%. And so uh the performance gap recovered is around 25%. So we recovered like eight out of 30% uh gap in performance. Um yeah and so we'll be looking at plots like this of like the accuracy curves and also we'll be looking at the PGR curves. So that just directly shows you the performance gap recovered but using the same kind of
Uh the same way of representing information um as the plot I explained. Okay, so this is uh main kind of baseline results that we get uh when we just use the um when we just naively train the strong model on the weak labels.
So uh across the three groups of tasks that I described, and pretty much universally the performance gap regard is somewhere in between zero and one. Uh it's not zero, it's not one. So we are recovering performance that's a bit better than the supervisor but we are not getting to the full strong model performance. Um so and but the results differ between the different groups of tasks that we consider. So on the NLP data sets uh we um get the best results kind of out of the box uh so
So here, both uh like if we look at the accuracy curve, they all are kind of sloping upwards uh for any weak supervisor, the strong model performance improves with the strong model size for the fixed uh s supervisor. And actually the PGRs are also kind of sloping upwards. So we are recovering more and more uh of the performance of the strong ceiling model as we kind of increase the scale of the strong student.
Pyjars are somewhere in between like 20 and 80 percent here for for the larger models they are closer to 80 uh which is good. And then on the chess puzzles we have kind of intermediate results so we do see initially uh an improvement so a lot of the accuracy curves are kind of sloping up first but then they level out. So
Uh like we do do better than the weak supervisor uh but the performance kind of stops improving eventually uh and yeah. So and the P_G_R_s are also lower uh and are sloping downwards um compared to the N_L_P_ tasks. So this is kind of intermediate result and we have our worst results on the reward modelling task. There it's almost kind of
flat uh accuracy curves, so we do a tiny bit better than the supervisor, but kind of v not by a lot. So um yeah, the curves are almost flat and the P_J_R_s are also pretty close to zero. So yeah, uniformly very low P uh P_J_R_s.
Yeah. So that was the kind of baseline results. And then in the paper we considered a few ways of trying to improve the results to get better with the strong generalization. And I'll explain one of those which kind of worked the best. But this is also like not an actual like method that we think is kind of going to be useful for, you know, super intelligent model alignment. This is more just a way of seeing that there is actually
actually it is actually possible to make progress on this problem. Uh it is like a setting where we can do better than the baseline. So uh normally uh in the results that I explained so far uh we just trained the strong model using the cross-entropy to the weak labels and
Uh so the best you can do uh in this setting is to just reproduce exactly what the weak supervisor uh is doing. So um to just like mimic the performance of the weak supervisor. And that's not what we ultimately want in the setting. We want a strong model to be able to disagree uh with its uh weak supervisor and we want it to do better. But that's not reflected in our kind of loss uh so that's just for now that just happens based on some kind of inductive biases of the strong
of the strong model. So we can come up with a very simple idea for modifying the loss to reflect kind of the intuition that we want the strong model to be able to disagree with the weak supervisor. And so here we basically just mix in the strong model's own predictions into the weak labels. So our cross entropy is now towards the kind of convex combination of the weak labels and
the strong -well's own predictions. Uh there are some details here. So the strong-well's predictions are like hard uh s labels instead of soft labels. So we just can frown them to zeros and ones, uh and we also make sure that they are class balanced. Uh so we've set this threshold so that they are class balanced. Um which was important because otherwise sometimes like early in training the strong-well just starts predicting the same class always and that
derails the training if we mix those labels. Um and also like we I knew this coefficient alpha here from zero to point five during the first twenty percent of training. Um yeah, but intuitively we just want to make sure that if the strong model
uh has some prediction uh that it is continent for example we wanted to keep predicting that and we don't want to kind of believe the weak supervisor if it's confident that it is wrong um yeah and you can also equivalently rewrite the loss as a sum of two cross -entropy terms where the second one is basically just encouraging the confidence of the strong models you are just doing a cross-entropy from your
Libals to a hard version of those libals.

labels to a hard version of those labels, which is just effectively increasing the confidence in your own predictions.
Yeah, and that loss actually helps quite a lot on the NLP tasks. Uh so on the NLP tasks we see major improvements in the performance gap recovered. So kind of in this case that I show here, um the dashed lines are what we had for the baseline and the solid lines are what we get with this kind of confidence loss. And um for this task it basically kind of solves uh I think this issue largely of
of like weak to strong generalization for NLP tasks. So uh you can see that uh often we go from like PGR of uh like twenty percent to like almost seventy percent. Um and you recover like almost all of the performance of the strong model using only supervision from a very small uh like GPT-2 uh type model.
Um yeah and this holds across almost all of the data sets uh the NLP data sets uh that we considered. So here we show a breakdown uh by the different data sets. There are some exceptions like the data set number four here for example uh where this loss actually shorts uh a little bit. But usually like we saw this only on data sets where there was already something strange going on. So here on data set number four you can see that uh strong ceiling performance is not monotonic as a function.
function of the model size so like it becomes worse uh eventually at some point uh with increasing the model scale which is unusual uh so yeah so the exceptions like this are somewhat rare
And the other major thing is that this actually did not help on the reward models, on the reward modeling task. It helped a lot on the NLP task, but on the reward modeling task it almost did nothing. And so we don't think that this is like a satisfying actually resolution to the weak to strong generalization. This is just an example of like something you can try.
Actually for the reward modeling task we didn't have a satisfying method. Uh for for chess we did have a method that also helped, I don't have time to describe it here today, but um for the reward modeling task we had nothing that like actually got us to really high P_Jars. So that's still an open problem. And also I think it's an interesting question of why we see this big difference in performance between different tasks. We have some thoughts on this, but nothing really conclusive.
Okay, so I'll also describe a few kind of results related to understanding what we are seeing with weak to strong generalization. So one
Uh result that I thought was pretty interesting is on measuring the agreement between the student and the supervisor. But uh sorry, in this uh yeah weak to strong uh generalisation setting. So basically you can uh at the end of training cut try to measure what's the fraction of the test data points on which the supervisor and the student make the same prediction. Uh so this is something that is also sometimes measured in the desolation uh literature, for example.
Um and yeah so here we show um the like this agreement is a fraction of data points on which the models agree uh for uh the different subsets of the data. So the leftmost uh graph shows the agreement on all of the data, the middle graph shows um just the data points where the supervisor is correct, and the rightmost uh shows the mistakes uh of the supervisor. And you can see uh so if we first look at the
That's lines. That's the kind of baseline performance without the confidence loss that I described. So you can see that first of all the agreement is relatively high. It's kind of in between eighty and ninety percent usually. Uh so it's um yeah the it's actually higher than the weak
model accuracy. So the strong model is overfitting to some of the mistakes of its weak supervisor, it's predicting some of the things that the weak supervisor is wrong on. And also if you look at the solid lines, you can see that the the competence loss actually does what we want to some extent and it does decrease the agreement between the student and the supervisor, especially
Uh maybe especially on the date points where the supervisor was wrong. Uh so yeah, the reason why it helps is at least partially related to the fact that it is allowing the strong student to disagree with its supervisor.
But uh I think what's kind of interesting about this plot and maybe a little bit concerning is that we see inverse scaling. So here uh like if you look at any individual line uh it kind of goes down. Uh s and here we are training the strong student on the task of predicting the weak supervisor's labels. So that is kind of a valid machine learning task. You just have some source of labels and you train the model on that source of labels.
But we are seeing performance become worse as you increase the strong model size and that's unusual. That's, yeah, known as inverse scaling where
Yeah, basically, JPT-4 is worse at predicting JPT-2 labels than a JPT-2 size model is at predicting JPT-2 labels. And I think that's at least part of the reason why we do see weak to strong generalization work by default in the setting that we consider in this paper. It's just that for a large model, it's hard to predict the weak labels well. It's just easier for you to predict the ground truth labels than to predict.
predict the weak labels. And um so like when we train it on the weak labels, it just starts predicting the ground truth labels by default. And
The reason why I think it's concerning is that it probably won't hold for the actual like case that we care about of aligning kind of super intelligent models with weaker human feedback. Uh but I'll talk a bit more about that in the end of the talk. Okay, so I wanted to also mention like a couple of connections to some of this previous correlation work. So uh so first of all, um yeah, uh we worked on this sometime ago with
uh with Polina Kirichenko and Andrew Wilson uh where kind of the main observation was that uh you can start with a model that's been pre-trained uh on data that has like maybe
uh like uneven distribution of groups or is biased in some way and then uh that model still learns kind of good features that you can use for predicting the predicting well even on the minority groups so you can just re-train the final classifier layer and it would uh do pretty well on the minority group or under distribution ship. So basically that the the conclusion is that the features are good uh but maybe uh like the last classifier is just optimal for the data distribution.
distribution that you have in the train set and not for your kind of even like
Yeah, re-weighted uh data distribution that you have at testing. And actually we can kind of translate that to this uh setting of weak to strong generalisation. Maybe not quite directly, but uh you can ask the question of when you train uh the strong model on the weak labels, does it actually learn good features for predicting the ground truth labels? And here we do that experiment, so we compare uh just um like different linear probes, so we like in each case we just
we just take uh the features that are extracted by the model and then we train a linear classifier on uh those representations and uh yeah, the the first kind of dashed uh
Bar plots, bars in the bar plot are corresponding to linear probing, the kind of just a pre-trained model without any fine-tuning on the task. And then we showed what happens when you fine-tune on the weak labels or fine-tune on the ground truth labels. And you can see that fine-tuning on the weak labels and then doing a linear probe is actually quite a bit better than just doing a linear probe on the original base model. So again, we see a similar result that fine-tuning on like a
relevant uh but imperfect task like relevant labels actually gives you good representations, not perfect but good for predicting the ground truth labels. And another um work that we found relevant was uh this uh diversify and disambiguate from Yunho Lee, Hua Shuyau and Chelsea uh Finn. Uh so that's another work from the speech creation literature where um kind of the uh main conclusion was that you can um
train multiple classification heads and encourage some diversity between them. Um and then uh like that are all consistent with your training data, but predict in different ways on the held out data. Um and or like they rely on different features. So for example, maybe one head could focus on the spurious features, the other head could focus on the um kind of core features. And um yeah, so we actually tried
training models using this method on the like weak to strong generalization setting so maybe especially if you only restrict to like an easier set of examples in your train set you could imagine that you can train different kind of heads that would predict differently on the held out data and yeah I don't have any results to show for this but yeah we explore this method and I think it's quite promising and interesting in the setting and also there are many other methods that I think we can kind of import from the
uh robustness literature and to study in this uh weak to strong generalization setting okay uh so there are quite a few limitations in this work i think uh one is that we focus completely on the uh single forward pass

Yeah, a single forward pass classification setting, which is maybe becoming a bit less relevant these days in the language model world where now we have this like long chain of thought kind of reinforcement learning reasoning type of models where like maybe it would make sense to update the experiments to work in that in that setting. Another thing is
Maybe a bit more subtle so right now for a lot of the tasks that we consider the model actually just absorbed very very relevant data with very good kind of labels in the pre-training data set So kind of you don't need to do any
like uh kind of extremely subtle generalization uh to uh get good performance on those um on those tasks like the NLP tasks the model just kind of knows what is sentiment it knows what is like the correct uh fact that is like asked about in the QA data sets uh but which are so like the actual fine-tuning is pretty simple and we have some results showing that with few-shot prompting you can also like recover very good performance on those
when those tasks are very easily. But in the future, like for this setting where like we might expect the models to do better than humans, it feels like a somewhat different kind of type of generalisation that we might need there and we cannot we do not really study it here.
And another thing is, like what I briefly discussed before, where we see that at least part of the reason why we see weak to strong generalisation is that the strong model is pretty bad at imitating the weak supervisor, pretty bad at imitating its mistakes. But in the future we can expect that like those future models will actually be very good at imitating humans even then like like humans are wrong about something, it would be very easy to predict.
predict probably uh for the models that we might have. Okay, and then maybe um
Some of the updates from the recent models that I think are relevant here are first of all, yeah, we still are making fast progress on a lot of these kind of at least technical domains and at least narrow technical domains like competitive math, competitive coding and the models are kind of still approaching human, like top human level performance within those narrow domains.
And, yeah, so I think the kind of premise is still relevant. And then the models are also producing this very long kind of elaborate chains of thoughts. And we also don't know if those chains of thoughts are faithful. So it's very hard to evaluate if like what the model is doing is good or bad or safe. And also like a lot of the progress has been on kind of tasks where we have simple outcomes like
Again, moth and competitive coding where we can just like easily check whether what the model is doing is correct and probably that's where we would first be able to go like above human level if like the trends continue because like
At least we can check whether like a certain solution uh to a task is correct, even if like a human would not be able to produce it in this kind of simple domains. But the question is how do we generalise to more fuzzy task, the kind of uh reasoning about problems that are maybe like implications of some like political decisions or um even just evaluating kind of scientific
idea as evaluating like quality of papers. Like anything that's not easily checkable basically, I think, is pretty clear and for that we would need something like weak to strong generalisation to work, where we generalise from kind of human level supervision and we want to do better than humans. Okay, I'll skip this. Um so in summary, um the
We have found that in our simple setting the weak supervisor can elicit capabilities beyond their own, but cannot fully recover the performance of the strong model trained on the ground truth labels. And there are many kind of limitations, many open problems here. But I think this is an interesting setting that we can consider, that is in my opinion kind of new and that might be relevant in the future as the models are becoming more and more.
uh strong and hard to believe. Yep. Um, thank you, Paweł. Uh we have some reports.
Thank you very much for uh that were very interesting talk and uh very interesting challenge uh post. So uh my my question is kind of oh remark is uh quite technical about uh, you know, it's a met it's the first method you're using um uh basically this kind of no um alpha coefficient to use. I I want to mention connection to Sangrok in uh NLP where people basically oh us in Edinburgh are trying to have actually a model which tries to
tries to predict uh where this is uh reliable uh prediction or not. So we Hmm. had actually ACL two thousand nineteen paper which was a runner-up for the best paper, which kind of tried to
uh make a prediction and then you have certain budget y in uh as far as I remember in a batch on how much you can actually kind of ignore. So it was a latent Mm-hmm. variable model with this extra uh regulariser. The Yeah. setting was a bit different because it was maybe easier to predict this called distance uh distance learning. So if the label doesn't fit, doesn't uh look reasonable, uh it may have been uh quite a bit easier than in your setting, but I'm still curious if there
Is that something, some extension of this approach which is feasible? Yeah, yeah, that sounds super super relevant and super interesting. Uh yeah, we were trying to look through the literature for like relevant uh methods. I think, yeah, this sounds uh like one of them uh and there are also relevant methods in
In like uh the stereo area of uh weekly supervised uh learning I I think uh where like yeah uh people are or like kind of methods that are trying to rely on the model's own predictions in like semi-supervised learning there are also some uh relevant papers so I think yeah it would be very interesting to explore this connection more.
I imagine Good. one kind of more general uh Good. points. So I I really like you uh also kind of clarifying the point that it's a bit different setting because maybe you kind of recovering uh some of the capabilities of lan uh large language model which is acquired, you know, during training. But maybe uh I can push you a little bit on how would you think extending this approach so that oh maybe benchmarks so as that we actually can see that it's uh this type of techniques actually pushing.
should be young uh uh Yeah. the model. Yeah, I mean I think like in theory you could do an experiment where you somehow like
produce all of your pre-training data for example with a weak model like you just sample all of your pre-training data using like a GPT-2 size model for example but then you train a large model on it and you then try to recover performance that's better than GPT-2 but again using GPT-2 labels so this try to remove this kind of this analogy that the pre-training was actually like at a much better like higher quality than the supervisor.
But yeah, I think also it would be interesting to, for example, study maybe more directly, like
If we have like humans, like actual human labelers, but who are not experts in some domain, is there a way for them to like extract the best performance on that domain from the model or like how what's the gap between the performance that they can extract and the performance that like an expert in the domain can extract. So, yeah, I think those would be super interesting to study.
center here. Oh, thank you for your talk. It's uh very interesting. I was wondering uh do you have any understanding of what differentiate the three different uh regimes that you show at the beginning, so improving with uh student size uh uh dif improve uh performance d decreasing and finally steady and low. Mm-hmm.
Yeah, sorry. Yeah, I think we don't have a great understanding of this. Like part of, like we have some hypothesis maybe. So like one of the hypothesis is that
The tasks here are of different level of like fuzziness. So for the NLP, it's kind of pretty clear what the correct answer is. For the reward modelling, it's actually kind of a very big data set with a lot of even like human labellers disagree a lot on like which completions are bad best. Another hypothesis is that for the NLP data sets,
um like they are already kind of very saliently represented in the model so like things like sentiment you kind of have to learn in pre-training in order to predict next token well so like even there was an old paper on like semantic oh sorry sentient neuron I think in RNNs that like just out of pre-training RNNs have a neuron that is very correlated with the sentiment of like a comment even though they were not directly trained on sentiment prediction
action but for like the reward modelling task it's unclear if the model has a good understanding just like out of pre training of whether this is a helpful and like honest and harmless response to an

less than harmless response to an user query.
And maybe yeah another thing is related to just how hard it is for the strong model to predict the weak mistakes uh weak models mistakes uh relative to how hard it is to predict the ground truth labels. So like I think I mentioned that a little bit that yeah um based on this agreement course it looks like on the NLP tasks it's very hard for the strong model to predict the mistakes that the weak model makes uh and it's easy to predict the ground truth.
But maybe like this balance is different on the reward modelling, for example. Okay, so it is a very simple way to see this is that uh you have a hard the tasks are progressively harder on the figure, so they you have this source of noise and also the s uh the supervisor is uh weaker and therefore you have uh this addition of source of noise and if you combine them together, it's quite bad.
I mean, I think it's kind of unclear like how to define like what is a hard task or what is an easy task here. For example, you can see that the spread in performance between the smallest model we have and the largest model we have is very small on the reward modelling task. So like from that, if you define difficulty like that then maybe that is true. So, yeah, so I think it's partially true.
Oh, it was Yeah, uh so what I observe here is, uh in the supervised fine tuning uh the stronger models are robust to noisy labels. That's the first observation I think. Uh and then the second one I think is uh in the uh in the R_L_H_F_ or in the r reinforcement learning framework,
I think it's it's it's not very robust to uh noisy labels. Mm-hmm. Is that correct? Um so I mean I think maybe to me at least noisy labels implies kind of random noise to some extent, uh that like the the mistakes are decorrelate. Maybe that's not like how noise label noise is always defined, but at least that's what I think about like in image classification problems we just randomly flip the labels. Here uh I think it's important that the labels aren't
just like randomly noisy, they are noisy in predictable ways, that they the mistakes come from like a weak model. And we actually in the paper we consider different sources of weak labels where maybe like for example you only flip the labels for examples that have like very short answers or something like that just like some predictable way of introducing errors. I think that's important for this setting. And yeah, I mean
I think in the reward modelling the labels are inherently kind of ambiguous or like noisy.
In a sense like because often like if you look at those dates that's often it's like some question and two very bad responses to that question or like some question to similarly good responses to the question and even like as a human it's hard to predict which one of those is good and I think that's the reason why the spread and performance between like a tiny model and like a 4GPT-4 is only like 10% on this task and like the 4GPT-4 only gets like around like 70.
uh so yeah uh so I think it is a noisy task as and I don't think there are any like noiseless reward modelling data sets. Um, any other ones? No. Let me check. Oh. Does it have any other ones? So
Okay, thank you Pawbo. Yep, thank you. So we have our next talk on ten thirty by Chelsea and you can mount your posters now and uh thanks.
Hi again. Uh we have our third presentation by Professor Chelsea Finn and uh she is an Assistant Professor at Stanford University. Chelsea. Okay. Hi everyone. Um so, sorry to interrupt your very interesting poster presentation discussion.

interesting poster presentation discussions. I'll be talking a bit about maybe something that's a little bit different from kind of the mainstream work in this workshop, but still a form of spurious correlation, and specifically a form of spurious correlation that comes up in imitation learning.
And so as kind of a brief primer on imitation learning, we're given demonstrations collected by an expert. This would be kind of a sequence of observation, action, observation, action, and so forth. And our goal is to train a neural network that we call a policy to predict the action given the current observation.
And the goal is to be able to get a policy that when we actually run that policy in the environment, it's able to perform similar to the expert that collected the demonstration data. Now, there's a couple problems that can arise in imitation learning, but one problem I want to hone in on
is as follows. So in general, when we collect these demonstrations, you have correlations across time, specifically the actions especially are correlated across time.
When a human collects a demonstration, they will often be following some sort of latent strategy that will cause them to take actions at one point in time that are very similar to the previous point in time. And if you train a policy without any sort of history just conditioned on the image,
It might not know what strategy was being used to collect the demonstration, and it then as a result isn't able to capture these sort of temporal dependencies that arise and that are captured in demonstration data. Essentially, you can think of the true distribution as actually being a joint distribution over time, whereas if we only train a policy on a single time step, we're not actually able to capture that full joint distribution.
And related to this, the expert has some sort of memory typically, especially if the expert is a human. And there are also maybe tasks where separate from kind of the joint distribution over actions in the data, there might be some tasks that you actually need some sort of memory in order to succeed separate from the expert strategy. This could be having to do with occlusions, it could be having to do with like where you are in the stage of a task. So
Naturally, kind of the obvious thing to do here would be to train a policy with memory. So train a policy that instead of taking as input only the current state, ideally would take as input both the current state and past states that came before that.
Now, unfortunately, it turns out that if you add memory to policies, you're adding information. This actually makes the policy do worse. So there's a number of prior works that have shown that if you add history to your policy, you actually get a better validation loss and also a better training loss. But when you actually then roll out the policy in the environment, the performance gets worse. So this is a driving example where
A number of different metrics, the policy got substantially worse, it had almost double the collisions, for example, when you added history to the policy. Now what's going on here? One way to think about this is that there are spurious correlations in the history. When you look at just the current image, it's
There is it's a little bit easier to figure out what you should be predicting but when you have a past history of observations there's a lot more information that could spuriously correlate with your current action and as an example of this if you have a history of say past actions as input then
Oftentimes the past action might simply the current action that you're predicting might be exactly the same as the past action and likewise if you view if you've seen that your car has been stopped for a long time chances are in the future it's still going to be stopped and you can very easily get a policy that just continues to predict that you're going to be stopped when in reality this sort of transition when that car actually starts to move is critical to actually when you roll things out to get good performance.
And so kind of the predominant hypothesis for why imitation learning gets worse with history is because the history contains spurious correlations with the next action prediction.
One other practical challenge is that when you add memory to these policies, it actually will substantially increase memory and computational costs. And this also is another hindrance or another reason why people haven't used history. And as a result, this problem is so severe that most imitation learning models use minimal history and just use the current observation.
And so what I'd like to talk about in this talk is how do we address this challenge? The first is, can we capture this sort of temporal dependencies in human demonstrations without using history? And second, can we adjust imitation learning so that it can potentially work using history? Okay, but first let's talk about if we can address this problem without explicitly conditioning on history.
So one technique that we introduced a couple years ago was instead of training the policy to predict just the current action, we actually train the policy to predict a chunk of K future actions and then we run that chunk open loop.
And what I mean by that is, say at time zero, we'll predict a chunk of four actions. We'll then run those four actions on the robot or with the agent before getting a next observation. Then at the fourth time step, we get the observation and then predict the next four actions and repeat. And so, for example, if we had a robot controller that was operating at 50 hertz, so 50 times every second, the...
If you train this in a typical closed-loop way, you would be making a new decision every 20 milliseconds, so 50 times every second. But instead, if we use this kind of action chunking, we are going to predict 50 actions. K can be a different value, but one example is predicting 50 actions and then only making a new decision once every second instead of 50 times every second. So...
It turns out that this can be pretty effective because it can capture actually a form of temporal dependency. You can actually capture like an arc of motion by running these actions open loop without even having to have history. But there's also something somewhat concerning about this because it means that you're actually acting much more open loop without getting the latest observations. And if the world has changed, then you might be acting in a way that's quite suboptimal.
Um, no, empirically, people have found both in some of our work that introduced this idea and kind of similar work that came out around the same time that compared to using fully closed loop, which is a chunk size of K equals one on the left of these axes, using a chunk size of kind of 50 to 100 in this work because it was a very high frequency controller, or in this case, a chunk size of eight because it was a lower frequency controller.
You get much better performance with this sort of chunking compared to it being fully closed loop, especially when you have a very high control frequency.
Um, now this sort of idea was introduced a couple years ago. And at this point, in 2025, action chunking is almost ubiquitous in robot learning. So here's a number of different works from some of our work at Stanford, from the diffusion policy work that was done at Columbia and TRI, work at Google, work at Pi, work on NVIDIA, work at Figure. All of these methods are using this form of action chunking. And so this
begs the question of is this okay like is okay to be acting open loop like this and can we do better than this and I should also mention that these models they're using action chunking and they're typically using at most like one frame of history they're using very very little history as well okay so in this first part I want to dive into first like can we understand why action chunking helps in some cases and then can we second improve on it
So in terms of why action chunking helps, let's think about an example. So in this example, all of the filled-in frames are going to be the context, like basically any sort of history that's used, and the dashed frames are going to correspond to your prediction length.
And typically when you think about an expert, typically an expert will have full memory of the past and might be acting typically in a fairly closed loop way. In this visual, we're kind of writing it down as being entirely closed loop. In reality, people might have some sort of reaction time that doesn't make it entirely closed loop, but this is a decent approximation. Whereas when we use action chunking, it means that we're actually predicting many fewer, a large number of actions in the future and executing them open loop.
Now, like I mentioned, human actions are influenced by different latent variables that will cause these sort of strong temporal dependencies across time. And if we were to think about why action chucking helps, let's consider two different policies. One of the policies will have an action horizon of H, and by this I essentially mean
Um, this is very similar to the chunk size. So, uh, the, sometimes when you have a chunk size of say 50, uh, you won't always execute the full 50 time steps open loop. Uh, instead maybe you'll only predict 25 time steps open loop and then replan after 25. Uh, and so that, that horizon in which you're executing open loop, we're going to call the action horizon. Um, so let's say we have, say we have two policies, one that has an action horizon of H and one that has an action horizon of H plus D.

plus d. If we want to think about the relative strengths and weaknesses of these two policies, policy b is using more chunking, it's like more open loop. And so if action chunking is beneficial, then policy b would be better than policy a. And we can actually think about there potentially being unique strengths and weaknesses. So if we think about policy b, when it's making a prediction at time t,
It has information that policy A doesn't have. In particular, it has information about the observation right here, whereas policy A doesn't have that information. And then the downside of policy B is it doesn't have information about this more intermediate state, and it has to implicitly infer that from the earlier observation and the actions that it took. So we can think about kind of a strength and weakness. One is that it can observe this earlier state, which allows it to model.
temporal dependencies in the action behavior. And then the disadvantage is that if it incorrectly implicitly infers this intermediate state, that will yield some amount of error in its predictions at the current time step.
And so I don't want to go into all of the analysis that we did, but we were able to kind of use this kind of model of different policies to formally think about bounds on the policy's performance. And our conclusion was that there are specific advantages and disadvantages of using action chunking, and action chunking policies can attain lower error if they
If two things are true, if first there are diverse strategies or styles in the demonstrations, such that capturing those different joint distributions is helpful, and this is actually true for a large number of kind of diverse robot data sets where they're collected by many different people, not just one person. And second, the second thing that has to be true is that you can reliably predict.
unobserved future states. And this will be true in scenarios where you have a static environment that isn't changing significantly or you're able to kind of implicitly model how things are going to change. And then on the flip side, these are scenarios where action chunking, we show formally that action chunking is better than not using action chunking. And...
At the same time, we can also show scenarios where action chunking will be provably worse than not using action chunking. And these are scenarios where you have a stochastic environment and that leads to you not being able to implicitly predict what the future state will be like. And the second is in a static environment, but where there's some sort of distribution shift in the dynamics or you aren't able to implicitly model the future.
So this turns out to be fairly intuitive. Essentially, if you're in a more deterministic environment and it's really helpful to capture temporal dependencies in the data, action chunking is helpful and those turn out to be settings that are reflective of robotic settings oftentimes. But then there's other scenarios where it can be disadvantageous because you're acting more open loop at test time.
So now that we've thought about why it helps, maybe there's a way to preserve some of the strengths of action chunking without having the downside of acting open loop. So essentially, can we capture these sort of temporal dependencies in the expert's actions while acting fully closed loop at test time?
Cool. So essentially there's this trade-off between consistency and reactivity, and we actually were able to develop a method that is able to get in some ways the best of both worlds. So specifically the way that this works is we're going to use action chunking, but when we at test time, when we are figuring out what actions to execute, we're going to leverage some past information about what we recently did. So you can maybe sort of view this as a form of kind of test time computation.
And so for action chunking, we have our policy. This is executing, predicting a sequence of actions. But instead of executing this open loop, we're actually going to execute these actions in a closed loop fashion. And for this to work, we're going to execute the first action in the environment. Then we'll get the next state. Then we will predict another set of action chunks.
And in order to be consistent with the actions that we just executed, we're going to encourage, we're going to actually sample multiple possible future action chunks that we could execute, but encourage and try to pick a set of future actions that are similar to the actions that we executed in the past.
And in particular, we, at the previous time step, we might have predicted like 50 future actions and only executed the first one. And then when we then look at, predict our next chunk, we'll kind of shift the window of our chunk by one and look at whether or not those predicted actions are coherent with our prediction at the previous time step.
And this allows us to actually at test time get some coherence with regard to what we had just executed without any kind of the plan that we had just started to execute without also being able to be fully closed loop at test time.
And this means that if, for example, something has significantly changed, probably all of the action chunk samples that you will have will be different from the previous chunk. And then you will naturally deviate more from the previous chunk because something has happened to the world because it was stochastic. And we also additionally introduce one other term that we find can improve the actions as well, where we'll be looking at how...
How different these the predicted action chunks are from actions that were predicted from an earlier checkpoint that weren't quite as good. This is less about necessarily modelling temporal dependencies and more about picking actions that might be more performant. Okay.
So we refer to this as bidirectional decoding or bid, and we compared this to using a vanilla diffusion policy or a couple of different alternatives to a closed-loop diffusion policy. The first is to warm start the noise in the diffusion process from the previous decision in order to try to be more coherent, and the second is to average the new chunk prediction.
With the previous one, which we call EMA. So the first case is vanilla closed loop and these latter two cases might be alternatives for trying to get more coherence in your predictions.
And what we find across a number of environments where we're measuring success rate is that first, there are some cases where this sort of averaging can help over vanilla approach, but there's also scenarios where it can hurt because this averaging can actually average together multiple modes in a way that leads to something that's strictly worse than either of the modes that you were averaging.
And then in contrast, we find that with this sort of bidirectional decoding approach, we're able to significantly improve over kind of a vanilla closed loop approach and these competing approaches for getting more coherence in our predictions.
um here's some examples of what this looks like so um those experiments were in more static environments uh but we can also test this in more stochastic environments uh so we looked at this very simple push t example where uh you can imagine there being like some kind of wind or something where the t is being uh it's kind of drifting away and if you use uh vanilla action chunking um with an open loop fashion or these other two methods in a closed loop fashion
They aren't able to be able to kind of respond. Well, action tracking isn't able to respond quickly to the different noise and takes quite a while to make reasonable progress. And then these two approaches are kind of struggling to maintain coherence from the previous time steps. And in contrast with this sort of like decoding with the past action, with coherence with the past actions, we're able to handle this sort of stochastic environment.
We also tested this on a real robot with the stochastic environment of this very realistic cup on plate where a cup is magically moving away from the robot and we find that the robot is able to react to the changing conditions.
Cool. So to summarize, we find that action chunking can be beneficial but suffers from this trade-off between modeling temporal dependencies and reacting to the latest state. And we find that we can address this sort of trade-off by guiding the decoding process at test time.
Cool. So that's one way that we could try to capture these temporal dependencies without history. Now I'd like to talk about whether we can adjust invitation learning to work with history. And this will be applicable also to settings where the task requires memory. So
To do this we're going to pass as input the current frame and the past observations into some policy and typically the way that you might do this is you'll have your current frame your past frames and then if you're using action chunking you'll predict some set of future actions and then you will have some loss that measures the error between your predicted actions and the ground truth actions.
Now, one very simple idea that has actually implicitly been done in some prior works, but usually isn't explicitly explained, is instead of only predicting future actions, we could also predict the actions that correspond to these past image frames. And maybe if we did this, it might help them model, kind of learn some of the temporal dependencies.

some of the temporal dependencies and also learn kind of the relevant features from the past image frames rather than just the features that correlate with future actions.
This actually it's been used in some prior works but not explicit in their like implementation in their code but not really explicitly explained and we'll refer to it as past token prediction where we're not just predicting the actions that we're going to execute on the robot but we're also predicting and measuring a loss on these past tokens these past actions.
And one of the things that we find is that when we do this sort of past token prediction, we get a better success rate, but we also see that the policy is better able to model temporal relationships in the sequence of actions. So specifically, all of these models have 16 frames of history, and we're going to be testing with basically no past action prediction, just predict the current action.
action or predicting eight past actions or predicting 16 past actions. And the x-axis here is measuring essentially how
What are the kind of essentially the correlations? How well are you able to predict actions, future actions based on past executed actions? So it's essentially like how is it able to model temporal dependencies in action vectors? And then the y-axis is success rate. And we see that when we add this sort of past action prediction, we are first getting more successful policies, like much more successful policies, but we're also better able to model.
these the kind of temporal relationship between actions and the data.
Cool, so that was actually like kind of a pretty surprising finding to us. One other, I don't think we have like a complete explanation, like a rigorous explanation for why this works, but one other hypothesis here is that when we're predicting these past actions right here, it's perhaps better able to get features and better able to figure out which features are useful from the past actions and those features might also be more robust for future action prediction.
Okay. Now, I mentioned two past reasons why people don't use history. The first was performance. The second was memory and compute. And so with past action prediction, we find that that seems to address the performance gap. And in terms of handling memory and compute, we tried a simple practical trick, which is to train a policy end-to-end without history.
And then just freeze the image encoder and cache the visual embeddings on disk and then train the decoder of the policy with history. And with this trick, we're able to train a policy with history with substantially less memory and substantially less compute because we're only training the last part of the network with history and we only have to train the image encoder end to end when we train without history.
Okay, so from here forward, everything is going to use that kind of feature caching. And I mentioned some results on a simulated environment before. Let's look at some experiments on the real robot. So we developed some tasks that require memory. For example, if you need to put two scoops of something into a bowl, you might want to remember how many scoops you put in before. Or if you need to replace one mug for another, you need to remember which mug.
Doug was the one that you're replacing versus the one that was there before and similarly for tape replacement. And first we find that if you don't train with history you get a poor performing policy and that's expected because these tasks require memory. And second we find that if we don't use past token prediction and incorporate history then the policy often struggles and it often does even worse than if you do if you don't even have history in the first place.
This is likely because of those spurious correlations. And then lastly, we find that if we use past action prediction and predict both the past actions and the current actions that we're going to execute on the robot, we are first able to do much better than not using it. So we're able to mitigate the spurious correlation problem. And second, we're able to do much better than not having history, which means that the policy is actually using memory to accomplish the task.
And so if we look at videos of the robot, the top left is using past action prediction. This task was to scoop two scoops of almonds into the bowl. And first we see that if we add history and don't use past action prediction, the actions are less precise and the robot generally struggles, likely because of those various correlations.
With pass action prediction, it's able to put two scoops, exactly two scoops, into the bowl, whereas the policy without history will just keep on putting scoops into the bowl even beyond two scoops. It will just keep on filling the bowl until the bowl has many more almonds than you would like.
We also did experiments on swapping the mug and again we find that without past action prediction the policy is not very precise. If you don't have history it forgets which mug that it's replacing and it will sometimes put the white mug back in even though it's supposed to be replacing the white mug with the red mug, whereas if we use past action prediction it's able to remember which mug it was supposed to replace.
And then lastly, here are some results on actually a different robot platform. This one is using 50 hertz control instead of 20 hertz control, and it's a bi-arm task. And we find that with past action prediction, it's able to accurately replace the purple tape for the red tape without past action prediction. Whoops. The policy really struggles.
and it isn't able to accurately model the actions and then again without history the policy forgets which one is the the correct tape to replace
Cool. The last question that is perhaps worth mentioning here is that we're caching the embeddings and this might be affecting performance and it should be improving training speed and we find that the generally with the caching which is shown in green the performance is similar to without caching and the training time is on the order of like a few times faster or sometimes even longer than that.
than that. Cool. So that's kind of the main part of the talk. I talked about spurious correlations and imitation learning when you have history, a method for capturing temporal dependencies and actions without history by a test time decoding method and a way to adjust imitation learning so that it does seem to work with history by predicting both past actions and future actions.
Um, within the realm of various correlations, I think that there's also a number of exciting research directions separate from imitation learning. And this includes things like trying to guide the model with natural language and telling it what features it should be paying attention to and what features it shouldn't be paying attention to. I think that this is applicable in certain scenarios where the correlations might be interpretable. And thinking about other ways, not just through guided decoding, but other ways to adapt.
adopt at test time and we have a couple recent works that have been exploring some of these ideas but I think that both of them are very open directions. Great and I'd like to highlight Yu Jing, Jiubai'er, Andy and Marcel who are students at Stanford that led the two works that I presented today. Happy to take some questions.
Thank you, Chelsea. Um
Thank you for the great talk. Um my question is about um how we could understand perhaps what's happening with the disparities correlation maybe from a causality perspective. So here is the idea that um I guess the observer does not see some confounding factor uh that drives the policy of the demonstrator. And as a result there's some sort of unidentifiability. And and then when you're predicting a chunk of actions,
Then it helps to perhaps disambiguate this or or not or what's what's going on here?
Interesting, yeah. So first I'll mention that this sort of, like I mentioned a couple prior works at the very beginning of my talk, and those were actually thinking about it, like one of those was thinking about it specifically from a causality angle. It's called causal confusion in imitation learning. In terms of the solutions that I provided, so I think that there is a causality angle to all of this. I don't know if these, I mean certainly these solutions are not using kind of typical tools from causality to address this problem.
Um, I haven't thought too much about, like, how you'd interpret these from a causal angle, uh, other than it allows you to model, um, yeah, I think about it in very statistical ways, uh, where you're modeling, like, joint distributions and so forth, so I haven't thought about it too much, uh, but perhaps there is some sort of causal angle. Thank you.
Hi. Thanks for the great talk. I had a question about the bidirectional work. So in that case you sort of need very limited reactivity in the environment. So if you had a human in the loop, do you think you could hope to use the bidirectional approach, maybe with like some

Rrch uh maybe with like some adaptation to handle a human reacting or like a multi-turn type of setting for L_L_M_s or do you like need to be in the closed loop setting?
um so you're asking is this sort of decoding applicable to language models essentially or Yeah. yeah Yeah, or I was trying to be more general and say maybe you have a robot where there's also a human in the room and it's not just like a magical force pulling the coffee cup. There's also a human interacting with it as well. yeah absolutely so i think that these sorts of ideas are yeah quite applicable to humans in the loop as well uh and i mean basically it just means that the robot's going to be more closed loop and so
So if a human says something, it's going to be able to react faster to what the human did than if it didn't have that. And oftentimes when I've worked with robot policies that are more open loop, like that use action chunking basically, sometimes they look kind of dumb because they'll like miss a grasp. They'll be trying to pick something up, they'll miss it and they'll kind of keep doing things for another second. Then they realize that they missed it and then go back down and grasp it. But that's only like half a second later.
later. And so what this is allowing it to do is basically be able to react instantly rather than waiting half a second before reacting. Ah, cool. Thank you. Um so uh you said that predicting the the past in your in your experiments would lead to a better um understanding of the problem.
And uh perhaps like do you you have an idea of why this happens and uh it wouldn't just be um useful to put these data into the network and and don't predict them as outputs, and could this this useful for other tasks such as the sequence prediction or something like this?
Yeah, great question. So a couple thoughts. It's something that we're actually still actively investigating. First, if you
Use the past actions as input to the model that does not work and it does worse than predicting it and so I think that there is a key difference between predicting it that leads to like how the model learns compared to passing it as input. One other thing that I'll note is that we found that this sort of past action prediction, it seems to be more relevant for the decoder than the encoder and so it maybe has to do with how the features are being used and less about.
about the like visual features that are being learned in the first place um and then yeah the other thing that i'm not sure if this is like a symptom or a cause but we do kind of notice that when we use history and we don't use action um this sort of past action prediction the um it somehow isn't able to like with diffusion policies it's not uh learning actions that are kind of easily predicted from
the action that was just um just executed on the on the robot or the simulated robot uh and so that seems like um it's helping it somehow it seems like it's helping it uh like better learn information from the past history in a way that leads to more coherence across time. Um but yeah it's still something that we're investigating and those are a few empirical things that we've seen but I don't think we've really gotten to the bottom of it. Okay.
Hi, thanks for the great talk. Um I was wondering whether you could imagine the robot um Mm. deciding on its own how far to look into the past so when it makes sense um to consider like a longer trajectory of history like for example encounters a situation where it doesn't really know what to do so it um tries to like circle back in time more whereas when the next step is super clear um isn't as necessary, is that
Something that's conceivable. Yeah, I think that would be really interesting. Right now we're always keeping the history fixed in these second half experiments. And I do think that it's...
Yeah, it'd be pretty interesting, like for example the two scoop task that I mentioned, you actually need a pretty significant history to look back because you need to remember how many scoops you used and that can potentially be like the entire episode and so there are some scenarios where like if you've already if you're already starting to scoop presumably you've already decided that
You're going to scoop and you don't need super long history at that point, but other scenarios where you're at the decision point of like deciding whether or not to do another scoop or not, that's where you need the longer history. So yeah, I think that'd be pretty interesting, especially at test time in terms of the compute there and inference speed to see if you could use less history or more history. In terms of how to do something like that, I think that you could look at...
Like training loss or validation loss to determine in certain scenarios if you need more or less history. That's probably where I would start. But I mean, probably validation loss you'd have to use because training loss you could overfit. But yeah, not sure. I think it'd be interesting. Thanks. I think there's no
question from online audience. Here. So okay. Thank you. Thank you very much. Uh we have uh next presentation in ten minutes in eleven fifty.

Mm-hmm.
Thank you so much. Uh it is a real pleasure to to be here and yeah, thank you for this uh great uh workshop so far. Um okay, so in uh this presentation, let me check the time. Uh in this presentation I am going to talk some about something that is uh uh not immediately connected with speech correlations, uh but as uh we have seen and uh we will see uh
is very connected. So basically I'm interested in the problem of uh Machiavellian fairness and how bias in a Machiavellian system can arise. And uh uh in order to study this we have to work with some uh models and some framework that uh actually share strong similarities with uh speech correlations.
And so okay, we are in this workshop on uh speech correlation, a short talk learning for foundation and solutions and uh I cannot really offer any solutions quite yet. Uh so I hope uh I will give some uh insight on the foundations. Okay and let's start with the uh just a short overview of the problem. Um this is the first uh confirm case that I could find on machine learning discrimination. And uh this is something that uh uh app
happened uh uh in uh uh nineteen eighty two, so at the time uh the San Giorgio hospital uh medical school in London was receiving about Hmm. twenty five hundred uh applications per year. Then it was a screening process and finally only uh about uh uh ten percent of them overall were accepted. So the vice dean decided to automatise the process at a time and uh uh they train an algorithm on uh
data from previous years to um to classify who was a good candidate and which one was not.
And of course they are going to achieve their very high performance as expected, as all I guess at this point we all know. And four years later there was a surprising lack of diversity in the students that were hired, well, enrolled in the school and indeed it was soon reported that the school was discriminating against...
Uh the word performing in Xenophobic and uh gender discrimination. Um so in practice uh uh looking closely uh uh giving a closer look to the algorithm what they found out is that uh the algorithm was relying on features like name and place of birth to assign uh the uh high value to the student. Um and of course this is not surprising at this point, uh uh basically what we see is that uh the algorithm was just perpetuating a bias that was already there.
However, I want to discuss the fact that we should move away from the explanation okay, detail is biased, so my algorithm is going to be biased. Uh because I thought this is true, this is the only part of the picture. And uh at this point uh we have many results in the literature about uh about this. Um and um I like this one because it's very visual. Uh so in this case um
What the authors uh of this paper which are Kai et al. and uh then there was a follow-up by Fang and Shaw uh more recently, uh they were just querying some uh names of jobs uh on a Google images and they were looking at the uh the number of women and men that were appearing in the in the first one hundred images.
And then they were comparing these results with uh some uh statistics that are available for the U_S_ and so they were trying to see whether the prediction was resp uh was representative of the actual uh distribution. And as you can see for these uh two examples, so if you have a C_U_ uh prediction is eleven percent, actual number is thirty two percent, for developer is fifteen, uh against the twenty. Um and you can generalize this discussion farther. And so you can see here on the horizontal axis the
a actual percentage of women employed in certain position on the vertical axis. What uh uh this analysis says uh giving you back, um and the general trend that it seems to emerge is that if you are below fifty percent, the algorithm will underestimate the uh number of women in that position, and if it is above, it will tend to overestimate it. Um and so this is just to say that uh it's not just about uh uh replicating the stereotype that is in the data set, but it's al
is also about amplifying this stereotype. And so at this point, again, we should move away from the fact that it's just data that are biased and then so we have historical bias, which is definitely a very important factor and probably one of the main ones.
But we should acknowledge the fact that the machine learning pipeline is rather complex and bias can emerge at different places in this machine learning pipeline. And so this is not I'm not the only one advocating for this and indeed this kind of a plot was first shown uh uh in a work by Suresh Guttag uh a few years back. But now we uh also have a series of uh more recent resources that I think are quite uh compelling about how
different aspects in the design of uh of the machine learning pipeline can affect uh the bias that they might the pipeline, the the algorithm is p is showing. So we talk about

showing. So we talk about architectural complexity and level of overparameterisation. We talk about data structure, pruning, uh bench randomness and even the activation function that you use in your neural network.
And so this is where I see myself and this is where the story that I will tell you about in just one slide is located. So I want to understand how the different elements of this machine pipeline can amplify or generate bias. And then eventually would like to group them back together and try to see how they interact and maybe get a better understanding of how bias can emerge in machine learning system.
Okay, um so in particular I will focus only on one aspect which is uh how a bias changes throughout learning um and um
Something that we tend to believe, and this is an example from a data unbalanced problem, is that bias is kind of constant. So in this case what you see is that there is a minority group which is drawn in red and that there is a majority group and here we are seeing the performance condition to the two groups and as you can see basically almost from epoch 0 class 1 is very high.
performance. T uh as you progress uh uh slowly the minority group catches up.
Um and uh and this is something also that we saw this morning this kind of uh intuition is something that we can use in some mitigation strategies uh because we can uh use the first epochs to estimate what is this bias and then we can just uh use this information to uh adjust uh re-weight the laws uh and therefore maybe mitigating such bias.
So now the question that I'm asking myself is just okay, and uh uh this is a question that all my co-authors asked themselves is uh is this ass uh assumption correct? Uh is it true that uh bias is consistent throughout uh training?
And so okay, uh now I'm kind of spoiling the conclusion. Uh so we didn't just uh a simple experiment. Uh this is an experiment that was original designed by Balenciaga in 2022, um and it consists of uh the following idea. So you take a a data set, in this case it's a CIFAR-10. Then what you do is you split uh uh the classes of this data set uh k in two groups. Uh and uh the kind of group that I'm choosing here are important, but uh
uh we will see these later. So what group is a deer, bird, frogs and horse, uh And the other one is cat, airplane, automobile and Hmm. truck. Uh and now within each group we create a binary classification task. So now on the first group I try to distinguish uh deer and frog uh against bird and horse. Okay this is this is my the class that they they set up that I am uh working on. And now I'm mixing them uh the groups with a certain proportion.
ocean. And what I want to see is the performance condition to each group. And so what you can see is something like this. So in this case you have uh uh the uh the red group uh which is the group two uh which uh at the beginning is advanced, so you can sh see that the test loss is going down and then uh the test accuracy instead is much higher than uh the other group at the beginning of the training. But eventually there is a switch. And uh
And understanding the speech is actually what I'm going to do next. But as you can see here we have a a big problem, because uh all these mitigation strategies, uh if they infer the bias in the first uh one thousand epochs, uh actually that could have led uh to a very wrong conclusion. And uh over-amplified the bias that uh we will eventually get in this uh in this training. Okay, so
Now, well, I'm a theoretician, so the kind of approach that I use is a modelling-based approach. So there are mostly in my community two main approaches that people use. One is the teacher-student framework.
Uh which means uh I just uh generate some uh Gaussian data, most of the time Gaussian, uh and then I draw in hyperplane on this uh on this space. Of course this is a uh dimension of picture, but you should imagine this in high dimension. And now uh I have uh a student, uh so the hyperplane is my teacher. And the student uh uh tries to align uh its uh uh support vector is uh is the hyperplane.
to uh to the one uh of the teacher. Uh another approach, another modelling framework that is uh very much used is the Gaussian mixture. In this case I have a a Gaussian clouds and I want to separate them. An approach that we use here and that we propose is the um the uh teacher mixture approach. So in this case we use a Gaussian uh clouds to model the two groups.
And then we associate an hyperplane to each of these groups. And I think this is a very interesting framework, although it's very simplified of course, because now my student has to make compromises and I can see which one of the two hyperplanes will prefer.
And so, just to recap of how this modeling framework works, uh uh and in this case I was having in mind uh some uh examples with drug testing and uh uh male and female individuals, but it doesn't really matter. Um I generate uh uh I I sample fo I decide which group I'm sampling from, I sample uh something from the group, I use uh a teacher, so in upper plane to associate a label, and then the same uh input uh and label is given to another
uh uh shallow neural network or perceptron and uh this is uh and then this tries to minimise some loss uh in particular the mean square error.
And uh uh this is a model that I like particularly because uh if I consider the high dimensional limit where I have uh a very high dimensional data, then I can characterise analytically what is going on uh in uh my uh in my system. Uh and I can uh characterise uh uh the dynamics uh or all the performance only using a sub -set of parameters of sufficient statistics that are just the overlap
lap of these uh hyperplanes. Um and um and then I can just monitor how they evolve and this will tell me uh what is the performance, the generalisation performance and training performance of my network. Okay, uh so um if we do another very strong assumption, uh and I will try to justify this uh later on of with some simulations, um
And assume that the classifier, the student is a linear classifier.
Then I can get uh some uh uh analytical and uh explicit solution of the entire train dynamics. And of course here I'm not asking you to read this and uh I will not even enter into the the derivation this result. Uh what I want you to realise is that uh these uh uh is the these equations are just the sum of exponentials. And uh exponential are particularly nice because if I look at the exponent
to I can get the the time scale that is relevant for my problem. So uh as you see this is a a combination of few elements and mostly they uh is a a weighted combination of the variances of my uh groups uh and there is a something that depends on how far apart uh are these uh are these uh clusters. Um but now we see that there are three relevant time scales.
And so what I'm going to do next is try to understand how they play a role in this in this problem. So I will do a a a very simple uh uh I will design very simple experiments, uh trying to isolate the two of these uh time scales at a time and then I will put the all them together in order to get a like a more global understanding what is going on. Okay.
So okay, first example is the one that uh y uh people in this uh workshop are probably most interested in, which is the spurious correlation one. And I guess I don't have to repeat uh uh what uh this is about, uh in a in a very uh in a probably uh drastically oversimplified setting, uh if I want to see if I see a dark on land, uh it's a h very hard task. A very hard uh sample to classify.
Okay, so uh how can we see this uh within our modelling framework? Well um we can uh design the clusters. So we can use only single hyper-plane in this case. So there is no uh compromise to be made. And now I can put the cluster sufficiently far apart, and then I can tilt my hyper-plane in such a way that it's only marginally selecting the border of the cloud.
And so if you do something like this, you can see that now there is a very clear specification which is just the group membership. And instead uh the core feature is something that is uh a bit more complex in uh the feature space uh and uh it it a bit more um hidden. So
How can I interpret this in terms of my time scales? Well, the time scale associated with uh identifying the separation between the two clusters is this tau M_ that you can read here. And the uh one associated we identify the upper plane, is instead this tau R_
So what you see is that if I have for instance the classes are sufficiently apart or if I manipulate the angle of this of this hyperplane so that it's marginally touching this this Gaussian cloud then I can make the core feature very hard and increase the separation of the time scales.

increase the separation of the time scales. So what happens is uh is the following. So you can see that uh if I look at the generalisation error, uh this goes down and then kind of s kind of plateau and then goes uh down again again. Now if I look at the cosine similarity between uh the uh s
the shift vector between the groups and the hyperplane associated with the classification, I can see that first it aligns with the shift vector, this is the overlap in green, and then decays. And when it decays it's actually is the moment where I start to align with the relevant hyperplane.
So um this is a uh of course this is a very simplified example, but uh what you can see here is the emergence of the two two different uh behaviours where uh initially the features is fast faster to learn and uh asymptotically this disappear. And this uh second part asymptotically this disappear uh is something that is uh I don't believe is through in general actually, uh it can be
It can be that uh sometimes we observe this because of our computational budget that we are not simulating long enough and you can see here that we are in a logarithmic time scale. So it means a very long time. But it's also because uh uh in this model we cannot have a memorization and I will come back to this later on.
Okay. So now we can move to another to uh co another combination of this time scales and uh this is uh a kind of a a doomed situation where you cannot really uh solve the task. In this case you have two groups that are completely overlapping uh and they are indistinguishable almost. Uh so they are just a different variance. Uh but now you have uh uh two different hyper-planes, and so you have to choose uh so you're
you classify as the shoes which hyperplane he wants to classify best. And uh uh and this is uh the case I was interested in with the at the very beginning, because it's the case where I can see something like this emerging. So what you see here is uh the um the total uh the average loss uh uh in uh in uh purple and the loss condition to the uh
to the two groups in red and blue.
And so you can see that at the beginning of my dynamics, the red group is the one that is taking the lead. But eventually it it is the one that is per this is classifying words. And so this is OK. This is the emergence of the crossing phenomenon. And now again this is coming from the interplay of these two time scales. But what is going on here is actually what is interesting. And so using our equation we can
Try to get some understanding of it.
And so first thing that you can do, you can focus on the initial dynamics. And this is actually quite simple, because uh we can just uh take the derivative of uh the loss conditioning on one group uh and this is uh the c expression that we get. Um and then uh with some very trivial t manipulation we can see that uh we can bound the ratio between the uh the speed of improvement for one group against the other by just the ratio
of their variances, which in this case basically is you can imagine this as being the brightness because in this in this model you don't have a distinction between uh uh either form of saliency, you uh just have variance. Uh and so okay, uh what we get from this is that the saliency is what matters the most at the very beginning.
So now instead that I want to look at the asymptotic performance, I just send what is happening the final part of the dynamics, and again using my equation I can get that, and uh with some simple manipulation I can see that this is a ma a g combination of the relative representation. So how many samples I have from one cluster, how many samples I have from the other cluster, and uh they uh and they r um the brightness of the cluster or the or the variance of the
as with the clustering. So what we see here is that the saliency dominates at the beginning of the dynamics and uh relative representation uh plays a role at the end.
Okay, so now we can put all the these together, so now we have uh two different uh rules uh uh on groups that are uh kind of distinguishable, they are separated. And now since I have three three time scales, uh if I play my uh cards uh right, I can cook up example where I have uh this kind of behaviour. Uh
which is at the beginning I'm I favor group plus then I favor group minus and then eventually I favor group plus again.
And of course this is uh uh this is just to show that uh there is some relevance of this time scale and uh the way I'm doing this is just uh that uh I am uh creating um a scenario where I separate uh as much as possible the time scale so that uh the classifiar has enough time to uh to favour the other group over time.
And um this doesn't have to be the the general setting that you observe in practice, but the fact that it exists should be at least concerning. Um okay so now I want to step back from uh my simplified model because uh well it's a linear classifier classifying in hyper playing, so it's very simple. But
I do this analysis in the in the hope that there is some general truth that we can draw and so if I step back and I get some general insight I may bet I can understand what is going on also in a more complex scenarios. And so uh
The three times the three regimes that we identify here are the following. First you are uh affected by spurious correlations where most of the time what you uh what you want to what what is uh capturing the attention of your classifier is a dense cluster of solution. So if you have a small variance and a coherent structure, so lots of positive or negative labels, then uh y this will uh attract the attention of my classifier.
In the red phase instead is the saliency. So the brightness of an image is that is a capture and attention of the classifier and eventually is going to be the relative representation. So how many samples I have from one group and the other. Okay, so now that we have this general understanding of the problem, let's try to go
in the in the wild world of uh of benchmark and test this in a in a still controlled but uh less uh uh less controlled setting so where i violate the assumption that i made to derive all these equations
It's okay, I can step back and I go back to the example that I gave you at the beginning, this example from Bal and Sagun where I was mixing elements from the CIFAR-10 dataset. And now I can tell you why I choose these particular groups, so deer, bird, frogs and cat, aeroplane, automobile and truck. And the reason was that I wanted to have the largest separation in brightness in the two groups possible. So in this case the
Um the group group one uh the blue uh it is uh the darkest of the two groups. Instead group two is the brightest. And indeed when I showed this uh when I run my optimisation uh you can see that uh the uh blue group, which is dark, at the beginning is not advantageous at all, but eventually I am playing with the mixing function in such a way that uh it will get it will take the lead.
And now I can play with the different values of this row parameter. So it the first plot was ninety percent, now this is eighty percent. You can see that the the gap is kind of closing. Eventually the gap is not there anymore. And finally I get in situation where I have just a consistent bias throughout the entire dynamics. Um but something again that I think is interesting here and this connects with the analysis that we have done so far is uh that if you look at this curve, basically the curve
curve are almost the same until uh later on uh in uh in learning. And this is exactly what I was telling you before, that the rare presentation plays a minor role at the beginning of the dynamics, but eventually it's the one that is uh responsible for uh the asymptotic performance. Okay, uh so now I can uh give another example. Uh and this is uh on the uh MNIS data set. So again this is a very controlled example.
In this case uh what I do is uh I take a uh images uh of digits from zero to four and four five to nine and these are my two groups. And now what I do is applying just a simple rotation. And my classifier has to detect the rotation. And so you can see that this is again very controlled because now I can just increase uh uh the brightness of the digits so I can uh play with the angle of rotation to create more or less uh similarity between these uh
the classification problems. Um and the first thing that we observe is that we have uh uh we have the crossing phenomenon. But in our experiment that we can do is uh we can take uh a group two, the the red one uh and uh we can play with this uh with this variance.
And so and this is to test the first exponent. And so you can see that as I increase the variance of that group basically I am increasing how fast I will learn the red group.
And so again this is something that is consistent with our theory and here we are completely violating all the assumptions because this is a two -layer neural network with some non -linear activation function etc etc. And okay if I play my in if I play my cards right I can again cook up an example where I have this double crossing phenomenon.
And uh now we wanted do another experiment and this is uh uh uh less controlled. So in this case what we did was

So in this case what we did was we took a ResNet uh eighteen uh and we on CelebA.
And then we use some um uh we randomly selected the uh attribute that we use to separate the groups and the attribute that we use for classification. And the only thing that we uh were careful of is not taking categories that have uh just uh uh I dunno uh ten attributes and uh which is uh uh uh which uh it will give just a some uh furious result. And so um
Now we run a bunch of experiment, of course this is uh we are I here I'm a kind of cherry picking uh some of these experiments. But the fact that uh without any manipulation I could get uh the crossing behaviour in a some uh in some real data set on using a in architecture that we may be using is something that should uh convince us that we should actually pay attention to this problem and try to understand what is going on a bit better.
Um and so actually I realise that I'm I have been running through the talk so I am already at the conclusions. Um so I I start describing that several aspects of the machine learning pipeline can potentially generate and amplify bias and uh I argue that many of these uh um
Possible source of biases are unexplored. And so some some assumptions, like for instance in this case that we analyze the consistency of bias throughout learning, um are not necessarily true and uh can lead us to an expected behaviour, especially if we use them in uh some mitigation strategy. So in this case I focus on two aspects, uh which are the statistical properties of the data and uh the stochastic uh the gradient descent learning dynamics.
And our results show that the dynamics of bias can be non-monotonic, and this as a consequence of learning on learning heuristics, and that we can characterise what happens during learning at the different stages of learning of my algorithm.
And uh this is a this is a very simplified setting uh there are lots of limitations uh I uh some of them are trying to address at the moment uh others uh I'll be happy if you point them out because uh I will try to work on uh for a future iteration this uh of this line of research. Uh three things that pops to mind that I think are very important that we are currently working on are the effect of memorisation, which is uh definitely something crucial in experience correlations.
At the moment this is an online learning dynamics, I cannot uh memorise samples, because I see them only once or at least it's very hard for me to memorise them. Um
Another problem is that at the moment we are using just binary classification and as we saw this morning in the first talk, binary classification is has some features that are is missing some features that are very important. And finally I always start from random initialization, but often what we use is either we are in kind of continual learning setting as we as probably is the setting on the previous talk or we are using some pre-trained model.
the and so how this uh prior knowledge affect my classification is actually something that uh i think we should address in um in the future yeah and that is it so i want to thank my co collaborators that are working with me in this line of research in particular aristide and chit and rossina that are co-authors in the paper that i presented today and i am happy to take any question
Thank you, Stefano. Um do we have uh questions?
I want to know your opinion about uh if we include the effect of of batch size for example if we have samples in batch and Yeah. what will be going on. Oh that that will be that will be very cool. Yeah, um I think that is uh that is re definitely something that plays a role. Um there are uh so when I went at the beginning I was mentioning that uh people pointed out the importance of uh um
of a batch style or batch randomness in inference, there is a similar thing that people have uh observed in the uh data balance literature. And so uh yes, you can uh s you you can design algorithm that uh will uh play with the with batch size and batch ordering in order to to create uh some uh um to mitigate some of this effect. How this plays in my in my example?
I don't think we can do that, I think.
In in this case that you will observe anything interesting in my opinion uh because this is a mean field uh setting. But if you have a enough line uh learning dynamics where you visit the same sample, then uh then I think it will be very interesting to study. And indeed this is one of the thing that we want to do once we get uh the memorisation part uh working. Because then you can uh uh basically over-sample one uh group and uh
And sample just normal mounted the other one, or under sample one and uh oversample the other and sample normally the other. And therefore you can create a some uh uh more stable gradient in the descent. Thank you. Um thank you.
Do you think that if we observe these non-monotonic learning dynamics that maybe connects to the first question also a little should we then try to opt for loss functions that also adapt during training is it even reasonable to try and minimise the same loss throughout? I mean if you say that you might over or under sample classes that is probably similar to um overemphasising a class in the loss function for example but I was wondering if that is still like um a reasonable thing to do.
Maybe we should think of doing something adaptive. So yeah, I think uh I think that is a good uh a do uh good possibility. Of course uh uh so far I am I don't really want to speculate on this uh I Mm. I believe that is a possible solution, uh but then I I don't know what are the possible downside of this approach. That definitely is an improvement with respect to just doing uh fixing the the weights at the beginning. Mm.
Thanks. Other questions? Um actually I have another question uh about uh such theoretical works in um bias, um a part that I think uh everyone who wants to research in this area should decide at the beginning of its work is that how to manage the relative simplicity that, for example, in the case of a speech coalition you have various patterns.
You should somehow define the relative simplicity so because uh the spherical generalizes when they have uh a key difference uh simplicity of patterns. Uh so uh I think there are for example various ways and they have uh some in your simplicity in your work and you want to know your opinion about uh other forms of uh for example this simplicity, whether true variances or different variances of patterns or
Other forms probably if we have more complex models uh more complex than linear, probably we c we could have other forms of pattern, but I want to know your opinion in this regard. Yeah, my opinion is that uh probably there isn't a good uh notion of simplicity because simplicity is something that is dynamic and changes throughout learning. So we should uh
We should probably, I guess monitoring the loss is probably the best thing we can do.
Yes, definitely there are lots of work on implicit bias of neural networks, and they all identify some aspects, but even in a perception which is just an hyperplane in space, you can see very non-trivial effect emerging, and when you go for a deeper architecture where you can have all sort of...
dynamics uh also of the function uh in space uh then I have no idea what can uh can happen in practice. So uh we should be careful when we do this stu kind of stuff. Okay, thank you. If you don't have any other questions, I think if you don't have any other question, I think I can see okay. Thank you. Thank you very much. Yeah, thank you.
And um we have uh our next presentation on 1.30 p.m. and uh just uh actually please unmount your posters on 1.15 p.m. So we have next poster session there, thank you.

one. Maybe I'll give people a couple of minutes to get settled before I get started.
Uh good afternoon everyone and thanks to the organisers for organising this workshop and for inviting me. Uh so I wanted to talk today about some recent work that we've been doing on trying to understand the effect of large-scale pre-training. So looking at the uh title of this workshop on spurious correlations and shortcut learning, uh we was kind of a blast from the past because this was uh spurious correlations were a huge part of what I was thinking about like two three years ago.
And when I gave my job talk, I had this slide about how models can latch on to spurious correlations and the canonical example was this chest x-ray where the goal for the model was to determine whether
the whether there was a disease or not but or like there's an illness or not but the way the model actually ended up working was actually because of the way the training data was collected a lot of the people who were diagnosed were also treated and they had this collapsed lung and this was a spurious correlation and it was really hard to get models to solve questions like this where you want them to solve the underlying task without relying on spurious correlations.
So there were some, you know, some progress that we made here, but a big bottleneck was in most of these methods that require you to know what exactly the spurious correlation is, like, you know, that's impractical in a lot of situations. And so that got me to think about distribution shifts or these gaps that could happen where models are brittle more broadly beyond specific spurious correlations.
And such distribution shifts are everywhere and there were many different applications that we looked at and developed algorithms for where models were trained on specific domains but did not work on the test domains because of some kind of a distribution shift. For example, satellite remote sensing or wildlife conservation where the training data was from specific areas and specific cameras for example and didn't generalize to other broader situations.
Many such examples in healthcare as well. But as we worked on all of these you know very interesting questions about distribution shifts which were a really big challenge in getting reliable models
The emerging consensus was that we just need to train on as much data as we can and there was this paradigm of pre-training where we had ways to actually just scale up the data that we can show these models with self-supervised objectives, and so that made it very practical to actually train on a lot more data and it was very clear that pre-training on more data was the best way to robustness and a lot of the algorithms that we put a lot of effort into develop
developing were easily swamped and beaten by just using a really large pre-trained model as a starting point and then adapting it to your task.
And sort of the results that got me really excited about pre-training for robustness and really showed the benefit of large scale pre-training here was from the clip paper which is now several years ago where you can see that you get a huge benefit in all of these various natural distribution ships by just starting from a model that was pre -trained on a lot more data. And so it felt pretty...
you know natural to me and other people who are thinking about distribution shifts that we should really be leveraging these pre -trained models that were trained on so much data and have a much richer larger understanding of the world and are thereby likely to be able to you know robustly handle these distribution shifts and are less likely to use spurious correlations or shortcuts because they have been trained on these diverse data sets.
So robustness is, you know, challenging in general, and there's a lot of interesting ideas here on how to address that. And pre-training on large scale data sets offered a really rich opportunity here. Because we have a rich starting point where a model was actually pre-trained or shown diverse data and is, you know, likely to actually use the right features and reliably learn from some distribution and work on other distributions.
So that was the story up until then where the whole community was obviously excited about foundation models but even for robustness I felt like they really offered a rich starting point and a space to do a lot and were actually the ways to get greater robustness for a variety of distribution shifts.
But what I'm going to argue in this talk and hopefully encourage all of you to think about and work on is have we really cracked how to use these large scale pre-trained models effectively to improve robustness? Do we know how to both do pre-training and do fine-tuning or post-training such that we can effectively leverage this diverse information that they have and work more robustly? So one thing that we have...

So, one thing that we have found in our group over various different projects is our current approaches might actually be suboptimal. So we can come up with new methods that are, I'm going to use pre -training aware, but basically that are specialized to this two-stage paradigm. So you can have new objectives as well as data curation and so on to improve the robustness of pre-training.
So this shouldn't be that surprising that yeah, oh maybe you know whatever we currently do is not optimal, we can of course develop new approaches and there's a lot of work not just in my group, but broadly uh looking at new methods for this kind of robust post-training.
But what I found more alarming was our recent in our recent work what we find is that not just our current approach is suboptimal but they might actually be you know heading in the wrong direction so if we just kept scaling up what we're doing right now we are probably going to start getting diminishing returns and also making models worse so it's not just that our approaches are suboptimal but we really need to stop and think about how are we doing
during pre -training and post-training because if we keep doing what we're doing we're not gonna get better we might actually start getting worse. So that is what was concerning and so I hope you know to share these results with you and get all of us thinking about how should we be instead leveraging these pre-trained models which are clearly powerful but we need to do that in the right way.
So I just said that there's an emerging consensus that pre-training on more data is the best way to improve robustness. And so a natural trend and kind of what everyone's been doing now is to well keep increasing the amount of pre-training data because clearly that's a good thing. And if there's one thing that we can all agree in machine learning in this conference would be that more data is better, right? And so that's a very natural trend that we want to keep increasing the amount of pre-training data.
But what I'm going to show you is our finding that this is surprisingly it can be detrimental, so the most obvious kind of innocuous extrapolation of just pre -training on more data can actually make the models worse.
And at this point you should probably be skeptical and I want to say that this is pretty unintuitive and you shouldn't expect this to be true at all, which is why this was surprising to us that we found this in a variety of ways and we kind of dug into this more carefully. And so this is what was concerning that our current approaches are not just suboptimal but even the most obvious way of scaling this up and hoping things work can actually be detrimental.
So I'll share some results from this recent paper called Overtrained Language Models are Harder to Fine-Tune and this is work done by my student Jacob in collaboration with Sachin from CMU and a bunch of other collaborators at Princeton and Harvard and Stanford.
Okay, so we're not the first ones to worry or think about increasing pre -training data. That's a very natural trend and that's what everyone's been doing. And so you can look at, for example, the LAMA models trained by Meta. And as we, you know, as the models grow up in their generation, they're also been fed more and more tokens as illustrated here in these LAMA cartoons.
And in some sense like we do see the benefit of more data like if you actually use more pre-training data they do give you better pre-trained or you know the base models like the starting point for your models and so we plot this here for example we look at Olmo 1b's checkpoints so these were checkpoints publicly released by the people who built Olmo and we see that the benchmark performance of these base models are actually improving like you would expect when you show more data.
And so there's nothing to be worried about seeing this plot like this is what we expect.
But what was interesting was that when we looked at another evaluation, where we take our pre-trained models, but no one uses pre -trained models as it is. So they are adapted to do something, for example, follow instructions to make them usable. So what we found when we took these instruction tuned variants of these pre-trained models, so every checkpoint on the left here is you do instruction tuning on that checkpoint to get this point on the right.
And now what you see is this trend where the final checkpoint is actually worse than the intermediate checkpoints and almost like I think this is around 2.3 trillion tokens and the final is 3 trillion tokens. So you see that all your extra tokens at the end not just were you know they were making the model worse and you were strictly better by just stopping pre-training earlier and using a model that saw much less data.
So in some sense more data is helpful, but not in the sense that you actually care about in practice, which is you take these pre-trained models and an adapt them to various tasks. So in this case we plot these instruction -tuned models where um we are making them better at follow instructions and measuring performance on some held out uh sort of um target tasks that might be different from instruction tuning. So you see this forgetting behaviour where models that were trained more actually forget more.
We also see this when you're just evaluating on the task of interest itself, like you are doing instruction tuning, you can just evaluate the responses of the model in actually following these instructions. And even there you see this surprising trend where taking a pre-trained model that you thought was more powerful because it saw more data actually did worse once you did instruction tuning.
So this is very surprising and concerning, and so that led us to really think about why might this be happening, how robust is this phenomena, could this just be a quirk of particular experiments that we ran, or is this something broader going on here that should make us think about why and how should we scale up pre-training data.
So what we saw was some instances where more pre-training did not result in better post-training. And broadly we see degradation in two axes. One is exactly the task that we tried to post-train for, for example following instructions. And there's also the other effect where models that, suppose there are other tasks that you want to retain performance or some kind of an out of distribution or robustness. There again we see that models that were trained more are actually forgetting more and are hence less robust.
robust. So we also kind of checked this in another setting and in the interest of time I'm not going to talk too much about specifics but we verified that this is not something specific to one kind of instruction tuning data or one setting of instruction tuning and we looked at various other settings where we see a similar case where there are several examples where a model pre -trained more was actually doing worse after post -training.
So when and why do we actually see this surprising phenomenon?
So we try to replicate these in a smaller scale control setting so that we can actually try out a bunch of things and, you know, make sure we've gotten all the factors that we can think about. So for people who are familiar with pre -training, one thing that might occur to you is that across all these checkpoints, because of the learning rate the way the schedule works, each of these checkpoints was trained to a different learning rate, like the final learning rate that we evaluated.
And so we tried to remove this confounder by training our own much smaller models, but now we try to make sure that at least this learning rate is not a confounder and the only thing that was changing was the amount of pre-training data that these models saw. So every checkpoint had the same learning rate schedule, it saw all the same learning rates at the end, but it was just trained on different amount of tokens.
So we pre-train on high quality C4 data and we do some fine tuning on language model tasks. And because these are smaller scale models, we couldn't directly use accuracy. They're pretty low for various tasks. So we measure robustness by seeing we have a model that was pre-trained on web data and we fine tune and we go back and evaluate after fine tuning how good is the model still at this broad web data. Like that's you can think of this as a proxy.
For how well is the model remembering everything that it saw in pre-training?
And when we run these experiments on smaller scale models, and we, you know, ran multiple runs and so on, we see that again, we see catastrophic overtraining or this behavior. So we're doing perplexity, so lower is better here. And we see again this overtraining, catastrophic overtraining phenomena where on some data sets, as we pre-train on more data, the performance after fine-tuning is actually worse than if we
we pre -train on less data. So this doesn't occur on every fine tuning data set in the setups that we ran and I'll talk a little bit about why that's the case. But there were many instances where we saw this behavior again. So that convinced us that it wasn't just a quirk of the learning rates of these publicly released checkpoints and there's something broader or deeper going on here about what happens when we scale up or train the model on more pre-training data.
And the easiest way to think about like what's the broader phenomenon is to consider a very simple way of changing these models. So fine tuning is one targeted kind of you pass some gradients on a data set and change the parameters. But let's look at a very simple way in which you can change the parameters which is just add noise to these parameters. Because I think of this as like sort of a simple warm up to understand what's going on.
So when you add noise to any of these parameters, you are going to decrease the performance. So you're going to see a drop in perplexity as we add model um noise to the model weights. But what we see is this really um sort of striking trend here, where for the same okay so each of these curves here is a fixed perturbation size. And for the same perturbation

And for the same perturbation size, we see that as we pre-train on more tokens, the drop in perplexity keeps monotonically increasing.
So what this means is a model that was pre-trained on more tokens is less robust to adding noise compared to a model that was pre-trained on less tokens. And this was a pretty clear universal trend that we observed where across every perturbation size, we saw that the more pre-trained model was kind of less robust to adding that noise compared to a less pre -trained model.
So what we find is that models become brittle as we pre-train longer. To this very clear way of, you know, defining brittleness which is just adding noise and seeing how robust are they to adding noise.
And if we look at not the drop but the absolute perplexity after adding noise then we start getting these sort of U-trends where at the beginning the model is actually just you know learning more from the data, so it is getting better and even if there is some sensitivity it's okay, but at some point the gain that we get from the model seeing more data is overtaken by the increase in perplex uh increase in sensitivity.
So eventually, because of the fact that we see this uniform or this monotonic increase in brittleness that actually overpowers whatever the model learns by, you know, seeing more data.
So we have a kind of a schematic here. In general, as we see more tokens, the perplexity will go down, the model is learning something, but the hidden kind of behavior that's also going on is that the sensitivity keeps increasing. And so when you combine the two together, you get this kind of trend where at some point, the benefit that you get from seeing more tokens is overtaken by sensitivity.
And if you're looking kind of for a visual here, one way to see this is early in pre-training, like all parameter, like everything around this pre-trained model is still reasonable. And so, but then once you do a lot of pre-training, it makes your current parameter setting really good, but everything around it might not be very good, which means that like now we are in this sort of landscape where it's just very, it cannot tolerate any noise.
So that's one thing that kind of can happen as we pre-train models longer is that they become much less robust and it also means that it's much harder to actually fine-tune these models because changes to these parameters are actually going to destroy information in a much higher rate than if you use an earlier checkpoint which just knew less about the world in some sense.
And we actually saw this phenomenon more broadly beyond fine-tuning or Gaussian noise as well, and that's actually what motivated the study in the first place, was this result for quantization where another way in which people use pre -trained models and modify them is when you want to serve them, you might try to reduce...
The cost by quantizing. And again, we saw something similar there where when you quantize models, if you quantize them a lot, we see this trend where eventually quantizing a more pre-trained model was worse than quantizing a model that just saw less tokens to begin with. So there's a broad phenomenon here where as we pre-trained models longer, they're actually becoming less robust to noise.
And, okay, so what determines this inflection, like what determines the point at which actually we start doing worse is really the magnitude of perturbation. So for really large perturbations, like we see this overtraining effect kick in earlier on in pre-training, whereas for smaller perturbations it kicks in later. So all our experiments, if you were to extrapolate to like pre-training more and more, what this is saying that for every perturbation size, you will actually eventually see this overtraining phenomenon where you shouldn't be.
be training that long so the takeaway here is in from our Gaussian experiments was that larger perturbation magnitudes all okay all magnitudes lead to this over training phenomenon and the more the perturbation like the earlier you're going to see this increase of the inflection point
So I'm going to tie it back loosely to price training, and I encourage you to look at the paper for more details here. Um so I believe that the current price training methods which basically involve passing gradients and some loss through the model you can think of that as providing some information to the model. But it's a pretty noisy information because it's updating a lot of things in the model and we don't really know what where what is stored and how these gradients affect the model. So you can think of that as you know providing some noisy information that is
that is telling the model where to go. And that noise is actually a problem because we just saw that as we pre-train more, that noise can actually destroy a lot more information in your model.
And in our experiments we found that a proxy for magnitude of perturbation was learning rate and so if you can use a small learning rate what ends up happening is the model forgets less, but then it also learns m less of the new information that you shared. So there's this kind of a trade-off between how much you wanna forget and how much you want to actually adapt. And depending on where it lies um for different tasks you may or may not see this U-curve for the current amount of
of pre -training so which is why on some data sets we saw that the performance you know got worse that's because we actually needed to have a larger learning rate um because the task was slightly different or harder to adapt to but the moment we actually ended up you needing a larger learning rate that led to more forgetting as well and so there was this balance and what this also says is that even for tasks that we did not yet see this behaviour that more pre-training is worse we might see it if we kept pre-training for longer
And we have, you know, more details here in the paper about various regimes and when and why we might see overtraining. So kind of want to summarise here, I actually don't know how I'm doing on time, but, you know, if I finish early, we can take more questions.
So I think pre -training offers a very powerful paradigm for robustness and there's a lot of examples showing this and I you know in my group as well we have repeatedly found that using pre-trained models is the way to improve robustness and prevent the model from using shortcuts and so on.
But there's also a large space here that we don't understand, which is how exactly should we be using these pre-trained models in the first place. And a lot of our post-training methods are very ad hoc, they're not targeted, and we don't really know when and why they work or what they're changing. And that's fine because it gives you some gains. But if we were to just continue to scale up these approaches, we actually find that they can be detrimental. So that means we really need to think about what is the...
The right way to use pre-trained models, if we kept doing what we're doing, we find that there is a tension where we can improve robustness, but at some point there's actually going to be a case where we won't see any more gains and we'll actually see things getting worse.
And so hopefully this is an invitation and you're convinced that we need to actually develop new methods of both pre -training and post-training and the synergy that allows us to adapt information in a way that still robustly preserves diverse pre-trained information.
And we've done some work, and I just wanted to point out in case it's of interest. So we have looked at new algorithms for post-training that improve robustness. Um and in we have t th these are on clip models. Uh but similar ideas might apply to language models as well and more broadly on how to regularise the fine tuning to preserve information better. We've also looked at data curation and how do we collect the post-training data in relation to its pre-training in in relation to the
to the pre -training data that will allow us to better preserve robustness again. And hopefully there's a lot more work we can do in this space to figure out the right interplay between pre-training and post-training that will allow us to effectively use the extra robustness that we can get from these models. With that I want to thank the authors of this paper that I mostly spoke about which is overtrained models are harder to fine-tune and more broadly my group at CMU.
And I can take questions. Yes, how are we doing this? Thank you, I think thank you for your very exciting talk. So you have some questions?
Hi uh thanks for the great talk. And so if I understand uh correctly you mean there's something like the parameters after the pre-training they get stuck in like this very sharp region Mm-hmm. in the loss landscape, so they're kind of brittle. So my question is like uh could I do something like uh optimisation where I add like a bit of noise after the like you know the gradient add a bit of noise, there has been some method like this proposed before. So would something like that help, yes or no and why?
And why? Yeah, I guess my intuition is that it it should help. I guess we need to find a way w um where it's it's f computationally efficient and it also allows the model to still learn while being f robust. So yeah, th there that's an open question. I think it's very reasonable that they would work. We also had a paper two years ago uh looking at like sharpness aware minimisation, which I guess is sort of similar in spirit and how it can actually lead to better feature learning uh for downstream tasks. So I think there are some preliminary signs that some of those would be helpful.
full, but you know, of course there's a lot of things that we could try and uh we haven't tested any of that yet. Thanks. Thank you.
Thanks for the nice talk. I had kind of a related question to Mm that -hmm. one which was I think in your diagram you showed this kind of like average case notion of sharpness where you're just adding noise and and seeing how the losses affected. I'm wondering did you also investigate these like worst case notions of of sharpness where maybe you're looking at like the maximum eigenvalue of the Hessian or something like this and and did the same conclusion.

Like this and and did the same conclusions hold with that metric Yeah, so actually like when it depends on how we compute these
like they Hessian so even for the average case average case scenario like the the approximations that we used in practice like actually broke and did not reflect the trends with Gaussian noise so we don't I don't have like very um clear like results to tell you there so we tried doing things I imagine that we would see a very similar effect but it really depends on kind of the magnitude that is set so that we to to tell about like how it actually implies for things like fine tuning.
beginning. Thank you. Uh I think this is someone here? Oh.
Oh, sorry. Yes. Hi. Hey, thanks for the great talk. It's very interesting phenomenon of catastrophic over-training and it made me think of this other issue in the literature of catastrophic forgetting. Mm hmm. I was wondering if you could maybe offer some thoughts on analogies between the two phenomena and other things we can learn about like from that literature to maybe address this issue. Yeah, that's it. Yeah, we actually intentionally chose the name because we think it's very related to the catastrophic.
quick uh forgetting phenomena but people haven't looked at that specifically for things like you know language models but I think there's an interesting sense where the pre-trained information is not really an unrelated task and so it can actually kind of help or synergize with your new task as well so it's a new kind of thing where it's not as simple as like two different tasks but they are like a very rich transfer and in terms of ideas that can help so things like can we replay the pre-training data would that help
up can we average the weights of these models would that better preserve i think in from our findings like all of these are good ways to actually kind of get get uh good performance so i think there's a lot of inspiration for that we could get from the catastrophic forgetting literature to address this Thank you.
Thanks for the talk. Uh I think this phenomenon is may related to the quality of the pre-trained data set. Mm-hmm. So uh if the we can ensure uh the all pre-trained data is very high quality, then problem can be solved. And also uh how can we uh control the quality of the large uh quantities Yeah, actually of data? want to clarify um all of these models are are trained on high quality data.
the data. So it's not an issue that our pre-training data is noisy. So the base models are actually improving and so the data is high quality. It's more that our we will always need to adapt these models in some way because we might want to use it in a new situation like or like targeted to specific tasks especially because pre-training by definition is supposed to be kind of task agnostic. So we'll always need to do do post-training no matter the quality of the pre-training data.
And so I don't think this phenomenon is going to go away by curating the pre-training data. But maybe there are ways to curate the post-training data that like kind of prevent forgetting in some way. And so we've had some results kind of like things that the model knows better, it's better to post-train on because that like kind of prevents forgetting and things like that. So that is probably reasonable to try. But I don't think the quality of pre-training data will solve this issue, especially because our empirical results are all on like really high quality.
high quality uh pre-training data. Okay, thank you.
Hi, thanks for the talk. You had a slide where you showed that not on all post-training tasks Uh-huh. like we we saw the same regression. Do you have any intuition for like Like this one I imagine? yes, this Okay. one I think. Do you have do you have any intuition for like why it's uh in some cases it's bad and in some cases it's fine? Yeah, yeah I went over that a little bit fast, but it depends on what's the learning rate we need to end up using. So in some sense if we don't have to update the model too much then we don't forget much. Like we can we can get away with like
like really making small changes to the model and you can think of that as adding small Gaussian perturbations which is why, you know, maybe you have to train much longer to see a an increase. But as in some task we need to add a much larger perturbation. And what determines that is like we had v you have a validation set. Like for example suppose you want to improve instruction following, you have a validation set to measure how well you are at following instructions, and you will update the model such that the validation performance is good.
good. So in some tasks, when we look at what's the learning rate that leads to good validation performance, it ends up being high, which means that we will see like we are adding more perturbation and so we see this sort of degradation. Whereas in some tasks we end up needing to have like smaller learning rate and so that allows the model to like not have that degradation. So it's this balance between how much we need to change the model to actually learn the new task and that will control whether we forget more or not.
Is there also, as a follow-up, a meaningful notion of like the, how do post-training data sets differ from the pre -training task? Or I don't know. Yeah, that's a great question. So in our theory, in our paper, we actually kind of formalize this theoretically in a transfer learning set, in like a linear transfer learning setup to give some intuition about things like that. And it's maybe what you would expect, which is if the pre-training and fine tuning distribution are close in some metric, then we don't have to adapt the model much. And so we won't see the.
the drop, but if the distributions are far, uh then we will see this phenomenon. But like kind of how to exactly say what is near and far, um for practical distributions, I think is an open question. Yeah, thanks. Any other question? So thank you, thank you Okay, very much. thank you very much. We have our
I only exoc in I think fifteen minutes and two fifteen p.m.

Oh
Thank you for having me. Thank you all for coming to this talk. So in this talk I'm going to try to tell you a bit about some of the work we've been doing over the past few years and think about it from kind of a representational perspective and try to convince you that it's useful to take a representational perspective on what shortcuts are, what simplicity bias is, and how models generalize.
And the reason I'm giving you sort of this high level framing is because I wasn't really I couldn't really decide what to tell you about in this talk. So I just decided to give you sort of bite sized samplers of a lot of different ideas from things we've worked on over the years. I'm going to try to use this overall framing to kind of make a some sort of vague coherent story out of it all. So the overall way
I think about a lot of these works is that we're going to have a task which is going to be some input-output mapping like many machine learning tasks that's mediated by some features that we think that the inputs have. So for example we might have a task like image categorization

we might have a task like image categorization where there's images as inputs and there's classes as outputs, and the features are things like shapes and colours and backgrounds that are shown in the images. Or we might have a task like w natural language processing where the inputs are questions and the outputs are answers. And you might use features like logic or semantics or just guessing to try to get the answer to a question.
And the idea here is that there's going to be some features like the shape of an object or logic that we think are the right features to use to answer the questions, and there's other features that we think are sort of spurious shortcuts that might allow you to guess the answer a lot of the time, but they're not really giving you the ground truth answer.
And the particular kind of setting that I'm going to focus on in this talk is this case where the feature computation difficulty and how close to the ground truth they are trade off. So for example, if we have something like image classification, maybe it's a little harder to figure out what the right shape of the object is than it is to just sort of look at the background and guess what is shown. But the shape is actually the thing that's most predictive of the category label. The background is a bit less predictive.
So the question is what happens when these two features trade-off, one's harder but more predictive, one's easier but less predictive, and in particular what happens under distribution shift? Because maybe suddenly in uh when you test the model out in the real world, you see the same shapes in very different locations than you saw them in training. Will the model generalise to this or not? Well, it depends on how much it's using one feature or the other.
Okay, and the kinds of analyses we're going to do to look at this is how these features are reflected in both the model's behaviours and representations. So we take some scary black box machine learning model, we train it to do image classification, and we're going to ask in the internal representations and in the outputs, how are these different features that we think are involved in processing the input, how are they contributing to each of these parts of the model?
So in this talk I'm going to try to go through a few different programs of research we've had over the years. In the first part of the talk I'm going to give kind of a foundational perspective on how difficulty drives model biases towards certain features at multiple levels. These range from classic simplicity biases which of course you've seen a lot of probably in the past to some more recent work that we've done looking at how biases towards easy features persist in the model's representations even long after it has learned harder features.
features and that these persistent biases can impact what models learn downstream and also how we interpret the models.
And then in the second part of the talk, I'm going to give two brief case studies that I think are interesting on how we can encourage models to learn the right features by taking this representational perspective and thinking about what will shape the representations towards the features we want the model to use to generalise. And a a final kind of uh controversial case study perhaps on a case where using easy shortcut features that are totally spurious can actually be the thing that unlocks model generalisation on harder tasks later.
Later. Okay, so let's dive right into the foundational part. So, I'm gonna start with two examples from a much older work that we did back in the day when people trained convnets instead of vision transformers, and this study was quite simple. So we constructed some controlled datasets where we had images of things that have different colors, shapes, and textures, and we looked at the representations from a convnet before we even start training it across the different layers.
And what we found is that if you look across the layers, well there's sort of an overall ordering in which features are easiest to decode. In general, across all the layers, color is the easiest feature to linearly decode from an untrained model. Shape is sort of intermediate and texture is harder. But these biases also change across the layers.
And what we find is that these biases in the untrained model are important for predicting or can predict what the model will do if you train it in a case where these features are sort of confounded. So if we make it so that color and shape are both perfectly predictive of a label in training, so the model can't really tell which one is the right feature, what happens if you then test the model on cases where you can disentangle these two features is that the model prefers this easier to decode feature color.
over the shape feature. But if you take a instead make shape and texture entangled in training, and then you test them disentangled, then the model prefers shape over texture because again shape was easier to code than texture.
Okay, that's one notion of simplicity, but here's a simpler notion that very clearly matches this linear decodability description, which is just if we take a simple Boolean input and we have the model compute two features of it, or we can have two features of it, one is an easy linear feature like just copy one of the inputs and the other will be a harder non-linear feature like compute some parity function over a bunch of the inputs. And then we're going to test again a case where in this case where
where the uh what easier input is a bit less predictive and the hard input is a bit more predictive. And what we find in this setting is, of course, the linear feature is more decodable early in training, but this also means that if the linear feature is only a bit less predictive than the hard feature, the model will use it much more after training even though the hard feature generalises better.
So these are two examples of a much broader literature that I'm sure you all have seen showing that models are biased to use easy or simple features that are more decodable for training, such as features that are more linear or that, you know, are just like color instead of something more complicated.
Okay, that probably wasn't too surprising to all of you, but I hope this part maybe will be. So what we're going to talk about here is what happens to the representations of the model if the model is trained to output both of these features. So we're going to train the model just to have separate outputs where it outputs the easy feature and the hard feature independently. And we're going to ask what happens to the model's representations after it's learned both of these features very well.
So for example, you might think that at the last layer, right before it has to linearly classify both of these features, the model would learn representations such that for a given input, it will sort of group it into a cluster that sort of allows it to cleanly slice along one dimension between uh the sort of easy features and along another dimension between the hard features. So if you did something like PCA on the model's representations, you would see nice uh four nice clusters like this.
But in fact, if we take a train model and we look at the top two principal components of its representations, uh I'm showing here the easy feature value with the colours and the hard feature value with the shapes. And what you can see is that on the top two principal components, there's very clear clustering by the easy feature and you just can't linearly decode the hard feature at all. So that hard feature is linearly encoded somewhere in the principal components of the model, but it's nowhere close to the top.
Right. And so what this means is, well, so one way we can quantify these kinds of biases more rigorously is to ask how much variance is explained by each feature in the model's representations. So the way we're going to do that is basically just take a data set where we have some inputs, we have the easy and hard feature for those inputs, and we have the representations that the model produces when it processes them.
And we're just going to ask if we use just the feature values, how much about the representations can we predict? So for example, maybe we'll be able to predict 45 % of the variance with the easy feature representations and 10% with the hard feature representations.
So now I'm going to show you a plot over training. First of all, this is just the test accuracy for the two uh features. Uh so you can see that the model learns the easy feature very fast. It converges to a hundred percent test accuracy. By the way, this is a held out test set. So this is generalisation. Uh and similarly, the model can learns the hard feature, learns it more slowly, but eventually it gets to a hundred percent generalisation accuracy on that too.
Now, if we look at the variance carried in the final representations by each of those features, what you can see is that early in training, of course the model's only learned about the easy features, so you can see there's some variance explained by that, there's really nothing explained by the hard feature. But what you can see is that even as the hard feature comes to be learned, it still doesn't capture that much variance in the model's representations. So in other words, there's a huge bias towards the easy feature in the representations of the model.
model even after it's generalizing both of these features very well, and that's why the top two principal components are basically only focused on the easy feature. So model representations maintain strong biases towards easy, simpler features, even after hard ones have been learned.
Okay, so just quickly I wanna dig into that into a little more detail. So I wanna talk a bit about why these representations are biased towards some features. We had two kind of hypotheses about why this might be. The first is that, well it's because the easy feature is learned first that it gets represented more strongly. This is sort of a race hypothesis. And the second is that it's because there are more natural ways to represent a non-linear feature. So just to unpack that a bit, if we think about a simpler non-linear feature, X_ or.
There's basically kind of two ways you can compute the XOR feature, right? You have to do a first layer of linear classifiers and then put another layer on top of it. And you can either draw those first layer classifiers this way and say anything in between them is a positive example. Or you can draw the classifiers this way and say anything not in between them is a positive example. And it turns out that if you look at the way these different kinds of ways of drawing the classifiers represent the input feature space, they're actually anti-correlated.
related. So they arrive at very different patterns of representation of the features.
Of the inputs. So what we did to test these two hypotheses was just to uh for the uh first hypothesis is easy, we're just going to pre-train only on the hard feature and then switch to training both features. And for the second hypothesis, we do something a little more complicated, which is basically we augment the space that we're using to estimate how much of the feature representations are carried by each uh much of the model's representations are captured by each feature.

stations are captured by each feature. Yeah.
So if we just look at this sort of how much of the models' representations are captured by all the different ways that you could represent the hard feature, what we find is that this closes some of the gap. So once we account for that, we do see a bit more of the model's variance being explained by the hard feature. But still there's a strong bias towards the easy feature. But if we do both things, so if we pre-train the hard feature, you can see here we're learning the hard feature first,
first and then switching on training for the easy feature. And once we do that and we account for the different ways of representing the hard feature, finally we see the gap co- close. So the both hypotheses seem to hold to some extent. The models representations are biased towards the easier features, even after the hard ones are learned, both because the easy features are learned first, and because there's sort of uh only one natural way to represent them up to linear equivalents. Okay, yeah.
So why am I telling you about these biases? Well, I'm going to give you three examples of why these biases matter. The first is that these biases continue to influence subsequent learning. So if we take this model, we've pre-trained it. It has this sort of representation space that strongly captures the easy feature. And then we just add another output unit to it and we train this on some feature that is on some task that is related to both the easy and hard features. What we find is that if both features are highly predictive.
if what a model learns downstream will be biased towards the easy feature, even though both are now linearly decodable from the model's output space because it's carrying more variance in the model's representation. So in other words, even after a model has learned easy and hard features, if you then post-train it on something that relates to easy and hard features both, it may still be biased towards using the easier features for that task.
These biases can also influence the robustness of the model along different dimensions. So the way we estimated this is we just asked how hard do we have to intervene on the model's representations to try to flip its label for one feature or the other. So if we know that there's some point here and we want to move if we just sort of like intervene along the direction that our regression identifies can we flip the label the model will output for that feature without influencing how it's outputting the other feature.
And so that's exactly what we tried. And if we intervene on the subspace of the model's representations that we think corresponds to the easy feature, what you can see is as we do a larger and larger intervention along this horizontal axis, we start to flip some of the model's labels for some of the easy features. And if we do a large enough intervention right here, we flip all of them. That's exactly the sort of magnitude of intervention that our regression would predict.
However, if we intervene on the hard subspace, again we can flip all the hard the l uh models' labels for the hard features. Uh but the interesting thing to note here is that the place at which the magnitude of intervention that takes to flip the labels for the hard features is much smaller than the magnitude of intervention it takes to flip all the labels for the easy features. So in other words, the model is representing the easy features more robustly to perturbation than it is representing the hard features.
And while I was sitting here in Aditya's talk, I was like, oh, I think I understand these results about model perturbations after overtraining, because this is exactly the kind of thing you would expect if after more training the model is learning harder features, the harder features are represented in a way that carries less variance so they're less robust to perturbations. Anyway, okay, cool.
So the last thing I want to mention and actually the thing that motivated a lot of our interest in these representation biases was the fact that these biases might lead to spurious researcher interpretations. So what I mean by that is if you're someone doing mechanistic interpretability, you've got a big black box model and you want to make sense of what it's doing, well what are you going to do? You take these giant high-dimensional representations and you need to do some sort of analysis to make sense of them. So maybe you do principal components analysis like I did in the beginning.
you look at the top principal components you try to guess what the model is doing but as I just showed you that analysis is strongly biased towards the represent the representations of easier features because they carry more variance and similarly things like representational similarity analysis or training a sparse audio encoder all of these things at some stage of the processing pipeline care more about high variance features than low variance ones and so they might be biased towards capturing certain kinds of features and not others
others. And so what this can lead to is cases where you'd come up with an interpretation of what the model is doing that, for example, is faithful on in distribution inputs that sort of match the data you use to test to come up with your interpretation. But then if you go to some hard out of distribution setting where you would really care about your interpretations of the model predicting what it does, like because it's a adversarial test or something like that, you may find that that is precisely the case where your
Your interpretations of the model become less faithful because the model is then relying on these low-variance features that you didn't capture well with your interpretability. So that's just to say that these representation biases can have downstream impacts on what models will learn, on their robustness, and on how we interpret them. Cool.
So in the second part of the talk, I want to shift a little bit from these foundational issues and talk about some sort of applications and implications of them. And the first thing I'm going to talk about is whether we can steer what models will learn among confounded features.
So this comes from some work where we trained some RL agents in a virtual environment and the task we were training the agents to do was to identify which object is unique among many objects from multiple confounded features. So it's like the agent is trained to pick this object from among the other objects in the scene, but this object has a unique colour, a unique shape and a unique texture. So in training the agent can use any of these features to predict uh which object it should choose.
But what we're going to do is, of course, give it a harder test setting, a deconfounded evaluation. And so we're going to test it on cases where there are different objects that have unique texture, unique colour and unique shape. And we're going to ask which feature the model is going to use to generalise to this test.
And, of course, if we just don't do anything, we train the agents and then we test them in this deconfounded setting. What we find is that the models are biased, of course, towards using the easiest feature which as we saw earlier is colour. So they more often choose the unique colour object rather than the one that has unique shape or texture. So what we want to ask is, well, let's say we know that shape is really the feature we want models to use here, is there some way we can avoid reliance on this shortcut without having to train models on the test distribution?
And so the inspiration we took for this was from how humans learn. For us, explanations are very helpful for helping us identify the right causal features to generalize from a situation. Like someone sits down with you and is like oh, your programme is crashing because your CUDA version is out of date. That tells you something that's useful for you in the future that helps you identify how to gen generalize to future situations like this.
And so what we wanted to do is similarly see if we could change which features are easy for the agent by augmenting its training experience with these kinds of explanations. So what we did is we took our R_L_ agent which is trained to process some visual inputs and output some uh v uh policy and value like a standard R_L_ agent. And we just gave it an additional output where we asked it to do language modelling on explanations that a teacher gives to it, that tell it about why something is the case.
So for example, if the agent makes this wrong choice here, it'll get a negative reward, but it will also get an explanation telling it that's incorrect, other objects are triangles, and that explanation focuses on the shape of the object rather than the other features. And what we did was we tested training different agents with explanations that focused on different features of the objects. So for example, one agent would get explanations in terms of the colors, another in terms of shape, and another in terms of texture.
And what we find is just doing this prediction of explanations is sufficient to achieve pretty strong above 90% generalization out of distribution on these held out tests. So just the fact that we asked the model to predict explanations that focus on particular features of the objects encourages the model to use those features to generalize.
Why is that? The agent isn't forced to use these explanations, of course. Well, I think it's just that the features that the agent is forced to predict all the time become more salient in the representations. And so just like I showed you on the downstream learning results earlier, the features that become more salient in the representations will be more likely to be used for downstream tasks, all else being equal. So additional learning signals such as explanations can reshape a model's representations and change what is easy for that model.
The third thing I want to tell you about is a case that I think is useful for thinking about how we should think about spurious shortcuts more generally. And in particular, I'm going to try to convince you that at least in some cases, using spurious shortcuts can be a beneficial thing.
So, the context in which I think about this is this context of difficult syntactic reasoning versus content shortcuts, motivated by cognitive science. So if you imagine a difficult sentence like the dog that the people on the corner own barks at the car, this sentence has multiple noun-verb dependencies in it. It's not a super easy sentence to parse. And so, yes, just to be clear, these are the dependencies. The dog barks, the people own the dog.
dog, right? And if you're trying to process this sentence and understand what it means, there's kind of multiple features you could use. One is that you could create a syntactic parse of the sentence. I think that would look something like this if I didn't make a mistake, but it's pretty hard to get that syntactic parse, right? Another thing you could do is you could just sort of use the content of this sentence to guess at what the answer is, right? So it's usually dogs that bark, not people. It's usually

Usually dogs that bark not people it's usually people that own animals rather than the other way around Right and so just from these simple features you can guess what the relations in the sentence are between the nouns and verbs
And the interesting thing about being able to guess what the relations are is that having the content there actually gives you a hint about what that harder syntactic structure might be. And there's been some work in cognitive development that suggests that maybe babies use these kind of semantic cues to help them figure out something about how to learn syntax.
So what I wanted to test here is just a very simple example of an analogous setting where spurious features might be able to improve a transformer's generalisation. So the way we set this up, there is a again there's going to be some sentences as input, there's going to be a label that we want the model to predict, and that label's going to be totally dependent on the syntax of the sentence, but it's also going to be correlated with this content of the sentence. But we're going to give a h the content is going to be such that it gives a hint about what the syntax
the taxes. And what we're going to do is we're going to test the model on a hard distribution set case, shift case, where the syntax is still 100 % predictive, but now content is totally unrelated to the label of the sentence. So this is a challenging case of distribution shift.
And the question is going to be, is there ever a case where having this hint about what the syntax is is useful enough that the model does better under distribution shift because it had the spurious feature there than if the feature wasn't spurious?
Okay, and that's exactly what I'm going to try to convince you of with this plot here. So this is showing train accuracy in the blue curve, which is always 100% test accuracy in the red curve, and the x-axis is the predictivity of the spurious feature in training. So at the bottom of the x-axis, if the spurious feature is not at all related to the output label, what you can see is that the model is learning perfectly, but it's just memorizing the truth.
the train set, it's not able to figure out how to generalize to the test set.
But there's a sweet spot where if we increase the predictivity of the spurious feature enough, but not too much, the model suddenly figures out from the spurious feature. It learns the spurious feature first, but because the spurious feature is only, let's say, 75% predictive, it then is incentivized to try to find other features that can help it get the rest of its predictions right. And because the spurious feature gives a hint about the syntax.
That allows the model to actually identify the syntax feature that otherwise this data set is too small to identify it in. So in other words, this is a case where the spurious feature being somewhat predictive rather than unpredicted actually encourages the model to generalize even to an out of distribution test where the spurious feature is unrelated to the target.
And just to just to make sure I unpack this fully, the reason for this is that because in this case the content hints at the syntax. So for example, it's the fact that within the model Bark attends to dog already due to the content that helps the model to figure out the syntax because some of those relational bindings that it needs to figure out the real syntax of the sentence are already set up for it in the attention patterns just from the content.
Okay, so this is one instance of something I think probably arises more often than we think, where a spurious easy feature that's related to a harder feature that we actually want the models to generalize can hint at some of that deeper structure and maybe even change the model's generalization.
So in this talk, I've tried to give you a representational perspective on simplicity biases and generalization. And in particular, in the first part, I focused on how simplicity biases can persist in model representations even after more complex features have been learned and that this can have impacts on downstream learning and interpretability.
In the second part I talked about how we can use explanations to steer how agents generalize out of distribution in some cases because the features that agents have to explain become represented more strongly and thus the agent the system is more likely to use them for generalization. And in the final part I talked about how spurious shortcuts aren't always a strictly bad thing and in some cases if they can hint at the deeper features underlying they might even be able to improve model generalization.
So, I just wanted to, before I close, say that although I focused on toy studies here, actually a lot of the work that my collaborators and I do focuses on larger scale systems as well. And I think a lot of these same phenomena arise there. So, for example, we have some work showing that language models in humans use similar shortcuts around logic in a variety of tasks that explanations can improve learning and generalization in language models and maybe contribute to some aspects of how they come to the.
have some causal knowledge about the world although it's imperfect and that interpretability does really have issues out of distribution and as I mentioned briefly in the talk I also think it relates to some of the phenomena like how overtraining language models can make them less robust to perturbations.
Okay, with that I just want to thank my collaborators in particular Catherine Herman who has done a lot of great work on these topics and co-led a lot of the foundational work with me as well as Stephanie J, Felix, Ishida, Dan and Ozma who all sort of shaped some of my thinking about these topics. These are my socials if you want to hear more hot takes from me and thanks for listening. Happy to take some questions.
Thank you Andrew for your very exciting and inspiring talk, and we have a some several questions. Okay, let's start. Okay. Do you do you always have to have a strong prior on what you think? Like in the case where you gave the example as pure shortcuts are bad, like you had an idea of what you wanted the feature to be. How about cases where you don't have that?
Yeah, so that's a great question. Yeah, I mean, I mean, there's two reasons that I've focused on those settings here. One is just that like, you know, if we want to study sort of what are the underlying phenomena, we have to have some ground truth that we're studying, right? But like, it is a big issue when we talk about this in some of our papers on explanations that like, in most of the complicated cases, like if you're like, oh, I want to make my model better at like, you know.
protein, like cell, like.
I don't know anything about biology, so I'm going to mess this up. But, you know, like drug-like cell binding reactions on new data, like how do I do that? Well, we don't really know which features we should be trying to get the model to use there, and so we may not be able to use these kind of methods to bias them. But I think there is at least a subset of cases where we're like, no, we know what the model should be doing here, and it's not where these kind of ideas might be useful. But it's definitely not solving the full problem of out-of-distribution generalisation by any means.
It's just like, in the cases where the model's not doing something we think it ought to be doing, maybe it could help. Um yes. Thank you
Right, uh great talk. Um Thanks. I was wondering so it's been shown that different learning regimes can influence the speed at which different features are learned. And especially if you're in towards the late uh the lazy regime, like towards the anti-sparse regime, you have demarcatisation of feature learning. Yep. So I'd be wondering, I I'm sure you've thought about this, but what's the impact on this this final result about uh variance and and does that carry over to your hint?
It sends several. Yes. So the short answer is that I think it basically shifts which features are easy at the beginning of training and like condition on that starting point, it doesn't change that much else. So, for example, in the representation biases paper, we do look at things like how you initialize the network, like what is the scale of the initializations? How does it shift these biases? For these particular biases, it
You do see a larger magnitude of bias with larger initializations, if I remember correctly. But it's even if we go to sort of like the small initialization regime, it's still there. So it seems to be there in either the rich or the lazy regimes, but it's larger with large initializations. But I think, you know, more generally, like it depends, like the case of the like linear versus highly nonlinear feature is a very like.
like dramatic difference from the perspective of learning in these models. And I think for some of the other things, I can't remember if we did this with the like colour, shape, texture ones for example. But I think for like subtler cases like that, you may see stronger um stronger shifts in the feature preference depending on the initialisation regime. And if I may just follow, do you think that
Those regimes have an impact on your result about using hints about previous features Oh, or yes, yes, yes, totally. So, yeah, I mean, it's basically a question of like...
You know, I think of these as all being like about race dynamics, right? It's like, it's a question of like, how fast will the model learn one start to pick up on the rich feature learning versus how fast can it fit things with the sort of like easy lazy features that it already has. Similarly with the sort of like spurious feature as a hint, it's basically that like, you know, the data set is sufficiently small, it's like 100k examples of you know.
of you know sentence like things and the syntactic feature which is about like the relation of like two two tokens in this like large sort of like sentence is like sufficiently non-linear and there's many pairs of tokens that you could guess that like in that regime the model just doesn't have enough data to pick up on it before it sort of just memorizes everything from little superficial features but you know definitely like

Definitely like th that could depend on many features about how you've set things up and also about how you initialise the model. So Thank you. Uh so I'm uh really interested in one of the points that you made about explanation right. Uh more specifically I'm trying to understand that if
So according to your paper on passive data learning, if you train a model on the observations made of made by made of the interventions uh by maintenance made by some other agent, the model is able to perform is capable of performing some sort of some level of interventional reasoning on by itself. Uh I'm I'm I'm trying to understand uh where the explanation part comes into place in terms of generalisation, as if tomorrow if if if you create a simulation where
We are training on the intervention and the outcome by an agent, but we provide a wrong explanation uh about what's happening. Do you think that will get hampered uh with whether the agent will still be able to perform interventions even though it saw the uh correct input-output but uh not the coherent reasoning or wh how does it go together?
Yeah, so for context for the rest of you, he's asking a question which is really about this paper which I didn't talk that much about and how it relates to this work. Uh so the I mean the story I'm just gonna give you a cop-out answer which is what I said to him that it's like all race dynamics and it depends a lot on the details of the setup, which is like to say, you know
In the explanation setup and also in the passive learning of active causal strategies, the basic experiments there, we had like
very strong signal on like you know the the interventions were always real interventions that actually changed the node in the intended way and so like that is definitely important for like being able to learn from the observations there versus like if everything were totally noise yeah the system wouldn't learn anything useful similarly the explanations here are probably much more reliable than anything that a real model would see in training at least on internet data and so the question of like what happened
happens if you change that reliability? Like I showed you one example of that, like the linear feature versus the non-linear feature of the model would be biased towards the linear feature in some regimes even if it's somewhat less reliable. Similarly like if the explanation, if the feature the explanations are highlighting is less reliable than other features or if like the interventions are less reliable than other superficial things, that will push the model
Like, and the difficulties are not equal. Those two things will trade off and in a way that depends like on the details of like how exactly how hard they are to compute versus exactly how predictive they are. Thank you so much. Thank you.
Thanks for the nice talk. I really liked your hint example and it sort of challenged my notion of what a Spurious feature is. Because in in that dog and you know the the situation with the dog and the people that owned it, to me it's what you call the Spurious feature theirs to me would maybe just be the feature. Mm. Um so to me it's sort of um
I guess it made me think that maybe our definition of what a spurious feature is should be relative to what kind of downstream task that we're trying to accomplish. So I'm just wondering, can you comment on like
How different definitions of spuriosity might affect this framework that you're proposing. Yeah, totally. So I guess what I mean by a spurious feature in this case, in that particular case, is that predictive on the training set and not on the test set. And there's like, you know, a lot of people who've been interested in language learning historically have looked at features like this, like the syntax of a sentence versus the fact that like dogs are the ones.
ones who tend to bark because like we tend to think that humans can understand sentences even if they combine the semantics in unreasonable ways but because they go beyond just the semantics of the sentence to the syntax so if I tell you like oh I saw a dog and I barked at it like there's some chance that you'll think I meant the dog barked at me but like you can understand that that sentence literally says that I barked at the dog right and so
So that's an example where like these two these features come apart and we think that it's really the syntax that's the the feature that you should be using on the test that to parse the sentences and understand what they are saying. Now like
So that's sort of my notion there. But it definitely has to be in the context of a particular task that we define what's a spurious feature and what's not or like how useful a feature is. And the thing is that actually in practice, it's a little more complicated like in a regular conversation, people might well assume that what you mean by I saw a dog and I barked at it is I saw a dog and it barked at me because that's a more reasonable thing for you to say.
unless they like you know so for example if you were saying that sentence you might actually emphasize some of the words to hint that you really mean the unexpected meaning and things like that so there's more complicated things going on in the context of a like conversation as a task than there are in the context of just like do you understand this sentence yes or no as a task and I think that's pointing to this issue that you're raising that like the notion of what features are spurious versus the features you should actually use you
depends on the context I'll just say one more thing which is this paper on language models and humans using content as a shortcut around logic and tasks actually my interpretation of that work is based is kind of related to this that like there's a regularizing effect to like guessing the answer based on your sort of prior semantic knowledge rather than using logic if you assume that using logic is just a hard thing for people and models to do and it's somewhat unreliable
Just that assumption is enough to get the, that you can sort of show like, you know, by doing a simple Bayesian calculation that it's better to use content as a shortcut as well than just using logic if you assume that logic is a bit unreliable. So similarly, I think that like for our notions of what should be a shortcut, what is a spurious feature, what's actually a good thing to use really have to be defined in terms of like what is the task and what is the train test.
And test distribution shifts because you really need to check your assumptions for both to get a clear notion of like what's the right thing to be doing and what's the wrong thing to be doing. Okay.
Oh, hi, thank you for the talk as well. I was wondering in the early examples, so the first part where you were talking about the explained variance, Yep. and you were, as far as I can understand, training the networks to predict the specific kind of representation in feature, it seems to me that a lot of the variance explained is going to be very closely related to essentially
like let's say the condition number or something like the the the magnitude of the weight matrix performing the classification of the regression. And so like have you looked at what happens if you just regularize or add weight decay and so on to the actual classification matrix, Yeah. at least in those settings, and if this changes the dynamics or generalisation, Yeah. little bit. So okay, couple of things to say. The the let me just answer the easy question first, which is what happens if you add weight decay. It actually doesn't change the results all that much, although if you put like a real
really really hard weight decay maybe it would but certainly not in the like standard kind of regime hyperparameter regimes um and i think the reason for this is like it does depend a lot on the loss function and the thing is we're training this with like a classification cross entropy loss which like you can make your predictions arbitrarily large and get like slightly better on cross entropy loss make your weights you know slightly larger and so there's not like
without like really really hammering on the weight decay there's no incentive for the model to not keep amping up its weights along both dimensions and there's like no like basically there's a kind of winner dynamic where like as your weight uh your output weight on the easy feature gets large faster and that means you get larger gradients back to that easy feature and so you continue to increase the variance along that feature dimension more than along the hard feature dimension because it's already getting stronger gradient
gradient signal and so I think that like you know you could definitely in this setting like do some sort of hacks that would like allow you to pull things out more cleanly but like in in sort of like
I don't think that you could set it up so that like in all the layers of like your big deep transformer, you're getting sort of like nice equal sharing of variance among all the features and still preserve any kind of the reasonably interesting feature learning that these models do. I think these are sort of fundamental incompatible. That would be my guess.
Hi, I interpreted your the first part of your question as saying that you will ignore or models sometimes just ignore the hard features despite learning them despite them being more predictive if they are sort of harder to learn is there I mean in this setup that Yeah, you had you know it's a toy problem so you set it up and you know that's such a hard feature are there diagnostics that would tell you that something like that is happening? it's a good question. I mean, I guess like...
You know, one of the things I talked about in the beginning was this sort of notion of difficulty, which is like how easily can you linearly decode something from an untrained model. That's definitely like one notion of like how easy is this feature that you can apply, you know, to a like.
Well, yeah, so several notions like linear decodability, how fast a model picks up on that feature if you're training it just to do that, how simple of a model or how complex of a model you need to capture that feature. These are all sort of like diagnostic notions you can use if you have some a priori features that you're interested in for a particular domain. And I think that like

main and I think that like you'll generally find that they are pretty tightly correlated with one another like if you need a more complicated model to capture a feature it will usually take longer to learn with an equal size model like a model that has capacity to capture both features and it will usually be harder to linearly decode from that model's representations before training
But to get to the, you know, if you have like some domain like natural language and you don't really know what all the features are, and there you want to have some estimate of like, well, why is the model not generalizing in the way humans do? That's a harder problem that I don't fully know how to solve. I mean, like, you know, you may have some prior knowledge about the domain that helps you to solve that problem. But in general, like figuring out what the features are is a part I assume to weigh in all these.
all these tasks for for a reason of course just not just to have controlled uh settings for our experiments, but because it's really hard in a practical problem to say like what are the right features for that task, which is why we use large models instead of trying to figure it out for ourselves. Okay, uh any other question?
uh you have quick question also? Uh it's see that uh some, a specific may help uh in explain explaining the right feature uh and there's a trade and you've said that you that there's a trade-off between the predictivity and uh I I mean um I want to know how uh what's the intuition to find the right point in this trade-off.
If you have any questions, please report. Yeah, I mean uh The the short answer is I I'm just g gonna give you the same answer I give to everyone else, it depends on the features and like the data set and the model. Um but like uh I'll tell you for for this setting I was surprised that the predictivity needed to be so high on the spurious feature for the model to generalize. I was expecting it to be more like um
Oh, it's not showing the slides anymore. I was expecting it to be more like, oh, like 25% predictivity is optimal or something because then otherwise the model would use this phrase feature all the time. But in fact, it was much higher than I thought. So I don't think it's easy to predict at all. And in general, like you may not want to add a spurious feature necessarily. I mean, it's not, so you may not want to predict this other than because it makes for like, if you're setting up some contrived research setting like I am.
but like the thing i would think about instead is more like the explanations case like what things could we ask the model to do in addition to the tasks we care about that maybe like would make the right features easier to predict uh and like maybe that's the setting to think about so instead of like adding things to the input that like make the features sort of like certain features more salient in a spurious way maybe like add things to the output like the targets of the model
uh that ask it to use that sort of like bias it towards using the features that we want it to use. Um Yeah. Thank you and there's any other question? Okay, thank you. Thank you very much. Thank y'all for coming. So we have 30 minutes break and we will have the next step on three.
So at three p.m.

Presentation, we are delighted to have David Lopez Paz. David uh is a research scientist at face Facebook AI Research and um David, you can start. Thank you. Hi everyone and thank you so much for being here so late. We are towards the end of the conference, so I hope that this can be entertaining, interesting.
Uh for some of you. Most of this talk is based on work from this transgenderisation team at Meta where my main collaborators are the wonderful Kartik Ahuja, Bader Jube Idrissi and Mohammed Pesheski. So uh what is this talk about? Um after working on the topic of experience correlations for a decade, I find myself as puzzled as ever on the topic uh of experience correlations in the face of LLMs.
So the goal of this talk is to offer a bag of thoughts on spiritual correlations and how thinking about these problems might be helpful in building systems in this new era of intelligent systems. Do you guys can
All right, so before we start with uh talking about AI systems of course we need to talk about the horse clever Hans. I think you all know the the the story so far, so I will be very quick on this. Uh the the story goes that, you know, the master was given some tokens to this horse like ten plus five and then the horse will reply with some sequence of tokens, in this case uh fifteen taps on the floor, and the crowd will go insane. So, um that was back in nineteen o four.
And here we are a hundred years later, more than a hundred years later with a machine that you give some tokens, the machine spits out the most likely next word and again people go crazy. So is this time different? I think it is and I think it's not. I want to preamble this talk as well with a disclaimer that I think these systems are actually impressive and they are capable of doing things that I wouldn't.
think they would be able to do just a couple of years ago. But I still think there's like um a very fundamental limitation that we should be thinking about and trying to address. Okay, so let's get into it. I have ten thoughts, ten aphorisms uh in no particular order. And I think um they might be enlightening uh towards the enterprise of building LLMs that are more robust.
And my first claim is that large machines minimize training error using an undesirable simple and memorized learning strategy.
So to illustrate, consider this problem that I call the cow on the beach. Uh the cow on the beach is a binary classification problem. In this case you're interested in separating white points from grey points. You have a thousand of them. Uh there's an a spurious feature on the y-axis and there's an invariant feature on the x-axis. The spurious feature has a higher signal-to-noise ratio, so it's easier to capture than the invariant feature, and to make things a little bit more complicated, uh there's also a one thousand one hundred ninety eight
gate noise dimensions that are not depicted in this plot. So essentially it's an over-parametrised problem, if you're trying to address this with a normal linear classifier in the sense that you have more dimensions than number of data points.
The thing is that at test time the proportions of these four clouds of points flip. So during training most of the cows let's say around the grass, most of the camels are on the on the sand and at test time things uh reverse and a majority of the camels are in the in the sand and a majority uh in the grass and a majority of cows are in the in the sand. So if you were to address this problem by using only this proportion correlation by drawing a horizontal line using this proportion feature, you will get something like five percent training error and ninety five
test error, nine nine five percent. So how does learning happen in this particular example? So this slightly illustrates the training dynamics of this simplified and memorised training strategy, and there's three phases to it.
During the first phase, the learning process quickly grabs the spurious feature. So uh that's the horizontal line that you can see in the first two plots, let's say. And while this is happening, all learning signals necessary to learn the invariant feature that had a smaller variance uh are starved. This is a phenomenon known as gradient starvation. And by this point, um it's it's just too difficult for the learning process to revert and um give a second chance to the invariant feature.

give a second chance to the invariance feature. At this point we have five percent training error and in order to get to zero training error as ERM requires we need to keep pushing and that's where the noise dimensions that are again are not in this plot become useful as a storage in order to memorise those minority examples that do not comply with the spurious correlation. And this is what I'm trying to illustrate with the last boundary where you can see that there's like a black uh uh edge surrounding some of the uh red points that were otherwise misclassified. This is thanks to the
to the to the nice features. So mission accomplished. Uh you have uh achieved zero training error as our um uh demands. But again this is a decision boundary that will uh b be mistaken for all minority examples in the test set.
So in short, uh the simplify and memorise learning bias is returning a classified of the form classified typical examples with the spurious pattern else return memorised label. And to be frank, this is perfectly fine under the task that we have assigned the machine. This is possibly the smoothest decision boundary that one could learn in this data. In other words, uh this complies with the Belkin's razor, as in Michael Belkin, who says that when learning from data one has to choose the smoothest inter
interpolant. So the smoothest solution giving you zero training error. And in my view this problem is an under-specification dilemma. And by that I mean that amongst all the possible solutions that get you to zero training error, only a few of those generalize. And to make matters worse, most of the invariant penalties out there, if your solution is a zero training error solution, the penalty will also be zero. So it's very difficult to find them actually. It's uh this is at the heart of the problem in my opinion.
Okay, I think questions are at the end, so I will just keep going. Second one, not all the spurious correlations are the same. So in the previous example we were facing a problem of fully informative invariant features. And by this I mean that the invariant features are sufficient to achieve zero training error, yet they are more difficult to find than the spurious feature. So again, you fall into the trap of capturing the spurious feature first, and then there's no learning signal remaining for the invariant feature.
Therefore, in order to learn those fully informative invariant features, you have to deploy some sort of regularisation mechanism against memorisation. How that that's look like I don't think we know yet, but you know for for thought that this is still an important unresolved problem.
The next example is gonna be one of partially informative invariant features. This is different because the invariant features are insufficient to attain zero training error. And because we're tasking the machine with attaining zero training error, after you capture the invariant feature first, you will resort to absorbing spuriousness or memorising the remaining examples that do not comply with the invariant feature. In this case, if you wanted to learn invariant features, you would need to sacrifice training error in order to achieve invariance.
things, and uh well, there's a host of techniques to do that, but maybe by providing you with an example this becomes more clear. This is um a well-known example from the eye-ran paper. Essentially you have a regression task from two features x_ one and x_ two, you want to regress into y_ and depending on the environment, this variances change and in some environments the feature X_ one is more informative, and some other environments the feature X_ two is more informative. So it depends, that you you will get regression coefficients that vary.
on on these two um variables. So if you insist into using all of the available information to address this problem, you will get a regressor with coefficients as depicted at the bottom left of the slide. And as you can see, those coefficients depend on the variance of the particular environment that you are dealing with. However, if you were to drop uh the second feature and regress only on the first feature, you will get a regressor such as the one depicted on the bottom right of the slide where the
where the regression coefficients are invariant, there's no mention of E_ or any variables depending on either. And I do believe that this is a more desirable regressor if you are unaware of what data environment you're dealing with. If you know the data environment that you're dealing with, and we will talk about that more later, then it may be perfectly fine to rely on spurious features. But if you want to be a generalist, if you want to be prepared for the worst possible case, then I suggest that you should drop a training error and model things.
s uh only within variant features, in this case X_ one. Now, one important thing about this second regression regression X_ one is that it aligns with the causal structure of the problem. So uh if you look at the data data generation process, if you perturb X_ one, why why should change according to the structural equation model. But if you perturb X_ two, why shouldn't necessarily change because why two is an effect, not a cause of why. And along those lines I want to give
A a third thought, which is in my view correlation is causation. Uh if you uh admit uh the analysis under the right distribution. And what do I mean by this um so first of all causal discovery has proven to be a very daunting task. I worked on it for many years, I couldn't make any progress on it, uh I've seen some progress since, but it continues to be a a very hard task. Uh but if you flip things around, I think there's a little bit of hope. And what do I mean by that? So
Causation under the interventionist account, people like Judea Pearl, James Woodward and so on, is invariance under interventions. And an intervention is nothing but
uh an experimental condition or a circumstance about the same system of variables that you are studying. Therefore each intervention provides you with a different distribution of a system of variables that you're interested in, and under that lens, causal claim a causal claims are nothing but claims about invariant correlations. So I think it was a statistician, a Greek philosopher that said any causal claim if you dr if you drill deep in uh deep enough, it's it's it's all regularity and it's all correlation.
So the usual epistemology back in the day was to search for causation with causal discovery ma methods in in hopes or in order to find invariant correlations. And invariant correlations are highly priced because they provide you with robust predictions across many environments. And what I think it's uh easier to do uh is to reverse the programme and search directly for invariants and then hope that this invariance carries with it some sort of causal meaning. In particular if the distributions that this invariance obtains is associated with interventions, then
And actually this should be the case under very mild assumptions.
So on this topic I consider it very important to know that no causal relationship or no invariant prediction, nothing, nothing is universal, right? Everything breaks down if you twist it hard enough. So for example if you consider Hooke's law, which describes the restorative force of a spring, uh it's just the forces equal to the the negative uh spring constant times elongation distance. Um this is true for many environments. I can change the elongation distance, I can change the spring force, I can I can
and also play with the force and see that this invariant relationship obtains. But this is not true for springs with non-linear dynamics, it's not true for springs under extreme temperatures that might make it to freeze, it's not true if the ground is not completely even. Uh therefore is it is Hook's law true or not? Is it a law or is it just something that obtains uh under certain contingencies?
Um I mention this because I think the topic of uncertainty estimation is yet another unsolved difficult important problem and for me uncertainty estimation is valuable because it provides you with a boundary of the operating conditions of a mechanism or invariant relationship that you're interested in studying. So if you are interested in working on that I think is very valuable and I would be very happy to to hear your thoughts.
And if you allow me to be a little bit more metaphysical about it, there's philosophers such as Robert Nozick and other structural realists as well that have posited that actually truth objectivity is invariant across relevant transformations. And I leave you there with a quote that you can write in the recording perhaps. Okay, number four is a bitter lesson. I have learned a couple of those over the years.
So, E_R_M_ after all, you know, it learns a spurious correlations, it just minimises training error, but it works surprisingly well in out of distribution benchmarks that do not constitute let's say a very violent distribution shift. And this is well illustrated in a series of problem in a series of papers such as um uh this work that I did with Ishan or other works that talk about the so-called accuracy on the line, which say that in order to predict oh D generalisation the best, what the best predictor of oh D generalisation is I_I_D_ generalisation.
um but as i said if the benchmarks become sufficiently difficult, suff sufficiently extr sufficiently on the tail, then uh this accuracy on the line phenomenon seems to break uh for some benchmarks. So I do think that the the the bitter lesson here is that empirical risk minimisation works very well near I_I_D_ uh but far I_I_D_ uh perhaps the way to go as we will discuss in a minute is um empirical risk minimisation on some sort of
curated or balanced data. Okay, number five. This is a belief that is a recent belief of mine. I was not in this camp not so long ago. But I do think that the spurious correlations are contextually useful. Meaning that as long as you know the environment that you're performing on, if you want to use spurious correlations at your risk, I think this is a strategy that is fine. I think this happens all the time.
Uh, where's my cursor?
And um in order to illustrate that I I would like to tell you about these two butterflies. Um on the left you have this Papilio machaon and on the left you have this Iphiclides podalirius. The thing is that the one on the left is toxic and the one on the right is not. The one on the left inhabits Europe, Asia and America and likes to hang around while carrots grow and fennel. And the right one is on some other plants like buckthorn and olive trees. They look pretty similar to me, and perhaps to an an animal an animal even.
even more so. So what I'm trying to say here is that if you are in Asia or America, those are contextual features. Those are not invariant features of the body.

Those are not invariant features of the butterfly itself, but they are very useful information if you are a predator uh trying to decide whether you should eat this animal or not. And at the same time, if you are in Europe and you see this butterfly around olive trees, then these are contextual cues useful for you to say okay, I I can eat this thing and I wouldn't uh get into trouble.
And this this is known as batish and mimicry. So actually what happened here is that the second guy, the one on the right, evolved as to mimic the features of the toxic counterpart such as to scare predators into into eating it, right? So this is why they look so similar. And this is why actually why the second one inhabits only in Europe because this may happened only in Europe, but it didn't happen in Asian or America where the toxic uh species uh remain.
me alone anyway that's a long way of saying that
Successful context is um uh is uh successful in context learning estimates an invariant zoom-in mechanism to a local empirical risk minimiser, right? So if you have no features whatsoever of the environment, you may proceed with an invariant rule and and as you start to, you know, observe perhaps even unlabelled data about the environment, you can use this um distribution of footprints in order to zoom in into a spurious or local correlations that might sharpen your predictions.
And this is well-known actually in the context of neuroscience and cognitive uh science. I leave you here another quote that you can read offline from Verbeek and colleagues. And um just a little um uh linear example to to convince you that this m this could happen in practice. Uh this is a target Y that you would like to predict with two features, X_ one and X_ two. Uh the feature X_ one has an invariant coefficient alpha. The feature uh and the feature X_ two appears only through an average, right? So you will have to learn
And a distributional footprint, in particular the average of the feature two in environment E in order to do the proper regression and obtain the true coefficients alpha and beta. Therefore modelling the distributional feature expectation of X_ two over your environment is necessary to learn the true value of alpha. And in turn learning the true value of alpha is necessary for successful all-digitalization as the variance of X_ one increases for example.
So context is useful. Now, um I do think that this sort of reasoning reveals that there might be two modes of learning helpful to disentangle and helpful to analyze separately for invariant and spurious correlations. One mode of learning is in context learning as we uh know in LLMs. This requires in order to answer the query x_e that the pair (x_e, y_e) appears in context.
in context. This is what I called an informative context. You would address this in context by learning uh an induction head uh such as it happens with uh too attention la layers in a transformer. And the cool thing about this is that it generalises to new tokens. Uh the induction head doesn't care about the content in the sequence, it just cares about uh relative positions between between the carry and what comes next, right. So I can give you new vocabulary during uh test time and if you have uh learned a true induction head then you will generalise out of distribution.
instead of shot to new uh vocabulary uh vocabulary tokens. The second one is in weight learning, which does not require X_E_Y_E_ to appear in context. Uh but that doesn't generalise to uh new tokens during testing, right. It's just pattern recognition. It's the usual thing that we do with neural networks for for many decades already. And this is the behaviour that we may call perception or associative memory. So I definitely think that very nice um topic of work here would be to to better control and disentangle when these two
these two types of learning happens, uh and to me it smells like you would like to store invariant correlations in weights and store everything else in context if possible. But again, right now you do A_R_M_ and everything is blending between uh in uh together.
Okay, so sixth, uh I believe that chain of thought data serves us in invariant mechanism supervision. And this is ongoing work with Kartik. Um so essentially here I want to distinguish between the normal situation where you're given X_Y pairs, you can assume a classification problem. Uh and why is obtained as a featureisation of X, phi of X, and a classification of that feature, uh W_ of phi of X. And chain of thought data is providing you with something more, is
Stack is providing you with triplets to make things simple. X, phi of X, and W_ of phi of X. So it's it's providing you essentially with some sort of intermediate computation that is going on in uh the true mechanism that you want to learn. Um we have theorems and we are running experiments to show that if you have chain of thought data, let's say on a one layer multi-layer perception data, meaning that you have the input, you give you are given the teacher hidden activations and you're given the output, then you match
the weights, right, which in turn provides you with perfect out-of-distribution generalisation everywhere. So I think it's a nice perspective on chain of thought and the success that we have seen using these techniques in many LLM applications.
Okay, so uh number seven, I think uh that well I think uh it's been shown that predicting into the future beyond the next token uh alleviates spurious correlations uh especially those that may arise due to teacher forcing. I think you all of you know what this means. But just in case very quickly, when you train a sequence to sequence model, in particular, an autoregressive next token predictor, when you want to predict token X_k, uh every previous token on the sequence will be given to the predictor and here tokens are ground truth.
rules uh um uh from the training data so that's what i mean by real response here and at testing there will be a discrepancy uh the protocol will be to generate tokens one by one and then providing the machine's own predictions uh as uh context in order to predict the next token so that's what i mean by predicted response so therefore there's a distribution shift between training and testing
And uh potentially this will incur uh out of distribution generalisation problems as produce correlations and and things like that. Uh this is a topic very well studied by uh uh uh Bachman and and Nagarajan. I think Vaisnav have this talking before. Yeah. Hi.
And they provide this nice path estimator example, which consists in estimating the path between a center node, in this case marked in red, and a terminal node.
from one of the legs of this butters start. Uh and in order to do that, um you will be given a randomised list of the ab uh edges of the graph and you will be given uh a query, in this case thirty one ten, uh and the response that you should provide is thirty one two four nine and ten because that's the path that you should follow from uh the starting node thirty one and the end node um ten. So the good solution to
To approach this problem would be to examine each of the terminal nodes until you find the one that has that has been requested, then walk your way back to the starting node and uh then reverse that path and provide it as the solution to the uh to the user. The bad solution would be uh to um learn an induction head that would allow you to get the intermediate tokens one by one uh just by matching the next token in each of the edges.
And by the time you have done that, probably you have simplified the problem, you have just starved uh the gradients in order to learn the good solution that I mentioned before, so you will end up memorising the the the first difficult token that it's here near the centre of the star.
If you predict multiple tokens at once, you will alleviate this problem to some extent. In fact, in the limit, if you predict all the tokens at once, this is a sequence-to-sequence problem and these two regimes collapse to be the same, right? So those espurious correlations or shortcuts that are present due to the autoregressive nature of next-token prediction should be alleviated. Okay.
So in number eight uh I would like to claim that the so-called as scaling hypothesis is mostly filled by humans uh curated in variance inducing uh training data and evals. So this is the usual loop. Uh you train a transformer on data set D_ like it's two thousand seventeen, you identify the weakest secret evals that your com your company has, you enrich the pre -training corpus to improve uh performance on those weakest evals, and then you rinse and repeat. Right? And in my view this is far from human, right. Like uh
Like, this is not like throw more data to the thing and it will work. It's actually a very difficult process that actually people are spending a lot of money to get this right. In fact, I think this looks more like iterative human-in-the-loop distributional risk optimization. So to some extent what I'm trying to claim here is that these systems are getting better not by virtue of throwing more data into them, but by virtue of having people curate better, more invariant inducing data sets.
And in particular one thing that I think is very powerful in these models is that LLMs are addressing not one task but all the tasks at once, and they are amortizing learning over this crazy amount of environments or tasks under one natural language API which is just talking to them, right?
Um to that extent I think that the invariance in using data and and evuls are amongst the most priced asset in the LLM race. This is probably what's making the most difference between the models that we see out there. Uh and that means that as the research community have uh great opportunities to develop uh invariance in using data curation. So I think
We have struggled in the past to develop algorithms or regularization techniques that reveal invariance, and perhaps the secret is to pay more attention to the data. Uh we have some some work on previous ICML, XRM that did uh some steps along this direction, perhaps not ready for real alms yet, but I find that um sort of thing invariant uh uh invariant discovery a very worthy uh enterprise. Number nine, we're again to the end. Um this is about

And um this is about the fact that our AI systems are trying to predict likely outputs uh while we are mostly interested in very similar or true predictions. Um I like this sentence which is in life low likelihood events happen all the time uh but when you train a model you are pretty much obsessing about the most likely thing that comes next. And I think we need uh better ways out of this trap. Uh otherwise we will uh be training models that
do well on average and crash at the tails, right? And the thing is that generating likely sequence is a much easier task and a task with much more structure than generating true sequences, right? You can say Columbus discovered America in 1492, that's true. Columbus discovered America in 1493, that's false, even though it's a va it's a valid sentence, the syntax is right uh and and so on. So to me likelihood is something like syn syntax
X_ and that can be learned from a statistics. So fluency uh can be learned from statistics, about the verisimilitude um truth uh those are things m more in related to semantics and invariance in my view.
And Leone and Bernard have been uh writing a couple of pieces on this topic. I think one of them is called Borges and AI, and the other one is the fiction machine. I really recommend you reading those. And my take away from them is that LLMs are fiction machines that are not guided by truth but by narrative necessity. And that's why you hallucinate, right? If you generate the wrong token, that becomes part of the context and you commit to that.
And actually I I found the some work of philosophers of physics, such as a personal hero of mine uh Nancy Cartwright that have made similar remarks in the past. And I have took the liberty to annotate this quote uh there's no reason to think that the principles that best organise I think that's aerrem will be true, nor that the principles that are true aerrem perhaps are in very in general will organise much. The fundamental laws of physics do not describe true facts about reality, rendered a description of fact
The fact they are false, amend it to be true, they lose their fundamental explanatory force. So I think the book is called How the Laws of Physics Lie.
And just a quick exam example that I found fun in order to reveal a spurious correlation is not very difficult, but uh this one is very poignant, I think. If I ask an an L_N_M_ to provide me with a biography of David Mandela, uh it will give me a biography of uh some prominent historical uh character concerning civil rights movements, even though uh well this person doesn't exist, but for obvious reasons it's it's guided that way.
So, is correlations are rare. So I think we should move away from you know average performance and more towards worst-case performance. And uh I like to consider them the segmentation fault or the plane crashes of AI systems. They have far-reaching consequences. So we we we should keep working on this problem. It's an important problem despite of people saying that this sparsity correlations are out of distribution generation failures are are vanishing, I don't think this could be further from from the truth. If anything, the failures that remain are more important.
Okay, number ten, we're almost done. My my last one um tries to put forward a new learning principle that subsumes and formalises actually all of the previous arguments that I have made today. I call it the invariance principle uh and you can read it if you wish as frame your questions such that the answer matches across circumstances. And if you want a one-liner, this is how it looks like. Uh it's a conditional uh independence statement. Why is the target that you want to predict, E_ is the uh set of relevant environments that you want to predict across.
plus and f of x is a representation that you have learned in order to address the task. So we have seen that in order to address the simplify and memorise bias, one needs to stratify over environments and see what's invariant and focus on that. We have seen that this is at the core of differentiating between fully informative features and partially informative features. We have seen that the dilemma between correlation and causation might be uh an issue of invariant uh of finding invariant relationships.
Um the issue of generalising near I_I_D_ is nothing but considering a restricted set of environments that you want to generalise over. Uh in context learning uh is is is more of the same is about dynamically adjusting the environments that you want to predict over well, so it's estimating E_ from the context in this particular case. Uh chain of thought is explicit information, explicit supervision about the invariant mechanism or representation fee that you're interested in predicting.
Multitalk and prediction is about enriching uh the the target space, Y_ such that you alleviate the under specification problem and um reduce the set of spurious correlations that are l learnable from data. I really think that the scaling hypothesis is nothing but humans being smart and iteratively providing better and better environments for uh machines to learn. Yeah.
And finally, the difference between likelihood and truth, if you ask me, is the width or the degree to which this conditional independence statement holds as you enlarge the set of relevant environments more and more.
And I really like this uh quote by Xing Li and and and Marcus Hutter uh from from DeepMind uh who thought really hard about what intelligence means. They went over over sixty definitions and they end up saying that intelligence is the ability to achieve goals in a wide range of environments. So again uh it seems to be at the at the heart of the problem.
So uh if you allow me a shameless plug, I will be publishing a book by the end of this year in M_I_T_ Press, uh where all of these issues and much more is treated in length. So if you found this interesting uh it's gonna be open access, so you can just grab a a copy of of the b_d_f_ And that is all I have to say. Thank you.
I just want to tell you that was very exciting. I think you have a certain question. Hi, thanks Hi. for the very thought-provoking talk.
Um I wanted to ask about your thoughts about the connection between causality and stability and specifically, I mean there's this paper Naftolin Hart from last year do you know the paper I'm talking about? No, can you Okay. tell me? So this is a paper um where they took a bunch of tabular data sets and they just said let's figure out, you know, ask domain experts, run causal discovery whatever, let's get our best guesses at what might be causal and what's not, and let's train predictors on the causal features versus training predictors on everything
everything and training on everything almost always worked better. Mm-hmm, yeah. Also relatedly is another example just of the kind of difference between causality and stability. Something like diagnosing a disease by symptoms is anti-causal, but that's gonna be relatively stable for the most part, right? Whereas the true causal things of like why did you get the disease might be very unstable across areas. And so I have con sorry to ramble, but No, I no, go have ahead. been thinking that causality
reality and stability are actually much more separate questions, whereas you seem to be arguing that they're kind of the same thing. What I tried to say is that invariance across interventions equals causality.
And to be honest, I might look a bit crazy saying this on record, but I dropped the idea of causality being a real thing. I think there's patterns in the world. Some of them are more stable, some of them are less. Some of them will be actually stable across the circumstances that you care about, and this is what you should be trying to find. In that paper, I don't know the details, but maybe the distribution shifts were not violent enough, but you know, otherwise I would drop the causality topic.
completely and and focusing on algorithms that can learn correlations that are invariant and maybe for the circumstances that you care about those correlations are spurious in some other world but this is why I think techniques like in context learning are so exciting because they allow you to fluctuate between these two regimes very nicely
Thank you very much for a nice talk. And Thank you. uh I just wonder have you tried like I_M_ or R_ as an environment learning method uh on a large scale for example for the pre-training of I_M_ uh if you have tried uh well this lead to very different results or even better result than the I_M_
No, we we we haven't tried it's it's it's sort of expensive to try this ideas at the scale. So we have focused uh lately more on sub-sampling techniques or re-weighting techniques on uh either on a sequence basis or a toke basis and and just just letting erm do the work, but on a on a better curated or better filter or re-weighted data. But no, I I don't have any results on it, I I ran for L_L_M_ so far. Thank you. Thank you.
Hi, thanks for this great talk. Thank you. Uh yeah, I'm just wondering how do you think about separatable relations in a ever-changing and open-ended world. Because uh in some environments uh previously uh we we may think some correlations are superiors, but in some environments, because it's ever-changing so the super super previous superiors correlations may be invariant correlations. How do how do you think about this and how can we capture these these invariants?
In your average thinking. Yeah, I I mean a as long as the world keep changing, then there will be a spiritual solutions, right? Uh Yes. I mean back to uh two hundred years ago uh if if you describe the the theory of general relativity, that that would be completely out of distribution, right? And even today there's a hundred years in advance it will be completely out of distribution. So uh I I don't will ever go away. And I think what you mention of life-long learning is a very exciting
uh avenue to to address this issue. Uh with Mohammed we've been thinking of different ways in order to finally remove the dichotomy between training and testing, just that that doesn't exist it seems in the world, right? Um so so I think it would be a a a wonderful thing to get done, like to to be less binary about the model of operation and just experience and and and predict at the same time uh forever and ever. Thank you. I think

Other questions? Okay, thank you David. Thank you. Thank you everyone. Uh so we have a we have a normal presentation uh on four thirty. That would be an online presentation and then we have uh our panel with David and Sohail on five p.m.



This is Marco, but yes. Yeah, okay, we can start. Yeah, okay. Thank you very much for allowing me to give this online. So I would like to thank the organizer sort of for bearing with us with the extra administrative effort and the extra organizational effort. I'm very sorry not to be able to be in Singapore at the moment.
But again, I would like to thank a lot the organizer for selecting our paper and for giving us the opportunity to speak today. So this is joint work with my student Simone, I'm a professor at the Institute of Science and Technology Austria, and Simone has been my truly fantastic student here. So I'm here to present our work on spurious correlation in high dimensional regression, and in particular I will discuss the role of regularization.
can simply sit by us and over parameterization.
So this is a very quick introduction. I mean this is a very topical workshop so when we saw the list of workshops we were very excited about this because we felt this was really a great fit for what was being done here. So this is a paper about spurious correlations and as you are all aware machine learning systems learn from patterns that are statistically correlated with the task. So where there is some statistical correlation but there isn't really any causal mechanism, any causal prediction mechanism. This is something that people have...
have noticed a while back and there has been a lot of literature on the matter now I won't bore you too much with the literature review but maybe let me give perhaps a very simple and prototypical example so let's say that you want to classify boats then one possible spurious correlation is the blue sky background or the blue sea so this means that most boats indeed are in the sea and indeed have a blue background so you may be tempted then to associate that all always to boats
And this of course has consequences on robustness to distribution shifts because when you see a boat, for example parked at the port where there is no blue background, then you may make a mistake. Of course prediction bias and fairness as well.
Okay, this is also linked to another topic that stands in the title of the workshop, which is short cut learning in the sense that one may use in this case the blue background as a shortcut just for the boat. Okay, and the reason for that is that the blue background is something simpler to detect than the boat itself, because for example for example the background is homogeneous.
And models are generally biased towards studying or understanding simple features. This is also something that people have noticed in practice. Okay, so again, let me make a simple example. So say that you train a model to classify boats versus trucks. So then the blue background is positively correlated with the presence of the boat. Okay, as we said, because most boats appear in the sea or have a blue sky background behind. And this is also an easy feature.
Okay, so a model will learn to rely on this pattern and our goal here is really to understand what easy means through a relatively simple so that we can do calculations mathematical model. In particular what we noticed when reading papers about this was that it wasn't so clear how to extend insights that came from prior work to high dimensional natural data.
So here I've been thinking a lot in the past few years over data sets that are high dimensional, so where the number of samples grows with the dimension of the ambient, in this case N and D. And it's pretty clear that it's difficult to do theoretical analysis in these setups and this was also a challenge that was encountered by

This was also a challenge that was encountered by previous work and generally this I think is a bit more general than this specific work but something that I'm very passionate about and I've been thinking a lot is to try to develop simple statistical models.
that are still again simple enough so that we can study them and we can get exactly as hypnotics but at the same time are still informative and still give you some insights that reproduce well when you train at scale or when you train on realistic data sets so this is what we are trying to do here so we want to give a precise characterization of the statistical mechanisms behind spurious correlations
We explicitly target high dimensional data sets, high dimensional data, and we focus on the solution that's obtained via empirical risk minimization. Okay? So I'm going to present some theoretical results. I'm going to present some experimental evidence that then tries to corroborate what we learn from the simple model. I'm going to do some simple regression models. Indeed, it still applies.
when you go to realistic models and usual data sets that people experiment on, that people play on. Okay, so that's going to be more or less the philosophy of what I'm going to show you in the next 10 minutes or so.
Okay, so this is the problem setup, it's the usual supervised learning setup. So I have n iid training samples, my features are going to be z and my labels are going to be g. The features have two distinct components, so the x's and the y's, and the label g depends only on the x's. Okay, so for example this is obtained from CIFAR, so the x in this case is what contains the boat and the y is the background. Okay, so the y in this case is mostly blue because it's sky and sea.
So the intuition here is that the features Z are divided into two parts, a core feature X, so that's what encapsulates the true information about the label, because the label depends only on the core feature X, and then the spurious feature Y. Okay, so the spurious feature Y is statistically correlated with X, so things that are blue mostly happen with both, but at the same time the label doesn't depend on it, because the label only depends on the core feature.
Then we're going to do empirical risk minimization, so that's really the usual thing. So we're going to be looking at the ERM problem for a certain parametric model f of theta comma zi. So the parametric model takes as input my samples. This is, for example, a neural network and a certain loss function l. Okay. Now this is my metric for spurious correlations.
So my matrix Fourier correlation is the following. So I'm going to be looking at the covariance between two things. So I sample a new data point according to the usual distribution. Okay. So I sample Z equal to X, Y according to the joint data distribution and they give you the label G of X. So this is the true underlying label. Then I sample an independent core feature X tilde.
That has nothing to do with the label itself, so it's independent, it's sampled only from the marginal. Okay? Now I assemble the independent core feature with the background, so with y, and I fit this into my model. And then I look at the covariance between the true label and the prediction of my model that's obtained from an independent core feature.
Okay, this is a spurious correlation because here the correlation can only come from y because x tilde is sampled independently. So beyond the math here, the idea is to have the correlation, is to have the covariance between the true label g of x and the outcome of the model that's not fed with a correct core feature but with an independent one that is statistically independent from the true label.
Okay, so let me do this pictorially. So I have my C for image, okay, X and Y. So I break it into spurious and core. Now I take the core and I replace it with something else, for example a truck. Okay, and then I feed this into my model. Now if the model predicts trucked, it means that the spurious correlations are low, okay, because it didn't get fooled by the background. If the model instead predicts both, then spurious correlations are high.
because it got formed okay so that's the idea I'm going to be looking at this in the context of linear regression because at the end of the day when I get some sort of analytical insight and we're going to extend this to feature to random features later throughout the talk so in this case the label is a linear function of the core feature and again is independent with respect to the spurious feature so it's a linear model for the data a linear model for my predictor and then look at quadratic loss
Okay, so in this case I can solve the GDE solution and I get something like here in the slide that depends on the input datasets, on the label, and also implicitly on the noise vector. Okay, so the noise vector is implicit in the label. So the noise vector assembles the epsilon I's that you see here in the label. Okay.
And okay, we're going to make as an assumption that data is Gaussian and it has a somewhat well-conditioned covariance sigma. So this means that the covariance is not positive semi-definite, but it's strictly positive definite and it has a bounded operator norm. Okay, so as a warm-up, the first observation is that if there is no regularization and Z transpose Z is invertible, then on average I have no spurious correlations.
Okay, so I don't have a lot of time, so you already noticed that I spent a minute, so maybe I'll skip the two-line proof, but the proof is really two-line, and the idea is that the error in this model only comes out of the deep loop. So if I look at the solution computed at zero regularization, then I have that the solution is centered around the ground truth, so the model is actually consistent, and I have an extra piece that represents the error, and the error only comes in at the deep loop.
So when I take the expected value that part vanishes. That part vanishes and then the expectation of the covariance is exactly equal to zero. Okay, so this is only a result on average because this only tells you that the notion of spurious correlation that I had is on average small, but as a matter of fact with really a little bit extra work you can show that this quantity is small with high probability, so not only an average. Okay, this is a very simple concentration result.
Okay, now let's see what happens when you have regularization. So when you have regularization the situation is a little bit more complicated. Here we need to do a little bit extra work and here the idea is that we can have a precise characterization in high dimensions in the sense that the spurious correlation, so this is this calligraphic C of theta L R hat is close to calligraphic C sigma lambda, which is this quantity here. So this is something dependent on theta star.
something dependent on sigma, something dependent on PY which is a projector and also something dependent on tau. So tau solves a certain fixed point equation. Okay? So in plain words this theorem tells you that instead of studying the spurious correlations, so the covariance that I mentioned before, so this is a random quantity because it depends on Z which is random because data is Gaussian and it depends on the noise.
I can study instead a deterministic quantity that depends only on the ground truth parameter theta star, depends only on the covariance of the data sigma and depends only on the regularization lambda via this tau of lambda which is the solution of a certain fixed point equation.
Now here the key idea to obtain something like this is to exploit the fact that a characterization for the linear regression solution is available, actually a non-asymptotic one, so you can also make this non-asymptotic and you can say that the error is epsilon with probability at most e to the minus d epsilon to the fourth or something like that in a recent paper by Han and Xu, so we leverage indeed this characterization here. Okay.
And in the remaining five minutes or so, I would like to take a look at this deterministic quantity and draw some insights concerning its meaning and its value. All right, so the first thing that we did is that we bounded it and we have a few bounds on it. And this bounds depend, of course, on the covariance matrix and on a few other objects, including the short complement. And so I'll go through these bounds right now.
So the first term that appears in the bound is this sigma y x operator norm. Okay, so this encapsulates the correlation between x and y. Because if this operator norm is small, possibly zero, then there is no correlation between x and y. And at this point there are no spurious correlations because the model is learning nothing effectively spurious in this case. So spurious correlation arise because y is correlated with x. Otherwise, you know, there's nothing to learn here.
So, pretty obvious. The thing that's a little bit less obvious is the role of regularization. So if the regularization is large, then one can show that the solution to the fixed point equation is also large. Okay, and since the second term in the bound scaled as one over tau, then the smoothness correlations are small. So lots of regularization, no smoothness correlation. Also zero regularization, no smoothness correlation, we saw that before.
Okay so at the limit this matches the previous result when n is big enough and has to be bigger than 2d for this to happen and as a matter of fact you can also study something a little bit more refined so you discover if you analyze this quantity that there is an interval of lambda where the loss is decreasing and reaches the minimum

increasing and reaches the minimum but the spurious correlations increase okay this i think is best seen with a picture so let's say that this is indeed the values of regularization lambda okay so the first thing that we show is that there is an interval between zero and the certain lambda c where spurious correlation are monotonically increasing so more regularization means more spurious correlations
Then in the right interval of zero the loss decreases and then eventually it monotonically increases in lambda and the point at which it starts to be monotonically increasing happens before the point at which the correlations start decreasing so the minimum of the loss happens in a neighborhood where spurious correlation are locally increasing.
So if you in fact want the minimum of the loss you have to live with Spurious correlations. This again makes sense because Spurious correlation are helping you to learn what you do when you do stuff in class When you do stuff in distribution then this helps you in a sense But when you do stuff out of distribution then of course this hurts you
Again, this is also what you see in this plot. So on the left is something that he did a set on the right is color is color of mist. So the red curve is the smoothest correlations and the black curve is the loss. So the loss first decreases and then it goes up and the minimum of the loss is reached when the smoothest correlation are non zero and in particular are locally increasing.
Okay, this somewhat harmonizes well with previous observation in experimental work that said that indeed spurious correlation increase with regularization in deep learning models. Another observation is that the bound depends on the conditional covariance of Y given X. In fact, as this conditional covariance decreases, this means that Y is becoming a deterministic function of X.
So this means that I can guess why just based on X and the spurious correlation increase because there is a stronger correlation between the two so there's going to be stronger covariance at that time. Okay and this you can see very clearly here in which as you increase the sure complement in this case the spurious correlation goes down and the loss goes up because the problem is becoming harder in distribution.
Finally, you can interpret this lambda max of sigma yy as a sort of simplicity bias. Now, the idea here is that if what Spurious is indeed the background, the background pixels behave consistently. So this means that the spectrum of the covariance of the Spurious part has a few dominant directions. Now, this in principle should be something easier to learn. Okay, this is what is...
Speaking up our bound. Okay, and again in this synthetic setup you can see pretty clearly that sparsity correlation increase as lambda max goes up. So as the task becomes more and more simple and the loss also decreases. This can also be seen in this synthetic experiment whose result I'm presenting here. So here we just did the classification on CIFAR-10, but then we added
More and more noise to the background. Okay, so as you add more and more noise, this becomes a harder pattern to guess, and so lambda max becomes smaller when compared to the trace. So the size of the Spurious correlation in this case is the same, but then it's just that the spectrum becomes more complicated. So lambda max is less prominent in this case. So more whitening reduces lambda max of sigma yy, but it also reduces the Spurious correlation and it increases the loss.
Finally, I'd like to conclude with a couple of thoughts on the role of overparameterization. So again, when you train a neural network with gradient descent, one thing that you quickly notice is that smoothest correlations are there even if there is no regularization. And this is something that the linear models cannot explain.
So to go beyond that, we looked at the random feature model, that's something super popular in the theoretical literature. You can think of it, if you've never seen it before, as a two layer network where only the second layer is trainable and the first layer is random and that's there. Now what we show is an equivalent principle between random features and linear regression. So beyond the tacticalities, the idea is that the random feature solution is equal to an auxiliary linear regression problem.
that has a different regularization parameter okay so doing random features is the same as doing linear regression except that I have to shift the regression parameter and so I have this effective regularization lambda tilde so that effective regularization scales with lambda of course so as I increase the true regularization the effective regularization increases but it is bounded away from zero even if the original regularization is exactly zero
And there is a lot of papers that have pointed that out. It turns out we couldn't quite use those results because those results are mostly about training loss and test loss. And here I'm interested in a slightly different quantity, which is the covariance that I've talked about so far. And so we developed a somewhat stronger pointwise instance.
So we developed an equivalence principle at the level of the predictor between random features and regularized linear regression and this I would say agrees pretty well with a bunch of other papers that have been written in the area by many people here shout out to Sebastian that has done two great works Gold et al 2020 and 2022 and a couple more technical one by Andrea Montanari and Basil Saad and ULU and Hulu.
Okay, this also somewhat encapsulates the role of the activation function because the effective regularization does depend on the activation function through its Hermite coefficient, and that's what we investigate in this plot as well. Okay, so I think I've used pretty much all my 20 minutes, so this is somewhat my wrap -up slide, my take-home slide. So what we have been doing is to develop a precise characterization of the statistical mechanisms behind Pudius correlation in high dimensions.
with a focus on the ERM solution. And despite working on, of course, relatively to a setting in which we could do exact analysis, we were able to unveil messages concerning the role of regularization, the role of simplicity bias, and the role of over parameterization. And with that, I would like to thank you all for your attention. And again, I would like to extend a thank you for the organizer for setting this up with such short notice.
Thank you Marco and sorry for the wrong introduction. So yeah, you have a question?
Thanks for the very nice talk. I am curious about how might your results change under LP regularisation or maybe more specifically looking at L1 regularisation. I'm curious you know is it possible that L1 regularisation could act as like a feature selector for the invariant feature or something like this? Do you think that your results are maybe like do you think L2 regularisation is maybe a worst case for spurious correlations with respect to your analysis?
Um, okay, that's a good point actually so I can take maybe something technical so
I think L1 should be doable because so L1 is LASO and there are high dimensional analysis of LASO in the setup so again I don't know exactly what's your background but if that means anything to you what you could do is that you could think of LASO as the as you could think of the fixed point of LASO as the solution of either a message passing algorithm or something that you can solve with Gordon-Minimax theorem.
I'm not pretty sure but I think this could be done using some of the techniques that exist how would the result change so of course L1 promotes sparsity so in that case that should that that of course could kill the could kill the spurious correlations but
I would still believe that as long as, for example, those are simple enough and they're correlated, they're statistically correlated enough, those should stay. So I would still expect that most of the qualitative findings that we have are still there. Of course, the math would change, and I don't think that the expression would be exactly the same, but I would still expect that many of the things that we find in this setup would still be true there.
So it would be cautiously optimistic about that. That's I think the diplomatic answer to that. Thank you. Okay, I'll try. another question? Okay, uh thank you, Marco. That was an amazing talk. Thank you everyone. Uh so in few minutes we will start the panel.
Probably had exactly 5 p.m.

preparing data. So my question is how this paradigm shift affect robustness of research, your opinion actually David? Um for me the biggest change is that is no longer one machine per problem, is one machine for all problems, meaning that you are amortizing a lot of common patterns between tasks. So I do think that
If you were previously struggling by turning one machine on task A, but now, suddenly you have data for a very similar task B and you're training a common machine there, I think there's a lot of robustness and a lot of alleviation of these Bruce correlations that may happen there. So for me the one of the big revolutions of L_L_M_s is to cast any prediction problem that you can think about under the same language and uh use the same machine to address it. So I think there's a lot of uh as Bruce correlations that vanish in that sense. Maybe more isolated tasks,
Like the the tale of tasks or or the new stuff that we want to deal with, it would it still suffer from the same problems that we uh usually uh care about. But um yeah, that's just one thing uh that I think about. Yeah. There is a that makes a lot of sense um I would say that you know, you know, looking back maybe like, you know, five years ago, seven years ago, you're mainly like focused on like really uh, you know,
relatively speaking smaller data sets like for example M_nest, colour M_nest, CIFAR, ImageNet. And looking back like you know just imagine the ImageNet data set, right? So you have a complex image and it is labelled as basically one label, and we were not doing any other types of distillation. Basically trying to uh have a model train on a data set and not rely on any experience correlations.
Um with that context let me give you like some examples to see how complex and maybe even unsolvable that problem uh is. Uh there's a class in image net which is called space bar, you know, on a on a keyboard so you have a space bar. Okay, so how do you define the spurious features for such a class?
Okay, so if you think about like you know okay you have an image, this is the space bar, and all basically consider the rest of the image, you know, that is not on the particular position of the space bar, the spirit's features. Then if you take everything out and you know just look focus on like that small part, you may not even
be able to classify that as a space bar. It it can have like you know many other meanings. So in those situations it is very even it is very difficult or in my opinion almost impossible to define uh mathematically at least you know what the various you know features are for that particular class. Uh similarly let's say if you have another class,
uh let's say an animal like a car or something, and you know an image that is only partially showing that object. Okay, so maybe the head is, you know, not in the image. Does it still like, you know, a dog or does it still a car? So as a human we can basically uh be able to classify it because all brain has been trained on much much uh diverse data sets and domains.
Um and I I think looking back like five

And I I think looking back like five, you know, ten years ago that you were basically trying to solve this problem on an isolated data set and uh on an isolated um uh domain, it might not have been the best way to think about this problem. And, you know, it kind of alludes to what David mentioned in terms of uh looking at perhaps one machine but that is
observing very diverse domains and problems and we try to um have that machine to be able to generalize well across different domains. I think in my opinion that is probably one of the most significant paradigm shifts that we have seen in the last couple of years. Thank you. Uh any comment from the audience before going to the next question? So uh
As you pro perceive you both believe that um most problems in experience correlation probably has been solved because we have uh larger models that could solve uh actually many tasks. But uh I don't agree by the way. No. Okay, wrong interpretation, okay. Because this is being recorded. So I just wanna like. Okay, uh
So, so tha that's great. So let me let me know which aspects of the field you think that uh is solved and which aspects has not been solved yet. Let me ask a question this way. Well, continuing from the answer before, I think that your typical um natural language processing or computer vision problem now
Maybe before it was a ninety-five percent, now it's at ninety-nine percent, so it's uh it's more difficult to find failure cases there. Um but with uh a wider uh applicability comes wider responsibility. So I think now there are th these models are being applied to uh so many tasks that just a couple of years ago we would uh it they were outside of the realm of machine learning, right? So I do think that
We can talk about the tale of the distribution, but we can also talk talk about the tale of the distribution of tasks. And there will always be such a thing, right, because the world is ever-evolving, there's new fields of knowledge, there's new things that we want to predict about, and just by definition there's no data about those yet, right? And w when I talk about automatic distribution generation, I I always think of the very far tail of the distribution, and that is
the most difficult problem to crack. And when we crack it, you will see LLMs that do not only reply to the things you say, but also gener generate their own hypotheses, they extrapolate to new domains, they they come up with the next frontier of knowledge, uh etcetera. So as long as I'm not comfortable with an LLM piloting a plane or driving a car, I think there's some space correlations, right? So so yeah. That would be my my my short take on it.
I try my best here. I uh I I I totally agree with the with what David mentioned. But um maybe I'll add some uh some extra, you know, m maybe my own opinion about this. I I don't think we have actually solved
The experience correlate the fundamental problem of experience correlation. That's my uh maybe, you know, personal opinion. I think that the reason that we see the performance of the models, they go higher and higher, is partially because of the overfitting to the to the benchmarks and overfitting to the evaluations.
Meaning that like I can always, let's say if I have a model that has truly learned what a cat is, right? So that's the probably the easiest question or maybe like one of the most standard question in deep learning, cats versus dogs. So let's say if he solved that problem, like we have a system that knows exactly what a cat is and knows exactly what a dog is.
like a human like a human brain that can do that classification. But then we we we can always find some cases where those objects appear in maybe uncommon setups and strange situations and the model is completely confused. And for me that is an indication that the model hasn't really
truly learn what a cat is and what a dog is. And it is mainly doing a better and better job in terms of extracting correlations in order to do that prediction on certain domains. And that is a little bit worrisome, right, because especially if you start using
uh models in domains that are sensitive then you might have maybe like a one percent or maybe some situations come up and then the the the setting is uncommon and these models haven't been seen or trained on those situations and the performance can can drop from let's say ninety nine percent to like you know fifty percent or sixty percent. I think one the issue of overfitting to
to the test set is a huge problem. And it is not like you know, overfitting using those samples in the test set. But even like in designing the architectures, in basically picking the hyper parameters, all of these things. You know, there's a you know leakage of information uh that makes the models do better and better job in in this. But there's another argument that okay if you have so many so many test sets that uh basically cover
a more or less every potential situations and scenarios that potentially a model will see, then it is fine to overfit. As long as you know it is doing a pretty good job even on the worst domain, uh then we are fine. So that's also a valid argument. But I think fro from a fundamental point of view uh I don't think we have cr
Crack that even the simplest problem of having your model being able to learn robust features for a particular object at least for the vision domain. Okay, thank you. And I and I think something that is new that maybe was not a subject uh of focus before is something as simple as length generalisation. Uh
If you want to make an L_L_M_ crash, then uh just show a longer sequence about that particular problem than those observing training data, and even even counting letters or or reversing a string. And that that that is a very strong indication that that the machine is but a big pattern matching uh system that hasn't understood the the the underline algorithm necessary for addressing uh out of distribution in terms of length.
Exactly. Thank you. Uh so let me ask you a relevant question, probably, and uh it is what's actually uh a spurious correlation and uh
uh general robustness and generalization challenges challenges are the most relevant to work on in the context of LLMs and VLMs and recently emerging AI agents. I think uh you you've talked about for example new challenges in the length but other challenges especially more uh more general challenges, what do you think we have now?
Yeah, len is the the obvious one that everyone is is talking about. Um pondering. Uh I mean uh another one would be difficulty during the session. So so when people talk about length during the session, you you have problems where
The length of the input increases, but the amount of computation necessary to token uh does not increase or the answer that you have to give is just a binary token. It's this string uh container. Even number of ones or odd number of ones, that can be done with a constant computation per token and uh the outpood the the length of the output doesn't scale with the difficulty of the of the task.
But more generally you could imagine uh setting up benchmarks where the difficulty of the instance uh increases even if the length of the instance remains uh the same. So in that particular setting you would need to um t to come up with architectures able to spend an adaptive amount of computer time, right?
Uh if this instance is difficult then I should be able to ponder longer about it. Some reasoning models do this. But they overdo it sometimes in the sense that you say one plus one, and you get like ten thousand tokens of pondering. Um so I think yeah, length, I think uh uh difficulty generalisation, um it's uh it's it's an interesting problem. And now that you mention a ag agents, I don't know much uh about the topic, but I expect that any spurious correlation or or or weakness in a model will only magnify when it's a hundred models talking to each other.
With respect to multi-modal uh L_L_M_s um I had a couple of students, you know, earlier you know this year, they were saying okay so has this problem been solved, you know, what should be because they have been working on spirit's correlations for vision vision models. And we did like this study, we put out the paper on archive like a couple of weeks ago.
And it was Do very we interesting. need to have it on the poster? I don't feel particularly Oh, maybe there's a poster. is Okay, good. Um and it was very interesting. We studied a couple of uh more recent uh uh vision language models. Lava was one of them uh Quen vision model was another one and a couple of more. And we wanted to see if the problem of experience correlation.
Uh the way that you define it persists, is it decrease in you know, increase in all uh with respect to the

increased you know uh with respect to these models. And it was very interesting, we used um uh GPT for O_ to come up with the list of potential experience features for a particular class, and we used that information in order to generate
Uh very difficult uh examples for the models to see okay what happens if you have the object of interest in the image without experience features. When you have experience features um uh and you don't have the object, you know, basically four combinations that you can consider.
And we notice there actually like two really key problems. One of them is like over-reliance on experience features. Where you have the object and for cases when you remove the experience features on natural images, you don't have those experience features, the p the performance of the models they drop um uh quite a bit. But more interestingly, it was the other problem of uh other direction which is the problem of hallucination.
So we could basically come off with examples and uh uh data sets where the experience features exist, but like the object doesn't exist on the image. But the model could still think that the object exists because of the experience features. Uh so I think in my opinion uh the problem of hallucination
can potentially and partly be um be due to the uh spurious features and the the fact that the models they haven't learned the their the core and true features in order to do the prediction. So this is in addition to the other problems that uh David mentioned. Thank you. David, I want to know your opinion about the actually new actually generalisation challenges in BLMs or multi-model uh era compared to the single.
Modulo models, what do you think about that? I yeah, I think if you add modalities thing can only get worse, uh in the sense that there's cross-correlations between vision and text and language. We all know the examples of uh vq vqa systems that they didn't even need to look at the at the picture to to to answer the questions uh faithfully just because the statistics of the natural language of the of the question answer pairs.
Um so if you are borrowing those encoders and plugging them into your L_L_M_s, you are inheriting those spurious correlations and and uh issues with robustness. So even though it's not my field of expertise, I I I truly agree with what uh Sahil is saying that um that there are spurious correlations from the the the visual domain uh they they are they can be not solved. So um
Is it the ro the correct interpretation that both of you think uh in multi-model models probably we have more challenges in terms of a discreet validation, not less compared to single modality models. Yeah? Absolutely. I mean yeah. Um there are more like, you know, shortcuts for model to learn. Uh in some cases um you know if you look at like the attention maps in vision language models
So the in some some of the question answer uh data sets, even if the question said that okay so in this image X_Y_Z_ and you don't see any attention from the text tokens to the vision tokens, you know, meaning that the model is able to generate something, you know, through short cut learning. Uh so that problem becomes more difficult. Okay. So um
Is there any comment from the audience? Um okay. Uh we can go to the next question. Um there are few interconnected areas in foundation models uh foundation model post-training actually. Uh such as alignment, safety, canistic interpretability. What are your thoughts uh and their connections with robustness and generalisation research?
Um and maybe at the risk of being awkwardly redactionist, I think many of those problems are out of distribution problems. Uh for example many problems in fairness, we argue in in in one paper like a couple of years ago that uh those are failures to generalize to distributions of examples that carry a particularly important societal meaning. So um it's it's nothing but out of distributional isolation if you if you wanna be technical about it. And I think alignment is is uh is a very similar thing. I think uh
Any complaint you get about the system being misaligned is a complaint about the wrong prediction of the problem, right? And you can always cast that as a failure to generalise. And I think many of issues with hallucination, as Zohair has said, um can be traced back to to spurious correlations, right? I have shown one in the talk about David Mandela, and it's uh a civil rights activist but this person doesn't exist, but obviously it's just Barwina, a famous surname. I think there was another example of
If your favourite colour is yellow, what's your job? And it's always a school bus driver. Uh they they are all these uh very, you know, smelly as pretty correlations that the models are relying on. So I think um yeah, many of the issues that that you're saying that are are out of failures to to generalise out of distribution. I don't know much about mechanistic inter-interpretability, but um yeah, maybe that one we can cast it as well as as another problem, I think.
Thank you. So Uh I will and I'll uh maybe talk a little bit about you know I totally agree so I won't, you know, uh repeat what David mentioned. So, you know, maybe uh talk a little bit about mechanistic interpretability and how it uh can relate to. So one of one of the one of the so there are like two lines of thoughts in general, one uh which speak to connection between robustness and interpretability. So one of them is saying that okay um if uh we have a good
interpretability mechanism. Uh saying that okay, maybe I find some circuits that is correlated with you know certain uh attributions or certain uh topic, then perhaps I can use that information in order to train better and more robust models. Basically using interpretability.
one mechanistic interpretability in in terms of having a better training system. However, the one of the issues of that is, when you are defining basic interpretability signals, you know, through different ways, we usually start with like the the model that we are training. So it is you train a model and then you interpret.
And then you try to use that in order to improve the the the the robustness of the model uh which in many cases is it's a circular problem. But because if the original model isn't robust so the interpretability that is coming off of it is not going to be faithful. Uh so if you're changing uh some some features of the model and you see okay so the circuits that you have
recover with respect to like particular attribute is going to dramatically shifting, then that's not a good signal to uh to use in training of the model. Uh so that's probably uh a bottleneck to uh use interpretability uh with in the training of the model.
The a new way of thinking about interpretability which is different than mechanistic interpretability is through like reasoning tokens which I'm very excited about. And basically if you think about like you know models like deep sea and all of these reasoning models you know all you know all families what what it is doing it is generating reasoning tokens at the same time that it is also generating the target.
And so it is not like you know post prediction interpretability. It is basically in a way that you are first you know generating your interpretability signals you know if you can think about it uh the thinking tokens as that and then you are using the uh those tokens to use and in and predict your target.
Uh which in my opinion is a very interesting direction to combine interpretability and robustness um through like reinforcement learning uh based training. So I think that's um more promising direction uh if someone is uh interested in the in intersection between robustness and interpretability. Thank you. So uh this is not directly relevant question to the workshop, but I want
That's you're talking about. I want to know your opinion. So that you think that if you for example have uh if you encode what uh it is in the models representation in terms of uh vocabs, so it it can help us to understand what is exactly going on in the model. So you can see it's it's a promising actually uh signal for understanding what's going on. And for example, uh because alternative mat alternative
Mechanistic method are too hard for example, to do you think it it's a for example reliable, it it is simpler, but it reliable to actually uh interpret the model faithfully? So I um I I couldn't like you know understand like you know the the maybe, you know, I'll I'll um I'll tell what I uh implied uh
Uh so there are some like um what's it called like um bottleneck context, bottleneck networks where there is a basically the the prediction is done in like two stages. One stage is okay, so

One stage is okay, so you have the input and you extract the features like faithful features uh like we mentioned and these features can potentially be interpretable features. And then use that in order to do the prediction. Right, so um And and you know those types of works you know have been quite interesting. But like again they and we have been like you know thinking about like this problem for many years.
But the the the problem is that even for the for the context layer where your bottleneck is and you want your prediction to be on top of it you still have the problem of spurious correlation. So those features that basically you are reducing your problem
To one level lower uh potentially the problem will be uh not as significant, but still you have you have the same fundamental uh problem. Unless you involve more human annotations or other ways to make sure that those features they are trained in a way that they are truly interpretable, there's no like experience uh correlation problem.
in in that layer. Okay, thank you. So uh the next question is quite interesting. Uh do you think that secret sauce to robustness is in the data or algorithm? For example if you if you want to bet on one of the approaches on data or algorithmic approaches, which one would you choose? I think it would be very unwise to bet against data.
given the history of events. Um I I well in the talk I mentioned this bitter lesson that I think uh if you are I_I_D_ you know A_R_M_ is optimal. If you are near I_I_D_ you are in the accuracy on the line regime where it seems like the most predictive aspect of O_D_
The realisation is I_I_D_ realisation, and then if you are far from uh your uh training distribution then uh I think the most successful technique that people have has has done is to modify your training data, such that it becomes closer to to the um to the test set. And what you can go too far and overfit to the test sets. And I think we we are seeing that over and over again. But overall I'm I'm very excited about methods that can automatically reduce the huge volume of data that
you know, inhabits the internet into a tiny percentage that is highly curated, highly diverse and covers uh all of those factors of variation uh on a on a balanced way, such that when you apply a simple algorithm such as I_R_M_ cross-entropy minimisation on top of that data, you end up with invariances, you end up with a robustness, you end up with all of the good that you uh good like out of your out of your model. So if you force me to choose one, I would say data.
Thank you what what you said. Definitely same for me. Um um but with respect to the data, it is um I think the quality of the data and the richness of annotation is going to become is already becoming very very important. Like I mentioned like the example of e-mention it or you have one image like, you know, very complex you know, b some of the samples, you know, quite complex, and you annotate them just by one label.
So okay, so it is really hard for a model to learn from from that connection from this from the uh uh between the sample and the label, right? Uh but I think if we scale up the data to include more diverse set of samples and also have higher uh and richer higher level and richer annotations, think that's going to help
improving models' robustness in general. But absolutely, I think uh data is going to be important. And it might also like, you know, be the case that okay, so you are adding more and more labels and annotations to the data, it might be smarter ways to use those annotations in training the model. Uh but that starts from a good formulation for the data and how you wanna use that information in in in training the model.
Yeah, I I think you make me think that uh there are two major ways that you can increase the robustness of a system you can have your inputs X_ and your outputs Y_ and in in the talk before and you have just said now that
Uh one of the key characteristics of ImageNet back in the day was that they went from binary classifiers or just a handful of objects into a thousand categories, right? So if if you are forced to predict a thousand categories, y you have to get more work done. You have to extract better features in order to address not only cats versus dogs but you know tracks, cars, planes, and and so on. So I think it's it was like a miniature version of the L_L_M_ revolution where now it's one machine for all the tasks in ImageNet, it was one machine for a thousand tasks.
tasks. So if you want to to um to get a better model, I think what you can do is either curate more balanced diverse high quality data, that's playing with the inputs, or enrich the set of tasks that you want to get done from those inputs. And that's the why, right? Either make it one thousand classes one foot vector for image net or
make it all a natural language API and address every possible learning problem with natural language. So you are tell then telling that it is both about X_ and Y_ not just about Yeah, those are the two strategies that I that I that I can see, yeah. Okay Okay, we can And I I guess rich annotations can also be chain of thought annotations, right? Those are being very popular right now. So that's once again working on the input side of things.
Okay, thank you. Uh so my next question is uh what's the recent robustness organisation work that you are excited about and why? Well, I I I think along those lines, I I'm very excited of uh anything related to data curation to um automatic en environment discovery. Anything that can go really as as we said before from
the massive the massive ocean of data that we have available to whatever, you know, core set or
diverse subset that makes ERM successful in the task that I want to do, I think that's um that's very exciting to me. And obviously in order to do that you will have to become very efficient because you will have to parse the entire internet multiple times, you will have to you know do multiple rounds of training. It's uh it's uh along the lines of removing the human in the loop, where the human in the loop now is helping curate and re-curate and re-re-curate the data in order to extract more and more generalisation out of these.
Thank you. What about your sale? So um for me there like two directions I am very excited about. One direction is um reasoning-based models. I I think they're sh really fascinating um if you think about them and uh it I think we are really really at the early stages of
formulating how uh those models should be trained and you know what kind of impacts they'll they're going to have on robustness, interpretability, so on and so forth. Um but the other direction is also quite interesting because we have a lot of generative models, right. So with these models they can generate uh data, synthetic data um that can be quite high quality and uh challenging for models.
uh forward their forward their forward path. I think uh being able to identify situations that okay, so these are like the potential situations my model is struggling and connecting that to another pipeline to amplify those sub-domains. So it's you know maybe those are like smaller samples uh that your model is struggling and you're increasing the size of those samples.
Uh similar to what, you know, um we have been doing with respect to date augmentation. So date augmentation is like literally increasing the size of your um your samples by
creating perturbations where you know the true label is not going to change. And you want your model to be able to predict currently on them. I think using these more advanced text to image and text to other types of modalities, we are going to be able to have a basically a system that is, you know, basically working like a loop.
And maybe that will take us to the next level in terms of having model that is meaningfully robust uh with respect to various sub-populations. Thank you. So um let's go to the next question. My next question is about the role of theory.
What do you think about the role of theoretical guarantees? How are they important? Uh is it even possible, for example, to get them for robustness in foundation models? Uh I I love guarantees if we can have them, uh but
But what is the guarantee of a plane flying. Like uh well there's, you know, uh you you can subject this incredibly complex system to different stress tests, right? Which um are nothing but out of distribution scenarios and and and uh performance evaluations that you can subject the the plane, let's say, to. Um I I think theoretical guarantees are uh im important and useful perhaps for
when studying individual components of the system or when studying the system's behaviour on a particularly uh well-defined regime.

a uh well-defined regime, but um I would be very surprised if we can come up with something incredibly meaningful and sharp for the end-to-end pipeline uh they are getting incredibly complicated and now agents are coming and uh it's it's it's going to be a Mm-hmm. a daunting task to get any sort of theoretical guarantees of these systems, I think. But um but yeah, I I applaud the the the people working on that and Hmm. I'm looking forward to know what's coming from there. Hmm. Yeah, actually we are far behind these regions. We are
simple settings for example like those two layer networks. What do what do you think so um Okay, so first of all, a disclaimer, you know, um I made a carrier out of like provable robustness uh but stuff, you know, early on, you know a few years ago. And mainly we were looking at like very shallow networks, adversarial robustness. And in my opinion the only technique that truly
innovative worked on deeper net for us was smoothing based uh uh guarantees meaning that okay so randomize the smoothing different types of smoothing and you get like some sort of guarantees out of it. But those techniques they had nothing to do with neural networks. Randomize the smoothing and other types of smoothing you could apply to any class of functions.
Basically we were not using anything meaningful from like the way that the neural networks have been like, you know, basically you know designed. And those guarantees they were okay, but like not near to the level that we can use them in many practical problems. Okay, so that being said, uh and I think the research has been in a way
um you know partially paused or the activities have been have been lessened in that direction. Because the the remaining problems are uh much more difficult in terms of the the getting anything you know probably uh robust. Okay, but on the other end, so why do we why do we need provable guarantees? Okay.
So let's look at like some other domains like you know medicine, we take vaccines, you know some of us you know take vaccines and if you talk to any doctor there's no like guarantee if a vaccine is going to work or not, not just like there's no guarantee many cases they don't even know how a medicine works in many cases but we trust those because of the rigorous testing.
there are many the you know types of validations that we do okay different subpopulations you know various types of you know control you know uh sets so on and so forth and then we say okay with a you know 99.9 percent you know this is safe and then you get an approval um I think we are reaching to the same level for AI models and AI systems and agents
Okay, so they we don't need mathematical guarantee that they are going to work. Or we don't even like need interpretability to explain why they are going to work. But we need testing. We need to make sure that okay, under these situations that this system, the the the agent whatsoever is going to be deployed, we have rigorously tested all of you know almost all the possible scenarios and here are the numbers.
And we look at those numbers and we decide whether or not we want to use that system.
Yeah, I I don't think you have any theoretical guarantees about how my brain works, um but I I I like negative results though. So for example uh a negative result that a linear perceptron cannot model the X_OR function push people into doing multi-layer perceptrons. A negative result that um you cannot solve the parity function with a transformer without a big depth is pushing people to think about how to solve that with a transformer or a variation of a transformer. So I think these negative results, for example, as well
The vanishing gradients were uh a big inspiration for people to come with residual connections, right? So I don't think we should undermine the the importance of people coming and saying this important thing that we want to do is impossible to do with current architectures. And that's a mathematical proof, right? I think that pushes the the field forward. Thank you. Um So uh if there's no other question,
The question from the audience. So okay, uh we can go to the final question and my final question is about uh actually it's generally about can we uh actually use generative A_R_ to start robustness. So there has been a number of emergent works uh incorporating synthetic data for robustness. Uh they could use generative A_I_ models for counterfactual data generation for example to generate data
not from minority groups and from tales of the distribution and use that synthetic data to assist learning. What are your thoughts, um promises and challenges in this direction? In
Um I think I only have two comments on this. The the first one is that yes, it holds promise. In fact um Reyhan Askari, Muhammad Peseschki and some other colleagues at Meta have come up with this thing called deliberate practice, which is very related to what uh Sohail was saying before of uh trying to have a loop of a generative model providing difficult data to a discriminative model and then closing the loop.
I think when people practise a sport or they learn how to play an instrument, you can always push yourself to the limit and and and and improve your skill on that boundary. So I think we can also teach machines to to be active and proactive in exploring their uh their limits and improving upon those. Uh when it comes to challenges, also some colleagues from Meta, in particular Julia Kempe, Elvis Domatov, they have done a lot of work on model collapse. Uh
Um which is a series of theoretical arguments saying that if you continue this loop at the infinitum then uh you will collapse and generate only one training sample. Um so yeah, opportunities and challenges. Thank you, it's my turn? Thank you. So um maybe I talked a little bit about it in m in my previous response. The only thing I'll add is with respect to the challenges.
Uh I think one of the practical challenges we see uh using synthetic data in training the model is um is that the distribution that is generated by the uh by the by the generative model
doesn't necessarily match with the distribution of the data, the real data that you your model has been trained on. So there's a mismatch between the two distributions. And even though, okay, so you're generating more difficult samples, uh there's also
some distributional distance between the new set of samples and the the more real samples that you have. And that uh can uh basically overcome the gains that you see.
by adding those more diverse samples in the training of the model. Uh but I don't think it's a fundamental problem, I think it's a limitation of the current um state of the art in text to image models and this had this will improve and I think we are going to get to the state that we are able to generate
Samples that are diverse enough but also very close in the distributional distance to whatever distribution that we have. And that will result that uh O_O_D_ problem in in this feedback loop. Okay, thank you. Uh I think we have a couple of minutes for one or two questions if there's any. So okay David final words.
Uh no, please uh keep doing the great work and uh and pushing the boundaries of generalisation. I'm I'm really excited to see what's uh to come. I I I really believe it's an important problem and I I will personally keep working on it as far as I can. So So, are you thank excited to see your book? Thank you very much. So, hey. Uh same here uh thanks and uh for people uh to to be here in the last session of the of the uh very long conference. I hope you all have uh uh great uh you know flight back uh to wherever you are coming from.
Thank you. Thank you, thank you everyone, and actually, this is probably the end of a long conference. And thank you very much for attending uh that's it. Yep. I clear down.
