Skip to content
PodSubs
ShowsPeopleGuestsJobsNewsEvents
More
BlogPodCred
Menu
ShowsPeopleGuestsJobsNewsEventsBlogPodCredNetworksSign in
Join nowSign in
  • Shows
  • People
  • Jobs
  • News
  • More
    • Guests
    • Events
    • Blog
    • PodCred
    • Networks
    Join nowSign in

RoboPapers

RoboPapers artwork

Ep#33: A Smooth Sea Never Made a Skilled SAILOR: Robust Imitation via Learning to Search

Sep 26, 20251 hr 22 minAudio
ShareXLinkedInFacebookWhatsAppEmail

Learning policies via imitation is extremely potent, but making sure those policies will generalize to out of distribution settings is still very hard. SAILOR proposes a solution in learning to search via a learned world model, which outperforms existing imitation approaches. Gokul, Vibhakar, and Arnav tell us about their approach. Watch Episode #33 of RoboPapers, co-hosted by Michael Cho and Chris Paxton, now! Abstract: The fundamental limitation of the behavioral cloning (BC) approach to imitation learning is that it only teaches an agent what the expert did at states the expert visited. This means that when a BC agent makes a mistake which takes them out of the support of the demonstrations, they often don’t know how to recover from it. In this sense, BC is akin to giving the agent the fish -- giving them dense supervision across a narrow set of states -- rather than teaching them to fish: to be able to reason independently about achieving the expert’s outcome even when faced with unseen situations at test-time. In response, we explore learning to search (L2S) from expert demonstrations, i.e. learning the components required to, at test time, plan to match expert outcomes, even after making a mistake. These include (1) a world model and (2) a reward model. We carefully ablate the set of algorithmic and design decisions required to combine these and other components for stable and sample/interaction-efficient learning of recovery behavior without additional human corrections. Across a dozen visual manipulation tasks from three benchmarks, our approach SAILOR consistently out-performs state-of-the-art Diffusion Policies trained via BC on the same data. Furthermore, scaling up the amount of demonstrations used for BC by 5-10 still leaves a performance gap. We find that SAILOR can identify nuanced failures and is robust to reward hacking. Our code is available at this https URL. Project Page Github ArXiV This is a public episode. If you would like to discuss this with other subscribers or get access to bonus episodes, visit robopapers.substack.com

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_02All right, guys, welcome to another episode of RoboPapers. Super glad today to have Ana, Vip, and Goku. They are authors of this paper called A Smooth Sea Never Made a Skilled Sailor, A Robust Imitation via Learning to Search. Thank you so much for making the time, guys. Maybe, you know, as a start, you guys can go around and share a little bit about yourself. Maybe, Goku, you guys...

SPEAKER_03Oh, yeah, sure. My name is Gokul. I am a last year PT student at the Robotics Institute at Carnegie Mellon. Yeah, it's been a lot of fun working on this stuff.

SPEAKER_02All right, cool.

SPEAKER_01And I'm Vipakar. And I recently graduated from Carnegie Mellon with a master's in robotics. And I've been working in the AV industry for the past year and happy to be on this podcast. Yeah.

SPEAKER_00I'm Arunif. I'm based in Montreal in Canada. I'm a PhD student at Belal. And before this, I spent a few years at Microsoft. And before that, I did a master's and bachelor's in mathematics. Awesome.

SPEAKER_02Yeah. All right. Thank you for the quick intro. So if one of you can shout sharing screen and then we can just go dive straight in.

SPEAKER_00OK, so thanks for having us here. I'll first, like, give a brief overview of our method, Sailor, in the paper titled, A Spoozie NeverMailer Skilled Sailor. This was a joint collaboration between Mela, CMU, and Conan. Me, Webb, and Google are here in the presentation. So right now, it's an exciting time for robotics in the world. If you see around a lot of demonstrations, a lot of videos made by Pi or even Gemini, Google team and all, you see they are able to like quite complex manipulation tasks.

SPEAKER_00And if you think, if you ask, what drives that frontier of imitation learning for robotics today? It is actually, it can be broken down into two things. The first is, you have to collect a lot of data. There has to be a lot of demonstrations collected maybe using teleoperation, or you have a human in the loop actually giving you the data set. And the second thing is, you need very powerful models. In the recent era, it has been about using diffusion policies, which takes an observation and

SPEAKER_00Based on the observation, there is an encoder that is used to encode high-dimensional things like images and preceptive states. And the goal is to predict a set of actions. For example, if you see on the right-hand side here, the agent takes this observation on the left and predicts a chunk of action for one second or two seconds, which is denoted by a blue line. This has been pretty successful in most of the developments in robotics in recent times, and we see a lot of things coming out by different companies. But is that it? Is this the answer to everything that just collect a lot of

demonstrations and do

SPEAKER_00behavior cloning with a very powerful policy? Let's take a step back and think about what happened with Ellipse. So we had a lot of long pre-training done with a large text corpus where the goal was to predict the next token. And it was not enough. We had to do some form of RL and test time scaling after to make it much better at the tasks that we care about, like math or coding and all. So even in the context of LLMs, doing behavior cloning was not enough. LLMs are a deterministic system in general, whereas robotics are a much harder problem to solve because

there is embodiment,

SPEAKER_00there is stochasticity. and other factors. There's environment and it's also about safety. So it becomes a much harder problem to do it for robotics. So one of the question is, what should we do to actually go beyond behavior cloning? And what if To answer this, another thing is, what if we just have the same set of demos that we collected so far and have no extra or more human interaction? And how could we teach the agent to recover from mistakes?

SPEAKER_00So for this, this led to the idea called Sailor. And Sailor stands for Searching Across Imagine Latents Online for Recovery. And I'll give a brief overview of the algorithm. Now, as a first step, we collect a bunch of demonstrations. And on the demonstrations, we contain a policy based on behavior cloning. And this work, we use the diffusion policy. Now, after training the diffusion policy, if I just directly deployed a diffusion policy, you can see the set of actions by the purple dots. It actually won't pick up the object. It makes some mistakes.

SPEAKER_00at test time. And this can often happen if the agent goes out of distribution. That means that it goes to a state it has not seen before, and it does not do what to do there, which is why mistakes happen. And there's no way like a behavior cloning or a model strain or diffusion policies can fix this directly. As you can see, the agent doesn't pick up the object. So instead we propose, you take this base actions that was generated by TBR, the diffusion policy, and you have a pre-trained world model, you can actually do a local search in latent space of the world

model to predict

SPEAKER_00the set of residuals. And doing this local search gives you some set of actions to correct the actions generated by the base policy, which we also call the base actions. And when actually you deploy this, the corrected actions when deployed in the environment was able to pick up the object, which means Sailor was with a learned reward model and a world model. was able to refine the base actions with residual actions in a way that it was able to avoid failure. And while training, you can do this additional step called distillation,

SPEAKER_00where after doing the re-planning thing, you can always improve your base policy with that and keep doing this loop. I'll jump into this in more detail now. So overall, inside the tech, there are four components. the first as i said is the base policy which is trained with the expert demonstrations uh and the second is the world model and the third is the reward model and then we have the plan now let's look into this one by one so the goal of the base policy as mentioned earlier is to propose base actions so In order to plan successfully, we need two things.

We need a world model that can actually tell you given a set of actions where the

SPEAKER_00agent will end in. And we need a reward model that can evaluate the set of actions. And then combining the world model and the reward model, we can fit this into a planning process that search for the best future outcomes using these two components. So the first component is the base policy. So for base policy, we directly use the diffusion policy, and it just gives us a chunk of actions for an observation. And this is trained with behavior cloning loss over the set of export demonstrations that we collect at the start. Note that the expert demonstrations, once we have received at the start of training,

SPEAKER_00is always fixed. We do not add any extra human data after training. We use diffusion policy in this work, but of course this can be extended with like a VLA or even more powerful models that come out. And why diffusion policy, someone would ask, because robotic data in a way is many a times like multimodal. And deficient process is able to capture this pretty well and has been successful at a wide range of real-world tasks, which is why we experimented with deficient policy in this work. The second component is the world model, right?

Because once you have a sequence of actions and you want to look for maybe an

SPEAKER_00improved sequence of actions, given a candidate set of actions, you cannot do planning in the real world because the world is often dangerous and unsafe. And you can't and just go around and try everything out you want. And this was the motivation behind using the world model that allows the agent in this world to predict the consequence of a set of actions. Now, one thing I would like to note here is for the world model training, we did hybrid training, where we trained the world model on both the mixture of export demonstrations and the on-policy rollouts.

SPEAKER_00We would like to highlight that this was important. Because you want the world model to be good at both on export-resisted states and the on-policy data to be good at planning. And in this work, we, of course, train the dreamer world model from scratch. But of course, the model is not limited to just this world model because we propose a framework. It can use any other form of world model like TDNPC, foundational world model, train on a lot of data. And as we saw today, maybe Gini3 can be used instead too.

SPEAKER_02Yeah. Yeah. I was just going to say this is just updated today, probably.

SPEAKER_00Yeah.

SPEAKER_02Very cool.

