← Lex Fridman

Yann LeCun: Deep Learning, Convolutional Neural Networks, and Self-Supervised Learning

第2019-08-31期2019-08-31English

嘉宾:Yann LeCun

收听本集00:00 / 1:16:07
阅读设置
按你的习惯阅读
正文字号
下载播客精读
把这一篇,带走慢慢读

精读待补充

下载功能还未开放

§01Transcript · 00:00–08:50

00:00The following is a conversation with Jan Lekun.

00:03He's considered to be one of the fathers of deep learning,

00:06which if you've been hiding under a rock,

00:09is the recent revolution in AI that's captivated the world

00:12with the possibility of what machines can learn from data.

00:16He's a professor at New York University,

00:18a vice president and chief AI scientist at Facebook,

00:21and co-recipient of the Turing Award

00:24for his work on deep learning.

00:26He's probably best known as the founding father

00:28of convolutional neural networks.

00:30In particular, their application

00:32to optical character recognition

00:34and the famed MNIST dataset.

00:37He is also an outspoken personality,

00:40unafraid to speak his mind in a distinctive French accent

00:43and explore provocative ideas,

00:45both in the rigorous medium of academic research

00:48and the somewhat less rigorous medium

00:51of Twitter and Facebook.

00:52This is the Artificial Intelligence Podcast.

00:55If you enjoy it, subscribe on YouTube,

00:57give it five stars on iTunes, support it on Patreon,

01:00or simply connect with me on Twitter at Lex Friedman,

01:03spelled F-R-I-D-M-A-N.

01:06And now, here's my conversation with Jan Lekun.

01:10You said that 2001, Space Odyssey

01:13is one of your favorite movies.

01:15Hal 9000 decides to get rid of the astronauts

01:20for people that haven't seen the movie, spoiler alert,

01:23because he, it, she believes that the astronauts,

01:28they will interfere with the mission.

01:31Do you see Hal as flawed in some fundamental way

01:34or even evil, or did he do the right thing?

01:38- Neither.

01:39There's no notion of evil in that context,

01:43other than the fact that people die,

01:44but it was an example of what people call

01:48value misalignment, right?

01:50You give an objective to a machine

01:52and the machine strives to achieve this objective.

01:55And if you don't put any constraints on this objective,

01:58like don't kill people and don't do things like this,

02:00the machine, given the power, will do stupid things

02:06just to achieve this objective,

02:07or damaging things to achieve this objective.

02:10It's a little bit like, I mean, we're used to this

02:12in the context of human society.

02:14We put in place laws to prevent people

02:20from doing bad things, because spontaneously

02:22they would do those bad things, right?

02:24So we have to shape their cost function,

02:28their objective function, if you want,

02:29through laws to kind of correct,

02:31and education, obviously, to sort of correct for those.

02:35- So maybe just pushing a little further on that point,

02:41Hal, you know, there's a mission.

02:44There's a, there's fuzziness around the ambiguity

02:47around what the actual mission is,

02:49but, you know, do you think that there will be a time

02:54from a utilitarian perspective where an AI system,

02:58where it is not misalignment, where it is alignment

03:00for the greater good of society,

03:02that an AI system will make decisions that are difficult?

03:05- Well, that's the trick.

03:06I mean, eventually we'll have to figure out how to do this.

03:10And again, we're not starting from scratch

03:12because we've been doing this with humans for millennia.

03:16So designing objective functions for people

03:19is something that we know how to do.

03:20And we don't do it by, you know, programming things,

03:24although the legal code is called code.

03:29So that tells you something.

03:30And it's actually the design of an objective function.

03:33That's really what legal code is, right?

03:34It tells you, here's what you can do,

03:36here's what you can't do.

03:37If you do it, you pay that much.

03:39That's an objective function.

03:40So there is this idea somehow that it's a new thing

03:44for people to try to design objective functions

03:46that are aligned with the common good.

03:47But no, we've been writing laws for millennia

03:49and that's exactly what it is.

03:52So that's where, you know, the science of lawmaking

03:57and computer science will-

04:00- Come together.

04:01- Will come together.

04:02- So it's nothing, there's nothing special about HAL

04:05or AI systems.

04:06It's just the continuation of tools used

04:09to make some of these difficult ethical judgments

04:11that laws make.

04:13- Yeah, and we have systems like this already

04:15that make many decisions for ourselves in society

04:19that need to be designed in a way that they,

04:22like rules about things that sometimes have bad side effects.

04:27And we have to be flexible enough about those rules

04:29so that they can be broken when it's obvious

04:31that they shouldn't be applied.

04:33So you don't see this on the camera here,

04:35but all the decoration in this room

04:36is all pictures from 2001 and Space Odyssey.

04:39- Wow, is that by accident or is there a lot-

04:43- It's not by accident, it's by design.

04:45(Lex laughing)

04:47- Oh, wow.

04:48So if you were to build HAL 10,000,

04:52so an improvement of HAL 9,000, what would you improve?

04:57- Well, first of all,

04:57I wouldn't ask you to hold secrets and tell lies

05:01because that's really what breaks it in the end.

05:03That's the fact that it's asking itself questions

05:07about the purpose of the mission.

05:08And it's, you know, pieces things together

05:10that it's heard, you know,

05:11all the secrecy of the preparation of the mission

05:13and the fact that it was a discovery on the lunar surface

05:17that really was kept secret.

05:19And one part of HAL's memory knows this,

05:22and the other part does not know it

05:24and is supposed to not tell anyone.

05:26And that creates internal conflict.

05:28- So you think there's never should be a set of things

05:32that an AI system should not be allowed,

05:35like a set of facts that should not be shared

05:39with the human operators?

05:42- Well, I think, no, I think it should be a bit like

05:45in the design of autonomous AI systems,

05:51there should be the equivalent of, you know,

05:54the oath that Hippocrates oaths.

05:58- Hippocratic oath, yeah.

05:58- That doctors sign up to, right?

06:02So there's certain things, certain rules

06:03that you have to abide by,

06:05and we can sort of hardwire this into our machines

06:08to kind of make sure they don't go.

06:10So I'm not, you know, an advocate of the three laws

06:14of robotics, you know, the Asimov kind of thing,

06:17because I don't think it's practical,

06:18but, you know, some level of limits.

06:23But to be clear, this is not,

06:26these are not questions that are kind of really worth

06:31asking today because we just don't have the technology

06:33to do this.

06:34We don't have autonomous intelligent machines.

06:36We have intelligent machines,

06:37semi-intelligent machines that are very specialized.

06:40But they don't really sort of satisfy an objective.

06:43They're just, you know, kind of trained to do one thing.

06:46So until we have some idea for design

06:49of a full-fledged autonomous intelligent system,

06:53asking the question of how we design this objective,

06:55I think is a little too abstract.

06:58- It's a little too abstract.

06:59There's useful elements to it

07:01in that it helps us understand our own ethical codes,

07:06humans.

07:07So even just as a thought experiment,

07:10if you imagine that an AGI system is here today,

07:14how would we program it as a kind of nice thought experiment

07:17of constructing how should we have a law,

07:21have a system of laws for us humans.

07:24It's just a nice practical tool.

07:26And I think there's echoes of that idea too

07:29in the AI systems we have today

07:32that don't have to be that intelligent,

07:34like autonomous vehicles.

07:35These things start creeping in

07:37that we're thinking about,

07:39but certainly they shouldn't be framed as hell.

07:42- Yeah.

07:43- Looking back, what is the most,

07:46I'm sorry if it's a silly question,

07:49but what is the most beautiful or surprising idea

07:52in deep learning or AI in general

07:55that you've ever come across?

07:56Sort of personally, when you said back

07:58and just had this kind of,

08:01oh, that's pretty cool moment.

08:03That's nice.

08:04That's surprising.

08:05- I don't know if it's an idea

08:06rather than a sort of empirical fact.

08:11The fact that you can build gigantic neural nets,

08:16train them on relatively small amounts of data,

08:21relatively, with stochastic gradient descent

08:24and that it actually works,

08:26breaks everything you read in every textbook, right?

08:29Every pre-deep learning textbook that told you

08:32you need to have fewer parameters

08:33and you have data samples.

08:36If you have a non-convex objective function,

08:38you have no guarantee of convergence.

08:40All those things that you read in textbook

08:42and they tell you to stay away from this

08:43and they're all wrong.

08:45- Huge number of parameters, non-convex,

08:48and somehow which is very relative

08:50to the number of parameters, data,

§02Transcript · 08:53–17:29

08:53it's able to learn anything.

08:54- Right.

08:55- Does that still surprise you today?

08:57- Well, it was kind of obvious to me

09:00before I knew anything that this is a good idea.

09:04And then it became surprising that it worked

09:06because I started reading those textbooks.

09:08Okay.

09:10- So, okay, so can you talk through the intuition

09:12of why it was obvious to you if you remember?

