This episode features the NeurIPS Best Paper award winners, Kevin Wang, Ishaan Javali, Michał Bortkiewicz, Tomasz Trzcinski, and Benjamin Eysenbach, discussing their work on RL1000. They explain how they defied conventional wisdom by successfully scaling reinforcement learning networks to 1,000 layers deep using self-supervised objectives and specific architectural components like residual connections. The team also explores the implications for robotics, the blurring lines between RL and self-supervised learning, and future research directions like model distillation and multi-dimensional scaling.
So welcome to Lanespace. We are basically trying to provide the best optimal sort of podcast experience of NeurIPS for people who are not here. And congrats on your paper.
How's it feel? Yeah. It was very exciting.
Yeah. We had a poster yesterday, and then today we'll have an oral talk. Were you just, like, mobbed?
Oh, There was a lot of people. It's like three hours straight of like, you know, like waves of people to like that were we were trying to stupid. So I've never received the best paper.
Did you just find out on the website?
Oh, I just like woke up one day and like checked my email and then They just tell they just, like They was like, oh, like, that's pay like, I just saw your email. Oh, you were like, been awarded best paper. I'm like But maybe you know from the reviews as well.
Right? Is that okay? Yeah.
We know from the reviews that we did well, but there's a difference between, like, doing well on the reviews and getting best paper. So that part, we didn't actually know. Yeah.
Yeah.
So I I I skipped a little bit. Maybe we can go sort of one by one and and sort of introduce, you know, who you are and what you did on on on on the team. I'm Kevin.
I was an undergrad from from Princeton. I just graduated.
And, yeah, I guess I led the project, like, started the project, and then well, I was very happy to collaborate with Ishaan and Nicole and Ben also.
Right. And were you in, like, the same research group? Like, how do you how what's your Yes.
context. So so yeah. So we're all from Princeton.
Yeah. We're and thanks to Alan for booking you guys. So this project actually started from, like, an IW seminar.
So like like, independent work research seminar that Ben was teaching. And this was, like, actually, like, like, one of my first experiences in, like, ML research. So it was really valuable to, like, get that experience.
And then Yoshana was also in that seminar and working on adjacent things, so we collaborated a lot during that seminar. And then, yeah, the project turned out to have some pretty cool results. And then later on, also, like, Halt working on sort of similar things also joined it on the project and became, like, a good collaboration.
Yeah. And I I don't know if any of you guys wanna wanna chime in on, like, other elements of coming into, like, deciding on this problem.
So it's, like, probably my lab works on deep reinforcement learning. But historically, deep meant, like, two or three or four layers. Not 1,000?
When Kevin and Sean mentioned they wanted to try really deep networks, I was kinda skeptical it was gonna work. I've tried this before. It doesn't work.
Other papers have tried this before, and it doesn't even work. So I was very, very skeptical starting out.
that was my prior going in because But do you do you view your job as, like, screening or, like, hey, guys. This is probably isn't gonna work. You should try a different idea.
You know, like, or should you be encouraging even if it's dumb? It's selecting bets.
Yeah. And this was a bet I was willing to make. What what made you willing to make a bet?
It seemed relatively low cost, and that we Mihaly, in particular, had spent the past year developing infrastructure that made it a lot easier to run some of these experiments. And the precedent was deeper numbers could do a whole lot better. Like, that's what the deep learning revolution has been over the last day.
Yeah. I know. Why do we stop making them deeper?
And reinforcement learning was like this one anomaly where we continue to use these really shallow networks. And that's particularly true in the settings that we were looking at where you're starting from scratch. You're starting from nothing.
Any other perspectives you guys wanna chime in with? I guess maybe I should just go over, like, an overview of our project. Yes.
Okay. Sorry. Yes.
So the way that I kind of view our project is that if you look at the landscape of deep learning, you know, you have NLP, like language, vision, and then RL. And, like, as Ben kind of alluded to, you know, like, in in language, in vision, we've sort of converged to these, like, paradigms of scaling to massive networks. Right?
Like, hundreds of billions of parameters, trillions of parameters, and there's been, you know, a lot a lot gained from in deep learning from from that. Right? And then but then it seems like in the third sort of branch of deep learning in deep RL, that has not yet been the case.
Like, I was very surprised, like, coming into some like, you know, Ben's class and seminar when I was looking at the networks. Oh, why were you just using, like, a simple, like, two layer MLP for, like, these frontier sort of, you know, state of the art RL algorithms? And so I was very curious.
Like, can we design RL algorithms? Can we sort of put together a recipe for RL that can allow it to scale in potentially, you know, analogous ways that language and vision might scale. And so what we did is that we know that traditional RL, like, let's say, like, value value based RL doesn't really scale.
Right? This is pretty clear from the literature. So we tried a different approach to RL called self supervised RL where instead of learning, like, a value function, we're learning representations of states, actions, and future states such that the representations along the same trajectory are pushed together, the representations along different trajectories are pushed apart.
And this is just, like, a different approach to RL that allows us to learn in a self supervised manner. So there's we can solve task reach goals without any human crafted reward signal. And so we know that self supervised learning is scalable in these different areas in deep deep learning, so can self supervised RL scale in similar ways?
When we first tried it, it actually didn't work. Like, we've made the networks deeper. The performance, like, totally degraded.
But then we also but then I separately, was like there's also some other work, like, in in our literature, like, we tried, like, residual connections, and then there's other a few other architectural components that we had to put into the recipe. And then all of a sudden, like, one day, like, I ran this experiment, and there was, like, this one environment in which there was, like like, going from, like like, doubling the depth didn't really do anything, but, like, doubling the depth again with these different components suddenly, like, skyrocketed performance in this one environment.
Getting this to work was very nontrivial in the sense that, like, usually, when you think about doing hyperparameter optimization, we try changing a, see if it makes it better, try changing b, see whether it makes it better. And if we just made the depth bigger, makes it worse. If we just add residual connections, didn't make it better.
And it was really this combination of factors that Kevin and Sean figured out that really made this work.
And as a precursor to that, we also try scaling along different dimensions. So scaling the back size, scaling the the width of the networks or the hidden layers. M effect.
Yeah. Pretty much kinda similar to just scaling depth naively. Yeah.
And then once we started introducing residual connections, layer norm, these specific architectural choices, that's when we saw significant jumps in performance, like these critical depths at which performance multiplies by a pretty huge factor, and that's where we really noticed, like, unlocking some significant performance gains as opposed to scaling just along with which did yield some performance improvements. But when you look at the number of parameters that your network has as you grow with, it's roughly a quadratic as opposed to something like growing depth. So it's more in some sense, it's more parameter efficient, also more sample efficient from the experiments that we conducted.
Nice. In some ways, you're sort of replicating stuff that is seen in the wild, but on on a very small model that you can study. Is that would you would you say that's Yeah.
So I kinda add to what Kevin said earlier. We saw these huge performance improvements in language models, image generation models by making them larger, making them deeper, which seems very intuitive. Yeah.
And so that's why our work, we we draw from, like, foundational research, right, like residual networks, which employ residual connections to avoid vanishing gradients, and that's something that we show in some of our ablations in our in our paper, like, further down. It's probably in the appendices where we did experiments without these residual connections. And so it's sort of borrowing these concepts that have existed in other fields and applying them to this setting with RL and showing that it works.
Before Ben has to have to go, I'll I'll leave the sort of last word to him. What additional work does this inspire that, like, that that you want to push on next?
I'll directly answer the question. Yes. I think the thing I might clarify about paper is, I think a lot of people reading the title are like, wow.
Big networks. They're great. I'll take big networks.
You solved it now. We can just go. Yeah.
We just take big networks from the add them to PPO. Add them to SAC. Add them to your favorite reinforcement learning algorithm.
But I think it's actually not the main conclusion. I think the main conclusion is that using big networks not only requires these architectural tricks, but also, as Kevin mentioned before, it requires using a different objective. This objective doesn't actually use rewards in it.
And so there's another word in the title, reinforcement learning, that also might be a little bit of a misnomer because we aren't directly trying to maximize rewards. Our code doesn't have a line of code saying maximize rewards here. And so is, at the end of the day, this a reinforcement learning method?
I don't know. It looks much more similar to the self supervised methods in other areas of machine learning. And so I think that the method and the work really stands in some sort of interesting intersection of reinforcement learning and self supervised learning research.
And we had this little figure on the bottom left of the poster. There's a screenshot of a slide from talking about how to build intelligent systems and whether that's gonna be done by unsupervised learning or supervised learning and reinforcement learning. And I think what our paper really suggests is that the boundary between these things is really blurry, and maybe the keys to building intelligent systems are gonna be leveraging insights from all of them.
Yeah. The layer cake. Exactly.
Well, thank you for your time. I know you I know you have to go soon. Looking forward.
Yeah. Jerome, thanks. Yeah.
Thank you so much for coming. I I think that that insight of, like, blurring things is interesting. I I don't know if you like, you you were talking about sort of, like, the abstraction layer of representation learning.
I don't know if if that triggers anything in terms of, like, the mix between self supervised and reinforcement learning. Is that is that something fundamental that you've discovered or that we've that people don't understand when they when they read the paper? Yeah.
we know that standard RL is not super scalable. And so, like, why can this different approach or different objective RL be scalable? I think it's because we're fundamentally shifting the burden of learning from something like like q learning or, like, regressing to, like, TD errors, which we know is quite spurious and noisy and biased, to fundamentally, like, a classification problem.
We're trying to classify whether future state is along the same trajectory or along a different trajectory. And we do this with representation learning. Right?
And we know that classification, cross entry loss, and representation learning is scalable in the deep learning literature. Right? If we think about language and, like, some of the objectives there.
So in some sense, we're kind of blurring the the lines. We're doing reinforcement learning. It's still an actor critic reinforcement learning algorithm.
It's like a goal condition reinforcement algorithm. But the objective the burden of, like, learning of the of of solving that RL task shifts to something that's more similar to objectives that you might see in language and vision that we know have scaled so much. And so I think yeah.
I think that's, like, one of the fundamental insights that we've seen is that it seems like by approaching RL in this different approach, we're able to, like, get so much more out of we were able to scale our networks, like, significantly beyond what was, like, standard use in Aural. Can I jump in?
yeah, we use another objective, the influence here, so the contrastive flows. However, the architecture is quite similar to the previous works of previous papers like Brau or Simba, Simba, Simba, two, Simba one, Simba two. So we we also tweaked a bit of this architecture.
However, it's not that we like invented the wheel for the first time. It's the merging between the architecture and the objective that makes the scale really, like, go up and and and performance follow the the scale. I think that's something that we should probably mind deeper.
Do you think I guess, like, what domains, what industry like, you've you've applied it on on multiple different types of networks that are or datasets. Is there a particular affinity that you think, like, has is, like, sort of low hanging fruit?
Yeah. So, actually, if you look at a lot of our tasks there, particularly sort of like robotics tasks. So this is personally, I I'd be very curious about how a work like this could impact, like, the robotics field.
Like, my understanding of robotics is that a lot of robotics are now there's kind of multi a few different approaches. Like, one approach is we wanna train the robots using imitation learning. So we try to collect, like, an insane amount of data.
We have a ton of cubers human supervision, and we try to scale up this data, and we're, like, learning with imitation learning. Like but on the other hand, potential like, perhaps there's another approach, which is, like, for example, like, goal condition reinforcement learning, where we can actually train robotic agents and train RL agents to solve meaningful tasks with absolutely no human supervision. No demonstration.
It's much more scalable. Yeah. So, yeah, so this could serve as an alternate approach.
And perhaps instead of, like, scaling data, like, scaling manual, like, human supervision, which which is, you know, not super scalable, if there are ways to sort of make goal condition reinforcement learning scalable, and, like, we can just scale the architecture or we can scale Because you're focused on all your objectives. Yeah. Right.
With with certain different objectives. I think that could be very exciting to see how to see how that can affect a field like robotics, for example. Yeah.
Double click on on just one more one thing on the efficiency, which you Igor was talking about. I would expect the very deep the deeper it is, this should be quadratically worse. I am not familiar with, like, the the preexisting literature.
I'm just, like, sort of working out intuitions. Mhmm.
found that I think you might wanna warn people about? Because because you you are the guy who mentioned efficiency. So Sure.
Sure. Yeah. So I was referring to, like, one of the figures on our poster also in our paper where we compare, like, the number of parameters that models have as we scale along the axis of depth and then as we scale along the axis of width Yeah.
From our baseline architecture the most baseline one would be, like, a width of two fifty six like, the hidden layers have two fifty six neurons, and then the depth is four four layers or hidden layers. And so the point I was making there is that when you scale along depth, your the number of parameters that your model has is gonna grow roughly linearly. Whereas with with, you're making your network outputs wider, and then the input to the net next network is also growing as well.
And so the the number of parameters your network's then gonna have grows approximately quadratically. And so one of the experiments we did was sort of examining, as we grow the number of parameters in our model by scaling along these two different choices, which one for the same, like, approximate number of parameters yields a better performance. And the depth curve kinda goes like this.
It jumps up pretty fast. That's, like, present throughout our paper. For width, it grows a little bit more slowly.
And so that the kinda takeaway from that is that if you are a bit more resource constrained, scaling long depth might be better because there's fewer parameters with a smaller model to a smaller number tool learnable parameters. Which is expensive. Which is expensive.
Exactly. And in general, of course, like, more parameters is also gonna be more expensive.
to think about when using these networks, I suppose. Yeah. Any other sort of rules of thumbs like that that I can extract?
This is just the most basic one that I could think of. Yeah.
I don't know if there's any others. Yeah. I guess, like, to your original question of, like, the trade offs.
Like, one of the trade offs one of the limitations that we say is, like, obviously, if you make the networks bigger, the it it will takes longer to run. Right? So if you, like, double the depth at some level of depth, you you it might take, like, twice as much to, like, take make a forward pass through the network.
Right? However, this is not so, like, within our paper, like, for most environments, we are able to, like, saturate like, get to, like, almost perfect performance within just, you know we don't even need to get to, like, a thousand layers. Like, maybe just 64 layers, for example, is sufficient.
And in this regime, like like, the the latency of the network is not necessarily actually even the not necessarily, like, a a significant bottleneck. Like, you can imagine there's a lot of tasks in which especially in RL, that, like, collecting data might be the bottleneck. Right?
And making forward passes through our network may not be the bottleneck. And so in our environment, we in our research, we specifically use the JAX g c r l environment, which is a JAX based GPU accelerated environment. So we can collect, like, thousands of, like, environment trajectories, like, in parallel at the same time so that we're able to, like, make, like Oh, this is built in.
Right. This is built in so that we can collect, you know, like, like, a thousand trajectories at the same time along all these environments, and so makes that make sure that, like, we have enough data to, like, saturate the learning from things. Wow.
Yeah. That's, like, work they have in columns. Okay.
And you I don't know if you wanna explore expound upon that on the drug use of Sierra.
Maybe I And and, you know, most people are familiar with PyTorch. Maybe less familiar with JAX. With JAX.
the traction, especially in RL field because the in for online reinforcement learning, getting as much data as you can is is the most important. There's gotta be a PyTorch equivalence. But anyway, how are any tips for other people also exploring this kind of rollout?
Yeah. Yeah. So I think I can also recommend, like, for for well conditioned RL, I'm recommending JaxDCRL but there are also like multi agent Jax implementation and others.
So going back to our paper, if you look at the plots, only see this like huge performance increase when we cross like 50 millions of transitions gap.
think the data is crucial like here. Yeah. I guess even to build on that, I like drawing analogies to like successes in other areas of deep learning.
Like, for example, in large language models, the reason why we're able to scale to such large networks is that we found a paradigm in which we can leverage the entire Internet scale of data to learn. Right? And so data in RL traditionally has been hard to come by.
But now with these, like, GPU accelerated environments, we can collect hundreds of millions of times of the data within just a few hours. And so I think that this serves as, like, a really good test bed for us to be able to also find ways to scale up, like, network capacity and get similar kind of gains.
you would do pretraining differently in LLMs? Like, what's the what's the difference objective now? Yeah.
I mean, I mean, very simply very simply, the the paradigm that you're referencing is next word Yeah. Or next token. Right?
It's very robust. Yeah. Yeah.
do you change that? Oh, I'm not saying that we're changing it. I wanna leverage insights from that to apply to our RL.
It's I I feel like you should go the other way. You think you should go the other way? Yeah.
I mean, that that would be a very interesting research direction too. But, actually, yeah, even on that point, like, one of the things I was thinking about is that the way that our our objective works is in some set it's not exactly next word prediction, but it's kind of like next state prediction. Right?
You imagine you're at some current state and you're at some current action, and we wanna predict whether or not this future state, this this certain state is a future state along the same trajectory or a different trajectory. And so in some sense, we are actually doing some sort of, like Implicit world model. Implicit, like, you know, like, in in I don't know if that's a bad word this this is.
Or, like, in language, you you do a cross entry loss to classify the next token. Right? And here, we're just doing a binary classification of, like, whether or not some next state is some Yeah.
Yeah. Yeah. It's a classification.
Yeah. Yeah. Yeah.
to of what enables deep learning to scale, and then how could we, like, leverage that how how we can distill those, like, insights and then apply those across, like, all different fields, whether it's language or reinforcement learning. Yeah. Did you did you get my my meaning about the role model stuff?
Yeah. Yeah. Actually, I I and I I heard I think I might have heard professor Eisenbach yesterday talking about this at a poster, and he's explaining to a couple of people that because this isn't, like, doing representation learning and trying to learn these meaningful representations for a given state and action been for a given goal, in some sense, can think of it almost like learning a model of environment, learning a model of the world, but without having to do any sort of, like, next frame prediction or stuff like that that's a little bit more high dimensional and complex.
Yeah. Yeah.
the the angle that I'm trying to think about and push is instead of learn the next world, that they're they're basically, like, generate a number of candidate possible worlds and classify them, to your point, which is exactly how I do things. Let's say I'm playing poker, and I'm trying to classify what hands you have. Well, there's a range of hands based on what you're you're doing, and the more information I get, the more I resolve to, oh, I know exactly what had you have based on what you're showing, you know, or you're buffing.
But that's a that's a term of thing. But, you know, you know what I mean? Like, I I I feel like that is the ultimate sort of angle of representation Mhmm.
Which is a a world. But I don't know if that is too vague compared to the more concrete types of world models that, let's say, the video gen people are doing. And then I I guess one one other thing that I I I'm also exploring.
I you mentioned, like, the deep models being slower or more expensive. Yeah. That that is a trend in the inference world of making models shallower.
Right? And I wonder if this, like, short catchphrase I was thinking about, like, deep teacher, shallow student would be a good deployment paradigm.
Yeah. Like, you push the frontier capabilities with the with with that and then you distill Distill it back. I actually, this is a good point.
Like, if you go out to our website, like, this is one of the future directions that we list at the very bottom. Oh, okay. Yeah.
We we we we would love to see if we could get similar performance. Like, we pushed the you know, like, we do achieve state of the art performance on goal condition RL and Jack's GC RL by a significant amount, and so it was very exciting to see the the, like, the the sort of frontier of the ability to train RL agents sort of pushed. And if we can do that in a way that also sort of is just as efficient as a standard, you know, networks, that would be very cool.
So, you know, like, is it Yeah.
doesn't have to be the the same thing that you deploy at inference. Right. You know what mean?
So Yeah. So if there's ways to, like, to scale down to a smaller model or prune the model and maybe not and still retain performance, that's a very interesting research structure that we should put. Let's talk about other future directions.
What what what else is your personal passions?
Yeah. So currently, I'm I'm pursuing direction of stitching in reinforcement learning. So we are trying to generalize reinforcement learning from shorter sub behaviors so that they are stitched, merged during the test time.
last papers that I will tackle during the PhD. Personally, I would I'm very curious of like, can we like, what's the real like, can we push? I'm I'm I'm curious about, like, advancing the frontier as much as possible.
So if you actually look at our paper, we focus on scaling depth, but we notice that we see that scaling width actually also improves performance, and we also find that actually by scaling depth, we actually unlock the ability to scale along batch size as well.
So this is Ah. One of yeah. So so okay.
like yeah. Right. So, like okay.
I guess for context, like, in traditional RL, like, value based RL, scaling batch size is not super effective. But there's we also can see there's also other work in other areas of deep learning that show that scaling batch size is only most effective when there's, like, a large enough network capacity to take advantage of the scaled batch size. And we actually find that, you know, perhaps so one hypothesis might be, like, perhaps the reason why scaled batch isn't that effective in traditional RLs because, like, we've been using these tiny networks that haven't been able to capture that.
And one of our experiments is that, like, because we are enabled sequential training of deep network, we actually were able to this is a great test bed for, you know, like, testing this hypothesis, and we find that indeed, as we scale to network capacity, we also unlock this different dimension of scaling Biopsy. And so all I about to say is that I'm very curious for someone, like, with enough compute to, like, take some of these environments, scale up batch scale up depth to the maximum capability, also scale along with also scale along batch size. And let let's like, basically, like, in the same way that in language, we're we're scaling on so many different axes, can we unlock different dimensions of scaling as well, and what capabilities and how far can we push the frontier of training these RL agents from doing that?
Before we pass it, Sean, when you say enough compute, what kind of compute budget did you have? How how does it how you know, I just wanna That's that's see what you guys got. Good question.
So we we wanted to make sure that this is we we wanted to make it such that, like, you know, it's quite accessible. So I keep the nice thing is that all of our experiments, even a thousand layer networks, can be run on one single 80 gigabyte h 100 GPU. So that's So it's dollars.
Yeah. Right. Right.
Right. So everything can be run on one GPU. But in theory, if we had, you know, like a distributor training setup and, like, can just, like, blast compute through this and really wanted to push the frontier, it'd be very interesting to see how things go.
Yep. Cool.
role models at NeurIPS. I'm going to a lot of Machine language action models? That's vision language.
Vision language. Yeah. Yeah.
Yeah. And, yeah, curious about applications of representation for these yeah. Exactly.
For robotics. Actively trying to explore more in that area. So just reading a lot of literature, talking to as many people.
It's like yeah.
We just released our episode with Geno Intuition. Oh, okay. Awesome.
Where if if you know a bit about their history, they started as a gaming clipping company, and they basically have a vision language action model. Yeah. Which I I saw I saw a preview.
It was very impressive. I'm not sure exactly how transferable it is to embodied use cases, but it doesn't have to. Like, screen is fine.
You know? Like, yeah, I I I don't know if you have any takes on Yeah. It's an exciting research direction.
Definitely. Yeah. I I I think the the the the the concepts of actions as as something that you are outputting is actually not that popular in industry.
Right? Only because text has completely dominated the last three years, and tool calling and which is just another form of structured text. And and I I feel like the action research is is kind of like I don't know how I don't know what needs to happen in order to unlock the next phase in in that.
I don't know if you if you're thinking anything interesting out here, shout shout it out. Yeah.
VLMs
and You freeze it, and then you apply it. Oh, yeah. And then you put train on top of that, like, set for the experts to output actions.
Also, like, systems for doing, like, hierarchical planning, maybe outputting some higher level plan that and this is, a larger network that takes a long time to a little longer to do inference, and so it outputs its plans with less frequency, like some sort of chunk, and then from there, there's, like, some sort of second system that operates a bit more fast. I think there's quite a bit of interesting research in that direction. So that's what I have what I'm looking forward to.
Cool. Final question.
question you were asked at the postal session or just favorite encounter, anyone famous that you met?
So I actually haven't gotten a chance to go to the conference that much. I'm actually working full time now. So Oh, dang.
Yeah. So so far, I I I actually literally just got my badge, like, a few moments before my intercession.
So I I guess I wouldn't be the best to answer that question. No. No.
No. Like, because you like, people ask you stuff. Right?
Oh oh oh I'm my I'm my coach.
sort of, like, a very eye opening. I think that the general question is that people thought it was a very eye opening paper because, like, the objective is quite simple. It's quite elegant.
And for us to be able to, like, you know, like I I don't wanna say, like, overturn, but, like, sort of challenge the conventional wisdom that, like, RL is not super scalable and push it to such limits, like a thousand layers deep and see continued improve improve performance. I think the general impression that I've gotten is that, you know, this this this could be, like, a really cool like, if if we can sort of build along this direction and that, like, we can really scale along to all these different dimensions and push the frontier of the ability for RL. I'm very curious to see how that goes.
Alright. Well, thank you so much for dropping by. Congrats on the paper again.
Yeah. And good luck in your future work. Thank you.
Thanks for having us. Yeah. Yep.
Thanks.
Shared via Hopper