SPEAKER_00Okay. So the first part is you train the world model. And why use a Dreamer world model in this work? So you train the world model. What Dreamer does is it allows planning in the latent space, which is pretty important because we want to do MPPI. And because you are generating a bunch of actions and you want to evaluate everything together, planning in the latent space allows you to fit everything on a single GPU. It's very memory efficient and fast. It doesn't lead to a lot of latency in general.

SPEAKER_00That's why we used the Tremor world model. Another reason was its success in visual tasks in general on Atari and even on robotics as shown in D3. The third component is the reward model. Because we are doing learning from demonstrations, we don't have the ground-tooth reward function or the successful or the failure cases or the... or the condition on the rollouts that the model generates. So we need a way to evaluate how good the state's visited by the agent is in general for planning. And for this, we propose training a reward model as it was done in the

movement matching paper, where you try to maximize the divergence between the state visited by the export

SPEAKER_00and the state visited by the agent. And as I said earlier, it's just like a classifier that actually tells if the state belongs to the export or the likeliness of the state visited by the export. Now, we train this reward model on the latent space of the world model. And because of this, it allowed for efficient evaluation again during planning, because we were doing rollouts within the world model. And now, because we can just use the latents to get the reward outputs. Now, also, because in planning,

we have this thing of we can only plan to some horizon edge.

SPEAKER_00So to account for anything after that, the states visited or after each states, we also train a critic network, which is trained to predict the expected rewards beyond the horizon. So to summarize, for the base policy, we have a deficient policy which generates some chunk of key actions. We have a world model, which given a set of actions can predict the outcomes or the states that the agent will visit in the future. And we have a reward model, which predicts the export likeliness of the future outcome. That is,

it evaluates if this set of actions taken by the agent or the candidate set of

SPEAKER_00actions are good or bad. And then we use these three components within the planner, but the goal of the planner is to generate a set of residual actions on top of this base actions. It like optimizes this like... optimization problem as shown below where you want to account for the end step returns and find the best residual action plan that maximizes this within the world model. So putting it all together, the first is we get a current observation using the base policy. We actually get the base action plan.

SPEAKER_00Now this with a set of sample actions coming from the MPPI planner, gets feeded to the world model. Now, the world model and the reward model helps you evaluate each of the N action plans for that year. You can get the Q values of those. And now you select top K, which is we select around top 10% of those actions, and then update the parameters of the MPPI, that is the mean and the standard deviation, and do a re-planning for K iterations. And after the last situation, we just select sample one of the actions and then execute one

action or a few

SPEAKER_00actions in the environment, and then we plan again. So this was the inference pipeline, but there were three important phases of training that went into training this C-worthy algorithm. The first is the warm start. Now, once we have trained the diffusion policy, we do a long set of generation of rollouts from this base policy in the environment. Now, as I mentioned earlier, we train the world model from scratch, but this lot of long, a lot of data set collected from the base policy in the environment and the expert demonstrations, we actually train the world model and the reward model for a

warm start process.

SPEAKER_00The second is once the warm start is done, We do the online fine-tuning, which is very similar to a batch online URL. That is, for a set of states in the replay buffer, we relabel them back. We relabel with the planner, we update, we distill that back to the base policy, then we collect more data, update the world model and the world model and the critic and do this like iterative tuning. Now, this makes it an export iteration framework because the defined

plans are always

SPEAKER_00like distilled back to the base policy. And I want to highlight that this was important because with training, you also want to improve the base policy from what we started with. And for the distribution, we just relabel data using the MPPI planner and do the normal behavior cloning for this. Now, the results. The first thing is, yeah, here we can see that on the left is the video of the diffusion

policy.

SPEAKER_00On the right, in the middle is the video of the Sailor agent, which was able to solve the tasks. On the right-hand side, we actually tested Sailor and both the deficient policy for a different set of expert demonstrations or different size of expert demonstrations. We see that with less number of expert demonstrations, the performance of the deficient policy is less than 30%, whereas Sailor is able to recover close to what it achieves even with 100 demonstrations. At the same time, you can see that the performance of DP increases a lot,

SPEAKER_00whereas Sealer, just by learning with the same set of expert demonstrations, not having the reward model information, and doing this form of test time planning is able to outperform diffusion policies. in some more tasks. This is the nut assembly round task, where the agent has to pick up the peg and place it in the silver thing. And we see that with 25 demonstrations, the performance of efficient policy is pretty bad. It's just like 20%. Whereas Sailor is able to reach 87% with the test time planning.

SPEAKER_00And updating them, like learning a world model, reward model, and the exploration framework.

SPEAKER_02Sorry, I have a quick question. So it seems to me that, you know, Sailor is already, you know, doing really well with very, very little data. So does that mean the world model and reward model already like captures most of what you want, like a pretty low expert demonstration? Is that what you're saying?

SPEAKER_00That's a great question. So So the thing is, yeah, you're right. So for good planning, we actually want a good world model and the reward model. Now, for training the world model, we did the hybrid training. And hybrid training was based on both the expert demonstrations and the on-policy data. And we actually, when we want to do test time planning, we actually want the agent to be good at these two things. Both the things, like maybe what the expert does and also like where the policy visits. And we want the reward model to be well-differentiated on those things.

SPEAKER_00Now, because... Once we have that, we can just do the planning with states visited by the agent. We can generate the actions from the base policy and do the test and planning and improve with the residual actions.

SPEAKER_03Um, yeah. And I guess maybe like to build off of the saying there, like, I think for a lot of problems, right. Um, learning a good reward model takes a lot less data than you might expect. Right. And sometimes I just have to like verify rather than generate. So it should take kind of less data to learn. Um, so I think that maybe like the kind of underlying kind of math reason for a lot of the kind of stuff here and in some of the other results, I guess it's just that like, you shouldn't need less data. Uh, if you just have to learn, like if something's good or bad versus how to do the whole thing in the first place.

SPEAKER_02Got it. I saw other people the generation verifier gap thing. Maybe that's what we're talking about. But how about the world model? I would imagine maybe the world model takes a lot more to build a decent world model. Is it not? I mean, you mentioned Genie. Genie 3 set up. So, like, how much does a good world model you think help with just having, like, let's say maybe lock out the part with just a couple of demonstrations? Yeah. yeah it it's a good question right um i guess maybe i would think that like you

probably want like you know some like kind of base knowledge of like the way the world works or like physics or things like this right one hopes that you know if you want to train this from scratch maybe pre-training gives you a bunch of that

SPEAKER_03right then maybe for um like uh the sort of fine-tuning process, you might want to actually make sure you kind of, like, aren't ever saying you both can do, kind of predict what happens when you do the right thing, aka what the expert did, and predict that the kind of wrong thing happens when you do what the learner did, if it was, like, a mistake. Something like this, right? So I don't think it should require, like, sort of a crazy amount of data to do that, right? I think if you have some sort of, like, kind of good set of, like, base knowledge of physics, it shouldn't require too much fine-tuning.

I think the other thing that's true is that like trading a world model is just sort

SPEAKER_03of supervised learning, right? So I can kind of just shovel whatever data I have into this world model generally, right? So like I can put in, I don't know, suboptimal data if I screw up and I'm demonstrating things, or maybe I have a multitask data or play data and I can kind of shovel that in, right? So I guess I think of them as almost like a sponge that can take a lot of data. So yes, I think in general, they do require data. But I feel like given it's data that's relatively easy to get, unlike perfect expert demonstrations, I feel like it's not the worst thing in the world, you know?

Well, that does depend a little bit on how granular the problem is, right?

SPEAKER_03Like, you still have to get into the interesting, it has the same interesting exploration problems that you would get with your rollouts, right? Like, what if I want to do, like, screwing a bolt on, right? I'm not going to get all the little variations there, maybe? Or that might be, one could argue, that would be an equally comparative difficult problem. What do you think? I see. Yeah, do you want to take it?

SPEAKER_01Yeah. So I think one thing to note here is these world models are like task specific. So that is the reason why you see them being trained by less amounts of data than something like Genie 3. But like, as you said, if you want to actually get into like fine grained stuff, you need like a much more powerful world model. And Luckily we have a lot of world models available online which are pre-trained on tons and tons of data. So what you would expect is you take any of the pre-trained

world models and then you fine-tune it for like a set of tasks and we expect it to kind of generalize in

SPEAKER_01terms of physics and also in terms of like contact and Yeah, if the pre-trained world model is not good, then it won't be able to do it and we would need demonstrations showing how the physics of screwing something works. But in general, if we have good pre-training, we should be fine.

SPEAKER_00I would like to add one more thing here. Yeah, so for world models, as you said, if you want to do more granular tasks of putting the report on and on, once the policy fails around that state, and then you will collect more data using the on-policy rollouts. So around that region, you are going to improve the world model in the batch online learning. And maybe if you have trained a reward model that actually, like, differentiates between what is a good action and what is a bad action, like, what would lead to, like, fitting it perfectly or messing it up,

SPEAKER_00you can actually, like, even if the policy goes there again, you would be able to differentiate which action to take. And in a way, like, you can improve with that. So the world model has to be also, like, locally good on, like, what the policy visits and the export visits.