09:14- Well, okay, so the intuition was,

09:16it's sort of like those people in the late 19th century

09:19who proved that heavier than air flight was impossible, right?

09:24And of course you have birds, right?

09:26They do fly.

09:28And so on the face of it,

09:30it's obviously wrong as an empirical question, right?

09:33And so we have the same kind of thing that,

09:35we know that the brain works,

09:38we don't know how, but we know it works.

09:39And we know it's a large network of neurons in interaction

09:43and that learning takes place by changing the connections.

09:45So kind of getting this level of inspiration

09:48without copying the details,

09:49but sort of trying to derive basic principles,

09:52you know, that kind of gives you a clue

09:56as to which direction to go.

09:58There's also the idea somehow

09:59that I've been convinced of since I was an undergrad

10:02that even before,

10:04that intelligence is inseparable from learning.

10:06So the idea somehow that you can create

10:10an intelligent machine by basically programming,

10:14for me, it was a non-starter from the start.

10:17Every intelligent entity that we know about

10:20arrives at this intelligence through learning.

10:24So learning, you know,

10:25machine learning was a completely obvious path.

10:28Also because I'm lazy, so, you know,

10:31kind of. (laughs)

10:33- You automate basically everything

10:35and learning is the automation of intelligence.

10:37- Right.

10:39- So do you think, so what is learning then?

10:42What falls under learning?

10:44Because do you think of reasoning as learning?

10:48- Well, reasoning is certainly a consequence

10:52of learning as well,

10:54just like other functions of the brain.

10:57The big question about reasoning is,

10:58how do you make reasoning compatible

11:01with gradient-based learning?

11:03- Do you think neural networks can be made to reason?

11:05- Yes, there is no question about that.

11:07Again, we have a good example, right?

11:09The question is how.

11:12So the question is how much prior structure

11:14do you have to put in the neural net

11:16so that something like human reasoning

11:18will emerge from it, you know, from learning?

11:21Another question is,

11:23all of our kind of model of what reasoning is

11:26that are based on logic are discrete

11:28and are therefore incompatible with gradient-based learning.

11:33And I'm a very strong believer

11:34in this idea of gradient-based learning.

11:36I don't believe that other types of learning

11:39that don't use kind of gradient information, if you want.

11:42- So you don't like discrete mathematics?

11:44You don't like anything discrete?

11:45- Well, it's not that I don't like it,

11:47it's just that it's incompatible with learning

11:49and I'm a big fan of learning, right?

11:51So in fact, that's perhaps one reason

11:54why deep learning has been kind of looked at

11:57with suspicion by a lot of computer scientists

11:59because the math is very different.

12:00The math that you use for deep learning,

12:02you know, has more to do with cybernetics,

12:07the kind of math you do in electrical engineering

12:10than the kind of math you do in computer science.

12:12And, you know, nothing in machine learning is exact, right?

12:16Computer science is all about sort of, you know,

12:19obsessive-compulsive attention to details

12:21of like, you know, every index has to be right

12:24and you can prove that an algorithm is correct, right?

12:27Machine learning is the science of sloppiness, really.

12:30- That's beautiful.

12:33So, okay, maybe let's feel around in the dark

12:38of what is a neural network that reasons

12:41or a system that works with continuous functions

12:46that's able to do, build knowledge,

12:52however we think about reasoning,

12:54build on previous knowledge, build on extra knowledge,

12:57create new knowledge,

12:59generalize outside of any training set ever built.

13:03What does that look like?

13:04If, yeah, maybe do you have inklings of thoughts

13:08of what that might look like?

13:10- Yeah, I mean, yes and no.

13:12If I had precise ideas about this,

13:14I think, you know, we'd be building it right now.

13:16But, and there are people working on this

13:18or whose main research interest

13:20is actually exactly that, right?

13:22So what you need to have is a working memory.

13:25So you need to have some device, if you want,

13:29some subsystem that can store a relatively large number

13:34of factual episodic information

13:37for a reasonable amount of time.

13:40So in the brain, for example,

13:43there are kind of three main types of memory.

13:45One is the sort of memory of the state of your cortex,

13:51and that sort of disappears within 20 seconds.

13:53You can't remember things for more than about 20 seconds

13:56or a minute if you don't have any other form of memory.

14:00The second type of memory, which is longer term,

14:02but still short term, is the hippocampus.

14:04So you can, you know, you came into this building,

14:06you remember where the exit is, where the elevators are.

14:11You have some map of that building

14:13that's stored in your hippocampus.

14:15You might remember something about what I said,

14:18you know, if you've been to the zoo,

14:19you might remember something about what I said,

14:21you know, a few minutes ago.

14:22- I forgot it all already, but it's part.

14:23- Of course, it's been erased, but you know,

14:25but that would be in your hippocampus.

14:28And then the longer term memory is in the synapse,

14:31the synapses, right?

14:32So what you need if you want a system

14:35that's capable of reasoning

14:36is that you want the hippocampus-like thing, right?

14:39And that's what people have tried to do

14:42with memory networks and, you know,

14:44neural training machines and stuff like that, right?

14:46Transformers, which have sort of a memory in there,

14:50kind of self-attention system.

14:51You can think of it this way.

14:53So that's one element you need.

14:57Another thing you need is some sort of network

14:59that can access this memory,

15:03get an information back, and then kind of crunch on it,

15:08and then do this iteratively multiple times,

15:10because a chain of reasoning

15:14is a process by which you update your knowledge

15:19about the state of the world,

15:20about what's going to happen, et cetera.

15:22And that has to be this sort of

15:25recurrent operation, basically.

15:27- And you think that kind of,

15:29if we think about a transformer,

15:31so that seems to be too small to contain the knowledge

15:33that's to represent the knowledge

15:37that's contained in Wikipedia, for example.

15:39- Well, a transformer doesn't have this idea of recurrence.

15:41It's got a fixed number of layers,

15:43and that's the number of steps that limits,

15:45basically, its representation.

15:47- But recurrence would build on the knowledge somehow.

15:51I mean, it would evolve the knowledge

15:54and expand the amount of information, perhaps,

15:58or useful information within that knowledge.

16:00But is this something that just can emerge with size?

16:04Because it seems like everything we have now is too small.

16:06- Not just.

16:07No, it's not clear.

16:09I mean, how you access and write

16:11into an associative memory inefficient

16:13way, I mean, sort of the original memory network

16:15maybe had something like the right architecture,

16:17but if you try to scale up a memory network

16:20so that the memory contains all of Wikipedia,

16:22it doesn't quite work.

16:24- Right.

16:25- So there's a need for new ideas there, okay.

16:28But it's not the only form of reasoning.

16:29So there's another form of reasoning,

16:31which is very classical, also, in some types of AI,

16:36and it's based on, let's call it energy minimization.

16:40Okay, so you have some sort of objective,

16:44some energy function that represents

16:46the quality or the negative quality, okay.

16:53Energy goes up when things get bad

16:54and they get low when things get good.

16:57So let's say you want to figure out,

16:59you know, what gestures do I need to do

17:02to grab an object or walk out the door.

17:07If you have a good model of your own body,

17:10a good model of the environment,

17:12using this kind of energy minimization,

17:14you can do planning.

17:16And in optimal control,

17:19it's called model predictive control.

17:22You have a model of what's going to happen in the world

17:24as a consequence of your actions,

17:25and that allows you to, by energy minimization,

17:28figure out a sequence of action

17:29that optimizes a particular objective function,

§03Transcript · 17:32–26:16

17:32which minimizes the number of times

17:34you're going to hit something

17:35and the energy you're going to spend

17:36doing the gesture and et cetera.

17:39So that's a form of reasoning.

17:42Planning is a form of reasoning.

17:43And perhaps what led to the ability of humans to reason

17:48is the fact that, or, you know,

17:51species that appear before us

17:53had to do some sort of planning

17:55to be able to hunt and survive

17:56and survive the winter in particular.

17:59And so, you know, it's the same capacity

18:01that you need to have.

18:03- So in your intuition is,

18:06if we look at expert systems,

18:09and encoding knowledge as logic systems,

18:13as graphs, or in this kind of way,

18:16is not a useful way to think about knowledge?

18:20- Graphs are a little brittle, or logic representation.

18:23So basically, you know, variables that have values

18:27and then constraint between them

18:29that are represented by rules

18:31is a little too rigid and too brittle, right?

18:32So one of the, you know, some of the early efforts

18:35in that respect were to put probabilities on them.

18:40So a rule, you know, if you have this and that symptom,

18:44you know, you have this disease with that probability,

18:47and you should prescribe that antibiotic

18:49with that probability, right?

18:50That's the myosin system from the '70s.

18:53And that's what that branch of AI led to,

18:58you know, Bayesian networks and graphical models

19:00and causal inference and variational, you know, method.

19:04So there is, I mean, certainly a lot of interesting work

19:09going on in this area.

19:11The main issue with this is knowledge acquisition.

