← Lex Fridman

Sergey Levine: Robotics and Machine Learning

Episode 1082020-07-14English

Guests: Sergey Levine

Listen to this episode00:00 / 1:37:59
Reading settings
Reading preferences
Text size
Download in-depth read
Read offline

In-depth read pending

Downloads are not available yet.

§01Transcript · 00:00–08:26

00:00The following is a conversation with Sergei Levine,

00:03a professor at Berkeley and a world-class researcher

00:06in deep learning, reinforcement learning,

00:08robotics and computer vision,

00:10including the development of algorithms

00:12for end-to-end training of neural network policies

00:15that combine perception and control,

00:17scalable algorithms for inverse reinforcement learning

00:20and in general, deep RL algorithms.

00:23Quick summary of the ads.

00:25Two sponsors, Cash App and ExpressVPN.

00:28Please consider supporting the podcast

00:30by downloading Cash App and using code LexPodcast

00:33and signing up at expressvpn.com/lexpod.

00:38Click the links, buy the stuff.

00:41It's the best way to support this podcast

00:42and in general, the journey I'm on.

00:45If you enjoy this thing, subscribe on YouTube,

00:48review it with Five Stars on Apple Podcast,

00:50follow on Spotify, support it on Patreon

00:53or connect with me on Twitter @LexFriedman.

00:57As usual, I'll do a few minutes of ads now

00:59and never any ads in the middle

01:01that can break the flow of the conversation.

01:03This show is presented by Cash App,

01:06the number one finance app in the App Store.

01:08When you get it, use code LexPodcast.

01:11Cash App lets you send money to friends,

01:13buy Bitcoin and invest in the stock market

01:15with as little as $1.

01:18Since Cash App does fractional share trading,

01:20let me mention that the order execution algorithm

01:23that works behind the scenes to create the abstraction

01:26of the fractional orders is an algorithmic marvel.

01:30So big props to the Cash App engineers

01:32for taking a step up to the next layer of abstraction

01:34over the stock market,

01:35making trading more accessible for new investors

01:38and diversification much easier.

01:41So again, if you get Cash App from the App Store

01:43or Google Play and use the code LexPodcast,

01:48you get $10 and Cash App will also donate $10 to FIRST,

01:52an organization that is helping to advance robotics

01:55and STEM education for young people around the world.

01:58This show is also sponsored by ExpressVPN.

02:04Get it at ExpressVPN.com/lexpod

02:08to support this podcast and to get an extra three months free

02:12on a one year package.

02:14I've been using ExpressVPN for many years.

02:17I love it.

02:18I think ExpressVPN is the best VPN out there.

02:21They told me to say it,

02:23but it happens to be true in my humble opinion.

02:26It doesn't log your data.

02:27It's crazy fast and it's easy to use

02:30literally just one big power on button.

02:32Again, it's probably obvious to you,

02:35but I should say it again.

02:36It's really important that they don't log your data.

02:40It works on Linux and every other operating system,

02:43but Linux of course is the best operating system.

02:46Shout out to my favorite flavor, Ubuntu Mate 2004.

02:50Once again, get it at ExpressVPN.com/lexpod

02:54to support this podcast and to get an extra three months free

02:58on a one year package.

03:00And now here's my conversation with Sergei Levine.

03:05What's the difference between a state of the art human,

03:08such as you and I,

03:09well, I don't know if we qualify as state of the art humans,

03:11but a state of the art human and a state of the art robot?

03:15- That's a very interesting question.

03:18Robot capability is, it's kind of a,

03:22I think it's a very tricky thing to understand

03:25because there are some things that are difficult

03:28that we wouldn't think are difficult

03:29and some things that are easy

03:30that we wouldn't think are easy.

03:31And there's also a really big gap

03:34between capabilities of robots in terms of hardware

03:37and their physical capability

03:38and capabilities of robots

03:40in terms of what they can do autonomously.

03:42There is a little video that I think robotics researchers

03:46really like to show,

03:47special robotics learning researchers like myself

03:49from 2004 from Stanford,

03:52which demonstrates a prototype robot called the PR1.

03:55And the PR1 was a robot that was designed

03:57as a home assistance robot.

03:59And there's this beautiful video showing the PR1

04:01tidying up a living room, putting away toys,

04:04and at the end, bringing a beer

04:07to the person sitting on the couch,

04:09which looks really amazing.

04:11And then the punchline is that this robot

04:14is entirely controlled by a person.

04:15So you can, so in some ways,

04:17the gap between a state-of-the-art human

04:19and a state-of-the-art robot,

04:20if the robot has a human brain,

04:22is actually not that large.

04:23Now, obviously, like human bodies are sophisticated

04:25and very robust and resilient in many ways,

04:28but on the whole, if we're willing to like spend

04:30a bit of money and do a bit of engineering,

04:32we can kind of close the hardware gap almost.

04:35But the intelligence gap, that one is very wide.

04:40- And when you say hardware,

04:41you're referring to the physical sort of the actuators,

04:43the actual body of the robot

04:45as opposed to the hardware on which the cognition,

04:48the hardware of the nervous system.

04:49- Yes, exactly.

04:50I'm referring to the body rather than the mind.

04:53So that means that kind of the work is cut out for us.

04:56Like while we can still make the body better,

04:59we kind of know that the big bottleneck right now

05:00is really the mind.

05:01- And how big is that gap?

05:03How big is the difference in your sense

05:08of ability to learn, ability to reason,

05:11ability to perceive the world

05:12between humans and our best robots?

05:16- The gap is very large and the gap becomes larger

05:20the more unexpected events can happen in the world.

05:24So essentially the spectrum along which you can measure

05:27the size of that gap is the spectrum

05:30of how open the world is.

05:32If you control everything in the world very tightly,

05:33if you put the robot in like a factory

05:36and you tell it where everything is

05:37and you rigidly program its motion,

05:39then it can do things.

05:41One might even say in a superhuman way.

05:43It can move faster, it's stronger,

05:44it can lift up a car and things like that.

05:47But as soon as anything starts to vary in the environment,

05:50now it'll trip up and if many, many things vary

05:52like they would like in your kitchen, for example,

05:54then things are pretty much like wide open.

05:57- Now again, we're gonna stick a bit

06:00on the philosophical questions,

06:01but how much on the human side of the cognitive abilities

06:06in your sense is nature versus nurture?

06:10So how much of it is a product of evolution

06:15and how much of it is something we'll learn

06:18from sort of scratch from the day we're born?

06:22- I'm gonna read into your question

06:23as asking about the implications of this for AI.

06:26- Of course, exactly.

06:27- I'm not a biologist,

06:28I can't really speak authoritatively about it.

06:30- So in Tlingit, if it's all about learning,

06:35then there's more hope for AI.

06:38So the way that I look at this is that,

06:40well, first of course, biology is very messy.

06:44And if you ask the question, how does a person do something

06:49or how does a person's mind do something,

06:51you can come up with a bunch of hypotheses

06:53and oftentimes you can find support for many different,

06:55often conflicting hypotheses.

06:57One way that we can approach the question

07:00of what the implications of this for AI are

07:03is we can think about what's sufficient.

07:05So maybe a person is from birth very, very good

07:09at some things like, for example, recognizing faces.

07:12There's a very strong evolutionary pressure to do that.

07:14If you can recognize your mother's face,

07:16then you're more likely to survive

07:18and therefore people are good at this.

07:20But we can also ask like,

07:21what's the minimum sufficient thing?

07:23And one of the ways that we can study

07:25the minimal sufficient thing is we could, for example,

07:27see what people do in unusual situations.

07:29If you present them with things

07:30that evolution couldn't have prepared them for.

07:33Our daily lives actually do this to us all the time.

07:35We didn't evolve to deal with automobiles

07:39and space flight and whatever.

07:41So there are all these situations

07:42that we can find ourselves in and we do very well there.

07:45Like I can give you a joystick to control a robotic arm,

07:49which you've never used before

07:50and you might be pretty bad for the first couple of seconds.

07:52But if I tell you like, your life depends

07:54on using this robotic arm to like open this door,

07:58you'll probably manage it.

07:59Even though you've never seen this device before,

08:01you've never used the joystick control,

08:03and you'll kind of muddle through it.

08:04And that's not your evolved natural ability,

08:08that's your flexibility, your adaptability.

08:11And that's exactly where our current robotic systems

08:13really kind of fall flat.

08:14- But I wonder how much general,

08:17almost what we think of as common sense,

08:20pre-trained models underneath all of that.

08:24So that ability to adapt to a joystick

08:26requires you to have a kind of,

§02Transcript · 08:31–16:36

08:31you know, I'm human, so it's hard for me

08:33to introspect all the knowledge I have about the world.

08:36But it seems like there might be an iceberg underneath

08:40of the amount of knowledge we actually bring to the table.

08:43That's kind of the open question.

08:44- I think there's absolutely an iceberg of knowledge

08:46that we bring to the table,

08:47but I think it's very likely that iceberg of knowledge

08:51is actually built up over our lifetimes.

08:53Because we have a lot of prior experience to draw on

08:58and it kind of makes sense that the right way

09:01for us to optimize our efficiency,

09:05our evolutionary fitness and so on,

09:07is to utilize all of that experience

09:10to build up the best iceberg we can get.

09:13And that's actually one of,

09:14while that sounds an awful lot

09:16like what machine learning actually does,

09:18I think that for modern machine learning,

09:19it's actually a really big challenge

09:21to take this unstructured massive experience

09:23and distill out something that looks

09:25like a common sense understanding of the world.

09:28And perhaps part of that is,

09:29it's not because something about machine learning itself

09:32is broken or hard,

09:34but because we've been a little too rigid

09:37in subscribing to a very supervised,

09:39very rigid notion of learning.

09:40Kind of the input output X's go to Y's sort of model.

09:43And maybe what we really need to do

09:46is to view the world more as like a massive experience

09:51that is not necessarily providing any rigid supervision,

09:53but sort of providing many, many instances

09:55of things that could be.

09:56And then you take that and you distill it

09:58into some sort of common sense understanding.

10:00- I see.

10:03Well, you're painting an optimistic, beautiful picture,

10:05especially from the robotics perspective,

10:07'cause that means we just need to invest

10:09and build better learning algorithms,

10:12figure out how we can get access to more and more data

10:16for those learning algorithms to extract signal from,

10:19and then accumulate that iceberg of knowledge.

10:22It's a beautiful picture.

10:24It's a hopeful one.

10:25- I think it's potentially a little bit more

10:26than just that.

10:27And this is where we perhaps reach the limits

10:31of our current understanding.

10:32But one thing that I think that the research community

10:35hasn't really resolved in a satisfactory way

10:38is how much it matters where that experience comes from.

10:41Like, do you just like download everything on the internet

10:44and cram it into essentially the 21st century analog

10:49of the giant language model and then see what happens?

10:52Or does it actually matter whether your machine

10:55physically experiences the world,

10:56or in the sense that it actually attempts things,

11:00observes the outcome of its actions,

11:01and kind of augments its experience that way?

11:03- That it chooses which parts of the world

11:05it gets to interact with and observe and learn from.

11:10- Right, it may be that the world is so complex

11:12that simply obtaining a large mass of sort of IID samples

11:17of the world is a very difficult way to go.

11:20But if you are actually interacting with the world

11:24and essentially performing this sort of hard negative mining

11:26by attempting what you think might work,

11:28observing the sometimes happy

11:30and sometimes sad outcomes of that,

11:32and augmenting your understanding using that experience,

11:35and you're just doing this continually for many years,

