Andrew Ng: Deep Learning, Education, and Real-World AI
嘉宾:Andrew Ng
全文文稿 · 按对话顺序保留完整内容,深入理解上下文。
本篇目录11 章节
§01Transcript · 00:00–08:13§02Transcript · 08:15–16:03§03Transcript · 16:04–24:52§04Transcript · 24:56–33:10§05Transcript · 33:14–40:53§06Transcript · 40:55–49:08§07Transcript · 49:10–57:10§08Transcript · 57:11–1:05:08§09Transcript · 1:05:13–1:13:32§10Transcript · 1:13:35–1:21:30§11Transcript · 1:21:33–1:29:03§01Transcript · 00:00–08:13
The following is a conversation with Andrew Ng,
one of the most impactful educators, researchers,
innovators, and leaders in artificial intelligence
and technology space in general.
He co-founded Coursera and Google Brain,
launched Deep Learning AI, Landing AI, and the AI Fund,
and was the chief scientist at Baidu.
As a Stanford professor and with Coursera
and Deep Learning AI, he has helped educate
and inspire millions of students, including me.
This is the Artificial Intelligence Podcast.
If you enjoy it, subscribe on YouTube,
get five stars on Apple Podcasts,
support it on Patreon, or simply connect with me on Twitter
at Lex Friedman, spelled F-R-I-D-M-A-N.
As usual, I'll do one or two minutes of ads now,
and never any ads in the middle
that can break the flow of the conversation.
I hope that works for you
and doesn't hurt the listening experience.
This show is presented by Cash App,
the number one finance app in the App Store.
When you get it, use code LEXPODCAST.
Cash App lets you send money to friends,
buy Bitcoin, and invest in the stock market
with as little as $1.
Brokerage services are provided by Cash App Investing,
a subsidiary of Square, and member SIPC.
Since Cash App allows you to buy Bitcoin,
let me mention that cryptocurrency,
in the context of the history of money, is fascinating.
I recommend "A Scent of Money"
as a great book on this history.
Debits and credits on ledgers started over 30,000 years ago.
The US dollar was created over 200 years ago,
and Bitcoin, the first decentralized cryptocurrency,
released just over 10 years ago.
So given that history, cryptocurrency's still very much
in its early days of development,
but it's still aiming to, and just might,
redefine the nature of money.
So again, if you get Cash App
from the App Store or Google Play,
and use the code LEXPODCAST, you'll get $10,
and Cash App will also donate $10 to FIRST,
one of my favorite organizations
that is helping to advance robotics and STEM education
for young people around the world.
And now, here's my conversation with Andrew Ng.
The courses you taught on machine learning at Stanford,
and later on Coursera that you co-founded,
have educated and inspired millions of people.
So let me ask you, what people or ideas inspired you
to get into computer science and machine learning
when you were young?
When did you first fall in love with the field,
is another way to put it?
- Growing up in Hong Kong and Singapore,
I started learning to code when I was five or six years old.
At that time, I was learning the basic programming language,
and I would take these books and they'll tell you,
type this program into your computer.
So type that program to my computer.
And as a result of all that typing,
I would get to play these very simple,
shoot them up games that I had implemented
on my little computer.
So I thought it was fascinating as a young kid
that I could write this code,
that was really just copying code from a book
into my computer to then play these cool little video games.
Another moment for me was when I was a teenager
and my father, 'cause he's a doctor,
was reading about expert systems and about neural networks.
So he got me to read some of these books
and I thought it was really cool
that you could write a computer
that started to exhibit intelligence.
Then I remember doing an internship
while I was in high school, this was in Singapore,
where I remember doing a lot of photocopying
and I was an office assistant.
And the highlight of my job
was when I got to use the Shredder.
So the teenager in me remember thinking,
boy, this is a lot of photocopying.
If only we could write software, build a robot,
something to automate this,
maybe I could do something else.
So I think a lot of my work since then
has centered on the theme of automation.
Even the way I think about machine learning today,
we're very good at writing learning algorithms
that can automate things that people can do.
Or even launching the first MOOCs,
Mass Open Online Courses, that later led to Coursera,
I was trying to automate what could be automatable
in how I was teaching on campus.
- Process of education,
try to automate parts of that to make it more,
sort of to have more impact from a single teacher,
a single educator.
- Yeah, I felt, teaching at Stanford,
I was teaching machine learning
to about 400 students a year at the time.
And I found myself filming the exact same video every year,
telling the same jokes in the same room.
And I thought, why am I doing this?
Why don't we just take last year's video
and then I can spend my time
building a deeper relationship with students.
So that process of thinking through how to do that,
that led to the first MOOCs that we launched.
- And then you have more time to write new jokes.
Are there favorite memories from your early days
at Stanford teaching thousands of people in person
and then millions of people online?
- You know, teaching online,
what not many people know was that
a lot of those videos were shot
between the hours of 10 PM and 3 AM.
A lot of times, launching the first MOOCs at Stanford,
we'd already announced the course,
about 100,000 people had signed up.
We just started to write the code
and we had not yet actually filmed the videos.
So we had a lot of pressure,
100,000 people waiting for us to produce the content.
So many Fridays, Saturdays,
I would go out, have dinner with my friends,
and then I would think, okay, do you want to go home now?
Or do you want to go to the office to film videos?
And the thought of being able to help 100,000 people
potentially learn machine learning,
fortunately that made me think,
okay, I'm going to go to my office,
go to my tiny little recording studio.
I would adjust my Logic Webcam,
adjust my Wacom tablet,
make sure my lapel mic was on,
and then I would start recording,
often until 2 AM or 3 AM.
I think unfortunately that doesn't show
that it was recorded that late at night,
but it was really inspiring,
the thought that we could create content
to help so many people learn about machine learning.
- How did that feel?
The fact that you're probably somewhat alone,
maybe a couple of friends,
recording with a Logitech webcam
and kind of going home alone at 1 or 2 AM at night,
and knowing that that's going to reach
sort of thousands of people,
eventually millions of people.
What's that feeling like?
I mean, is there a feeling of just satisfaction
of pushing through?
- I think it's humbling.
And I wasn't thinking about what I was feeling.
I think one thing that I'm proud to say
we got right from the early days
was I told my whole team back then
that the number one priority
is to do what's best for learners,
do what's best for students.
And so when I went to the recording studio,
the only thing on my mind was,
what can I say?
How can I design my slides?
What do I need to draw right
to make these concepts as clear as possible for learners?
I think, you know,
I've seen sometimes instructors is tempting to,
"Hey, let's talk about my work.
"Maybe if I teach you about my research,
"someone will cite my papers a couple more times."
And I think one of the things we got right
launched the first few MOOCs,
and later building Coursera
was putting in place that bedrock principle
of let's just do what's best for learners
and forget about everything else.
And I think that that as a guiding principle
turned out to be really important
to the rise of the MOOC movement.
- And the kind of learner you imagined in your mind
is as broad as possible,
as global as possible.
So really try to reach as many people
interested in machine learning and AI as possible.
- I really want to help anyone
that had an interest in machine learning
to break into the field.
And I think sometimes,
I've actually had people ask me,
"Hey, why are you spending so much time
"explaining gradient descent?"
And my answer was,
"If I look at what I think the learner needs
§02Transcript · 08:15–16:03
"and what benefit from,
"I felt that having that,
"a good understanding of the foundations,
"kind of back to the basics,
"would put them in a better state
"to then build on a long-term career."
So we've tried to consistently make decisions
on that principle.
- So one of the things you actually revealed
to the narrow AI community at the time
and to the world,
is that the amount of people
who are actually interested in AI
is much larger than we imagined.
By you teaching the class
and how popular it became,
it showed that,
wow, this isn't just a small community
of sort of people who go to NeurIPS
and it's much bigger.
It's developers,
it's people from all over the world.
I mean, I'm Russian,
so everybody in Russia is really interested.
There's a huge number of programmers
who are interested in machine learning.
India, China, South America, everywhere.
There's just millions of people
who are interested in machine learning.
So how big do you get a sense
that the number of people is
that are interested from your perspective?
- I think the number's grown over time.
I think it's one of those things
that maybe it feels like it came out of nowhere,
but there's an inside that building it.
It took years.
It's not those overnight successes
that took years to get there.
My first foray into this type of online education
was when we were filming my Stanford class
and sticking the videos on YouTube
and then some other things.
We had uploaded the whole works and so on,
but it's basically the one hour,
15 minute video that we put on YouTube.
And then we had four or five other versions
of websites that I had built,
most of which you would never have heard of
because they reached small audiences,
but that allowed me to iterate,
allowed my team and me to iterate,
to learn what the ideas that work and what doesn't.
For example, one of the features
I was really excited about and really proud of
was build this website where multiple people
could be logged into the website at the same time.
So today, if you go to a website,
if you're logged in and then I want to log in,
you need to log out if it's the same browser,
same computer.
But I thought, well, what if two people,
say you and me were watching a video together
in front of a computer?
What if a website could have you type your name
and password, have me type my name and password?
And then now the computer knows
both of us are watching together
and it gives both of us credit
for anything we do as a group.
Influences feature rolled it out
in a school in San Francisco.
We had about 20 something users.
Where's the teacher there?
Sacred Heart Cathedral Prep, the teacher was great.
I mean, guess what?
Zero people use this feature.
It turns out people studying online,
they want to watch the videos by themselves.
So you can play back, pause at your own speed
rather than in groups.
So that was one example of a tiny lesson learned
out of many that allows us to hone in
to the set of features.
- And it sounds like a brilliant feature.
So I guess the lesson to take from that is
there's something that looks amazing on paper
and then nobody uses it.
It doesn't actually have the impact
that you think it might have.
I say, yeah, I saw that you've really went
through a lot of different features and a lot of ideas
and to arrive at the final,
at Coursera's final kind of powerful thing
that showed the world that MOOCs can educate millions.
- And I think with the whole machine learning movement
as well, I think it didn't come out of nowhere.
Instead, what happened was as more people learn
about machine learning, they will tell their friends
and their friends will see how it's applicable
to their work.
And then the community kept on growing.
And I think we're still growing.
I don't know in the future what percentage
of our developers will be AI developers.
I could easily see it being north of 50%, right?
Because so many AI developers broadly construed,
not just people doing the machine learning modeling,
but the people building infrastructure, data pipelines,
you know, all the software's surrounding
the core machine learning model.
Maybe it's even bigger.
I feel like today, almost every software engineer
has some understanding of the cloud.
Not all, you know, but maybe it's just
my microcontroller developer doesn't need to deal with cloud.
But I feel like the vast majority of software engineers today
are sort of having an appreciation of the cloud.
I think in the future, maybe we'll approach nearly 100%
of all developers being, you know, in some way,
an AI developer, at least having an appreciation
of machine learning.
- And my hope is that there's this kind of effect
that there's people who are not really interested
in being a programmer or being into software engineering,
like biologists, chemists, and physicists,
even mechanical engineers, all these disciplines
that are now more and more sitting on large datasets.
And here, they didn't think they're interested
in programming until they have this dataset
and they realized there's this set of machine learning tools
that allow you to use the dataset.
So they actually become, they learn to program
and they become new programmers.
So like the, not just, 'cause you've mentioned
a larger percentage of developers
become machine learning people.
The, it seems like more and more,
the kinds of people who are becoming developers
is also growing significantly.
- Yeah, I think once upon a time,
only a small part of humanity was literate,
you know, could read and write.
And maybe you thought, maybe not everyone needs
to learn to read and write.
You know, you just go listen to a few monks, right?
Read to you, and maybe that was enough.
Or maybe we just need a few handful of authors
to write the best sellers,
and then no one else needs to write.
But what we found was that by giving as many people,
you know, in some countries, almost everyone,
basic literacy, it dramatically enhanced
human to human communications.
And we can now write for an audience of one,
such as if I send you an email or you send me an email.
I think in computing, we're still in that phase
where so few people know how to code
that the coders mostly have to code
for relatively large audiences.
But if everyone, or most people,
became developers at some level,
similar to how most people in developed economies
are somewhat literate,
I would love to see the owners of a mom and pop store
be able to write a little bit of code
to customize the TV display for their special this week.
And I think it'll enhance human to computer communications,
which is becoming more and more important in today's world.
- So you think it's possible that machine learning
becomes kind of similar to literacy where,
yeah, like you said, the owners of a mom and pop shop,
is basically everybody in all walks of life
would have some degree of programming capability?
- I could see society getting there.
There's one other interesting thing, you know,
if I go talk to the mom and pop store,
if I talk to a lot of people in their daily professions,
I previously didn't have a good story
for why they should learn to code.
You know, we could give them some reasons.
But what I found with the rise of machine learning
and data science is that I think the number of people
with a concrete use for data science in their daily lives,
in their jobs, may be even larger than the number of people
with a concrete use for software engineering.
For example, actually, if you run a small mom and pop store,
I think if you can analyze the data about your sales,
your customers, I think there's actually real value there,
maybe even more than traditional software engineering.
So I find that for a lot of my friends
in various professions, be it recruiters or accountants
or, you know, people that work in the factories,
which I deal with more and more these days,
I feel if they were data scientists at some level,
they could immediately use that in their work.
So I think that data science and machine learning
may be an even easier entree into the developer world
for a lot of people than the software engineering.
- That's interesting.
§03Transcript · 16:04–24:52
And I agree with that, but that's beautifully put.
We live in a world where most courses and talks have slides,
PowerPoint, keynote, and yet you famously
often still use a marker and a whiteboard.
The simplicity of that is compelling,
and for me, at least, fun to watch.
So let me ask, why do you like using a marker and whiteboard
even on the biggest of stages?
- I think it depends on the concepts you want to explain.
For mathematical concepts, it's nice to build up
the equation one piece at a time.
And the whiteboard marker or the pen and stylus
is a very easy way to build up the equation,
build up a complex concept one piece at a time
while you're talking about it.
And sometimes that enhances understandability.
The downside of writing is that it's slow.
And so if you want a long sentence,
it's very hard to write that.
So I think there are pros and cons.
And sometimes I use slides,
and sometimes I use a whiteboard or a stylus.
- The slowness of a whiteboard is also its upside,
'cause it forces you to reduce everything to the basics.
So some of your talks involve the whiteboard.
I mean, there's really not, you go very slowly,
and you really focus on the most simple principles.
And that's a beautiful,
that enforces a kind of a minimalism of ideas
that I think is, surprisingly at least for me,
is great for education.
Like a great talk, I think,
is not one that has a lot of content.
A great talk is one that just clearly says
a few simple ideas.
And I think you,
the whiteboard somehow enforces that.
Peter Abbeel, who's now one of the top roboticists
and reinforcement learning experts in the world,
was your first PhD student.
So I bring him up just because I kind of imagine
this must have been an interesting time in your life.
Do you have any favorite memories of working with Peter,
since you're your first student in those uncertain times,
especially before deep learning really sort of blew up?
Any favorite memories from those times?
- Yeah, I was really fortunate to have had Peter Abbeel
as my first PhD student.
And I think even my long-term professional success
builds on early foundations or early work
that Peter was so critical to.
So I was really grateful to him for working with me.
What not a lot of people know
is just how hard research was and still is.
Peter's PhD thesis was using reinforcement learning
to fly helicopters.
And so, actually even today,
the website heli.stanford.edu,
H-E-L-I.stanford.edu is still up.
You can watch videos of us using reinforcement learning
to make a helicopter fly upside down,
fly loose, so it's cool.
- It's one of the most incredible robotics videos ever.
So people should watch it.
- Oh yeah, thank you. - It's inspiring.
That's from like 2008 or seven or six, like that range.
- Something like that, yeah, so we're 10 years old.
- That was really inspiring to a lot of people, yeah.
- What not many people see is how hard it was.
So Peter and Adam Coates and Morgan Quigley and I
were working on various versions of the helicopter,
and a lot of things did not work.
For example, turns out one of the hardest problems we had
was when the helicopter is flying around upside down,
doing stunts, how do you figure out the position?
How do you localize a helicopter?
So we wanted to try all sorts of things.
Having one GPS unit doesn't work
'cause you're flying upside down,
GPS unit is facing down, so you can't see the satellites.
So we experimented trying to have two GPS units,
one facing up, one facing down.
So if you flip over, that didn't work
'cause the downward facing one couldn't synchronize
if you're flipping quickly.
Morgan Quigley was exploring this crazy,
complicated configuration of specialized hardware
to interpret GPS signals.
A look into FPG is completely insane.
Spent about a year working on that, didn't work.
So I remember Peter, great guy, him and me,
sitting down in my office,
looking at some of the latest things we had tried
that didn't work and saying, "Done it, what now?"
Because we tried so many things and it just didn't work.
In the end, what we did, and Adam Coates was crucial to this,
was put cameras on the ground
and use cameras on the ground to localize the helicopter.
And that solved the localization problem
so that we could then focus on the reinforcement learning
and inverse reinforcement learning techniques
so it didn't actually make the helicopter fly.
And I'm reminded, when I was doing this work at Stanford,
around that time, there was a lot of reinforcement learning
theoretical papers, but not a lot of practical applications.
So the autonomous helicopter work for flying helicopters
was one of the few practical applications
of reinforcement learning at the time,
which caused it to become pretty well-known.
I feel like we might've almost come full circle with today.
There's so much buzz, so much hype, so much excitement
about reinforcement learning.
But again, we're hunting for more applications
of all of these great ideas
that the communities come up with.
- What was the drive, sort of in the face of the fact
that most people are doing theoretical work,
what motivate you in the uncertainty and the challenges
to get the helicopter, sort of to do the applied work,
to get the actual system to work?
Yeah, in the face of fear, uncertainty,
sort of the setbacks that you mentioned for localization.
- I like stuff that works.
- In the physical world.
So like, it's back to the shredder.
- You know, I like theory,
but when I work on theory myself, and this is personal taste,
I'm not saying anyone else should do what I do,
but when I work on theory, I personally enjoy it more
if I feel that the work I do will influence people,
have positive impact, or help someone.
I remember when, many years ago,
I was speaking with a mathematics professor,
and it kind of just said, "Hey, why do you do what you do?"
And then he said, he actually,
he had stars in his eyes when he answered,
and this mathematician,
not from Stanford, different university,
he said, "I do what I do because it helps me
to discover truth and beauty in the universe."
He had stars in his eyes when he said that.
And I thought, that's great.
I don't want to do that.
I think it's great that someone does that,
fully support the people that do it,
a lot of respect for people that do that,
but I am more motivated when I can see a line
to how the work that my teams and I are doing helps people.
The world needs all sorts of people.
I'm just one type.
I don't think everyone should do things
the same way as I do,
but when I delve into either theory or practice,
if I personally have conviction
that here's a pathway to help people,
I find that more satisfying.
To have that conviction.
- That's your path.
You were a proponent of deep learning
before it gained widespread acceptance.
What did you see in this field that gave you confidence?
What was your thinking process like
in that first decade of the,
I don't know what that's called,
2000s, the aughts?
- Yeah, I can tell you the thing we got wrong
and the thing we got right.
The thing we really got wrong was the importance of,
the early importance of unsupervised learning.
So early days of Google Brain,
we put a lot of effort into unsupervised learning
rather than supervised learning.
And there was this argument,
I think it was around 2005 after NeurIPS,
at that time called NIPS,
but now NeurIPS had ended.
And Geoff Hinton and I were sitting in the cafeteria
outside the conference,
we had lunch, we were just chatting.
And Geoff pulled out this napkin,
he started sketching this argument on a napkin.
It was very compelling, I'll repeat it.
Human brain has about a hundred trillion,
so there's 10 to the 14 synaptic connections.
You will live for about 10 to the nine seconds.
That's 30 years.
You actually live for two by 10 to the nine,
maybe three by 10 to the nine seconds.
So just let's say 10 to the nine.
So if each synaptic connection,
each weight in your brain's neural network
has just a one bit parameter,
that's 10 to the 14 bits you need to learn
in up to 10 to the nine seconds of your life.
So via this simple argument,
which is a lot of problems, it's very simplified,
that's 10 to the five bits per second
you need to learn in your life.
And I have a one-year-old daughter,
I am not pointing out 10 to five bits per second
§04Transcript · 24:56–33:10
of labels to her.
So, and I think I'm a very loving parent,
but I'm just not gonna do that.
So from this, you know, very crude,
definitely problematic argument.
There's just no way that most of what we know
is through supervised learning.
But where you get so many bits of information
is from sucking in images, audio,
just experiences in the world.
And so that argument,
and there are a lot of known forces argument,
you know, we should go into,
really convinced me that there's a lot of power
to unsupervised learning.
So that was the part that we actually maybe got wrong.
I still think unsupervised learning is really important,
but in the early days, you know, 10, 15 years ago,
a lot of us thought that was the path forward.
- Oh, so you're saying that that perhaps
was the wrong intuition for the time.
- For the time, that was the part we got wrong.
The part we got right was the importance of scale.
So Adam Coates, another wonderful person,
fortunate to have worked with him,
he was in my group at Stanford at the time,
and Adam had run these experiments at Stanford
showing that the bigger we train a learning algorithm,
the better its performance.
And it was based on that,
there was a graph that Adam generated, you know,
where the X-axis, Y-axis lines going up into the right.
So the bigger you make this thing,
the better its performance, accuracy is the vertical axis.
So it was really based on that chart that Adam generated
that he gave me the conviction
that we could scale these models way bigger
than what we could on a few CPUs,
which is what we had at Stanford,
that we could get even better results.
And it was really based on that one figure
that Adam generated that gave me the conviction
to go with Sebastian Thrun to pitch, you know,
starting a project at Google,
which became the Google Brain Project.
- Google Brain, you go find Google Brain.
And there the intuition was scale
will bring performance for the system,
so we should chase a larger and larger scale.
And I think people don't realize how groundbreaking of it,
it's simple, but it's a groundbreaking idea
that bigger datasets will result in better performance.
- It was controversial at the time.
Some of my well-meaning friends,
you know, senior people in the machine learning community,
I won't name, but who's people,
some of whom we know,
my well-meaning friends came
and were trying to give me friendly advice,
like, "Hey, Andrew, why are you doing this?
This is crazy.
It's in the near natural architecture.
Look at these architectures of building.
You just want to go for scale?
Like, this is a bad career move."
So my well-meaning friends, you know,
some of them were trying to talk me out of it.
But I find that if you want to make a breakthrough,
you sometimes have to have conviction
and do something before it's popular,
since that lets you have a bigger impact.
- Let me ask you just in a small tangent on that topic.
I find myself arguing with people saying that greater scale,
especially in the context of active learning,
so very carefully selecting the dataset,
but growing the scale of the dataset,
is going to lead to even further breakthroughs
in deep learning.
And there's currently pushback at that idea,
that larger datasets are no longer...
So you want to increase the efficiency of learning.
You want to make better learning mechanisms.
And I personally believe that just bigger datasets
will still, with the same learning methods we have now,
will result in better performance.
What's your intuition at this time on this dual side?
Is do we need to come up with better architectures
for learning, or can we just get bigger, better datasets
that will improve performance?
- I think both are important.
And it's also problem dependent.
So for a few datasets, we may be approaching
your Bayes error rate, or approaching or surpassing
human level performance.
And then there's that theoretical ceiling
that we will never surpass a Bayes error rate.
But then I think there are plenty of problems
where we're still quite far from either
human level performance or from Bayes error rate.
And bigger datasets with new networks,
without further algorithmic innovation,
will be sufficient to take us further.
But on the flip side, if we look at the recent breakthroughs
using transforming networks or language models,
it was a combination of novel architecture,
but also scale had a lot to do with it.
If we look at what happened with GP2 and BERT,
I think scale was a large part of the story.
- Yeah, that's not often talked about,
is the scale of the dataset it was trained on
and the quality of the dataset,
because there's some, so it was like redded threads
that had, they were uprated highly.
So there's already some weak supervision
on a very large dataset
that people don't often talk about, right?
- I find that today we have maturing processes
and managing code, things like Git, right?
Version control.
It took a long time to evolve the good processes.
I remember when my friends and I were emailing
each other C++ files in email,
but then we had, was it CVS or version Git?
Maybe something else in the future.
We're very immature in terms of tools for managing data
and think about the clean data
and how to solve the very hot, messy data problems.
I think there's a lot of innovation there to be had still.
I love the idea that you were versioning through email.
- I'll give you one example.
When we work with manufacturing companies,
it's not at all uncommon for there to be multiple labelers
that disagree with each other, right?
And so we would, doing the work in visual inspection,
we will take, say a plastic pot and show it to one inspector
and the inspector, sometimes very opinionated,
they'll go, "Clearly that's a defect.
This scratch, unacceptable.
Gotta reject this pot."
Take the same pot to different inspector,
different, very opinionated,
"Clearly the scratch is small.
It's fine. Don't throw it away.
You're going to make us use."
And then sometimes you take the same plastic pot,
show it to the same inspector in the afternoon,
as opposed to in the morning,
and very opinionated go in the morning,
they say, "Clearly this is okay."
In the afternoon, equally confident,
"Clearly this is a defect."
And so what is an AI team supposed to do
if sometimes even one person
doesn't agree with himself or herself in the span of a day?
So I think these are the types of very practical,
very messy data problems that my teams wrestle with.
In the case of large consumer internet companies,
where you have a billion users, you have a lot of data,
you don't worry about it.
Just take the average, it kind of works.
But in a case of other industry settings,
we don't have big data.
If you have just a small data, very small data sets,
maybe you have a hundred defective parts,
or a hundred examples of a defect.
If you have only a hundred examples,
these little labeling errors,
if 10 of your hundred labels are wrong,
that actually is 10% of your data set has a big impact.
So how do you clean this up?
What are you supposed to do?
This is an example of the types of things that my teams,
this is a landing AI example,
are wrestling with to deal with small data,
which comes up all the time
once you're outside consumer internet.
- Yeah, that's fascinating.
So then you invest more effort and time
in thinking about the actual labeling process.
What are the labels?
What are the, how are disagreements resolved
and all those kinds of like pragmatic real world problems.
That's a fascinating space.
- Yeah, I find that actually when I'm teaching at Stanford,
I increasingly encourage students at Stanford
to try to find their own project for the end of term project
rather than just downloading someone else's
nicely clean data set.
It's actually much harder if you need to go
and define your own problem and find your own data set
rather than go to one of the several good websites,
very good websites with clean scoped data sets
that you could just work on.
- You're now running three efforts,
the AI Fund, Landing AI, and DeepLearning.ai.
As you've said, the AI Fund is involved
in creating new companies from scratch.
Landing AI is involved in helping
already established companies do AI
and DeepLearning.ai is for education of everyone else
§05Transcript · 33:14–40:53
or of individuals interested of getting into the field
and excelling in it.
So let's perhaps talk about each of these areas.
First, DeepLearning.ai, how, the basic question,
how does a person interested in deep learning
get started in the field?
- DeepLearning.ai is working to create causes
to help people break into AI.
So my machine learning course that I taught
through Stanford remains one of the most popular causes
on Coursera.
- To this day, it's probably one of the courses,
sort of, if I ask somebody,
how did you get into machine learning
or how did you fall in love with machine learning
or what gets you interested,
it always goes back to Andrew Yang at some point.
The amount of people you've influenced is ridiculous.
So for that, I'm sure I speak for a lot of people
say big thank you.
- No, yeah, thank you.
You know, I was once reading a news article,
I think it was tech review
and I'm gonna mess up the statistic,
but I remember reading an article that said
something like one third of our programmers are self-taught.
I may have the number one third wrong,
it was two thirds.
But when I read that article, I thought,
this doesn't make sense.
Everyone is self-taught.
So, 'cause you teach yourself, I don't teach people.
I just- - That's well put.
So yeah, so how does one get started in deep learning
and where does deeplearning.ai fit into that?
- So the deep learning specialization
offered by deep learning.ai is,
I think it was Coursera's top specialization,
it might still be.
So it's a very popular way for people
to take that specialization,
to learn about everything from neural networks
to how to tune in your network.
So what does a conf net do?
What is a RNN or a sequence model
or what is an attention model?
And so the deep learning specialization
steps everyone through those algorithms.
So you deeply understand it and can implement it
and use it for whatever application.
- From the very beginning?
So what would you say are the prerequisites
for somebody to take the deep learning specialization
in terms of maybe math or programming background?
- Yeah, need to understand basic programming
since there are pro exercises in Python.
And the math prereq is quite basic.
So no calculus is needed.
If you know calculus is great, you get better intuitions,
but deliberately try to teach that specialization
without requiring calculus.
So I think high school math would be sufficient.
If you know how to multiply two matrices,
I think that's great.
- So a little basic linear algebra is great.
- Basic linear algebra,
even very, very basic linear algebra in some programming.
I think that people that have done
the machine learning course
will find the deep learning specialization a bit easier,
but it's also possible to jump
into the deep learning specialization directly,
but it'll be a little bit harder
since we tend to go over faster concepts
like how does gradient descent work
and what is the objective function,
which is covered more slowly in the machine learning course.
- Could you briefly mention some of the key concepts
in deep learning that students should learn
that you envision them learning in the first few months,
in the first year or so?
- So if you take the deep learning specialization,
you learn the foundations of what is a neural network,
how do you build up a neural network
from a single logistic unit,
to a stack of layers,
to different activation functions.
You learn how to train the neural networks.
One thing I'm very proud of in that specialization
is we go through a lot of practical know-how
of how to actually make these things work.
So what are the differences
between different optimization algorithms?
What do you do if the algorithm overfits?
So how do you tell if the algorithm is overfitting?
When do you collect more data?
When should you not bother to collect more data?
I find that even today, unfortunately,
there are engineers that will spend six months
trying to pursue a particular direction,
such as collect more data,
because we heard more data is valuable.
But sometimes you could run some tests
and could have figured out six months earlier
that for this particular problem,
collecting more data isn't going to cut it.
So just don't spend six months collecting more data,
spend your time modifying the architecture
or trying something else.
So go through a lot of the practical know-how
so that when someone,
when you take the deep learning specialization,
you have those skills to be very efficient
in how you build these networks.
- So dive right in to play with the network,
to train it, to do the inference on a particular dataset,
to build intuition about it
without building it up too big
to where you spend, like you said, six months learning,
building up your big project
without building any intuition of a small,
a small aspect of the data that could already tell you
everything you need to know about that data.
- Yes, and also the systematic frameworks of thinking
for how to go about building practical machine learning.
Maybe to make an analogy, when we learn to code,
we have to learn the syntax of some programming language,
right, be it Python or C++ or Octave or whatever.
But the equally important
or maybe even more important part of coding
is to understand how to string together
these lines of code into coherent things.
So, you know, when should you put something
in a function call and when should you not?
How do you think about abstraction?
So those frameworks are what makes a programmer efficient,
even more than understanding the syntax.
I remember when I was an undergrad at Carnegie Mellon,
one of my friends would debug their code
by first trying to compile it,
and then it was C++ code.
And then every line that the syntax error,
they want to get rid of the syntax errors
as quickly as possible.
So how do you do that?
Well, they would delete every single line of code
with a syntax error.
So really efficient for getting rid of syntax errors,
but horrible debugging errors.
So I think, so we learn how to debug.
And I think in machine learning,
the way you debug a machine learning program
is very different than the way you do binary search
or whatever, or use a debugger,
like trace through the code
in the traditional software engineering.
So it's an evolving discipline,
but I find that the people that are really good
at debugging machine learning algorithms
are easily 10X, maybe 100X faster
at getting something to work.
So-
- And the basic process of debugging is,
so the bug in this case,
why isn't this thing learning, improving,
sort of going into the questions of overfitting
and all those kinds of things.
That's the logical space that the debugging is happening in
with neural networks.
- Yeah, often the question is, why doesn't it work yet?
Or can I expect this to eventually work?
And what are the things I could try?
Change the architecture, more data, more regularization,
different optimization algorithm,
different types of data.
So to answer those questions systematically,
so that you don't heading down the,
so you don't spend six months heading down the blind alley
before someone comes and says,
why did you spend six months doing this?
- What concepts in deep learning
do you think students struggle the most with?
Or sort of is the biggest challenge for them
once they get over that hill?
It hooks them and it inspires them and they really get it.
- Similar to learning mathematics,
I think one of the challenges of deep learning
is that there are a lot of concepts
that build on top of each other.
If you ask me what's hard about mathematics,
I have a hard time pinpointing one thing.
Is it addition, subtraction?
Is it a carry?
Is it multiplication?
There's just a lot of stuff.
I think one of the challenges of learning math
and of learning certain technical fields
is that there are a lot of concepts.
And if you miss a concept,
then you're kind of missing the prerequisite
§06Transcript · 40:55–49:08
for something that comes later.
So in the deep learning specialization,
try to break down the concepts to maximize the odds
of each component being understandable.
So when you move on to the more advanced thing,
we learn conf nets.
Hopefully you have enough intuitions
from the earlier sections to then understand
why we structure conf nets in a certain way.
And then eventually why we build RNNs on LSTMs
or attention model in a certain way,
building on top of the earlier concepts.
Actually, I'm curious, you do a lot of teaching as well.
Do you have a favorite,
this is the hard concept moment in your teaching?
- Well, I don't think anyone's ever turned
the interview on me.
Matthew, you're first.
(laughing)
- I think that's a really good question.
Yeah, it's really hard to capture the moment
when they struggle.
I think you put it really eloquently.
I do think there's moments that are like aha moments
that really inspire people.
I think for some reason, reinforcement learning,
especially deep reinforcement learning
is a really great way to really inspire people
and get what the use of neural networks can do.
Even though neural networks really are just a part
of the deep RL framework,
but it's a really nice way to paint the entirety
of the picture of a neural network being able to learn
from scratch, knowing nothing, and explore the world
and pick up lessons.
I find that a lot of the aha moments happen
when you use deep RL to teach people about neural networks,
which is counterintuitive.
I find like a lot of the inspired sort of fire
in people's passion, people's eyes,
comes from the RL world.
Do you find reinforcement learning to be a useful part
of the teaching process or no?
- I still teach reinforcement learning
in one of my Stanford classes.
And my PhD thesis was on reinforcement learning.
So I currently love the field.
I find that if I'm trying to teach students
the most useful techniques for them to use today,
I end up shrinking the amount of time
I talk about reinforcement learning.
It's not what's working today.
Now our world changes so fast.
Maybe it'll be totally different in a couple of years.
But I think we need a couple more things
for reinforcement learning to get there.
- To actually get there, yeah.
- One of my teams is looking to reinforcement learning
for some robotic control tasks.
So I see the applications,
but if you look at it as a percentage of all of the impact
of the types of things we do,
is at least today, outside of playing video games
in a few of the games, the scope.
Actually at NeurIPS, a bunch of us were standing around
saying, "Hey, what's your best example
"of an actual deployed reinforcement learning application?"
And among senior machine learning researchers.
And again, there are some emerging ones,
but there are not that many great examples.
- I think you're absolutely right.
The sad thing is there hasn't been a big application
impact for real-world application reinforcement learning.
I think its biggest impact to me has been in the toy domain,
in the game domain, in the small example.
That's what I mean for educational purpose.
It seems to be a fun thing to explore neural networks with.
But I think from your perspective,
and I think that might be the best perspective,
is if you're trying to educate with a simple example
in order to illustrate how this can actually be grown
to scale and have a real-world impact,
then perhaps focusing on the fundamentals
of supervised learning in the context of a simple data set,
even like an MNIST data set is the right way,
is the right path to take.
I just, the amount of fun I've seen people have
with reinforcement learning has been great,
but not in the applied impact on the real-world setting.
So it's a trade-off, how much impact you want to have
versus how much fun you want to have.
- Yeah, that's really cool.
And I feel like the world actually needs all sorts.
Even within machine learning,
I feel like deep learning is so exciting,
but the AI team shouldn't just use deep learning.
I find that my teams use a portfolio of tools.
And maybe that's not the exciting thing to say,
but some days we use a neural net,
some days we use a PCA.
Actually, the other day I was sitting down with my team
looking at PC residuals,
trying to figure out what's going on
with PC applied to a manufacturing problem.
And some days we use a probabilistic graphical model,
some days we use a knowledge graph,
which is one of the things
that has tremendous industry impact,
but the amount of chatter about knowledge drafts
in academia is really thin
compared to the actual real-world impact.
So I think reinforcement learning
should be in that portfolio,
and it's about balancing how much we teach
all of these things.
And the world should have diverse skills.
It'd be sad if everyone just learned one narrow thing.
- Yeah, the diverse skill
help you discover the right tool for the job.
What is the most beautiful, surprising,
or inspiring idea in deep learning to you?
Something that captivated your imagination.
Is it the scale that could be,
the performance that could be achieved with scale,
or is there other ideas?
- I think that if my only job
was being an academic researcher,
if an unlimited budget,
and didn't have to worry about short-term impact
and only focus on long-term impact,
I probably spend all my time doing research
on unsupervised learning.
I still think unsupervised learning is a beautiful idea.
At both this past NeurIPS and ICML,
I was attending workshops
or listening to various talks
about self-supervised learning,
which is one vertical segment,
maybe, of sort of unsupervised learning
that I'm excited about.
Maybe just to summarize the idea,
I guess you know the idea,
but I'll describe briefly.
- No, please.
- So here's the example of self-supervised learning.
Let's say we grab a lot of unlabeled images
off the internet.
We have infinite amounts of this type of data.
I'm gonna take each image
and rotate it by a random multiple of 90 degrees.
And then I'm going to train a supervised neural network
to predict what was the original orientation.
So has this been rotated 90 degrees,
180 degrees, 270 degrees, or zero degrees?
So you can generate an infinite amounts of labeled data
because you rotated the image,
so you know what's the ground truth label.
And so various researchers have found
that by taking unlabeled data
and making up labeled datasets
and training a large neural network on these tasks,
you can then take the hidden layer representation
and transfer it to a different task very powerfully.
Learning word embeddings,
where we take a sentence, delete a word,
predict the missing word, which is how we learn.
One of the ways we learn word embeddings
is another example.
And I think there's now this portfolio of techniques
for generating these made-up tasks.
Another one called Jigsaw would be if you take an image,
cut it up into a three by three grid,
so like a nine, three by three puzzle piece,
jump up to nine pieces and have a neural network predict
which of the nine factorial possible permutations
it came from.
So many groups, including OpenAI,
Peter Abbeel's been doing some work on this too,
Facebook, Google Brain, I think DeepMind,
oh, actually Aaron Van Der Oort has great work
on the CPC objective.
So many teams are doing exciting work
and I think this is a way to generate infinite label data.
And I find this a very exciting piece
of unsupervised learning.
- So long-term you think that's going to unlock
a lot of power in machine learning systems
is this kind of unsupervised learning?
- I don't think there's a whole enchilada.
I think it's just a piece of it.
And I think this one piece, self-supervised learning
is starting to get traction.
We're very close to it being useful.
Well, word embeddings is really useful.
I think we're getting closer and closer
to just having a significant real world impact
maybe in computer vision and video.
But I think this concept,
and I think there'll be other concepts around it.
Other unsupervised learning things that I worked on
§07Transcript · 49:10–57:10
I've been excited about.
I was really excited about sparse coding
and ICA, slow feature analysis.
I think all of these are ideas that various of us
were working on about a decade ago
before we all got distracted
by how well supervised learning was doing.
- Yeah.
So we would return to the fundamentals
of representation learning
that really started this movement of deep learning.
- I think there's a lot more work that one could explore
around this theme of ideas and other ideas
to come up with better algorithms.
- So if we could return to maybe talk quickly
about the specifics of deeplearning.ai,
the deep learning specialization perhaps.
How long does it take to complete the course,
would you say?
- The official length of the deep learning specialization
is I think 16 weeks, so about four months,
but it's go at your own pace.
So if you subscribe to the deep learning specialization,
there are people that finish that in less than a month
by working more intensely and studying more intensely.
So it really depends on the individual.
Yeah, when we created the deep learning specialization,
we wanted to make it very accessible and very affordable.
And with Coursera and deeplearning.ai's education mission,
one of the things that's really important to me
is that if there's someone for whom paying anything
is a financial hardship,
then just apply for financial aid and get it for free.
- If you were to recommend a daily schedule for people
in learning, whether it's through
the deeplearning.ai specialization
or just learning in the world of deep learning,
what would you recommend?
How would they go about day-to-day sort of specific advice
about learning, about their journey
in the world of deep learning, machine learning?
- I think getting the habit of learning is key,
and that means regularity.
So for example, we send out our weekly newsletter,
The Batch, every Wednesday.
So people know it's coming Wednesday,
you can spend a little bit of time on Wednesday,
catching up on the latest news through The Batch
on Wednesday.
And for myself, I've picked up a habit
of spending some time every Saturday
and every Sunday reading or studying.
And so I don't wake up on a Saturday
and have to make a decision.
Do I feel like reading or studying today or not?
It's just what I do.
And the fact is a habit makes it easier.
So I think if someone can get into that habit,
it's like, you know, just like we brush our teeth
every morning, I don't think about it.
If I thought about it, it's a little bit annoying
to have to spend two minutes doing that,
but it's a habit that it takes no cognitive load,
but this would be so much harder
if we have to make a decision every morning.
So, and actually that's the reason
why I wear the same thing every day as well.
It's just one less decision.
I just get up and wear my blue shirt.
So, but I think if you can get that habit,
that consistency of studying,
then it actually feels easier.
- So yeah, it's kind of amazing.
In my own life, like I play guitar every day for,
I force myself to at least for five minutes play guitar.
It's a ridiculously short period of time,
but because I've gotten into that habit,
it's incredible what you can accomplish
in a period of a year or two years.
You can become, you know, exceptionally good
at certain aspects of a thing by just doing it every day
for a very short period of time.
It's kind of a miracle that that's how it works.
It adds up over time.
- Yeah, and I think it's often not about the burst
of sustained efforts and the all-nighters,
because you can only do that a limited number of times.
It's the sustained effort over a long time.
I think, you know, reading two research papers
is a nice thing to do,
but the power is not reading two research papers.
It's reading two research papers a week for a year.
Then you've read a hundred papers
and you actually learn a lot when you read a hundred papers.
- So regularity and making learning a habit.
Do you have general other study tips
for particularly deep learning that people should,
in their process of learning,
is there some kind of recommendations
or tips you have as they learn?
- One thing I still do
when I'm trying to study something really deeply
is take handwritten notes.
It varies.
I know there are a lot of people
that take the deep learning courses during a commute
or something where it may be more awkward to take notes.
So I know it may not work for everyone,
but when I'm taking courses on Coursera,
and I still take some every now and then,
the most recent one I took
was a course on clinical trials
because I was interested about that.
I got out my little Moleskine notebook
and I was sitting at my desk,
I was just taking down notes
of what the instructor was saying.
And that act, we know that that act of taking notes,
preferably handwritten notes, increases retention.
- So as you're sort of watching the video,
just kind of pausing maybe
and then taking the basic insights down on paper?
- Yeah, so there've been a few studies.
If you search online,
you find some of these studies
that taking handwritten notes,
because handwriting is slower, as we're saying just now,
it causes you to recode the knowledge in your own words more
and that process of recoding promotes long-term retention.
This is as opposed to typing, which is fine.
Again, typing is better than nothing,
or in taking a class and not taking notes is better
than not taking any class at all.
But comparing handwritten notes and typing,
you can usually type faster.
For a lot of people, you can handwrite notes.
And so when people type,
they're more likely to just transcribe verbatim
what they heard,
and that reduces the amount of recoding.
And that actually results in less long-term retention.
- I don't know what the psychological effect there is,
but it's so true.
There's something fundamentally different
about writing, handwriting.
I wonder what that is.
I wonder if it is as simple
as just the time it takes to write is slower.
- Yeah, and because you can't write as many words,
you have to take whatever they said
and summarize it into fewer words.
And that summarization process
requires deeper processing of the meaning,
which then results in better retention.
- That's fascinating.
- Oh, and I've spent, I think, because of Coursera,
I've spent so much time studying pedagogy.
It's actually one of my passions.
I really love learning how to more efficiently
help others learn.
- Yeah, one of the things I do both when creating videos
or when we write the batch is,
I try to think, is one minute spent with us
going to be a more efficient learning experience
than one minute spent anywhere else?
And we really try to, you know,
make it time efficient for the learners
'cause, you know, everyone's busy.
So when we're editing, I often tell my teams,
every word needs to fight for its life.
And if we can delete a word, let's just delete it
and not wait, let's not waste the learners' time.
- Wow, that's so, it's so amazing that you think that way
'cause there is millions of people that are impacted
by your teaching and sort of that one minute spent
has a ripple effect, right?
Through years of time, which is fascinating to think about.
How does one make a career
out of an interest in deep learning?
Do you have advice for people?
We just talked about sort of the beginning, early steps,
but if you want to make it an entire life's journey
or at least a journey of a decade or two, how do you do it?
- So most important thing is to get started.
- Right, of course.
- And I think in the early parts of a career,
coursework, like the deep learning specialization,
is a very efficient way to master this material.
So, because, you know, instructors,
be it me or someone else, or, you know,
Lawrence Moroney teaches our TensorFlow specialization
and other things we're working on,
spend effort to try to make it time efficient
for you to learn a new concept.
So coursework is actually a very efficient way
for people to learn concepts
in the beginning parts of breaking into a new field.
In fact, one thing I see at Stanford,
some of my PhD students want to jump
into research right away.
§08Transcript · 57:11–1:05:08
And I actually tend to say, look,
in your first couple of years as a PhD student,
spend time taking courses, 'cause it lays a foundation.
It's fine if you're less productive
in your first couple of years.
You'll be better off in the longterm.
Beyond a certain point,
there's materials that doesn't exist in courses
because it's too cutting edge.
The course hasn't been created yet.
There's some practical experience
that we're not yet that good as teaching in a course.
And I think after exhausting the efficient coursework,
then most people need to go on
to either ideally work on projects,
and then maybe also continue their learning
by reading blog posts and research papers
and things like that.
Doing projects is really important.
And again, I think it's important to start small
and to just do something.
Today, you read about deep learning,
it feels like, oh, all these people
are doing such exciting things.
What if I'm not building a neural network
that changes the world?
Then what's the point?
Well, the point is sometimes building
that tiny neural network,
be it MNIST or upgrade to a fashion MNIST, to whatever.
So doing your own fun hobby project.
That's how you gain the skills
to let you do bigger and bigger projects.
I find this to be true at the individual level
and also at the organizational level.
For a company to become good at machine learning,
sometimes the right thing to do
is not to tackle the giant project,
is instead to do the small project
that lets the organization learn
and then build out from there.
But this is true both for individuals and for companies.
- To taking the first step
and then taking small steps is the key.
Should students pursue a PhD, do you think?
You can do so much.
That's one of the fascinating things in machine learning.
You can have so much impact without ever getting a PhD.
So what are your thoughts?
Should people go to grad school?
Should people get a PhD?
- I think that there are multiple good options
of which doing a PhD could be one of them.
I think that if someone's admitted to a top PhD program,
you know, at MIT, Stanford, top schools,
I think that's a very good experience.
Or if someone gets a job at a top organization,
at the top AI team,
I think that's also a very good experience.
There are some things you still need a PhD to do.
If someone's aspiration is to be a professor,
you know, at the top academic university,
you just need a PhD to do that.
But if it goes to, you know, start a company,
build a company, do great technical work,
I think a PhD is a good experience.
But I would look at the different options
available to someone, you know,
where are the places where you can get a job?
Where are the places you can get in a PhD program?
And kind of weigh the pros and cons of those.
- So just to linger on that for a little bit longer,
what final dreams and goals do you think people should have?
So what options should they explore?
So you can work in industry, so for a large company,
like Google, Facebook, Baidu,
all these large sort of companies
that already have huge teams of machine learning engineers.
You can also do within industry,
sort of more research groups
that kind of like Google Research, Google Brain.
Then you can also do, like we said,
a professor in academia.
And what else?
Oh, you can build your own company.
You can do a startup.
Is there anything that stands out between those options
or are they all beautiful different journeys
that people should consider?
- I think the thing that affects your experience more
is less are you in this company versus that company
or academia versus industry.
I think the thing that affects your experience most
is who are the people you're interacting with
in a daily basis.
So even if you look at some of the large companies,
the experience of individuals in different teams
is very different.
And what matters most is not the logo above the door
when you walk into the giant building every day.
What matters the most is who are the 10 people,
who are the 30 people you interact with every day.
So I actually tend to advise people,
if you get a job from a company,
ask who is your manager, who are your peers,
who are you actually gonna talk to?
We're all social creatures.
We tend to become more like the people around us.
And if you're working with great people,
you will learn faster.
Or if you get admitted,
if you get a job at a great company or a great university,
maybe the logo you walk in is great,
but you're actually stuck on some team
doing really work that doesn't excite you.
And then that's actually a really bad experience.
So this is true both for universities
and for large companies.
For small companies, you can kind of figure out
who you'd be working with quite quickly.
And I tend to advise people,
if a company refuses to tell you who you work with,
someone say, "Oh, join us.
"The rotation system, we'll figure it out."
I think that's a worrying answer
because it means you may not get sent to,
you may not actually get to a team
with great peers and great people to work with.
- It's actually a really profound advice
that we kind of sometimes sweep.
We don't consider too rigorously or carefully.
The people around you are really often,
especially when you accomplish great things,
it seems the great things are accomplished
because of the people around you.
So it's not about whether you learn this thing or that thing
or like you said, the logo that hangs up top,
it's the people.
That's a fascinating,
and it's such a hard search process
of finding, just like finding the right friends
and somebody to get married with and that kind of thing.
It's a very hard search, it's a people search problem.
- Yeah, but I think when someone interviews
at a university or the research lab
or the large corporation,
it's good to insist on just asking who are the people?
Who is my manager?
And if you refuse to tell me, I'm gonna think,
well, maybe that's 'cause you don't have a good answer.
It may not be someone I like.
- And if you don't particularly connect,
if something feels off with the people,
then don't stick to it.
That's a really important signal to consider.
- Yeah, yeah.
And actually in my Stanford class, CS230,
as well as an ACM talk,
I think I gave like a hour long talk on career advice,
including on the job search process and then some of these.
So you can find those videos online.
- Awesome, and I'll point them.
I'll point people to them, beautiful.
So the AI fund helps AI startups get off the ground,
or perhaps you can elaborate
on all the fun things it's involved with.
What's your advice
on how does one build a successful AI startup?
- In Silicon Valley, a lot of startup failures
come from building a product that no one wanted.
So when, cool technology, but who's gonna use it?
So I think I tend to be very outcome driven
and customer obsessed.
Ultimately, we don't get to vote if we succeed or fail.
It's only the customer that they're the only one
that gets a thumbs up or thumbs down votes in the long term.
In the short term, there are various people
that get various votes,
but in the long term, that's what really matters.
- So as you build a startup,
you have to constantly ask the question,
will the customer give a thumbs up on this?
- I think so.
I think startups that are very customer focused,
customer obsessed, deeply understand the customer
and are oriented to serve the customer
are more likely to succeed.
With the provisional,
I think all of us should only do things
that we think create social good
and moves the world forward.
So I personally don't wanna build
addictive digital products just to sell a lot of ads.
There are things that could be lucrative that I won't do,
but if we can find ways to serve people in meaningful ways,
I think those can be great things to do,
either in the academic setting or in a corporate setting
or a startup setting.
- So can you give me the idea of why you started the AI fund?
- I remember when I was leading the AI group at Baidu,
§09Transcript · 1:05:13–1:13:32
I had two jobs, two parts of my job.
One was to build an AI engine
to support the existing businesses.
And that was running, just ran, just performed by itself.
The second part of my job at the time,
which was to try to systematically initiate
new lines of businesses
using the company's AI capabilities.
So the self-driving car team came out of my group,
the smart speaker team,
similar to what is Amazon Echo or Alexa in the US,
but we actually announced it before Amazon did.
So Baidu wasn't following Amazon.
That came out of my group,
and I found that to be actually the most fun part of my job.
So what I wanted to do was to build AI fund
as a startup studio
to systematically create new startups from scratch.
With all the things we can now do with AI,
I think the ability to build new teams,
to go after this rich space of opportunities
is a very important way to,
very important mechanism to get these projects done
that I think will move the world forward.
So I've been fortunate to have built a few teams
that had a meaningful, positive impact.
And I felt that we might be able to do this
in a more systematic, repeatable way.
So a startup studio is a relatively new concept.
There are maybe dozens of startup studios right now,
but I feel like all of us,
many teams are still trying to figure out
how do you systematically build companies
with a high success rate?
So I think even a lot of my venture capital friends
are seem to be more and more building companies
rather than investing in companies.
But I find it a fascinating thing to do
to figure out the mechanisms
by which we could systematically build successful teams,
successful businesses in areas that we find meaningful.
- So a startup studio is something,
is a place and a mechanism for startups
to go from zero to success,
to try to develop a blueprint.
- It's actually a place for us
to build startups from scratch.
So we often bring in founders and work with them,
or maybe even have existing ideas
that we match founders with.
And then this launches, hopefully,
into successful companies.
- So how close are you to figuring out a way
to automate the process of starting from scratch
and building successful AI startup?
- Yeah, I think we've been constantly improving
and iterating on our processes, how we do that.
So things like, how many customer calls do we need to make
in order to get customer validation?
How do we make sure this technology can be built?
Quite a lot of our businesses need cutting edge
machine learning algorithms.
So kind of algorithms that are developed
in the last one or two years.
And even if it works in a research paper,
it turns out taking the production is really hard.
There are a lot of issues for making these things work
in the real life that are not widely addressed in academia.
So how do we validate that this is actually doable?
How do you build a team,
get the specialized domain knowledge,
be it in education or healthcare,
or whatever sector we're focusing on?
So I think we've actually getting,
we've been getting much better at giving the entrepreneurs
a high success rate, but I think we're still,
I think the whole world is still
in the early phases of figuring this out.
- But do you think there is some aspects of that process
that are transferable from one startup to another,
to another, to another?
- Yeah, very much so.
You know, starting a company to most entrepreneurs
is a really lonely thing.
And I've seen so many entrepreneurs not know
how to make certain decisions.
Like, when do you need to, how do you do B2B sales?
If you don't know that, it's really hard.
Or how do you market this efficiently
other than buying ads, which is really expensive?
Are there more efficient tactics for that?
Or for a machine learning project,
basic decisions can change the course
of whether a machine learning product works or not.
And so there are so many hundreds of decisions
that entrepreneurs need to make,
and making a mistake in a couple of key decisions
can have a huge impact on the fate of the company.
So I think a startup studio provides a support structure
that makes starting a company
much less of a lonely experience.
And also when facing with these key decisions,
like trying to hire your first VP of engineering,
what's a good selection criteria?
How do you source?
Should I hire this person or not?
By having an ecosystem around the entrepreneurs,
the founders, to help,
I think we help them at the key moments
and hopefully significantly make them more enjoyable
and then higher success rate.
- So they have somebody to brainstorm with
in these very difficult decision points.
- And also to help them recognize
what they may not even realize is a key decision point.
Right?
That's the first and probably the most important part.
Yeah.
- Actually, I can say one other thing.
I think building companies is one thing,
but I feel like it's really important
that we build companies that move the world forward.
For example, within the AI fund team,
there was once an idea for a new company
that if it had succeeded,
would have resulted in people watching a lot more videos
in a certain narrow vertical type of video.
And I looked at it, the business case was fine,
the revenue case was fine,
but I looked at it and just said,
"I don't want to do this.
I don't actually just want to have a lot more people
watch this type of video."
Wasn't educational.
It was educational, maybe.
And so I cut the idea on the basis
that I didn't think it would actually help people.
So whether building companies or work of enterprises
or doing personal projects,
I think it's up to each of us to figure out
what's the difference we want to make in the world.
- With Learning AI,
you help already established companies
grow their AI and machine learning efforts.
How does a large company integrate machine learning
into their efforts?
- AI is a general purpose technology,
and I think it would transform every industry.
Our community has already transformed to a large extent
to software internet sector.
Most software internet companies,
they're outside the top, right?
Five or six or three or four,
already have reasonable machine learning capabilities
or are getting there.
It's still room for improvement.
But when I look outside the software internet sector,
everything from manufacturing, agriculture,
healthcare, logistics, transportation,
there's so many opportunities
that very few people are working on.
So I think the next wave for AI
is for us to also transform all of those other industries.
There was a McKinsey study
estimating $13 trillion of global economic growth.
US GDP is $19 trillion,
so 13 trillion is a big number,
or PWC estimate $16 trillion.
So whatever number is, it's large.
But the interesting thing to me was a lot of that impact
would be outside the software internet sector.
So we need more teams to work with these companies
to help them adopt AI.
And I think this is one of the things
that'll help drive global economic growth
and make humanity more powerful.
- And like you said, the impact is there.
So what are the best industries,
the biggest industries where AI can help,
perhaps outside the software tech sector?
- Frankly, I think it's all of them.
Some of the ones I'm spending a lot of time on
are manufacturing, agriculture, looking into healthcare.
For example, in manufacturing,
we do a lot of work in visual inspection,
where today there are people standing around
using the eye, human eye,
to check if this plastic part or the smartphone
or this thing has a scratch or a dent or something in it.
We can use a camera to take a picture,
use a algorithm, deep learning and other things
to check if it's defective or not,
and thus help factories improve yield
and improve quality and improve throughput.
It turns out the practical problems we run into
are very different than the ones you might read about
in most research papers.
The data sets are really small,
so we face small data problems.
You know, the factories keep on changing the environment,
§10Transcript · 1:13:35–1:21:30
so it works well on your test set,
but guess what?
You know, something changes in the factory.
The lights go on or off.
Recently, there was a factory
in which a bird flew through the factory
and pooped on something,
and so that changed stuff.
And so increasing our algorithmic robustness,
so all the changes happen in the factory,
I find that we run into a lot of practical problems
that are not as widely discussed in academia,
and it's really fun kind of being on the cutting edge,
solving these problems before, you know,
maybe before many people are even aware
that there is a problem there.
- And that's such a fascinating space.
You're absolutely right,
but what is the first step that a company should take?
It's just a scary leap into this new world
of going from the human eye inspecting
to digitizing that process,
having a camera, having an algorithm.
What's the first step?
Like, what's the early journey that you recommend
that you see these companies taking?
- I published a document
called the "AI Transformation Playbook."
I found this online and taught briefly
in the AI for Everyone course on Coursera
about the long-term journey that companies should take,
but the first step is actually to start small.
I've seen a lot more companies fail
by starting too big than by starting too small.
Take even Google.
You know, most people don't realize how hard it was
and how controversial it was in the early days.
So when I started Google Brain, it was controversial.
People thought deep learning,
tried it, didn't work.
Why would you want to do deep learning?
So my first internal customer within Google
was the Google speech team,
which is not the most lucrative project in Google,
not the most important.
It's not web search or advertising,
but by starting small,
my team helped the speech team
build a more accurate speech recognition system.
And this caused their peers, other teams,
to start to have more faith in deep learning.
My second internal customer was the Google Maps team,
where we used computer vision to read house numbers
from basic street view images
to more accurately locate houses within Google Maps,
so improve the quality of the geodata.
And it was only after those two successes
that I then started a more serious conversation
with the Google Ads team.
- And so there's a ripple effect
that you showed that it works in these cases,
and then it just propagates through the entire company,
that this thing has a lot of value and use for us.
- I think the early small-scale projects,
it helps the teams gain faith,
but also helps the teams learn what these technologies do.
I still remember when our first GPU server,
it was a server under some guy's desk.
And that taught us early important lessons
about how do you have multiple users share a set of GPUs,
which was really not obvious at the time,
but those early lessons were important.
We learned a lot from that first GPU server
that later helped the teams think through
how to scale it up to much larger deployments.
- Are there concrete challenges that companies face
that you see is important for them to solve?
- I think building and deploying
machine learning systems is hard.
There's a huge gulf between something that works
in a Jupyter notebook on your laptop
versus something that runs
in a production deployment setting
in a factory or agriculture plant or whatever.
So I see a lot of people get something to work
on your laptop and say,
"Oh, look what I've done."
And that's great, that's hard.
That's a very important first step,
but a lot of teams underestimate the rest of the steps needed.
So for example, I've heard this exact same conversation
between a lot of machine learning people and business people.
The machine learning person says,
"Look, my algorithm does well on the test set.
It's a clean test set, I didn't peak."
And the business person says, "Thank you very much,
but your algorithm sucks, it doesn't work."
And the machine learning person says,
"No, wait, I did well on the test set."
And I think there is a gulf between what it takes
to do well on a test set on your hard drive
versus what it takes to work well in a deployment setting.
Some common problems, robustness and generalization.
You deploy something in the factory,
maybe they chop down a tree outside the factory
so the tree no longer covers a window
and the lighting is different.
So the test set changes.
And in machine learning, and especially in academia,
we don't know how to deal with test set distributions
that are dramatically different
than the training set distribution.
You know, there's research,
there's stuff like domain annotation, transfer learning.
You know, there are people working on it,
but we're really not good at this.
So how do you actually get this to work?
Because your test set distribution is going to change.
And I think also, if you look at the number of lines of code
in the software system, the machine learning model
is maybe 5% or even fewer relative
to the entire software system you need to build.
So how do you get all that work done
and make it reliable and systematic?
- So good software engineering work is fundamental here
to building a successful small machine learning system.
- Yes, and the software system needs to interface
with people's workloads.
So machine learning is automation on steroids.
If we take one task out of many tasks
that are done in the factory,
so the factory does lots of things.
One task is visual inspection.
If we automate that one task, it can be really valuable,
but you may need to redesign a lot of other tasks
around that one task.
For example, say the machine learning algorithm
says this is defective.
What are you supposed to do?
Do you throw it away?
Do you get a human to double check?
Do you want to rework it or fix it?
So you need to redesign a lot of tasks
around that thing you've now automated.
So planning for the change management
and making sure that the software you write
is consistent with the new workflow.
And you take the time to explain to people
what needs to happen.
So I think what landing AI has become good at,
and then I think we learn by making missteps
and painful experiences.
What we've become good at is working with our partners
to think through all the things beyond
just the machine learning model,
that you put in the notebook,
but to build the entire system,
manage the change process and figure out how to deploy this
in a way that has an actual impact.
The processes that the large software tech companies use
for deploying don't work for a lot of other scenarios.
For example, when I was leading large speech teams,
if the speech recognition system goes down, what happens?
Well, alarms goes off and then someone like me would say,
"Hey, you 20 engineers, please fix this."
Right?
And then we're good.
But if you have a system go down in the factory,
there are not 20 machine learning engineers
sitting around, you can page a duty and have them fix it.
So how do you deal with the maintenance or the DevOps
or the MLOps or the other aspects of this?
So these are concepts that I think landing AI
and a few other teams are on the cutting edge of,
but we don't even have systematic terminology yet
to describe some of the stuff we do
because I think we're inventing it on the fly.
- So you mentioned some people are interested
in discovering mathematical beauty and truth
in the universe,
and you're interested in having a big positive impact
in the world.
So let me ask--
- The two are not inconsistent.
- No, they're all together.
I'm only half joking
'cause you're probably interested a little bit in both.
But let me ask a romanticized question.
So much of the work, your work and our discussion today
has been on applied AI.
Maybe you can even call narrow AI,
where the goal is to create systems
that automate some specific process
that adds a lot of value to the world.
But there's another branch of AI,
starting with Alan Turing,
that kind of dreams of creating human level
or superhuman level intelligence.
Is this something you dream of as well?
Do you think we human beings will ever build
§11Transcript · 1:21:33–1:29:03
a human level intelligence
or superhuman level intelligence system?
- I would love to get to AGI,
and I think humanity will,
but whether it takes a hundred years or 500 or 5,000,
I find hard to estimate.
- Do you have,
so some folks have worries about the different trajectories
that path would take,
even existential threats of an AGI system.
Do you have such concerns,
whether in the short term or the long term?
- I do worry about the long-term fate of humanity.
I do wonder as well,
I do worry about overpopulation on the planet Mars,
just not today.
I think there will be a day
when maybe someday in the future,
Mars will be polluted,
there are all these children dying,
and someone will look back at this video and say,
"Andrew, how was Andrew so heartless?
He didn't care about all these children
dying on the planet Mars."
And I apologize to the future viewer,
I do care about the children,
but I just don't know how to productively work on that today.
- Your picture will be in the dictionary
for the people who are ignorant
about the overpopulation on Mars.
Yes, so it's a long-term problem.
Is there something in the short term
we should be thinking about
in terms of aligning the values of our AI systems
with the values of us humans?
Sort of something that Stuart Russell
and other folks are thinking about
as this system develops more and more,
we want to make sure that it represents
the better angels of our nature,
the ethics, the values of our society.
- You know, if you take self-driving cars,
the biggest problem with self-driving cars
is not that there's some trolley dilemma,
and you teach this, so you know,
how many times when you are driving your car,
did you face this moral dilemma?
Who do I crash into?
So I think self-driving cars will run into that problem
roughly as often as we do when we drive our cars.
The biggest problem with self-driving cars
is when there's a big white truck across the road,
and what you should do is brake and not crash into it,
and the self-driving car fails and it crashes into it.
So I think we need to solve that problem first.
I think the problem with some of these discussions
about AGI, you know, alignment, the paperclip problem,
is that is a huge distraction from the much harder problems
that we actually need to address today.
Some of the hard problems we need to address today,
I think bias is a huge issue.
I worry about wealth inequality.
AI and internet are causing an acceleration
of concentration of power,
because we can now centralize data, use AI to process it.
And so industry after industry,
we've affected every industry.
So the internet industry has a lot of win-and-take modes
or win-and-take-all dynamics,
but we've infected all these other industries.
So we're also giving these other industries
win-and-take modes or win-and-take-all flavors.
So look at what Uber and Lyft did to the taxi industry.
So we're doing this type of thing to a lot of...
So we're creating tremendous wealth,
but how do we make sure that the wealth is fairly shared?
I think that...
And then how do we help people whose jobs are displaced?
I think education is part of it.
There may be even more that we need to do than education.
I think bias is a serious issue.
There are adverse uses of AI,
like deepfakes being used for various nefarious purposes.
So I worry about some teams, maybe accidentally,
and I hope not deliberately,
making a lot of noise about things,
problems in the distant future,
rather than focusing on some of the much harder problems.
- Yeah, they overshadow the problems
that we have already today.
They're exceptionally challenging, like those you said,
and even the silly ones,
but the ones that have a huge impact,
which is the lighting variation
outside of your factory window.
That ultimately is what makes the difference
between, like you said, the Jupiter notebook
and something that actually transforms
an entire industry, potentially.
- Yeah, and I think, and just to,
some companies, when a regulator comes to you and says,
"Look, your product is messing things up.
"Fixing it may have a revenue impact."
Well, it's much more fun to talk to them
about how you promised not to wipe out humanity
than to face the actually really hard problems we face.
- So your life has been a great journey,
from teaching to research to entrepreneurship.
Two questions.
One, are there regrets,
moments that if you went back, you would do differently?
And two, are there moments you're especially proud of,
moments that made you truly happy?
- You know, I've made so many mistakes.
It feels like every time I discover something,
I go, "Why didn't I think of this five years earlier
"or even 10 years earlier?"
And sometimes I read a book and I go,
"I wish I read this book 10 years ago.
"My life would have been so different."
Although that happened recently.
And then I was thinking,
"If only I read this book when we're starting up Coursera,
"it could have been so much better."
But I discovered the book had not yet been written
when we were starting Coursera,
so that made me feel better.
But I find that the process of discovery,
we keep on finding out things
that seem so obvious in hindsight,
but it always takes us so much longer
than I wish to figure it out.
- So on the second question,
are there moments in your life that,
if you look back, that you're especially proud of
or you're especially happy,
that filled you with happiness and fulfillment?
- Well, two answers.
One, does my daughter know of her?
- Yes, of course.
- She's like, "No matter how much time I spend with her,
"I just can't spend enough time with her."
- Congratulations, by the way.
- Thank you.
And then second is helping other people.
I think, to me, I think the meaning of life
is helping others achieve whatever are their dreams.
And then also to try to move the world forward
by making humanity more powerful as a whole.
So the times that I felt most happy and most proud
was when I felt someone else allowed me the good fortune
of helping them a little bit on the path to their dreams.
- I think there's no better way to end it
than talking about happiness and the meaning of life.
So Andrew, it's a huge honor.
Me and millions of people thank you
for all the work you've done.
Thank you for talking today.
- Thank you so much, thanks.
- Thanks for listening to this conversation with Andrew Ng.
And thank you to our presenting sponsor, Cash App.
Download it, use code LEXPODCAST.
You'll get $10 and $10 will go to FIRST,
an organization that inspires and educates young minds
to become science and technology innovators of tomorrow.
If you enjoy this podcast, subscribe on YouTube,
give it five stars on Apple Podcast,
support on Patreon, or simply connect with me on Twitter
at Lex Friedman.
And now let me leave you with some words of wisdom
from Andrew Ng.
Ask yourself if what you're working on
succeeds beyond your wildest dreams,
would you have significantly helped other people?
If not, then keep searching for something else to work on.
Otherwise, you're not living up to your full potential.
Thank you for listening and hope to see you next time.
(upbeat music)
(upbeat music)