19:13How do you reduce a bunch of data to a graph of this type?

19:18- Yeah, it relies on the expert to,

19:21on the human being to encode, to add knowledge.

19:24- And that's essentially impractical.

19:27- Yeah, it's not scalable.

19:29- That's a big question.

19:30The second question is,

19:31do you want to represent knowledge as symbols,

19:34and do you want to manipulate them with logic?

19:37And again, that's incompatible with learning.

19:39So one suggestion with, you know,

19:42Geoff Hinton has been advocating for many decades

19:45is replace symbols by vectors.

19:49Think of it as pattern of activities

19:50in a bunch of neurons or units

19:53or whatever you want to call them,

19:55and replace logic by continuous functions.

19:59Okay, and that becomes now compatible.

20:01There's a very good set of ideas

20:04by, written in a paper about 10 years ago

20:07by Leon Boutou, who is here at Facebook.

20:11The title of the paper is

20:14"From Machine Learning to Machine Reasoning."

20:15And his idea is that a learning system

20:19should be able to manipulate objects

20:20that are in a space,

20:23and then put the result back in the same space.

20:24So it's this idea of working memory, basically.

20:27And it's very enlightening.

20:30- And in a sense, that might learn something

20:33like the simple expert systems.

20:36I mean, you can learn basic logic operations there.

20:42- Yeah, quite possibly.

20:43There's a big debate on sort of how much prior structure

20:46you have to put in for this kind of stuff to emerge.

20:49That's the debate I have with Gary Marcus

20:50and people like that.

20:51- Yeah, yeah.

20:52So, and the other person,

20:55so I just talked to Judea Pearl,

20:57from the, you mentioned causal inference world.

21:00So his worry is that the current neural networks

21:04are not able to learn

21:06what causes what causal inference between things.

21:12- So I think he's right and wrong about this.

21:15If he's talking about the sort of classic

21:18type of neural nets,

21:21people sort of didn't worry too much about this.

21:23But there's a lot of people now working on causal inference.

21:26And there's a paper that just came out last week

21:27by Leon Boutou, among others,

21:29David Lopez-Paz and a bunch of other people,

21:32exactly on that problem of how do you kind of,

21:35get a neural net to sort of pay attention

21:39to real causal relationships,

21:41which may also solve issues of bias in data

21:46and things like this.

21:48- I'd like to read that paper because that ultimately,

21:51the challenge there is also seems to fall back

21:54on the human expert

21:56to ultimately decide causality between things.

22:01- People are not very good at establishing causality,

22:03first of all.

22:04So first of all, you talk to physicists

22:06and physicists actually don't believe in causality

22:08because look at all the basic laws of macrophysics

22:12are time reversible.

22:13So there is no causality.

22:15- The arrow of time is not real.

22:17- It's as soon as you start looking at macroscopic systems,

22:20where there is unpredictable randomness,

22:22where there is clearly an arrow of time,

22:25but it's a big mystery in physics actually,

22:27well, how that emerges.

22:28- Is it emergent or is it part of the fundamental fabric

22:33of reality?

22:34- Or is it a bias of intelligent systems that,

22:37because of the second law of thermodynamics,

22:39we perceive a particular arrow of time,

22:41but in fact, it's kind of arbitrary, right?

22:45- So yeah, physicists, mathematicians,

22:47they don't care about, I mean,

22:48the math doesn't care about the flow of time.

22:51- Well, certainly macrophysics doesn't.

22:54People themselves are not very good at establishing

22:57causal relationships.

22:58If you ask, I think it was in one of Seymour Papert's book

23:02on like children learning,

23:06he studied with Jean Piaget,

23:08he's the guy who co-authored the book "Perceptron"

23:11with Marvin Minsky that kind of killed

23:13the first wave of neural nets,

23:14but he was actually a learning person.

23:17He, in the sense of studying learning in humans

23:21and machines, that's why he got interested in perceptron.

23:24And he wrote that if you ask a little kid

23:29about what is the cause of the wind,

23:32a lot of kids will say, they will think for a while

23:35and they'll say, "Oh, it's the branches in the trees.

23:38They move and that creates wind."

23:40So they get the causal relationship backwards.

23:42And it's because their understanding of the world

23:44and intuitive physics is not that great.

23:46I mean, these are like four or five year old kids.

23:48It gets better and then you understand that this,

23:52it can't be.

23:54But there are many things which we can,

23:57because of our common sense understanding of things,

24:00what people call common sense,

24:03and our understanding of physics,

24:04there's a lot of stuff that we can figure out

24:08'cause even with diseases, we can figure out

24:10what's not causing what often.

24:14There's a lot of mystery, of course,

24:16but the idea is that you should be able

24:18to encode that into systems.

24:20'Cause it seems unlikely they'd be able

24:21to figure that out themselves.

24:22- Well, whenever we can do intervention,

24:24but all of humanity has been completely deluded

24:27for millennia, probably since its existence,

24:30about a very, very wrong causal relationship

24:33where whatever you can explain,

24:34you attribute it to some deity, some divinity.

24:37And that's a cop-out.

24:40That's a way of saying, "I don't know the cause,

24:41so God did it."

24:43- So you mentioned Marvin Minsky and the irony of

24:51maybe causing the first AI winter.

24:54You were there in the '90s, you were there in the '80s,

24:56of course.

24:58In the '90s, why do you think people lost faith

25:00in deep learning in the '90s and found it again

25:04a decade later, over a decade later?

25:06- Yeah, it wasn't called deep learning yet.

25:07It was just called neural nets.

25:08- Neural networks.

25:09- Yeah, they lost interest.

25:13I mean, I think I would put that around 1995,

25:16at least the machine learning community.

25:18There was always a neural net community,

25:19but it became kind of disconnected

25:23from mainstream machine learning, if you want.

25:26There were, it was basically electrical engineering

25:30that kept at it.

25:32And computer science.

25:34- Just gave up.

25:35- Gave up on neural nets.

25:38I don't know.

25:39I was too close to it to really sort of analyze it

25:44with sort of an unbiased eye, if you want.

25:47But I would make a few guesses.

25:50So the first one is, at the time, neural nets were,

25:55it was very hard to make them work,

25:57in the sense that you would implement backprop

26:02in your favorite language.

26:03And that favorite language was not Python.

26:07It was not MATLAB.

26:07It was not any of those things,

26:09'cause they didn't exist, right?

26:10You had to write it in Fortran or C

26:13or something like this, right?

26:16So you would experiment with it.

§04Transcript · 26:18–34:03

26:18You would probably make some very basic mistakes,

26:21like, you know, barely initialize your weights,

26:23make the network too small

26:24because you read in a textbook, you know,

26:25you don't want too many parameters, right?

26:27And of course, you know, and you would train on XOR

26:29because you didn't have any other dataset to train on.

26:32And of course, you know, it works half the time.

26:33So you would say, "I give up."

26:36Also, you would train it with batch gradient,

26:37which, you know, isn't really sufficient.

26:40So there was a lot of, there was a bag of tricks

26:42that you had to know to make those things work,

26:44or you had to reinvent.

26:46And a lot of people just didn't,

26:48and they just couldn't make it work.

26:50So that's one thing.

26:52The investment in software platform

26:54to be able to kind of, you know, display things,

26:58figure out why things don't work,

26:59kind of get a good intuition for how to get them to work,

27:02have enough flexibility so you can create, you know,

27:04network architectures like convolutional nets

27:06and stuff like that.

27:07It was hard.

27:09I mean, you had to write everything from scratch.

27:10And again, you didn't have any Python

27:11or MATLAB or anything, right?

27:13- I read that, sorry to interrupt,

27:15but I read that you wrote in Lisp,

27:17your first versions of Linnet

27:21with the convolutional networks,

27:22which by the way, one of my favorite languages.

27:25That's how I knew you were legit.

27:27Turing Award, whatever.

27:29You programmed in Lisp.

27:30- It's still my favorite language.

27:32But it's not that we programmed in Lisp,

27:34it's that we had to write our Lisp interpreter.

27:37Okay, 'cause it's not like we used one that existed.

27:40So we wrote a Lisp interpreter

27:42that we hooked up to, you know,

27:44a backend library that we wrote

27:46also for sort of neural net computation.

27:48And then after a few years, around 1991,

27:50we invented this idea of basically having modules

27:54that know how to forward propagate

27:56and back propagate gradients,

27:57and then interconnecting those modules in a graph.

28:00Leombo 2 had made proposals on this,

28:03about this in the late 80s,

28:04and we were able to implement this using our Lisp system.

28:08Eventually we wanted to use that system

28:09to build production code

28:12for character recognition at Bell Labs.

28:14So we actually wrote a compiler for that Lisp interpreter

28:16so that Petrissi Mart, who is now at Microsoft,

28:19kind of did the bulk of it with Leon and me.

28:22And so we could write our system in Lisp