11:38maybe that sort of data in some sense

11:40is actually much more favorable

11:42to obtaining a common sense understanding.

11:44One reason we might think that this is true

11:46is that what we associate with common sense

11:50or lack of common sense is often characterized

11:53by the ability to reason

11:54about kind of counterfactual questions.

11:56Like if I were to,

11:58here I'm this bottle of water sitting on the table,

12:01everything is fine if I were to knock it over,

12:04which I'm not gonna do,

12:05but if I were to do that, what would happen?

12:07And I know that nothing good would happen from that,

12:10but if I have a bad understanding of the world,

12:12I might think that that's a good way for me

12:14to like gain more utility.

12:15If I actually go about my daily life doing the things

12:20that my current understanding of the world suggests

12:23will give me high utility,

12:24in some ways I'll get exactly the right supervision

12:28to tell me not to do those bad things

12:31and to keep doing the good things.

12:33- So there's a spectrum between IID,

12:36random walk through the space of data,

12:38and then there's, and what we humans do.

12:41Well, I don't even know if we do it optimal,

12:43but there might be beyond.

12:44So this open question that you raised,

12:48where do you think systems,

12:51intelligent systems that would be able

12:53to deal with this world fall?

12:56Can we do pretty well by reading all of Wikipedia,

12:59sort of randomly sampling it like language models do,

13:03or do we have to be exceptionally selective

13:06and intelligent about which aspects

13:09of the world we interact with?

13:11- So I think this is first an open scientific problem,

13:14and I don't have like a clear answer,

13:15but I can speculate a little bit.

13:18And what I would speculate is that

13:20you don't need to be super, super careful.

13:23I think it's less about like being careful

13:26to avoid the useless stuff,

13:27and more about making sure that you hit

13:29on the really important stuff.

13:31So perhaps it's okay if you spend part of your day

13:34just guided by your curiosity,

13:37visiting interesting regions of your state space,

13:40but it's important for you to,

13:42every once in a while,

13:43make sure that you really try out the solutions

13:46that your current model of the world suggests

13:48might be effective, and observe whether those solutions

13:51are working as you expect or not.

13:52And perhaps some of that is really essential

13:56to have kind of a perpetual improvement loop.

13:59Like this perpetual improvement loop is really like,

14:01that's really the key,

14:03the key that's gonna potentially distinguish

14:05the best current methods from the best methods

14:07of tomorrow in a sense.

14:08- How important do you think is exploration

14:10or total out of the box thinking,

14:15exploration in this space,

14:16is you jump to totally different domains.

14:19So you kind of mentioned there's an optimization problem,

14:21you kind of explore the specifics of a particular strategy,

14:25whatever the thing you're trying to solve.

14:27How important is it to explore totally outside

14:30of the strategies that have been working for you so far?

14:34What's your intuition there?

14:35- Yeah, I think it's a very problem dependent

14:37kind of question.

14:38And I think that that's actually,

14:40in some ways that question gets at

14:45one of the big differences between

14:47sort of the classic formulation

14:50of a reinforcement learning problem

14:51and some of the sort of more open-ended reformulations

14:56of that problem that have been explored in recent years.

14:58So classically, reinforcement learning

15:00is framed as a problem of maximizing utility,

15:02like any kind of rational AI agent.

15:04And then anything you do is in service

15:06to maximizing that utility.

15:07But a very interesting kind of way to look at,

15:14and I'm not necessarily saying

15:15this is the best way to look at it,

15:15but an interesting alternative way

15:16to look at these problems is as something

15:19where you first get to explore the world,

15:22however you please, and then afterwards,

15:24you will be tasked with doing something.

15:26And that might suggest a somewhat different solution.

15:28So if you don't know what you're gonna be tasked with doing

15:31and you just wanna prepare yourself optimally

15:33for whatever your uncertain future holds,

15:35maybe then you will choose to attain some sort of coverage,

15:39build up sort of an arsenal of cognitive tools, if you will,

15:42such that later on when someone tells you,

15:44now your job is to fetch the coffee for me,

15:47you will be well-prepared to undertake that task.

15:49- And you see that as the modern formulation

15:52of the reinforcement learning problem,

15:54as the kind of, the more multitask,

15:56the general intelligence kind of formulation.

15:59- I think that's one possible vision

16:02of where things might be headed.

16:04I don't think that's by any means the mainstream

16:06or standard way of doing things,

16:08and it's not like if I had to--

16:09- But I like it.

16:10It's a beautiful vision.

16:11So maybe actually take a step back.

16:13What is the goal of robotics?

16:16What's the general problem of robotics

16:18we're trying to solve?

16:19You actually kind of painted two pictures here,

16:21one of sort of the narrow, one of the general.

16:23What, in your view, is the big problem of robotics?

16:26Again, ridiculously philosophical, high-level questions.

16:29- I think that, you know, maybe there are two ways

16:33I can answer this question.

16:34One is there's a very pragmatic problem,

16:36which is like what would make robots,

§03Transcript · 16:40–25:08

16:40what would sort of maximize the usefulness of robots?

16:43And there the answer might be something like a system

16:47where a system that can perform whatever task

16:52a human user sets for it, you know,

16:57within the physical constraints, of course.

16:59If you tell it to teleport to another planet,

17:01it probably can't do that.

17:02But if you ask it to do something

17:03that's within its physical capability,

17:05then potentially with a little bit of additional training

17:08or a little bit of additional trial and error,

17:10it ought to be able to figure it out

17:11in much the same way as like a human teleoperator

17:14ought to figure out how to drive the robot to do that.

17:16That's kind of the very pragmatic view

17:19of what it would take to kind of solve

17:21the robotics problem, if you will.

17:23But I think that there is a second answer,

17:26and that answer is a lot closer

17:28to why I want to work on robotics,

17:30which is that I think it's less about

17:33what it would take to do a really good job

17:36in the world of robotics, but more the other way around,

17:38what robotics can bring to the table

17:40to help us understand artificial intelligence.

17:43- So your dream fundamentally is to understand intelligence.

17:47- Yes, I think that's the dream for many people

17:50who actually work in this space.

17:53I think that there's something very pragmatic

17:56and very useful about studying robotics,

17:58but I do think that a lot of people that go into this field,

18:01actually, you know, the things that they draw inspiration

18:03from are the potential for robots

18:06to help us learn about intelligence and about ourselves.

18:10- So that's fascinating, that robotics is basically

18:15the space by which you can get closer to understanding

18:18the fundamentals of artificial intelligence.

18:20So what is it about robotics that's different

18:23from some of the other approaches?

18:25So if we look at some of the early breakthroughs

18:27in deep learning or in the computer vision space

18:30and the natural language processing,

18:32there's really nice, clean benchmarks

18:34that a lot of people competed on

18:36and thereby came up with a lot of brilliant ideas.

18:38What's the fundamental difference to you

18:39between computer vision, purely defined an image net

18:43and kind of the bigger robotics problem?

18:46- So there are a couple of things.

18:48One is that with robotics,

18:50you kind of have to take away many of the crutches.

18:55So you have to deal with both the particular problems

19:00of perception, control, and so on,

19:01but you also have to deal with the integration

19:03of those things.

19:04And classically, we've always thought of the integration

19:07as kind of a separate problem.

19:08So a classic kind of modular engineering approach

19:11is that we solve the individual sub problems

19:12and wire them together, and then the whole thing works.

19:15And one of the things that we've been seeing

19:17over the last couple of decades is that,

19:19well, maybe studying the thing as a whole

19:22might lead to just like very different solutions

19:24than if we were to study the parts and wire them together.

19:26So the integrative nature of robotics research

19:29helps us see the different perspectives on the problem.

19:34Another part of the answer is that with robotics,

19:37it casts a certain paradox into very clever relief.

19:41So this is sometimes referred to as a Moravic's paradox,

19:44the idea that in artificial intelligence,

19:48things that are very hard for people

19:50can be very easy for machines and vice versa.

19:52Things that are very easy for people

19:53can be very hard for machines.

19:54So, you know, integral and differential calculus

19:59is pretty difficult to learn for people,

20:01but if you program a computer to do it,

20:03it can derive derivatives and integrals for you

20:06all day long without any trouble.

20:08Whereas some things like, you know,

20:10drinking from a cup of water,

20:12very easy for a person to do,

20:13very hard for a robot to deal with.

20:16And sometimes when we see such blatant discrepancies,

20:20that gives us a really strong hint

20:21that we're missing something important.

20:23So if we really try to zero in on those discrepancies,

20:25we might find that little bit that we're missing.

20:27And it's not that we need to make machines better

20:30or worse at math and better at drinking water,

20:33but just that by studying those discrepancies,

20:34we might find some new insight.

20:37- So that could be in any space.

20:40It doesn't have to be robotics,

20:41but you're saying, I mean,

20:44I get it's kind of interesting that robotics

20:46seems to have a lot of those discrepancies.

20:49So the Hans-Marx paradox is probably referring

20:53to the space of the physical interaction,

20:56like you said, object manipulation, walking,

20:59all the kind of stuff we do in the physical world.

21:02How do you make sense,

21:05if you were to try to disentangle the Marvox paradox,

21:10like why is there such a gap in our intuition about it?

21:17Why do you think manipulating objects is so hard

21:20from everything you've learned

21:22from applying reinforcement learning in this space?

21:25- Yeah, I think that one reason is maybe that

21:31for many of the other problems that we've studied

21:34in AI and computer science and so on,

21:36the notion of input, output and supervision

21:41is much, much cleaner.

21:42So computer vision, for example,

21:43deals with very complex inputs,

21:45but it's comparatively a bit easier,

21:48at least up to some level of abstraction

21:51to cast it as a very tightly supervised problem.

21:54It's comparatively much, much harder

21:56to cast robotic manipulation

21:58as a very tightly supervised problem.

22:00You can do it, it just doesn't seem to work all that well.

22:03So you could say that, well,

22:04maybe we get a label data set

22:06where we know exactly which motor commands to send

22:08and then we train on that.

22:09But for various reasons,

22:11that's not actually like such a great solution.

22:13And it also doesn't seem to be even remotely similar

22:16to how people and animals learn to do things

22:17because we're not told by like our parents,

22:20here's how you fire your muscles in order to walk.

22:24We do get some guidance,

22:26but the really low level detailed stuff,

22:28we figure out mostly on our own.

22:29- And that's what you mean by tightly coupled,

22:31that every single little sub action

22:33gets a supervised signal of whether it's a good one or not.

22:37- Right.

22:37So while in computer vision,

22:39you could sort of imagine up to a level of abstraction

22:41that maybe somebody told you this is a car

22:43and this is a cat and this is a dog,

22:45in motor control, it's very clear

22:46that that was not the case.

22:48- If we look at sort of the sub spaces of robotics,

22:53that again, as you said,

22:56robotics integrates all of them together

22:58and we get to see how this beautiful mess interplays.

23:01So there's nevertheless still perception.

23:03So it's the computer vision problem,

23:06broadly speaking, understanding the environment.

23:09Then there's also, maybe you can correct me

23:11on this kind of categorization of the space.

23:14Then there's prediction in trying to anticipate

23:18what things are going to do into the future

23:20in order for you to be able to act in that world.

23:24And then there's also this game theoretic aspect

23:28of how your actions will change the behavior of others.

23:32In this kind of space, what,

23:36and this is bigger than reinforcement learning,

23:38this is just broadly looking at the problem in robotics.

23:40What's the hardest problem here?

23:42Or is there, or is what you said true

23:46that when you start to look at all of them together,

23:52that's a whole nother thing?