SPEAKER_03Yeah, like maybe to summarize both of them in Arnav's points, it's like either you have to get it in the free training, right? Or you have to get it in the online fine tuning, right? Maybe there's like no free lunch other than those two. I guess you hope you get as much as you can in the free training. And then for the rest, you know, you kind of have to online see what happens. Yeah, it makes sense. How much data did you end up, once you add in the data from the online training, like how much data do you end up using to train a policy with Sailor?

SPEAKER_01Yeah, so I think that depends a lot on the task. For like very easy tasks, a door is like a very easy task where you just have to open the door. I think we had like around 100 to 150 total demonstrations. for like opening the door and for harder task where you saw like two pick and place. So I think there we needed more in the order of 200 to 300 like rollouts of the model to complete the training.

SPEAKER_03Yeah, makes sense.

SPEAKER_01So Arnav, you want to go ahead with the presentation? Yeah, also just feel free to just like ask us more questions, you know, like...

SPEAKER_03Yeah, sure. OK, one other question on that line. OK, so you have 200 or 300 demos. Did you try just taking the top 10% of those demos and training diffusion policy on it? Does that end up being better or worse? I assume worse.

SPEAKER_00So one other thing is, so for RoboMimic tasks, all the demonstrations that I collected, which was in the dataset, was already pretty good. And we actually checked a few of them. It was of good quality. And it was hard to segregate which demo is good and bad. For the other tasks that we have in the paper, like from RoboSuite and the ManiSkill, we actually collected our own demos and ensured that each demo is actually good. And we just already discarded all the demonstrations, which was maybe pretty long or had some issues.

So we actually ensured the demonstrations are of good quality from the start.

SPEAKER_01Yeah. Also to add on to that, I think you mentioned like if you train in the 200 to 300 demos, just the top K. So we actually don't have action labels for those because it's just like rollouts of the policy. And we don't have access to any export to relabel failed trajectories. And we don't even have a notion of success of those trajectories. So we can't train on the data that we collect on policy directly, like for behavior learning.

SPEAKER_03Okay. Very nice. Yeah. Yeah, I think, right, exactly what I'm saying, right? It's like... given we don't have, like, a reward function, right? Kind of like, how do you pick the top 10%, right? That said, I guess, I think maybe a different way of thinking about your question is like, okay, let's say I just did a bajillion rollouts. I, like, scored them all with the reward model and I got, like, some set of things. Can I basically then just, like, pick the best of them and, like, you know, train the policy on that, right? I think that maybe gets into some sort of, like, deeper questions about, like, you know, what is the value of test time planning versus, like, learning a policy and stuff like that,

SPEAKER_03which, like, you know, yeah, we're happy to talk about that. But, like, I think... Yeah, it's a good question. Yeah, sure it is. Okay. Arnold, you want to keep flipping through slides?

SPEAKER_00Yeah. So, yeah. So in the task of Do, it was pretty interesting that we were able to solve the task with only a single demonstration, where a diffusion policy is just less than, even less than 10%. And the sailor was able to, like, successfully solve the task with just online interactions. And there are, like, more tasks, like PokeCube, which was another task of ManiSkill, where also, like... But increasing the demonstrations for diffusion policy, it shows improvement, but Sailor is able to like consistently perform even with like less data.

SPEAKER_00Now, this is one of the coolest resolutions.

SPEAKER_03This is also my favorite part.

SPEAKER_00Yeah. Yeah. This is our favorite part from the paper. So we talked about like learning a reward model because we don't have access to the groundwork information or if we collect on policy data, we don't know if it was successful or a failed trajectory. And we want the model to recover from that. So we wanted to also see like what is actually, why, how is this learned reward model helping at this time? So as you can see here in this, in the first phase, we actually like deployed the diffusion policy. We use the reward model that was trained for the sealer agent and actually plot

this down for the diffusion policy with respect to time as the agent moves. So this is on the y-axis is the value that was obtained by the reward model.

SPEAKER_00for the deficient policy. Now, as you can see, deficient policy fails because of many reasons, like going to OD states and all. It missed hanging the peg. Now, what we did, we actually reset the policy to one of these states where the deficient policy was getting stuck and all. And we just rolled out the sale origin from there. And we could see that with test time planning on the same deficient policy, it was able to solve the tasks. successfully. And also this is visible within the reward model that the state

that was visited

SPEAKER_00was like ranked high under the reward model. So in this, like we show two things. The first thing is like sailor was able to recover from the mistakes with test time planning that the behavior cloning or the diffusion policy makes. At the same time, it shows that the reward model is learning something meaningful here. It is able to differentiate between the failed trajectories and the successful trajectories, which is what we expect to learn. Yeah.

SPEAKER_02I'm sorry. Sorry. Yeah, go ahead. Yeah, I was going to ask a question, but yeah, you go ahead first.

SPEAKER_01I wanted to add another point to the previous slide. So one interesting observation you could see if you could go to the previous slide is like... When you see the expert reward model, sorry, the Sailor reward model, you see two peaks and those are actually the two crucial points of doing this task, which are just learned using the demos. So the first one is actually picking up the thing and the second one is actually inserting it into the circular thing. So you see that just by learning a reward model, you are able to

point out these two crucial uh parts of the rollout yeah i i was actually gonna ask the the opposite side of the question i was curious about you know when the the reward model like gets a very low score let's say i don't know whether you can just pause that video like where um i mean i mean it's a reverse true meaning when uh

SPEAKER_02let's see what you have

SPEAKER_00I think it should be somewhere around it. Yeah. I think what's happening here is it's going out of the camera frame where it's

SPEAKER_03going kind of out of a lot of things we saw in the demos. So it's like, this is bad, right? So I think it's maybe doing just like, this is an OOD state more than like something super deep in that sense. Okay, got it. I see, I see. Makes sense.

SPEAKER_02Because I was wondering whether we can use it the other way and say, hey, maybe you call in sailor like more or you use the sample more whenever your RM, you know, give you a really low value. But I wonder whether that could be, it could be used that way or maybe this is just, maybe the way to solve the problem is to, is to, go away from a minimal, I mean, local minima and then come back and this is how we solve it, you know?

SPEAKER_03It's a good question, yeah. Like, I guess you could, I guess like in some sense, right? Like, I think we're doing kind of, it's like a fixed amount of planning, like every state and every place we end up, right? But I could imagine something that you suggest would be really useful for maybe like, like a more adaptive allocation of compute. So I could imagine that you like, you say like, okay, maybe the base policies score under the RM is like really not good. But maybe we basically want to keep sampling and keep running MPPI until we basically get a higher score on it, right? And that could be like a nice way to sort of only use as much compute as you need i think it might be hard

to get like super detailed values from these from these uh word models about like maybe this exact threshold corresponds to good or bad um i think you might need to structure a little bit more for that to happen but i feel like at a high level i could imagine that sort of thing is useful for like figuring out essentially how much to plan in

SPEAKER_03some sense

SPEAKER_02And anyway, the way this rework model is learned right now, just kind of like a classify between, okay, this is what the human expert do, and this is probably not the human expert. That's what it's doing, right? Okay. So it also depends a fair bit of who are the human expert. I mean, you collect a sample of me playing football versus Lionel Messi. I think you learn slightly different things, you know?

SPEAKER_03Yeah. I mean, we don't know how good you are at football. Well, you know, I guess as much.

SPEAKER_02Come on. Like, yeah. Yeah, but sure. Yeah. Okay. Okay. Got it. Got it. Okay. That makes sense.

SPEAKER_03But I think that's also like an interesting point in the sense that... like beyond just maybe like classifying expert versus not expert you could imagine um maybe doing something like i don't know using like uh like a vlm as like a word model or something right and maybe that can give you sort of more like either like nuanced information about like is this the same thing roughly speaking or is this like uh meaningfully different in some way like do you like drop an object did you like pick up a fork by the wrong part of the fork something like this um so yeah i think of like uh like when you kind of want to do like

SPEAKER_03But I guess for a lot of these tasks, it was like, you know, I think just expert was not expert was enough, but I can imagine for like harder, like open world kind of things, then maybe you want to sort of have a kind of a word model that is essentially, you know, at least train a little bit to tell expert is good, other things are bad, but also has maybe some sort of common sense priors about other things that might be useful. yeah i was curious about that so so you guys are doing expert versus non-expert but like a lot of other reward learning stuff that has that has come out recently has been doing progress metrics or something something similar to that what do you think is the difference between the two as far as uh like do

you think a progress metric is less suitable for these kinds of tasks or that like requires just more arduous data data collection requirements are there advantages and disadvantages

SPEAKER_03yeah That's a good question. Like, I mean, there's like the sort of, I guess the usual limitations of progress metrics, right? Like, you know, if the task is like periodic or something, it might not work out the way you want it to. Um, but I guess, and this is like a little in the weeds, but like, I think of a progress metric as kind of more like a Q function in the sense that it kind of tells you like, kind of what will happen after this versus like, we're kind of learning like a reward functions and tells you after you did something, how good this was. Right. And, a lot of times i think like learning q functions from data is

kind of hard in the sense you sort of need more data to do it like the paper about the generation verification gaps that michael was mentioning was essentially making this point so i think that like i think if you can get enough data to do it well i think it makes sense um but i think you have to one deal with these limitations about like periodic tasks and two i think you have to also like it's not super clear to me if