28:25and then compile to C,

28:26and then we'll have a self-contained compute system

28:29that could kind of do the entire thing.

28:32Neither PyTorch nor TensorFlow can do this today.

28:36Yet.

28:37Okay, it's coming.

28:38- Yeah.

28:38(laughs)

28:40- I mean, there's something like that in PyTorch

28:42called TorchScript.

28:44And so we had to write our Lisp interpreter,

28:47we had to write our Lisp compiler,

28:48we had to invest a huge amount of effort to do this.

28:50And not everybody,

28:52if you don't completely believe in the concept,

28:55you're not going to invest the time to do this.

28:57Now, at the time also,

28:59or today, this would turn into Torch or PyTorch

29:02or TensorFlow or whatever.

29:03We'd put it in open source,

29:05everybody would use it and realize it's good.

29:08Back before 1995, working at AT&T,

29:11there's no way the lawyers would let you

29:13release anything in open source of this nature.

29:17And so we could not distribute our code, really.

29:20- And on that point,

29:21and sorry to go on a million tangents,

29:23but on that point,

29:24I also read that there was some almost patent,

29:27like a patent on convolutional neural networks.

29:29- Yes, there was.

29:30- So that, first of all,

29:34I mean, just--

29:36- There's two, actually.

29:38- That ran out.

29:39- Thankfully, in 2007.

29:42- In 2007.

29:43Can we just talk about that for a second?

29:48I know you're at Facebook,

29:49but you're also at NYU.

29:50What does it mean to patent ideas

29:55like these software ideas, essentially?

29:58Or mathematical ideas?

30:02Or what are they?

30:03- Okay, so they're not mathematical ideas.

30:05They are algorithms.

30:07And there was a period where the US patent office

30:11would allow the patent of software

30:14as long as it was embodied.

30:15The Europeans are very different.

30:18They don't quite accept that.

30:20They have a different concept, but you know.

30:23I don't, I no longer,

30:24I mean, I never actually strongly believed in this,

30:26but I don't believe in this kind of patent.

30:28Facebook basically doesn't believe in this kind of patent.

30:33Google fires patents because they've been burned with Apple.

30:38And so now they do this for defensive purpose,

30:41but usually they say,

30:42"We're not gonna sue you if you infringe."

30:44Facebook has a similar policy.

30:47They say, "We fire patents on certain things

30:49"for defensive purpose.

30:50"We're not gonna sue you if you infringe,

30:52"unless you sue us."

30:53So the industry does not believe in patents.

30:59They are there because of the legal landscape

31:01and various things,

31:03but I don't really believe in patents

31:06for this kind of stuff.

31:08- So that's a great thing.

31:09So I-

31:10- I'll tell you a worse story, actually.

31:11So what happens was the first patent about convolutional net

31:15was about kind of the early version of convolutional net

31:18that didn't have separate pooling layers.

31:19It had convolutional layers

31:22with stride more than one, if you want, right?

31:25And then there was a second one on convolutional nets

31:28with separate pooling layers, training with backprop.

31:31And they were filed in '89 and 1990

31:35or something like this.

31:36At the time, the life of a patent was 17 years.

31:39So here's what happened over the next few years

31:42is that we started developing

31:44character recognition technology around convolutional nets.

31:48And in 1994, a check reading system

31:53was deployed in ATM machines.

31:56In 1995, it was for large check reading machines

31:59in back offices, et cetera.

32:00And those systems were developed by an engineering group

32:04that we were collaborating with at AT&T.

32:06And they were commercialized by NCR,

32:08which at the time was a subsidiary of AT&T.

32:11Now AT&T split up in 1996, early 1996.

32:16And the lawyers just looked at all the patents

32:20and they distributed the patents among the various companies.

32:22They gave the convolutional net patent to NCR

32:26because they were actually selling products that used it.

32:29But nobody at NCR had any idea what a convolutional net was.

32:32- Yeah.

32:33- Okay.

32:34So between 1996 and 2007,

32:36so there's a whole period until 2002

32:39where I didn't actually work on machine learning

32:42or convolutional net.

32:42I resumed working on this around 2002.

32:44And between 2002 and 2007, I was working on them,

32:48crossing my finger that nobody at NCR would notice.

32:51And nobody noticed.

32:52- Yeah, and I hope that this kind of somewhat,

32:55as you said, lawyers aside,

32:58relative openness of the community now will continue.

33:02- It accelerates the entire progress of the industry.

33:05And the problems that Facebook and Google

33:10and others are facing today

33:13is not whether Facebook or Google or Microsoft or IBM

33:15or whoever is ahead of the other,

33:18is that we don't have the technology

33:19to build the things we want to build.

33:21We want to build intelligent virtual assistants

33:23that have common sense.

33:24We don't have monopoly on good ideas for this.

33:26We don't believe we do.

33:27Maybe others believe they do, but we don't.

33:30Okay.

33:31If a startup tells you they have the secret

33:33to human level intelligence and common sense,

33:36don't believe them.

33:37They don't.

33:38And it's going to take the entire work

33:42of the world research community for a while

33:45to get to the point where you can go off

33:47and each of those companies

33:49is going to start to build things on this.

33:50We're not there yet.

33:51- It's absolutely.

33:52This calls to the gap between the space of ideas

33:57and the rigorous testing of those ideas

34:00of practical application that you often speak to.

34:03You've written advice saying,

§05Transcript · 34:05–42:26

34:05"Don't get fooled by people who claim

34:07"to have a solution to artificial general intelligence,

34:10"who claim to have an AI system

34:11"that works just like the human brain

34:14"or who claim to have figured out how the brain works.

34:17"Ask them what the error rate they get

34:20"on MNIST or ImageNet."

34:23- Yeah, this is a little dated by the way.

34:24(laughs)

34:25- I mean, five years, who's counting?

34:28Okay.

34:29But I think your opinion is still MNIST and ImageNet,

34:32yes, may be dated.

34:34There may be new benchmarks, right?

34:36But I think that philosophy is one you still

34:39and somewhat hold that benchmarks

34:43and the practical testing, the practical application

34:45is where you really get to test the ideas.

34:47- Well, it may not be completely practical.

34:49Like for example, it could be a toy dataset,

34:52but it has to be some sort of task

34:54that the community as a whole has accepted

34:57as some sort of standard kind of benchmark, if you want.

35:00It doesn't need to be real.

35:01So for example, many years ago here at FAIR,

35:04people, Jason West, Antoine Born and a few others

35:07proposed the Babi tasks,

35:09which were kind of a toy problem to test

35:12the ability of machines to reason actually

35:14to access working memory and things like this.

35:16And it was very useful, even though it wasn't a real task.

35:20MNIST is kind of halfway real task.

35:22So, toy problems can be very useful.

35:26It's just that I was really struck by the fact that

35:29a lot of people, particularly a lot of people

35:31with money to invest would be fooled by people telling them,

35:34oh, we have the algorithm of the cortex

35:37and you should give us 50 million.

35:39- Yes, absolutely.

35:40So there's a lot of people who try to take advantage

35:45of the hype for business reasons and so on.

35:48But let me sort of talk to this idea

35:50that sort of new ideas,

35:53the ideas that push the field forward

35:56may not yet have a benchmark,

35:58or it may be very difficult to establish a benchmark.

36:00- I agree.

36:01That's part of the process.

36:02Establishing benchmarks is part of the process.

36:04- So what are your thoughts about,

36:07so we have these benchmarks on,

36:09around stuff we can do with images,

36:12from classification to captioning

36:14to just every kind of information you can pull off

36:16from images and the surface level.

36:18There's audio data sets, there's some video.

36:21What can we start, natural language,

36:24what kind of benchmarks do you see that start creeping

36:30on to more something like intelligence,

36:33like reasoning, like maybe you don't like the term,

36:37but AGI, echoes of that kind of formulation?

36:41- A lot of people are working on interactive environments

36:44in which you can train and test intelligent systems.

36:48So there, for example,

36:50the classical paradigm of supervised learning

36:56is that you have a data set,

36:57you partition it into a training set,

36:59validation set, test set,

37:00and there's a clear protocol, right?

37:03But what if, that assumes that the samples

37:06are statistically independent,

37:08you can exchange them,

37:10the order in which you see them shouldn't matter,

37:12things like that.

37:13But what if the answer you give

37:15determines the next sample you see,

37:17which is the case, for example, in robotics, right?

37:19You robot does something

37:21and then it gets exposed to a new room

37:23and depending on where it goes,

37:25the room would be different.

37:26So that creates the exploration problem.

37:28The what if the samples,

37:32so that creates also a dependency between samples, right?

37:35If you can only move in space,

37:39the next sample you're gonna see

37:40is gonna be probably in the same building, most likely.

37:44So all the assumptions about the validity

37:47of this training set, test set hypothesis break

37:51whenever a machine can take an action

37:53that has an influence in the world

37:54and it's what it's gonna see.

