← Lex Fridman

Pieter Abbeel: Deep Reinforcement Learning

Episode 2018-12-162018-12-16English

Guests: Pieter Abbeel

Listen to this episode00:00 / 42:56
Reading settings
Reading preferences
Text size
Download in-depth read
Read offline

English · In-depth read · Current version

Downloads are not available yet.

§01Transcript · 00:00–11:39

00:00The following is a conversation with Peter Abbeel.

00:03He's a professor at UC Berkeley and the director of the Berkeley Robotics Learning Lab.

00:07He's one of the top researchers in the world working on how we make robots understand and interact with the world around them,

00:15especially using imitation and deep reinforcement learning.

00:19This conversation is part of the MIT course on artificial general intelligence and the Artificial Intelligence Podcast.

00:26If you enjoy it, please subscribe on YouTube, iTunes, or your podcast provider of choice,

00:31or simply connect with me on Twitter @LexFriedman, spelled F-R-I-D.

00:36And now, here's my conversation with Peter Abbeel.

00:41You've mentioned that if there was one person you could meet, it would be Roger Federer.

00:46So let me ask, when do you think we'll have a robot that fully autonomously can beat Roger Federer at tennis,

00:54a Roger Federer-level player at tennis?

00:57Well, first, if you can make it happen for me to meet Roger, let me know.

01:02In terms of getting a robot to beat him at tennis, it's kind of an interesting question,

01:08because for a lot of the challenges we think about in AI, the software is really the missing piece.

01:16But for something like this, the hardware is nowhere near either.

01:22To really have a robot that can physically run around, the Boston Dynamics robots are starting to get there,

01:28but still not really human-level ability to run around and then swing a racket.

01:36So you think that's a hardware problem?

01:38I don't think it's a hardware problem only. I think it's a hardware and a software problem.

01:41I think it's both. And I think they'll have independent progress.

01:45So I'd say the hardware, maybe in 10, 15 years.

01:51On clay, not grass. I mean, grass is probably harder.

01:55Well, the clay, I'm not sure what's harder, grass or clay.

01:58The clay involves sliding, which might be harder to master, actually.

02:05But you're not limited to bipedal. I'm sure there's no...

02:09Well, if we can build a machine, it's a whole different question, of course.

02:13If you can say, "Okay, this robot can be on wheels, it can move around on wheels,

02:17and can be designed differently," then I think that can be done sooner,

02:22probably than a full humanoid type of setup.

02:26What do you think of swing a racket? So you've worked at basic manipulation.

02:31How hard do you think is the task of swinging a racket,

02:34with being able to hit a nice backhand or a forehand?

02:39Let's say we just set up stationary, a nice robot arm, let's say,

02:43you know, a standard industrial arm, and it can watch the ball come

02:48and then swing the racket. It's a good question.

02:51I'm not sure it would be super hard to do.

02:56I mean, I'm sure it would require a lot...

02:58If we do it with reinforced milling, it would require a lot of trial and error.

03:01It's not going to swing it right the first time around.

03:03But yeah, I don't see why I couldn't swing it the right way.

03:09I think it's learnable. I think if you set up a ball machine,

03:11let's say, on one side, and then a robot with a tennis racket on the other side,

03:17I think it's learnable. And maybe a little bit of pre-training and simulation.

03:23Yeah, I think that's feasible. I think the swing the racket is feasible.

03:27It'd be very interesting to see how much precision it can get.

03:31Because, I mean, that's where, I mean, some of the human players can hit it

03:36on the lines, which is very high precision.

03:39With spin. The spin is an interesting...

03:41Whether RL can learn to put a spin on the ball.

03:45Well, you got me interested. Maybe someday we'll set this up.

03:48Someday, sure.

03:48You got me intrigued.

03:51Your answer is basically, okay, for this problem, it sounds fascinating.

03:54But for the general problem of a tennis player, we might be a little bit farther away.

03:57What's the most impressive thing you've seen a robot do in the physical world?

04:04So physically, for me, it's the Boston Dynamics videos.

04:10Always just bring home and just super impressed.

04:14Recently, the robot running up the stairs, doing the parkour type thing.

04:19I mean, yes, we don't know what's underneath.

04:22They don't really write a lot of detail.

04:23But even if it's hard-coded underneath, which it might or might not be,

04:28just the physical abilities of doing that parkour, that's a very impressive.

04:32So have you met Spot Mini or any of those robots in person?

04:36Met Spot Mini last year in April at the Mars event that Jeff Bezos organizes.

04:42They brought it out there and it was nicely following around Jeff.

04:47When Jeff left the room, they had it follow him along, which was pretty impressive.

04:52So I think there's some confidence to know that there's no learning going on in those robots.

04:57The psychology of it.

04:58So while knowing that, while knowing there's not, if there's any learning going on, it's very limited.

05:03I met Spot Mini earlier this year and knowing everything that's going on,

05:08having one-on-one interaction, so I get to spend some time alone.

05:12And there's immediately a deep connection on the psychological level.

05:18Even though you know the fundamentals, how it works, there's something magical.

05:23So do you think about the psychology of interacting with robots in the physical world?

