← Lex Fridman

Andrew Ng: Deep Learning, Education, and Real-World AI

第73期2020-02-20English

嘉宾:Andrew Ng

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

精读待补充

下载功能还未开放

§01Transcript · 00:00–08:13

00:00The following is a conversation with Andrew Ng,

00:03one of the most impactful educators, researchers,

00:06innovators, and leaders in artificial intelligence

00:09and technology space in general.

00:11He co-founded Coursera and Google Brain,

00:15launched Deep Learning AI, Landing AI, and the AI Fund,

00:19and was the chief scientist at Baidu.

00:23As a Stanford professor and with Coursera

00:25and Deep Learning AI, he has helped educate

00:28and inspire millions of students, including me.

00:32This is the Artificial Intelligence Podcast.

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

00:38get five stars on Apple Podcasts,

00:40support it on Patreon, or simply connect with me on Twitter

00:43at Lex Friedman, spelled F-R-I-D-M-A-N.

00:48As usual, I'll do one or two minutes of ads now,

00:51and never any ads in the middle

00:52that can break the flow of the conversation.

00:54I hope that works for you

00:56and doesn't hurt the listening experience.

00:59This show is presented by Cash App,

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

01:03When you get it, use code LEXPODCAST.

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

01:09buy Bitcoin, and invest in the stock market

01:11with as little as $1.

01:13Brokerage services are provided by Cash App Investing,

01:16a subsidiary of Square, and member SIPC.

01:20Since Cash App allows you to buy Bitcoin,

01:23let me mention that cryptocurrency,

01:25in the context of the history of money, is fascinating.

01:28I recommend "A Scent of Money"

01:31as a great book on this history.

01:33Debits and credits on ledgers started over 30,000 years ago.

01:38The US dollar was created over 200 years ago,

01:42and Bitcoin, the first decentralized cryptocurrency,

01:45released just over 10 years ago.

01:48So given that history, cryptocurrency's still very much

01:51in its early days of development,

01:53but it's still aiming to, and just might,

01:56redefine the nature of money.

01:59So again, if you get Cash App

02:01from the App Store or Google Play,

02:03and use the code LEXPODCAST, you'll get $10,

02:07and Cash App will also donate $10 to FIRST,

02:10one of my favorite organizations

02:12that is helping to advance robotics and STEM education

02:15for young people around the world.

02:17And now, here's my conversation with Andrew Ng.

02:23The courses you taught on machine learning at Stanford,

02:25and later on Coursera that you co-founded,

02:29have educated and inspired millions of people.

02:31So let me ask you, what people or ideas inspired you

02:35to get into computer science and machine learning

02:37when you were young?

02:38When did you first fall in love with the field,

02:41is another way to put it?

02:42- Growing up in Hong Kong and Singapore,

02:45I started learning to code when I was five or six years old.

02:50At that time, I was learning the basic programming language,

02:53and I would take these books and they'll tell you,

02:56type this program into your computer.

02:57So type that program to my computer.

03:00And as a result of all that typing,

03:02I would get to play these very simple,

03:04shoot them up games that I had implemented

03:07on my little computer.

03:09So I thought it was fascinating as a young kid

03:13that I could write this code,

03:15that was really just copying code from a book

03:17into my computer to then play these cool little video games.

03:21Another moment for me was when I was a teenager

03:25and my father, 'cause he's a doctor,

03:27was reading about expert systems and about neural networks.

03:31So he got me to read some of these books

03:32and I thought it was really cool

03:34that you could write a computer

03:36that started to exhibit intelligence.

03:39Then I remember doing an internship

03:41while I was in high school, this was in Singapore,

03:44where I remember doing a lot of photocopying

03:47and I was an office assistant.

03:50And the highlight of my job

03:51was when I got to use the Shredder.

03:53So the teenager in me remember thinking,

03:55boy, this is a lot of photocopying.

03:57If only we could write software, build a robot,

03:59something to automate this,

04:01maybe I could do something else.

04:03So I think a lot of my work since then

04:05has centered on the theme of automation.

04:07Even the way I think about machine learning today,

04:10we're very good at writing learning algorithms

04:12that can automate things that people can do.

04:15Or even launching the first MOOCs,

04:16Mass Open Online Courses, that later led to Coursera,

04:20I was trying to automate what could be automatable

04:23in how I was teaching on campus.

04:25- Process of education,

04:26try to automate parts of that to make it more,

04:30sort of to have more impact from a single teacher,

04:33a single educator.

04:34- Yeah, I felt, teaching at Stanford,

04:37I was teaching machine learning

04:39to about 400 students a year at the time.

04:41And I found myself filming the exact same video every year,

04:46telling the same jokes in the same room.

04:48And I thought, why am I doing this?

04:50Why don't we just take last year's video

04:51and then I can spend my time

04:53building a deeper relationship with students.

04:55So that process of thinking through how to do that,

04:58that led to the first MOOCs that we launched.

05:00- And then you have more time to write new jokes.

05:05Are there favorite memories from your early days

05:07at Stanford teaching thousands of people in person

05:10and then millions of people online?

05:13- You know, teaching online,

05:17what not many people know was that

05:20a lot of those videos were shot

05:22between the hours of 10 PM and 3 AM.

05:26A lot of times, launching the first MOOCs at Stanford,

05:31we'd already announced the course,

05:32about 100,000 people had signed up.

05:34We just started to write the code

05:36and we had not yet actually filmed the videos.

05:39So we had a lot of pressure,

05:40100,000 people waiting for us to produce the content.

05:43So many Fridays, Saturdays,

05:46I would go out, have dinner with my friends,

05:49and then I would think, okay, do you want to go home now?

05:51Or do you want to go to the office to film videos?

05:54And the thought of being able to help 100,000 people

05:57potentially learn machine learning,

05:59fortunately that made me think,

06:01okay, I'm going to go to my office,

06:03go to my tiny little recording studio.

06:05I would adjust my Logic Webcam,

06:07adjust my Wacom tablet,

06:10make sure my lapel mic was on,

06:12and then I would start recording,

06:13often until 2 AM or 3 AM.

06:16I think unfortunately that doesn't show

06:18that it was recorded that late at night,

06:20but it was really inspiring,

06:22the thought that we could create content

06:25to help so many people learn about machine learning.

06:27- How did that feel?

06:29The fact that you're probably somewhat alone,

06:31maybe a couple of friends,

06:33recording with a Logitech webcam

06:36and kind of going home alone at 1 or 2 AM at night,

06:41and knowing that that's going to reach

06:43sort of thousands of people,

06:45eventually millions of people.

06:47What's that feeling like?

06:48I mean, is there a feeling of just satisfaction

06:51of pushing through?

06:54- I think it's humbling.

06:55And I wasn't thinking about what I was feeling.

06:58I think one thing that I'm proud to say

07:00we got right from the early days

07:02was I told my whole team back then

07:05that the number one priority

07:06is to do what's best for learners,

07:08do what's best for students.

07:09And so when I went to the recording studio,

07:11the only thing on my mind was,

07:13what can I say?

07:14How can I design my slides?

07:15What do I need to draw right

07:16to make these concepts as clear as possible for learners?

07:20I think, you know,

07:21I've seen sometimes instructors is tempting to,

07:24"Hey, let's talk about my work.

07:25"Maybe if I teach you about my research,

07:27"someone will cite my papers a couple more times."

07:30And I think one of the things we got right

07:31launched the first few MOOCs,

07:33and later building Coursera

07:34was putting in place that bedrock principle

07:37of let's just do what's best for learners

07:38and forget about everything else.

07:40And I think that that as a guiding principle

07:43turned out to be really important

07:44to the rise of the MOOC movement.

07:46- And the kind of learner you imagined in your mind

07:49is as broad as possible,

07:52as global as possible.

07:53So really try to reach as many people

07:56interested in machine learning and AI as possible.

07:59- I really want to help anyone

08:01that had an interest in machine learning

08:03to break into the field.

08:04And I think sometimes,

08:07I've actually had people ask me,

08:08"Hey, why are you spending so much time

08:09"explaining gradient descent?"

08:11And my answer was,

08:13"If I look at what I think the learner needs

§02Transcript · 08:15–16:03

08:15"and what benefit from,

08:16"I felt that having that,

08:18"a good understanding of the foundations,

08:20"kind of back to the basics,

08:21"would put them in a better state

08:23"to then build on a long-term career."

08:26So we've tried to consistently make decisions

08:29on that principle.

08:30- So one of the things you actually revealed

08:32to the narrow AI community at the time

08:36and to the world,

08:38is that the amount of people

08:39who are actually interested in AI

08:41is much larger than we imagined.

08:43By you teaching the class

08:44and how popular it became,

08:47it showed that,

08:48wow, this isn't just a small community

08:50of sort of people who go to NeurIPS

08:54and it's much bigger.

08:56It's developers,

08:57it's people from all over the world.

08:59I mean, I'm Russian,

09:00so everybody in Russia is really interested.

09:03There's a huge number of programmers

09:04who are interested in machine learning.

09:06India, China, South America, everywhere.

09:10There's just millions of people

09:12who are interested in machine learning.

09:13So how big do you get a sense

09:15that the number of people is

09:17that are interested from your perspective?

09:20- I think the number's grown over time.

09:22I think it's one of those things

09:23that maybe it feels like it came out of nowhere,

09:26but there's an inside that building it.

09:27It took years.

09:28It's not those overnight successes

09:30that took years to get there.

09:33My first foray into this type of online education

09:36was when we were filming my Stanford class

09:37and sticking the videos on YouTube

09:39and then some other things.

09:40We had uploaded the whole works and so on,

09:42but it's basically the one hour,

09:4415 minute video that we put on YouTube.

09:46And then we had four or five other versions

09:50of websites that I had built,

09:52most of which you would never have heard of

09:53because they reached small audiences,

09:55but that allowed me to iterate,

09:57allowed my team and me to iterate,

09:59to learn what the ideas that work and what doesn't.

10:02For example, one of the features

10:03I was really excited about and really proud of

10:05was build this website where multiple people

10:08could be logged into the website at the same time.

10:11So today, if you go to a website,

10:13if you're logged in and then I want to log in,

10:15you need to log out if it's the same browser,

10:17same computer.

10:18But I thought, well, what if two people,

10:20say you and me were watching a video together

10:23in front of a computer?

10:24What if a website could have you type your name

10:27and password, have me type my name and password?

10:29And then now the computer knows

10:30both of us are watching together

10:31and it gives both of us credit

10:33for anything we do as a group.

10:35Influences feature rolled it out

10:37in a school in San Francisco.

10:39We had about 20 something users.

10:41Where's the teacher there?

10:44Sacred Heart Cathedral Prep, the teacher was great.

10:46I mean, guess what?

10:47Zero people use this feature.