37:56So people are setting up artificial environments

38:00where that takes place, right?

38:02The robot runs around a 3D model of a house

38:05and can interact with objects and things like this.

38:08So you do robotics by simulation,

38:10you have those, you know,

38:11opening a gym type thing

38:14or MuJoCo kind of simulated robots

38:18and you have games, you know, things like that.

38:21So that's where the field is going really,

38:23this kind of environment.

38:24Now, back to the question of AGI,

38:28like I don't like the term AGI

38:29because it implies that human intelligence is general

38:35and human intelligence is nothing like general.

38:38It's very, very specialized.

38:40We think it's general, we like to think of ourselves

38:42as having general intelligence, we don't.

38:44We're very specialized.

38:46We're only slightly more general than--

38:47- Why does it feel general?

38:48So you kind of, the term general,

38:52I think what's impressive about humans

38:54is ability to learn, as we were talking about learning,

38:58to learn in just so many different domains.

39:01It's perhaps not arbitrarily general,

39:04but just you can learn in many domains

39:06and integrate that knowledge somehow.

39:08- Okay. - The knowledge persists.

39:09- So let me take a very specific example.

39:12It's not an example, it's more like

39:13a quasi-mathematical demonstration.

39:17So you have about one million fibers

39:18coming out of one of your eyes, okay, two million total,

39:21but let's talk about just one of them.

39:23It's one million nerve fibers, your optical nerve.

39:26Let's imagine that they are binary,

39:28so they can be active or inactive, right?

39:30So the input to your visual cortex is one million bits.

39:36Now, they're connected to your brain in a particular way,

39:39and your brain has connections

39:41that are kind of a little bit like a convolutional net,

39:44they're kind of local in space and things like this.

39:47Now imagine I play a trick on you.

39:49It's a pretty nasty trick, I admit.

39:53I cut your optical nerve,

39:55and I put a device that makes a random perturbation,

39:59a permutation of all the nerve fibers.

40:01So now what comes to your brain

40:04is a fixed but random permutation of all the pixels.

40:07There's no way in hell that your visual cortex,

40:11even if I do this to you in infancy,

40:14will actually learn vision

40:16to the same level of quality that you can.

40:20- Got it, and you're saying

40:21there's no way you've relearned that?

40:22- No, because now two pixels that are nearby in the world

40:25will end up in very different places in your visual cortex,

40:29and your neurons there have no connections with each other

40:31because they're only connected locally.

40:33- So this whole, our entire,

40:35the hardware is built in many ways to support--

40:38- The locality of the real world.

40:39- Yeah.

40:40- Yes, that's specialization.

40:42- Yeah, but it's still pretty damn impressive.

40:44So it's not perfect generalization.

40:46It's not even close.

40:47- No, no, it's not that it's not even close.

40:49It's not at all.

40:50- Yeah, it's not.

40:51It's specialized, yeah.

40:52- So how many Boolean functions,

40:54so let's imagine you want to train your visual system

40:58to recognize particular patterns of those one million bits.

41:03Okay, so that's a Boolean function, right?

41:05Either the pattern is here or not here.

41:07It's a two-way classification

41:09with one million binary inputs.

41:11How many such Boolean functions are there?

41:16Okay, you have two to the one million

41:19combinations of inputs.

41:21For each of those, you have an output bit.

41:24And so you have two to the one million

41:26Boolean functions of this type, okay?

41:30Which is an unimaginably large number.

41:33How many of those functions can actually be computed

41:35by your visual cortex?

41:37And the answer is a tiny, tiny, tiny, tiny, tiny, tiny sliver

41:41like an enormously tiny sliver.

41:43- Yeah, yeah.

41:45- So we are ridiculously specialized.

41:47- But, okay.

41:49(laughing)

41:51Okay, that's an argument against the word general.

41:54I think there's a,

41:55I agree with your intuition, but I'm not sure it's,

42:00it seems the brain is impressively

42:04capable of adjusting to things, so.

42:09- It's because we can't imagine tasks

42:13that are outside of our comprehension, right?

42:16So we think we are general

42:18because we are general of all the things

42:19that we can apprehend.

42:20But there is a huge world out there

42:22of things that we have no idea.

42:24We call that heat, by the way.

42:26- Heat. - Heat.

§06Transcript · 42:27–50:45

42:27So, at least physicists call that heat,

42:30or they call it entropy, which is kind of,

42:33you have a thing full of gas, right?

42:38- Closed system full of gas.

42:40- Right?

42:41Closed or not closed.

42:42It has pressure, it has temperature,

42:47it has, and you can write equations,

42:51PV equal NRT, things like that, right?

42:54When you reduce the volume, the temperature goes up,

42:57the pressure goes up, things like that, right?

43:00For a perfect gas, at least.

43:02Those are the things you can know about that system.

43:05And it's a tiny, tiny number of bits

43:07compared to the complete information

43:09of the state of the entire system.

43:10Because the state of the entire system

43:12will give you the position and momentum

43:13of every molecule of the gas.

43:16And what you don't know about it is the entropy,

43:20and you interpret it as heat.

43:23The energy contained in that thing is what we call heat.

43:28Now, it's very possible that, in fact,

43:32there is some very strong structure

43:33in how those molecules are moving.

43:35It's just that they are in a way

43:36that we are just not wired to perceive.

43:39- Yeah, we're ignorant to it.

43:40And there's an infinite amount of things

43:43we're not wired to perceive.

43:45And you're right, that's a nice way to put it.

43:47We're general to all the things we can imagine,

43:50which is a very tiny subset of all things that are possible.

43:54- So it's like Kolmogorov complexity

43:56or the Kolmogorov-Chaitin summa of complexity.

43:58Every bit string or every integer is random,

44:05except for all the ones that you can actually write down.

44:08(both laughing)

44:11- Yeah, okay, so beautifully put.

44:13So we can just call it artificial intelligence.

44:15We don't need to have a general.

44:16- Or human level.

44:18Human level intelligence is good.

44:23Anytime you touch human, it gets interesting

44:26because we attach ourselves to human

44:31and it's difficult to define what human intelligence is.

44:36Nevertheless, my definition is maybe

44:39damn impressive intelligence, okay?

44:43Damn impressive demonstration of intelligence, whatever.

44:46And so on that topic, most successes in deep learning

44:51have been in supervised learning.

44:53What is your view on unsupervised learning?

44:57Is there a hope to reduce involvement of human input

45:02and still have successful systems

45:05that have practical use?

45:08- Yeah, I mean, there's definitely a hope.

45:09It's more than a hope, actually.

45:11It's mounting evidence for it.

45:13And that's basically all I do.

45:16The only thing I'm interested in at the moment is,

45:19I call it self-supervised learning, not unsupervised,

45:21'cause unsupervised learning is a loaded term.

45:24People who know something about machine learning

45:28tell you, so you're doing clustering or PCA,

45:30which is not the case.

45:31And the wide public, when you say unsupervised learning,

45:33oh my God, machines are gonna learn by themselves

45:35and without supervision.

45:36- Where's the parents?

45:40- Yeah, so I call it self-supervised learning

45:42because in fact, the underlying algorithms that are used

45:46are the same algorithms

45:47as the supervised learning algorithms,

45:50except that what we train them to do

45:52is not predict a particular set of variables,

45:55like the category of an image,

45:58and not to predict a set of variables

46:02that have been provided by human labelers.

46:06But what you train the machine to do is basically

46:08reconstruct a piece of its input

46:10that is being masked out, essentially.

46:14You can think of it this way, right?

46:15So show a piece of video to a machine

46:18and ask it to predict what's gonna happen next.

46:20And of course, after a while, you can show what happens

46:23and the machine will kind of train itself

46:26to do better at that task.

46:27You can do, like all the latest, most successful models

46:32in natural language processing

46:33use self-supervised learning.

46:34You know, sort of BERT-style systems, for example, right?

46:38You show it a window of a dozen words on a test corpus,

46:43you take out 15% of the words,

46:46and then you train a machine

46:48to predict the words that are missing.

46:51That's self-supervised learning.

46:52It's not predicting the future,

46:54it's just predicting things in the middle,

46:56but you could have it predict the future,

46:57that's what language models do.

46:59- So you construct, so in an unsupervised way,

47:01you construct a model of language.

47:04Do you think-

47:05- Or video, or the physical world, or whatever, right?

47:09- How far do you think that can take us?

47:12Do you think BERT understands anything?

47:16- To some level.

47:18It has a shallow understanding of text,

47:23but it needs to, I mean,

47:24to have kind of true human level intelligence,

47:26I think you need to ground language in reality.

47:29So some people are attempting to do this, right?

47:32Having systems that kind of have some visual representation

47:35of what is being talked about,

47:37which is one reason you need

47:38those interactive environments, actually.

47:41But it's like a huge technical problem that is not solved,

47:45and that explains why self-supervised learning works

47:48in the context of natural language,