05:29Even you just showed me the PR2, the robot, and there was a little bit something like a face,

05:35had a little bit something like a face.

05:38There's something that immediately draws you to it.

05:40Do you think about that aspect of the robotics problem?

05:45Well, it's very hard with Brad here.

05:48We'll give him a name, Berkeley Robot, for the elimination of tedious tasks.

05:52It's very hard to not think of the robot as a person.

05:56And it seems like everybody calls them a he for whatever reason,

05:59but that also makes it more a person than if it was a it.

06:01And it seems pretty natural to think of it that way.

06:07This past weekend really struck me.

06:08I've seen Pepper many times on videos, but then I was at an event organized by,

06:15this was by Fidelity, and they had scripted Pepper to help moderate some sessions.

06:22And they had scripted Pepper to have the personality of a child a little bit.

06:26And it was very hard to not think of it as its own person in some sense,

06:31because it was just kind of jumping, it would just jump into conversation,

06:34making it very interactive.

06:35Moderate would be saying, Pepper would just jump in, "Hold on, how about me?

06:39Can I participate in this too?"

06:41And just like, "Okay, this is like a person."

06:43And that was 100% scripted.

06:45And even then it was hard not to have that sense of somehow there is something there.

06:50So as we have robots interact in this physical world,

06:54is that a signal that could be used in reinforcement learning?

06:57You've worked a little bit in this direction,

07:00but do you think that psychology can be somehow pulled in?

07:02Yes, that's a question I would say a lot of people ask.

07:08And I think part of why they ask it is they're thinking about

07:12how unique are we really still as people?

07:16Like after they see some results, they see a computer play Go,

07:19they see a computer do this, that, they're like, "Okay, but can it really have emotion?

07:23Can it really interact with us in that way?"

07:26And then once you're around robots, you already start feeling it.

07:29And I think that kind of maybe methodologically, the way that I think of it is,

07:34if you run something like reinforcement learning, it's about optimizing some objective.

07:39And there's no reason that the objective couldn't be tied into

07:47how much does a person like interacting with this system?

07:50And why could not the reinforcement learning system optimize for

07:54the robot being fun to be around?

07:56And why wouldn't it then naturally become more and more attractive and more and more,

08:00maybe like a person or like a pet, I don't know what it would exactly be,

08:04but more and more have those features and acquire them automatically.

08:08- As long as you can formalize an objective of what it means to like something,

08:13how you exhibit, what's the ground truth?

08:17How do you get the reward from human?

08:19Because you have to somehow collect that information within you, human.

08:22But you're saying if you can formulate as an objective, it can be learned.

08:26- There's no reason it couldn't emerge through learning.

08:29And maybe one way to formulate as an objective,

08:31you wouldn't have to necessarily score it explicitly.

08:33So standard rewards are numbers, and numbers are hard to come by.

08:37This is a 1.5 or 1.7 on some scale.

08:41It's very hard to do for a person.

08:42But much easier is for a person to say,

08:45"Okay, what you did the last five minutes was much nicer

08:49than we did the previous five minutes."

08:51And that now gives a comparison.

08:53And in fact, there have been some results in that.

08:55For example, Paul Christiano and collaborators at OpenAI had the hopper,

09:00Mojoco hopper, a one-legged robot, learn to do backflips.

09:03Purely from feedback, I like this better than that.

09:06That's kind of equally good.

09:08And after a bunch of interactions,

09:10it figured out what it was the person was asking for, namely a backflip.

09:14And so I think the same thing--

09:15- Oh, it wasn't trying to do a backflip.

09:18It was just getting a score from the comparison score

09:20from the person based on--

09:21- The person having in mind, in their own mind,

09:25I wanted to do a backflip,

09:27but the robot didn't know what it was supposed to be doing.

09:30It just knew that sometimes the person said,

09:32"This is better, this is worse."

09:34And then the robot figured out

09:35what the person was actually after was a backflip.

09:38And I'd imagine the same would be true for things

09:40like more interactive robots

09:43that the robot would figure out over time,

09:45"Oh, this kind of thing apparently is appreciated more

09:47than this other kind of thing."

09:49- So when I first picked up Sutton's,

09:53Richard Sutton's reinforcement learning book,

09:55before sort of this deep learning,

09:59before the re-emergence of neural networks

10:03as a powerful mechanism for machine learning,

10:04RL seemed to me like magic.

10:07It was beautiful.

10:10So that seemed like what intelligence is,

10:13RL reinforcement learning.

10:14So how do you think we can possibly learn anything

10:20about the world when the reward for the actions

10:22is delayed, is so sparse?

10:25Why do you think RL works?

10:29Why do you think you can learn anything

10:32under such sparse rewards,

10:34whether it's regular reinforcement learning

10:36or deep reinforcement learning?

10:38What's your intuition?

10:40- The counterpart of that is why is RL,

10:43why does it need so many samples,

10:47so many experiences to learn from?

10:48Because really what's happening is

10:50when you have a sparse reward,

10:52you do something maybe for like, I don't know,

10:55you take a hundred actions and then you get a reward.

10:57And maybe you get like a score of three.