10:49It turns out people studying online,

10:51they want to watch the videos by themselves.

10:54So you can play back, pause at your own speed

10:56rather than in groups.

10:57So that was one example of a tiny lesson learned

11:00out of many that allows us to hone in

11:03to the set of features.

11:04- And it sounds like a brilliant feature.

11:06So I guess the lesson to take from that is

11:09there's something that looks amazing on paper

11:13and then nobody uses it.

11:15It doesn't actually have the impact

11:17that you think it might have.

11:18I say, yeah, I saw that you've really went

11:20through a lot of different features and a lot of ideas

11:23and to arrive at the final,

11:24at Coursera's final kind of powerful thing

11:27that showed the world that MOOCs can educate millions.

11:32- And I think with the whole machine learning movement

11:34as well, I think it didn't come out of nowhere.

11:38Instead, what happened was as more people learn

11:41about machine learning, they will tell their friends

11:43and their friends will see how it's applicable

11:44to their work.

11:46And then the community kept on growing.

11:48And I think we're still growing.

11:50I don't know in the future what percentage

11:53of our developers will be AI developers.

11:56I could easily see it being north of 50%, right?

11:59Because so many AI developers broadly construed,

12:04not just people doing the machine learning modeling,

12:06but the people building infrastructure, data pipelines,

12:09you know, all the software's surrounding

12:11the core machine learning model.

12:13Maybe it's even bigger.

12:15I feel like today, almost every software engineer

12:18has some understanding of the cloud.

12:20Not all, you know, but maybe it's just

12:22my microcontroller developer doesn't need to deal with cloud.

12:25But I feel like the vast majority of software engineers today

12:28are sort of having an appreciation of the cloud.

12:31I think in the future, maybe we'll approach nearly 100%

12:35of all developers being, you know, in some way,

12:38an AI developer, at least having an appreciation

12:40of machine learning.

12:41- And my hope is that there's this kind of effect

12:45that there's people who are not really interested

12:47in being a programmer or being into software engineering,

12:50like biologists, chemists, and physicists,

12:54even mechanical engineers, all these disciplines

12:57that are now more and more sitting on large datasets.

13:01And here, they didn't think they're interested

13:03in programming until they have this dataset

13:05and they realized there's this set of machine learning tools

13:07that allow you to use the dataset.

13:09So they actually become, they learn to program

13:12and they become new programmers.

13:13So like the, not just, 'cause you've mentioned

13:16a larger percentage of developers

13:17become machine learning people.

13:19The, it seems like more and more,

13:21the kinds of people who are becoming developers

13:25is also growing significantly.

13:27- Yeah, I think once upon a time,

13:29only a small part of humanity was literate,

13:32you know, could read and write.

13:33And maybe you thought, maybe not everyone needs

13:36to learn to read and write.

13:37You know, you just go listen to a few monks, right?

13:42Read to you, and maybe that was enough.

13:44Or maybe we just need a few handful of authors

13:46to write the best sellers,

13:47and then no one else needs to write.

13:50But what we found was that by giving as many people,

13:53you know, in some countries, almost everyone,

13:55basic literacy, it dramatically enhanced

13:58human to human communications.

13:59And we can now write for an audience of one,

14:01such as if I send you an email or you send me an email.

14:04I think in computing, we're still in that phase

14:07where so few people know how to code

14:09that the coders mostly have to code

14:12for relatively large audiences.

14:14But if everyone, or most people,

14:17became developers at some level,

14:20similar to how most people in developed economies

14:22are somewhat literate,

14:24I would love to see the owners of a mom and pop store

14:27be able to write a little bit of code

14:29to customize the TV display for their special this week.

14:32And I think it'll enhance human to computer communications,

14:36which is becoming more and more important in today's world.

14:38- So you think it's possible that machine learning

14:41becomes kind of similar to literacy where,

14:45yeah, like you said, the owners of a mom and pop shop,

14:49is basically everybody in all walks of life

14:52would have some degree of programming capability?

14:55- I could see society getting there.

14:58There's one other interesting thing, you know,

15:00if I go talk to the mom and pop store,

15:02if I talk to a lot of people in their daily professions,

15:05I previously didn't have a good story

15:07for why they should learn to code.

15:09You know, we could give them some reasons.

15:11But what I found with the rise of machine learning

15:13and data science is that I think the number of people

15:15with a concrete use for data science in their daily lives,

15:19in their jobs, may be even larger than the number of people

15:22with a concrete use for software engineering.

15:25For example, actually, if you run a small mom and pop store,

15:28I think if you can analyze the data about your sales,

15:30your customers, I think there's actually real value there,

15:34maybe even more than traditional software engineering.

15:37So I find that for a lot of my friends

15:39in various professions, be it recruiters or accountants

15:42or, you know, people that work in the factories,

15:45which I deal with more and more these days,

15:47I feel if they were data scientists at some level,

15:51they could immediately use that in their work.

15:54So I think that data science and machine learning

15:56may be an even easier entree into the developer world

16:00for a lot of people than the software engineering.

16:03- That's interesting.

§03Transcript · 16:04–24:52

16:04And I agree with that, but that's beautifully put.

16:07We live in a world where most courses and talks have slides,

16:11PowerPoint, keynote, and yet you famously

16:14often still use a marker and a whiteboard.

16:17The simplicity of that is compelling,

16:19and for me, at least, fun to watch.

16:22So let me ask, why do you like using a marker and whiteboard

16:25even on the biggest of stages?

16:27- I think it depends on the concepts you want to explain.

16:32For mathematical concepts, it's nice to build up

16:34the equation one piece at a time.

16:37And the whiteboard marker or the pen and stylus

16:41is a very easy way to build up the equation,

16:43build up a complex concept one piece at a time

16:47while you're talking about it.

16:48And sometimes that enhances understandability.

16:51The downside of writing is that it's slow.

16:54And so if you want a long sentence,

16:56it's very hard to write that.

16:57So I think there are pros and cons.

16:58And sometimes I use slides,

17:00and sometimes I use a whiteboard or a stylus.

17:03- The slowness of a whiteboard is also its upside,

17:06'cause it forces you to reduce everything to the basics.

17:11So some of your talks involve the whiteboard.

17:14I mean, there's really not, you go very slowly,

17:17and you really focus on the most simple principles.

17:20And that's a beautiful,

17:21that enforces a kind of a minimalism of ideas

17:26that I think is, surprisingly at least for me,

17:29is great for education.

17:31Like a great talk, I think,

17:34is not one that has a lot of content.

17:37A great talk is one that just clearly says

17:40a few simple ideas.

17:41And I think you,

17:42the whiteboard somehow enforces that.

17:46Peter Abbeel, who's now one of the top roboticists

17:49and reinforcement learning experts in the world,

17:51was your first PhD student.

17:53So I bring him up just because I kind of imagine

17:56this must have been an interesting time in your life.

18:02Do you have any favorite memories of working with Peter,

18:04since you're your first student in those uncertain times,

18:08especially before deep learning really sort of blew up?

18:13Any favorite memories from those times?

18:17- Yeah, I was really fortunate to have had Peter Abbeel

18:20as my first PhD student.

18:22And I think even my long-term professional success

18:25builds on early foundations or early work

18:27that Peter was so critical to.

18:29So I was really grateful to him for working with me.

18:33What not a lot of people know

18:36is just how hard research was and still is.

18:41Peter's PhD thesis was using reinforcement learning

18:44to fly helicopters.

18:47And so, actually even today,

18:49the website heli.stanford.edu,

18:51H-E-L-I.stanford.edu is still up.

18:53You can watch videos of us using reinforcement learning

18:56to make a helicopter fly upside down,

18:58fly loose, so it's cool.

19:00- It's one of the most incredible robotics videos ever.

19:02So people should watch it.

19:03- Oh yeah, thank you. - It's inspiring.

19:05That's from like 2008 or seven or six, like that range.

19:10- Something like that, yeah, so we're 10 years old.

19:13- That was really inspiring to a lot of people, yeah.

19:15- What not many people see is how hard it was.

19:18So Peter and Adam Coates and Morgan Quigley and I

19:22were working on various versions of the helicopter,

19:25and a lot of things did not work.

19:27For example, turns out one of the hardest problems we had

19:29was when the helicopter is flying around upside down,

19:32doing stunts, how do you figure out the position?

19:34How do you localize a helicopter?

19:36So we wanted to try all sorts of things.

19:38Having one GPS unit doesn't work

19:41'cause you're flying upside down,

19:42GPS unit is facing down, so you can't see the satellites.

19:44So we experimented trying to have two GPS units,

19:48one facing up, one facing down.

19:49So if you flip over, that didn't work

19:51'cause the downward facing one couldn't synchronize

19:54if you're flipping quickly.

19:56Morgan Quigley was exploring this crazy,

19:59complicated configuration of specialized hardware

20:02to interpret GPS signals.

20:04A look into FPG is completely insane.

20:06Spent about a year working on that, didn't work.

20:10So I remember Peter, great guy, him and me,

20:14sitting down in my office,

20:15looking at some of the latest things we had tried

20:18that didn't work and saying, "Done it, what now?"

20:23Because we tried so many things and it just didn't work.

20:26In the end, what we did, and Adam Coates was crucial to this,

20:32was put cameras on the ground

20:34and use cameras on the ground to localize the helicopter.

20:36And that solved the localization problem

20:39so that we could then focus on the reinforcement learning

20:42and inverse reinforcement learning techniques

20:44so it didn't actually make the helicopter fly.

20:46And I'm reminded, when I was doing this work at Stanford,

20:51around that time, there was a lot of reinforcement learning

20:55theoretical papers, but not a lot of practical applications.

20:59So the autonomous helicopter work for flying helicopters

21:03was one of the few practical applications

21:06of reinforcement learning at the time,

21:08which caused it to become pretty well-known.

21:11I feel like we might've almost come full circle with today.

21:14There's so much buzz, so much hype, so much excitement

21:17about reinforcement learning.

21:19But again, we're hunting for more applications

21:21of all of these great ideas

21:23that the communities come up with.

21:24- What was the drive, sort of in the face of the fact

21:28that most people are doing theoretical work,

21:30what motivate you in the uncertainty and the challenges

21:33to get the helicopter, sort of to do the applied work,

21:36to get the actual system to work?

21:38Yeah, in the face of fear, uncertainty,

21:41sort of the setbacks that you mentioned for localization.

21:46- I like stuff that works.

21:48- In the physical world.

21:48So like, it's back to the shredder.

21:51- You know, I like theory,

21:55but when I work on theory myself, and this is personal taste,

21:58I'm not saying anyone else should do what I do,

22:00but when I work on theory, I personally enjoy it more

22:04if I feel that the work I do will influence people,

22:08have positive impact, or help someone.

22:10I remember when, many years ago,