23:54Like you can't even say which one individually is harder

23:57because all of them together,

23:58you should only be looking at them all together.

24:01- I think when you look at them all together,

24:03some things actually become easier.

24:05And I think that's actually pretty important.

24:07So we had, back in 2014, we had some work,

24:12basically our first work on end-to-end

24:15reinforcement learning for robotic manipulation skills

24:17from vision, which at the time was something

24:20that seemed a little inflammatory and controversial

24:23in the robotics world.

24:25But other than the inflammatory

24:28and controversial part of it,

24:29the point that we were actually trying to make in that work

24:31is that for the particular case

24:33of combining perception and control,

24:36you could actually do better if you treat them together

24:38than if you try to separate them.

24:39And the way that we tried to demonstrate this

24:41is we picked a fairly simple motor control task

24:43where a robot had to insert a little red trapezoid

24:47into a trapezoidal hole.

24:49And we had our separated solution,

24:52which involved first detecting the hole

24:53using a pose detector,

24:54and then actuating the arm to put it in.

24:57And then our intent solution,

24:58which just mapped pixels to the torques.

25:01And one of the things we observed is that

25:03if you use the intent solution,

25:05essentially the pressure on the perception part

25:07of the model is actually lower.

25:08Like it doesn't have to figure out exactly

§04Transcript · 25:09–32:54

25:09where the thing is in 3D space.

25:11It just needs to figure out where it is,

25:14distributing the errors in such a way

25:15that the horizontal difference matters

25:17more than the vertical difference,

25:18because vertically it just pushes it down all the way

25:20until it can't go any further.

25:21And their perceptual errors are a lot less harmful,

25:24whereas perpendicular to the direction of motion,

25:26perceptual errors are much more harmful.

25:28So the point is that if you combine these two things,

25:32you can trade off errors between the components

25:34optimally to best accomplish the task.

25:37And the components can actually be weaker

25:39while still leading to better overall performance.

25:41- That's a profound idea.

25:43I mean, in the space of pegs and things like that,

25:47it's quite simple.

25:48It almost is tempting to overlook,

25:51but that seems to be at least intuitively an idea

25:54that should generalize to basically all aspects

25:58of perception control.

26:00- Of course.

26:00- That one strengthens the other.

26:01- Yeah, and people who have studied

26:05sort of perceptual heuristics in humans and animals

26:07find things like that all the time.

26:08So one very well-known example

26:10of this is something called the gaze heuristic,

26:12which is a little trick that you can use

26:15to intercept a flying object.

26:17So if you want to catch a ball, for instance,

26:19you could try to localize it in 3D space,

26:21estimate its velocity,

26:22estimate the effect of wind resistance,

26:24solve a complex system of differential equations

26:25in your head,

26:27or you can maintain a running speed

26:31so that the object stays in the same position

26:32as in your field of view.

26:34So if it dips a little bit, you speed up.

26:35If it rises a little bit, you slow down.

26:38And if you follow the simple rule,

26:39you'll actually arrive at exactly the place

26:40where the object lands and you'll catch it.

26:42And humans use it when they play baseball.

26:45Human pilots use it when they fly airplanes

26:47to figure out if they're about to collide with somebody.

26:49Frogs use this to catch insects and so on and so on.

26:51So this is something that actually happens in nature.

26:53And I'm sure this is just one instance of it

26:55that we were able to identify

26:56just because all the scientists were able to identify

26:59because it's so prevalent,

27:00but there are probably many others.

27:02- Do you have a, just so we can zoom in

27:04as we talk about robotics,

27:05do you have a canonical problem,

27:07sort of a simple, clean, beautiful,

27:10representative problem in robotics

27:12that you think about

27:14when you're thinking about some of these problems?

27:15We talked about robotic manipulation.

27:18To me, that seems intuitively,

27:21at least the robotics community has converged towards that

27:25as a space that's the canonical problem.

27:28If you agree, then maybe do you zoom in

27:30in some particular aspect of that problem

27:33that you just like?

27:34Like if we solve that problem perfectly,

27:37it'll unlock a major step

27:39towards human-level intelligence.

27:42- I don't think I have like a really great answer

27:45to that.

27:46And I think partly the reason I don't have a great answer

27:49kind of has to do with the,

27:51it has to do with the fact that the difficulty

27:54is really in the flexibility and adaptability

27:57rather than in doing a particular thing really, really well.

28:00So it's hard to just say like,

28:03oh, if you can, I don't know,

28:05like shuffle a deck of cards as fast

28:07as like a Vegas casino dealer,

28:10then you'll be very proficient.

28:12It's really the ability to quickly figure out

28:16how to do some arbitrary new thing well enough

28:21to like, you know, to move on to the next arbitrary thing.

28:26- But the source of newness and uncertainty,

28:29have you found problems in which it's easy

28:33to generate new newness-ness-nesses?

28:37- Yeah.

28:38- New types of newness.

28:40- Yeah.

28:41So a few years ago,

28:43so if you had asked me this question around like 2016,

28:46maybe I would have probably said that robotic grasping

28:48is a really great example of that

28:50because it's a task with great real world utility.

28:54Like you will get a lot of money if you can do it well.

28:57- What is robotic grasping?

28:58- Picking up any object.

29:00- With a robotic hand.

29:02- Exactly.

29:03So you will get a lot of money if you do it well

29:04because lots of people want to run warehouses with robots.

29:07And it's highly non-trivial

29:08because very different objects

29:12will require very different grasping strategies.

29:14But actually since then,

29:16people have gotten really good at building systems

29:19to solve this problem.

29:21It's to the point where I'm not actually sure

29:22how much more progress we can make

29:25with that as like the main guiding thing.

29:29But it's kind of interesting to see the kind of methods

29:31that have actually worked well in that space

29:33because a robotic grasping classically

29:36used to be regarded very much as

29:39kind of almost like a geometry problem.

29:41So people who have studied the history of computer vision

29:44will find this very familiar

29:46that it's kind of in the same way

29:48that in the early days of computer vision,

29:49people thought of it very much

29:50as like an inverse graphics thing.

29:52In robotic grasping,

29:53people thought of it as an inverse physics problem.

29:56Essentially, you look at what's in front of you,

29:58figure out the shapes,

29:59then use your best estimate of the laws of physics

30:02to figure out where to put your fingers

30:03and then you pick up the thing.

30:05And it turns out that what works really well

30:07for robotic grasping,

30:08instantiated in many different recent works,

30:11including our own, but also ones from many other labs,

30:13is to use learning methods

30:16with some combination of either exhaustive simulation

30:19or like actual real world trial and error.

30:22And it turns out that those things

30:23actually work really well

30:23and then you don't have to worry about

30:25solving geometry problems or physics problems.

30:27- So what are, just by the way, in the grasping,

30:32what are the difficulties that have been worked on?

30:35So one is like the materials of things,

30:38maybe occlusions and the perception side.

30:40Why is it such a difficult,

30:42why is picking stuff up such a difficult problem?

30:45- Yeah, it's a difficult problem

30:47because the number of things

30:50that you might have to deal with

30:51or the variety of things that you have to deal with

30:53is extremely large.

30:54And oftentimes things that work for one class of objects

30:58won't work for other classes of objects.

31:00So if you get really good at picking up boxes

31:03and now you have to pick up plastic bags,

31:06you just need to employ a very different strategy.

31:09And there are many properties of objects

31:13that are more than just their geometry.

31:15It has to do with the bits that are easier to pick up,

31:18the bits that are harder to pick up,

31:19the bits that are more flexible,

31:20the bits that will cause the thing to pivot and bend

31:23and drop out of your hand

31:24versus the bits that result in a nice secure grasp,

31:27things that are flexible,

31:29things that if you pick them up the wrong way,

31:30they'll fall upside down and the contents will spill out.

31:33So there's all these little details that come up,

31:36but the task is still kind of,

31:38can be characterized as one task.

31:39Like there's a very clear notion of

31:41you did it or you didn't do it.

31:42- So in terms of spilling things,

31:46there creeps in this notion that starts to sound

31:50and feel like common sense reasoning.

31:52Do you think solving the general problem of robotics

31:57requires common sense reasoning,

32:01requires general intelligence,

32:04this kind of human level capability of,

32:07like you said, be robust and deal with uncertainty,

32:11but also be able to sort of reason

32:13and assimilate different pieces of knowledge that you have?

32:16Yeah.

32:19What are your thoughts on the needs

32:23of common sense reasoning in the space

32:25of the general robotics problem?

32:28- So I'm gonna slightly dodge that question

32:30and say that I think maybe actually

32:32it's the other way around is that studying robotics

32:36can help us understand how to put common sense

32:38into our AI systems.

32:40One way to think about common sense is that,

32:43and why our current systems might lack common sense,

32:45is that common sense is a property,

32:47is an emergent property of actually having to interact

32:51with a particular world, a particular universe,

32:54and get things done in that universe.

§05Transcript · 32:56–41:09

32:56So you might think that, for instance,

32:57like an image captioning system,

33:00maybe it looks at pictures of the world

33:03and it types out English sentences.

33:05So it kind of deals with our world.

33:07And then you can easily construct situations

33:11where image captioning systems do things

33:12that defy common sense,

33:13like give it a picture of a person wearing a fur coat

33:16and we'll say it's a teddy bear.

33:18But I think what's really happening in those settings

33:20is that the system doesn't actually live in our world,

33:24it lives in its own world that consists of pixels

33:26and English sentences,

33:27and doesn't actually consist of like,

33:29having to put on a fur coat in the winter

33:31so you don't get cold.

33:33So perhaps the reason for the disconnect

33:35is that the systems that we have now

33:39simply inhabit a different universe.

33:41And if we build AI systems that are forced to deal

33:43with all of the messiness and complexity of our universe,

33:46maybe they will have to acquire common sense

33:48to essentially maximize their utility.

33:51Whereas the systems we're building now

33:52don't have to do that, they can take some shortcut.

33:56- That's fascinating.

33:57You've a couple times already sort of reframed

34:00the role of robotics in this whole thing.

34:02And for some reason,

34:03I don't know if my way of thinking is common,

34:06but I thought like,

34:08we need to understand and solve intelligence

34:10in order to solve robotics.

34:12And you're kind of framing it as,

34:14no, robotics is one of the best ways

34:16to just study artificial intelligence

34:18and build sort of like,

34:20robotics is like the right space

34:22in which you get to explore

34:25some of the fundamental learning mechanisms,

34:28fundamental sort of multimodal, multitask,

34:33aggregation of knowledge mechanisms

34:35that are required for general intelligence.

34:36That's really interesting way to think about it.

34:39But let me ask about learning.

34:41Can the general sort of robotics,

34:44the epitome of the robotics problem

34:45be solved purely through learning,

34:47perhaps end-to-end learning?

34:51Sort of learning from scratch

34:54as opposed to injecting human expertise

34:57and rules and heuristics and so on?

34:59- I think that in terms of the spirit of the question,

35:02I would say yes.

35:04I mean, I think that though in some ways

35:07it's maybe like an overly sharp dichotomy.

35:11Like, I think that in some ways when we build algorithms,

35:14at some point a person does something.

35:18- Yeah, hyper parameters, there's always--

35:19- A person turned on the computer,

35:21a person implemented TensorFlow.

35:24But yeah, I think that in terms of the point

35:28that you're getting at, I do think the answer is yes.

35:30I think that we can solve many problems

35:34that have previously required meticulous manual engineering

35:37through automated optimization techniques.

35:39And actually one thing I will say on this topic is