10:59And I'm like, okay, three, not sure what that means.

11:02You go again and now you get two.

11:04And now you know that that sequence of a hundred actions

11:06that you did the second time around

11:08somehow was worse than the sequence of a hundred actions

11:10you did the first time around.

11:11But that's tough to now know

11:13which one of those were better or worse.

11:15Some might've been good and bad in either one.

11:16And so that's why you need so many experiences.

11:19But once you have enough experiences,

11:21effectively RL is teasing that apart.

11:23It's starting to say, okay,

11:24what is consistently there when you get a higher reward?

11:27And what's consistently there when you get a lower reward?

11:29And then kind of the magic of,

11:31and sometimes the policy gradient update is to say,

11:34now let's update the neural network

11:36to make the actions that were kind of present

11:39when things are good, more likely,

§02Transcript · 11:41–19:37

11:41and make the actions that are present

11:42when things are not as good, less likely.

11:44- So that is the counterpoint,

11:46but it seems like you would need to run it

11:49a lot more than you do.

11:50Even though right now people could say

11:52that RL is very inefficient,

11:54but it seems to be way more efficient

11:56than one would imagine on paper.

11:58That the simple updates to the policy,

12:01the policy gradient that somehow you can learn exactly.

12:05You just said, what are the common actions

12:07that seem to produce some good results?

12:09That that somehow can learn anything.

12:11It seems counterintuitive at least.

12:14Is there some intuition behind it?

12:16- Yeah, so I think there's a few ways to think about this.

12:21The way I tend to think about it mostly originally,

12:25when we started working on deep reinforcement learning

12:28here at Berkeley, which was maybe 2011, 12, 13,

12:32around that time, John Shulman was a PhD student,

12:36initially kind of driving it forward here.

12:38And the way we thought about it at the time was,

12:43if you think about rectified linear units

12:46or kind of rectifier type neural networks,

12:49what do you get?

12:50You get something that's piecewise

12:52linear feedback control.

12:54And if you look at the literature,

12:56linear feedback control is extremely successful.

12:59It can solve many, many problems surprisingly well.

13:02I remember, for example, when we did helicopter flight,

13:05if you're in a stationary flight regime,

13:07not a non-stationary, but a stationary flight regime

13:10like hover, you can use linear feedback control

13:12to stabilize a helicopter, a very complex dynamical system,

13:15but the controller is relatively simple.

13:18And so I think that's a big part of it is that

13:19if you do feedback control,

13:22even though the system you control can be very,

13:24very complex, often relatively simple control architectures

13:28can already do a lot,

13:30but then also just linear is not good enough.

13:32And so one way you can think of these neural networks

13:35is that in some sense, they tile the space,

13:36which people were already trying to do more by hand

13:39or with finite state machines.

13:40Say this linear controller here,

13:42this linear controller here.

13:43Neural network learns to tile the space

13:45and say linear controller here,

13:46another linear controller here,

13:48but it's more subtle than that.

13:49And so it's benefiting from this linear control aspect,

13:51it's benefiting from the tiling,

13:53but it's somehow tiling it one dimension at a time.

13:56Because if let's say you have a two layer network,

13:59if in that hidden layer,

14:00you make a transition from active to inactive

14:04or the other way around,

14:05that is essentially one axis,

14:08but not axis aligned,

14:09but one direction that you change.

14:12And so you have this kind of very gradual tiling of the space

14:15where you have a lot of sharing

14:16between the linear controllers that tile the space.

14:19And that was always my intuition as to why to expect

14:22that this might work pretty well.

14:24It's essentially leveraging the fact

14:25that linear feedback control is so good,

14:28but of course not enough.

14:29And this is a gradual tiling of the space

14:31with linear feedback controls

14:33that share a lot of expertise across them.

14:36- So that's really nice intuition.

14:38But do you think that scales

14:40to the more and more general problems

14:42of when you start going up the number of dimensions

14:47when you start going down

14:51in terms of how often you get a clean reward signal?

14:55Does that intuition carry forward

14:57to those crazier, weirder worlds

14:59that we think of as the real world?

15:01- So I think where things get really tricky

15:07in the real world

15:08compared to the things we've looked at so far

15:10with great success in reinforcement learning

15:13is the time scales,

15:17which takes us to an extreme.

15:18So when you think about the real world,

15:21I mean, I don't know,

15:23maybe some student decided to do a PhD here, right?

15:26Okay, that's a decision.

15:28That's a very high level decision.

15:29But if you think about their lives,

15:32I mean, any person's life,

15:33it's a sequence of muscle fiber contractions

15:37and relaxations,

15:38and that's how you interact with the world.

15:40And that's a very high frequency control thing,

15:42but it's ultimately what you do

15:44and how you affect the world.

15:45Until I guess we have brain readings,

15:48and you can maybe do it slightly differently,

15:49but typically that's how you affect the world.

15:51And the decision of doing a PhD is like so abstract

15:56relative to what you're actually doing in the world.

15:59And I think that's where credit assignment

16:01becomes just completely beyond

16:04what any current RL algorithm can do.

16:06And we need hierarchical reasoning

16:08at a level that is just not available at all yet.