SPEAKER_03you can just shovel like arbitrary data into like a progress metric thing and see it like kind of always be reasonable right like if we also put you know someone who's really bad at football playing football and we like try to use that progress metric might not do what we want right so i think it depends a little bit on the um on the details there yeah

SPEAKER_00fair That's a good answer. One other point I want to add is like, even you can train a progress metric and all, but it again, like involves maybe some form of inductive biases that are added while training that. Whereas here we are not making any such assumptions and just training to like differentiate between the expert and the on policy so that it can figure out with this classification where it makes the mistakes, like as Webb pointed out, the bumps, maybe at aligning the peg or placing it in the right position and all,

SPEAKER_00and it can just improve on that. So with this reward model, it's able to Figure out where it's currently bad at compared to the export. First, improve that and then keep on improving over time.

SPEAKER_01Yeah. To add to that, I think the regions for low reward are basically regions where the base policy always does well. So it doesn't really need to give that importance. So like here's another demonstration of the same visualization where this is like a

SPEAKER_00multi-stage tasks. You have to like pick and place two objects in order. And we see that the deficient policy again gets stuck while picking up the can, maybe because the alignment was wrong, and then it missed the pick in the end. And then we reset the agent again to start from where it failed and just deployed the Sailor agent from that point. And we actually see that with the test time planning, Sailor was able to pick the can, which led to a successful pick. And here,

SPEAKER_00again, you could see that when it pick up the object, the reward scores are pretty high. So it is able to differentiate between the failed states and the successful states that enable the test and planning. And here is another attempt at the diffusion policy, trying to pick up the peg and failing again because it's it's an OD statement, and then we reset back to one of the failure states and start deploying the sailor again. We actually see that it was able to pick up the peg in its retry.

SPEAKER_00In the reward model, again, you could see that you get a pretty high score as soon as you pick up the peg. The reward model is actually pretty powerful in differentiating between the key states or the critical states between the export and the policy. One of the, another like key observation that we made was, okay, we use the same set of, we use the demonstrations right at the start of training. And then for Sailor, we just do like on policy rollouts, update the components and do test time planning.

SPEAKER_00But what happens if we just scale up the diffusion policy data? In a way, you could actually do this because nowadays a lot of frontier labs are doing it. You just scale up your data collection, hire a lot of people to do it, and get a lot of data and train even more powerful models. So this experiment was trying to study that. If you make the data for diffusion policy by up to 5 to 10x, we could see that a diffusion policy improves for each of the three tasks showed here. However, Note that the sealer agent with the least number of demos was

able to like

SPEAKER_00outperform the deficient policy in this case. So just like scaling up the amount of data isn't enough to close this performance gap. And here is what I would like to talk about, like something very important that even though you can collect a lot of demonstrations, the agent can still go to the OD states, auto distribution states, due to like co-read shift at test time. And it doesn't know what to do in that state. Now, you could always say that, okay, while collecting the data, because I want to teach the model to recover from mistakes, right? While collecting the data, you can ask the human or the expert who is collecting the data

to make a lot of

SPEAKER_00failure cases so that you can maybe collect some instances of that. But it would require a lot of huge number of data collection and also all instances where the agent can fail, which is obviously hard to predict. So even if you collect recovery data, the agent can still make some mistakes when trained with behavior cloning. So the problem never goes away, even when you scale the data. And maybe using some sort of test time planning is pretty crucial with the learned world model and the reward model.

to make a better choice in the actions that actually saw the task successfully.

SPEAKER_02Yeah, I have two questions. So what you're showing here is that the behavioral cloning or like this just non-Sailor, like with a bit more data, it does improve, but it still can't even match Sailor with like a lot less data. But I suppose Sailor itself doesn't benefit from having more examples, does it?

SPEAKER_01I think it does. We have not plotted it here. But if you give it more examples, it's easier to learn the reward model. And it's also easier to learn a world model around the experts. So if you plot the points for Sailor, it's going to keep improving. But I don't think we have plotted it in this. But in the previous plots, you can see Sailor improving with the demonstrations. Yeah.

SPEAKER_03So the reward model is trained on the negative non-X potatoes rollouts. So have you done iterative sailor? Like run it like once and then, especially for a really long horizon task, like run it a couple times and get a new batch and then keep refining the reward model. I'm just curious as to whether or not you can continue to get to tasks that are not... Sorry, well, you can answer. I've got a reason for this. Yeah.

SPEAKER_01So...

SPEAKER_00Yeah, so the first thing, as Webb said, the sailor actually improves if we increase the number of demonstrations. And one of the reasons is that if you see the diffusion policy improves, so you're always starting with a better base policy. So if you train with the same number of interaction budget that you have, the performance goes up. The second way to improve the sailor agent is always you can increase the interaction data. And in some of the tasks, we actually saw that if we train for maybe, like, more interaction budget, the performance is still going up. We just kept the budget to,

like, some number of, like, 200K or 500K in this case.

SPEAKER_00But when we also, like, train on these tasks for 1 billion environment steps, the performance was improving on some tasks which is even close to 1. Yeah. Yeah. So, actually, go ahead, babe. Yeah.

SPEAKER_01Yeah, and you mentioned the fact about the iterative training. I think we're already doing that, where we basically deploy Sailor into the environment, collect a bunch of demos, and I think that's around 10 to 15 trajectories. And we use that and train the world model and the reward model for some steps, and then roll the Sailor again and keep doing that. So I think with the iterative framework... Okay, fair enough. Yeah.

SPEAKER_03So yeah, not getting anything else. That makes sense.

SPEAKER_01Yeah.

SPEAKER_03And I guess because the policy is already, because this is improving your base policy, it doesn't matter that the earlier parts, we get harder for the reward model to distinguish. Okay. Yeah. Makes sense. Right. Right. We always just want the, like the reward model to just be like a direction of local improvement. And that's what matters.

SPEAKER_02Yeah. I'm also curious about like how, what are some dimensions you guys can, you think can push within this paradigm so that you can get it very close to one? Yeah. Is it just a lot more compute during inference or what?

SPEAKER_03Just let it run.

SPEAKER_00Yeah, I think if you increase the number of interactions, you can actually... I think in our experiments, we saw...

SPEAKER_03It might be the next slide, actually.

SPEAKER_00There you go.

SPEAKER_02There you go. yeah so i think yeah so the first thing we can do to get the success rate to one is obviously give it more number of samples or give it more number of iterations of mppi but for some tasks as like for stack here it is not able to reach exact 1.0 and i think the limitation there is uh like the world model missed to capture some

SPEAKER_01edge cases or the reward model missed to capture some edge cases again so like to get the success rate to one you would need to give it more interaction budget that is the first thing and i think that's what we observed if you give it enough interaction budget with a sufficient number of expert demos which is uh like say uh for stack i think 15 was good enough you can see success rate going to almost one cool so to some yeah to summarize like you can

SPEAKER_00to improve the performance you can uh If you have more inference budget, as we see in Netherlands, you can generate a bunch of rollouts, evaluate more things for a best of n or any metric, and then pick the one. So here in this plot, we actually show this thing that if you increase the number of samples, because in MPPR, you're generating a bunch of samples to evaluate. If you increase the number of samples, whereas x-axis denotes this thing, the performance actually goes up on most of the tasks. For example, in can and round, it actually reaches above 90%.

SPEAKER_00Now, in some tasks right now, maybe it doesn't touch the 100%, which we actually want to have a better system. I feel then you can do more training. You can always improve your world model and the reward model. You can collect more interaction data with the latest policy that you have. Do the batch online RL. train it better and then deploy it again at test time and that should like improve it so to summarize you can always use more budget at train time

and test time to improve the performance I think also like just using a much stronger world model is

SPEAKER_01gonna boost performance especially if you wanna do it in the real world

SPEAKER_03Did you guys get to test on the real world at all? Certainly not. Future steps, yeah. You sound like one of our nerves reviewers. But, yeah, I mean, I think, I don't know. I mean, definitely, like, we really hope this sort of thing could be useful for a bunch of things in the real world, right? I guess there's maybe some of the kind of obvious things you might want to do for that. Like you use something like a VLA as the base policy. You might use something like a DynaWorld model or something else as like a good kind of, has a good sort of visual features for things.

SPEAKER_03Yeah, I don't know, Vip, are there anything else you think we would do to make it work better in the real world?

SPEAKER_00So yeah, we have been thinking about this. That's a great question. And of course, we have this awesome algorithm and we want to test it on a real robot to show its applicability. So one of the first thing is you want to make the training efficient. And to make the training efficient, as Gokul said, you can always use a much better policy. And as Reb mentioned earlier, you can use a pre-trained world model or better embeddings to start with so that you don't have to do a long warm start, which we actually do for training the driver.

You can actually start with that representation and do some fine tuning with very

SPEAKER_00less collected data. The second thing is test time planning, of course. We are using an MPPI thing and we actually like time this out, like how much time does a diffusion policy is taking and how much time is the MPPI planner taking. And we actually saw that the planning planner doesn't take a lot of time. You can actually bring the time taken by the planner to like half the time a diffusion policy takes. So it's not a lot of overhead, even if you have to do test time planning. And the reason for why MPPR is like pretty fast is because we