35:42I don't think this is actually a very radical

35:44or very new idea.

35:45I think people have been thinking

35:47about automated optimization techniques

35:49as a way to do control for a very, very long time.

35:53And in some ways what's changed is really more the name.

35:57So today we would say that, oh, my robot does

36:01machine learning, it does reinforcement learning.

36:03Maybe in the 1960s you'd say,

36:05oh, my robot is doing optimal control.

36:08And maybe the difference between typing out

36:10a system of differential equations

36:12and doing feedback linearization

36:14versus training a neural net,

36:15maybe it's not such a large difference.

36:16It's just pushing the optimization deeper

36:20and deeper into the thing.

36:22- Well, it's interesting you think that way,

36:23but with, especially with deep learning,

36:26that the accumulation of sort of experiences

36:30in data form to form deep representations

36:34starts to feel like knowledge

36:36as opposed to optimal control.

36:39So this feels like there's an accumulation of knowledge

36:41through the learning process.

36:43- Yes, yeah.

36:43So I think that is a good point,

36:44that one big difference between learning-based systems

36:48and classic optimal control systems

36:49is that learning-based systems in principle

36:52should get better and better the more they do something.

36:55And I do think that that's actually

36:56a very, very powerful difference.

36:58- So if we look back at the world of expert systems

37:01and symbolic AI and so on,

37:03of using logic to accumulate expertise,

37:07human expertise, human encoded expertise,

37:10do you think that will have a role at some point?

37:14Deep learning, machine learning, reinforcement learning

37:17has shown incredible results and breakthroughs

37:21and just inspired thousands, maybe millions of researchers.

37:26But there's this less popular now,

37:30but it used to be popular idea of symbolic AI.

37:32Do you think that will have a role?

37:35- I think in some ways,

37:36the kind of the descendants of symbolic AI

37:42actually already have a role.

37:44So this is the highly biased history from my perspective.

37:48You say that, well, initially we thought

37:50that rational decision-making

37:52involves logical manipulation.

37:54So you have some model of the world

37:56expressed in terms of logic.

37:59You have some query,

38:00like what action do I take in order for X to be true?

38:04And then you manipulate

38:05your logical symbolic representation to get an answer.

38:08What that turned into somewhere in the 1990s is,

38:11well, instead of building kind of predicates

38:14and statements that have true or false values,

38:17we'll build probabilistic systems

38:19where things have probabilities associated

38:21and probabilities of being true and false.

38:23And that turned into Bayes nets.

38:24And that provided sort of a boost

38:27to what were really,

38:28still essentially logical inference systems,

38:30just probabilistic logical inference systems.

38:32And then people said, well, let's actually learn

38:35the individual probabilities inside these models.

38:39And then people said, well,

38:40let's not even specify the nodes in the models.

38:42Let's just put a big neural net in there.

38:45But in many ways,

38:46I see these as actually kind of descendants

38:47from the same idea.

38:48It's essentially instantiating rational decision-making

38:51by means of some inference process

38:53and learning by means of an optimization process.

38:56So in a sense, I would say, yes, it has a place.

39:00And in many ways, that place is,

39:01it already holds that place.

39:04- It's already in there.

39:05Yeah, it's just by different,

39:06it looks slightly different than it was before.

39:09- Yeah, but there are some things

39:10that we can think about

39:11that make this a little bit more obvious.

39:13Like if I train a big neural net model

39:15to predict what will happen

39:17in response to my robot's actions,

39:18and then I run probabilistic inference,

39:21meaning I invert that model

39:22to figure out the actions

39:23that lead to some plausible outcome.

39:24Like to me, that seems like a kind of logic.

39:27You have a model of the world

39:28that just happens to be expressed by a neural net,

39:31and you are doing some inference procedure,

39:33some sort of manipulation on that model

39:35to figure out the answer to a query that you have.

39:39- It's the interpretability,

39:41it's the explainability though

39:42that seems to be lacking more so.

39:44Because the nice thing about expert systems

39:48is you can follow the reasoning of the system.

39:50That to us mere humans is somehow compelling.

39:54It's just, I don't know what to make of this fact

40:00that there's a human desire for intelligent systems

40:04to be able to convey in a poetic way to us

40:10why it made the decisions it did.

40:12Like tell a convincing story.

40:15And perhaps that's like a silly human thing.

40:20Like we shouldn't expect that of intelligent systems.

40:22Like we should be super happy

40:24that there is intelligent systems out there.

40:27But if I were to sort of psychoanalyze the researchers

40:31at the time, I would say expert systems

40:33connected to that part.

40:35That desire of AI researchers

40:37for systems to be explainable.

40:40I mean, maybe on that topic,

40:41do you have a hope that sort of inferences

40:45of learning-based systems will be as explainable

40:50as the dream was with expert systems, for example?

40:53- I think it's a very complicated question

40:56because I think that in some ways

40:58the question of explainability

41:00is kind of very closely tied

41:03to the question of like performance.

41:06Like, why do you want your system to explain itself?

41:09Well, so that when it screws up,

§06Transcript · 41:11–49:29

41:11you can kind of figure out why it did it.

41:13- Right.

41:14- But in some ways that's a much bigger problem, actually.

41:17Like your system might screw up

41:19and then it might screw up in how it explains itself.

41:22Or you might have some bug somewhere

41:24so that it's not actually doing what it was supposed to do.

41:26So, maybe a good way to view that problem

41:30is really as a bigger problem of verification and validation

41:36of which explainability is sort of one component.

41:39- I see.

41:40I just see it differently.

41:41I see explainability, you put it beautifully.

41:43I think you actually summarize the field of explainability.

41:46But to me, there's another aspect of explainability

41:49which is like storytelling

41:51that has nothing to do with errors or with like,

41:56it uses errors as elements of its story

42:03as opposed to a fundamental need

42:05to be explainable when errors occur.

42:08It's just that for other intelligence systems

42:10to be in our world,

42:11we seem to want to tell each other stories.

42:14And that's true in the political world,

42:17that's true in the academic world.

42:19And that, you know,

42:21neural networks are less capable of doing that.

42:23Or perhaps they're equally capable

42:25of storytelling and storytelling.

42:26Maybe it doesn't matter

42:28what the fundamentals of the system are.

42:30You just need to be a good storyteller.

42:32Maybe one specific story I can tell you about

42:35in that space is actually about some work

42:38that was done by my former collaborator

42:40who's now a professor at MIT named Jacob Andreas.

42:43Jacob actually works in natural language processing,

42:45but he had this idea to do a little bit of work

42:47in reinforcement learning

42:49and how natural language can basically structure

42:52the internals of policies trained with RL.

42:55And one of the things he did is he set up a model

42:59that attempts to perform some tasks

43:01that's defined by a reward function,

43:03but the model reads in a natural language instruction.

43:06So this is a pretty common thing to do

43:07in instruction following.

43:08So you tell it like, you know, go to the red house

43:11and then it's supposed to go to the red house.

43:13But then one of the things that Jacob did

43:14is he treated that sentence not as a command from a person,

43:19but as a representation of the internal kind of state

43:23of the mind of this policy, essentially.

43:26So that when it was faced with a new task,

43:28what it would do is it would basically try to think

43:31of possible language descriptions,

43:33attempt to do them and see if they led to the right outcome.

43:35So it would kind of think out loud, like, you know,

43:37I'm faced with this new task, what am I gonna do?

43:39Let me go to the red house.

43:40Oh, that didn't work.

43:41Let me go to the blue room or something.

43:43Let me go to the green plant.

43:45And once it got some reward, it would say,

43:46oh, go to the green plant, that's what's working.

43:48I'm gonna go to the green plant.

43:49And then you could look at the string that it came up with,

43:51and that was a description of how it thought

43:52it should solve the problem.

43:54So you could basically incorporate language

43:57as internal state and you can start getting some handle

43:59on these kinds of things.

44:00- And then what I was kind of trying to get to is that

44:04also if you add to the reward function,

44:07the convincingness of that story.

44:10So I have another reward signal of like,

44:12people who review that story, how much they like it.

44:16So that, you know, initially that could be a hyper parameter

44:21sort of hard coded heuristic type of thing,

44:23but it's an interesting notion of the convincingness

44:28of the story becoming part of the reward function,

44:31the objective function of the explainability.

44:33It's in the world of sort of Twitter and fake news,

44:37that might be a scary notion that the nature of truth

44:42may not be as important as the convincingness of the,

44:45how convinced you are in telling the story around the facts.

44:50Well, let me ask the basic question.

44:55You're one of the world-class researchers

44:57in reinforcement learning, deep reinforcement learning,

44:59certainly in the robotics space.

45:01What is reinforcement learning?

45:04- I think that what reinforcement learning refers to today

45:06is really just the kind of the modern incarnation

45:10of learning-based control.

45:12So classically reinforcement learning

45:14has a much more narrow definition,

45:15which is that it's literally learning from reinforcement,

45:18like the thing does something

45:20and then it gets a reward or punishment.

45:22But really I think the way the term is used today

45:24is it's used to refer more broadly to learning-based control.

45:28So some kind of system

45:29that's supposed to be controlling something

45:31and it uses data to get better.

45:34- And what does control mean?

45:35So is action is the fundamental element there?

45:38- It means making rational decisions.

45:40Now, and rational decisions are decisions

45:42that maximize a measure of utility.

45:44- And sequentially, so you made decisions

45:46time and time and time again.

45:48Now, like, it's easier to see that kind of idea

45:52in the space of maybe games, in the space of robotics.

45:56Do you see it bigger than that?

45:58Is it applicable?

46:00Like, where are the limits of the applicability

46:02of reinforcement learning?

46:04- Yeah, so rational decision-making

46:07is essentially the encapsulation of the AI problem

46:11viewed through a particular lens.

46:12So any problem that we would want a machine to do,

46:16an intelligent machine,

46:18can likely be represented as a decision-making problem.

46:20Classifying images is a decision-making problem,

46:23although not a sequential one typically.

46:25Controlling a chemical plant is a decision-making problem.

46:30Deciding what videos to recommend on YouTube

46:32is a decision-making problem.

46:34And one of the really appealing things

46:35about reinforcement learning is,

46:38if it does encapsulate the range

46:40of all of these decision-making problems,

46:41perhaps working on reinforcement learning

46:43is one of the ways to reach a very broad swath

46:47of AI problems.

46:50- But what is the fundamental difference

46:52between reinforcement learning

46:54and maybe supervised machine learning?

46:56- So reinforcement learning can be viewed

47:00as a generalization of supervised machine learning.

47:02You can certainly cast supervised learning

47:04as a reinforcement learning problem.

47:05You can just say your loss function

47:06is the negative of your reward,

47:08but you have stronger assumptions.

47:10You have the assumption that someone actually told you

47:12what the correct answer was,

47:14that your data was IID and so on.

47:15So you could view reinforcement learning

47:18as essentially relaxing some of those assumptions.

47:20Now that's not always a very productive way to look at it,

47:22because if you actually have a supervised learning problem,

47:24you'll probably solve it much more effectively

47:25by using supervised learning methods, because it's easier.

47:29But you can view reinforcement learning

47:31as a generalization of that.

47:32- No, for sure.

47:33But they're fundamentally different.

47:35That's a mathematical statement

47:37that's absolutely correct.

47:38But it seems that reinforcement learning,

47:41the kind of tools we bring to the table today,

47:43of today, so maybe down the line,

47:46everything will be a reinforcement learning problem,

47:48just like you said, image classification should be mapped

47:52to a reinforcement learning problem.

47:53But today, the tools and ideas,