16:11- Where do you think we can pick up hierarchical reasoning?

16:14By which mechanisms?

16:15- Yeah, so maybe let me highlight

16:18what I think the limitations are

16:20of what already was done 20, 30 years ago.

16:25In fact, you'll find reasoning systems

16:27that reason over relatively long horizons,

16:30but the problem is that they were not grounded

16:32in the real world.

16:33So people would have to hand design

16:37some kind of logical,

16:40dynamical descriptions of the world,

16:43and that didn't tie into perception.

16:46And so it didn't tie into real objects and so forth.

16:49And so that was a big gap.

16:51Now with deep learning,

16:52we start having the ability to

16:55really see with sensors, process that,

16:59and understand what's in the world.

17:01And so it's a good time to try

17:02to bring these things together.

17:03I see a few ways of getting there.

17:06One way to get there would be to say,

17:08deep learning can get bolted on somehow

17:09to some of these more traditional approaches.

17:12Now, bolted on would probably mean

17:13you need to do some kind of end-to-end training,

17:16where you say, "My deep learning processing

17:18somehow leads to a representation

17:20that in turn uses some kind of

17:23traditional underlying dynamical systems

17:27that can be used for planning."

17:29And that's, for example, the direction

17:31Aviv Tamar and Thanar Kuretach here

17:33have been pushing with causal infoGAN

17:35and of course other people too.

17:36That's one way.

17:38Can we somehow force it into the form factor

17:41that is amenable to reasoning?

17:43Another direction we've been thinking about

17:46for a long time

17:47and didn't make any progress on

17:50was more information-theoretic approaches.

17:53So the idea there was that

17:55what it means to take high-level action

17:57is to choose a latent variable now

18:02that tells you a lot about

18:03what's going to be the case in the future.

18:05Because that's what it means

18:06to take a high-level action.

18:08I say, "Okay, I decide I'm going to navigate

18:12to the gas station because I need to get gas for my car.

18:15Well, that'll now take five minutes to get there."

18:17But the fact that I get there,

18:19I could already tell that

18:20from the high-level action I took much earlier.

18:23That, we had a very hard time getting success with.

18:27Not saying it's a dead end necessarily,

18:30but we had a lot of trouble getting that to work.

18:32And then we started revisiting the notion

18:34of what are we really trying to achieve?

18:36What we're trying to achieve

18:38is not necessarily hierarchy per se,

18:40but you can think about what does hierarchy give us?

18:42What we hope it would give us

18:45is better credit assignment.

18:46What is better credit assignment is giving us?

18:51It gives us faster learning.

18:53And so, faster learning is ultimately maybe what we're after.

18:59And so, that's what we ended up with,

19:01the RL squared paper on learning to reinforcement learn,

19:04which at a time Rocky Duan led.

19:07And that's exactly the meta-learning approach

19:10where you say, "Okay, we don't know how to design hierarchy.

19:13We know what we want to get from it.

19:15Let's just enter and optimize

19:17for what we want to get from it

19:18and see if it might emerge."

19:19And we saw things emerge.

19:21The maze navigation had consistent motion down hallways,

19:24which is what you want.

19:26A hierarchical control should say,

19:28"I want to go down this hallway."

19:29And then when there is an option to take a turn,

19:31I can decide whether to take a turn or not and repeat.

19:33Even had the notion of,

19:35"Where have you been before or not?"

19:37Do not revisit places you've been before.

§03Transcript · 19:39–27:49

19:39It still didn't scale yet

19:41to the real world kind of scenarios

19:44I think you had in mind,

19:45but it was some sign of life

19:47that maybe you can meta-learn these hierarchical concepts.

19:51I mean, it seems like through these meta-learning concepts,

19:56we get at what I think is one of the hardest

19:59and most important problems of AI,

20:02which is transfer learning.

20:03So it's generalization.

20:05How far along this journey

20:08towards building general systems are we?

20:10Being able to do transfer learning well.

20:12So there's some signs that you can generalize a little bit,

20:16but do you think we're on the right path

20:19or totally different breakthroughs are needed

20:23to be able to transfer knowledge

20:26between different learned models?

20:28- Yeah, I'm pretty torn on this.

20:33I think there are some very impressive--

20:35- The present of the day.

20:35- Well, there's just some very impressive results already.

20:40Right?

20:40I mean, I would say when,

20:43even with the initial kind of big breakthrough in 2012

20:47with AlexNet, right?

20:48The initial thing is, okay, great.

20:50This does better on ImageNet, hence image recognition.

20:54But then immediately thereafter,

20:57there was of course the notion that,

20:59wow, what was learned on ImageNet,

21:03and you now want to solve a new task,

21:04you can fine tune AlexNet for new tasks.

21:07And that was often found to be the even bigger deal

21:11that you learn something that was reusable,

21:14which was not often the case before.

21:15Usually machine learning,

21:16you learn something for one scenario, and that was it.

21:18- Yeah, and that's really exciting.

21:20I mean, that's a huge application.

21:22That's probably the biggest success

21:23of transfer learning to date,

21:25in terms of scope and impact.

21:27- That was a huge breakthrough.

