Offline reinforcement learning is crucial for robotics, but does it scale? We talk to Seohong, who discusses how for long-horizon manipulation problems the answer may be no - at least not yet. But there are tricks that you can use to make it work effectively. Watch episode #38 of RoboPapers with Michael Cho and Chris Paxton now! Abstract: In this work, we study the scalability of offline reinforcement learning (RL) algorithms. In principle, a truly scalable offline RL algorithm should be able to solve any given problem, regardless of its complexity, given sufficient data, compute, and model capacity. We investigate if and how current offline RL algorithms match up to this promise on diverse, challenging, previously unsolved tasks, using datasets up to 1000x larger than typical offline RL datasets. We observe that despite scaling up data, many existing offline RL algorithms exhibit poor scaling behavior, saturating well below the maximum performance. We hypothesize that the horizon is the main cause behind the poor scaling of offline RL. We empirically verify this hypothesis through several analysis experiments, showing that long horizons indeed present a fundamental barrier to scaling up offline RL. We then show that various horizon reduction techniques substantially enhance scalability on challenging tasks. Based on our insights, we also introduce a minimal yet scalable method named SHARSA that effectively reduces the horizon. SHARSA achieves the best asymptotic performance and scaling behavior among our evaluation methods, showing that explicitly reducing the horizon unlocks the scalability of offline RL. Code: this https URL And from the blog post: Over the past few years, we’ve seen that next-token prediction scales, denoising diffusion scales, contrastive learning scales, and so on, all the way to the point where we can train models with billions of parameters with a scalable objective that can eat up as much data as we can throw at it. Then, what about reinforcement learning (RL)? Does RL also scale like all the other objectives? ArXiV Blog Post 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, everybody, welcome to another episode of RoboPapers. Super happy to have Seo Hong Park joining us today. He is one of the authors of this paper, Horizon Reduction, Makes RL Scalable. And I think, in fact, more importantly, besides the paper, he actually wrote a really good post. I think it's a phenomenal read. I encourage everyone listening to go and read that too. It's called Q-Learning is Not Yet Scalable. I actually read this like twice or three times. So I think fantastic job on writing that. I was super looking forward to this episode. I took some time to arrange this, but I'm glad finally we got on a call.
SPEAKER_00Thank you for having me. My name is So Hong, and I'm currently a PhD student at Berkeley working with Sergey. And my main research interests are reinforcement learning. And in particular, data-driven RL, including offline RL, offline to online RL, and those kinds of things. And RL pre-training, such as unsupervised RL. And finally, RL scaling. And today, I think I'm going to talk about RL scaling mainly. And in fact, I think I'm more like an RL researcher rather than a roboticist. But I do think robotics is one of the most important applications of RL.
SPEAKER_00So I'm also fairly interested in it. Yeah, that's like a little bit about myself and nice to meet you guys. Cool. So yeah, this is the thing that I'm going to talk about today. So the title is, Is RL Scalable? So, I mean, we know scalability is really important. Like, for example, we have scaled up next token prediction to get chat GPT in language model training. And we also scaled up like the feature models flow machine to get like awesome image and video generation models. And we are also somehow scaling up things in robotics as well. So we can also ask whether RL is also scalable or maybe there
are some caveats in it.
SPEAKER_00So that's like what I'm going to talk about today. Well, apparently, you know, it is. Like, for example, nine years ago, there was like AlphaGo. At that time, I think it beat one of the best players in the world by scaling up RL with a lot of parallel compute. And maybe two years later, there was like Open AI 5 for a MOBA game called Dota 2. And there, you know, I think at that time, this agent could also beat one of the pro players at that time. And recently,
people are really excited about LLMRL, especially in the context of reasoning.
SPEAKER_00So there's like ChatGPTO3 and DeepStickRUN. and like ROG4 and all the like RLLM for reading stuff. So apparently, you know, RL seems to scale pretty well and we have been scaling up RL and we are still like doing that, which is good. But if you carefully think about this, there's actually one caveat behind the successes of RL, especially like these three instances. So the caveat here is that All of these successes of RL are somehow trained with on-pulse RL. Like, for example, you know, AlphaGo is trained with MCTS,
SPEAKER_00Monte Carlo Tree Search, and its follow-up works like MuZero. They are also based on Monte Carlo returns in some learned models. And OpenAI5 is trained with PPO, which is also PulseRL algorithm. And DeepSig is also trained with that GRPO. And all the reasoning stuffs are mainly trained with on PulseRL, like PPO, GRPO, and reinforce, and so on. So that's like one interesting kind of common ground among these three successes. So just for a recap, in RL, there are two main paradigms.
SPEAKER_00One is on-pulse RL. The other one is off-pulse RL. So it is a kind of recap. So in on-pulse RL, we kind of start from a policy. And then we collect some tuples, like data sets from the current policy. And then when we train the policy, we can only use the most recent samples. just sample from the current policy. And then after performing one gradient update or a few gradient update, we must discard the data. So in other words, we can only use the most fresh data. And that's maybe why it's called onPulseRL in the sense that we
can only use
SPEAKER_00on-the-fly data from the current policy. And these methods include policy gradients, including GreenForce, A to C, PPO, GIPO, and so on. On the other hand, so here, my mental picture is that off-pulse RL starts from a dataset. It can actually be an empty replay buffer. And this dataset actually can be just anything. It can consist of some previous examples or some human demonstrations or even random transitions.
But an off-pulse RL should be able to use any dataset to train a good policy.
SPEAKER_00And then we can, if you want to close the loop, we can also add back some data collected by the current policy to the dataset. So it's, in some sense, a bit more flexible. And the algorithms are usually Q-learning, so including like DQN, SEG, TD3IQL, et cetera. But there's like two distinctions, I mean, two categories in RL. And what I was claiming in the previous slide is that most of the real-world successes of RL are based on on false RL. And as you can see here, I mean, on-pulse RL is a bit more restrictive, right?
SPEAKER_00Because you can only use the fresh samples. So you can also imagine that it's a bit more sample inefficient. So that's like one downside of on-pulse RL. So anyway, based on the success of RL in LLM land, we can also think about bringing that kind of recipe to robotics, right? Can we, for example, do GRPO in the real world for training some really intelligent robots? That's what we can think about. Well, actually, if you think about it, this is actually almost like a disaster. So for this, I actually took a tweet from one of my landmates, Kyle.
SPEAKER_03Of course, Kyle.
SPEAKER_00Yeah. He did some acting math. to compute how many, I mean, how much time we need to replicate the GIPO's, DeepSig Auron's GIPO recipe. So what he found is that 100 GIPO steps correspond to one to two weeks of robot time. And as far as I know, the original DeepSig Auron agent is trained with 8,000 GIPO steps. So that kind of corresponds to two to three years of real robot time.
SPEAKER_00for training a single model. And actually, it's orthogonal to the model size. So no matter how large or smaller your model is, in order to run GIPO for 8K steps, we really need two to three years of robot time where a human must be present next to the robot 24-7 to reset things and then to clean up things and so on.
SPEAKER_02It's not just resetting. It's what if after the first step, it kills itself. Exactly. You need to buy a new robot.
SPEAKER_00That is the restart. So it's not just about GPU time. It's also about GPU time and maybe robot code. It's almost infeasible. So I think in my mental picture, so this is kind of the, what I think about like sequential decision-making problems. So maybe this is the set of entire sequential decision-making problems. And in my head, I feel only a very few tests can be solvable with on PulseRL. And somehow coincidentally, they include games and LLMs. And maybe that's why we are kind of seeing
SPEAKER_00like successes of RL mainly on these domains. Like in games, we know the rules. Like for chess, we exactly know how the board game state should be changed. And then we can actually just execute them pretty easily. So we can actually collect a lot of unpulsive samples. And LLMs, it's even easier, right? The dynamics are just like concatenation. So there's nothing we need to compute. But if you think about this, you know, in many other problems like healthcare, finance, industrial control, and maybe importantly,
SPEAKER_00robotics, it's really difficult or almost infeasible to collect on-pulse rollouts. Like for example, for healthcare, probably you don't want to do on-pulse RL with my house or something like that. So for these problems, we really need some like scalable off-pulse RL algorithm. to actually apply RL to a real world problem, especially including robotics. So, I mean, this is the question that I initially asked. Is RL scalable? But actually, I want to modify this question, especially in the context of robotics. In robotics, maybe a more relevant and more important question that we
should ask is actually,
SPEAKER_00is off-pulse RL scalable? And in particular, if you think about key learning as one of the representative methods in off-pulse RL, we can ask whether it's key learning scalable. So, yeah, that's like the main question that I'm going to try to answer today.
SPEAKER_01Okay, so before we move on, one question though. So we all know, right? I assume that everybody who watches this would know too, that like on policy URL is the standard way that we do certain things for robotics, like locomotion or like balancing. Could you comment on this? Like what makes it reasonable for that, but not for other tasks? So basically, maybe you mean training some Pulse in-SIM with on-Pulse RL? Exactly. So basically, SIM is the in-SIM.
SPEAKER_00That's actually a very good point. So basically, if we have simulator, then I think we're more like in this situation where we have kind of a model. So we can actually do on-Pulse RL. We can somehow scale it up by using massively parallel simulation. That's possible for some locomotion tasks like humanoid control or some tasks where we have sim. But I think, and actually, this is kind of pretty longstanding debate, whether the way to go is sim to real RL or more like real world RL. And probably, I'm not sure whether I can provide a very satisfying answer to
this controversial
SPEAKER_00question. But I think what's clear to me is that at least for some tasks, especially manipulation, where we want to perform some free from object manipulation kind of thing, it might be really difficult to actually build a sim and then do own pulsar out in it. Maybe it might be even cheaper to actually hire humans to do two to three years of robot rollouts than actually building a very physically realistic sim that abides by all the natural physics. Maybe that requires some PhD employees as opposed to some human
demonstration data
SPEAKER_00collection or things like that.
SPEAKER_01So these are like your t-shirt folding kind of domains, like all these manipulation tasks that just we can't really simulate well. So there's tons of very good places for off-policy. All right, cool.
SPEAKER_00So in that case, we want to use some previously collected data or at least we want to reuse some data to minimize the human effort. Okay, so that's the question. But I mean, this is actually still slightly vague, like what does it mean by scalable? So let me pose a more concrete question. So this is the more concrete question that I'm trying to answer today. Basically, yeah, with an infinite amount of data, compute and modal capacity, will existing Q-learning recipes solve any task?
SPEAKER_00So I'm asking whether it's a data problem or it's an algorithm problem. So if the answer to this question is yes, then actually what we have to do, what we should do right now is that instead of, like, developing a new Q-learning algorithm or something like that, maybe we should actually think about ways to collect better data or actually scaling up compute or, like, developing some systems that enable, like, scaling of RL or something like that. If the answer is no, then maybe what we should do right now is, like, more, like, algorithms research rather than actually scaling,
SPEAKER_00trying to scaling up current algorithm because, you know, if there's no guarantee that existing Q-learning algorithms can, like, solve any task with, like, a lot of data, then maybe, you know, the effort scaling up might be potentially, like, futile. So it's kind of, you know, in computer vision, like, around 2015, we have, like, GANs, Generative Adversarial Networks. And we kind of know that, relatively, GANs are less scalable than diffusibles. So I'm asking whether we are in the GAN area in this off-pulse URL or maybe in diffusion area, diffusion area in this off-pulse URL.
SPEAKER_00So that's, like, the question that I'm trying to answer. And, um... This is the main theme of this paper called right deduction mix area scale. So in this paper, we actually tried to answer this question by actually doing this in some sense. So what we did here is that we first prepared some previously unsolved, really complex robotic tasks. So here, for example, in the middle task, this is a puzzle task. And by the way, here, the action space is actually the robot arms like XYZ
displacement or something like
SPEAKER_00that. It's not like semantic actions, but it's actually a manipulation task. we need to control the robot to actually press the button. And whenever the robot presses a button, then the colors of that button and the adjacent four buttons get flipped. And the goal is to reach some goal configuration. So in this particular case, the robot is supposed to turn everything in red. And then to do that, you need to carefully press some combination of the buttons. It's really hard even for me.
SPEAKER_00And this is like cube manipulation where we have like eight cubes. So the robot has to perform eight consecutive pick and place manipulations. And also it's goal-conditioned, so the task is not fixed. So given some goal configuration, the robot has to do these kinds of things to exactly match the positions of the cubes. And this one, I'm not sure whether you can see the humanoid here, but this is humanoid maze. So the task is to control this humanoid robot to reach some
location in this giant maze.
SPEAKER_00And there are very complex and long-winded problems, up to 4,000 environment steps, but they're instant. So we can do a controlled study. So anyway, that's the description of the tasks. And what we did in these environments is that we collected almost near-infinite amount of data such that overfitting is virtually impossible. In particular, we collected play-style data set up to 1 billion traditions with 10 million atomic motions. As a comparison, I think one of the largest robotic data sets to date,
SPEAKER_00which is, I think, OpenX embodiment data set, which consists of 2.4 million episodes, even though it's not exactly Apple's comparison, but just in terms of their order, it's pretty much compatible. And it was possible because I'm doing the same here. Anyway, this is like how the dataset looks like. So it's kind of random place type dataset where the robot just performs random pick and place. Like sometimes it picks up some objects and then places on top of other objects, or sometimes it puts on some other random location and so on.
SPEAKER_00And it does this like 10 million times. And then at test time, the agent is given some ball configuration. For example, here, the goal is like to stack four cubes like this. And then it has to perform this kind of four pick and place manipulation in this order to do this. And there are like five, yeah.
SPEAKER_01Can I ask how you define play style? So you manually define a policy, just doing random actions?
SPEAKER_00Basically, there's no task segment. So it kind of continuously performs some random pick and place motions like this. So heuristic policy that will perform random motions with random offsets to the
SPEAKER_01blocks and things like that.
SPEAKER_00Yeah, exactly. So the agent must be able to learn how to pick up some object and then place on top of other objects or You know, something like that. And another example, so this is Puzzle, where the data set is even simpler. Here, it's also a place-side data set. The data collecting policy is literally just random button pressing scripted policy. So it really just literally presses button like 10 million times. So it's a pretty kind of boring data set. But anyway, you can learn how the dynamics
SPEAKER_00at least that's like what the agent is supposed to learn, such that at test time, given some particular goal configuration in this particular case, it's like turning everything in blue and the agent has to press some combinations of buttons to match the goal state. So these kind of tests are what we prepared for.
SPEAKER_01Oh, sorry. One last question. What's the reward for these? I assume they're like semi-sparse rewards, like one for every correct peg or something like that.
SPEAKER_00Yeah. So it's like, so it's goal control RL. So the reward function is defined as the exact match between state and goal state. So it's like 0, 1 sparse reward for all tasks that we consider.
SPEAKER_01Oh, so no semi sparse. So all of us have full.
SPEAKER_00No.
SPEAKER_01Okay.
SPEAKER_00It's like 0, 1 only at the end. It's pretty challenging for that reason. But we have like a lot of data. So even with your billion transitions, do you actually have any successes?
SPEAKER_01I assume.
SPEAKER_00That's like what I'm going to show. Okay.
SPEAKER_01Yeah.
SPEAKER_00That's kind of right. All right, I'll let you go. But anyway, before even showing the results, I just also wanted to mention that in this experiment, we really tried to remove all confounding factors just to solely focus on fundamental scaling of RL or sequential decision-making capabilities. In particular, we focus on offline RL to abstract away exploration. I mean, exploration is important, but it can also serve as a confounding factor,
SPEAKER_00especially for online RL, because when it fails, we don't know whether it fails because of the lack of expression or maybe it struggles to fit a Q function or something like that. So I just wanted to completely eliminate that concern by focusing on auth and RL with sufficient amount of data. And we also did a lot of other things to ensure the environments are as ideal as possible, like ensuring all the sufficient state coverage and data and use state-based observations. There are no pixel-based control. We also only use in-distribution tasks and so on.
SPEAKER_00So here, the rationale here is that if the agent doesn't work even in these idealized environments with almost near-infinite data, then maybe there might not be a lot of hope for RL to succeed in the real world where we have limited data, we have noisy observations, we have to deal with pixels and so on. So that's basically the rationale behind this. design choice. But one thing that I wanted to make sure is that the data set is test cognitive. So it's like play style, unsupervised, unlabeled demonstrations. It's kind of similar to the internet scale,
SPEAKER_00text English based pre-training or something like that. So, I mean, we didn't specifically curate the data set for the test time task that we employ in the evaluation time. So, yeah, that's the experimental setup. So, this is kind of a warm up. So what we did here is that we drew the scaling curve of behavior colony and offline RL with different sizes of different sized data sets from 100K to 100 million transitions, first on easier tasks. So here it's cube double, so there are only two cubes.
SPEAKER_00And here is the scaling curve. So the first one is flow behavior cloning, similar to like PI 0. And the other three are pretty performant offline RL algorithms, like IQL, which is implicit key learning, contrastive RL, and set plus BC. And then the x-axis is the dataset size from 100K to 100 million transitions. and the y-axis is the success rate. And you can see that they scale pretty well. For example, like 100 million data, just basically everything can solve this task almost perfectly, achieving 100% success rate,
SPEAKER_00which is good. So it kind of checks the box that the data set distribution is kind of good enough to to enable this offline goal-concerned behavior. So these easier tasks basically just have shorter environment steps to get to the
SPEAKER_02final reward, right? Is that how you define easier?
SPEAKER_00Could you repeat the question there?
SPEAKER_02So the way you define easier tasks, is it just like shorter horizon, like just very few steps to get to the final reward?
SPEAKER_00Yeah, you're right. So here, there are only two cubes, but like for the main task, we have like eight cubes. So it's like cube octuple, but here's like cube double. So basically, you know, the difference is that maybe the possible combinations of the cube positions and also the horizon length. And... On Puzzle, it's like kind of small puzzle, so four by four. And then here, FlowBC doesn't work very well, even with 100 million. But this is kind of as expected. So the data set is collected by literally random button pressing pulses. So I think it's kind of natural that BC struggles.
SPEAKER_00But if you look at the performances of RL, they all, I mean, except by CRL, we can actually achieve almost 100% at the end with enough data. So this also kind of suggests that, yeah, for some simpler tasks, we can scale up things to master these tests. The problem is that when the task difficulty becomes much harder, for example, puzzle 4x5. So here is only one more column than this puzzle 4x4. But the thing here is that the number of possible states grows
exponentially with
SPEAKER_00respect to the number of buttons. So it's actually much harder than puzzle 4x4. And in this hard environment, if you draw the same thing, now from 1 million to 1 billion transitions, things become pretty interesting. For example, if you do BC, you know, it just completely fails. Maybe this is like still as expected because, you know, BC might not be able to solve these puzzles just by from like random trajectories. The problem is that even when we train RL, offline RL, they don't seem to scale very well.
SPEAKER_00For example, regardless of the dataset size, they often plateaus around 20%, which is only one out of five tasks during evaluation time. And they show very poor scaling behavior in general. And the same for cuboctuple here. Unfortunately, none of them actually work at all, just across the board, regardless of the dataset size, regardless of algorithm. It seems like the results are pretty negative from this plot. Yeah, so I'm pretty sure that probably maybe the viewer or listener
might ask whether I
SPEAKER_00actually tune these methods carefully, or maybe they might ask, did I, for example, try even larger models, I don't know, for training for longer EPUBs, or maybe did I try more advanced techniques or something like that to somehow fix the scalability of RL. So to answer these kind of potential concerns or questions, we actually tried a bunch of quick fixes, whether we can actually fix the scalability of Q-learning by tuning hyperparameters or adjusting some design choices. So for example, we tried much larger networks,
up to, I think, 600 million parameters. By the way, that's actually pretty large, given that the environment is state-based.
SPEAKER_00And I also tried like MLPs, Red MLP, like transformers, basically better architectures and better pulses, including flow pulses and better regularization, larger ensembles, and so on, like many, many different hyper-practic tuning. The result is that none of them actually works across the board regardless of like these advanced architectures or large networks. And in the paper, we actually put like this large oblation study for like sweeping over these kinds of things. So, and of course,
it's really difficult to prove that it's impossible to scale up Q-learning because
SPEAKER_00that requires trying all the possible potential techniques, which I obviously couldn't do. But at least what's clear to me is that it's pretty difficult to scale up existing Q-learning algorithms with standard-ish techniques. So that's kind of the point that I was making here. Yeah. So anyway, that's kind of the issue here. And still, maybe you can think about this as kind of my fault, but as an alternative hypothesis, what if it's actually it's not my fault? As an alternative hypothesis,
it can be, what if it's actually key learning fault?
SPEAKER_00For example, what if it's actually key learning is not as scalable in its current form, at least to complex and long-term tasks? So I think this is also possible as an alternative hypothesis. And especially as I try more and more techniques to fix Q-learning and then I fail, I kind of tend to believe this statement. And also, especially considering the anecdotal evidence that I mentioned in the beginning, for example, Like many of the real world successes of RL are based on OnPulse RL for some reason.
SPEAKER_00And also in the literature, there are some works, some like really great works that try to scale up Q-learning, but they somehow mainly focus on scaling up Q-learning with more tasks and not necessarily harder or longer tasks. So basically they train a single policy to like solve many different tasks at once, like for example, for all Atari games. But the point there is that usually there are not so many words that try to scale up Q-learning in the complexity axis.
So to train a single policy to solve more like harder tasks or longer than that. So the lack of such kind of method also somehow made me kind of believe this
SPEAKER_00hypothesis, especially given the previous failure that I showed you. So, yeah, that's basically the main hypothesis, at least in the blog post. Okay, so if this hypothesis is true, then we can also think about what the problem is. Why does key learning struggle to scale? What's the problem? Here's my answer. So this is also kind of a hypothesis. I think Q-learning objective is actually very unique in the
following sense.
SPEAKER_00So in the Bellman objective here, the Q-learning objective has biases in the target here, meaning that this is not equal to Q star because it involves the bootstrapped previous Q value from like itself. And so that's actually bad that the targets are biased, but what's worse is that these biases accumulate over the horizon, right? So by minimizing the temporal difference between adjacent two states, we are basically adding some bias to the Q function.
SPEAKER_00And those biases actually accumulate over the entire horizon. So as the horizon becomes longer and longer, this issue becomes more and more severe. And that's really bad. And actually, if you think about this, this is really unique to Q learning. For example, if you think about other scalable objectives, such as like next-door compression, or like maybe diffusion, denoising diffusion or flow machine or contrastive learning, in these objectives, there are no biases in targets. And there, like we have some guarantee that if we have infinite amount of data,
SPEAKER_00we can make the prediction arbitrarily accurate. But in Q-learning, it's very unique in the sense that the targets are biased. So my claim here is that maybe... this bias accumulation might not be easily mitigated just by scaling up data and compute. And maybe that's why we are not seeing very promising scaling behaviors with all false RL we're killing. So that's kind of the hypothesis that I was making in the paper. And in the paper, we also did some more controlled study.
SPEAKER_00So here, in some controlled environment, we actually measured how bias accumulates over the horizon. And then, as you can see in this plot, as the distance to the end becomes longer and larger, the bias just accumulates over time, meaning that this hypothesis might be true, at least it's plausible. Yeah, that's kind of the... my hypothesis about the poor scalability of Qlerny. And, of course, our goal is to fix it, right?
SPEAKER_00So, I mean, you want to run RL for robotics or many other problems. For that, we need off-pulse RL, and then we need a scalable off-pulse RL algorithm. So we can think about the solutions to fix Qlerny. And if we believe the previous hypothesis, if we believe that to be true, then maybe what we have to do to fix Hewling is to reduce the horizon length, reduce the bias accumulation by somehow shortening the horizon.
SPEAKER_00There's many ways of doing this. Perhaps the simplest way of doing this might be to use some value horizon reduction via end step returns. So basically what we do here is that instead of training a single step, like one step TD learning, we train end step TD learning. So basically the Q learning gets updates from like Q as H plus N instead of H plus one using like MC Monte Carlo returns during the end step. Um, so by,
SPEAKER_00by doing this, we can actually, uh, reduce the number of thermal recursions by the factor of n. So that's like, uh, why I call it value horizon reduction.
SPEAKER_01So, and sorry, so this is saying, this is saying you're skipping. So are you, you're, are you sending like a chunk of actions or are you just actually skipping like 10 or an actions, right?
SPEAKER_00So it's not action chunking. It's just skip. Yeah. Yeah. It's kind of Monte Carlo. Yeah, so just to see how it actually potentially improved scalability, we also measure the same thing. So we trained NSTEP SAC plus VC, which is like one of the great TD learning algorithms with the same size data sets. And this is the previous result. So when I trained SAC plus VC, it didn't scale at all. Like it's kind of completely plateaus.
SPEAKER_00But if you do NSTEP SAC plus VC, This was actually the first time I was able to solve this task, at least like to achieve non-trivial performance on this task, like beyond like one out of five tasks achieving at the evaluation time. So by reducing the value horizon, we can actually improve the scalability of RL. And also, this is the case in humanoid-based science as well, as you can see from the difference between these two plots. So basically, my kernel.
SPEAKER_02What is the n that you use in this case? How many steps?
SPEAKER_00So I think in this puzzle case, I used n equal 25. So it's like reducing the horizon by the factor of 25. And here, I think n is 50. It's pretty large. Basically, we can reduce the effective horizon to like a few hundreds or like around 100 or something like that.
SPEAKER_02Do you have a chart where you kind of do a study of different n?
SPEAKER_00I think in the paper, we didn't have some ovulation from n, but we really did need to tune this n pretty carefully. So for example, if n equals 1, then that recovers the original 1. That didn't work. But if n is too large, then also it suffers from, in this time, variance issue. So because the Monte Carlo estimate of the return can be very noisy. So in that case, also it doesn't work very well. So we unfortunately have to tune the value of n to somehow find the sweet spot in
SPEAKER_00this biosphere tradeoff.
SPEAKER_02Interesting. So yeah, the n step does help, but you don't know before the fact what n to use. And you can only do it right now because you have the luxury of near infinite data.
SPEAKER_00That's kind of true. Yeah, yeah, yeah. And also, I have luxury to evaluate things and then tune the end based on the actual evaluation results.
SPEAKER_02Got it, got it. But I would like to say that this is kind of, in some sense, inevitable in Q-learning. For example, without answer return, it's really difficult to scale up Q-learning.
SPEAKER_00I would like to say that it's almost infeasible. I mean, of course, it might have used exotic, obscure techniques somehow that magically fixed Q-learning, which I just couldn't find. I don't know.
SPEAKER_01So, OK, because we mentioned this earlier, So you have this large n, and a large n is going to drive up the variance, which is going to make it harder to learn. But the reason that it drives up the variance is because there's something unobserved, which is all the intermediate actions. So what would happen if you did action chunking here? Would that solve the problem?
SPEAKER_00I think, actually, that can be the solution. And I think action checking is somehow coincidentally also one of the things that, especially these days, many robotic folks like to use. And I think it also has that nice side effect. I mean, it's a good side effect that it can potentially reduce the variance in the TD learning objective at the expense of learning very potentially complicated Q function. So now we are kind of like putting all the burden input Q function.
SPEAKER_00So there's some trade-off there.
SPEAKER_03Yeah.
SPEAKER_00So here, what I wanted to emphasize is that NSTEP CD learning actually improves scalability and moreover asymptotic performance by just reducing the value horizon. I mean, NSTEP return is actually not at all a new thing. I think it's also used in maybe one of the first Atari DQN papers. But I mean, in many previous cases, people tend to think about NSTEP learning as a more like a simple trick to like accelerate training or like improve sample efficiency or
something like that.
SPEAKER_00But here my claim is that it's not just that. It actually improves asymptotic performance by reusing the value horizon. And also it kind of supports the previous claim that Q-learning, especially bias accumulation, somehow fundamentally inhibits the scalability of Q-learning. So that's like the point that I wanted to make here. Is it all we need? Can we now scale up Q-learning with NSTEP TD? It turned out that this is unfortunately not the case. For example, this is the 8Q manipulation task with a pretty hard dataset.
SPEAKER_00Here, SAP plus BC completely failed. And if you do NSTEP SAP plus BC with tuned N, it's still completely failed. So I was not able to make this work on this task, even with 1 billion data. In the paper, we hypothesized that this is actually because, or in order to make key learning scalable, we not only need to reduce the value horizon by reducing the Bellman recurrence, but also we need to reduce the policy horizon.
SPEAKER_00Basically, what this means is that we want to train a hierarchical policy so that each of the hierarchical policies, like the high-level and the low-level policy, only kind of think about, like, like the square root of the Ryzen, the effective Ryzen, so that we can reduce the post-Ryzen. And then we hypothesize that this can actually help improve the scalability of Q-learning or off-post-RL in general. And how can we do this? Well, to do this, we need to use some hierarchical RL.
SPEAKER_00Probably, as you know, many hierarchical RL methods are often pretty much complicated because we need to train two pulses, the high-level and the low-level pulse. And we also have to tune hyperparinters for each of the two pulses. And then we also need to tune some RL, like value-learning hyperparinters. There are so many things to tune. So in the paper, we tried to propose potentially one of the simplest full hierarchical RL methods that don't require a lot of tuning while reducing the
SPEAKER_00pulse and value horizon so that we can improve scalability. So here's a recipe that we call Sharsa. The value learning objective is very simple. It's actually not even RL. It's just salsa with instant return. So basically there's no like max over A or something like that. So it actually fits the behavioral Q function and value function with just like data set action. And G means like goal because this is goal condition. For the policy, we have two policies. One is high-level policy and the other one is low-level policy.
SPEAKER_00And they are basically both trained with flow behavior cloning, or maybe you can think about this as like decision policies. So basically the high-level policy, given a goal, outputs a waypoint or sub-goal, W, and then the low-level policy takes that W as input to output a row action. And these policies are basically trained with flow behavior cloning, but I do additional reaction sampling only for the high-level policy. So basically what this means is that I first sample n waypoints, where sub goals from the behavioral high-level policy,
and then evaluate the goodness of these waypoints based on the learned Q function
SPEAKER_00from the this like the algorithm objective and then pick the argomax waypoint so that's like the definition of the high level policy and the low level policy is a literal bc so basically you know every component is trained with like either salsa or flow bc they are like in some sense like hyper parameter free at least like rl hyper parameter free which is good um and and there's like one one like bit for improving optimality, which is rejection sampling. So, I mean, the goal of this method is maybe not to achieve the best possible performance, but just to show that even with this simple technique,
SPEAKER_00because we are reducing the horizons of the value and pulse learning, we can actually improve scalability then. So that's basically the rationale behind this method. So here's the result. So this is the test that I showed you, a cube of tuple. And existing, like, SACLOTPC or NSTEP SACLOTPC almost, like, completely failed. But if we do SHARSA with both value and positive weather reductions, then actually, we were able to achieve the first non-trivial performance on this task. Even though, you know, it kind of goes down with one billion data set, I think this is mainly due to the simplicity of the algorithm.
But this is actually almost like the only method where we were able to achieve
SPEAKER_00non-zero performance on this task. And in the paper, we have a pretty big plot about all the four tasks with a bunch of different horizon reduction techniques, including and SAPSAPLUS VC or some other horizon reduction techniques, which I didn't explain here. But basically, the conclusion from this plot is that horizon reduction makes RL scalable, hence the title of the paper. So yeah, that's basically my summary of the paper. And hopefully, it makes sense to some degree.
SPEAKER_00Yeah. Very cool.
SPEAKER_01Yeah, it's really interesting stuff. So just right away, I guess it still seems like the issue is always exploration and how often, like how often these particular rare outcomes are even represented in the data set. So like one thing that strikes me, not just about the, you had three examples of really successful reinforcement learning, right? They were AlphaGo, Um, uh, Dota and five, I guess is what they called it. Sorry. The third one was, um, right.
All of those start with a really good base model that succeed like 70% of the time,
SPEAKER_01but which I, which does not look like it happened in this. So could you expand on that? Like, what do you think? Like basically is this now there are, there are lots of domains where exploration is just not tractable. We don't have a base model, but like, is it, how does that fit into what you're describing here? I guess. So here, it's more like kind of, so I tried to abstract way expression in this paper.
SPEAKER_00Basically, the argument is this. So even with the best possible base model, can we do RL in the real world for robotics? I mean, assuming that we have somehow... Well,
SPEAKER_01we don't have the data to train a good base model. Fair enough, though. Okay, yeah.
SPEAKER_00And my claim is that even with the best possible base model, I mean, unless it can just solve the task, to scale up RL, we really need to have some scalable off-pulsory algorithm, which we may not have existing technique. So of course, we also need to solve the expression, which is a separate problem, like a very big topic, which I'm not touching in this paper. But yeah, that's my basically stance.
SPEAKER_02So Hong, I want to get your thoughts about just how you quoted Kyle saying basically on policy, RL is a disaster for robotics. So even just 100 steps is like one, two weeks of robotic time, right? And you're saying that things like games and RLMs, things that you can simulate, let's say pretty well, and you can do all the reset and therefore you can do it. What do you think of world models?
SPEAKER_00Oh, yeah. In some sense, they are data-driven simulation that you can reset very easily.
SPEAKER_02Do you think it's possible? I actually feel... Do you do online, sorry, on-policy RL, just using world model?
SPEAKER_00That's actually a very good point. I think as a scalable solution to off-pulse RL, I do think model-based RL can be a very promising solution for the following reason. So what is model-based RL? This includes word models that you mentioned. So we first learn a model, which is word model, using maybe supervised learning. So this is actually supervised learning. We just predict the next state from current state and current action. We know that this is scalable because this is super learning. I mean, with infinite data, we can make this arbitrarily accurate, which is good. What we can do in this model is that we can actually run
unpulse RL purely within
SPEAKER_00the model, like treating the model as a simulator. We also know that unpulse RL is scalable. So by combining these two components, we are somehow combining two scalable components together. And maybe as a result, the resulting framework might also be scalable. And somehow, interestingly, the resulting framework can actually deal with off-pulsed data. Because for model learning, we can actually use any arbitrary transition data. So I do think model-based RL is actually pretty promising for this reason,
especially for the fact that we don't have to use off-pulsed queue learning.
SPEAKER_00Yeah, I think it's a very promising direction. And actually, I'm currently also working on this just to see whether actually we can scale up modal learning and like this on-pulsar with the modal with like near infinite amount of data. Yeah, that's my, like, one of the three potential guesses for, like, scalable or false RL algorithm. Because I'm just sharing the screen, let me just also briefly explain the other two. So the first solution is, for example, we can somehow do recursive horizon reduction. So the problem with the existing horizon reduction,
like methods, like and so on, is that
SPEAKER_00they only reduce the horizon by the factor of n, right? And that's a constant. So if the original problem axis is n times longer, then still we have to deal with the long horizon. So if there's some way to recursively break down the horizon, like for example, more like divide and confirm inner, so that we can limit the number of elementary quarters by log t or something like that, then actually we can deal with exponentially longer horizon. And that actually might be able to...
SPEAKER_00scale up to much longer horizon and much more complex problem. Another possibility is that maybe, I don't know, maybe some, like, exotic or false RL algorithm might be actually, might scale better than, like, more traditional Q learning. Like, for example, there's one interesting method called quasi-metric RL, which actually kind of performs goal-contra RL based on some, like, interesting metric learning objective. And then it doesn't, like, depend, it's not based on, like, traditional TD learning or bootstrap value learning.
SPEAKER_00So maybe these kind of, I don't know, very different things might eventually scale better than key learning, which I don't know, but it might potentially be the case. And I do think finding really scalable off-post algorithm is a very important problem even in just machine learning. I think we are having a lot of scalable objective for many other fields like NLP, CV, and even OnPulse RL, but I think only maybe not only, but like in OTPOS RL,
SPEAKER_00I think we are currently lacking a truly scalable algorithm. So I think we need more algorithmic research in this regard. Yeah, so it seems to me the third one is like magic sauce that we discovered.
SPEAKER_02But the first one is like maybe slightly smarter way to deal with N. But the second one, I just want to tap on a bit more. So you consider something like a world model to be like a model base, and then you do on-policy RL within that model. What do you think would be the shock for? Like, do you have some gut feel? I know you're exploring this activity now.
SPEAKER_00So, are you asking, like, what do I think about the... Yeah.
SPEAKER_02Like, let's say you... By the time we get to feel four, feel five, you know, like, basically, you can't judge reality anymore. Like, at least, you know...
SPEAKER_01I assume it would have to be a loop, right? Like you'd have to learn your model, train until convergence, test, and keep doing that.
SPEAKER_00Yeah, yeah, yeah. I actually do think model-based RL can be, I'm actually, how do I say, compared to like four months ago, I'm more avid model-based RL believer than before. because of the potential pathologist with model-free Q-learning. I might change my mind after spending more time in Model SRL, but that's my current belief.
SPEAKER_01Have you seen any results that have convinced you? Or is it more just like you think the idea is the right one?
SPEAKER_00So we're actually currently working on this. And then we actually changed a word model, I mean, state-based word model in some Puzzle environments. And then I was able to achieve pretty good performance, at least in Puzzles. Without horizon reduction. I think that's like due to the strength of like unpulsive. So I'm not sure like how it works on other environments. Like for example, actually in humanoid domains, we're currently struggling to make models work because they are, the model has to fit very contact rich dynamics, which seems to be pretty hard. But still like it's a supervised learning problem.
SPEAKER_00So I think at least theoretically, we know that with large enough model and enough data, we can do that.
SPEAKER_02Yeah, so I mean, for that one, I mean, to get a damn good word model, you probably still need a lot of real-world data.
SPEAKER_00I mean, but there, we don't have to collect data in an unpulsive manner. So we can actually just collect data by just whatever means. It can even use like YouTube video or something like that. And we can build a very good word model and then do unpulse RL within the model. This might be much better than, for example, actually doing close loop, on-pulsarial training with human data collection. That's, I think, very hard.
SPEAKER_01There's probably some combination of the two that you could do, because I definitely feel like if things like contact dynamics are very local, that's why they work so well. It's going to be real learning right now. Right, right, right. yeah so if the world model is struggling with that maybe it just doesn't need to do all 10 i don't know you have the lower level in the hierarchy handle it i don't know oh that's really cool it's a exciting start yeah yeah yeah but i think anyways
SPEAKER_02like i like i said i really enjoyed the blog post you wrote I think rarely do we see a paper and then followed by another blog post to explain in further, like, layman time. But I thought that was a, you know, really systematic attempt to at least explain the problem. And, you know, yeah.
SPEAKER_01Yeah, I agree. The paper really caught me in the blog post because it's like, it's very... I think offline RL is something that seems very, it seems so important to getting to really scaling robotics in general. Because like you're saying, on policy just doesn't work for most tasks. And yet, right. But it sounds like there's no hope now.
SPEAKER_02Now we're going to pray for a world model. Or just collect a ton of like demo data and just either BC the hell out of it or get a world model and then do online policy on it. I think maybe because at least we have a pretty good benchmark for testing,
SPEAKER_00at least pushing the limit of the scalability of RL. Because we have these problems. Hopefully, I think maybe in a year or two years, we might be able to actually find new or maybe scale up existing techniques, like some solution to a false RL. It was actually, that's like one of my goals.
SPEAKER_01I feel about just using better reward functions, though. I know this is, it's like, there's one problem with the billion example, right? It's just like, there's not going to be much signal, right? Because like, there's so hard to get there.
SPEAKER_00Well, it's actually a very good way of doing horizon reduction. So basically, by using dense reward, we can actually can reduce the number of effective horizon, like the look-wise tab for the normal. That might be actually very good practical solutions in practice. But as an algorithmic researcher, I want to find, like, more ideal, like, an algorithm that can actually deal with horizons of arbitrary lengths.
SPEAKER_03That makes sense.
SPEAKER_02Yeah. Yeah, I mean, there are some works, I think, what was the one that, from Jason Ma, was that the GVL? So it's, you know, giving you some kind of value function as you get along, that kind of thing. Yeah. May not be super precise, but then, you know, yeah, it helps instead of zero, zero, zero, zero, zero, before you finally see a one. Yeah. Right. I think those kinds of works can be somehow treated as Monte Carlo value learning. I mean, it's not exactly that, but somehow value learning without involving TD learning.
SPEAKER_00And I think in that sense, it can be pretty promising because I think TD learning is kind of the, in my personal opinion, it's like everywhere in the like office RL. And I think we want to avoid it, especially when it comes to scalability. By the way, I have one thing that I want to mention before. There might be actually some really magical technique that enables scaling of skillet. For example, I mean, even for a neural network, I think it was developed a very long time ago, but it was only after
SPEAKER_00finding the right way to initialize network weights and use the right non-linearity, then we were able to, like, somehow scale up, scale up, like, neural network training. And the same for, like, DQN. I mean, Q-learning, even in some toy environments, it didn't work. But, like, Penny, like, 13, like, I think... The DQN authors found that using a target network or replay offer actually enables working Q-learning on the target games. So maybe like these kinds of very small tricks might actually somehow enable even the scaling of Q-learning. And maybe just we haven't found like that small trick.
So I think I can also imagine that kind of feature as well, which is possible.
SPEAKER_02Yeah. Yeah. Anyway, maybe as a wrap up, like, uh, we, we, we like to ask this question, like, is there any paper that you read recently you want to give a shout out to? It doesn't have to do like, you know, all this like offline policy or whatnot, like anything that, that, that interests you, pick your interest.
SPEAKER_00Um, um, Does it have to be, like, robotic paper? No, it doesn't have to be.
SPEAKER_02Anything you want to do, Jessica, if you have a shout-out to.
SPEAKER_00Okay, this is, like, too out-of-the-topic, but I really enjoyed reading Goku's Suami's All Roles Lead to Like a Loot paper. It's actually about, like, RLHF and LLMs. But I really like the quality of the paper. So this is, like, one of the few, like, papers that actually stand out in terms of the quality. I can, like, feel, like, how much effort he put it into this, like, work. So I still remember, like, all roles lead to likelihood or sorry, then. Oh, I...
SPEAKER_02Yeah, I think reinforcement learning fine tuning, is it? Yeah, yeah. Oh, yeah, yeah, yeah.
SPEAKER_00It's kind of related to RLHF, but I really enjoyed reading this list. And it's also excellent solution. Awesome. It's like two out of top papers. Reinforcement learning. Yeah.
SPEAKER_02Very awesome. Yeah. Yeah, thank you so much, Seo Hong. I thought, at least I speak for myself, I learned a lot from that blog post you wrote. Yeah, so thanks for writing that.
SPEAKER_01It's very interesting. Great stuff. Thanks for going out.
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....
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...
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...
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...
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...