47:56the way we think about them are different.

47:58Sort of supervised learning has been used very effectively

48:02to solve basic, narrow AI problems.

48:06Reinforcement learning kind of represents the dream of AI.

48:11It's very much so in the research space now,

48:15in sort of captivating the imagination of people,

48:17of what we can do with intelligent systems,

48:19but it hasn't yet had as wide of an impact

48:23as the supervised learning approaches.

48:25So my question comes from the more practical sense.

48:29Like, what do you see is the gap

48:31between the more general reinforcement learning

48:34and the very specific, yes, it's sequential decision-making

48:38with one step in the sequence of the supervised learning?

48:43- So from a practical standpoint,

48:44I think that one thing that is potentially

48:48a little tough now, and this is, I think,

48:49something that we'll see, this is a gap

48:52that we might see closing over the next couple of years,

48:54is the ability of reinforcement learning algorithms

48:57to effectively utilize large amounts of prior data.

49:00So one of the reasons why it's a bit difficult today

49:03to use reinforcement learning for all the things

49:05that we might wanna use it for is that

49:07in most of the settings where we wanna do

49:10rational decision-making, it's a little bit tough

49:13to just deploy some policy that does crazy stuff

49:16and learns purely through trial and error.

49:18It's much easier to collect a lot of data,

49:21a lot of logs of some other policy that you've got,

49:23and then maybe if you can get a good policy out of that,

49:27then you deploy it and let it kind of fine tune

49:29a little bit.

§07Transcript · 49:30–57:05

49:30But algorithmically, it's quite difficult to do that.

49:33So I think that once we figure out how to get

49:36reinforcement learning to bootstrap effectively

49:37from large data sets, then we'll see

49:40a very, very rapid growth in applications

49:44of these technologies.

49:44So this is what's referred to as

49:45off-policy reinforcement learning,

49:47or offline RL, or batch RL.

49:49And I think we're seeing a lot of research right now

49:52that's bringing us closer and closer to that.

49:54- Can you maybe paint the picture of the different methods?

49:57So you said off-policy, what's value-based

50:01reinforcement learning?

50:01What's policy-based?

50:02What's model-based?

50:03What's off-policy, on-policy?

50:05What are the different categories of reinforcement learning?

50:08- So one way we can think about reinforcement learning

50:10is that it's, in some very fundamental way,

50:15it's about learning models that can answer

50:18kind of what-if questions.

50:20So what would happen if I take this action

50:22that I hadn't taken before?

50:23And you do that, of course, from experience, from data.

50:26And oftentimes, you do it in a loop.

50:28So you build a model that answers these what-if questions,

50:31use it to figure out the best action you can take,

50:33and then go and try taking that

50:35and see if the outcome agrees with what you predicted.

50:38So the different kinds of techniques

50:41basically refer to different ways of doing it.

50:43So model-based methods answer a question

50:45of what state you would get,

50:48basically what would happen to the world

50:49if you were to take a certain action.

50:50Value-based methods, they answer the question

50:53of what value you would get,

50:54meaning what utility you would get.

50:57But in a sense, they're not really all that different

50:59because they're both really just answering

51:01these what-if questions.

51:03Now, unfortunately for us,

51:05with current machine learning methods,

51:06answering what-if questions can be really hard

51:08because they are really questions

51:10about things that didn't happen.

51:12If you wanted to answer what-if questions

51:13about things that did happen,

51:14you wouldn't need a learned model.

51:15You would just repeat the thing that worked before.

51:18And that's really a big part of why RL is a little bit tough.

51:23So if you have a purely on-policy online process,

51:27then you ask these what-if questions,

51:29you make some mistakes,

51:31then you go and try doing those mistaken things,

51:33and then you observe the counter examples

51:35that'll teach you not to do those things again.

51:37If you have a bunch of off-policy data

51:39and you just want to synthesize the best policy you can

51:42out of that data,

51:43then you really have to deal with the challenges

51:46of making these counterfactual.

51:48- First of all, what's a policy?

51:49- Yeah, a policy is a model or some kind of function

51:54that maps from observations of the world to actions.

51:59So in reinforcement learning,

52:01we often refer to the current configuration

52:05of the world as the state.

52:06So we say the state kind of encompasses everything

52:08you need to fully define where the world is at at the moment.

52:11And depending on how we formulate the problem,

52:13we might say you either get to see the state

52:15or you get to see an observation,

52:16which is some snapshot, some piece of the state.

52:19- So policy just includes everything in it

52:23in order to be able to act in this world.

52:25- Yes.

52:26- And so what does off-policy mean?

52:29- So yeah, so the terms on-policy and off-policy

52:31refer to how you get your data.

52:33So if you get your data from somebody else

52:36who was doing some other stuff,

52:37maybe you get your data from some manually programmed system

52:41that was just running in the world before,

52:44that's referred to as off-policy data.

52:46But if you got the data by actually acting in the world

52:48based on what your current policy thinks is good,

52:51we call that on-policy data.

52:53And obviously on-policy data is more useful to you

52:55because if your current policy makes some bad decisions,

52:59you will actually see that those decisions are bad.

53:01Off-policy data, however, might be much easier to obtain

53:03because maybe that's all the log data

53:06that you have from before.

53:08- So we talk about, offline talked about autonomous vehicles

53:12so you can envision off-policy kind of approaches

53:15in robotic spaces where there's already

53:18ton of robots out there, but they don't get the luxury

53:20of being able to explore based on

53:24reinforcement learning framework.

53:26So how do we make, again, open question,

53:29but how do we make off-policy methods work?

53:32- Yeah, so this is something that has been

53:35kind of a big open problem for a while.

53:36And in the last few years,

53:38people have made a little bit of progress on that.

53:41You know, I can tell you about,

53:42and it's not by any means solved yet,

53:44but I can tell you some of the things that, for example,

53:46we've done to try to address some of the challenges.

53:49It turns out that one really big challenge

53:51with off-policy reinforcement learning

53:53is that you can't really trust your models

53:57to give accurate predictions for any possible action.

54:00So if I've never tried to, if in my data set,

54:03I never saw somebody steering the car

54:05off the road onto the sidewalk,

54:07my value function or my model

54:10is probably not going to predict the right thing

54:11if I ask what would happen if I were to steer the car

54:13off the road onto the sidewalk.

54:15So one of the important things you have to do

54:18to get off-policy RL to work

54:20is you have to be able to figure out

54:21whether a given action will result

54:23in a trustworthy prediction or not.

54:25And you can use kind of distribution estimation methods,

54:29kind of density estimation methods

54:31to try to figure that out.

54:32So you could figure out that, well, this action,

54:33my model is telling me that it's great,

54:35but it looks totally different

54:36from any action I've taken before,

54:37so my model is probably not correct.

54:40And you can incorporate regularization terms

54:43into your learning objective

54:44that will essentially tell you not to ask those questions

54:48that your model is unable to answer.

54:50- What would lead to breakthroughs in this space,

54:53do you think?

54:54Like what's needed?

54:55Is this a data set question?

54:57Do we need to collect big benchmark data sets

55:01that allow us to explore the space?

55:03Is it a new kinds of methodologies?

55:07Like what's your sense?

55:09Or maybe coming together in a space of robotics

55:12and defining the right problem to be working on.

55:15- I think for off-policy reinforcement learning

55:16in particular, it's very much

55:17an algorithms question right now.

55:19And this is something that I think is great

55:22because an algorithms question is,

55:24that that just takes some very smart people to get together

55:27and think about it really hard.

55:28Whereas if it was like a data problem or hardware problem,

55:32that would take some serious engineering.

55:34So that's why I'm pretty excited about that problem

55:37because I think that we're in a position

55:38where we can make some real progress on it

55:40just by coming up with the right algorithms.

55:42In terms of which algorithms they could be,

55:44the problems at their core are very related to problems

55:48in things like causal inference, right?

55:51Because what you're really dealing with is situations

55:53where you have a model, a statistical model,

55:56that's trying to make predictions

55:57about things that it hadn't seen before.

56:00And if it's a model that's generalizing properly,

56:03that'll make good predictions.

56:04If it's a model that picks up on spurious correlations

56:07that will not generalize properly.

56:08And then you have an arsenal of tools you could use.

56:11You could, for example, figure out

56:12what are the regions where it's trustworthy,

56:14or on the other hand,

56:15you could try to make it generalize better somehow,

56:17or some combination of the two.

56:20- Is there room for mixing, sort of,

56:24where most of it, like 90, 95% is off policy,

56:29you already have the dataset,

56:31and then you get to send the robot out

56:34to do a little exploration?

56:35Like, what's that role of mixing them together?

56:39- Yeah, absolutely.

56:39I think that this is something that you actually

56:43described very well at the beginning of our discussion

56:45when you talked about the iceberg.

56:47Like, this is the iceberg.

56:48The 99% of your prior experience,

56:50that's your iceberg.

56:51You'd use that for off-policy reinforcement learning.

56:54And then, of course, if you've never, you know,

56:56opened that particular kind of door

56:58with that particular lock before,

57:00then you have to go out and fiddle with it a little bit,

57:02and that's that additional 1%

57:03to help you figure out a new task.

57:05And I think that's actually, like,

§08Transcript · 57:06–1:05:41

57:06a pretty good recipe going forward.

57:08- Is this, to you, the most exciting space

57:11of reinforcement learning now?

57:12Or is there, what's, and maybe taking a step back,

57:16not just now, but what's, to you,

57:18is the most beautiful idea?

57:20Apologize for the romanticized question,

57:22but the beautiful idea or concept

57:24in reinforcement learning?

57:25- In general, I actually think that one of the things

57:30that is a very beautiful idea in reinforcement learning

57:32is just the idea that you can obtain a near-optimal control

57:37or a near-optimal policy without actually having

57:43a complete model of the world.

57:45This is, you know, it's something that feels

57:49perhaps kind of obvious if you just hear

57:53the term reinforcement learning

57:54or you think about trial and error learning,

57:55but from a control's perspective, it's a very weird thing

57:58because classically, you know, we think about

58:03engineered systems and controlling engineered systems

58:05as the problem of writing down some equations

58:08and then figuring out, given these equations,

58:10you know, basically like solve for X,

58:11figure out the thing that maximizes its performance.

58:15And the theory of reinforcement learning

58:18actually gives us a mathematically principled framework

58:21to reason about, you know, optimizing some quantity

58:25when you don't actually know the equations

58:27that govern that system.

58:28And that, I don't know, to me, that actually seems

58:31kind of, you know, very elegant,

58:34not something that sort of becomes immediately obvious,

58:38at least in the mathematical sense.

58:40- Does it make sense to you that it works at all?

58:42- Well, I think it makes sense when you take some time

58:46to think about it, but it is a little surprising.

58:49- Well, then taking a step into the more

58:53deeper representations, which is also very surprising,

58:56of sort of the richness of the state space,

59:01the space of environments that this kind of approach

59:05can operate in, can you maybe say

59:07what is deep reinforcement learning?

59:10- Well, deep reinforcement learning simply refers

59:13to taking reinforcement learning algorithms

59:16and combining them with high capacity

59:18neural net representations, which is, you know,

59:21kind of, it might at first seem like a pretty arbitrary

59:23thing, just take these two components

59:24and stick them together.

59:26But the reason that it's something that has become

59:29so important in recent years is that reinforcement learning,

59:35it kind of faces an exacerbated version of a problem

59:38that has faced many other machine learning techniques.

59:39So if we go back to like, you know, the early 2000s

59:44or the late 90s, we'll see a lot of research