47:50but does not work in the context,

47:51or at least not well,

47:52in the context of image recognition and video,

47:55although it's making progress quickly.

47:57And the reason, that reason is the fact that

48:00it's much easier to represent uncertainty in the prediction

48:05in the context of natural language

48:06than it is in the context of things like video and images.

48:10So for example, if I ask you to predict

48:12what words are missing,

48:13you know, 15% of the words that are taken out.

48:16- The possibility is just small.

48:19I mean- - It's small, right?

48:20There is a hundred thousand words in the lexicon,

48:23and what the machine spits out

48:24is a big probability vector, right?

48:27It's a bunch of numbers between zero and one

48:29that's onto one.

48:30And we know how to do this with computers.

48:33So there, representing uncertainty in the prediction

48:36is relatively easy,

48:37and that's, in my opinion,

48:39why those techniques work for NLP.

48:42For images, if you ask,

48:45if you block a piece of an image

48:46and you ask the system,

48:47reconstruct that piece of the image,

48:49there are many possible answers

48:50that are all perfectly legit, right?

48:54And how do you represent that,

48:57this set of possible answers?

48:58You can't train a system to make one prediction.

49:00You can't train a neural net to say,

49:02here it is, that's the image,

49:04because there's a whole set of things

49:06that are compatible with it.

49:07So how do you get the machine to represent

49:08not a single output,

49:09but a whole set of outputs?

49:11And similarly with video prediction,

49:17there's a lot of things that can happen

49:19in the future of a video.

49:20You're looking at me right now,

49:21I'm not moving my head very much,

49:22but I might turn my head to the left or to the right.

49:27If you don't have a system that can predict this,

49:29and you train it with least square

49:31to kind of minimize the error with a prediction

49:33on what I'm doing,

49:34what you get is a blurry image of myself

49:37in all possible future positions that I might be in,

49:39which is not a good prediction.

49:41- But so there might be other ways

49:43to do the self-supervision, right?

49:45For visual scenes.

49:48- Like what?

49:48(laughs)

49:49- If I knew, I wouldn't tell you.

49:52Publish it first, I don't know.

49:54- No, there might be.

49:56- So, I mean, these are kind of,

49:59there might be artificial ways of like self-play in games

50:03to where you can simulate part of the environment.

50:05You can-

50:05- Oh, that doesn't solve the problem.

50:06It's just a way of generating data.

50:08- But because you have more of a control,

50:12like maybe you can control,

50:14yeah, it's a way to generate data.

50:16That's right.

50:16And because you can do huge amounts of data generation,

50:20that doesn't, you're right.

50:21Well, it creeps up on the problem from the side of data,

50:26and you don't think that's the right way to creep up.

50:27- It doesn't solve this problem

50:28of handling uncertainty in the world, right?

50:30So if you have a machine learn a predictive model

50:35of the world in a game that is deterministic

50:38or quasi-deterministic, it's easy, right?

50:42Just give a few frames of the game to a ConvNet,

50:45put a bunch of layers,

§07Transcript · 50:47–59:40

50:47and then have the game generates the next few frames.

50:49And if the game is deterministic, it works fine.

50:52And that includes feeding the system with the action

50:59that your little character is gonna take.

51:03The problem comes from the fact that the real world

51:06and most games are not entirely predictable.

51:09And so there you get those blurry predictions,

51:11and you can't do planning with blurry predictions.

51:14Right, so if you have a perfect model of the world,

51:17you can, in your head, run this model

51:20with a hypothesis for a sequence of actions,

51:24and you're going to predict the outcome

51:25of that sequence of actions.

51:26But if your model is imperfect, how can you plan?

51:32- Yeah, it quickly explodes.

51:33What are your thoughts on the extension of this,

51:37which topic I'm super excited about,

51:39it's connected to something you were talking about

51:41in terms of robotics, is active learning.

51:44So as opposed to sort of completely unsupervised

51:47or self-supervised learning,

51:49you ask the system for human help

51:53for selecting parts you want annotated next.

51:58So if you think about a robot exploring a space

52:00or a baby exploring a space,

52:02or a system exploring a dataset,

52:05every once in a while asking for human input,

52:07do you see value in that kind of work?

52:12- I don't see transformative value.

52:14It's going to make things that we can already do

52:16more efficient, or they will learn slightly more efficiently,

52:20but it's not going to make machines

52:21sort of significantly more intelligent.

52:23And by the way, there is no opposition,

52:29there's no conflict between self-supervised learning,

52:34reinforcement learning, and supervised learning,

52:35or imitation learning, or active learning.

52:38I see self-supervised learning as a preliminary

52:42to all of the above.

52:43- Yes.

52:44- So the example I use very often is,

52:48how is it that, so if you use

52:51classical reinforcement learning,

52:54deep reinforcement learning, if you want,

52:57the best methods today,

52:59so-called model-free reinforcement learning,

53:03to learn to play Atari games,

53:04take about 80 hours of training to reach the level

53:07that any human can reach in about 15 minutes.

53:10They get better than humans, but it takes them a long time.

53:15AlphaStar, okay, the, you know,

53:21Aurelien Wigner and his team's system to play StarCraft,

53:27plays, you know, a single map, a single type of player,

53:32and can reach better than human level

53:38with about the equivalent of 200 years of training

53:43playing against itself.

53:45It's 200 years, right?

53:46It's not something that no human can, could ever do.

53:50- I mean, I'm not sure what lesson to take away from that.

53:52- Okay, now take those algorithms,

53:54the best Aurel algorithms we have today,

53:57to train a car to drive itself.

54:00It would probably have to drive millions of hours.

54:03It will have to kill thousands of pedestrians.

54:05It will have to run into thousands of trees.

54:07It will have to run off cliffs.

54:09And it had to run off cliffs multiple times

54:11before it figures out that it's a bad idea, first of all.

54:15And second of all, before it figures out how not to do it.

54:18And so, I mean, this type of learning, obviously,

54:20does not reflect the kind of learning

54:22that animals and humans do.

54:24There is something missing

54:25that's really, really important there.

54:27And my hypothesis,

54:28which I've been advocating for like five years now,

54:31is that we have predictive models of the world

54:34that include the ability to predict under uncertainty.

54:39And what allows us to not run off a cliff

54:44when we learn to drive,

54:45most of us can learn to drive

54:46in about 20 or 30 hours of training

54:48without ever crashing, causing any accident.

54:52And if we drive next to a cliff,

54:54we know that if we turn the wheel to the right,

54:56the car is gonna run off the cliff

54:58and nothing good is gonna come out of this.

54:59Because we have a pretty good model of intuitive physics

55:01that tells us the car is gonna fall.

55:03We know about gravity.

55:05Babies learn this around the age of eight or nine months,

55:08that objects don't float, they fall.

55:10And we have a pretty good idea

55:14of the effect of turning the wheel of the car.

55:16And we know we need to stay on the road.

55:18So there's a lot of things that we bring to the table,

55:20which is basically our predictive model of the world.

55:23And that model allows us to not do stupid things

55:26and to basically stay within the context

55:29of things we need to do.

55:31We still face unpredictable situations

55:33and that's how we learn,

55:35but that allows us to learn really, really, really quickly.

55:38So that's called model-based reinforcement learning.

55:41There's some imitation and supervised learning

55:44because we have a driving instructor

55:46that tells us occasionally what to do.

55:47But most of the learning

55:50is learning the model, learning physics

55:54that we've done since we were babies.

55:56That's where almost all the learning-

55:58- And the physics is somewhat transferable from,

56:01is transferable from scene to scene.

56:03Stupid things are the same everywhere.

56:05- Yeah.

56:06I mean, if you have experience of the world,

56:09you don't need to be from a particularly intelligent species

56:12to know that if you spill water from a container,

56:16the rest is gonna get wet.

56:20And you might get wet.

56:21So, you know, cats know this, right?

56:24- Yeah.

56:25- So the main problem we need to solve

56:27is how do we learn models of the world?

56:29That's, and that's what I'm interested in.

56:31That's what self-supervised learning is all about.

56:34- If you were to try to construct a benchmark for,

56:37let's look at MNIST.

56:41I love that dataset.

56:42Do you think it's useful, interesting/possible

56:48to perform well on MNIST

56:51with just one example of each digit?

56:53And how would we solve that problem?

56:57- The answer is probably yes.

56:59The question is what other type of learning

57:02are you allowed to do?

57:03So if what you're allowed to do

57:04is train on some gigantic dataset of labeled digit,

57:07that's called transfer learning.

57:08And we know that works, okay?

57:10We do this at Facebook, like in production, right?

57:13We train large convolutional nets

57:15to predict hashtags that people type on Instagram.

57:18And we train on billions of images, literally billions.

57:20And then we chop off the last layer

57:22and fine tune on whatever task we want.

57:24That works really well.

57:26You can beat the ImageNet record with this.