21:29And then recently, I feel like similar kind of,

21:33by scaling things up,

21:35it seems like this has been expanded upon.

21:37Like people training even bigger networks,

21:39they might transfer even better.

21:41If you looked at, for example,

21:43some of the OpenAI results on language models

21:45and some of the recent Google results on language models,

21:48they are learned for just prediction,

21:52and then they get reused for other tasks.

21:56And so I think there is something there

21:58where somehow if you train a big enough model

22:00on enough things,

22:01it seems to transfer some deep mind results

22:04that I thought were very impressive,

22:05the Unreal results,

22:07where it was learned to navigate mazes

22:11in ways where it wasn't just doing reinforcement learning,

22:13but it had other objectives,

22:14was optimizing for.

22:16So I think there's a lot of interesting results already.

22:19I think maybe where it's hard to wrap my head around

22:24is to which extent,

22:26or when do we call something generalization,

22:28or the levels of generalization

22:31involved in these different tasks.

22:33- Yeah.

22:34You draw this, by the way, just to frame things.

22:38I've heard you say somewhere,

22:40it's the difference between learning to master

22:42versus learning to generalize.

22:44It's a nice line to think about,

22:47and I guess you're saying that's a gray area

22:50of what learning to master and learning to generalize,

22:53where one starts and one ends.

22:54- I think I might've heard this.

22:55I might've heard it somewhere else,

22:57and I think it might've been one of your interviews,

23:00maybe the one with Yoshua Benjamin,

23:02I'm not 100% sure,

23:03but I liked the example,

23:05and I'm not sure who it was,

23:08but the example was essentially,

23:10if you use current deep learning techniques,

23:13what we're doing to predict,

23:14let's say, the relative motion of our planets,

23:20it would do pretty well,

23:21but then now if a massive new mass

23:26enters our solar system,

23:27it would probably not predict what would happen, right?

23:31And that's a different kind of generalization.

23:33That's a generalization that relies on the ultimate,

23:36simplest, simplest explanation

23:38that we have available today

23:40to explain the motion of planets,

23:41whereas just pattern recognition could predict

23:43our current solar system motion pretty well, no problem.

23:47And so I think that's an example

23:48of a kind of generalization that is a little different

23:52from what we've achieved so far.

23:53And it's not clear if just regularizing more

23:59and forcing it to come up with a simpler,

24:01simpler, simpler explanation,

24:02say, look, this is not simple,

24:03but that's what physics researchers do, right?

24:05They say, can I make this even simpler?

24:08How simple can I get this?

24:09What's the simplest equation

24:10that can explain everything, right?

24:12The master equation for the entire dynamics of the universe.

24:15We haven't really pushed that direction as hard

24:17in deep learning, I would say.

24:19Not sure if it should be pushed,

24:21but it seems a kind of generalization you get from that

24:24that you don't get in our current methods so far.

24:27- So I just talked to Vladimir Vapnik, for example,

24:29who's a statistician, statistical learning,

24:34and he kind of dreams of creating,

24:36the E equals MC squared for learning, right?

24:40The general theory of learning.

24:42Do you think that's a fruitless pursuit in near term,

24:47within the next several decades?

24:50- I think that's a really interesting pursuit

24:53and in the following sense,

24:55in that there is a lot of evidence

24:57that the brain is pretty modular.

25:02And so I wouldn't maybe think of it as the theory,

25:05maybe the underlying theory,

25:06but more kind of the principle

25:09where there have been findings

25:12where people who are blind

25:15will use the part of the brain

25:16usually used for vision for other functions.

25:20And even after some kind of,

25:24if people get rewired in some way,

25:26they might be able to reuse parts of their brain

25:28for other functions.

25:29And so what that suggests is some kind of modularity

25:35and I think it is a pretty natural thing to strive for,

25:39to see, can we find that modularity?

25:41Can we find this thing?

25:43Of course, it's not every part of the brain

25:44is not exactly the same.

25:45Not everything can be rewired arbitrarily.

25:48But if you think of things like the neocortex,

25:50which is a pretty big part of the brain,

25:51that seems fairly modular from what the findings so far.

25:55Can you design something equally modular?

25:59And if you can just grow it,

26:00it becomes more capable probably.

26:02I think that would be the kind of interesting

26:04underlying principle to shoot for

26:06that is not unrealistic.

26:08- Do you think you prefer math

26:12or empirical trial and error

26:15for the discovery of the essence

26:16of what it means to do something intelligent?

26:18So reinforcement learning embodies both groups, right?

26:21To prove that something converges, prove the bounds.

26:26And then at the same time,

26:27a lot of those successes are,

26:29well, let's try this and see if it works.

26:31So which do you gravitate towards?

26:33How do you think of those two parts of your brain?

26:35- So maybe I would prefer

26:42we could make the progress with mathematics.

26:45And the reason maybe I would prefer that

26:46is because often if you have something

26:49you can mathematically formalize,

26:51you can leapfrog a lot of experimentation.

26:55And experimentation takes a long time to get through.

26:58And a lot of trial and error,

27:01kind of reinforcement learning your research process,

27:03but you need to do a lot of trial and error

27:05before you get to a success.