59:46on machine learning methods that have some very appealing

59:50mathematical properties, like they reduce

59:52the convex optimization problems, for instance,

59:54but they require very special inputs.

59:57They require a representation of the input

59:59that is clean in some way, like for example,

60:02clean in the sense that the classes

60:05in your multi-class classification problems

60:06separate linearly.

60:07So they have some kind of good representation

60:10and we call this a feature representation.

60:12And for a long time, people were very worried

60:14about features in the world of supervised learning

60:15because somebody had to actually build those features.

60:18So you couldn't just take an image and plug it

60:19into your logistic regression or your SVM or something.

60:22Someone had to take that image and process it

60:24using some handwritten code.

60:26And then neural nets came along

60:27and they could actually learn the features.

60:29And suddenly we could apply learning directly

60:32to the raw inputs, which was great for images,

60:34but it was even more great for all the other fields

60:37where people hadn't come up with good features yet.

60:39And one of those fields is actually reinforcement learning

60:41because in reinforcement learning,

60:43the notion of features, if you don't use neural nets

60:45and you have to design your own features,

60:46is very, very opaque.

60:48Like it's very hard to imagine,

60:51let's say I'm playing chess or go,

60:53what is a feature with which I can represent

60:56the value function for go

60:57or even the optimal policy for go linearly?

61:00Like, I don't even know how to start thinking about it.

61:02And people tried all sorts of things.

61:04They would write down, you know,

61:05an expert chess player looks for whether the knight

61:07is in the middle of the board or not.

61:09So that's a feature, is knight in middle of board?

61:11And they would write these like long lists

61:13of kind of arbitrary made up stuff.

61:15And that was really kind of getting us nowhere.

61:17- And that's a little, chess is a little more accessible

61:20than the robotics problem.

61:21- Absolutely.

61:22- Right, there's at least experts

61:24in the different features for chess.

61:27But still like the neural network there,

61:31to me that's, I mean, you put it eloquently

61:34and almost made it seem like a natural step

61:36to add neural networks.

61:38But the fact that neural networks are able

61:41to discover features in the control problem,

61:44it's very interesting, it's hopeful.

61:47I'm not sure what to think about it,

61:48but it feels hopeful that the control problem

61:51has features to be learned.

61:54- Like, I guess my question is,

61:57is it surprising to you how far the deep side

62:01of deep reinforcement learning was able to,

62:03like what the space of problems has been able to tackle

62:06from, especially in games with the AlphaStar

62:10and AlphaZero and just the representation power there

62:15and in the robotics space.

62:18And what is your sense of the limits

62:21of this representation power and the control context?

62:26- I think that in regard to the limits that here,

62:30I think that one thing that makes it a little hard

62:33to fully answer this question is because in settings

62:38where we would like to push these things to the limit,

62:41we encounter other bottlenecks.

62:43So like the reason that I can't get my robot

62:48to learn how to like, I don't know,

62:51do the dishes in the kitchen,

62:53it's not because its neural net is not big enough.

62:56It's because when you try to actually do trial

62:59and error learning, reinforcement learning directly

63:03in the real world, where you have the potential

63:05to gather these large, highly varied and complex datasets,

63:09you start running into other problems.

63:11Like one problem you run into very quickly,

63:13it'll first sound like a very pragmatic problem,

63:16but it actually turns out to be a pretty deep scientific

63:18problem, take the robot, put it in your kitchen,

63:20have it try to learn to do the dishes with trial and error,

63:22it'll break all your dishes

63:24and then we'll have no more dishes to clean.

63:27Now you might think this is a very practical issue,

63:28but there's something to this,

63:30which is that if you have a person trying to do this,

63:32a person will have some degree of common sense,

63:34they'll break one dish,

63:35they'll be a little more careful with the next one.

63:37And if they break all of them,

63:38they're gonna go and get more or something like that.

63:41So there's all sorts of scaffolding

63:42that comes very naturally to us for our learning process,

63:46like if I have to learn something through trial and error,

63:49I have the common sense to know that I have to try multiple

63:52times, if I screw something up, I ask for help,

63:55or I reset things or something like that.

63:57And all of that is kind of outside of the classic

63:59reinforcement learning problem formulation.

64:02There are other things that can also be categorized

64:05as kind of scaffolding, but are very important.

64:07Like for example, where do you get your reward function?

64:09If I wanna learn how to pour a cup of water,

64:13well, how do I know if I've done it correctly?

64:15Now that probably requires an entire computer vision system

64:17to be built just to determine that.

64:19And that seems a little bit inelegant.

64:21So there are all sorts of things like this

64:22that start to come up when we think through

64:24what we really need to get reinforcement learning

64:26to happen at scale in the real world.

64:28And I think that many of these things actually suggest

64:30a little bit of a shortcoming in the problem formulation

64:33and a few deeper questions that we have to resolve.

64:36- That's really interesting.

64:37I talked to like David Silver about AlphaZero,

64:41and it seems like there's no, again,

64:44that we haven't hit the limit at all

64:47in the context when there's no broken dishes.

64:50So in the case of Go, you can,

64:53it's really about just scaling compute.

64:54So again, like the bottleneck is the amount of money

64:59you're willing to invest in compute,

65:00and then maybe the different, the scaffolding around

65:04how difficult it is to scale compute maybe.

65:07But there, there's no limit.

65:08And it's interesting.

65:09Now we move to the real world and there's the broken dishes,

65:12there's all the, and the reward function like you mentioned.

65:16That's really nice.

65:17So what, how do we push forward there?

65:19Do you think, there's this kind of sample efficiency

65:23question that people bring up of, you know,

65:27not having to break 100,000 dishes.

65:30Is this an algorithm question?

65:32Is this a data selection like question?

65:37What do you think?

65:38How do we, how do we not break too many dishes?

65:41- Yeah, well, one way we can think about that is that

§09Transcript · 1:05:44–1:14:43

65:44maybe we need to be better at reusing our data,

65:52building that iceberg.

65:53So perhaps it's too much to hope that

65:57you can have a machine that's in isolation,

66:02in the vacuum without anything else,

66:04can just master complex tasks in like in minutes,

66:07the way that people do.

66:08But perhaps it also doesn't have to.

66:09Perhaps what it really needs to do is have an existence,

66:12a lifetime where it does many things

66:15and the previous things that it has done,

66:17prepare it to do new things more efficiently.

66:20And, you know, the study of these kinds of questions

66:22typically falls under categories like multitask learning

66:25or meta learning, but they all fundamentally deal

66:28with the same general theme, which is use experience

66:32for doing other things to learn to do new things

66:35efficiently and quickly.

66:37- So what do you think about,

66:38if you just look at one particular case study

66:41of a Tesla autopilot that has quickly approaching

66:44towards a million vehicles on the road,

66:47where some percentage of the time, 30, 40% of the time

66:50is driven using the computer vision,

66:53multitask, hydranet, right?

66:57And then the other percent,

66:59that's what they call it, hydranet.

67:01The other percent is human controlled.

67:06From the human side, how can we use that data?

67:09What's your sense?

67:10So like, what's the signal?

67:14Do you have ideas in this autonomous vehicle space

67:16when people can lose their lives?

67:17You know, it's a safety critical environment.

67:21So how do we use that data?

67:23- So I think that actually the kind of problems

67:28that come up when we want systems that are reliable

67:33and that can kind of understand the limits

67:35of their capabilities,

67:36they're actually very similar to the kind of problems

67:38that come up when we're doing

67:39off-policy reinforcement learning.

67:41So as I mentioned before,

67:41in off-policy reinforcement learning,

67:43the big problem is you need to know

67:46when you can trust the predictions of your model,

67:48because if you're trying to evaluate

67:50some pattern of behavior for which your model

67:52doesn't give you an accurate prediction,

67:54then you shouldn't use that to modify your policy.

67:57And it's actually very similar to the problem

67:58that we're faced when we actually then deploy that thing

68:01and we want to decide whether we trust it

68:03in the moment or not.

68:05So perhaps we just need to do a better job

68:06of figuring out that part.

68:07And that's a very deep research question, of course,

68:10but it's also a question that a lot of people are working on.

68:11So I'm pretty optimistic that we can make some progress

68:13on that over the next few years.

68:15- What's the role of simulation in reinforcement learning,

68:18deep reinforcement learning, reinforcement learning?

68:21Like how essential is it?

68:22It's been essential for the breakthroughs so far,

68:26for some interesting breakthroughs.

68:28Do you think it's a crutch that we rely on?

68:32I mean, again, this connects to our off policy discussion,

68:35but do you think we can ever get rid of simulation

68:38or do you think simulation will actually take over?

68:40We'll create more and more realistic simulations

68:42that will allow us to solve actual real world problems,

68:46like transfer the models we learn in simulation

68:48to real world problems.

68:49- Yeah.

68:50I think that simulation is a very pragmatic tool

68:52that we can use to get a lot of useful stuff

68:54to work right now.

68:56But I think that in the long run,

68:57we will need to build machines that can learn

69:00from real data, because that's the only way

69:02that we'll get them to improve perpetually.

69:04Because if we can't have our machines learn from real data,

69:08if they have to rely on simulated data,

69:09eventually the simulator becomes the bottleneck.

69:12In fact, this is a general thing.

69:13If your machine has any bottleneck that is built by humans

69:17and that doesn't improve from data,

69:20it will eventually be the thing that holds it back.

69:23And if you're entirely reliant on your simulator,

69:25that'll be the bottleneck.

69:25If you're entirely reliant on a manually designed controller,

69:28that's gonna be the bottleneck.

69:30So simulation is very useful.

69:32It's very pragmatic, but it's not a substitute

69:35for being able to utilize real experience.

69:38And this is, by the way, this is something

69:41that I think is quite relevant now,

69:43especially in the context of some of the things

69:45we've discussed, because some of these kind

69:47of scaffolding issues that I mentioned,

69:49things like the broken dishes

69:50and the unknown reward function,

69:51like these are not problems that you would ever stumble on

69:54when working in a purely simulated kind of environment.

69:58But they become very apparent

69:59when we try to actually run these things in the real world.

70:03- To throw a brief wrench into our discussion, let me ask,

70:05do you think we're living in a simulation?

70:08- Oh, I have no idea.

70:09- Do you think that's a useful thing to even think about,

70:12about the fundamental physics nature of reality?

70:17Or another perspective, the reason I think

70:20the simulation hypothesis is interesting

70:23is to think about how difficult is it to create

70:29sort of a virtual reality game type situation

70:32that will be sufficiently convincing to us humans,

70:36or sufficiently enjoyable that we wouldn't wanna leave.

70:40I mean, that's actually a practical engineering challenge.

70:43And I personally really enjoy virtual reality,

70:46but it's quite far away, but I kind of think about

70:49what would it take for me to wanna spend more time

70:51in virtual reality versus the real world?

70:54And that's a sort of a nice, clean question,

70:58because at that point, we've reached,

71:02if I wanna live in a virtual reality,

71:04that means we're just a few years away,

71:06we're a majority of the population lives in a virtual reality

71:09and that's how we create the simulation, right?

71:11You don't need to actually simulate the quantum gravity

71:15and just every aspect of the universe.

71:19And that's an interesting question

71:21for reinforcement learning, too,

71:23is if we wanna make sufficiently realistic simulations

71:25that may, it blend the difference between

71:29sort of the real world and the simulation,

71:31thereby just some of the things we've been talking about,

71:36kind of the problems go away,

71:37if we can create actually interesting, rich simulations.

71:40- It's an interesting question.

71:41And it actually, I think your question