57:28We actually open-sourced the whole thing

57:30like a few weeks ago.

57:31- Yeah, that's still pretty cool.

57:33But yeah, so what would be impressive?

57:35And what's useful and impressive?

57:38What kind of transfer learning would be useful and impressive?

57:40Is it Wikipedia?

57:41That kind of thing?

57:42- No, no, so I don't think transfer learning

57:44is really where we should focus.

57:46We should try to do,

57:48you know, have a kind of scenario for benchmark

57:52where you have unlabeled data

57:54and you can, and it's very large number of unlabeled data.

57:59It could be video clips.

58:02It could be where you do, you know, frame prediction.

58:04It could be images where you could choose to,

58:07you know, mask a piece of it.

58:09Could be whatever, but they're unlabeled

58:13and you're not allowed to label them.

58:15So you do some training on this

58:18and then you train on a particular supervised task,

58:23ImageNet or NIST,

58:27and you measure how your test error decrease

58:30or validation error decreases

58:32as you increase the number of labeled training samples.

58:34Okay, and what you'd like to see is that,

58:42you know, your error decreases much faster

58:44than if you train from scratch, from random weights.

58:47So that to reach the same level of performance

58:50in a completely supervised, purely supervised system

58:54would reach, you would need way fewer samples.

58:56So that's the crucial question

58:57because it will answer the question to like, you know,

59:00people interested in medical image analysis.

59:02Okay, you know, if I want to get to a particular

59:06level of error rate for this task,

59:08I know I need a million samples.

59:12Can I do, you know, self-supervised pre-training

59:15to reduce this to about a hundred or something?

59:17- And you think the answer there

59:18is self-supervised pre-training?

59:20- Yeah, some form, some form of it.

59:25- Telling you, active learning, but you disagree.

59:28- No, it's not useless.

59:30It's just not gonna lead to a quantum leap.

59:32It's just gonna make things that we already do.

59:33- So you're way smarter than me.

59:35I just disagree with you.

59:37But I don't have anything to back that.

59:39It's just intuition.

59:40So I worked with a lot of large scale datasets

§08Transcript · 59:42–1:07:22

59:42and there's something that might be magic

59:45in active learning, but okay.

59:47Now at least I said it publicly.

59:49(laughs)

59:50At least I'm being an idiot publicly.

59:52Okay.

59:53- It's not being an idiot.

59:54It's, you know, working with the data you have.

59:56I mean, certainly people are doing things like,

59:58okay, I have 3000 hours of, you know,

60:01imitation learning for self-driving car,

60:03but most of those are incredibly boring.

60:05What I like is select, you know, 10% of them

60:07that are kind of the most informative.

60:09And with just that, I would probably reach the same.

60:12So it's a weak form of active learning, if you want.

60:16- Yes, but there might be a much stronger version.

60:20- Yeah, that's right.

60:20- That's what, and that's an open question if it exists.

60:23The question is how much stronger it can get.

60:26Elon Musk is confident.

60:28Talked to him recently.

60:30He's confident that large scale data

60:32and deep learning can solve the autonomous driving problem.

60:35What are your thoughts on the limits,

60:38possibilities of deep learning in this space?

60:40- It's obviously part of the solution.

60:42I mean, I don't think we'll ever have a self-driving system,

60:45or at least not in the foreseeable future,

60:47that does not use deep learning.

60:49Let me put it this way.

60:50Now, how much of it?

60:51So in the history of sort of engineering,

60:55particularly sort of AI-like systems,

61:00there's generally a first phase

61:01where everything is built by hand.

61:03Then there is a second phase,

61:04and that was the case for autonomous driving,

61:06you know, 20, 30 years ago.

61:08There's a phase where there's,

61:10a little bit of learning is used,

61:11but there's a lot of engineering that's involved

61:13in kind of, you know, taking care of corner cases

61:16and putting limits, et cetera,

61:18because the learning system is not perfect.

61:20And then as technology progresses,

61:22we end up relying more and more on learning.

61:26That's the history of character recognition,

61:27it's the history of speech recognition,

61:29now computer vision, natural language processing.

61:31And I think the same is going to happen

61:33with autonomous driving, that currently

61:37the methods that are closest to providing

61:41some level of autonomy, some, you know,

61:43decent level of autonomy, where you don't expect

61:45a driver to kind of do anything,

61:47is where you constrain the world.

61:50So you only run within, you know,

61:52100 square kilometers or square miles in Phoenix,

61:55but the weather is nice and the roads are wide,

61:58which is what Waymo is doing.

62:00You completely over-engineer the car

62:03with tons of lidars and sophisticated sensors

62:07that are too expensive for consumer cars,

62:09but they're fine if you just run a fleet.

62:11And you engineer the hell out of everything else,

62:16you map the entire world,

62:17so you have a complete 3D model of everything.

62:20So the only thing that the perception system

62:22has to take care of is moving objects

62:24and construction and sort of, you know,

62:27things that weren't in your map.

62:29And you can engineer a good, you know,

62:32SLAM system and all that stuff, right?

62:33So that's kind of the current approach

62:35that's closest to some level of autonomy,

62:37but I think eventually the long-term solution

62:39is gonna rely more and more on learning

62:43and possibly using a combination

62:45of self-supervised learning and model-based reinforcement

62:49or something like that.

62:50- But ultimately learning will be not just at the core,

62:54but really the fundamental part of the system.

62:57- Yeah, it already is, but it'll become more and more.

63:00- What do you think it takes to build a system

63:02with human level intelligence?

63:04You talked about the AI system in the movie "Her"

63:07being way out of reach, our current reach.

63:10This might be outdated as well, but-

63:12- It's still way out of reach.

63:13- It's still way out of reach.

63:14What would it take to build "Her"?

63:18Do you think?

63:19- So I can tell you the first two obstacles

63:21that we have to clear,

63:22but I don't know how many obstacles there are after this.

63:24So the image I usually use is that

63:26there is a bunch of mountains that we have to climb

63:28and we can see the first one,

63:29but we don't know if there are 50 mountains

63:31behind it or not.

63:32And this might be a good sort of metaphor

63:34for why AI researchers in the past

63:38have been overly optimistic about the result of AI.

63:41For example, Newell and Simon

63:46wrote the general problem solver

63:49and they called it a general problem solver.

63:51- General problem solver.

63:52- And of course, the first thing you realize

63:54is that all the problems you want to solve are exponential.

63:56And so you can't actually use it for anything useful.

63:59But you know.

64:00- Yeah, so yeah, all you see is the first peak.

64:02So what are the first couple of peaks for "Her"?

64:05- So the first peak,

64:06which is precisely what I'm working on,

64:07is self-supervised learning.

64:09How do we get machines to learn models of the world

64:12by observation,

64:13kind of like babies and like young animals?

64:15So we've been working with cognitive scientists.

64:22So this Emmanuelle Dupoux, who is at FAIR in Paris,

64:26is a half-time, is also a researcher in French University.

64:31And he has this chart that shows

64:36which, how many months of life

64:39baby humans can learn different concepts.

64:42And you can measure this in sort of various ways.

64:45So things like distinguishing animate objects

64:51from inanimate objects,

64:52you can tell the difference at age two, three months.

64:56Whether an object is going to stay stable,

64:58is going to fall, you know,

64:59about four months, you can tell.

65:02You know, there are various things like this.

65:04And then things like gravity,

65:06the fact that objects are not supposed to float in the air,

65:08but are supposed to fall,

65:10you learn this around the age of eight or nine months.

65:12If you look at a lot of, you know, eight-month-old babies,

65:15you give them a bunch of toys on their high chair.

65:18First thing they do is they throw them on the ground

65:19and they look at them.

65:21It's because, you know,

65:22they're learning about, actively learning

65:24about gravity. - Gravity, yeah.

65:26- Okay, so they're not trying to annoy you,

65:29but they, you know, they need to do the experiment, right?

65:32So, you know, how do we get machines to learn like babies?

65:36Mostly by observation with a little bit of interaction

65:39and learning those models of the world,

65:41because I think that's really a crucial piece

65:43of an intelligent autonomous system.

65:46So if you think about the architecture

65:47of an intelligent autonomous system,

65:49it needs to have a predictive model of the world.

65:51So something that says, here is a world at time T,

65:54here is a state of the world at time T plus one

65:55if I take this action.

65:56And it's not a single answer, it can be a--

65:59- Yeah, it can be a distribution, yeah.

66:01- Yeah, well, but we don't know how to represent

66:03distributions in high dimensional space.

66:04So it's gotta be something weaker than that, okay?

66:07But with some representation of uncertainty.

66:09If you have that, then you can do

66:12what optimal control theorists call

66:14model predictive control,

66:15which means that you can run your model

66:17with a hypothesis for a sequence of action

66:19and then see the result.

66:21Now, what you need, the other thing you need

66:23is some sort of objective that you want to optimize.

66:26Am I reaching the goal of grabbing this object?