22:14I was speaking with a mathematics professor,

22:17and it kind of just said, "Hey, why do you do what you do?"

22:21And then he said, he actually,

22:23he had stars in his eyes when he answered,

22:25and this mathematician,

22:27not from Stanford, different university,

22:29he said, "I do what I do because it helps me

22:32to discover truth and beauty in the universe."

22:36He had stars in his eyes when he said that.

22:38And I thought, that's great.

22:39I don't want to do that.

22:42I think it's great that someone does that,

22:44fully support the people that do it,

22:45a lot of respect for people that do that,

22:47but I am more motivated when I can see a line

22:50to how the work that my teams and I are doing helps people.

22:55The world needs all sorts of people.

22:58I'm just one type.

22:59I don't think everyone should do things

23:01the same way as I do,

23:02but when I delve into either theory or practice,

23:06if I personally have conviction

23:08that here's a pathway to help people,

23:10I find that more satisfying.

23:14To have that conviction.

23:15- That's your path.

23:17You were a proponent of deep learning

23:20before it gained widespread acceptance.

23:23What did you see in this field that gave you confidence?

23:25What was your thinking process like

23:27in that first decade of the,

23:29I don't know what that's called,

23:312000s, the aughts?

23:33- Yeah, I can tell you the thing we got wrong

23:35and the thing we got right.

23:36The thing we really got wrong was the importance of,

23:39the early importance of unsupervised learning.

23:43So early days of Google Brain,

23:46we put a lot of effort into unsupervised learning

23:48rather than supervised learning.

23:50And there was this argument,

23:51I think it was around 2005 after NeurIPS,

23:56at that time called NIPS,

23:57but now NeurIPS had ended.

23:58And Geoff Hinton and I were sitting in the cafeteria

24:01outside the conference,

24:03we had lunch, we were just chatting.

24:04And Geoff pulled out this napkin,

24:06he started sketching this argument on a napkin.

24:08It was very compelling, I'll repeat it.

24:11Human brain has about a hundred trillion,

24:14so there's 10 to the 14 synaptic connections.

24:16You will live for about 10 to the nine seconds.

24:21That's 30 years.

24:22You actually live for two by 10 to the nine,

24:24maybe three by 10 to the nine seconds.

24:25So just let's say 10 to the nine.

24:27So if each synaptic connection,

24:30each weight in your brain's neural network

24:32has just a one bit parameter,

24:35that's 10 to the 14 bits you need to learn

24:37in up to 10 to the nine seconds of your life.

24:41So via this simple argument,

24:43which is a lot of problems, it's very simplified,

24:46that's 10 to the five bits per second

24:47you need to learn in your life.

24:49And I have a one-year-old daughter,

24:52I am not pointing out 10 to five bits per second

§04Transcript · 24:56–33:10

24:56of labels to her.

24:58So, and I think I'm a very loving parent,

25:02but I'm just not gonna do that.

25:03So from this, you know, very crude,

25:07definitely problematic argument.

25:08There's just no way that most of what we know

25:11is through supervised learning.

25:13But where you get so many bits of information

25:15is from sucking in images, audio,

25:16just experiences in the world.

25:18And so that argument,

25:21and there are a lot of known forces argument,

25:23you know, we should go into,

25:24really convinced me that there's a lot of power

25:26to unsupervised learning.

25:28So that was the part that we actually maybe got wrong.

25:32I still think unsupervised learning is really important,

25:34but in the early days, you know, 10, 15 years ago,

25:38a lot of us thought that was the path forward.

25:41- Oh, so you're saying that that perhaps

25:43was the wrong intuition for the time.

25:45- For the time, that was the part we got wrong.

25:48The part we got right was the importance of scale.

25:51So Adam Coates, another wonderful person,

25:55fortunate to have worked with him,

25:58he was in my group at Stanford at the time,

26:00and Adam had run these experiments at Stanford

26:02showing that the bigger we train a learning algorithm,

26:06the better its performance.

26:07And it was based on that,

26:10there was a graph that Adam generated, you know,

26:12where the X-axis, Y-axis lines going up into the right.

26:15So the bigger you make this thing,

26:17the better its performance, accuracy is the vertical axis.

26:20So it was really based on that chart that Adam generated

26:22that he gave me the conviction

26:23that we could scale these models way bigger

26:26than what we could on a few CPUs,

26:27which is what we had at Stanford,

26:29that we could get even better results.

26:31And it was really based on that one figure

26:33that Adam generated that gave me the conviction

26:37to go with Sebastian Thrun to pitch, you know,

26:40starting a project at Google,

26:42which became the Google Brain Project.

26:44- Google Brain, you go find Google Brain.

26:45And there the intuition was scale

26:49will bring performance for the system,

26:52so we should chase a larger and larger scale.

26:55And I think people don't realize how groundbreaking of it,

27:00it's simple, but it's a groundbreaking idea

27:02that bigger datasets will result in better performance.

27:06- It was controversial at the time.

27:08Some of my well-meaning friends,

27:10you know, senior people in the machine learning community,

27:11I won't name, but who's people,

27:13some of whom we know,

27:16my well-meaning friends came

27:17and were trying to give me friendly advice,

27:19like, "Hey, Andrew, why are you doing this?

27:20This is crazy.

27:21It's in the near natural architecture.

27:23Look at these architectures of building.

27:24You just want to go for scale?

27:26Like, this is a bad career move."

27:27So my well-meaning friends, you know,

27:29some of them were trying to talk me out of it.

27:32But I find that if you want to make a breakthrough,

27:36you sometimes have to have conviction

27:38and do something before it's popular,

27:41since that lets you have a bigger impact.

27:43- Let me ask you just in a small tangent on that topic.

27:46I find myself arguing with people saying that greater scale,

27:51especially in the context of active learning,

27:53so very carefully selecting the dataset,

27:56but growing the scale of the dataset,

27:59is going to lead to even further breakthroughs

28:01in deep learning.

28:02And there's currently pushback at that idea,

28:05that larger datasets are no longer...

28:09So you want to increase the efficiency of learning.

28:11You want to make better learning mechanisms.

28:14And I personally believe that just bigger datasets

28:16will still, with the same learning methods we have now,

28:20will result in better performance.

28:21What's your intuition at this time on this dual side?

28:27Is do we need to come up with better architectures

28:30for learning, or can we just get bigger, better datasets

28:35that will improve performance?

28:37- I think both are important.

28:39And it's also problem dependent.

28:40So for a few datasets, we may be approaching

28:44your Bayes error rate, or approaching or surpassing

28:47human level performance.

28:49And then there's that theoretical ceiling

28:51that we will never surpass a Bayes error rate.

28:53But then I think there are plenty of problems

28:56where we're still quite far from either

28:58human level performance or from Bayes error rate.

29:00And bigger datasets with new networks,

29:05without further algorithmic innovation,

29:07will be sufficient to take us further.

29:09But on the flip side, if we look at the recent breakthroughs

29:12using transforming networks or language models,

29:15it was a combination of novel architecture,

29:18but also scale had a lot to do with it.

29:20If we look at what happened with GP2 and BERT,

29:23I think scale was a large part of the story.

29:26- Yeah, that's not often talked about,

29:28is the scale of the dataset it was trained on

29:31and the quality of the dataset,

29:32because there's some, so it was like redded threads

29:37that had, they were uprated highly.

29:39So there's already some weak supervision

29:42on a very large dataset

29:44that people don't often talk about, right?

29:47- I find that today we have maturing processes

29:50and managing code, things like Git, right?

29:53Version control.

29:54It took a long time to evolve the good processes.

29:57I remember when my friends and I were emailing

30:00each other C++ files in email,

30:02but then we had, was it CVS or version Git?

30:05Maybe something else in the future.

30:07We're very immature in terms of tools for managing data

30:10and think about the clean data

30:12and how to solve the very hot, messy data problems.

30:15I think there's a lot of innovation there to be had still.

30:18I love the idea that you were versioning through email.

30:22- I'll give you one example.

30:23When we work with manufacturing companies,

30:28it's not at all uncommon for there to be multiple labelers

30:34that disagree with each other, right?

30:36And so we would, doing the work in visual inspection,

30:40we will take, say a plastic pot and show it to one inspector

30:44and the inspector, sometimes very opinionated,

30:47they'll go, "Clearly that's a defect.

30:48This scratch, unacceptable.

30:49Gotta reject this pot."

30:51Take the same pot to different inspector,

30:53different, very opinionated,

30:54"Clearly the scratch is small.

30:56It's fine. Don't throw it away.

30:57You're going to make us use."

30:59And then sometimes you take the same plastic pot,

31:01show it to the same inspector in the afternoon,

31:04as opposed to in the morning,

31:05and very opinionated go in the morning,

31:07they say, "Clearly this is okay."

31:08In the afternoon, equally confident,

31:10"Clearly this is a defect."

31:12And so what is an AI team supposed to do

31:14if sometimes even one person

31:16doesn't agree with himself or herself in the span of a day?

31:20So I think these are the types of very practical,

31:23very messy data problems that my teams wrestle with.

31:28In the case of large consumer internet companies,

31:32where you have a billion users, you have a lot of data,

31:35you don't worry about it.

31:36Just take the average, it kind of works.

31:38But in a case of other industry settings,

31:40we don't have big data.

31:42If you have just a small data, very small data sets,

31:44maybe you have a hundred defective parts,

31:47or a hundred examples of a defect.

31:49If you have only a hundred examples,

31:51these little labeling errors,

31:53if 10 of your hundred labels are wrong,

31:55that actually is 10% of your data set has a big impact.

31:58So how do you clean this up?

31:59What are you supposed to do?

32:01This is an example of the types of things that my teams,

32:05this is a landing AI example,

32:06are wrestling with to deal with small data,

32:09which comes up all the time

32:10once you're outside consumer internet.

32:12- Yeah, that's fascinating.

32:13So then you invest more effort and time

32:15in thinking about the actual labeling process.

32:18What are the labels?

32:19What are the, how are disagreements resolved

32:22and all those kinds of like pragmatic real world problems.

32:25That's a fascinating space.

32:27- Yeah, I find that actually when I'm teaching at Stanford,

32:29I increasingly encourage students at Stanford

32:32to try to find their own project for the end of term project

32:37rather than just downloading someone else's

32:40nicely clean data set.

32:42It's actually much harder if you need to go

32:43and define your own problem and find your own data set

32:45rather than go to one of the several good websites,

32:48very good websites with clean scoped data sets

32:52that you could just work on.

32:54- You're now running three efforts,

32:57the AI Fund, Landing AI, and DeepLearning.ai.

33:02As you've said, the AI Fund is involved

33:04in creating new companies from scratch.

33:06Landing AI is involved in helping

33:08already established companies do AI

33:10and DeepLearning.ai is for education of everyone else