27:06So if you can leapfrog that, to my mind,

27:08that's what the math is about.

27:09And hopefully once you do a bunch of experiments,

27:13you start seeing a pattern.

27:14You can do some derivations that leapfrog some experiments.

27:17But I agree with you.

27:18I mean, in practice, a lot of the progress

27:20has been such that we have not been able to find

27:23the math that allows it to leapfrog ahead.

27:25And we are kind of making gradual progress

27:27one step at a time.

27:29A new experiment here, a new experiment there

27:31that gives us new insights and gradually building up,

27:34but not getting to something yet where we're just,

27:36"Okay, here's an equation that now explains how,"

27:38you know, that would be,

27:40have been two years of experimentation to get there,

27:42but this tells us what the result's going to be.

27:44Unfortunately, not so much yet.

27:47- Not so much yet, but your hope is there.

27:49In trying to teach robots or systems

§04Transcript · 27:53–35:45

27:53to do everyday tasks or even in simulation,

27:58what do you think you're more excited about?

28:01Imitation learning or self-play?

28:04So letting robots learn from humans

28:07or letting robots plan their own,

28:11try to figure out in their own way

28:13and eventually play, eventually interact with humans

28:18or solve whatever problem is.

28:19What's the more exciting to you?

28:21What's more promising, you think, as a research direction?

28:24- So when we look at self-play,

28:31what's so beautiful about it is,

28:34goes back to kind of the challenges

28:36in reinforcement learning.

28:37So the challenge of reinforcement learning

28:38is getting signal.

28:39And if you don't never succeed,

28:41you don't get any signal.

28:43In self-play, you're on both sides.

28:46So one of you succeeds.

28:47And the beauty is also one of you fails.

28:49And so you see the contrast.

28:51You see the one version of me

28:52that did better than the other version.

28:53And so every time you play yourself,

28:55you get signal.

28:57And so whenever you can turn something into self-play,

28:59you're in a beautiful situation

29:01where you can naturally learn much more quickly

29:04than in most other reinforced learning environments.

29:07So I think if somehow we can turn more

29:11reinforcement learning problems

29:13into self-play formulations,

29:15that would go really, really far.

29:17So far, self-play has been largely around games

29:20where there is natural opponents.

29:22But if we could do self-play for other things,

29:24and let's say, I don't know,

29:25a robot learns to build a house.

29:26I mean, that's a pretty advanced thing

29:28to try to do for a robot,

29:29but maybe it tries to build a hut or something.

29:31If that can be done through self-play,

29:34it would learn a lot more quickly

29:35if somebody can figure that out.

29:36And I think that would be something

29:37where it goes closer

29:39to kind of the mathematical leapfrogging

29:41where somebody figures out a formalism to say,

29:43"Okay, any RL problem by playing this and this idea,

29:47"you can turn it into a self-play problem

29:48"where you get signal a lot more easily."

29:52Reality is, many problems

29:54we don't know how to turn into self-play.

29:55And so either we need to provide detailed reward,

29:58that doesn't just reward for achieving a goal,

30:00but rewards for making progress,

30:02and that becomes time-consuming.

30:04And once you're starting to do that,

30:05let's say you want a robot to do something,

30:07you need to give all this detailed reward,

30:09well, why not just give a demonstration?

30:10- Right.

30:11- Because why not just show the robot?

30:13And now the question is, how do you show the robot?

30:16One way to show is to tally operate the robot,

30:18and then the robot really experiences things.

30:20And that's nice because that's really high signal

30:22to noise ratio data, and we've done a lot of that.

30:24And you teach your robot skills,

30:26in just 10 minutes, you can teach a robot a new basic skill,

30:29like, "Okay, pick up the bottle, place it somewhere else."

30:32That's a skill, no matter where the bottle starts,

30:34maybe it always goes onto a target or something.

30:36That's fairly easy to teach your robot with tally-up.

30:39Now, what's even more interesting,

30:42if you can now teach your robot

30:43through third-person learning,

30:44where the robot watches you do something,

30:46and doesn't experience it, but just watches it and says,

30:49"Okay, well, if you're showing me that,

30:51that means I should be doing this,

30:53and I'm not gonna be using your hand,

30:55because I don't get to control your hand,

30:56but I'm gonna use my hand, I do that mapping."

30:59And so that's where I think one of the big breakthroughs

31:01has happened this year.

31:03This was led by Chelsea Finn here.

31:05It's almost like learning a machine translation

31:08for demonstrations, where you have a human demonstration,

31:11and the robot learns to translate it into

31:13what it means for the robot to do it.

31:15And that was a meta-learning formulation,

31:17learn from one to get the other.

31:19And that, I think, opens up a lot of opportunities

31:22to learn a lot more quickly.

31:24- So my focus is on autonomous vehicles.

31:26Do you think this approach of third-person watching,

31:28the autonomous driving is amenable

31:31to this kind of approach?

31:33- So for autonomous driving, I would say it's,

31:37third-person is slightly easier.

31:41And the reason I'm gonna say it's slightly easier

31:43to do with third-person is because

31:46the car dynamics are very well understood.

31:48So the-- - Easier than