71:43casts your previous question in a very interesting light,

71:46because in some ways, asking whether we can,

71:49well, the more kind of practical version of this,

71:53like, can we build simulators that are good enough

71:56to train essentially AI systems that will work in the world?

72:00And it's kind of interesting to think about this,

72:04about what this implies, if true,

72:06it kind of implies that it's easier to create the universe

72:08than it is to create a brain.

72:09And that seems like, put this way, it seems kind of weird.

72:14- The aspect of the simulation most interesting to me

72:17is the simulation of other humans.

72:20That seems to be a complexity

72:25that makes the robotics problem harder.

72:27Now, I don't know if every robotics person

72:30agrees with that notion, just as a quick aside,

72:33what are your thoughts about when the human enters

72:37the picture of the robotics problem?

72:39How does that change the reinforcement learning problem,

72:42the learning problem in general?

72:45- Yeah, I think that's a, it's a kind of a complex question.

72:48And I guess my hope for a while had been that

72:53if we build these robotic learning systems

72:56that are multitask, that utilize lots of prior data

73:01and that learn from their own experience,

73:03the bit where they have to interact with people

73:05will be perhaps handled in much the same way

73:07as all the other bits.

73:08So if they have prior experience of interacting with people

73:11and they can learn from their own experience

73:13of interacting with people for this new task,

73:15maybe that'll be enough.

73:17Now, of course, if it's not enough,

73:19there are many other things we can do.

73:20And there's quite a bit of research in that area.

73:22But I think it's worth a shot to see

73:24whether the multi-agent interaction,

73:28the ability to understand that other beings in the world

73:33have their own goals, intentions, and thoughts, and so on,

73:36whether that kind of understanding can emerge automatically

73:40from simply learning to do things with and maximize utility.

73:44- That information arises from the data.

73:46You've said something about gravity,

73:49that you don't need to explicitly inject anything

73:53into the system that can be learned from the data.

73:55And gravity is an example of something

73:57that could be learned from data,

73:58sort of like the physics of the world.

74:00What are the limits of what we can learn from data?

74:07So a very simple, clean way to ask that is,

74:13do you really think we can learn gravity from just data?

74:16The idea, the laws of gravity.

74:19- So something that I think is a common kind of pitfall

74:23when thinking about prior knowledge and learning

74:27is to assume that just because we know something,

74:32then that it's better to tell the machine about that

74:34rather than have it figure it out on its own.

74:36In many cases, things that are important

74:41that affect many of the events

74:43that the machine will experience

§10Transcript · 1:14:45–1:23:16

74:45are actually pretty easy to learn.

74:46Like, if things, if every time you drop something,

74:49it falls down, like, yeah, you might not get the,

74:52you might get kind of the Newton's version,

74:54not Einstein's version, but it'll be pretty good.

74:56And it will probably be sufficient for you

74:58to act rationally in the world

75:00because you see the phenomenon all the time.

75:03So things that are readily apparent from the data,

75:06we might not need to specify those by hand.

75:07It might actually be easier

75:08to let the machine figure them out.

75:10- It just feels like that there might be a space

75:12of many local minima in terms of theories of this world

75:17that we would discover and get stuck on.

75:20- Yeah, of course.

75:21- That Newtonian mechanics is not necessarily

75:25easy to come by.

75:27- Yeah, and well, in fact, in some fields of science,

75:31for example, human civilizations

75:32that sell full of these local optimums.

75:34So for example, if you think about how people

75:37tried to figure out biology and medicine,

75:40for the longest time, the kind of rules,

75:43the kind of principles that serve us very well

75:45in our day-to-day lives actually serve us very poorly

75:47in understanding medicine and biology.

75:50We had kind of very superstitious and weird ideas

75:53about how the body worked until the advent

75:55of the modern scientific method.

75:57So that does seem to be a failing of this approach,

76:01but it's also a failing of human intelligence, arguably.

76:04- Maybe a small aside, but some,

76:06the idea of self-play is fascinating

76:09in reinforcement learning, sort of these competitive,

76:11creating a competitive context in which agents

76:14can play against each other in a,

76:17sort of at the same skill level

76:19and thereby increasing each other's skill level.

76:21It seems to be this kind of self-improving mechanism

76:24is exceptionally powerful in the context

76:26where it could be applied.

76:28First of all, is that beautiful to you

76:32that this mechanism work as well as it does

76:34and also can be generalized to other contexts

76:38like in the robotic space or anything

76:41that's applicable to the real world?

76:43- I think that it's a very interesting idea,

76:47but I suspect that the bottleneck

76:50to actually generalizing it to the robotic setting

76:53is actually going to be the same

76:54as the bottleneck for everything else,

76:57that we need to be able to build machines

76:59that can get better and better

77:01through natural interaction with the world.

77:04And once we can do that,

77:05then they can go out and play with,

77:07they can play with each other, they can play with people,

77:09they can play with the natural environment.

77:11But before we get there,

77:14we've got all these other problems

77:15we've got, we have to get out of the way.

77:16- So there's no shortcut around that.

77:17You have to interact with a natural environment that.

77:21- Well, because in a self-play setting,

77:22you still need a mediating mechanism.

77:24So the reason that self-play works for a board game

77:29is because the rules of that board game

77:31mediate the interaction between the agents.

77:33So the kind of intelligent behavior that will emerge

77:36depends very heavily on the nature

77:37of that mediating mechanism.

77:39- So on the side of reward functions,

77:42that's coming up with good reward functions

77:44seems to be the thing that we associate

77:46with general intelligence,

77:47like human beings seem to value the idea

77:51of developing our own reward functions

77:53of arriving at meaning and so on.

77:58And yet for reinforcement learning,

77:59we often kind of specify this, the given.

78:02What's your sense of how we develop

78:05good reward functions?

78:08- Yeah, I think that's a very complicated

78:11and very deep question.

78:12And you're completely right that classically

78:14in reinforcement learning,

78:15this question has kind of been treated as a non-issue

78:19that you sort of treat the reward as this external thing

78:22that comes from some other bit of your biology

78:26and you kind of don't worry about it.

78:28And I do think that that's actually,

78:30a little bit of a mistake that we should worry about it.

78:33And we can approach it in a few different ways.

78:34We can approach it, for instance,

78:36by thinking of reward as a communication medium.

78:39We can say, well, how does a person communicate

78:41to a robot what its objective is?

78:43You can approach it also as a sort of more

78:45of an intrinsic motivation medium.

78:47You could say, can we write down

78:50kind of a general objective that leads to good capability?

78:55Like, for example, can you write down some objectives

78:56such that even in the absence of any other task,

78:58if you maximize that objective,

79:00you'll sort of learn useful things.

79:02This is something that has sometimes been called

79:05unsupervised reinforcement learning,

79:07which I think is a really fascinating area of research,

79:09especially today.

79:11We've done a bit of work on that recently.

79:12One of the things we've studied is whether

79:14we can have some notion of unsupervised reinforcement

79:19learning by means of information theoretic quantities,

79:23like for instance, minimizing a Bayesian measure of surprise.

79:26This is an idea that was pioneered actually

79:29in the computational neuroscience community

79:30by folks like Carl Friston.

79:32And we've done some work recently that shows

79:34that you can actually learn pretty interesting skills

79:36by essentially behaving in a way that allows you

79:40to make accurate predictions about the world.

79:42It seems a little circular, like do the things

79:44that will lead to you getting the right answer

79:46for prediction.

79:48But you can, by doing this, you can sort of discover

79:51stable niches in the world.

79:53You can discover that if you're playing Tetris,

79:55then correctly clearing the rows will let you play Tetris

79:58for longer and keep the board nice and clean,

80:00which sort of satisfies some desire for order in the world.

80:04And as a result, get some degree of leverage

80:05over your domain.

80:07So we're exploring that pretty actively.

80:08- Is there a role for a human notion of curiosity

80:12in itself being the reward, sort of discovering new things

80:16about the world?

80:18- So one of the things that I'm pretty interested in

80:21is actually whether discovering new things

80:25can actually be an emergent property

80:27of some other objective that quantifies capability.

80:30So new things for the sake of new things,

80:33maybe it might not by itself be the right answer,

80:37but perhaps we can figure out an objective

80:40for which discovering new things

80:41is actually the natural consequence.

80:44That's something we're working on right now,

80:45but I don't have a clear answer for you there yet.

80:47That's still a work in progress.

80:49- You mean just as a curious observation

80:52to see sort of creative patterns of curiosity

80:57on the way to optimize for a particular--

81:00- On the way to optimize

81:01for a particular measure of capability.

81:03- Is there ways to understand or anticipate unexpected,

81:09unintended consequences of particular reward functions,

81:16sort of anticipate the kind of strategies

81:20that might be developed

81:21and try to avoid highly detrimental strategies?

81:25- Yeah, so classically, this is something

81:28that has been pretty hard in reinforcement learning

81:30because it's difficult for a designer

81:33to have good intuition about

81:34what a learning algorithm will come up with

81:36when they give it some objective.

81:37There are ways to mitigate that.

81:40One way to mitigate it is to actually define an objective

81:43that says like, don't do weird stuff.

81:46You can actually quantify it.

81:46You can say just like, don't enter situations

81:49that have low probability under the distribution of states

81:52you've seen before.

81:54It turns out that that's actually one very good way

81:56to do off-policy reinforcement learning actually.

81:59So we can do some things like that.

82:01- If we slowly venture in speaking about reward functions

82:07into greater and greater levels of intelligence,

82:09there's, I mean, Stuart Russell thinks about this,

82:12the alignment of AI systems with us humans.

82:18So how do we ensure that AGI systems align with us humans?

82:23It's kind of a reward function question

82:27of specifying the behavior of AI systems

82:31such that their success aligns

82:34with the broader intended success interest of human beings.

82:39Do you have thoughts on this?

82:41Do you have kind of concerns

82:43of where reinforcement learning fits into this?

82:45Or are you really focused on the current moment

82:48of us being quite far away

82:49and trying to solve the robotics problem?

82:51- I don't have a great answer to this,

82:53but, you know, and I do think that this is a problem

82:56that's important to figure out.

82:59For my part, I'm actually a bit more concerned

83:01about the other side of this equation that, you know,

83:05maybe rather than unintended consequences

83:09for objectives that are specified too well,

83:12I'm actually more worried right now

83:14about unintended consequences for objectives

83:16that are not optimized well enough,

§11Transcript · 1:23:18–1:32:21

83:18which might become a very pressing problem

83:21when we, for instance, try to use these techniques

83:23for safety critical systems like cars and aircraft and so on.

83:28I think at some point we'll face the issue

83:30of objectives being optimized too well,

83:31but right now I think we're more likely

83:34to face the issue of them not being optimized well enough.

83:37- But you don't think unintended consequences can arise

83:39even when you're far from optimality,

83:41sort of like on the path to it?

83:43- Oh no, I think unintended consequences

83:45can absolutely arise.

83:46It's just, I think right now the bottleneck

83:49for improving reliability, safety, and things like that

83:52is more with systems that like need to work better,

83:56that need to optimize their objective better.

83:58- Do you have thoughts, concerns about existential threats

84:03of human level intelligence?

84:04Sort of, if we put on our hat of looking in 10, 20, 100,

84:09500 years from now, do you have concerns

84:11about existential threats of AI systems?

84:15- I think there are absolutely existential threats

84:17for AI systems, just like there are

84:19for any powerful technology.

84:20But I think that these kinds of problems

84:24can take many forms and some of those forms

84:28will come down to people with nefarious intent.