§05Transcript · 33:14–40:53

33:14or of individuals interested of getting into the field

33:18and excelling in it.

33:19So let's perhaps talk about each of these areas.

33:22First, DeepLearning.ai, how, the basic question,

33:27how does a person interested in deep learning

33:30get started in the field?

33:31- DeepLearning.ai is working to create causes

33:35to help people break into AI.

33:37So my machine learning course that I taught

33:41through Stanford remains one of the most popular causes

33:44on Coursera.

33:45- To this day, it's probably one of the courses,

33:48sort of, if I ask somebody,

33:49how did you get into machine learning

33:52or how did you fall in love with machine learning

33:54or what gets you interested,

33:55it always goes back to Andrew Yang at some point.

33:59The amount of people you've influenced is ridiculous.

34:03So for that, I'm sure I speak for a lot of people

34:05say big thank you.

34:07- No, yeah, thank you.

34:08You know, I was once reading a news article,

34:12I think it was tech review

34:15and I'm gonna mess up the statistic,

34:17but I remember reading an article that said

34:20something like one third of our programmers are self-taught.

34:23I may have the number one third wrong,

34:25it was two thirds.

34:25But when I read that article, I thought,

34:27this doesn't make sense.

34:28Everyone is self-taught.

34:29So, 'cause you teach yourself, I don't teach people.

34:32I just- - That's well put.

34:34So yeah, so how does one get started in deep learning

34:38and where does deeplearning.ai fit into that?

34:40- So the deep learning specialization

34:42offered by deep learning.ai is,

34:44I think it was Coursera's top specialization,

34:50it might still be.

34:50So it's a very popular way for people

34:52to take that specialization,

34:54to learn about everything from neural networks

34:57to how to tune in your network.

35:00So what does a conf net do?

35:01What is a RNN or a sequence model

35:04or what is an attention model?

35:05And so the deep learning specialization

35:08steps everyone through those algorithms.

35:11So you deeply understand it and can implement it

35:13and use it for whatever application.

35:15- From the very beginning?

35:16So what would you say are the prerequisites

35:19for somebody to take the deep learning specialization

35:22in terms of maybe math or programming background?

35:25- Yeah, need to understand basic programming

35:28since there are pro exercises in Python.

35:31And the math prereq is quite basic.

35:34So no calculus is needed.

35:35If you know calculus is great, you get better intuitions,

35:38but deliberately try to teach that specialization

35:41without requiring calculus.

35:42So I think high school math would be sufficient.

35:47If you know how to multiply two matrices,

35:49I think that's great.

35:52- So a little basic linear algebra is great.

35:54- Basic linear algebra,

35:56even very, very basic linear algebra in some programming.

36:00I think that people that have done

36:01the machine learning course

36:02will find the deep learning specialization a bit easier,

36:05but it's also possible to jump

36:06into the deep learning specialization directly,

36:08but it'll be a little bit harder

36:10since we tend to go over faster concepts

36:14like how does gradient descent work

36:16and what is the objective function,

36:17which is covered more slowly in the machine learning course.

36:20- Could you briefly mention some of the key concepts

36:22in deep learning that students should learn

36:25that you envision them learning in the first few months,

36:27in the first year or so?

36:29- So if you take the deep learning specialization,

36:31you learn the foundations of what is a neural network,

36:34how do you build up a neural network

36:36from a single logistic unit,

36:38to a stack of layers,

36:40to different activation functions.

36:43You learn how to train the neural networks.

36:44One thing I'm very proud of in that specialization

36:47is we go through a lot of practical know-how

36:50of how to actually make these things work.

36:52So what are the differences

36:53between different optimization algorithms?

36:55What do you do if the algorithm overfits?

36:57So how do you tell if the algorithm is overfitting?

36:59When do you collect more data?

37:00When should you not bother to collect more data?

37:03I find that even today, unfortunately,

37:06there are engineers that will spend six months

37:10trying to pursue a particular direction,

37:12such as collect more data,

37:13because we heard more data is valuable.

37:15But sometimes you could run some tests

37:18and could have figured out six months earlier

37:20that for this particular problem,

37:22collecting more data isn't going to cut it.

37:23So just don't spend six months collecting more data,

37:26spend your time modifying the architecture

37:29or trying something else.

37:30So go through a lot of the practical know-how

37:32so that when someone,

37:35when you take the deep learning specialization,

37:37you have those skills to be very efficient

37:39in how you build these networks.

37:42- So dive right in to play with the network,

37:44to train it, to do the inference on a particular dataset,

37:47to build intuition about it

37:48without building it up too big

37:52to where you spend, like you said, six months learning,

37:55building up your big project

37:57without building any intuition of a small,

38:00a small aspect of the data that could already tell you

38:03everything you need to know about that data.

38:05- Yes, and also the systematic frameworks of thinking

38:09for how to go about building practical machine learning.

38:12Maybe to make an analogy, when we learn to code,

38:15we have to learn the syntax of some programming language,

38:17right, be it Python or C++ or Octave or whatever.

38:21But the equally important

38:23or maybe even more important part of coding

38:25is to understand how to string together

38:26these lines of code into coherent things.

38:28So, you know, when should you put something

38:31in a function call and when should you not?

38:32How do you think about abstraction?

38:34So those frameworks are what makes a programmer efficient,

38:39even more than understanding the syntax.

38:41I remember when I was an undergrad at Carnegie Mellon,

38:44one of my friends would debug their code

38:47by first trying to compile it,

38:49and then it was C++ code.

38:50And then every line that the syntax error,

38:53they want to get rid of the syntax errors

38:54as quickly as possible.

38:55So how do you do that?

38:56Well, they would delete every single line of code

38:58with a syntax error.

38:59So really efficient for getting rid of syntax errors,

39:01but horrible debugging errors.

39:02So I think, so we learn how to debug.

39:05And I think in machine learning,

39:07the way you debug a machine learning program

39:09is very different than the way you do binary search

39:12or whatever, or use a debugger,

39:14like trace through the code

39:15in the traditional software engineering.

39:17So it's an evolving discipline,

39:19but I find that the people that are really good

39:20at debugging machine learning algorithms

39:22are easily 10X, maybe 100X faster

39:26at getting something to work.

39:27So-

39:28- And the basic process of debugging is,

39:30so the bug in this case,

39:32why isn't this thing learning, improving,

39:36sort of going into the questions of overfitting

39:39and all those kinds of things.

39:40That's the logical space that the debugging is happening in

39:45with neural networks.

39:46- Yeah, often the question is, why doesn't it work yet?

39:50Or can I expect this to eventually work?

39:53And what are the things I could try?

39:54Change the architecture, more data, more regularization,

39:57different optimization algorithm,

39:59different types of data.

40:02So to answer those questions systematically,

40:04so that you don't heading down the,

40:05so you don't spend six months heading down the blind alley

40:08before someone comes and says,

40:09why did you spend six months doing this?

40:12- What concepts in deep learning

40:14do you think students struggle the most with?

40:16Or sort of is the biggest challenge for them

40:19once they get over that hill?

40:21It hooks them and it inspires them and they really get it.

40:26- Similar to learning mathematics,

40:30I think one of the challenges of deep learning

40:32is that there are a lot of concepts

40:34that build on top of each other.

40:35If you ask me what's hard about mathematics,

40:38I have a hard time pinpointing one thing.

40:41Is it addition, subtraction?

40:42Is it a carry?

40:43Is it multiplication?

40:44There's just a lot of stuff.

40:45I think one of the challenges of learning math

40:47and of learning certain technical fields

40:49is that there are a lot of concepts.

40:51And if you miss a concept,

40:53then you're kind of missing the prerequisite

§06Transcript · 40:55–49:08

40:55for something that comes later.

40:57So in the deep learning specialization,

41:01try to break down the concepts to maximize the odds

41:04of each component being understandable.

41:07So when you move on to the more advanced thing,

41:09we learn conf nets.

41:10Hopefully you have enough intuitions

41:12from the earlier sections to then understand

41:14why we structure conf nets in a certain way.

41:18And then eventually why we build RNNs on LSTMs

41:23or attention model in a certain way,

41:24building on top of the earlier concepts.

41:27Actually, I'm curious, you do a lot of teaching as well.

41:30Do you have a favorite,

41:33this is the hard concept moment in your teaching?

41:36- Well, I don't think anyone's ever turned

41:41the interview on me.

41:43Matthew, you're first.

41:44(laughing)

41:46- I think that's a really good question.

41:49Yeah, it's really hard to capture the moment

41:51when they struggle.

41:52I think you put it really eloquently.

41:53I do think there's moments that are like aha moments

41:57that really inspire people.

41:59I think for some reason, reinforcement learning,

42:03especially deep reinforcement learning

42:05is a really great way to really inspire people

42:09and get what the use of neural networks can do.

42:13Even though neural networks really are just a part

42:16of the deep RL framework,

42:18but it's a really nice way to paint the entirety

42:21of the picture of a neural network being able to learn

42:24from scratch, knowing nothing, and explore the world

42:27and pick up lessons.

42:29I find that a lot of the aha moments happen

42:32when you use deep RL to teach people about neural networks,

42:36which is counterintuitive.

42:37I find like a lot of the inspired sort of fire

42:40in people's passion, people's eyes,

42:42comes from the RL world.

42:44Do you find reinforcement learning to be a useful part

42:48of the teaching process or no?

42:50- I still teach reinforcement learning

42:53in one of my Stanford classes.

42:55And my PhD thesis was on reinforcement learning.

42:57So I currently love the field.

42:59I find that if I'm trying to teach students

43:01the most useful techniques for them to use today,

43:04I end up shrinking the amount of time

43:07I talk about reinforcement learning.

43:08It's not what's working today.

43:10Now our world changes so fast.

43:12Maybe it'll be totally different in a couple of years.

43:16But I think we need a couple more things

43:17for reinforcement learning to get there.

43:19- To actually get there, yeah.

43:20- One of my teams is looking to reinforcement learning

43:22for some robotic control tasks.

43:23So I see the applications,

43:25but if you look at it as a percentage of all of the impact

43:28of the types of things we do,

43:30is at least today, outside of playing video games

43:35in a few of the games, the scope.

43:38Actually at NeurIPS, a bunch of us were standing around

43:40saying, "Hey, what's your best example

43:42"of an actual deployed reinforcement learning application?"

43:45And among senior machine learning researchers.

43:49And again, there are some emerging ones,

43:51but there are not that many great examples.

43:55- I think you're absolutely right.

43:58The sad thing is there hasn't been a big application

44:02impact for real-world application reinforcement learning.

44:04I think its biggest impact to me has been in the toy domain,

44:09in the game domain, in the small example.

44:11That's what I mean for educational purpose.

44:13It seems to be a fun thing to explore neural networks with.