31:51first-person, you mean?

31:53Or easier than-- - I think it's,

31:55so I think the distinction between third-person

31:57and first-person is not a very important distinction

32:00for autonomous driving.

32:01They're very similar, because the distinction is really about

32:06who turns the steering wheel,

32:07or maybe, let me put it differently.

32:11How to get from a point where you are now

32:14to a point, let's say, a couple meters in front of you.

32:17And that's a problem that's very well understood.

32:19And that's the only distinction

32:20between third and first-person there.

32:21Whereas with the robot manipulation,

32:23interaction forces are very complex,

32:25and it's still a very different thing.

32:26For autonomous driving, I think there is still the question,

32:31imitation versus RL.

32:33So imitation gives you a lot more signal.

32:36I think where imitation is lacking

32:38and needs some extra machinery is,

32:42it doesn't, in its normal format,

32:45doesn't think about goals or objectives.

32:47And of course, there are versions of imitation learning,

32:50inverse reinforcement learning type imitation learning,

32:52which also thinks about goals.

32:54I think then we're getting much closer.

32:56But I think it's very hard to think of a

32:58fully reactive car generalizing well.

33:03If it really doesn't have a notion of objectives

33:05to generalize well to the kind of generality

33:08that you would want.

33:09You'd want more than just that reactivity

33:11that you get from just behavioral cloning/supervised learning.

33:15- So a lot of the work,

33:18whether it's self-play or even imitation learning,

33:21would benefit significantly from simulation,

33:24from effective simulation.

33:26And you're doing a lot of stuff in the physical world

33:28and in simulation.

33:29Do you have hope for greater and greater

33:32power of simulation being boundless eventually

33:38to where most of what we need to operate

33:40in the physical world could be simulated

33:43to a degree that's directly transferable

33:46to the physical world?

33:47Or are we still very far away from that?

33:49- So I think we could even rephrase that question

33:57in some sense.

33:58- Please.

33:58- And so the power of simulation, right?

34:03As simulators get better and better,

34:06of course, becomes stronger

34:08and we can learn more in simulation.

34:11But there's also another version,

34:12which is where you say the simulator

34:13doesn't even have to be that precise.

34:15As long as it's somewhat representative

34:17and instead of trying to get one simulator

34:20that is sufficiently precise to learn in

34:23and transfer really well to the real world,

34:25I'm going to build many simulators.

34:26- Ensemble of simulators.

34:28- Ensemble of simulators.

34:29Not any single one of them

34:31is sufficiently representative of the real world

34:34such that it would work if you train in there.

34:37But if you train in all of them,

34:39then there is something that's good in all of them.

34:43The real world will just be another one of them

34:47that's not identical to any one of them,

34:49but just another one of them.

34:50- Another sample from the distribution of simulators.

34:52- Exactly.

34:53- We do live in a simulation,

34:54so this is just one other one.

34:57- I'm not sure about that, but yeah.

34:59It's definitely a very advanced simulator if it is.

35:03- Yeah, it's a pretty good one.

35:04I've talked to Russell.

35:07It's something you think about a little bit too.

35:09Of course, you're really trying to build these systems,

35:11but do you think about the future of AI?

35:13A lot of people have concern about safety.

35:15How do you think about AI safety

35:18as you build robots that are operating in the physical world?

35:20How do you approach this problem

35:24in an engineering kind of way, in a systematic way?

35:27- So when a robot is doing things,

35:32you kind of have a few notions of safety to worry about.

35:36One is that the robot is physically strong

35:39and of course could do a lot of damage.

35:41Same for cars, which we can think of as robots too in some way.

35:45And this could be completely unintentional.

§05Transcript · 35:48–42:37

35:48So it could be not the kind of long-term AI safety concerns

35:51that, okay, AI is smarter than us and now what do we do?

35:54But it could be just very practical.

35:55Okay, this robot, if it makes a mistake,

35:57what are the results going to be?

36:00Of course, simulation comes in a lot there

36:02to test in simulation.

36:04It's a difficult question.

36:05And I'm always wondering, like I always wonder,

36:07let's say you look at, let's go back to driving

36:09'cause a lot of people know driving well, of course.

36:12What do we do to test somebody for driving, right?

36:16To get a driver's license?

36:18What do they really do?

36:19I mean, you fill out some tests and then you drive.

36:24And I mean, in suburban California,

36:27that driving test is just you drive around the block,

36:31pull over, you do a stop sign successfully

36:34and then you pull over again and you're pretty much done.

36:37And you're like, okay, if a self-driving car did that,

36:42would you trust it that it can drive?

36:45And I'd be like, no, that's not enough for me to trust it.

36:47But somehow for humans, we've figured out

36:49that somebody being able to do that is representative

36:53of them being able to do a lot of other things.

36:56And so I think somehow for humans,

36:58we've figured out representative tests of what it means

37:02if you can do this, what you can really do.

37:04Of course, testing humans,

37:05humans don't wanna be tested at all times.

37:07Self-driving cars or robots

37:08could be tested more often probably.

37:10You can have replicants that get tested

37:11and they're known to be identical

37:13'cause they use the same neural net and so forth.