84:33Some of them will come down to AI systems

84:36that have some fatal flaws.

84:38And some of them will, of course, come down to AI systems

84:41that are too capable in some way.

84:43But among this set of potential concerns,

84:48I would actually be much more concerned

84:50about the first two right now,

84:51and principally the one with nefarious humans,

84:53because just through all of human history,

84:55actually it's the nefarious humans that have been

84:57the problem, not the nefarious machines,

84:59than I am about the others.

85:01And I think that right now the best that I can do

85:04to make sure things go well is to build

85:07the best technology I can and also hopefully

85:09to promote responsible use of that technology.

85:12- Do you think RL systems has something to teach us, humans?

85:18You said nefarious humans getting us in trouble.

85:21I mean, machine learning systems have in some ways

85:23have revealed to us the ethical flaws in our data.

85:28In that same kind of way, can reinforcement learning

85:30teach us about ourselves?

85:32Has it taught something?

85:34What have you learned about yourself

85:36from trying to build robots

85:39and reinforcement learning systems?

85:41- I'm not sure what I've learned about myself,

85:44but maybe part of the answer to your question

85:49might become a little bit more apparent

85:52once we see more widespread deployment

85:54of reinforcement learning for decision-making support

85:57in domains like healthcare, education,

86:01social media, et cetera.

86:03And I think we will see some interesting stuff emerge there.

86:06We will see, for instance, what kind of behaviors

86:09these systems come up with in situations

86:12where there is interaction with humans

86:14and where they have possibility

86:16of influencing human behavior.

86:18I think we're not quite there yet,

86:20but maybe in the next few years,

86:21we'll see some interesting stuff come out in that area.

86:23- I hope outside the research space,

86:25'cause the exciting space where this could be observed

86:28is sort of large companies that deal with large data.

86:32And I hope there's some transparency.

86:34And one of the things that's unclear

86:36when I look at social networks and just online

86:39is why an algorithm did something

86:42or whether even an algorithm was involved.

86:45And that'd be interesting from a research perspective

86:48just to observe the results of algorithms

86:53to open up that data

86:55or to at least be sufficiently transparent

86:57about the behavior of these AI systems in the real world.

87:00What's your sense?

87:03I don't know if you looked at the blog post,

87:04Bitter Lesson by Rich Sutton,

87:07where it looks at sort of the big lesson

87:11of researching AI and reinforcement learning

87:14is that simple methods, general methods

87:18that leverage computation seem to work well.

87:21So basically don't try to do any kind of fancy algorithms,

87:24just wait for computation to get fast.

87:26Do you share this kind of intuition?

87:31I think the high level idea makes a lot of sense.

87:34I'm not sure that my takeaway would be

87:35that we don't need to work on algorithms.

87:37I think that my takeaway would be

87:39that we should work on general algorithms.

87:43And actually I think that this idea

87:46of needing to better automate

87:50the acquisition of experience in the real world

87:53actually follows pretty naturally

87:55from Rich Sutton's conclusion.

87:58So if the claim is that automated general methods

88:03plus data leads to good results,

88:06then it makes sense that we should build general methods

88:08and we should build the kind of methods

88:09that we can deploy and get them to go out there

88:11and like collect their experience autonomously.

88:14I think that one place where I think

88:16that the current state of things

88:18falls a little bit short of that

88:19is actually the going out there

88:21and collecting the data autonomously,

88:23which is easy to do in a simulated board game,

88:26but very hard to do in the real world.

88:27- Yeah, it keeps coming back to this one problem, right?

88:30So your mind is focused there now in this real world.

88:35It just seems scary, this step of collecting the data.

88:40And it seems unclear to me how we can do it effectively.

88:45- Yeah, well, you know, seven billion people in the world,

88:48each of them have to do that at some point in their lives.

88:50- And we should leverage that experience

88:52that they've all done.

88:54We should be able to try to collect that kind of data.

88:58Okay, big questions.

89:01Maybe stepping back through your life,

89:05would book or books, technical or fiction or philosophical,

89:10had a big impact on the way you saw the world,

89:14on the way you thought about in the world,

89:15your life in general?

89:16And maybe what books, if it's different,

89:22would you recommend people consider reading on their own?

89:24- Intellectual journey.

89:26It could be within reinforcement learning,

89:28but it could be very much bigger.

89:31- I don't know if this is like a scientifically,

89:36like particularly meaningful answer,

89:39but like the honest answer is that I actually found

89:43a lot of the work by Isaac Asimov

89:45to be very inspiring when I was younger.

89:47I don't know if that has anything to do

89:49with AI necessarily.

89:50- You don't think it had a ripple effect in your life?

89:53- Maybe it did.

89:55But yeah, I think that a vision of a future where,

90:00well, first of all, artificial,

90:05I might say artificial intelligence system,

90:07artificial robotic systems have kind of a big place,

90:10a big role in society.

90:12And where we try to imagine the sort of the limiting case

90:17of technological advancement and how that might play out

90:21in our future history.

90:23But yeah, I think that that was in some way influential.

90:28I don't really know how, but I would recommend it.

90:33I mean, if nothing else, you'd be well entertained.

90:35- When did you first yourself like fall in love

90:38with the idea of artificial intelligence,

90:40get captivated by this field?

90:42- So my honest answer here is actually that

90:47I only really started to think about it

90:49as something that I might want to do

90:52actually in graduate school pretty late.

90:54And a big part of that was that until,

90:58somewhere around 2009, 2010,

91:00it just wasn't really high on my priority list

91:02because I didn't think that it was something

91:05where we're going to see very substantial advances

91:07in my lifetime.

91:08And maybe in terms of my career,

91:14the time when I really decided I wanted to work on this

91:18was when I actually took a seminar course

91:21that was taught by Professor Andrew Ng.

91:23And at that point, I of course had some,

91:26he had like a decent understanding

91:27of the technical things involved.

91:29But one of the things that really resonated with me

91:30was when he said in the opening lecture,

91:32something to the effect of like,

91:33well, he used to have graduate students come to him

91:36and talk about how they want to work on AI

91:38and he would kind of chuckle

91:39and give them some math problem to deal with.

91:41But now he's actually thinking that this is an area

91:43where we might see like substantial advances

91:45in our lifetime.

91:46And that kind of got me thinking because,

91:49you know, in some abstract sense,

91:51yeah, like you can kind of imagine that,

91:53but in a very real sense,

91:55when someone who had been working on that kind of stuff

91:57their whole career suddenly says that,

92:00yeah, like that had some effect on me.

92:03- Yeah, this might be a special moment

92:05in the history of the field.

92:07That this is where we might see

92:10some interesting breakthroughs.

92:13So in the space of advice,

92:16somebody who's interested in getting started

92:18in machine learning or reinforcement learning,

92:21what advice would you give to maybe an undergraduate student

§12Transcript · 1:32:23–1:37:24

92:23or maybe even younger,

92:25how, what are the first steps to take

92:27and further on, what are the steps to take on that journey?

92:32- So something that I think is important to do

92:37is to not be afraid to like spend time

92:42imagining the kind of outcome that you might like to see.

92:46So, you know, one outcome might be a successful career,

92:49a large paycheck or something,

92:50or state-of-the-art results on some benchmark,

92:53but hopefully that's not the thing

92:54that's like the main driving force for somebody.

92:57But I think that if someone who's a student

93:01considering a career in AI,

93:03like takes a little while, sits down and thinks like,

93:05what do I really want to see?

93:07What I want to see a machine do?

93:08What do I want to see a robot do?

93:10What do I want to do in,

93:11what I want to see a natural language system?

93:12Just like imagine, you know,

93:14imagine it almost like a commercial

93:16for a future product or something,

93:18or like something that you'd like to see in the world,

93:21and then actually sit down and think about the steps

93:23that are necessary to get there.

93:24And hopefully that thing is not a better number

93:27on ImageNet classification.

93:28It's like, it's probably like an actual thing

93:30that we can't do today that would be really awesome.

93:32Whether it's a robot butler or a, you know,

93:36a really awesome healthcare decision-making support system,

93:38whatever it is that you find inspiring.

93:41And I think that thinking about that

93:43and then backtracking from there

93:44and imagining the steps needed to get there

93:46will actually lead to much better research.

93:48It'll lead to rethinking the assumptions.

93:50It'll lead to working on the bottlenecks

93:53that other people aren't working on.

93:55- And then naturally to turn to you,

93:58we've talked about reward functions,

94:00and you just give an advice on looking forward

94:03how you'd like to see,

94:04what kind of change you would like to make in the world.

94:06What do you think, ridiculous, big question,

94:09what do you think is the meaning of life?

94:11What is the meaning of your life?

94:13What gives you fulfillment, purpose, happiness, and meaning?

94:18- That's a very big question.

94:21- What's the reward function under which you're operating?

94:27- Yeah, I think one thing that does give, you know,

94:30if not meaning, at least satisfaction

94:31is some degree of confidence

94:35that I'm working on a problem that really matters.

94:37I feel like it's less important to me

94:38to like actually solve a problem,

94:41but it's quite nice to take things to spend my time on

94:46that I believe really matter.

94:48And I try pretty hard to look for that.

94:52- I don't know if it's easy to answer this,

94:54but if you're successful, what does that look like?

94:59What's the big dream?

95:01Now, of course, success is built on top of success,

95:05and you keep going forever, but what is the dream?

95:10- Yeah, so one very concrete thing,

95:12or maybe as concrete as it's gonna get here

95:15is to see machines that actually get better and better

95:20the longer they exist in the world.

95:23And that kind of seems like on the surface,

95:25one might even think that that's something

95:26that we have today, but I think we really don't.

95:28I think that there is an unending complexity

95:33in the universe, and to date,

95:37all of the machines that we've been able to build

95:40don't sort of improve up to the limit of that complexity.

95:43They hit a wall somewhere.

95:45Maybe they hit a wall because they're in a simulator

95:48that is only a very limited,

95:50very pale imitation of the real world,

95:52or they hit a wall because they rely on a labeled dataset,

95:55but they never hit the wall

95:56of like running out of stuff to see.

95:58So I'd like to build a machine

96:02that can go as far as possible in that regard.

96:04- Runs up against the ceiling

96:06of the complexity of the universe.

96:07- Yes.

96:09- Well, I don't think there's a better way to end it, Sergey.

96:11Thank you so much.

96:12It's a huge honor.

96:13I can't wait to see the amazing work

96:16that you have to publish in the education space

96:20in terms of reinforcement learning.

96:21Thank you for inspiring the world.

96:22Thank you for the great research you do.

96:24- Thank you.

96:25- Thanks for listening to this conversation

96:27with Sergey Lavin, and thank you to our sponsors,

96:30Cash App and ExpressVPN.

96:33Please consider supporting this podcast

96:35by downloading Cash App and using code LexPodcast

96:40and signing up at expressvpn.com/lexpod.

96:44Click all the links, buy all the stuff.

96:47It's the best way to support this podcast

96:50and the journey I'm on.

96:52If you enjoy this thing, subscribe on YouTube,

96:54review it with Firestars and Apple Podcast,

96:57support on Patreon, or connect with me on Twitter

96:59at Lex Friedman, spelled somehow,

97:02if you can figure out how,

97:04without using the letter E, just F-R-I-D-M-A-N.

97:08And now, let me leave you with some words

97:11from Salvador Dali.

97:12Intelligence without ambition is a bird without wings.

97:17Thank you for listening, and hope to see you next time.

97:21(upbeat music)

97:24(upbeat music)

— A LITTLE MORE TO THINK ABOUT. —