are doing like

SPEAKER_00planning in the latent space for the world model. And Dreamer has like, has been able to, like, train, like, evaluate very large patches in one go. So one iteration takes very less time. Like, everything happens in a patch.

SPEAKER_01Also, I would like to add that the time taken for MPPI only depends on the iterations because the samples are paralyzed across the GPU.

SPEAKER_00So, yeah. So we have been thinking of this and because diffusion policy we know has been deployed in the real world and given that it is just, like, a bit more overhead, And you can always, with more training, bring this down. Bring the number of iterations down with some tuning and all. And you can just deploy it out. Yeah, we hope something is out soon. OK. So you're working on that.

SPEAKER_03Yeah. Yeah. Maybe there's two other things I think would be maybe kind of important for real-world stuff. I feel like one thing would be like, this is Vib's idea. You know, once you've learned this whole, like, search process, right, like, we're doing this kind of thing where you constantly update the base policy, where you kind of, like, distill things back, right? Let's say, for whatever reason, you're doing something with, like, super real time, and you basically cannot actually even do test time planning because of, like, well-clocked time reasons, right? You could just kind of do one kind of final post-hoc distillation of the whole thing into the base policy,

SPEAKER_03right, and use that as the thing you deploy. And then, you know, there's been work on, you know, speeding up inference for, like, you know, diffusion policies by, I don't know, replacing them with, like, consistency models or something like this, and that could give you something pretty fast. Another thing is like, yeah, I feel like when you get to sort of things outside of the sort of tasks we had here, maybe things we use something like a VLM as our word function, and kind of use that to kind of use sort of a broader notion of success might be useful. So like, I feel like we're kind of giving maybe like the standard answers here, right? But it's like, you know, you have a more powerful base model,

SPEAKER_03use a more powerful base world model, you kind of have a kind of better class of word functions, right? And then you maybe do some sort of post hoc distillation to make things a little bit faster at desktop. Sure. I mean, the future policy is already fairly slow. Like this is a well-studied, at least as well studied, I guess. So why do you need, why do you need the more powerful vision or model? Like if I set it up in a... your simulations are of a franc arm. That's a very precise industrial arm. You've got to put it on a white tabletop. Would you expect this to just work out of the box as is?

SPEAKER_03Or is there something else stopping it? Yeah, that's a good question. I mean, I might expect that if you set the scene up really precisely, everything will just work. Fair enough. So it's got to go back in the same place every time. But what I feel like I'd be kind of worried about and I said, remember we're kind of trading this classifier between what the expert does and what the learner does, right? If that classifier sort of kind of attends to features that really don't matter, right, this can maybe get you to be penalized for doing something that's actually not that bad,

SPEAKER_03right? So I guess the hope of using something like kind of a better visual kind of set of features, maybe on top of VLM or some things that you essentially have learned that, okay, roughly speaking, these are the set of things people kind of care about, like they care about whether objects are inside bowls, they care about like, know uh the relative orientation of certain things and this kind of like and sometimes kind of masks out some differences that don't really matter and you can really just like focus in on the details that do matter um so like i think maybe for like like like the tasks we have here right like you know the background doesn't change and other stuff right um so like but i could

imagine as you sort of want to get this like real more open world things kind of filtering out or do some

SPEAKER_03kind of pre-filtration of what kind of matters is important yeah yeah

SPEAKER_00Adding to this Google's previous point on like post hoc distillation, I want to also mention that as a fun experiment, we actually tried it out that after the training, you collect, you take out a lot of states from the replay buffer, relabel them with the planner and just to a large distillation on the base policy. And that was actually able to like make the base policy even much better and closes a gap between the test time planner's performance and the base policy. So if someone wants to really like, it's constrained by the time of just using the diffusion policy,

can also like uh do that and it works you can think of this like reusing compute during test time uh during training time at test time so you're just uh asking the planner to solve a bunch of problems which it saw during uh training time and then just distilling that back into the diffusion policy so it already knows the solution to some of the questions yeah sorry okay i also did not ask about this

SPEAKER_03last slide why doesn't it reward lead to reward hacking Is that just empirically true? Or do you, like, why not? You know, the benevolence of the universe. But, I mean, it's a good question. I mean, like, I can give you my take and then let me know if I missed something. I think part of the reason this is happening is because we are... Doing this sort of residual search, we're only kind of looking in a relatively narrow band around what the base policy's action did, right? Like, I'm fairly confident if you threw in something that was crazy into this,

SPEAKER_03it would, like, it would have to, like, complete nonsense. But, like, I think this is sort of always a solution, right? Like, when we think about things like RLHF, right? Like, you add a KL constraint, so your policy doesn't ever do anything crazy. The reward model doesn't get tested on something crazy. Well, actually, but this is something that does happen with RLHF, right? This is why you only run it for a few different steps. Otherwise, it does start to reward hack and it starts to, yeah. Yes, right. But I think a lot of times this happens because in RLHF, a lot of the methods there aren't really good at enforcing the KL constraint. Versus here, we essentially can just like clip the actions or we can

basically say they have to

SPEAKER_03look like this, right? Like things that look like, for example, like DPO don't actually enforce the KL constraint. So I think you kind of see this drifting over time.

SPEAKER_01Also, one more point to add here is when we are training the reward model and the critic, we actually have like some notion of uncertainty about if the world model is accurate there and if the reward model is accurate there by using an ensemble of critics. And we add that to the cost function of the FBBI. So we are actually forcing the search to be only in regions where we think the world model and the reward model are accurate. So that might be one of the reasons why it's not reward hacking.

SPEAKER_01Do you have anything to add or no? Yeah, we are just using, we are using an ensemble as a, and using the epistemic uncertainty.

SPEAKER_00We use that as a penalization constant while planning a test time. So that whatever actions you predict by sampling, it doesn't like, allow you to exploit the inaccuracies in the world model and also the reward model. So that is maybe actually helping with reward hacking. And it seems like it is pretty standard because many recent papers that do RL training, like TD and PC, the newer versions of it, and something like even RLPD that did offline RL training,

They kind of use our ensemble of Q functions to actually like guide the agent to

SPEAKER_00not like explode inaccuracies in the neural networks. You have a couple more slides after this, right, Ana?

SPEAKER_03I think we might have just one more. I think this might be the last slide.

SPEAKER_00So the thing is, when I mentioned about the three phases of training a sea-worthy sailor, I mentioned three points. The first was the warm start was crucial, and we have also been talking about it. So the first result on the left actually shows what the effect of warm start is. So if we don't do the warm start, we don't get great performance compared to training with the warm start. And in our case, whatever interaction budget that we had, we used like the 20%,

SPEAKER_00around 20% of that to roll out the diffusion, pre-trained diffusion policy, generate a bunch of data. And that was actually helping with the final performance. The second thing was, I mentioned that.

SPEAKER_03Can I add like one point on that? Like, I think one thing that I think is actually like, was surprising to me in hindsight was that, like, I feel like a lot of, methods, there's always this kind of, you do some offline training and you try them online, right? And there's always this sort of like, maybe like dip in performance or something when you like kind of try to do online fine tuning, where it's like catastrophic forgetting where things kind of fall apart. Like, I think even beyond what we did in this paper, I think like, it turns out that some of this sort of offline to online stuff turns out just collecting enough data and just fitting your reward model, your

uh critic in your uh your world model just kind of on this data was sort of enough and like i feel like i it's kind of cool just that the sort of simple thing here actually just like worked pretty well without it rather than having to do something like kind of complicated because like i remember for a while viv and arnav spent a really long time trying to get the avoid a little different performance at the beginning and then eventually we're like wait what if we just try the obvious thing

SPEAKER_03and it worked so

SPEAKER_01I think to also add to that point, I think one of the reasons why this worked in this particular setup is we just need to make local connections to the base policy. So if we have a good enough world model and a reward model around the original base policy, we should be able to improve it somewhat in the start itself and we don't see a dip in performance. And another thing to mention is if you don't warm start like this, but you keep training for longer, you eventually hit the performance of the original. But just in the same amount of interaction budget,

it's hard because the performance has dipped and it's slowly starting to improve

SPEAKER_01again.

SPEAKER_03Yeah, that's a good point. It's like basically maybe it doesn't affect the asymptotic performance, but it's like it just takes way longer because you just don't have a good in distribution world model in some sense to start off with. Interesting. Makes sense. So the second thing that I mentioned was doing a hybrid training when training the

SPEAKER_00world model, like train the world model on the mix of the export demonstrations and the on-policy data rather than just training it on policy data. And this was also similarly crucial, as you can see in the plot in the middle, where just training the world model with the on-policy data, by which we mean the no hybrid world model. The performance was pretty bad right at the start in BokeCube. Maybe it didn't lead to optimal performance in serial. So we saw both trends in different environments.

SPEAKER_00Whereas during the hybrid training, was actually leading to optimal performance. And this to us also made sense because suppose if the world model is only trained on an on-policy data and by any chance the agent visits the state visited by the expert, it won't be accurate on those states. So even on the good state, it's gonna perform bad, which will hamper the test and planning and all. So you want the world model to be good at both the expert visited states and the on-policy data.