44:16But I think from your perspective,

44:19and I think that might be the best perspective,

44:21is if you're trying to educate with a simple example

44:24in order to illustrate how this can actually be grown

44:28to scale and have a real-world impact,

44:31then perhaps focusing on the fundamentals

44:33of supervised learning in the context of a simple data set,

44:38even like an MNIST data set is the right way,

44:41is the right path to take.

44:43I just, the amount of fun I've seen people have

44:46with reinforcement learning has been great,

44:48but not in the applied impact on the real-world setting.

44:52So it's a trade-off, how much impact you want to have

44:55versus how much fun you want to have.

44:57- Yeah, that's really cool.

44:58And I feel like the world actually needs all sorts.

45:01Even within machine learning,

45:02I feel like deep learning is so exciting,

45:05but the AI team shouldn't just use deep learning.

45:08I find that my teams use a portfolio of tools.

45:11And maybe that's not the exciting thing to say,

45:13but some days we use a neural net,

45:15some days we use a PCA.

45:20Actually, the other day I was sitting down with my team

45:21looking at PC residuals,

45:22trying to figure out what's going on

45:23with PC applied to a manufacturing problem.

45:25And some days we use a probabilistic graphical model,

45:28some days we use a knowledge graph,

45:29which is one of the things

45:30that has tremendous industry impact,

45:33but the amount of chatter about knowledge drafts

45:35in academia is really thin

45:37compared to the actual real-world impact.

45:39So I think reinforcement learning

45:41should be in that portfolio,

45:42and it's about balancing how much we teach

45:44all of these things.

45:45And the world should have diverse skills.

45:47It'd be sad if everyone just learned one narrow thing.

45:51- Yeah, the diverse skill

45:52help you discover the right tool for the job.

45:55What is the most beautiful, surprising,

45:57or inspiring idea in deep learning to you?

46:00Something that captivated your imagination.

46:04Is it the scale that could be,

46:07the performance that could be achieved with scale,

46:09or is there other ideas?

46:10- I think that if my only job

46:14was being an academic researcher,

46:16if an unlimited budget,

46:18and didn't have to worry about short-term impact

46:21and only focus on long-term impact,

46:23I probably spend all my time doing research

46:25on unsupervised learning.

46:27I still think unsupervised learning is a beautiful idea.

46:30At both this past NeurIPS and ICML,

46:34I was attending workshops

46:36or listening to various talks

46:37about self-supervised learning,

46:39which is one vertical segment,

46:41maybe, of sort of unsupervised learning

46:43that I'm excited about.

46:45Maybe just to summarize the idea,

46:46I guess you know the idea,

46:47but I'll describe briefly.

46:48- No, please.

46:49- So here's the example of self-supervised learning.

46:52Let's say we grab a lot of unlabeled images

46:54off the internet.

46:55We have infinite amounts of this type of data.

46:58I'm gonna take each image

46:59and rotate it by a random multiple of 90 degrees.

47:03And then I'm going to train a supervised neural network

47:06to predict what was the original orientation.

47:09So has this been rotated 90 degrees,

47:10180 degrees, 270 degrees, or zero degrees?

47:14So you can generate an infinite amounts of labeled data

47:17because you rotated the image,

47:19so you know what's the ground truth label.

47:21And so various researchers have found

47:24that by taking unlabeled data

47:26and making up labeled datasets

47:28and training a large neural network on these tasks,

47:31you can then take the hidden layer representation

47:33and transfer it to a different task very powerfully.

47:37Learning word embeddings,

47:39where we take a sentence, delete a word,

47:41predict the missing word, which is how we learn.

47:44One of the ways we learn word embeddings

47:46is another example.

47:47And I think there's now this portfolio of techniques

47:51for generating these made-up tasks.

47:53Another one called Jigsaw would be if you take an image,

47:57cut it up into a three by three grid,

47:59so like a nine, three by three puzzle piece,

48:02jump up to nine pieces and have a neural network predict

48:05which of the nine factorial possible permutations

48:08it came from.

48:09So many groups, including OpenAI,

48:13Peter Abbeel's been doing some work on this too,

48:16Facebook, Google Brain, I think DeepMind,

48:20oh, actually Aaron Van Der Oort has great work

48:23on the CPC objective.

48:24So many teams are doing exciting work

48:26and I think this is a way to generate infinite label data.

48:30And I find this a very exciting piece

48:33of unsupervised learning.

48:34- So long-term you think that's going to unlock

48:37a lot of power in machine learning systems

48:40is this kind of unsupervised learning?

48:42- I don't think there's a whole enchilada.

48:44I think it's just a piece of it.

48:45And I think this one piece, self-supervised learning

48:48is starting to get traction.

48:50We're very close to it being useful.

48:53Well, word embeddings is really useful.

48:55I think we're getting closer and closer

48:57to just having a significant real world impact

49:00maybe in computer vision and video.

49:02But I think this concept,

49:05and I think there'll be other concepts around it.

49:08Other unsupervised learning things that I worked on

§07Transcript · 49:10–57:10

49:10I've been excited about.

49:12I was really excited about sparse coding

49:14and ICA, slow feature analysis.

49:17I think all of these are ideas that various of us

49:20were working on about a decade ago

49:21before we all got distracted

49:23by how well supervised learning was doing.

49:25- Yeah.

49:26So we would return to the fundamentals

49:29of representation learning

49:30that really started this movement of deep learning.

49:33- I think there's a lot more work that one could explore

49:35around this theme of ideas and other ideas

49:38to come up with better algorithms.

49:40- So if we could return to maybe talk quickly

49:44about the specifics of deeplearning.ai,

49:46the deep learning specialization perhaps.

49:49How long does it take to complete the course,

49:51would you say?

49:52- The official length of the deep learning specialization

49:55is I think 16 weeks, so about four months,

49:59but it's go at your own pace.

50:00So if you subscribe to the deep learning specialization,

50:03there are people that finish that in less than a month

50:05by working more intensely and studying more intensely.

50:08So it really depends on the individual.

50:10Yeah, when we created the deep learning specialization,

50:13we wanted to make it very accessible and very affordable.

50:18And with Coursera and deeplearning.ai's education mission,

50:21one of the things that's really important to me

50:23is that if there's someone for whom paying anything

50:27is a financial hardship,

50:29then just apply for financial aid and get it for free.

50:32- If you were to recommend a daily schedule for people

50:38in learning, whether it's through

50:39the deeplearning.ai specialization

50:41or just learning in the world of deep learning,

50:44what would you recommend?

50:46How would they go about day-to-day sort of specific advice

50:50about learning, about their journey

50:52in the world of deep learning, machine learning?

50:54- I think getting the habit of learning is key,

50:59and that means regularity.

51:01So for example, we send out our weekly newsletter,

51:06The Batch, every Wednesday.

51:08So people know it's coming Wednesday,

51:09you can spend a little bit of time on Wednesday,

51:11catching up on the latest news through The Batch

51:14on Wednesday.

51:17And for myself, I've picked up a habit

51:20of spending some time every Saturday

51:22and every Sunday reading or studying.

51:24And so I don't wake up on a Saturday

51:26and have to make a decision.

51:27Do I feel like reading or studying today or not?

51:30It's just what I do.

51:31And the fact is a habit makes it easier.

51:34So I think if someone can get into that habit,

51:37it's like, you know, just like we brush our teeth

51:40every morning, I don't think about it.

51:42If I thought about it, it's a little bit annoying

51:43to have to spend two minutes doing that,

51:46but it's a habit that it takes no cognitive load,

51:49but this would be so much harder

51:50if we have to make a decision every morning.

51:53So, and actually that's the reason

51:54why I wear the same thing every day as well.

51:56It's just one less decision.

51:57I just get up and wear my blue shirt.

51:59So, but I think if you can get that habit,

52:01that consistency of studying,

52:02then it actually feels easier.

52:05- So yeah, it's kind of amazing.

52:08In my own life, like I play guitar every day for,

52:12I force myself to at least for five minutes play guitar.

52:15It's a ridiculously short period of time,

52:18but because I've gotten into that habit,

52:20it's incredible what you can accomplish

52:21in a period of a year or two years.

52:24You can become, you know, exceptionally good

52:28at certain aspects of a thing by just doing it every day

52:30for a very short period of time.

52:32It's kind of a miracle that that's how it works.

52:34It adds up over time.

52:36- Yeah, and I think it's often not about the burst

52:39of sustained efforts and the all-nighters,

52:41because you can only do that a limited number of times.

52:44It's the sustained effort over a long time.

52:47I think, you know, reading two research papers

52:50is a nice thing to do,

52:52but the power is not reading two research papers.

52:54It's reading two research papers a week for a year.

52:57Then you've read a hundred papers

52:58and you actually learn a lot when you read a hundred papers.

53:02- So regularity and making learning a habit.

53:06Do you have general other study tips

53:10for particularly deep learning that people should,

53:14in their process of learning,

53:15is there some kind of recommendations

53:17or tips you have as they learn?

53:20- One thing I still do

53:22when I'm trying to study something really deeply

53:23is take handwritten notes.

53:26It varies.

53:27I know there are a lot of people

53:28that take the deep learning courses during a commute

53:32or something where it may be more awkward to take notes.

53:34So I know it may not work for everyone,

53:37but when I'm taking courses on Coursera,

53:40and I still take some every now and then,

53:42the most recent one I took

53:43was a course on clinical trials

53:45because I was interested about that.

53:46I got out my little Moleskine notebook

53:48and I was sitting at my desk,

53:49I was just taking down notes

53:51of what the instructor was saying.

53:52And that act, we know that that act of taking notes,

53:55preferably handwritten notes, increases retention.

53:59- So as you're sort of watching the video,

54:02just kind of pausing maybe

54:03and then taking the basic insights down on paper?

54:07- Yeah, so there've been a few studies.

54:10If you search online,

54:11you find some of these studies

54:12that taking handwritten notes,

54:15because handwriting is slower, as we're saying just now,

54:18it causes you to recode the knowledge in your own words more

54:23and that process of recoding promotes long-term retention.

54:26This is as opposed to typing, which is fine.

54:29Again, typing is better than nothing,

54:30or in taking a class and not taking notes is better

54:32than not taking any class at all.

54:34But comparing handwritten notes and typing,

54:38you can usually type faster.

54:39For a lot of people, you can handwrite notes.

54:41And so when people type,

54:43they're more likely to just transcribe verbatim

54:45what they heard,

54:46and that reduces the amount of recoding.

54:49And that actually results in less long-term retention.

54:52- I don't know what the psychological effect there is,

54:54but it's so true.

54:55There's something fundamentally different

54:57about writing, handwriting.

54:59I wonder what that is.

55:00I wonder if it is as simple

55:01as just the time it takes to write is slower.

