I had an awesome time interviewing @IdanShenfeld and @jonashubotter from MIT and ETH Zurich about self-distillation. this very promising post-training paradigm where the model acts as its own teacher by conditioning on environment feedback or demonstrations. we cover the SDPO algo for reinforcement learning with rich feedback and SDFT for continual learning without forgetting along with many applications. we dig into how it works, why it’s simpler and faster than GRPO, and where this is already showing up in production systems. table of content: 0:00 - what is self distillation 2:50 - idan (MIT) and jonas (ETH Zurich) introduction and motivation 18:40 - different perspective of on-policy self-distillation (presentation) 36:00 - metacognition and specificity in self-distillation 37:24 - very long hard task and self-distillation 42:00 - continual learning with self-distillation (presentation) 1:16:50 - what is next in this research direction? 1:20:00 - is there any experience with subjective feedbacks? 1:22:50 - quality vs number of feedbacks? 1:26:40 - what setting would self-distillation struggle vs GRPO? my random thoughts on the paradigm I think this is it. I think this will have the same impact as CoT had when it was first introduced and I would be very surprised given it’s strong performance against SFT that it is not already weaved into the main closed source models. It also is becoming clearer to me that the traditional very rigid boundary between pre-mid-post training are starting to collapse a bit and that the reality is more of a mix that is very dependent on the expected performance of the model. on a more meta note, I think having the model being it’s own teacher make just so much sense. like I was looking at my kids and I realized that each one of them has this bias of looking at the next in term of age for clues about how to do things. they have this innate fascination about HOW the one that is a bit older is doing things, not even the eldest. and I don’t think it’s just a fun quirk of nature. the “policy” of the next in line kid is technically very close to whatever the base kid is at the moment. yes they can learn from me or my wife, but we are so much advanced that it’s a bit hard for them to understand how we are doing things (even though the movement are more precise). it’s much easier to copy the one that is a bit older even with a slightly flawed policy and listen to them if they give feedback because they can just understand them better. it reminded me of the example idan gave where if a smaller model was just listening to the big teacher model in robotics they will just hit point in the data they can’t recover from because they are going to make mistakes that are just not possible for the larger model. anyway, this paradigm has a beautiful kernel of truth in term that is fundamental in my view and is a very exciting angle to get up to speed with! papers the slides were super crisp really cool of them to share! if you are interested in digging more into the literature here is a few papers that are worth checking out: 📌 Reinforcement Learning via Self-Distillation (SDPO): :https://arxiv.org/abs/2601.20802 📌 Self-Distillation Enables Continual Learning (SDFT): https://arxiv.org/abs/2601.19897 📌 Aligning Language Models from User Interactions: https://arxiv.org/abs/2603.12273 📌 RL’s Razor: Why Online Reinforcement Learning Forgets Less: https://arxiv.org/abs/2509.04259 📌 Efficiently Learning at Test-Time: Active Fine-Tuning of LLMs: https://arxiv.org/abs/2410.08020 enjoy my guys 🌹 Get full access to learning with yacine at www.yacinemahdid.com/subscribe
Audio and video play straight from the show's own hosting. PodSubs stores and serves no media.
Transcript
From the show. Tap a time to play from there.
SPEAKER_01Currently, most post-training of large language model is done via reinforcement learning method like GRPO. The way it works is you take a problem, you have the model generate a bunch of rollouts, you score each of the rollout with a verifier usually, did you get the right answer, And then you update the weights based on which attempt were good and which were bad. The issue is that this reward signal is extremely sparse. You get one score per entire rollout. So the model has to figure out on its own which of the token in a thousand token
SPEAKER_01chain of thought actually matter. This is a pretty brutal credit assignment problem. In this video, we're going to explore a family of methods that kind of sidestep this bottleneck entirely using something called self distillation. The core idea is that in many of these environments, you actually already have rich textual feedback. Things like compiler error, runtime exception, judge evaluation, that sort of stuff. These explain why an attempt failed and current The current RL method just don't use that information.
SPEAKER_01And in the Xtreme case, they collapse all of this into a binary reward. What self-destination does is it takes the model own rollout, give it back to the same model, but now condition on whatever feedback you got from the environment, and it let it re-evaluate its own tokens. In this distillation setup, the teacher and the student are literally the same model, but the teacher just sees more context. This creates a dense, token-level learning signal, while at the same time being cheap to produce,
since it's literally just a single forward pass over the existing rollout.
SPEAKER_01This approach was developed by two groups working together. We have the people at ETH Zurich with Jonas Hubater who developed the SDPO for the reinforcement learning setting and then we have Eden Shenfield at MIT who developed the SDFT for continual learning from demonstration. Both papers dropped around the same time in January 2026 and they actually met earlier on in 2025 to discuss this idea. What you like about this paradigm is that it's simple. It bootstraps learning using the model's own in-context learning ability.
SPEAKER_01On the SDPO side, it reaches GRPO accuracy 6 times faster in wall clock time and produces reasoning traits that are up to 11 times shorter. On the Continual Learning side, SDFT let a single model learn multiple skills sequentially without forgetting the previous one, which standard SFT completely fails at. This family of methods are already getting picked up in production, with systems like OpenClaw RL and Frontier Open Source Model like GLM-5, who are using similar approach in their post-training pipeline. Jonas and Idan will walk us through both methods and how
self-distillation works at
SPEAKER_01a high level, and I'll be asking them a whole bunch of questions. Thank you to everybody that sent questions my way. during live stream. It was super helpful.
SPEAKER_02Enjoy. So, hi. Happy to be here. I'm Idan Shenfeld. I'm currently a PhD student at MIT working with Professor Pulkit Agawal. My research is focused on reinforcement learning algorithms, mainly for LLMs, but also for robotic applications. Before my PhD, I did research on reinforcement learning in my undergrad, then worked on autonomous driving for a bit, was part of General Motors' big autonomous driving project,
did a lot of cool applications of reinforcement learning for the real world there, trying to solve problems that actually involved a lot of moving parts like other
SPEAKER_02drivers, for example, pedestrian, etc. I was also at DeepMind, was part of the post training team as an intern at Summer 24 Man,
SPEAKER_01you were everywhere How old are you? You're already done.
SPEAKER_02A bit older than the other student. A bit older than Jonas. That's for sure. But I wanted to ask you this because I saw that you were doing work that was more
SPEAKER_01practical and then doing the research stuff. What would you say is the biggest difference in mentality that you have when you do that type of more practical minded work that you know is going to go into a car or something like that and the more research Long-term type of stuff like how's the switch going in your in your in your work?
SPEAKER_02Yeah, so I think when you work on an actual product actual application what you really care about is performance Understanding is just a tool to get the right performance and sometimes you know like as much as understanding is fun and research is fun Just going through a data set and cleaning it give you way more performance. Yeah So it's kind of you need to kind of stop yourself from focusing too much on what is you know like cool or fun or new and do the like you know grind work first and only
then like put effort well I feel and this is one of the reasons I like like went from industry to PhD that as a researcher they don't care about a specific application the thing that we bring into the world is new understanding is new
SPEAKER_02knowledge and this require a completely different perspective. I don't care about being state of the art on any benchmark. i also think and this is in general good that the community kind of went away from that if you saw papers from you know 2000 i don't know 18 19 20 it was all about being number one on the image net leaderboard stuff like that and i think that these days you know people still use benchmark like they produce numbers on aim and stuff like that but it's not really about being number one because there is always a bigger model that will be number one
it's all about what kind of new understanding new knowledge new perspective you give to the community and I think that this is much more fun than just you know
SPEAKER_02playing the numbers game
SPEAKER_01Yeah, yeah, yeah. I agree here. I totally agree. I also agree that like, to be honest, like because I have like a consulting practice where I literally just go with like businesses and we try to implement the stuff and they always want to go with for the flashy thing. But most of the gains are just like, Hey, let's, let's look at each of the data points one by one. Right. Yeah. And see like, and see how all messed up they are. And then like you clean it up and then you automatically get a massive gain, and then you're kind of done.
SPEAKER_01Everything else is extra. Cool. This is really nice. I had the other question, but I'm going to leave them for later. Jonas, you can go ahead.
SPEAKER_00Yeah, awesome. Also great to be here. I'm Jonas Hibota. I am a PhD student at ETH. in Zurich, working with Andreas Krause. Yeah, my research has primarily been focused on something that's called test time training, which is effectively this idea that you can continue training a model at inference once it's been given the task. And my primary motivation is the question of how can we have models that are at inference time deployed in a new environment and then continue
learning and
SPEAKER_00exploring within that new environment to eventually solve very hard tasks, which initially were completely out of distribution of their initial abilities, right? And that entails a lot of different questions, and obviously it touches on continual learning. It touches on this question, how do you Do you do effective exploration? And a lot of other questions as well. A lot of my prior work, let's say, to this was primarily focused on this question of how do you do effective exploration within that new environment?
SPEAKER_00Yeah. Before that, I studied computer science in Zurich and in Munich.
SPEAKER_01Good. And I had a question about like your efficiency learning at test time. active fine tuning of LM influence, sorry, active fine tuning of LM. It feels really like an extension, SDPO, of that stuff that you were doing. Were you really influenced by that work and just like
SPEAKER_00the next logical step? To some extent, yes, right? Like this other work that you mentioned, in that context, we were asking, okay, how can you continue training and improving LLM at test time once it's given a task through gradient descent? There's obviously, there's several aspects that are important when you want to improve your LLM. There's important, what data do you learn from? And that's the question that we asked in that work. But then, as we discovered in subsequent works, that's not the only question.
SPEAKER_00Another very important question is what loss are you optimizing? And so, especially when you learn a test time, it's very important that you, one, are very efficient in turning your data into gradient updates, right? um purely also from a practical perspective if you want to run these algorithms and do interesting things with these and demonstrate these interesting environments and we are compute bound we have to make the most out of the signal that we get that's number one and number two is I think in settings we also
usually just need better uh signals and you know just extract as much signal from our environment as
SPEAKER_00possible
SPEAKER_01Yeah, yeah, I agree. I really like how like, because in my view, like the RL stuff, there's just so much, especially when it's verifiable reward, like there's just so much extra things that like an actual human being that would go through the same process. will look at this stuff, right? They will look at the error trace and they will look like at the, I don't know, the documentation, like the feedback from like a demo or something like that. And then we'll just integrate it in like its learning procedure. 100%. But just giving this the end signal like, hey, you messed it up.
SPEAKER_01You're like, oh, okay. Sorry. All the rollouts. Bad. um it always felt a bit wasteful and there were that we're kind of missing something um and like i i i like i like the the all the studies where there was a teacher that was trying to generate rollouts but then like you're all in token space and it's just weird like what you're gonna do to match the uh the two kind of stream So now I was really excited when I saw like how you guys were doing it. That was pretty good.
The original motivation was actually for me coming from pretty much that angle because we were working on coding at the time and it just seemed obvious that you
SPEAKER_00know At that time, the coding agents were not that good as they are now. And so when I was trying to make ChatGPT code, it was like this back and forth, ChatGPT generating some code, I'm running it, I'm pasting back the error. And you know, it was at the time where it started to get decent at that. The intuition was, okay, it's already very good at, or somewhat, it's starting to become very good at understanding what are the sources of the errors it makes.
SPEAKER_01Yeah,
SPEAKER_00and I then actually before we jump into the presentation, there was also your paper or else razor why online reinforcement learning forget
SPEAKER_01less. That's also something that is that got me even more excited is that like you with this type of self distillation method, it seems I think it's easier to even like different learning that you you you you put there is some forgetting as as the thing goes, but It seems to be the type that is normal I would say for like a I don't know a human like if you were to learn like four things in a row right okay you will like forget
a bit the first thing and stuff but you will not catastrophically forget all the things that was this work also like helping you like go into that same direction
SPEAKER_02Yes, that was a big influence. My RL Razor paper was a big influence on SDFT. Basically, I finished the RL Razor paper and our conclusion there was that on-policy methods tend to forget less compared to offline methods like SFT fine tuning. And I was like, okay, that's very cool. We mainly focused on RL as the main on-policy method that people use. But I'm like, okay, my conclusion and my research can't be, oh, let's just do RL and throw any other kind of learning signal to the garbage you know
that's not something that is like there as you said there's so much learning signals like yeah feedback and so on and I'm like okay we need to find an algorithm that is like on policy like RL but is able to kind of like learn from very diverse kind of signals
SPEAKER_02and that's where I like started to work on this idea and using in context learning you know with distillation to create the self distillation and actually like allow me to put a small story here about how me and Yona started to collaborate on that.
SPEAKER_01Go ahead. So we know each other from conference like few years already and we met at NeurIPS
SPEAKER_02this December and we sat down and you know as usually like we kind of like update each other on what like exciting project you were working on and Jonas open his laptop and show me some slide on like it was the beginning of this SDPO work and I'm like no way that's the exact formulation I came up with and I'm opening my laptop and showing him like you know the beginning of like an overleaf like few paragraphs of ideas and few experiments like we both stumbled on the same like you know idea here um
different perspective I'll
SPEAKER_02say like yonas was focused more on the textual feedback that led to the sdpo paper i was focusing more on learning from expert demonstration that led to the sdft paper but that's how we are like okay we are working on the same core algorithmic innovation that's what i found like so exciting at that time because i think we were both thinking and part of the motivation was that this could be a learning
SPEAKER_00paradigm that could enable learning really from very rich diverse data. But this really showed it to us, right? Because we basically arrived at the same underlying learning algorithm, but coming from completely different directions and working on very different problems. Yeah and I mean like because I also really like to like learn from the old older paper not really for the knowledge because like when you when you push too far down
there's a lot of noise because they're gonna say like oh we think this and then you read it like 30 years later and like dude no like that was not it right but like you you see some of these convergence of idea brewing that you know that in like a
SPEAKER_01year from now they're gonna get it right they're gonna get I don't like that a very good example of this is like just like the all the resnet highway network kind of moment in in a machine learning because there was all this convergence of ideas and then like the every time like it's like different lab that not necessarily talk to each other's and then they don't necessarily like also reference each other but then they come into the same direction and then the kind of paradigm that usually win is like the one that can distill the idea to the simplest atomic unit right and then this then get
like tested on and like in many different form which is kind of what I felt here because like you're
SPEAKER_01in MIT he's in ETS Zurich um i was trying to find the connection and like hey wait so like these guys are not 100 related i know this this was also exciting uh validation uh from like a an historical perspective okay cool uh this is pretty good guys i want to say something about your previous point regarding how ideas kind of converge yeah i think like resnet is a great like example another great example is attention right yeah essentially all you need is not the first attention paper but it's you know
SPEAKER_02There are many. I think when it comes to our work on self-distillation, there is a core idea that I start to see coming up recently and Omar Khataib with his RLM work also kind of pushed that. Which is that we go to the point where models can start to be the force that push their own learning algorithms They have enough capabilities that then you talk to JGPD Which means that we should not train them the same way we
train three-layer
SPEAKER_02MLP We should use their own capabilities, their own reasoning to drive new learning paradigms Exactly and I think like like like two three years ago like in context learning like it was I felt it was something very powerful and tells you a lot about the model right because it knows a lot and he has like he learned all these functions that they can recombine so theoretically if you give it like some some like a direction and new information it's not like it's not a dumb
rock like you will be
SPEAKER_01able to it will be able to kind of go and go in a direction and you like these model that we are using cloud and stuff like as soon as they go and then they search information on the web and stuff like it's pretty good like it will it will be able to like recover and then and iterate and and do their stuff um so if there's a way to just like make like it's more of like allowing them to do the learning right a bit like uh ilia said like these models just want to learn like it just allowing them to have the chance to incorporate the right signal and the learning.
SPEAKER_01I think that's kind of one of the bottleneck. And if you allow them to do that, then they're able to learn a bit like reasoning. Reasoning is like, in my view, as you just start to loop back and back and let them just do their stuff, they kind of were able to lift a constraint from themselves, which is like, I'm going to get an answer and then that's it and then we're done right it's now it's more like I'm gonna get an answer and then like put out some scaffolding and then like we use that scaffolding to be able to generate the right stuff and then I
output the stuff
SPEAKER_01there's a lift directly in performance all across because kind This constraint that we've put on the main structure is lifted. I feel it's literally the same thing. It's like this constraint of like, okay, now what if the context window reset? Oh, you have to do this again? Eh. But like, now it's like, you were able to learn from these and then you were able to move your weight into kind of like a peak in the valley that like make more sense for like these specific tags, a specific user. This makes a lot more sense because like you don't have to mess
around with like crazy memory scheme and stuff like it will have a better sense about like what to do next and if like you like if if you you weave it in so that like there's there's not too much catastrophic forgetting to happen it's a very viable in my opinion
SPEAKER_01kind of pattern to have these model have
SPEAKER_00Yeah, so we put together some slides. What we'll talk about will be a little bit of a unified perspective of these three papers which we put out, which as we discussed, they're all on the same algorithm. The algorithm is exactly the same, in fact, but they touch on three different perspectives of how that algorithm can be useful. and really special thanks go to Thomas who has also been leading one of these three papers and a super exciting one and we'll talk also we'll cover
that as well what I would like to start with is this observation that in many ways current learning paradigms are imperfect and that surfaces in different ways so as we talked about
SPEAKER_00one big issue in many learning paradigms is that they lead to catastrophic forgetting. So meaning as you try to learn a new task, you have this catastrophic behavior that you become significantly worse on previous tasks that previously were and that's obviously not something that we want. Then the second problem I think surfaces in a little bit more in a little bit more subtle way which is that most current learning paradigms they require very careful designing of the data that you put into them so this could be
SFT data sets or this could be RL environments and I think this shows predominantly in the fact that
SPEAKER_00there have been a surge in startups or even like scale.ai now a bit older and already acquired but really a surge in companies that whose primary aim is to organize the data and I think a dream of many is to have eventually a learning paradigm where the models are able to make sense of the raw data itself as they interact with the environment and go out in the world and find the data And then the third one of course is this observation that often systems have some
kind of brittle generalization that if you prompt them in exactly the right way they do what you want them to do but if you just change your prompt a little bit
SPEAKER_00they seem not to be able yacine.
SPEAKER_00So the thing that we will talk about is this thing called on-policy self-distillation and we really view this as a new learning paradigm that enables continual learning from arbitrary data and makes some improvements on the three desiderata that we outlined what's your take on forgetting because like continuous learning is like is one thing. But if we're talking about like a system that kind of is is learning from your your your pace and like your way of working here from like a human
or like a process.
SPEAKER_01But like I said, the process in the human is flawed, right? And then like, I'll give the finally like that was the wrong direction we need to go there. What's your your take on on that stuff like the the forgetting the adaptation in general? Yeah I can answer on that so for me at least like the ability to learn without forgetting is almost a must in the world where you know we have AI models that are
SPEAKER_02actually being deployed like think about let's say Claude or Chagipti. According to recent numbers, they process around 3 billion messages a day. Not learning from these messages, it's a waste of data. User interaction, environment interaction is going to be the largest source of data that we have to train models. But unlike other sources of data, which we have in some fixed container and we can choose when and how we We can use this data is the streaming data every day you get it
a bit by bit and therefore you have to do like you know this kind of continue learning which is essentially learning without forgetting you have to be able to update yourself every day a bit becoming a bit better aggregate another new skill another new
SPEAKER_02capability um without like you know start to degrade on what you know already uh this is true in the general sense of you know let's improve the model from three billion messages and this is also true in the small sense of if i have my own you know open claw and i want my open claw to be like tailored to my preferences um also it will not get like one big data set of my preferences it will get every day i'll tell it a new thing that it needs to remember um and this is just very different than the way we think about you
know classical machine learning when we start assume a data set IAD from some source you know and therefore forgetting is something that really need to be dealt with our agenda for this talk we'll try to keep it somewhat short is first of all to cover what is
SPEAKER_02self-distillation what is the core ideas behind it and to kind of go through the different parts of self of post training that we believe self distillation can take part of which to be honest is most of self distillation so we'll cover stuff that like how self distillation can be used to learn as um from demonstration as a replacement for sft from verifiable rewards replacement to rl and also to learn from new kind of um learning signals such as rich environment,
feedback and real user conversations that are not able with the current methods.
SPEAKER_02So let's start with like in context learning. So in context learning, I think these days we almost take it obvious like, okay, everyone know that it's happened. but like I still remember three years ago when like people start to realize that this is happening it just seems magical like you just put data into context and the model just change its behavior and is able to learn from whatever data you put into context and it doesn't have to be really nice form like example it can be hints it can be feedback it can be random instructions and it's also generalized very well but and this
is a big but it's very transient like who if today I put some context into the model tomorrow I and start a new session and the context is not there, the model goes back to how it was.
SPEAKER_02There's nothing that just stays there. And the second is that, which is another big limitation, is that context windows are bounded. And in the end, if, again, I want to become better at every possible task on Earth, I cannot put examples for every possible task in context. And therefore, like, when we looked in context learning, we're saying, okay, we have something that is really good at our hand, but we need to somehow compress it we need to somehow take it and put it into the model weight to make it stopping the transient and become
something more like that stays there even when you remove the context and this led us to the core idea of self-distillation i'll now cover like briefly the algorithm itself we take an llm and we operate it in two modes the first mode is the student mode we just get the
SPEAKER_02input prompt some question from a user x and it's output a response Y from a second mod is a teacher mod where in addition to the input prompt the same LLM also get an extra contact see this extra contact again can be expert demonstration instruction feedback whatever but the important thing is that now this model is conditioned on another input the context and this automatically changed its output distribution. Now the output distribution,
the responses that the teacher would have produced if we sample from it are kind of different from the student and therefore the core idea in self-distillation is just
SPEAKER_02to use this teacher and do teacher-student learning all paradigm in machine learning where you just minimize the sum distributional measure and this in our case we chose the reverse KL between the teacher and the student and take the gradient of course only through the student and not through the teacher because the teacher is the one that guided the learning this is a distillation algorithm uh very similar to what people have been using quite a lot big to small model distillation but with one important change that the teacher is the one that is
changing um the the model itself is the one that guiding the learning um and why we like it is that this is much more similar to how human learns like humans don't learn by looking at some example and just trying to mimic it you know one-to-one um What we usually do is like kind of we observe we condition our short-term memory condition our actions on whatever we see in front of us whatever feedback we got from the environment and we use that to improve our behavior so
kind of the force that push the improvement in humans behavior is humans themselves and we want to
SPEAKER_02give models the ability to do the same At the same idea let's say like following this idea how do we do it in practice given the teacher and the student we can compare their output distribution for every single so we go over some assistant answer in this case the user said answer with yes or no is what are we yet and the assistant produce an answer that is much more than the user asked yes the water is wet and the user said then I said yes or no only In hindsight if we take the full conversation put it on context
and ask the model or like let's go token by token here over your assistant and see how now that you know that the user said afterwards I said yes or no only the probabilities will change stuff like yes will become more probable in hindsight and everything else become less likely in hindsight and this is the core algorithm object that we're
SPEAKER_02working on with the log probability ratio between the original model and the improved policy. This is actually very interesting because when you take this log probability ratio, there are two perspectives that you can use about how we can use it in learning. One is that we say that this is just a token level advantage or a token level award. This is similar to how in normal GRPO where we train LLMs, the advantage is the, you know, the reward of this answer minus the average of the rewards
across all answers here we just say okay instead of using that signal let's use another signal but plug it back into the rl algorithm at the same time we can use look at it as distillation algorithm where we want to if we sum this log probability across the entire like token space we get just the kl measurements um between as i said before the student
SPEAKER_02and the teacher Now one nice thing that we like about the self distillation perspective is that unlike RL where you take you get feedback only on the tokens you sampled if you take the full KL you take you get feedback you get a learning signal over the full token distribution which is much much more informative and uh you know if we had the whole conversation about like how normal rl rlvr is just like one bit of information per trajectory if we do this like
rich advantages we get more bits because now for every token we get some feedback but if we do the full kl that's a very rich signal to learn from and we'll see later how it also
SPEAKER_02leads to um faster convergences so another nice thing is that we said okay we let the model decide how to learn and when to change its behavior like how much can we trust it like how maybe this process is very noisy so in one of our works led by Thomas Mahdid yacine.
SPEAKER_02and this is similar to before, we have like a multi-turn conversation with the user give feedback. Now, sometimes the user give relevant feedback, relevant user follow up and sometimes the user asks related question after that and one I think that we noticed regarding in context learning in this experiment is that the model will decide to change its original answer only if the user gave relevant feedback so you see above basically the color is corresponds to how much a log ratio change the probability
is changed which means that the model decided to that there is another answer that will be better
SPEAKER_02given the feedback And you see that there is much more color on the top plot than on the bottom plot Basically, if the model didn't got any relevant feedback, it will not change its answer Which means that this in-context learning only push the learning, only change the model, only when we have relevant feedback The whole system seems to hinge on in context learning ability of the model, right?
SPEAKER_01Like it's leveraging this in order to kind of like guide the trajectory. And one of the questions was like, what if the model is not able to kind of understand the correct answer, right? Like how to like, I don't know, like it's not usually like not have enough capacity because they're too small but it just doesn't understand what what is the correct answer it will still kind of judge the token output like is this going to lead to kind of just the the direction being like random or like what's happened in this specific case
Yeah in that case if the model like understood that there is some feedback that it should change its behavior but it didn't really understand how and like you know is able to push it into the good direction uh then yes like the update can be quite random the nice thing i'll say is that one um when you take you know usually you do like training over a whole data set of examples even if some of them the model was
SPEAKER_02not able to understand you will be able to understand on others and the you know average gradient will still push you towards positive directions and second that like look at the models that we get every year we have new models that even with the same number of parameters just have much better capabilities so if i compare you know these days quen 3 8b to like the first llama 8b The in-context learning capabilities of the new coin are much, much better And I expect this to continue growing The new model
of next year and
SPEAKER_02the year after that will just have better and better in-context learning capabilities and will be able to understand users better Maybe one thing I would add to that is I think the other aspect that this points to which is quite important is the feedback itself and I think in the same way that as humans right we also rely on the feedback that our environment gives I think to me this points to a super interesting field which I think will open up in the future is the question of how does the model best like seek out the
right information from
SPEAKER_00this environment as well as right in the same way that when we want to learn about a particular problem we have to learn about where to look where to get guidance from if we search for people that help us yeah people that help us become better at XYZ we try to find the right people that actually give us the feedback that we that our policy needs you know yeah and I think that will be super interesting in the future as a
SPEAKER_01human like uh whenever I'm trying to learn and I had to learn something The hardest learning I had to do was not because the material was hard. It's just because I had to fight to get a signal. I just had the end signal. I knew it was something that I had to do a lot of work to get to. Sometimes there is nobody to ask for. You just have to try a bunch of stuff and then you get some more idea about what's going on.
But sometimes it's just like the environment was not well set to give me the signal.
SPEAKER_01But as soon as I get the signal, I'm like, oh, okay, that's it. I just get another textbook, look at it. I'm like, okay, that's just the stuff. It's not that hard. So yeah, it's true. The richness of the feedback is really important for learning like an organic being. I do agree and maybe you know the same way we see like a lot of environment design that go into RLVR these days we'll see a lot of like environment plus feedback
SPEAKER_02design that go into like training data loops in the future um we have one um rubini carmona uh he's asking like does this paradigm skew the model representation toward meta condition without the substance of actual commission and i ask him like what he means by actual connection and he says like if the representation of a task or ability a get progressively higher while losing the initial specificity he's talking about like uh if the model is not like losing
SPEAKER_01a bit of specificity to kind of go a bit more higher level I think there are two kind of loops here there's the metacognition loop which is like kind of like like equivalent to in context learning like how much the model can learn from feedback and kind of like guide itself and there's the inner loop of
SPEAKER_02the specificity which is like how much it can actually solve a problem like solve a question and I feel like here we mainly take advantage of the metacognition loop to improve the specificity I believe that there are other works and this is a very exciting like line of research to see how we can improve also the outer loop how to make the model more aware to the fact that it's being used in this kind of self-distillation training so that it will be able to provide
better signal for
SPEAKER_02itself. Actually, Joe Parry from my lab here at MIT released a paper around a year ago about self-adapting LLMs that did exactly that. basically an outer metacognition loop and inner RL loop where it's basically trained the model to give better feedback to itself for training so I believe this is like combining that with a self distillation kind of algorithm so back in the self adapting language model it did mainly supervised learning
in the inner loop but combining the two ideas of improving the outer loop and improving the inner
SPEAKER_02loop can be quite powerful what are you guys thought because we're talking about continuing learning maybe you're gonna you're gonna talk about it a bit but like very very long horizon hard task where the feedback is rich right like you are able to get some feedback about
SPEAKER_01like if you're going a bit in the right direction, right? What do you think here? Would it be a useful kind of methodology to kind of refine the model as it is like going through the context in this, let's say in Rnest, like RLM or whatever it is, and then is able to kind of, without blowing its context window, manage it properly, but like kind of run these experiments, get some feedback and know if that gets going into the right direction and like inject this into its weight.
SPEAKER_01Do you know that this, do you think that this has like some utility in like this more automated research-ish, like a long context hard task?
SPEAKER_00Yeah, I think we'll have some early examples of that later. that we'll cover. I fundamentally agree. I think 100%. To me, something that also seems interesting is it seems to me kind of intuitively that as humans, we do this reflection on various, let's call it horizons, over various frequencies, both in terms of very narrow and short-term feedback that we get from our
SPEAKER_00environment as we interact with it, like immediate responses that the environment gives, as well as over longer periods of time where, I don't know, we recapitulate, okay, now that I talk to my supervisor about what I've done the last two weeks and That's what was in my mind because like every time I was doing research like looking back when I was done I was like that was like max four
weeks worth of work right but throughout I was getting all sorts of signals I had to entangle and try to couple up the feedback in order to figure out like the direction like and like I I knew when I was off off right and the direction even though I was dumb right I
SPEAKER_01knew like this was not the right direction for sure right so I had to kind of like go over there and kind of mess up a bunch of stuff here get enough feedback to like hey it's it's here and I just continue and then I got the stuff and then when I linked them up it was like three four steps um but I was able to do it but I needed the feedback from the environment so this is kind of what I was thinking like in a in a setting where you can get even if it's complex feedback, like very, very detailed one, you might be able to kind of steer the model to just have in
this hand side
SPEAKER_01direction, right? Because like, let's say there's a discovery that we want to make now the model has it in its data set and it was trained with it. It knows right now it knows, right? But before it knew, right? It's not terribly different. The model from like now then, then like when it was trained, So being able to kind of get the signal there, maybe we'll be able to arrive at these kind of result if the feedback is rich enough.
SPEAKER_00Yeah, 100%. I think it's a very, very important point that you make there. To me, it's certainly the case that especially as we do as humans reflection over longer time horizons, we do this form of meta update of our strategy where we say once we made the discovery and we reflect on how in the future we can make these discoveries better we don't say okay in hindsight I should have just you know
straight one-shotted my discovery what we do is we try to understand okay what kind of systems can I build
SPEAKER_00or how can I improve my way of doing research so that I'll make discoveries faster. And we are aware, right, through some form of trial and error and reasoning that this does not come through better one-shotting, but through building better kind of systems and better ways of probing and getting to answers quickly. And so, yeah, I think, like, that's super interesting. I'm very sure that over this, like, over this year and also longer term, we'll see much more results in that.
So before going into like specific examples of learning we want to touch back into the R-DZT Rata basically what we expect from a true continue learning algorithm and see how the algorithm that I just described kind of like check any one of these requirements so as we said before what we want is basically performance we want an
SPEAKER_02algorithm like the model to learn we want no catastrophic forgetting and we want to be able to learn from arbitrary non-curated data. Let's start with performance. So, as I mentioned before, our algorithm is an on-policy algorithm, which means that it's a feedback-style algorithm. The model, the student, in a student mode, rolls out its own trajectories, it tries to solve whatever task, and going over this trajectory, it gets feedback.
SPEAKER_02Now, there is very classic results from 2010 from the Dagger paper, a very famous paper in robotics that show that basically if you do on policy learning you're supposed to get much better just performance in your task and why is that let's look at the other option to do like teacher forcing basically to just look at teacher demonstrations and to understand the pain point here let's look at this like two example of like autonomous driving so we have this car driving this loop and it
follows like it have a bunch of expert demonstrations in blue here and it's trying to learn from
SPEAKER_02them the problem is that all of these expert demonstrations are only of a car driving quite well in the middle of the road what will happen that during inference time you know you deploy you learn you deploy the model now the model is not perfect and sometimes it will get very close to the wall but this area of being very close to the wall has no coverage in your training data basically it creates some train test distribution shift between the training and the inference.
And you get to an area where you didn't learn over and basically you're screwed.
SPEAKER_02The model does not know what to do. Now, this is kind of extreme examples. but we see it's also true in any kind of learning as long as you have this like sequential decision making this you know when the model output a sequence of actions or a sequence of tokens as in LLMs if you just follow the teacher you get a lack of robustness that lead to just poor performance and this was known also for like normal on policy distillation versus
offline distillation from a big model to a small model that on policy distillation just give you better performance and therefore we that is one of the reasons we chose to focus on on policy self-distillation another one and I think we touched it a bit before about my our razor paper where we showed that on policy learning tends to forget less so
SPEAKER_02we did a very like simple experiment where we took the same task the same set of prompts and train a model with either RL or SFT and measure not just how much we improve on the new task as we see in the x-axis on the plot on the left but also how much we forget we took a set of eight known benchmarks like if eval and truthful qa mmlu and so on and we basically evaluated like how much degradation of capabilities we have when we learn a new a new
task in this case
SPEAKER_02tool use and something that we found is that RL tends to learn without forgetting while for SFT in order to improve your model you need to sacrifice prior capabilities and this is by the way not only true for LLMs we try it with robotic foundation models and even with three layer MLP on MNIST and just to try to give like a short intuition about why it happened is because that in a lot of these problems there's not only one policy that can get to let's say 90%
success on the new task it's a whole set of them and which one you converge to will affect how much
SPEAKER_02forgetting you'll have and RL just have a tendency um like own policy methods such as RL have a tendency to converge to one that are as close as possible to the original policy even without any explicit KL regularization or something like that so this kind of like implicit bias towards like minimum change keep the models from forgetting more and more and we took advantage of that and said okay if our
self-distillation is an on-policy self-distillation it will also forget less than if we'll do like let's say offline self-distillation we're just generating data from the teacher and
SPEAKER_02learning from them and so like we know that like we can get good performance and we can learn without forgetting it another the question is like can we learn from arbitrary kinds of data and I think this is what we really work on quite a lot in our series of papers to to show that this is possible that this is not just like a one algorithm that learned from one type of learning signal such as verifiable rewards but this is like a really core and versatile kind of learning paradigm and we go through
some of these examples now yeah so the first and the most I think intuitive one that we like to
SPEAKER_02start from is learning from demonstrations basically you have the expert demonstration you can put it in context and ask the model to you know the teacher model to produce its own response which means that given that it condition on the right response it will be a true one and this is like a different use of that this is the same data that we use in sft but a new algorithm that learned from it and as we see in the plot here on the right we see two things again we have in the x-axis the new task
accuracy and on the y-axis the prior task performance and we see that SDFT our self-distillation algorithm is able to both get better new task accuracy again because of that train test distribution mismatch that does not happen in non-policy learning and
SPEAKER_02and learn with almost no forgetting, which is exactly what we want to get from a continual learner algorithm. And this also enables us to do what we call like a real continual learning experiment. Basically, not just improving, taking one task and saying, oh, look, we learned without forgetting, but actually taking a model and trying to like improve it on a series of tasks. So we have tool use, scientific QA, medical questions, and we're asking, okay, can we get a model that just goes data set by data set and improve on all of them and here
we see the on policy self distillation is actually able to do it like use every time you change from one try that data set to another you have a slight degradation of performance but
SPEAKER_02overall Mahdid yacine I really like that figure because it showed really clearly the
difference between the two.
SPEAKER_01But I was really curious. It's just a gut feeling here, right? How much data set, diverse data set, do you need to pile up here in order to make the own policy self-determination crumble? Do you think it will show massive degradation at some point? or you still think it's going to be robust?
SPEAKER_02That's a really good question, right? We still need to like push it in scale to see where things break. That is kind of like the downside of doing kind of academic research where at some point you're saying, okay, I ran out of compute. But I do think that over like my closest point of comparison is I think Nvidia had the Cascade NemoTron paper where they did RL on a series of tasks and if I remember correctly they had six different tasks and each one of them had
was much bigger data set than the one that we use you know if they did tool use they did like a
SPEAKER_02proper you know like tens of thousands of Tullius problems and there was on policy rl they were able to show that like you can keep learning and basically have no degradation at all even after like if i remember correctly like thousands of gpu hours And since the core mechanism, the on-policy learning mechanism is the same mechanism, I expect SDFT to do the same, being able to just keep aggregating performance. Of course,
SPEAKER_02you can see, at some point, when you move from tool use to science, for example, you see the tool use plot drop a bit by around 10-15%. So I feel like this will happen anyway, you know, it's kind of you move from your local minima to a Neighborhood that is still good, but not as good. Yeah You kind of sacrifice a bit of like specialization for like generalization,
SPEAKER_01which is which is like fair game, right? I think it's good because even with human like one guy that just like look at one thing right versus like somebody that has like a 17 different skill set and uh okay like the generalist will be like more useful generally but like when you get to something that is that need require like just doing one you you're much better getting a specialized like a person but like looking at this plot and then looking at the run on the right i'm thinking like During the frontier pre-training,
SPEAKER_01post-training pipeline, does it make sense to weave in RL a bit earlier or self-distillation like this earlier in the process versus just jamming supervised fine tuning in there.
SPEAKER_02I think it's completely makes sense. And this is actually correspond to what we see frontier labs start to do. Basically, if you look at like recent paper, you see that they kind of took all of their SFT data and pushed it into pre-training. So now pre-training is kind of a mixture of like random internet data and a very well structured high quality SFT data sets. and so this all happen at once so you don't have this sequential training because they know that the sequential training is bad and then after
that you just move to a big RL training and in the RL training since it's on policy you can allow yourself to have different phases right math and then code and etc but at least
SPEAKER_02they stop doing like a separate SFT at least some of them One caveat which I would add here is that in some cases you might expose yourself sequentially to environments which partially contradict each other We have one example in Thomas' paper actually where you interact with users and it can be the same user and the preference changes but in the beginning that user wants very
SPEAKER_00detailed answers and eventually that changes to very concise answers And of course there's no way to be good with respect to both. They're contradictory, right? And so I think to some extent that's driving most of the degradation you would see in on policy methods as you stack up your training. And so a question if you are a model designer is either how do I sort or organize my tasks in such a way such that I minimize the adverse effects
so that I kind of prioritize my tasks correctly so that I train last on the tasks which I want to
SPEAKER_00prioritize most Or alternatively, and this is I think what I've seen from a lot of the recent frontier labs is that they have some relatively small multi-stage training step at the end where they mix so they do the sequential on policy learning for the bulk of the training and then they do have a very small stage where they take some data from all of these different environments and then train with respect to a checkpoint they do on policy distillation with respect to a checkpoint
that was already good at that task to just it's just a way of re-weighting your priorities at that point it's not a way of of trying to learn a new a new skill anymore but it's just a way
SPEAKER_00okay Maybe I first trained on tool use but then in the end I trained on science and medical but it's actually not the case that I want the model to focus on medical and kind of sacrifice its tool use priority but I want to have a more balanced I think like it made me think so because I've talked to the founder the head of AI at
SPEAKER_01the math academy and it was like it's very heavy on this is human stuff right but it's very heavy on like having this hierarchical kind of learning paradigm which is kind of like the same thing here like you would like put the the different training blocks in a way that So if tool use is going to be needed in one dataset environment and dataset later on, you much better learn it here because otherwise you're going to learn tool use while you're supposed to do like browsing and stuff like that. So I think that makes sense. And like, I really like the idea of
So the second kind of learning that we'll touch upon is learning knowledge and This is really cool because knowledge for example is something that you cannot learn with normal RL It's kind of like doesn't matter how many
you know like what kind of verifiable reward I'll have if for example I'll take a model with at the end of 2024 knowledge cutoff and we'll try to train it on a data set of like what
SPEAKER_02happened in 2025 as we did like no matter how many you know how much exploration it will do how many guesses it will have what will be your group size it will not be able to kind of like guess correctly so this is basically a kind of learning that we're not able to do um with on policy algorithm before but now with self distillation it is completely possible you just put the text of whatever new information new knowledge you want to give to the model you give it to the teacher you put it in context and it does just train itself
we compared it in our paper to um few baselines first of all a normal you know like in context
SPEAKER_02learning or rag um we also compared to cpt continued continual pre-training which is a very standard of just next token prediction on the document and also what we call like supervised training but is like kind of self-data a self-study algorithm that was popularized recently by microsoft which is taking the document generating a huge data set of synthetically generated questions on it and then train the model to answer on them
using normal sft and of course we compare it to our own policy self-distillation so the base if we look at the result the base model of course is not aware at all of the new like
SPEAKER_02information from 2025 so it's get zero but in like what we call accuracy both strict and lenient accuracy just we ask the model questions about this event that happened during 2025 and expected to answer and also on OD accuracy what is OD accuracy here we checked a bit for generalization so this is not like a direct question about you know what happened in this storm during 2025 but it's more like a questions that need to use the knowledge from in a more general aspect for example
what were the 10 biggest natural disasters in the last 10 years where the new knowledge should change the way you answer them because some of these 10 biggest natural disaster
SPEAKER_02happened in the last year but it's not directly you don't like you know it's kind of you don't ask kind of the model specifically on events which require this is a way to see how much the new knowledge was actually incorporated into then what the model actually knows about the world its world model and then we compare it to like CPT which do terribly like barely able to learn anything SFT which we know like from previous work they're doing kind of well are able to get like around 80%
strict accuracy but doing not that well on the OOD accuracy so basically if you do SFT you kind of memorize answers this is a very known problem with like offline algorithm where you
SPEAKER_02do teacher forcing Well when do you do SDFT algorithm you are able to get better accuracy but also mainly better OD accuracy which means that you actually incorporated the new knowledge into the model So to preface that I want to kind of start by discussing in which ways on policy methods or current on policy methods have been bottlenecked and that touches also on what Edan mentioned on why for example they would not be
SPEAKER_00able to learn knowledge So the first way in which they were bottlenecked is that they methods such as GRPO or general methods in RLVR so reinforcement learning with verifiable rewards receive only a scalar signal per rollout from their environment and that of course bottlenecks how much they can learn from their environment. For example, if you want to learn knowledge through a scalar signal, that will be very difficult. And then the second bottleneck is that then this already weak signal is used for rollout level credit assignment,
meaning the policy is not trained in particular on a specific token or shown that a
SPEAKER_00specific token was good or bad, but it's just being shown that the entire rollout was good or bad. So there's here's one example that illustrates this and we also have this in one of our papers and the example is the question is write a python function that returns all numbers from one to n answer briefly and then in a normal process and also in our training And on policy self-distillation, we would sample a response from the model. Let's say it would be this Python program. And as you can see, it returns a list that ranges from one all the way through n,
SPEAKER_00so including n. And then a feedback could be not to include n. and so what would GRPO do or RLVR methods typically it would so in GRPO's case it would just say all tokens were bad so it would receive a signal a negative reward or or at least on average with respect to the rollout group might be negative. And so in that case, then it would just down weight the probability of all tokens. It would make all tokens less likely. But instead,
what on policy self distillation would do is would look over the
SPEAKER_00The generated tokens and for each ask, in hindsight, given that you know the feedback was not to include n, would you have still generated that token? And as you can see here, SDPO, and this is a real example, this is with QUEN38B cpo here doesn't change any of the next token predictions for any of the tokens except for this one token plus that follows the n right because that plus token was the cause why we included n and so this this is
SPEAKER_00So that's basically the intuition. So both STPO uses this richer signal, this textual signal that describes, okay, we don't want to include n in our list that we return. And it produces denser credit assignment because it actually says, okay, here, this token you should change. But as Idan also mentioned before, it doesn't only do that over the generated tokens. It does this over the entire vocabulary. So at every next token prediction, the hindsight policy or the teacher asks okay any of the
possible next tokens here at that position should they now become more likely or less likely so then in this example you would get but let's just look at the position of the plus because
SPEAKER_00that's maybe most intuitive you would not only say that the plus here should become much less likely you would also say the alternative how you should have continued at that position should be to just have closed the list right and complete it and that becomes much more likely as is indicated by this blue color so how does this manifest so if we look here now as an at an example where there's this type of behavior but aggregated now across multiple rollouts you see this interesting pattern so so grpo basically asks was a response
better or worse than average across a group rollout and then would make all tokens either more likely
SPEAKER_00which would be blue here or less likely And in contrast, SDPO, how we called the on-policy self-distillation in this RL context, would ask was this particular token good or bad in hindsight given the additional context and then the policy would comment on each individual token or even on each individual possible next token prediction. And so one natural setting that we looked at was the RLVR setting. So the typical setting where RLVR methods are applied,
SPEAKER_00such as GRPO, which is the setting where you learn from success and failure, where you have some environment that just tells you whether you're response was correct or your response was wrong. Our first question was, okay, even in this kind of environment where where we don't get any additional signal from the environment, can we still benefit from better credit assignment? And so how you would do self-distillation here is very simple. So you would do similar as in GRP, you would do multiple rollouts per question, and then you would have some correct attempts and you would
have some wrong
SPEAKER_00attempts. And then you can just put the correct attempts in the context of the teacher for the wrong attempts. In the same way as Idan described how you would use self-distillation when you actually already have correct demonstrations. Here you would use these correct demonstrations, but these would be generated by the model itself as it explores in the environment. And so here's one example. This is on a chemistry reasoning dataset. And what we saw here is that we saw two things. So we saw that SDPO both converges here to a much higher accuracy,
SPEAKER_00but it also converges much faster in training wall clock time, which this fast convergence we generally saw because as we discussed it just provides much denser credit assignment so a much richer update signal and another thing which I don't know we don't go in here right now is that we also typically saw that it learns more efficient reasoning so it uses more or it uses rather less of these typical reasoning tokens such as hmm and weight etc which GRPO tends to produce and another thing that I think I've seen in
the paper is that like
SPEAKER_01they're also way shorter than like the GRPO one uh do you have any thought about like why exactly like I know that like the the just standard grpo formulation like when it's wrong it's going to be wrong for longer and stuff there's bias for that uh but why is it like that much uh more efficient shorter
SPEAKER_00Yeah, it's a great question. I think it touches on what we discussed earlier, namely that in hindsight, when you kind of critique how you would have solved the problem, you often think, okay, I could have shortened Mahdid yacine Okay,
here this was like a circular reasoning loop that wasn't unnecessary and it's
SPEAKER_00penalizing the policy for that. At the same time though, I think it's also the case that this points to a particular problem in GRPO, which has also been widely studied at this point, that even though, you know, I think parts of the core intuition when GRPO was first introduced and then also when the DeepSig R1 paper came out was this idea, okay, wow, we can see that our policy learns to produce longer and longer responses and has these kind of tokens and starts to actually quote unquote think.
SPEAKER_00a lot of work since then has shown that, you know, often these like not always, but sometimes these think additional think tokens, they're not necessary for good generalization. And they are kind of, I think they're surfacing this form of weak credit assignment that GRPO performs in the sense that GRPO will just upweigh things that tend to work better on average, on a very coarse average, which are then sometimes these approaches which just do think
things five times
SPEAKER_00over in the same way. and we did saw this in the paper that we got the circular reasoning in GRPO even explicit circular reasoning where GRPO or the model trained with GRPO would say I am running in circles or things like that maybe one which we don't have to go in that much detail because we already covered it at this point which I wanted to mention is that what we generally saw in the RL case but also in the in the cases that Eden described before where we
compared against SFX
SPEAKER_00learning from demonstrations is we saw that as you scale models, you get better in context learners and those translate to better self teachers. So better teacher signals that then lead to better student models as we train them with own policy self distillation. I mean, that's a very intuitive thing. So maybe the the one major thing which we want to cover which we're very excited about is how these methods can really uncover new data or unlock new data modalities that we can use for training and one very natural one is this idea of learning from which rich feedback so here's just one very
practical example to illustrate this where the question is how much impulse did thrusters generate for the Mars climate orbiter and let's say the model answer would be 100 pounds for
SPEAKER_00seconds And as I mentioned, in normal ROVR, the model would just receive a binary reward. And so in this case, because the answer is wrong, it would be just a negative reward. But in many cases, in many real environments, you would have some richer signal, some denser feedback loop, where the feedback would be much more informative as to what the model actually did wrong. So here in this case, that it should answer in Newton seconds. and there's many examples of this kind there's and two examples
we looked at primarily there's code environments for example which produce runtime errors failed unit tests etc and there's real user conversations and I want to focus maybe on the real user conversations so one really nice experiment this was led by Thomas can we learn from raw user conversations in the wild and can they actually improve models? And what we did here is we took 14,000 real-world user
conversations from a dataset called wildchat which was produced some years back by Allen AI and then what we did is we did kind of the natural thing which we discussed we split this into triplets where each triplet consists of the prompt or the history of the conversation up to that point then the model response and then the follow-up user response which would indicate maybe what was an issue a possible issue with the previous assistance
SPEAKER_00response and we would train with on that with on policy self-distillation and so what we then did is then we evaluated the trained model on a diverse suite of benchmarks so for alignment for instruction following for reasoning for creative writing and also for knowledge here with MMLU Pro and what we saw here is that on several of these benchmarks and here particularly for alignment reasoning and creative writing the model substantially improved here this is with QUEN38b but we also tried this with other models and this was very surprising to us why
SPEAKER_00Well, because this data that we trained on is in some sense free data, as Idan also mentioned before. This is data which we just get through deploying our model and letting it interact with users. It's not the user conversation. And of course, the big companies that perform a lot of inference yacine
explicit rewards just by raw interaction with the environment and receiving textual feedback. So this is like one example of how you can learn from this raw feedback from
SPEAKER_00humans, but it's like a cross population of humans, right? So it's still a typical post-training objective. The one last thing which we wanted to discuss here in these slides is how can we use on-policy self-distillation for a really quote unquote continual learning system that is deployed in the wild. And I'm going to give a few examples of what does that even mean and how could such a system look like. So one early example that we started looking at was how can we
discover solutions
SPEAKER_00to very hard problems. So we didn't want to go with super hard problems. So what we did is we took problems from coding tasks from LiveCodeBench that the model was not able to solve across a lot of attempts. And then what we were interested in is how quickly would the model discover the solution to that task? And how we quantified that was through this discovery at K. metric. So this is just the probability of solving a task within k environment interactions, right? So this is what I'm going to plot here. And the tasks we considered here were really hard tasks.
SPEAKER_00So these were tasks where the pass at 64 was less than 3%, meaning that if you were to 100 times each time sample 64 solutions, only in three of these 100 cases, the model would actually have sampled any correct solution in these 64 attempts. and then the simplest baseline is what's typically called best of k which just repeatedly samples solutions from the base model and we wait until it has found a solution and so actually for best of k this discovery at k
metric is the same as
SPEAKER_00pass at k because here there's no sequentiality it's just repeated sampling and in some sense the best of k baseline here is what would correspond to if you were to try to run something like GRPO here right because GRPO does not have a learning signal any learning signal until you get the first solution and of course the feedback from the environment here would just be runtime errors and code unit tests and so what we saw is that in on these hard tasks running self distillation got a significant speed up over best of k and also in
SPEAKER_00and another baseline, which is just a multi-turn baseline, which keeps all of the conversation history with the environment in context until it runs out of context and then has a first in first out queue. And so what this told us, this experiment, is that self distillation can really learn to solve hard tasks even before it ever solved the task right just by the teacher providing directionally accurate feedback that points towards how to solve the task and this was really one of the first ways in which we applied self distillation online in a continual way
when given one particular task and so based on this people took this way further and this is super
SPEAKER_00exciting so I think very shortly after we put out this paper Someone on Twitter had this idea of continual code. So like cloud code, but running a local model. And that model is actually learning as you go. It's not just saving things in context or scaffolding. It's actually updating the model parameters. so here you have a gif running and basically as he interacts with the model whenever the model does something that they don't want the model does some update
so here it's it's thinking and then he will reject the edit and he will say that he
SPEAKER_00wants the helper to be minimal and some other instruction. And then the model would actually do a training step. So it was a first sketch of an idea of like a continual learning system that actually updates weights as you interact with it naturally. And then I think over the last few weeks, this has been picked up by a library called OpenClawRL which is running on policy self-distillation under the hood but is extending this way beyond just coding agents but putting this into OpenClaw so having your agent interact with whatever tools you
give it access to and then having the agent actually learn over time in an asynchronous fashion. And so that's all these things we're super excited by because these really point to a future where you have a model that learns online as you are interacting with it.
SPEAKER_00And so this was kind of an overview of that. Just one more mention is that while there have been the three papers that Edan and Thomas and I have been leading, there's also been a lot of other really cool research that has come out and here's just a few papers all research that has come out in the last month or so so yeah that's all and thanks a lot I'll also add one thing that both SDFT and SDPO the two
SPEAKER_02versions of the self-distillation algorithms are available with TRL. In the last week, Hug and Face people merge implementation in their code base. So, you know, it's make it much easier for everyone to play with these ideas.
SPEAKER_01Thanks a lot for the presentation you asked. There's Shannon Sands from New Research. I want to know like, okay, like this is what you guys have been working on. What are you guys working on now in this direction? Can you share a bit with this? For me one of the kind of like there are two things that remain to do at least in my eyes in this field one is just scaling up and that kind of hard to do in the academia and we hope that you know various frontier labs will just take this idea
SPEAKER_02and scale them The other one is which is more of like not in the scale up but more in the last example that Jonas gave where like you have one user interact with one agent and you want to improve from this conversation is on the opposite side is about sample efficiency where you don't have scale you just have one user providing a few points of feedback and the question is how can you learn from that and like in context learning can learn from that like we know that put even one sentence you know into the context and it
will change the model
SPEAKER_02behavior quite well But self-distillation, although it's able to propagate the same kind of behavior change, it's still limited by the fact that it's doing gradient descent, basically. And we know that gradient descent only takes a small push the model a bit at a time that's inert in the algorithm. So currently we're looking into ways to make the supervision even denser. to make the update such that even with a single point of environment feedback you can change the model quite a lot without forgetting so you know
an extreme case would be that if the user say never use the word the letter F that's it the model
SPEAKER_02will stop using the letter F is one update to the weights that's kind of for me that's the dream of course this is like a silly example but like you know kind of the same way that I don't need to tell you things thousand times in order for you to learn the concept I want models not to be needed to tell thousand times in order to learn content so this is kind of like what excites me these days and we have some ideas that hopefully in the next months or so we'll share about how to do it
SPEAKER_00Yeah, same here. So I do think this is maybe the central, at least one of the very central immediate kind of questions. And I think this is one, like this question of can we have a learning paradigm that can actually do parameter updates, but be as learning efficient or as sample efficient as humans are, right? This is like a big... and has been a big goal of the field. And I do believe that, right? So I think part of the magic of in-context learning has been
that in-context
SPEAKER_00learning is somehow that, right? It is somehow extremely sample efficient. And I think that's what has been so exciting about it and also so useful about it. But also, as we mentioned, it's inherently transient. So the question is, can we do lasting learning? but in the same sample efficiency as say in context learning or humans is a very appealing question. And I do think like there's a lot of promise there. And then of course there's other things like also the thing
which I sketched out earlier a bit was this question of how can a model elicit the or like find the
SPEAKER_00right feedback or seek out the right feedback from its environment.
SPEAKER_01There was a question from Jasper Lou from Figma. He's asked, like, has there been any work exploring this in a more subjective feedback space where, like, the feedback is, like, not necessarily, like, hard feedback. you showed that with the wild chat but like is there any hope when the feedback is not clear at all like when the model needs to kind of interpret it or like generate its own feedback
SPEAKER_00I think yes. There has been several things which we looked at. So one in terms of subjective feedback, something which I didn't mention or which we didn't mention in the presentation was part of what Thomas also looked at was personalization to user preferences. So as opposed to the wild chat example where we just did general alignment to a large population. The question of, okay, if you interact with the user and the user exhibits certain preferences, like I don't want emojis or I don't like sycophancy,
SPEAKER_00right? or I want short responses. The user, like the model is able to pick this up through on policy self-distillation. And so that is like a subjective type of feedback. And then in terms of an imperfect type of feedback, I think that's more what we try to look at in the context of this solving hard tasks in life code bands thing where the feedback is inherently incomplete. Like it may be directionally right, but if you just see a runtime error, it doesn't tell you yet how to solve the problem.
and it might constrain your solution space in some way but it doesn't leak the answer and i think both are important and there's lots of cool other things we can do i'll add that in cases where the feedback is not like very clear where like one need to reason and extract you know kind of what is the actual change that needed to be done a very cool idea that one can do and we didn't like had time for it but i'm sure it will work and i hope someone will take up on that is just to let the
SPEAKER_02model reason a bit you know give it the context and just before you get to the part where there is a new answer that you do self distillation over give it the opportunity to do some chain of thought understand a bit what is the thing you need to take out of this additional information yeah and I'm sure it will work I'm sure it will improve things and again I'm sure we'll also see a paper doing that in the next few months someone would take up on that this is good and also like I don't like the the quality aspect
of the demonstration and like what's your thought on that like it and let's say you had like a hundred
SPEAKER_01okay like not high signal feedback versus like 10 very excellent one. I know like the model like like to have multiple exemplar and then like iterate on that. Which in the current paradigm of self distillation, which will it prefer here? Like the high quality one or like the repeated feedback ones? At least I think from the experiment I did that like the more the hundred,
SPEAKER_02you know, more examples, but like medium quality. will give you better performance eventually as long as there is some signal that you can extract even just telling the model you know here's some feedback think again about what you did give me a better answer will push you forward um and but i'll say that this is not really about the objective it's just because as we mentioned gradient descent learning likes a lot of example likes coverage it's help for generalization help for wider minimas stuff like that
so you have to do a lot with the optimizer that we use yeah i would say i would i would agree with that i think it's it becomes a little bit of a of a subtle question when you consider that the feedback that you get or that your student gets it it need not necessarily come from new data that you attain from your environment
SPEAKER_00so for example in edun setting when you have expert demonstrations you could like solutions like ground truth solutions which may be very detailed you could have your model sequentially generate attempts train with the feedback then generate attempts again right which may be a bit better but not fully solved it yet and then get feedback again and so these are these are examples i think where right now you would still prefer to get feedback like a lot of times right but the
SPEAKER_00feedback does not require in that context another data point
SPEAKER_01True, true. It reminds me of how I was learning, I don't know, verifiable elements like math or physics. I had this kind of red, green, yellow method where I would just try the exercise and if I completely messed it up, I would put the red there, but I would still look at the answer and try to figure my way out, right? and I'll just move on and if like I kind of didn't get it right
but like I knew exactly why I put the yellow there but then all the green ones that I got first try I never do them again like I got them so what's the point right but then I just do iterative passes on like yet under the yellows and then iterative passes on the red
SPEAKER_01and I still got like good learning signal out of it. And at some point there's like the three last one that are so kind of all messed up. And in this specific case, I know that like I need to get better feedback. So then that one get a better feedback from the teacher or whatever. but I feel like it's the kind of same situation where like you have multiple I got multiple exemplar of the same stuff right but with different understanding right and one while you go through like the the rest of the training data set and then you come back to those that you messed up you're not gonna like
it with the feedback will be different because you're gonna do it a bit differently you can learn something in this specific exercise that will help you in those that you're
SPEAKER_01struggling I feel it's like a similar kind of vibe on the on the on this and it also reminded
SPEAKER_00me of how I how I studied for exams
SPEAKER_01And last question. Oh, I want you to think hard here. Like, do you think there is a setting where like self distillation will be kind of strictly poor than like the standard oil VRO GRPO? Like, do you think that there's a setting here that like self distillation will struggle compared to GRPO?
SPEAKER_02One setting that is kind of obvious is when you have weak models, right? If you're trying to improve a 350 million parameter model with a very weak in context learning capabilities, it will not work the best. I'll say that like, um, we tried, um, here in MIT to apply self distillation to robotics, to vision language action models, VLAs, and it just doesn't work. Like this model does not have in context learning capabilities strong enough. um to actually learn while you know jobio even simple reinforce
can improve this models quite a lot so that i'll say that the obvious uh answer um more than that i can say that there are cases where i don't know if it will do poor but it just not
SPEAKER_02really needed if you just want to kind of sharpen the distribution you know, like whatever you want to learn is already kind of like inside your distribution, you get, let's say, always like around 50, 60% success rate. And you just want to push the 50 to the 100 on this, you know, inside the group, like you sample a group for a prompt, you get out of like, you know, you're like, however many like responses you get most of them correct. And you just want to make sure that you don't let's make sure
all of them will be correct. then self-distillation is not really like maybe it will work but i'll not say like avoid the complication you know right pure grpo um because then there is nothing to gain from like you know some external knowledge additional knowledge like really good credit assignments stuff like that that were self-distillation really shines
SPEAKER_02to not help you that's not what you need
SPEAKER_00Yeah, maybe to pick up on that point, I think like normally in RL, like there's this trade-off between methods that are unbiased, but exhibit a lot of variance and methods that are maybe biased, but have much smaller variance. And in many ways you can think, self distillation in that lineage of kind of a method that may be a bit biased depending on how good your models and context learning ability
is etc but which has much less variance in its update signal that of course is a trade-off right and I
SPEAKER_00think It depends often on which one is better. It depends on whether you're compute bound, whether you're data bound. It depends on how much compute you have available in total. And so right now, as Eden said, if you have a large pipeline and you have unlimited compute and you have your data environment set up that give you like 50% success rate in every group, you should run an unbiased method probably and that will be
tends to be more stable
SPEAKER_00right long term I don't it's very hard to predict what will happen
SPEAKER_01That makes a lot of sense.
SPEAKER_00But yeah, I think that the things which like we're or I personally at least I can say that I'm most excited about are the settings where there isn't even a method that can learn from that type of data effectively.
SPEAKER_01So could you give an example?
SPEAKER_00Yeah, for example, learning from user conversations or like learning in this kind of online fashion in like Open Claw RL where you just interact with your environment and your environment returns you whatever and yeah. Because then you increase massively the amount of data that you can shove into the
SPEAKER_01model and still make it learn in a stable fashion. And if there were one thing that we learned over the past two decades in deep
SPEAKER_02learning, that's all about scale. Find ways to shove more and more data into your model. cool fantastic guys like this was absolutely awesome really thankful for you to have taken the time to come and answer all of these questions and that's it for today folks if you're interested in diving more into this whole method of self distillation check out the links in the description I try to put as much paper that are relevant as possible and if you have any questions don't hesitate to shoot them
should you do a PhD? should you leave your software engineering job for grad school? how do you get into AI research coming from industry?I get these questions all the time, so I sat down with Andrew Drozdov, senior...
most robot datasets give the robot one instruction for a whole episode, like “clean the table”, and then a few minutes of motion. the model has to figure out by itself where one step ends and the next begins which is...
there is this kind of renaissance in robotics / physical ai at the moment and it's very stimulating.things finally just work ™️I had the pleasure of chatting with two experts from HuggingFace immersed in this...
it’s very interesting to see where next-token transformers still fall short (like the path-star graph problems) while crushing problems that look even more daunting.I had the pleasure of chatting with jayden teoh from...
RLM + continual harness + multi-agent communication is what compose the prime agent harness developed by prime intellect which now sits at a gazillion stars on github (22.3K).I was kind of already mesmerized by the idea...