SPEAKER_03Yeah. And I think even beyond our experiments, right. I think this has shown up even in like, like if you guys read the, uh, the report from like one X on their world model stuff, I think they also did sort of hyper training there. And, um, You can do a lot of fancier math to justify it, but I think it's basically what Arnav said, right? Where it's like, you want to know if you do the good things, good things happen. If you do the wrong thing, bad things happen. So just partly just like using as much data as you have for the world model makes sense. Although I'm surprised that it makes such a huge difference because I would expect that the expert really on PokeCube here.

So I would kind of expect that the expert will be visiting a lot of the same states, right?

SPEAKER_03Or sorry, the on-policy data would contain a lot of the same states. I think it... I think it eventually does, right? But it's a hard exploration problem, right? So it's like at the beginning, you have to know that you can poke the cube, right? So it's like the benefit of using all this hybrid data, right, is essentially it lets you not have to solve an exploration problem via on-policy samples, right? It's like you already know if you went here, this is what's going to happen.

SPEAKER_02That makes sense.

SPEAKER_01I think even here, the same thing might hold true. Like if you just keep training it for longer, you might hit the same asymptotic performance in both the environments. But yeah, I think in one of the cases, the initial performance was way bad. And in the second case, it's not able to improve at the same rate. So there is definitely like a lot of benefit to hybrid world model fitting.

SPEAKER_03Do you need to do any weighting or anything like that? Like preserve some amount of the, I don't know, like with these co-training papers that preserve some amount of it for expert data? Or do you just treat all samples equally and throw them all together?

SPEAKER_01It was all equal. We don't have any weighting because we don't have like any notion of what a good reward looks like. Yeah.

SPEAKER_03Yeah. I mean, I think like, I guess, uh, I mean, cause they're all equivalent valid samples for the world model too. Right. So I guess it wouldn't matter. Yeah. Yeah. I, I could imagine maybe if your world model is like not super powerful, then maybe you want to have it kind of prioritize more recent things in some sense. But we kind of view these world models as sponges, right. Kind of to your point, kind of should just shove whatever we can into them.

SPEAKER_02Yeah, so I guess, I mean, this is a question that we like to ask, like maybe towards the end of the, yeah, let's say if you guys have, I don't know, maybe a few more months on this paper, like what would you have squeezed just on this? What would you have done more? Probably three months is not enough to get a real robot. That probably is a new paper.

SPEAKER_03Three months and how much money? It depends on the...

SPEAKER_02That's true. Well, let's say no, money is no object, but just three months. Is it just more good?

SPEAKER_03If money is no object, we have no problems. But I get what you're asking. Yeah. Do you want to take it?

SPEAKER_01Yeah. Oh, you can go ahead now first.

SPEAKER_00Yeah. I think one other thing is like, I think it's mostly around like whatever we have discussed in the last hour. And one other thing is like making this training pipeline even more efficient. And that is by using maybe more powerful diffusion policies or using some form of pre-trained representations, like start with a vjpa thing, try to use that and see if you can bring the interactions much down. One good thing about this work was that

SPEAKER_00On most simulation-based RL people, you see that they do the training in a way that you take one environment step and maybe one or two agent training steps in general, which is quite feasible for the real world. And we wrote the code in a way that we should be able to deploy this. That's why we did the batch online RL thing. That is, we collect a bunch of demonstrations, maybe like 25, oh, sorry, bunch of on-policy data, maybe like 25 or 100 trajectories. Then we first update our world model and reward model, improve them, and then collect the data again. So maybe the goal was that you should not need more than 8 to

10 iterations if you

SPEAKER_00are deploying this on the real world. So one of the focus would have been using these more pre-trained representations and bring the interaction data down and make this pipeline even more efficient. The second thing is, as I mentioned earlier, that We are using test time planning and all. And one line of work is, of course, making that planning efficient by reducing the latency because it comes with some overhead and how can we even engineer it to bring it down.

SPEAKER_00The third is, for me, we discussed this thing of right now we are training a classifier kind of reward model. But we actually wanted to try something like a VLM or something. And I think the 401 people, which Google is also part of, they actually were able to deploy something with a mix of Deficient Policy, Dreamer Agent, and a VLM on a real robot. So maybe we can try VLM as a good reward, as another reward model.

SPEAKER_00And with a similar info, we should be in a state to actually deploy this. These are the things that I might try. Yeah,

SPEAKER_01I think to add to that, I think one of the other things which we need to do before we roll it out in the real world is we need to ensure that when we're collecting on-policy rollouts, we don't mess up very badly and we can actually reuse the world model and the reward model we have used in order to curtail the exploration there because in the real world, you don't want the robot to like hit something or like go into a state which is not really good for the physical robot. So you can design some kind of like a shield around which the

exploration is focused so that you don't break the robot while it's doing on policy rollouts.

SPEAKER_03Yeah. You know, those are great answers. Those are like the practical answers. you know, if I could just have, you know, infinite time and money to do things, I feel like one thing that I'm kind of interested in is the following. Like, we're doing, you know, tasks here that are, you know, not short horizon, but, you know, they're not like the robot does something for like 10 hours, right? And I'm kind of interested in like, you know, maybe, for example, if we used like a different sort of plan or something like a task motion plan or

SPEAKER_03something, they could kind of kind of have natural hierarchy or sort of like handle sort of longer horizon things. I could find that kind of interesting. Another thing I also find, I don't think it matters at the particularly short horizon, but I could imagine mattering at longer horizons is that like, like world models generally aren't super good at long horizon prediction. So like, I feel like, you know, another thing I'd want to look into more is like, okay, are there ways to sort of like stabilize kind of longer term predictions from like world models? And then maybe like a third thing I find kind of interesting is

like MPPI is this sort of like

SPEAKER_03very fixed algorithm, right? Like it's something kind of hard-coded. And, you know, we sort of learned every other component. And I think I find kind of interesting, at least from like a kind of theory or algorithm perspective, is like, can you in some sense like learn a search algorithm? So like, can you, for example, like learn to, for example, like, let's say you did some computation on one of these like threads, essentially these like n different parallel samples. Can I learn to actually not have to redo that computation on other things, right? Think about something like best event or sort of like parallel reasoning for LLMs. Like I'm almost curious if you can take some inspiration from that and sort of kind

SPEAKER_03of avoid like kind of repeat computation in some sense. I don't know how to make that like particularly formal or like, you know, precise, but like there's some sense in which I feel like you might be able to essentially reduce the amount of computation the planning process takes by being a little bit smarter than like sampling and different parallel completions completely independently, evaluating them and write maybe something kind of in the sampling process. Yeah. I think those are maybe the, at least on top of my head, what I find kind of interesting.

SPEAKER_02Yeah. I think on your last point, I can't remember, was it your tweet thread on this paper where you kind of mentioned also the potential of something like this down the road? being able to dynamically allocate the appropriate, let's say, compute, you know, some tasks maybe, I don't know whether short horizon or versus long horizon is the right way to put it. Some things could be very difficult, but very short, you know, perhaps. But it's just like knowing when to put more test time compute

to do certain things.

SPEAKER_02I think otherwise you, if you just arbitrarily, you could be wasting or like under budgeting, right?

SPEAKER_03Which is, I think a really interesting question, right? Because like, okay, let's say we think about like the sort of tabletop-ish manipulation things, right? There's a lot of thing that is just motion through fee space where as long as you don't collide with yourself, it's kind of fine. And there's things where you're doing like kind of contract-rich manipulation, right? Where you're like, let's say you got like the Christmas example, like screwing the thing in or something, right? What I would really hope is essentially you can learn a thing that says that when I'm doing these kind of harder parts of the task, I have to sort of allocate more compute. And what would be really cool is essentially you can do this in a way that does not require kind of pre-specifying the amount, right? Because like,

SPEAKER_03you know, as you get kind of more and more complicated, it's very hard to, you know, have this sort of system where you can just write down exactly how much each different part takes. I feel like, yeah, kind of doing that sort of adaptive allocation of compute could be kind of interesting. And I could imagine you might be able to do something like relatively simple, right? You could essentially, maybe you have like some sort of reasoning model or something, essentially just say, I want you to do the task well, while minimizing the total number of like samples you generate during the planning process of the whole thing, right? And then maybe you could imagine a different state says like, okay, you know, only at these states, you should reuse more compute at these states, you should have less compute,

SPEAKER_03right? And I feel like a lot of people in LLM land are now thinking about these sort of, uh, more kind of efficient reasoning things and a lot of them kind of boil down to something like this where you say i want to do the task but minimize the number of like tokens i generate or something like that does the reward model help you there because you can tell like the that it needs more compute or less compute something like that i guess we just lost google

SPEAKER_01Yeah, I think the reward model can be really useful there because you can see like the data in, so when you're doing MPPI planning, you can see how fast you're improving in the reward model, which can give you like a sense of how hard or easy is it to achieve like an objective. And you also have like these uncertainty estimates, which might be able to, like if you have more uncertainty, you might want to search longer.