55:04- Yeah, and because you can't write as many words,

55:08you have to take whatever they said

55:10and summarize it into fewer words.

55:12And that summarization process

55:13requires deeper processing of the meaning,

55:15which then results in better retention.

55:17- That's fascinating.

55:19- Oh, and I've spent, I think, because of Coursera,

55:22I've spent so much time studying pedagogy.

55:24It's actually one of my passions.

55:25I really love learning how to more efficiently

55:28help others learn.

55:30- Yeah, one of the things I do both when creating videos

55:33or when we write the batch is,

55:35I try to think, is one minute spent with us

55:39going to be a more efficient learning experience

55:42than one minute spent anywhere else?

55:43And we really try to, you know,

55:46make it time efficient for the learners

55:48'cause, you know, everyone's busy.

55:50So when we're editing, I often tell my teams,

55:53every word needs to fight for its life.

55:55And if we can delete a word, let's just delete it

55:56and not wait, let's not waste the learners' time.

56:00- Wow, that's so, it's so amazing that you think that way

56:02'cause there is millions of people that are impacted

56:04by your teaching and sort of that one minute spent

56:06has a ripple effect, right?

56:08Through years of time, which is fascinating to think about.

56:11How does one make a career

56:14out of an interest in deep learning?

56:16Do you have advice for people?

56:18We just talked about sort of the beginning, early steps,

56:21but if you want to make it an entire life's journey

56:24or at least a journey of a decade or two, how do you do it?

56:28- So most important thing is to get started.

56:31- Right, of course.

56:32- And I think in the early parts of a career,

56:35coursework, like the deep learning specialization,

56:38is a very efficient way to master this material.

56:43So, because, you know, instructors,

56:47be it me or someone else, or, you know,

56:49Lawrence Moroney teaches our TensorFlow specialization

56:51and other things we're working on,

56:53spend effort to try to make it time efficient

56:56for you to learn a new concept.

56:58So coursework is actually a very efficient way

57:01for people to learn concepts

57:02in the beginning parts of breaking into a new field.

57:05In fact, one thing I see at Stanford,

57:08some of my PhD students want to jump

57:10into research right away.

§08Transcript · 57:11–1:05:08

57:11And I actually tend to say, look,

57:13in your first couple of years as a PhD student,

57:15spend time taking courses, 'cause it lays a foundation.

57:18It's fine if you're less productive

57:20in your first couple of years.

57:21You'll be better off in the longterm.

57:23Beyond a certain point,

57:24there's materials that doesn't exist in courses

57:27because it's too cutting edge.

57:28The course hasn't been created yet.

57:30There's some practical experience

57:31that we're not yet that good as teaching in a course.

57:34And I think after exhausting the efficient coursework,

57:37then most people need to go on

57:40to either ideally work on projects,

57:44and then maybe also continue their learning

57:47by reading blog posts and research papers

57:49and things like that.

57:51Doing projects is really important.

57:53And again, I think it's important to start small

57:56and to just do something.

57:58Today, you read about deep learning,

57:59it feels like, oh, all these people

58:00are doing such exciting things.

58:01What if I'm not building a neural network

58:03that changes the world?

58:04Then what's the point?

58:05Well, the point is sometimes building

58:07that tiny neural network,

58:08be it MNIST or upgrade to a fashion MNIST, to whatever.

58:13So doing your own fun hobby project.

58:15That's how you gain the skills

58:16to let you do bigger and bigger projects.

58:18I find this to be true at the individual level

58:21and also at the organizational level.

58:23For a company to become good at machine learning,

58:25sometimes the right thing to do

58:26is not to tackle the giant project,

58:29is instead to do the small project

58:31that lets the organization learn

58:34and then build out from there.

58:35But this is true both for individuals and for companies.

58:39- To taking the first step

58:41and then taking small steps is the key.

58:45Should students pursue a PhD, do you think?

58:47You can do so much.

58:49That's one of the fascinating things in machine learning.

58:51You can have so much impact without ever getting a PhD.

58:54So what are your thoughts?

58:56Should people go to grad school?

58:57Should people get a PhD?

58:59- I think that there are multiple good options

59:02of which doing a PhD could be one of them.

59:05I think that if someone's admitted to a top PhD program,

59:08you know, at MIT, Stanford, top schools,

59:12I think that's a very good experience.

59:15Or if someone gets a job at a top organization,

59:19at the top AI team,

59:20I think that's also a very good experience.

59:24There are some things you still need a PhD to do.

59:25If someone's aspiration is to be a professor,

59:27you know, at the top academic university,

59:29you just need a PhD to do that.

59:31But if it goes to, you know, start a company,

59:33build a company, do great technical work,

59:35I think a PhD is a good experience.

59:37But I would look at the different options

59:40available to someone, you know,

59:41where are the places where you can get a job?

59:43Where are the places you can get in a PhD program?

59:45And kind of weigh the pros and cons of those.

59:47- So just to linger on that for a little bit longer,

59:50what final dreams and goals do you think people should have?

59:53So what options should they explore?

59:57So you can work in industry, so for a large company,

60:01like Google, Facebook, Baidu,

60:03all these large sort of companies

60:06that already have huge teams of machine learning engineers.

60:09You can also do within industry,

60:11sort of more research groups

60:12that kind of like Google Research, Google Brain.

60:15Then you can also do, like we said,

60:17a professor in academia.

60:20And what else?

60:21Oh, you can build your own company.

60:23You can do a startup.

60:25Is there anything that stands out between those options

60:28or are they all beautiful different journeys

60:30that people should consider?

60:32- I think the thing that affects your experience more

60:34is less are you in this company versus that company

60:38or academia versus industry.

60:40I think the thing that affects your experience most

60:41is who are the people you're interacting with

60:43in a daily basis.

60:45So even if you look at some of the large companies,

60:49the experience of individuals in different teams

60:51is very different.

60:53And what matters most is not the logo above the door

60:56when you walk into the giant building every day.

60:58What matters the most is who are the 10 people,

61:00who are the 30 people you interact with every day.

61:03So I actually tend to advise people,

61:04if you get a job from a company,

61:07ask who is your manager, who are your peers,

61:10who are you actually gonna talk to?

61:11We're all social creatures.

61:12We tend to become more like the people around us.

61:15And if you're working with great people,

61:17you will learn faster.

61:19Or if you get admitted,

61:20if you get a job at a great company or a great university,

61:24maybe the logo you walk in is great,

61:26but you're actually stuck on some team

61:28doing really work that doesn't excite you.

61:31And then that's actually a really bad experience.

61:33So this is true both for universities

61:36and for large companies.

61:38For small companies, you can kind of figure out

61:39who you'd be working with quite quickly.

61:41And I tend to advise people,

61:43if a company refuses to tell you who you work with,

61:46someone say, "Oh, join us.

61:47"The rotation system, we'll figure it out."

61:49I think that's a worrying answer

61:51because it means you may not get sent to,

61:56you may not actually get to a team

61:58with great peers and great people to work with.

62:00- It's actually a really profound advice

62:02that we kind of sometimes sweep.

62:05We don't consider too rigorously or carefully.

62:08The people around you are really often,

62:11especially when you accomplish great things,

62:13it seems the great things are accomplished

62:14because of the people around you.

62:16So it's not about whether you learn this thing or that thing

62:21or like you said, the logo that hangs up top,

62:25it's the people.

62:25That's a fascinating,

62:27and it's such a hard search process

62:29of finding, just like finding the right friends

62:34and somebody to get married with and that kind of thing.

62:37It's a very hard search, it's a people search problem.

62:40- Yeah, but I think when someone interviews

62:43at a university or the research lab

62:45or the large corporation,

62:46it's good to insist on just asking who are the people?

62:50Who is my manager?

62:51And if you refuse to tell me, I'm gonna think,

62:53well, maybe that's 'cause you don't have a good answer.

62:55It may not be someone I like.

62:57- And if you don't particularly connect,

62:59if something feels off with the people,

63:02then don't stick to it.

63:06That's a really important signal to consider.

63:08- Yeah, yeah.

63:09And actually in my Stanford class, CS230,

63:13as well as an ACM talk,

63:14I think I gave like a hour long talk on career advice,

63:18including on the job search process and then some of these.

63:21So you can find those videos online.

63:23- Awesome, and I'll point them.

63:25I'll point people to them, beautiful.

63:27So the AI fund helps AI startups get off the ground,

63:33or perhaps you can elaborate

63:34on all the fun things it's involved with.

63:37What's your advice

63:37on how does one build a successful AI startup?

63:42- In Silicon Valley, a lot of startup failures

63:44come from building a product that no one wanted.

63:48So when, cool technology, but who's gonna use it?

63:53So I think I tend to be very outcome driven

63:57and customer obsessed.

63:59Ultimately, we don't get to vote if we succeed or fail.

64:04It's only the customer that they're the only one

64:07that gets a thumbs up or thumbs down votes in the long term.

64:09In the short term, there are various people

64:12that get various votes,

64:13but in the long term, that's what really matters.

64:16- So as you build a startup,

64:17you have to constantly ask the question,

64:19will the customer give a thumbs up on this?

64:24- I think so.

64:25I think startups that are very customer focused,

64:27customer obsessed, deeply understand the customer

64:30and are oriented to serve the customer

64:33are more likely to succeed.

64:36With the provisional,

64:37I think all of us should only do things

64:39that we think create social good

64:40and moves the world forward.

64:42So I personally don't wanna build

64:44addictive digital products just to sell a lot of ads.

64:47There are things that could be lucrative that I won't do,

64:50but if we can find ways to serve people in meaningful ways,

64:55I think those can be great things to do,

64:59either in the academic setting or in a corporate setting

65:01or a startup setting.

65:03- So can you give me the idea of why you started the AI fund?

65:08- I remember when I was leading the AI group at Baidu,

§09Transcript · 1:05:13–1:13:32

65:13I had two jobs, two parts of my job.

65:15One was to build an AI engine

65:17to support the existing businesses.

65:19And that was running, just ran, just performed by itself.

65:23The second part of my job at the time,

65:24which was to try to systematically initiate

65:27new lines of businesses

65:29using the company's AI capabilities.

65:31So the self-driving car team came out of my group,

65:34the smart speaker team,

65:37similar to what is Amazon Echo or Alexa in the US,

65:41but we actually announced it before Amazon did.

65:42So Baidu wasn't following Amazon.

65:46That came out of my group,

65:48and I found that to be actually the most fun part of my job.

65:53So what I wanted to do was to build AI fund

65:56as a startup studio

65:58to systematically create new startups from scratch.

66:02With all the things we can now do with AI,

66:04I think the ability to build new teams,

66:07to go after this rich space of opportunities

66:10is a very important way to,

66:12very important mechanism to get these projects done

66:14that I think will move the world forward.