66:28Am I minimizing energy?

66:30Am I whatever, right?

66:31So there is some sort of objective

66:33that you have to minimize.

66:34And so in your head, if you have this model,

66:36you can figure out the sequence of action

66:38that will optimize your objective.

66:39That objective is something that ultimately

66:43is rooted in your basal ganglia,

66:45at least in the human brain,

66:46that's what it's basal ganglia,

66:48computes your level of contentment or miscontentment.

66:52I don't know if that's a word.

66:54Unhappiness, okay?

66:55- Yeah, yeah.

66:56- Discontentment.

66:57- Discontentment, maybe.

66:58- And so your entire behavior is driven

67:01towards minimizing that objective,

67:04which is maximizing your contentment,

67:07computed by your basal ganglia.

67:09And what you have is an objective function,

67:13which is basically a predictor

67:14of what your basal ganglia is going to tell you.

67:17So you're not going to put your hand on fire

67:19because you know it's going to burn.

67:22And you're going to get hurt.

§09Transcript · 1:07:23–1:15:38

67:23And you're predicting this because of your model of the world

67:26and your sort of predictor of this objective, right?

67:30So if you have those three components,

67:33you have four components,

67:35you have the hardwired contentment objective computer,

67:40if you want, calculator.

67:43And then you have those three components.

67:45One is the objective predictor,

67:46which basically predicts your level of contentment.

67:48One is the model of the world.

67:52And there's a third module I didn't mention,

67:54which is the module that will figure out

67:57the best course of action

67:59to optimize an objective given your model.

68:01Okay?

68:03- Yeah.

68:04- Call this a policy network or something like that, right?

68:08Now, you need those three components

68:11to act autonomously, intelligently.

68:13And you can be stupid in three different ways.

68:16You can be stupid because your model of the world is wrong.

68:19You can be stupid because your objective is not aligned

68:22with what you actually want to achieve.

68:25Okay?

68:25In humans, that would be a psychopath.

68:29- Right.

68:30- And then the third way you can be stupid

68:33is that you have the right model,

68:34you have the right objective,

68:36but you're unable to figure out a course of action

68:38to optimize your objective given your model.

68:40- Right.

68:41- Okay.

68:42Some people who are in charge of big countries

68:45actually have all three that are wrong.

68:47- All right.

68:48(laughs)

68:50Which countries?

68:51I don't know.

68:52Okay, so if we think about this agent,

68:55if we think about the movie "Her,"

68:57you've criticized the art project that is Sophia the Robot.

69:02And what that project essentially does

69:07is uses our natural inclination to anthropomorphize

69:11things that look like human and give them more.

69:14Do you think that could be used by AI systems

69:17like in the movie "Her"?

69:19So do you think that body is needed

69:23to create a feeling of intelligence?

69:27- Well, if Sophia was just an art piece,

69:29I would have no problem with it,

69:30but it's presented as something else.

69:33- Let me add that comment real quick.

69:35If creators of Sophia could change something

69:38about their marketing or behavior in general,

69:40what would it be?

69:41What's--

69:42- I'm just about everything.

69:43(laughs)

69:45- I mean, don't you think, here's a tough question.

69:50Let me, so I agree with you.

69:51So Sophia is not, the general public

69:55feels that Sophia can do way more than she actually can.

69:59- That's right.

70:00- And the people who created Sophia

70:02are not honestly publicly communicating,

70:07trying to teach the public.

70:09- Right.

70:10- But here's a tough question.

70:13Don't you think the same thing

70:18is scientists in industry and research

70:22are taking advantage of the same misunderstanding

70:24in the public when they create AI companies

70:27or publish stuff?

70:29- Some companies, yes.

70:31I mean, there is no sense of,

70:33there's no desire to delude.

70:34There's no desire to kind of overclaim

70:37what something is done.

70:38Right, you publish a paper on AI

70:39that has this result on ImageNet,

70:42it's pretty clear.

70:43I mean, it's not even interesting anymore,

70:44but I don't think there is that.

70:47I mean, the reviewers are generally not very forgiving

70:52of unsupported claims of this type.

70:57And, but there are certainly quite a few startups

70:59that have had a huge amount of hype around this

71:02that I find extremely damaging

71:05and I've been calling it out when I've seen it.

71:08So yeah, but to go back to your original question,

71:10like the necessity of embodiment.

71:13I think, I don't think embodiment is necessary.

71:15I think grounding is necessary.

71:17So I don't think we're gonna get machines

71:18that really understand language

71:20without some level of grounding in the real world.

71:22And it's not clear to me that language

71:24is a high enough bandwidth medium

71:26to communicate how the real world works.

71:28I think for this--

71:30- Can you talk to ground, what grounding means?

71:32- So grounding means that,

71:34so there is this classic problem of common sense reasoning,

71:37you know, the Winograd schema, right?

71:41And so I tell you the trophy doesn't fit in a suitcase

71:44because it's too big,

71:46or the trophy doesn't fit in a suitcase

71:47because it's too small.

71:49And the it in the first case refers to the trophy

71:51in the second case to the suitcase.

71:53And the reason you can figure this out

71:55is because you know what the trophy and the suitcase are,

71:57you know, one is supposed to fit in the other one,

71:58and you know the notion of size

72:00and the big object doesn't fit in a small object

72:03unless it's a TARDIS, you know, things like that, right?

72:05So you have this knowledge of how the world works,

72:08of geometry and things like that.

72:10I don't believe you can learn everything about the world

72:14by just being told in language how the world works.

72:18I think you need some low-level perception of the world,

72:21you know, be it visual touch, you know, whatever,

72:23but some higher bandwidth perception of the world.

72:26- So by reading all the world's text,

72:28you still may not have enough information.

72:31- That's right.

72:32There's a lot of things that just will never appear in text

72:35and that you can't really infer.

72:37So I think common sense will emerge from, you know,

72:41certainly a lot of language interaction,

72:43but also with watching videos

72:45or perhaps even interacting in virtual environments

72:48and possibly, you know, robot interacting in the real world.

72:51But I don't actually believe necessarily

72:53that this last one is absolutely necessary,

72:55but I think there's a need for some grounding.

73:00- But the final product doesn't necessarily

73:03need to be embodied, you're saying.

73:04It just needs to have an awareness, a grounding.

73:07- Right, but it needs to know how the world works

73:10to have, you know, to not be frustrating to talk to.

73:14- And you talked about emotions being important.

73:19That's a whole nother topic.

73:21- Well, so, you know, I talked about this,

73:24the basal ganglia as the, you know,

73:29the thing that calculates your level of miscontentment,

73:32and then there is this other module

73:34that sort of tries to do a prediction

73:36of whether you're gonna be content or not.

73:38That's the source of some emotion.

73:40So fear, for example, is an anticipation

73:43of bad things that can happen to you, right?

73:46You have this inkling that there is some chance

73:49that something really bad is gonna happen to you,

73:50and that creates fear.

73:52When you know for sure that something bad

73:53is gonna happen to you, you kind of give up, right?

73:55It's not there anymore.

73:57It's uncertainty that creates fear.

74:00- So the punchline is, we're not gonna have

74:01autonomous intelligence without emotions.

74:03- Whatever the heck emotions are.

74:08So you mentioned very practical things of fear,

74:11but there's a lot of other mess around it.

74:13- But they are kind of the results of, you know, drives.

74:16- Yeah, there's deeper biological stuff going on,

74:19and I've talked to a few folks on this.

74:21There's fascinating stuff that ultimately

74:23connects to our brain.

74:27If we create an AGI system, sorry.

74:30- Human level intelligence.

74:31- Human level intelligence system,

74:33and you get to ask her one question,

74:37what would that question be?

74:38- You know, I think the first one we'll create

74:42will probably not be that smart.

74:45They'd be like a four year old.

74:47- So you would have to ask her a question

74:49to know she's not that smart?

74:51- Yeah.

74:53- Well, what's a good question to ask, you know,

74:56to be impressed? - What is the cause of wind?

74:58And if she answers, oh, it's because the leaves

75:03of the tree are moving and that creates wind,

75:06she's onto something.

75:07- And if she says that's a stupid question,

75:11she's really onto something.

75:12- No, and then you tell her, actually, you know,

75:15here is the real thing, and she says,

75:18oh, yeah, that makes sense.

75:20- So questions that reveal the ability

75:24to do common sense reasoning about the physical world.

75:26- Yeah, and you'll sum it up with a causal inference.

75:30- Causal inference.

75:31Well, it was a huge honor.

75:33Congratulations on the Turing Award.

75:35Thank you so much for talking today.

75:37- Thank you. - Appreciate it.

75:38(upbeat music)

§10Transcript · 1:15:41–1:15:51

75:41(upbeat music)

75:43(upbeat music)

75:46(upbeat music)

75:49(upbeat music)

75:51(upbeat music)

— 读到这里,多懂一点。 —