SPEAKER_00Yeah. Yeah. That's right. And I think reward model would be nice because in a way you want the agent to recover from mistakes. In most scenarios, mistakes happen because the agent is in a state that it has not seen before. And because of that, it goes into maybe the new state it might not have seen before. And there you might... use the reward model to know uh to if if it's a bad state and there you can you should maybe allocate more computer test time budget to actually like do a better

search and look for a way to like go to a state which is more expert like and uh it's on the task from there makes sense so so you do see it in practice so like when it's performing worse like the reward is worse it is a valuable signal that i

SPEAKER_03need more that more samples will help okay cool yeah yeah we uh

SPEAKER_02Yeah, I don't know whether Goku is going to come back on, but I guess, do you guys have any more thing you want to add to the paper? Otherwise, that's a typical last question we'd like to ask. But anything else you guys want to add?

SPEAKER_00Yeah, one thing I want to mention that the importance of test time planning, because we just talked about it. And we did this another fun experiment where instead of doing the test time, what happens if you train a residual actor within the world model? So if you see the Dreamer world model, it trains an actor by planning, doing on-policy rollouts in the world model. So we also tried to do that, that you have the same base actions, and now you are doing learning an actor with your trained reward model and the critic

and what's the impact of it on performance and we actually saw that it was actually not doing as

SPEAKER_00great as using uh using the test time planning. It was actually worse. It was doing better than a deficient policy, but there was still some gap with the performance of Sailor. Like, it shows the importance of doing, like, test time planning to still, like, improve. And we have been seeing this in, like, large models also, like, test time planning and more inference time budget actually brings in a lot. So, yeah.

SPEAKER_01I think another point I would like to add is, so when you're learning like a discriminator for the reward, if you have like a very powerful policy which you're fine-tuning on that reward, the policy can actually exploit a lot of holes in the discriminator initially when it's not good. And this setup actually allows you to not get into that by... focusing the MPPI search on a very narrow region around the expert, around the base policy. So you will see less and less amount of tuning required in the

discriminator in this setup. And we actually tried training like these off-policy algorithms out there on a

SPEAKER_01diffusion model with a discriminator. And it's really, really hard to tune the discriminator to actually work if you have a very, very powerful actor. Yeah. Another thing I would like to add is we also tried to build a model-free baseline

SPEAKER_00where we took the diffusion policy, policy optimization, the DPPO paper. And instead of using the groundwork rewards, we used the same discriminator, the same way of learning a discriminator that we used for sealer. And we just wanted to study how much does like interacting or like doing planning with the world model safe side. And we actually found that with the same budget or even like five X more environment budget, the DPPO version of inverse file was not able to match the performance.

So using this sort of framework with like a learned world model and the reward

SPEAKER_00model was actually pretty powerful in our experiments.

SPEAKER_02Yeah, thanks. Goku, yeah, we're about to wrap up here. We're just asking the guys, any like, you know, final couple of things you want to say about the paper?

SPEAKER_03Yeah, let me think. Okay, this might feel like a little in the weeds, but one thing I think that's, I think maybe a little, and maybe I know everybody said this, but one thing I think it's a little bit sort of underappreciated about, I think the idea of doing test time planning is sort of thinking about like, You know, why is it useful, right? And I guess the more I thought about it, I think there's maybe one or two reasons why it really makes sense. I think one is that,

SPEAKER_03you know, for a policy to do well, right, assuming it isn't generalized super well, right, essentially needs to have seen something at train time of like how to behave in a situation, right? So in some sense, right, like if you are training a policy, you kind of have to deal with a bunch of things. So you kind of have to train on kind of every state you could end up in. versus at like test time, right? I feel like you only have to deal with the state you're actually in, right? So like in some sense, like even on like terms of like compute scaling, I would expect things that kind of look like this flavor of

learning to search to

SPEAKER_03sort of scale better. Because I only have to like pay for what I actually see, not all states I could like possibly see, right? So I think that's why I kind of believe this sort of direction is like generally kind of powerful. The other reason I think this sort of flavor of things is really nice is that like part of what we're doing here, right, is we're learning a couple of reusable components, right? We're learning a world model or a word model, a critic, right? And we're combining them, right? And in some sense, when you can take a big problem and you can sort of factorize it into smaller parts and you can learn each of the parts well and kind of faithfully recombine them in some sense,

SPEAKER_03you're kind of like trading like compute for data in the sense that You're essentially saying that I need kind of less data to like kind of learn, rather than learning this whole big thing at once in like one monolithic part. So I also think like in terms of the kind of amount of data it kind of takes to train these things, I would kind of expect this to not take too much compared to let's say like direct kind of policy learning. So I think both in terms of like compute scaling and in terms of data scaling, I really like this sort of flavor of approach. Um, right.

SPEAKER_03Uh, like compute scaling again, I think it's really because like you only have to deal with the state you see a test time, uh, and data scaling is better. I think because you essentially only have to be able to kind of tell what is good and predict future outcomes rather than having to be able to generate good behavior from scratch, which is sometimes a harder problem should require more data. So like kind of like longer term, I expect this to be a thing where we're going to see more and more kind of. approaches both on real robots and in other domains that sort of kind of look like this. I think it's sort of the kind of the compute and data optimal way of scaling a lot of things.

SPEAKER_03It's a very compelling argument, I think. Thanks. I came up with it while I was waiting for my internet to reconnect.

SPEAKER_02Yeah. You use some of your inference computer. It's good. Exactly. Exactly. Yeah. OK. Well, thank you so much for making the time. And I think this is a very, very interesting paper to me. Yeah, I mean, anyway, Chris and I usually will do, you know, afterthoughts after this, but maybe just to really wrap up the whole thing, this is a question that we always ask. Are there any, like, papers that you guys come across recently you want to give a

shout out to?

SPEAKER_02Doesn't have to be directly related to Sailor, but anything that kind of pique your interest, you know, so... Yeah, we can also read that paper and maybe get those authors to come on as well.

SPEAKER_03I mean, you should read the foreword paper if you haven't read it already and not a shameless plug. You don't have to have me twice. But I think it was really cool seeing maybe it's not the exact same idea as what we did here. I think foreword is really about policy steering in the sense that you're trying to select like a mode rather than like be correct behavior when the base policy never does the right thing in the first place. But I think there's sort of a, there's some really beautiful ideas there and some deep connection to things like safety that I think are really cool. So yeah. That might be a fun one to read. There was a paper you shared recently that I liked,

something about diffusion steering, right?

SPEAKER_01Yeah. So I want to talk about two papers. So one is diffusion steering, which is from Berkeley. So they basically have like this prior, so like diffusion models require a prior, right? So they just learn a policy in the prior space to guide the diffusion model. So you can think of it as diffusion model mapping N01 noise into a trajectory. So what if you can, instead of sampling randomly from N01, sample from a learned policy to get the desired outcome. And I think that is a very interesting idea because then you

can have like very,

SPEAKER_01very long, very, very large diffusion models and never required to actually touch the model weights and then like just guided from like the prior space to get to better results. And the other paper which I really liked recently was mean flows, which is basically getting to like a single function evaluation inference for diffusion models, where they instead of training like the denoising step, they just train the whole flow together. And that's another paper which I think is very important to the

diffusion community

SPEAKER_01and also like the flow community. Yeah.

SPEAKER_03Yeah, and maybe like one thing I really like in particular about the first paper Vip mentioned is that, I'm not sure this is very true in theory, but at least on like a vibes level, right? If I'm basically putting like zero mean Gaussian noise into a policy and getting things out, right? And when I'm searching for this sort of policy that is a little bit better, like it's simply doing mode selection, right? If I essentially say don't ever pick anything that's like super unlikely under a Gaussian, aka don't ever pick a thing in the latent space that's like super large and norm, I can effectively say don't ever generate something I didn't

see in my training

SPEAKER_03data. And I think this is, like, maybe, like, a really useful, like, building block for a lot of sort of, like, things you might want to do. Like, maybe this is useful for certain, like, safety things. Maybe this is useful for certain, like, OOD things. I like the paper a lot. I think it's an underappreciated idea. Yeah, and I mean, Flo's paper was, of course, excellent. Yeah, what about you, Arnov? There was this paper, I think, from Shiran's group, which was about, like,

SPEAKER_00learning a guidance to improve the diffusion models. And what they did was like in the actions at a particular time, D in the diffusion model, they actually have a trained world model, like a dyno world model. They do the planning and with some form of like distance metric, they figure out which actions are good. And then like to use that gradient as the guidance term to improve, to define the actions at the next step in the diffusion process. That was pretty cool.

SPEAKER_02So what's the public core again, roughly? Learning what? Yeah. I found the article that you guys talked about, but... What was it?

SPEAKER_00Find it. I don't fully remember the name, but I can share it with you.

SPEAKER_03Shoran's paper, it's called Dyna Guide.

SPEAKER_00Dyna Guide, yeah.

SPEAKER_03Yeah. It's cool. I think we're kind of seeing a bunch of these papers that are kind of exploring essentially different versions of... like ways to do policy steering right like i think that like which i think is like a super interesting question right so there's like the version that we did was essentially take a base action and yeah there you go thanks um one version is you basically like take a base and yeah there's the steering your diffusion policy