66:16So I've been fortunate to have built a few teams

66:19that had a meaningful, positive impact.

66:21And I felt that we might be able to do this

66:25in a more systematic, repeatable way.

66:27So a startup studio is a relatively new concept.

66:31There are maybe dozens of startup studios right now,

66:35but I feel like all of us,

66:38many teams are still trying to figure out

66:40how do you systematically build companies

66:43with a high success rate?

66:45So I think even a lot of my venture capital friends

66:49are seem to be more and more building companies

66:51rather than investing in companies.

66:53But I find it a fascinating thing to do

66:55to figure out the mechanisms

66:56by which we could systematically build successful teams,

66:59successful businesses in areas that we find meaningful.

67:03- So a startup studio is something,

67:05is a place and a mechanism for startups

67:09to go from zero to success,

67:11to try to develop a blueprint.

67:13- It's actually a place for us

67:14to build startups from scratch.

67:16So we often bring in founders and work with them,

67:21or maybe even have existing ideas

67:23that we match founders with.

67:26And then this launches, hopefully,

67:29into successful companies.

67:31- So how close are you to figuring out a way

67:34to automate the process of starting from scratch

67:38and building successful AI startup?

67:40- Yeah, I think we've been constantly improving

67:44and iterating on our processes, how we do that.

67:48So things like, how many customer calls do we need to make

67:51in order to get customer validation?

67:53How do we make sure this technology can be built?

67:55Quite a lot of our businesses need cutting edge

67:58machine learning algorithms.

67:59So kind of algorithms that are developed

68:00in the last one or two years.

68:02And even if it works in a research paper,

68:04it turns out taking the production is really hard.

68:07There are a lot of issues for making these things work

68:09in the real life that are not widely addressed in academia.

68:14So how do we validate that this is actually doable?

68:17How do you build a team,

68:18get the specialized domain knowledge,

68:19be it in education or healthcare,

68:21or whatever sector we're focusing on?

68:23So I think we've actually getting,

68:24we've been getting much better at giving the entrepreneurs

68:29a high success rate, but I think we're still,

68:32I think the whole world is still

68:33in the early phases of figuring this out.

68:35- But do you think there is some aspects of that process

68:39that are transferable from one startup to another,

68:41to another, to another?

68:43- Yeah, very much so.

68:45You know, starting a company to most entrepreneurs

68:47is a really lonely thing.

68:50And I've seen so many entrepreneurs not know

68:54how to make certain decisions.

68:56Like, when do you need to, how do you do B2B sales?

69:00If you don't know that, it's really hard.

69:02Or how do you market this efficiently

69:05other than buying ads, which is really expensive?

69:08Are there more efficient tactics for that?

69:10Or for a machine learning project,

69:13basic decisions can change the course

69:15of whether a machine learning product works or not.

69:18And so there are so many hundreds of decisions

69:21that entrepreneurs need to make,

69:22and making a mistake in a couple of key decisions

69:25can have a huge impact on the fate of the company.

69:30So I think a startup studio provides a support structure

69:33that makes starting a company

69:34much less of a lonely experience.

69:36And also when facing with these key decisions,

69:40like trying to hire your first VP of engineering,

69:44what's a good selection criteria?

69:46How do you source?

69:47Should I hire this person or not?

69:48By having an ecosystem around the entrepreneurs,

69:53the founders, to help,

69:54I think we help them at the key moments

69:57and hopefully significantly make them more enjoyable

70:01and then higher success rate.

70:02- So they have somebody to brainstorm with

70:04in these very difficult decision points.

70:08- And also to help them recognize

70:10what they may not even realize is a key decision point.

70:14Right?

70:15That's the first and probably the most important part.

70:17Yeah.

70:18- Actually, I can say one other thing.

70:20I think building companies is one thing,

70:23but I feel like it's really important

70:26that we build companies that move the world forward.

70:30For example, within the AI fund team,

70:32there was once an idea for a new company

70:35that if it had succeeded,

70:37would have resulted in people watching a lot more videos

70:40in a certain narrow vertical type of video.

70:43And I looked at it, the business case was fine,

70:45the revenue case was fine,

70:46but I looked at it and just said,

70:48"I don't want to do this.

70:50I don't actually just want to have a lot more people

70:52watch this type of video."

70:53Wasn't educational.

70:54It was educational, maybe.

70:56And so I cut the idea on the basis

70:59that I didn't think it would actually help people.

71:01So whether building companies or work of enterprises

71:05or doing personal projects,

71:06I think it's up to each of us to figure out

71:11what's the difference we want to make in the world.

71:14- With Learning AI,

71:15you help already established companies

71:17grow their AI and machine learning efforts.

71:20How does a large company integrate machine learning

71:22into their efforts?

71:24- AI is a general purpose technology,

71:27and I think it would transform every industry.

71:30Our community has already transformed to a large extent

71:33to software internet sector.

71:35Most software internet companies,

71:36they're outside the top, right?

71:38Five or six or three or four,

71:40already have reasonable machine learning capabilities

71:43or are getting there.

71:44It's still room for improvement.

71:46But when I look outside the software internet sector,

71:49everything from manufacturing, agriculture,

71:51healthcare, logistics, transportation,

71:53there's so many opportunities

71:55that very few people are working on.

71:57So I think the next wave for AI

71:59is for us to also transform all of those other industries.

72:03There was a McKinsey study

72:04estimating $13 trillion of global economic growth.

72:09US GDP is $19 trillion,

72:11so 13 trillion is a big number,

72:13or PWC estimate $16 trillion.

72:16So whatever number is, it's large.

72:18But the interesting thing to me was a lot of that impact

72:20would be outside the software internet sector.

72:23So we need more teams to work with these companies

72:28to help them adopt AI.

72:29And I think this is one of the things

72:30that'll help drive global economic growth

72:33and make humanity more powerful.

72:35- And like you said, the impact is there.

72:37So what are the best industries,

72:39the biggest industries where AI can help,

72:41perhaps outside the software tech sector?

72:44- Frankly, I think it's all of them.

72:46Some of the ones I'm spending a lot of time on

72:49are manufacturing, agriculture, looking into healthcare.

72:54For example, in manufacturing,

72:56we do a lot of work in visual inspection,

72:58where today there are people standing around

73:01using the eye, human eye,

73:02to check if this plastic part or the smartphone

73:05or this thing has a scratch or a dent or something in it.

73:09We can use a camera to take a picture,

73:12use a algorithm, deep learning and other things

73:15to check if it's defective or not,

73:17and thus help factories improve yield

73:20and improve quality and improve throughput.

73:23It turns out the practical problems we run into

73:25are very different than the ones you might read about

73:28in most research papers.

73:29The data sets are really small,

73:30so we face small data problems.

73:32You know, the factories keep on changing the environment,

§10Transcript · 1:13:35–1:21:30

73:35so it works well on your test set,

73:38but guess what?

73:39You know, something changes in the factory.

73:42The lights go on or off.

73:43Recently, there was a factory

73:45in which a bird flew through the factory

73:47and pooped on something,

73:48and so that changed stuff.

73:50And so increasing our algorithmic robustness,

73:54so all the changes happen in the factory,

73:57I find that we run into a lot of practical problems

73:59that are not as widely discussed in academia,

74:02and it's really fun kind of being on the cutting edge,

74:05solving these problems before, you know,

74:07maybe before many people are even aware

74:09that there is a problem there.

74:10- And that's such a fascinating space.

74:12You're absolutely right,

74:13but what is the first step that a company should take?

74:16It's just a scary leap into this new world

74:19of going from the human eye inspecting

74:22to digitizing that process,

74:24having a camera, having an algorithm.

74:27What's the first step?

74:28Like, what's the early journey that you recommend

74:31that you see these companies taking?

74:33- I published a document

74:34called the "AI Transformation Playbook."

74:37I found this online and taught briefly

74:39in the AI for Everyone course on Coursera

74:41about the long-term journey that companies should take,

74:44but the first step is actually to start small.

74:47I've seen a lot more companies fail

74:49by starting too big than by starting too small.

74:53Take even Google.

74:54You know, most people don't realize how hard it was

74:57and how controversial it was in the early days.

75:00So when I started Google Brain, it was controversial.

75:04People thought deep learning,

75:06tried it, didn't work.

75:07Why would you want to do deep learning?

75:09So my first internal customer within Google

75:12was the Google speech team,

75:14which is not the most lucrative project in Google,

75:17not the most important.

75:18It's not web search or advertising,

75:20but by starting small,

75:22my team helped the speech team

75:25build a more accurate speech recognition system.

75:28And this caused their peers, other teams,

75:30to start to have more faith in deep learning.

75:33My second internal customer was the Google Maps team,

75:36where we used computer vision to read house numbers

75:39from basic street view images

75:41to more accurately locate houses within Google Maps,

75:43so improve the quality of the geodata.

75:45And it was only after those two successes

75:48that I then started a more serious conversation

75:50with the Google Ads team.

75:52- And so there's a ripple effect

75:54that you showed that it works in these cases,

75:56and then it just propagates through the entire company,

75:59that this thing has a lot of value and use for us.

76:02- I think the early small-scale projects,

76:05it helps the teams gain faith,

76:07but also helps the teams learn what these technologies do.

76:11I still remember when our first GPU server,

76:14it was a server under some guy's desk.

76:17And that taught us early important lessons

76:20about how do you have multiple users share a set of GPUs,

76:25which was really not obvious at the time,

76:27but those early lessons were important.

76:29We learned a lot from that first GPU server

76:32that later helped the teams think through

76:34how to scale it up to much larger deployments.

76:37- Are there concrete challenges that companies face

76:40that you see is important for them to solve?

76:43- I think building and deploying

76:45machine learning systems is hard.

76:47There's a huge gulf between something that works

76:49in a Jupyter notebook on your laptop

76:51versus something that runs

76:53in a production deployment setting

76:54in a factory or agriculture plant or whatever.

76:58So I see a lot of people get something to work

77:00on your laptop and say,

77:01"Oh, look what I've done."

77:02And that's great, that's hard.

77:03That's a very important first step,

77:05but a lot of teams underestimate the rest of the steps needed.

77:09So for example, I've heard this exact same conversation

77:12between a lot of machine learning people and business people.

77:15The machine learning person says,

77:16"Look, my algorithm does well on the test set.

77:20It's a clean test set, I didn't peak."

77:23And the business person says, "Thank you very much,

77:26but your algorithm sucks, it doesn't work."

77:29And the machine learning person says,

77:30"No, wait, I did well on the test set."

77:33And I think there is a gulf between what it takes

77:38to do well on a test set on your hard drive

77:40versus what it takes to work well in a deployment setting.

77:44Some common problems, robustness and generalization.

77:48You deploy something in the factory,

77:50maybe they chop down a tree outside the factory