37:15But still, I feel like we don't have this kind of unit tests

37:19or proper tests for robots.

37:22And I think there's something very interesting

37:23to be thought about there,

37:25especially as you update things.

37:26Your software improves,

37:28you have a better self-driving car suite, you update it.

37:31How do you know it's indeed more capable on everything

37:34than what you had before

37:35that you didn't have any bad things creep into it?

37:40So I think that's a very interesting direction of research

37:42that there is no real solution yet,

37:44except that somehow for humans we do.

37:46'Cause we say, okay, you have a driving test, you passed,

37:49you can go on the road now.

37:50And humans have accidents every like million

37:53or 10 million miles, something pretty phenomenal.

37:55Compared to that short test that is being done.

38:01- So let me ask, you've mentioned that Andrew Ang,

38:05by example, showed you the value of kindness.

38:07Do you think the space of policies,

38:14good policies for humans and for AI

38:16is populated by policies that,

38:20with kindness or ones that are the opposite?

38:25Exploitation, even evil.

38:28So if you just look at the sea of policies

38:30we operate under as human beings,

38:32or if AI system had to operate in this real world,

38:35do you think it's really easy to find policies

38:37that are full of kindness,

38:39like would naturally fall into them?

38:41Or is it like a very hard optimization problem?

38:44- I mean, there is kind of two optimizations happening

38:50for humans, right?

38:52So for humans, there's kind of

38:53the very long-term optimization,

38:54which evolution has done for us.

38:56And we're kind of predisposed to like certain things.

39:00And that's in some sense what makes our learning easier

39:02because I mean, we know things like pain

39:04and hunger and thirst.

39:08And the fact that we know about those

39:09is not something that we were taught.

39:11That's kind of innate.

39:12When we're hungry, we're unhappy.

39:13When we're thirsty, we're unhappy.

39:15When we have pain, we're unhappy.

39:18And ultimately evolution built that into us

39:21to think about those things.

39:22And so I think there is a notion that

39:24it seems somehow humans evolved in general

39:27to prefer to get along in some ways,

39:32but at the same time, also to be very territorial

39:36and kind of centric to their own tribe.

39:39It seems like that's the kind of space

39:43we converged onto.

39:44I mean, I'm not an expert in anthropology,

39:46but it seems like we're very kind of

39:47good within our own tribe,

39:50but need to be taught.

39:52To be nice to other tribes.

39:54- Well, if you look at Steven Pinker,

39:56he highlights this pretty nicely

39:57in "Better Angels of Our Nature"

40:02where he talks about violence

40:03decreasing over time consistently.

40:05So whatever tension, whatever teams we pick,

40:08it seems that the long arc of history

40:11goes towards us getting along more and more.

40:13- I hope so.

40:14(laughing)

40:16- So do you think that,

40:17do you think it's possible to teach RL

40:22based robots this kind of kindness,

40:26this kind of ability to interact with humans,

40:28this kind of policy,

40:29even to, let me ask a fun one.

40:32Do you think it's possible to teach RL based robot

40:35to love a human being

40:36and to inspire that human to love the robot back?

40:39So to like a RL based algorithm

40:43that leads to a happy marriage.

40:45- That's an interesting question.

40:48Maybe I'll answer it with another question, right?

40:52(laughing)

40:54'Cause I mean, but I'll come back to it.

40:56So another question you can have is,

40:58okay, I mean, how close does some people's happiness get

41:02from interacting with just a really nice dog?

41:07Like, I mean, dogs, you come home,

41:09that's what dogs do.

41:10They greet you, they're excited.

41:11It makes you happy when you come home to your dog.

41:14You're just like, okay, this is exciting.

41:16They're always happy when I'm here.

41:18I mean, if they don't greet you,

41:19'cause maybe whatever,

41:20your partner took him on a trip or something,

41:22you might not be nearly as happy when you get home, right?

41:25And so the kind of,

41:27it seems like the level of reasoning a dog has

41:31is pretty sophisticated,

41:32but then it's still not yet at the level of human reasoning.

41:35And so it seems like we don't even need to achieve

41:37human level reasoning to get like very strong affection

41:40with humans.

41:41And so my thinking is why not, right?

41:44Why couldn't with an AI,

41:45couldn't we achieve the kind of level of affection

41:48that humans feel among each other

41:51or with friendly animals and so forth?

41:55It's a question, is it a good thing for us or not?

41:59That's another thing, right?

42:01Because I mean,

42:02but I don't see why not.

42:05- Why not, yeah.

42:07So Elon Musk says love is the answer.

42:08Maybe he should say love is the objective function

42:12and then RL is the answer, right?

42:14(both laughing)

42:15- Well, maybe.

42:16(both laughing)

42:17- Oh, Peter, thank you so much.

42:18I don't wanna take up more of your time.

42:20Thank you so much for talking today.

42:21- Well, thanks for coming by.

42:23Great to have you visit.

42:24(upbeat music)

42:27(upbeat music)

42:29(upbeat music)

42:32(upbeat music)

42:35(upbeat music)

42:37(upbeat music)

— A LITTLE MORE TO THINK ABOUT. —