SPEAKER_02perfect you've made their whole uh my weekend is uh is burn again

SPEAKER_03I think what's really interesting about these things, right? It's like, they're all, I think, trying to solve a similar problem and there's like little details are different, right? Like for forward, we essentially did like clustering a latent space and basically picked one of the clusters. Uh, cause it would take a very much like mode selection, right? Here we basically said, I'm going to take something and I'm going to like kind of just search and like a tube around the action that sort of like, you know, um, like we're doing, I think we're actually doing things like an ender factor, like, uh, like, um, action space right so it's literally like a tube um and we're trying to say like does that kind of make things locally better and then i think

for things like um uh like diffusion steering they're instead saying like okay what what about what if i optimize the thing i pass into the fusion mall in the first place and then i think dino guidance instead basically it's not exactly like classifier based guidance but it's kind of similar thing in the sense that you're essentially doing the actual denoising process trying to use a world model to basically kind of guide it towards

SPEAKER_03maybe some outcome you want So I think all of these things are basically exploring different ways of like kind of trying to take some sort of pre-trained policy and make it better. I think maybe what is sort of different about Sailor, I think, is that maybe we're trying to do it without any sort of extra award information and kind of make as few assumptions as possible. But kind of beyond that, I could imagine you combine, let's say, like a learned discriminator with like all these other things. And it's very interesting to think about like, you know, it's very cool to see like the community kind of had all these different ideas kind of show up around at the same time. And it's kind of cool. I also have another friend who wrote a paper on policy steering

that I don't

SPEAKER_03remember right now, top of my head what the title is, but it was with Jeff Schneider here at CMU. So I'll link that to you guys so you can mention in the video description or something. Sure. Sounds cool.

SPEAKER_02All right. Yeah, this is maybe one of the longer episodes. But no, it's good, man. I think it's a great discussion. I think, yeah, well, yeah, like I said, I mean, me and Chris will do afterthought and you guys can tune into that one. But yeah, thank you so much for your time. And I felt I really learned a lot. Clearly a lot of reading to catch up on this weekend.

SPEAKER_03Yeah, thank you guys. Really, really interesting stuff. Yeah. Yeah. We should ask, were there any questions you had that we didn't answer or like things that like were kind of, okay. Yeah, I think we got quite a lot in, you know, and I think Anaf's extra presentation.

SPEAKER_02Usually we ask a fair bit even from the get-go, but I think Anaf's presentation was very, like, you know, covered by the ground anyway.

SPEAKER_03A lot of information.

SPEAKER_02Before I ask the question, oh, yeah, the next slide cover is okay. I'll just shut up. Yeah, so it's all good. Yeah, but yeah, anyway, thank you so much for your time. Yeah. Looking forward to it.

SPEAKER_03Thanks for inviting us. Every now and then I'll post something on Twitter and it's like, I'm like screaming into the void and it's nice when the void, like, you know, sends you an email. So I'm glad that worked out. And yeah.

SPEAKER_00Yeah.

SPEAKER_03Thanks. Appreciate it. And yeah. Yeah. Let us know when the episode is out. All right. Yeah. Cool.

SPEAKER_00All right. Thanks for having us here. Yeah. Hopefully this is on the real robot soon.

SPEAKER_02Hey dude. What have you learned, Chris?

SPEAKER_03a lot. There's a whole lot going on in that paper. It's very interesting, really cool discussion. Yeah. I really like the approach to test time compute, reward function learning, iterative improvement. It seems like there's a lot there. I particularly think that a lot of this, it combines a lot of, it handles a lot of the weaknesses of these world models really well. I am pretty excited about anything to do with reward learning these days i think it seems

like a good way of

SPEAKER_03getting models to really improve and uh

SPEAKER_02Yeah, what did you think? Yeah, I mean, I really like it. I think that hopefully, I don't know, maybe through this episode, more people will find out about this. I think maybe because they didn't do it on a real robot demonstration this time. And, you know, these days, like, you know, real robot demos on Twitter just go further. But then I can't remember when I saw the tweet thread, I thought there was something there. Yeah, sorry, Richard. But yeah, I mean, it's a great episode. I thought I learned a lot.

SPEAKER_03Yeah, I learned a ton.

SPEAKER_02I think like they say, like, you know, each of these components, whether the world model or the reward model...

SPEAKER_03In the test time.

SPEAKER_02In the test time, well, you know, it will just improve. They can take something like Genie 3, you know, find it on it, let's say. Or they could be used like a VLM and swap out and maybe better reward learning. But I think it makes a lot of sense that like it can do better than like just straight up more data, but only like naive way of just doing division policy.

SPEAKER_03but it still scales, still benefits from more data, right? So, which is the other thing, like a lot of these, I really like like these sort of, it's almost planning inspired and like test time compute, right? Meaning basically planning, right? But it's doing that in a latent space. It's using a planning algorithm that's a relatively like a very general purpose planning algorithm in MPPI, but it's able to like, I think Gokul did a very good job at the end, like arguing for like why test time compute, I mean, it makes so much sense for robotics.

yeah especially robotics right i mean you cannot afford to do try things out in the real world yeah and then you you know you break things and whatnot right so being able to just imagine scenarios and then like inform you know your planner and then

SPEAKER_02you know go execute it so you can do some recovery

SPEAKER_03Yeah, it's particularly interesting because like the world model and the way that they've structured it, like usually I think you can end up imagining like really divergent scenarios that won't happen or places where the dynamics aren't going to be well supported for the robots and maybe aren't very useful. But like their structure allows it to be very focused. right that's a point that they're making over and over again and that i think like it's it's very compelling i really hope to see how it works yeah i have high hopes for it doing well yeah in fact one curious maybe in the next paper they will do

SPEAKER_02they won't train the model from scratch My hunch is that there's some benefit to train the world model from scratch themselves also. I don't know. Maybe TBD on that one. Because some of the crazy world models are so good. Like Genie 3 is just like, oh gosh. I just woke up a few hours ago and I saw Genie 3. Oh, the Genie 3. I mean, you know this is coming, but when it actually shows up, okay.

SPEAKER_03It still surprises you when it works. Well, I think you could do a whole discussion on Genie, but I was so impressed that it managed to nail temporal consistency as well as it did for minutes. yeah look away come back the pain is still there like you know that the consistency yeah it's something that you have not really seen in prior world models right yeah and it just comes from data and it's like one of these last thing every time like i don't know if transformers can really handle that purely with data it's like always like turns out that yes they can so that's i don't know it's

impressive yeah so i think robotics can can bootstrap a lot more with like you know things that's

SPEAKER_02happening in that like genie 3 and yeah um and i take those and then so we yeah we have to start from scratch every time you know um yeah anyway they are fine tuning it so i think that like what i what i always wonder with these things is whether or not like a pre-trained model can get like really granular stuff like i don't know oh yes picking this up between my two fingers right like stuff like that like and there's and like maybe maybe

SPEAKER_03maybe not Right? But, like, the fact that it improves with their data as well means that they're not bounded by, like, if they use Genie 3, whatever its weaknesses may be. Right? So, yeah. I don't know. I thought it was really cool. Really cool stuff. Cool. Yeah.

SPEAKER_02All right. Sounds good. And those few papers, maybe we should chat. Yeah, there's like five papers throughout at the end there. Three papers to reach out to already. All right.

SPEAKER_00Sounds good.

SPEAKER_02All right. Till next time, Chris. We'll do it again. See you later. All right. Ciao. Bye.

Open the transcript file

Hosts and Guests

Nobody is credited on this episode yet.

Credit the people on this episode

Be the first to rate this episode

More episodes

All episodes
  1. Ep#118: Devol Robotics

    Nov 20, 202658 minAudio

    A robot could line up an ethernet cord almost perfectly and still fail to insert it if it’s off by a millimeter. If robot foundation models had a better understanding of force and contact, this would not be an issue....

    Credit the people on this episode

  2. Ep#117: Residual Modeling Closes the Regression and Generative Policy Gap in Robot Learning

    Nov 17, 202658 minAudio

    Imitation learning has enabled amazing robot capabilities, empowered in part by diffusion or flow-matching policies. These generative models outperform direct action prediction, but come at a cost: they are often slower...

    Credit the people on this episode

  3. Ep#116: SimEX: Simulation-Integrated Robotics AutoResearch

    Nov 10, 202651 minAudio

    Coding agents powered by large language models are increasingly able to complete complex, long-horizon goals, but this capability is still largely relegated to computer tasks. Bringing agents to real-world robotics is...

    Credit the people on this episode

  4. Ep#115: Delta-0 (Δ₀): A New Chapter in Humanoid Intelligence

    Nov 6, 20261 hr 10 minAudio

    Delta Intelligence’s Δ₀ is a humanoid full-body foundation model, which can perform long-horizon, whole body loco-manipulation. They show a single, generalist policy which can control a 69-DoF humanoid to perform...

    Credit the people on this episode

  5. Ep#114: Oopsie Data

    Oct 30, 202644 minAudio

    Robotics has a data problem, but not the one you’re thinking of: almost all robotics data is of successful instances of robot behaviors. But many of the most exciting research areas for robotics today, including world...

    Credit the people on this episode