77:52so the tree no longer covers a window

77:55and the lighting is different.

77:56So the test set changes.

77:57And in machine learning, and especially in academia,

78:01we don't know how to deal with test set distributions

78:04that are dramatically different

78:05than the training set distribution.

78:07You know, there's research,

78:08there's stuff like domain annotation, transfer learning.

78:12You know, there are people working on it,

78:13but we're really not good at this.

78:15So how do you actually get this to work?

78:18Because your test set distribution is going to change.

78:21And I think also, if you look at the number of lines of code

78:25in the software system, the machine learning model

78:28is maybe 5% or even fewer relative

78:32to the entire software system you need to build.

78:35So how do you get all that work done

78:37and make it reliable and systematic?

78:38- So good software engineering work is fundamental here

78:42to building a successful small machine learning system.

78:46- Yes, and the software system needs to interface

78:49with people's workloads.

78:50So machine learning is automation on steroids.

78:54If we take one task out of many tasks

78:56that are done in the factory,

78:57so the factory does lots of things.

78:58One task is visual inspection.

79:00If we automate that one task, it can be really valuable,

79:03but you may need to redesign a lot of other tasks

79:06around that one task.

79:07For example, say the machine learning algorithm

79:09says this is defective.

79:11What are you supposed to do?

79:11Do you throw it away?

79:12Do you get a human to double check?

79:14Do you want to rework it or fix it?

79:17So you need to redesign a lot of tasks

79:18around that thing you've now automated.

79:20So planning for the change management

79:23and making sure that the software you write

79:25is consistent with the new workflow.

79:27And you take the time to explain to people

79:28what needs to happen.

79:29So I think what landing AI has become good at,

79:34and then I think we learn by making missteps

79:37and painful experiences.

79:39What we've become good at is working with our partners

79:43to think through all the things beyond

79:46just the machine learning model,

79:48that you put in the notebook,

79:49but to build the entire system,

79:51manage the change process and figure out how to deploy this

79:54in a way that has an actual impact.

79:56The processes that the large software tech companies use

79:59for deploying don't work for a lot of other scenarios.

80:03For example, when I was leading large speech teams,

80:07if the speech recognition system goes down, what happens?

80:09Well, alarms goes off and then someone like me would say,

80:12"Hey, you 20 engineers, please fix this."

80:15Right?

80:15And then we're good.

80:16But if you have a system go down in the factory,

80:19there are not 20 machine learning engineers

80:21sitting around, you can page a duty and have them fix it.

80:23So how do you deal with the maintenance or the DevOps

80:27or the MLOps or the other aspects of this?

80:30So these are concepts that I think landing AI

80:34and a few other teams are on the cutting edge of,

80:36but we don't even have systematic terminology yet

80:39to describe some of the stuff we do

80:41because I think we're inventing it on the fly.

80:43- So you mentioned some people are interested

80:46in discovering mathematical beauty and truth

80:48in the universe,

80:49and you're interested in having a big positive impact

80:53in the world.

80:55So let me ask--

80:55- The two are not inconsistent.

80:57- No, they're all together.

80:58I'm only half joking

81:00'cause you're probably interested a little bit in both.

81:03But let me ask a romanticized question.

81:06So much of the work, your work and our discussion today

81:09has been on applied AI.

81:12Maybe you can even call narrow AI,

81:14where the goal is to create systems

81:15that automate some specific process

81:17that adds a lot of value to the world.

81:19But there's another branch of AI,

81:21starting with Alan Turing,

81:22that kind of dreams of creating human level

81:25or superhuman level intelligence.

81:27Is this something you dream of as well?

81:30Do you think we human beings will ever build

§11Transcript · 1:21:33–1:29:03

81:33a human level intelligence

81:34or superhuman level intelligence system?

81:37- I would love to get to AGI,

81:38and I think humanity will,

81:40but whether it takes a hundred years or 500 or 5,000,

81:45I find hard to estimate.

81:48- Do you have,

81:49so some folks have worries about the different trajectories

81:53that path would take,

81:54even existential threats of an AGI system.

81:57Do you have such concerns,

81:59whether in the short term or the long term?

82:02- I do worry about the long-term fate of humanity.

82:06I do wonder as well,

82:09I do worry about overpopulation on the planet Mars,

82:13just not today.

82:14I think there will be a day

82:16when maybe someday in the future,

82:18Mars will be polluted,

82:20there are all these children dying,

82:21and someone will look back at this video and say,

82:23"Andrew, how was Andrew so heartless?

82:25He didn't care about all these children

82:26dying on the planet Mars."

82:28And I apologize to the future viewer,

82:30I do care about the children,

82:32but I just don't know how to productively work on that today.

82:35- Your picture will be in the dictionary

82:37for the people who are ignorant

82:39about the overpopulation on Mars.

82:41Yes, so it's a long-term problem.

82:44Is there something in the short term

82:45we should be thinking about

82:47in terms of aligning the values of our AI systems

82:50with the values of us humans?

82:54Sort of something that Stuart Russell

82:56and other folks are thinking about

82:58as this system develops more and more,

83:00we want to make sure that it represents

83:03the better angels of our nature,

83:05the ethics, the values of our society.

83:08- You know, if you take self-driving cars,

83:12the biggest problem with self-driving cars

83:14is not that there's some trolley dilemma,

83:17and you teach this, so you know,

83:19how many times when you are driving your car,

83:21did you face this moral dilemma?

83:23Who do I crash into?

83:25So I think self-driving cars will run into that problem

83:28roughly as often as we do when we drive our cars.

83:31The biggest problem with self-driving cars

83:33is when there's a big white truck across the road,

83:35and what you should do is brake and not crash into it,

83:38and the self-driving car fails and it crashes into it.

83:41So I think we need to solve that problem first.

83:43I think the problem with some of these discussions

83:45about AGI, you know, alignment, the paperclip problem,

83:50is that is a huge distraction from the much harder problems

83:56that we actually need to address today.

83:58Some of the hard problems we need to address today,

84:00I think bias is a huge issue.

84:03I worry about wealth inequality.

84:05AI and internet are causing an acceleration

84:09of concentration of power,

84:10because we can now centralize data, use AI to process it.

84:14And so industry after industry,

84:15we've affected every industry.

84:17So the internet industry has a lot of win-and-take modes

84:20or win-and-take-all dynamics,

84:22but we've infected all these other industries.

84:24So we're also giving these other industries

84:26win-and-take modes or win-and-take-all flavors.

84:28So look at what Uber and Lyft did to the taxi industry.

84:32So we're doing this type of thing to a lot of...

84:34So we're creating tremendous wealth,

84:36but how do we make sure that the wealth is fairly shared?

84:39I think that...

84:41And then how do we help people whose jobs are displaced?

84:45I think education is part of it.

84:47There may be even more that we need to do than education.

84:50I think bias is a serious issue.

84:55There are adverse uses of AI,

84:57like deepfakes being used for various nefarious purposes.

85:00So I worry about some teams, maybe accidentally,

85:05and I hope not deliberately,

85:07making a lot of noise about things,

85:11problems in the distant future,

85:13rather than focusing on some of the much harder problems.

85:15- Yeah, they overshadow the problems

85:17that we have already today.

85:18They're exceptionally challenging, like those you said,

85:21and even the silly ones,

85:22but the ones that have a huge impact,

85:24which is the lighting variation

85:26outside of your factory window.

85:28That ultimately is what makes the difference

85:31between, like you said, the Jupiter notebook

85:33and something that actually transforms

85:35an entire industry, potentially.

85:37- Yeah, and I think, and just to,

85:40some companies, when a regulator comes to you and says,

85:43"Look, your product is messing things up.

85:45"Fixing it may have a revenue impact."

85:47Well, it's much more fun to talk to them

85:49about how you promised not to wipe out humanity

85:51than to face the actually really hard problems we face.

85:54- So your life has been a great journey,

85:57from teaching to research to entrepreneurship.

86:00Two questions.

86:01One, are there regrets,

86:04moments that if you went back, you would do differently?

86:07And two, are there moments you're especially proud of,

86:10moments that made you truly happy?

86:13- You know, I've made so many mistakes.

86:15It feels like every time I discover something,

86:20I go, "Why didn't I think of this five years earlier

86:25"or even 10 years earlier?"

86:27And sometimes I read a book and I go,

86:32"I wish I read this book 10 years ago.

86:34"My life would have been so different."

86:36Although that happened recently.

86:37And then I was thinking,

86:38"If only I read this book when we're starting up Coursera,

86:41"it could have been so much better."

86:43But I discovered the book had not yet been written

86:45when we were starting Coursera,

86:46so that made me feel better.

86:48But I find that the process of discovery,

86:53we keep on finding out things

86:54that seem so obvious in hindsight,

86:56but it always takes us so much longer

86:59than I wish to figure it out.

87:02- So on the second question,

87:06are there moments in your life that,

87:09if you look back, that you're especially proud of

87:12or you're especially happy,

87:14that filled you with happiness and fulfillment?

87:18- Well, two answers.

87:19One, does my daughter know of her?

87:21- Yes, of course.

87:22- She's like, "No matter how much time I spend with her,

87:23"I just can't spend enough time with her."

87:25- Congratulations, by the way.

87:26- Thank you.

87:27And then second is helping other people.

87:29I think, to me, I think the meaning of life

87:32is helping others achieve whatever are their dreams.

87:36And then also to try to move the world forward

87:40by making humanity more powerful as a whole.

87:43So the times that I felt most happy and most proud

87:46was when I felt someone else allowed me the good fortune

87:51of helping them a little bit on the path to their dreams.

87:56- I think there's no better way to end it

87:58than talking about happiness and the meaning of life.

88:00So Andrew, it's a huge honor.

88:03Me and millions of people thank you

88:04for all the work you've done.

88:05Thank you for talking today.

88:07- Thank you so much, thanks.

88:08- Thanks for listening to this conversation with Andrew Ng.

88:11And thank you to our presenting sponsor, Cash App.

88:14Download it, use code LEXPODCAST.

88:17You'll get $10 and $10 will go to FIRST,

88:20an organization that inspires and educates young minds

88:23to become science and technology innovators of tomorrow.

88:26If you enjoy this podcast, subscribe on YouTube,

88:29give it five stars on Apple Podcast,

88:31support on Patreon, or simply connect with me on Twitter

88:35at Lex Friedman.

88:36And now let me leave you with some words of wisdom

88:39from Andrew Ng.

88:40Ask yourself if what you're working on

88:43succeeds beyond your wildest dreams,

88:46would you have significantly helped other people?

88:48If not, then keep searching for something else to work on.

88:53Otherwise, you're not living up to your full potential.

88:57Thank you for listening and hope to see you next time.

89:01(upbeat music)

89:03(upbeat music)

— 读到这里,多懂一点。 —