Lex Fridman PodcastJeremy Howard: fast.ai Deep Learning Courses and Research | Lex Fridman Podcast #35
EVERY SPOKEN WORD
150 min read · 30,011 words- 0:00 – 1:18
Introduction
- LFLex Fridman
The following is a conversation with Jeremy Howard. He's the founder of fast.ai, a research institute dedicated to making deep learning more accessible. He's also a distinguished research scientist at the University of San Francisco, a former president of Kaggle, as well as a top-ranking competitor there. And in general, he's a successful entrepreneur, educator, researcher and an inspiring personality in the AI community. When someone asks me, "How do I get started with deep learning?" fast.ai is one of the top places I point them to. It's free. It's easy to get started. It's insightful and accessible. And if I may say so, it has very little BS that can sometimes dilute the value of educational content on popular topics like deep learning. Fast.AI has a focus on practical application of deep learning and hands-on exploration of the cutting edge that is incredibly both accessible to beginners and useful to experts. This is the Artificial Intelligence podcast. If you enjoy it, subscribe on YouTube, give it five stars on iTunes, support it on Patreon, or simply connect with me on Twitter, @lexfridman, spelled F-R-I-D-M-A-N. And now here's my conversation with Jeremy Howard.
- 1:18 – 3:07
First program
- LFLex Fridman
What's the first program you've ever written?
- JHJeremy Howard
First program I wrote, that I remember, would be at high school. Um, (sighs) I did an assignment where I decided to try to find out if there were some, like, better musical scales than the normal 12 tone, 12 s- interval scale. So I wrote a program on my Commodore 64 in Basic that searched through other scale sizes to see if it could find one where there were, uh, more accurate, you know, uh, harmonies.
- LFLex Fridman
Like mid-tone, like finding-
- JHJeremy Howard
Like, like you want an actual exactly three to two ratio, whereas with a 12 interval scale it's not exactly three to two, for example. So that's-
- LFLex Fridman
And, and the Common-
- JHJeremy Howard
... well tempered as they say in the... (laughs)
- LFLex Fridman
In Basic on a Commodore 64?
- JHJeremy Howard
Yeah.
- LFLex Fridman
Where was the interest in music from? Or is it just technical?
- JHJeremy Howard
I did music all my life, so I played saxophone and clarinet and piano and guitar and drums and whatever, so...
- LFLex Fridman
How does that thread go through your life? Where's music today? Is it-
- JHJeremy Howard
Uh, it's not where I wish it was. I, for various reasons, couldn't really keep it going, particularly because I had a lot of problems with RSI with my fingers, and so I had to kind of like cut back anything that used hands and fingers.
- LFLex Fridman
Mm-hmm.
- JHJeremy Howard
Um, I hope one day I'll be able to get back to it healthwise.
- LFLex Fridman
So there's a love for music underlying it all?
- JHJeremy Howard
For sure, yeah.
- LFLex Fridman
What's your favorite instrument?
- JHJeremy Howard
Uh, saxophone.
- LFLex Fridman
Sax.
- JHJeremy Howard
Baritone saxophone. Well, probably bass saxophone but they're awkward.
- LFLex Fridman
Well, um, I always love it when, uh, music is coupled with programming.
- JHJeremy Howard
Mm-hmm.
- LFLex Fridman
There's something about a brain that utilizes those, that, uh, emerges with creative ideas.
- 3:07 – 15:01
Favorite programming languages
- LFLex Fridman
So you've used and studied quite a few programming languages.
- JHJeremy Howard
Mm-hmm.
- LFLex Fridman
Can you give an, an overview of what you've used? What are the pros and cons of each?
- JHJeremy Howard
Uh, my favorite programming environment almost certainly was Microsoft Access, back in like the earliest days. So that w- that was-
- LFLex Fridman
That's like-
- JHJeremy Howard
... Visual Basic for Applications which is not a good programming language, but the programming environment was fantastic. It's like, the ability to create, you know, user interfaces and tie data and actions to them and create reports and all that is... I've never seen anything as good. There's things nowadays like Airtable which are like s- small subsets of that which people love for good reason, but unfortunately nobody's ever, uh, achieved anything like that.
- LFLex Fridman
What is that? If, if you could pause on that for a second.
- JHJeremy Howard
Oh, Access?
- LFLex Fridman
Access. Is it, uh, it's fundamentally a database.
- JHJeremy Howard
Yeah, so it was a, it was a database program that Microsoft produced, uh, part of Office and it kind of withered, you know. But basically it lets you, in a totally graphical way, create tables and relationships and queries and tie them to forms and set up, you know, event handlers and, uh, calculations. And it was a very complete, powerful system designed for not m- massive, scalable things but for, like, useful little applications that I loved
- NANarrator
quickly building.
- LFLex Fridman
So what's the connection between Excel and Access?
- JHJeremy Howard
So very close. So A- Access kind of was the relational database equivalent, if you like. So people still do a lot of that stuff that should be in Access in Excel-
- LFLex Fridman
Excel.
- JHJeremy Howard
... because they know it. Excel's great as well, so, um, but it's just not as rich a programming model as VBA combined with a relational database. I've... And so I've always loved relational databases, but today programming on top of a relational database is just a lot more of a headache. You know, you generally either need to kind of y- y- you know, you need something that connects, that, that runs some kind of database server unless you use SQLite which has its own issues. Then you kind of... Often if you want to get a nice programming model you'll need to like create an... Add an ORM on top and then... I don't know, there's all these pieces-
- LFLex Fridman
Right.
- JHJeremy Howard
... to tie together and it's just a lot more work than it should be. There are people that are trying to make it easier so that... In particular I think of F Sharp, you know, Don Syme who, um, him and his team have done a great job of, um, making, uh, something like a database appear in the type system so you actually get like tab completion for fields and tables and stuff like that. Anyway, so that was kind of... Anyway, so like that whole VBA Office thing I guess was a starting point which I still miss and-... I got into standard Visual Basic, which-
- LFLex Fridman
Well, that's interesting, just to pause on that for a second.
- JHJeremy Howard
Mm-hmm.
- LFLex Fridman
It's interesting that you're connecting programming languages to, um, the ease of management of data.
- JHJeremy Howard
Yeah.
- LFLex Fridman
So in your use of programming languages, you always w- had a love and a connection with data.
- JHJeremy Howard
I've always been interested in doing useful things for myself-
- LFLex Fridman
(laughs)
- JHJeremy Howard
... and for others, which generally means, uh, getting some data and doing something with it and putting it out there again. So that's been my interest throughout. So I also did a lot of stuff with AppleScript back in the early days. Um, so it was kind of nice being able to get the computer and t- computers to talk to each other and to do things for you. And then I think that one I, the programming language I most loved then would have been Delphi, which was Object Pascal, created by Anders Hejlsberg who previously did Turbo Pascal and then went on to create .NET and then went on to create TypeScript. Delphi was amazing 'cause it was like a compiled, fast language that was as easy to use as Visual Basic.
- LFLex Fridman
Delphi, what is it similar to in, in more modern languages?
- JHJeremy Howard
Um, Visual Basic.
- LFLex Fridman
Visual Basic?
- JHJeremy Howard
Yeah. That, a compiled fast version. So I'm not sure there's anything quite like it anymore. If you took, like, C# or Java and got rid of the virtual machine and replaced it with something you could compile a small type binary. I feel like it's where, um, Swift could get to with the new SwiftUI and the cross-platform development going on.
- LFLex Fridman
Mm-hmm.
- 15:01 – 23:35
Programming languages for machine learning
- JHJeremy Howard
good enough.
- LFLex Fridman
But what do you think the future of programming looks like? What do you hope the future of programming looks like if we zoom in on the computational fields, on data science, on machine learning?
- JHJeremy Howard
I, I hope Swift is successful because the, the goal of Swift, the way Chris Lattner describes it, is to be infinitely hackable, and that's what I want. I want something where, um, me and the people I do research with, and my students can look at and change everything from top to bottom. There's nothing mysterious and magical and inaccessible.
- LFLex Fridman
Mm-hmm.
- JHJeremy Howard
Unfortunately with Python, it's the opposite of that because Python's so slow. It's, um, extremely unhackable. You get to a point where it's like, okay, from here on down, it's C. So your debugger doesn't work in the same way, your profiler doesn't work in the same way, your build system doesn't work in the same way, it's really not very hackable at all.
- LFLex Fridman
What's the, what's the part you would like to be hackable? Is it for the objective of optimizing training of neural networks, inference of neural networks? Is it performance of the system? Or is there some non-performance related just creative idea?
- JHJeremy Howard
It's, it's, it's everything. I mean, in the end, I want to be productive as a practitioner. So that means that, uh, so like at the moment, our understanding of deep learning is incredibly primitive. There's very little we understand, most things don't work very well even though it works better than anything else out there.
- LFLex Fridman
Right.
- JHJeremy Howard
There's so many opportunities to make it better. So you look at any domain area, like, I don't know, speech recognition with deep learning or natural language processing classification with deep learning or whatever. Every time I look at an area with deep learning, I always see like, oh, it's, it's terrible. There's lots and lots of obviously stupid ways to do things that need to be fixed. So then I want to be able to jump in there and quickly-
- LFLex Fridman
And, and-
- JHJeremy Howard
... experiment and make them better.
- LFLex Fridman
... you think the programming language is, um, has a role in that?
- JHJeremy Howard
Huge role. Yeah. So currently, Python, um, has a big, uh, gap in terms of our ability to, um, innovate particularly around recurrent neural networks and, um, natural language processing because, uh, 'cause it's so slow. The, the, the actual loop where we actually loop through words, we have to do that whole thing in CUDA C.
- LFLex Fridman
Mm-hmm.
- JHJeremy Howard
So we actually can't innovate with the, the kernel, the heart of that most important algorithm.
- LFLex Fridman
Mm-hmm.
- JHJeremy Howard
Um, and it's just a huge problem. And this happens all over the place. So we hit, you know, research limitations. Another example, convolutional neural networks which are actually the most popular architecture for lots of things, maybe most things in deep learning, we almost certainly should be using sparse convolutional neural networks.
- LFLex Fridman
Mm-hmm.
- JHJeremy Howard
Um, but only like two people are, because to do it, you have to rewrite all of that CUDA C level stuff. And yeah, just researchers and practitioners don't. So like there's just big gaps in like s- what people actually research on, what people actually implement, because of the programming language problem.
- LFLex Fridman
So you think, uh...... do you think it's, it's just too difficult to write in CUDA C, uh, that a programming lang- a higher level programming language like Swift should enable the, the easier imp- th- fooling around creative stuff with RNNs or with sparse convolutional networks?
- JHJeremy Howard
Kind of.
- LFLex Fridman
Who, who, who's, uh, who's at fault? Who's e- who's in charge of making it easy for a researcher to play around?
- JHJeremy Howard
I mean, no one's at fault.
- LFLex Fridman
(laughs)
- JHJeremy Howard
It's just nobody's got around to it yet, or-
- LFLex Fridman
Yeah.
- JHJeremy Howard
... it's just, it's hard, right? And, I mean, part, part of the fault is that we ignored that whole APL kind of direction most... well, nearly everybody did for 60 years, 50 years. But, uh, recently, people have been starting to reinvent pieces of that and kind of create some interesting new directions in the compiler technology. So the place, um, where that's particularly happening right now is, uh, something called MLIR, which is something that, again, Chris Lattner, the Swift guy, is leading. And, uh, yeah, 'cause it's actually not going to be Swift on its own that solves this problem.
- LFLex Fridman
Mm-hmm.
- JHJeremy Howard
Because the problem is that currently writing a acceptably fast, you know, GPU program is too complicated regardless of what language you use.
- LFLex Fridman
Right.
- 23:35 – 24:31
Fast.ai intro (to be continued later)
- LFLex Fridman
Tell me, if you could, the origin story of fast.ai. What is the motivation, its mission, its dream?
- JHJeremy Howard
So I guess the founding story is ti- heavily tied to my previous startup, which is a company called Enlitic, which was the first company to focus on deep learning for medicine.
- LFLex Fridman
Mm-hmm.
- JHJeremy Howard
And I created that because I saw there was a huge opportunity to, uh... there's a, there's a, about a 10X shortage of the number of doctors in the world, in the developing world, that we need. Um, expected it would take about 300 years to train enough doctors to meet that gap. But, um, I guessed that maybe if we used-... um, deep learning for some of the analytics. We could maybe make it so you don't need as highly trained doctors-
- LFLex Fridman
For diagnosis?
- JHJeremy Howard
... for diagnosis and treatment planning.
- LFLex Fridman
Where's the biggest benefit?
- 24:31 – 32:30
Ai and deep learning in medicine
- LFLex Fridman
Just to, before we get to fast.ai-
- JHJeremy Howard
Sure.
- LFLex Fridman
... wh- where's the biggest benefit of AI in medicine that you see today? Uh, and maybe in the next 10 years?
- JHJeremy Howard
Not much, not much happening today, in terms of, like, stuff that's actually out there. It's very early. But in terms of the opportunity, it's to take, uh, uh, markets like, uh, India and China and Indonesia, which have big populations, uh, um, uh, Africa, small numbers of doctors... And provide diagnostic, particularly treatment planning and triage kind of on device. So that if you do a, you know, test for malaria or tuberculosis or whatever, you immediately get something that, that even a healthcare worker that's had a month of training-
- LFLex Fridman
Mm-hmm.
- JHJeremy Howard
... can get a very high-quality assessment of whether the patient might be at risk and tell, you know, "Okay, we'll send them off to a hospital." Uh, so for example, in Africa, outside of South Africa, there's only five pediatric radiologists for the entire continent.
- LFLex Fridman
Wow.
- JHJeremy Howard
So, most countries don't h- have any. So, if your kid is sick and they need something diagnosed through medical imaging, the person... E- even if you're able to get medical imaging done, the person that looks at it will be, you know, a nurse at best.
- LFLex Fridman
Yeah.
- JHJeremy Howard
Uh, but actually in, in India, for example, and, and China, almost no X-rays are read by anybody, by any trained professional because they don't have enough.
- LFLex Fridman
Mm-hmm.
- JHJeremy Howard
So, if instead we had a algorithm that could take the most likely high-risk 5%-
- LFLex Fridman
Mm-hmm.
- JHJeremy Howard
... and say... Triage, basically. Say, "Okay, someone needs to look at this." Um, it would massively change the kind of way that... What's possible with medicine in the developing world. And remember, they have... Increasingly, they have money. They're the developing world.
- LFLex Fridman
Mm-hmm.
- JHJeremy Howard
They're not the poor world, the developing world. So, they have the money, so they're, they're building the hospitals, they're getting the, uh, diagnostic equipment, but they just... There's no way for a very long time will they be able to have the expertise.
- LFLex Fridman
Shortage of expertise? Okay. And that's where the deep learning systems can step in and-
- JHJeremy Howard
Exactly.
- LFLex Fridman
... magnify the expertise they do have-
- JHJeremy Howard
Exactly.
- LFLex Fridman
... essentially.
- JHJeremy Howard
Yeah.
- LFLex Fridman
Yeah. So, you do see... Just to linger on, a little bit longer.
- JHJeremy Howard
Sure.
- LFLex Fridman
Uh, uh, the interaction. Do you, do you still see the human expert still at the core of these systems?
- JHJeremy Howard
Yeah, absolutely.
- LFLex Fridman
Is there something in medicine that could be automated almost completely and easily?
- JHJeremy Howard
I don't see the point of even thinking about that because we have such a shortage of people.
- LFLex Fridman
Right. Uh-
- JHJeremy Howard
Why would we not? Why would we want to find a way not to use them?
- 32:30 – 37:55
Privacy
- LFLex Fridman
the question of privacy, data is the fuel for so much innovation in deep learning. What's your sense in privacy, whether we're talking about Twitter, Facebook, YouTube, uh, just the technologies like in the medical field that rely on people's data in order to create impact? How do we get that right, uh, respecting people's privacy and yet creating technology that-
- JHJeremy Howard
Well-
- LFLex Fridman
... uh, is learned from data?
- JHJeremy Howard
... one of my areas of focus is on doing more with less data. Um, which, so most vendors, unfortunately, are strongly incented to find ways to require more data and more computation. So Google and IBM being the most obvious, uh-
- LFLex Fridman
IBM?
- JHJeremy Howard
Yeah.
- LFLex Fridman
Sorry.
- JHJeremy Howard
So Watson.
- LFLex Fridman
Watson, yeah.
- JHJeremy Howard
You know, so Google and IBM both strongly push the idea that you have to be, you know, that they have more data and more computation and more intelligent people than anybody else.
- LFLex Fridman
Right.
- JHJeremy Howard
And so you have to trust them to do things because nobody else can do it. Um, and Google's very, uh, upfront about this. Like, Jeff Dean has g- gone out there and given talks and said, "Our goal is to require 1,000 times more computation-"
- LFLex Fridman
Mm-hmm.
- JHJeremy Howard
"... but less people." Um, our goal is to use the people that you have better and the data you have better and the computation you have better. So one of the things that we've discovered is, or, or at least highlighted, is that you very, very, very often don't need much data at all. And so the data you already have in your organization will be enough to get state-of-the-art results.
- LFLex Fridman
Mm-hmm.
- JHJeremy Howard
So like, my starting point would be just kind of, say, around privacy is a lot of people are looking for ways to sh- share data and aggregate data, but I think often that's unnecessary. They assume that they need more data than they do 'cause they're not familiar with the basics of transfer learning, which is this, uh, critical technique for needing orders of magnitude less data.
- LFLex Fridman
Is your sense one reason you might want to collect data from everyone is, uh, like in a recommender system context where your individual, Jeremy Howard's, individual data is the most useful for figu- for providing a product that's impactful for you? So f- for giving you advertisements, for recommending to you movies, for doing medical diagnosis. Uh, i- is your sense we can build with a small amount of data general models that will have a huge impact for most people that-
- JHJeremy Howard
Mm-hmm.
- LFLex Fridman
... don't need to sp- have data from each individual?
- JHJeremy Howard
On, on, on the whole, I'd say yes. I mean, there are things like, you know, recommender systems have this, uh, cold start problem where, you know, Jeremy is a new customer. We haven't seen him before so we can't recommend him things based on what else he's bought and liked with us.
- LFLex Fridman
Right.
- JHJeremy Howard
Um, and there's various workarounds to that. Like in a lot of music programs will start out by saying, "Which of these artists do you like? Which of these albums do you like? Which of these songs do you like?" Netflix used to do that. Nowadays they, they tend not to. Uh, people kind of don't like that 'cause they think, "Oh, we don't want to bother the user." So you could work around that by having some kind of data sharing where you get my marketing record from Acxiom or whatever-
- LFLex Fridman
Mm-hmm.
- JHJeremy Howard
... and try to guess from that. To, to me the, the benefit to me and to society of saving me five minutes on answering some questions versus the negative externalities of, of the privacy issue-... doesn't add up. So I think, like, a lot of the time, the places where people are, uh, invading our privacy in order to provide convenience is really about just trying to make them more money. And, and they move these negative externalities into places that they don't have to pay for them.
- LFLex Fridman
Mm-hmm.
- JHJeremy Howard
So when you actually see regulations appear that actually cause the companies that create these negative externalities to have to pay for it themselves, they say, "Well, we can't do it anymore." So the cost is actually too high.
- LFLex Fridman
Right.
- JHJeremy Howard
But for something like medicine, yeah, I mean the hospital has my, you know, medical imaging, my pathology studies, my medical records. Um, and also I own my medical data. So you can, um... So I, I help a startup called, uh, Doc.ai. One of the things Doc.ai does is that there- it has an app that you can connect to, you know, Sutter Health and Labcorp and-
- LFLex Fridman
Mm-hmm.
- JHJeremy Howard
... Walgreens, and download your medical data to your phone, and then up- upload it, again, at your discretion, to share it as you wish. Um, so with that kind of approach, we can share our medical information with the people we want to.
- 37:55 – 40:42
Fast.ai
- LFLex Fridman
(laughs) to, uh, the origin story of fast.ai.
- JHJeremy Howard
Right. So, so before I started fast.ai, I spent a year researching, where are the biggest opportunities for deep learning? 'Cause I knew from my time at Kaggle, in particular, that deep learning had kind of hit this threshold point where it was rapidly becoming the state-of-the-art approach in every area that looked at it. And I'd been working with neural nets for over 20 years. I knew that, from a theoretical point of view, once it hit that point, it would do that in kind of just about every domain.
- LFLex Fridman
Mm-hmm.
- JHJeremy Howard
And so I kind of spent a year researching, what are the domains it's gonna have the biggest low-hanging fruit in the shortest time period? And I picked medicine, but there were so many I could have picked. And so there was a kind of level of frustration for me of like, okay, I'm really glad we've opened up the medical deep learning world, and today it's huge, as you know, um, but we can't do, (laughs) you know, I can't do everything. I don't even know, like... It took, like, in medicine, it took me a really long time to even get a sense of like, what kind of problems do medical practitioners-
- LFLex Fridman
Mm-hmm.
- JHJeremy Howard
... solve? What kind of data do they have? Who has that data? So, I kind of felt like I need to approach this differently if I want to maximize the positive impact of deep learning. Um, rather than m- me picking an area and trying to become good at it and building something, I should let people who are already domain experts in those areas and who already have the data do it themselves.
- LFLex Fridman
Mm-hmm.
- JHJeremy Howard
So that was the reason for fast.ai-
- LFLex Fridman
Mm-hmm.
- JHJeremy Howard
... is to basically try and figure out how to get deep learning into the hands of people who could benefit from it-
- LFLex Fridman
Mm-hmm.
- JHJeremy Howard
... and help them to do so in as quick and easy and effective a way as possible.
- LFLex Fridman
Got it. So sort of empower the, the, the domain experts.
- JHJeremy Howard
Yeah. And, like, partly it's 'cause, like, unlike most people in this field, my background is very applied and industrial. Like, my first job at m- was at McKinsey & Company. I spent 10 years in management consulting. I, I spent a lot of time with domain experts.
- LFLex Fridman
Mm-hmm. Right.
- JHJeremy Howard
You know, so I kind of respect them and appreciate them, and know, I know that's where their value generation in society is. And so I also know how m- most of them can't code.
- LFLex Fridman
Mm-hmm.
- JHJeremy Howard
And most of them don't have the time to invest, you know, three years in a g- graduate degree or whatever. So it's like, how do I upskill those domain experts? I think that would be a super powerful thing, you know, bi- biggest societal impact I could have. So that, yeah, that was the thinking.
- LFLex Fridman
So,
- 40:42 – 45:43
Theory vs practice
- LFLex Fridman
so much of fast.ai students and researchers and the things you teach are, uh, pragmatically minded.
- JHJeremy Howard
Right.
- LFLex Fridman
Practically minded. Figuring, figuring out ways how to solve real problems and fast.
- JHJeremy Howard
Right.
- LFLex Fridman
So from your experience, what's the difference between theory and practice of deep learning?
- JHJeremy Howard
Hmm. Well, most of the research in the deep learning world is a total waste of time, uh, becau-
- LFLex Fridman
Right, that's what I was getting at. (laughs)
- JHJeremy Howard
Yeah. It's a s- it's a problem of, in science in general. Um, scientists need to be published, which means they need to work on things that their peers are extremely familiar with and can recognize and advance in that area. So that means that they all need to work on the same thing.
- LFLex Fridman
Yeah.
- JHJeremy Howard
And so it really enc- and, and the thing they work on, there's nothing to encourage them to work on things that are practically useful. So you get just a whole lot of research which is minor advances in stuff that's been very highly studied and has no significant practical impact.
- LFLex Fridman
Mm-hmm.
- JHJeremy Howard
Whereas the things that really make a difference, like I mentioned transfer learning. Like, if we can do better at transfer learning, then it's this like world-changing thing, where suddenly like, lots more people can do world-class work with less resources and less data, and... But almost nobody works on that. Or another example, active learning, which is the study of like, how do we get more out of the human beings-
- LFLex Fridman
Yeah.
- JHJeremy Howard
... in the loop?
- LFLex Fridman
That's my favorite topic.
- JHJeremy Howard
Yeah. So active learning's great, but it's, almost nobody working on it, um, because it's just not a trendy thing right now. You know, it's-
- LFLex Fridman
You know what somebody s- sorry to interrupt, uh-
- JHJeremy Howard
Yeah.
- LFLex Fridman
You were saying that nobody's publishing on active learning.
- JHJeremy Howard
Right.
- LFLex Fridman
But there's people inside companies, anybody who actually has to solve a problem, they're going to innovate on active learning.
- JHJeremy Howard
Yeah, everybody kind of reinvents active learning-
- LFLex Fridman
Right.
- JHJeremy Howard
... when they actually have to work in practice, because they start labeling things and they think, "Gosh, this is taking a long time and it's very expensive."
- LFLex Fridman
Yeah.
- JHJeremy Howard
And then they start thinking, "Well, why am I labeling everything? I'm only... The machine's only making mistakes on those two classes. They're the hard ones. Maybe I'll just start labeling those two classes." And then you start thinking, "Well, why did I do that manually? Why can't I just get the system to tell me which things are gonna be hardest?"
- LFLex Fridman
Yeah. Yep.
- JHJeremy Howard
It's, it's an obvious thing to do, but, um, yeah, it's, it's just like, like transfer learning, it's, it's under-studied and the academic world just has no reason to care about practical results. The funny thing is, like I've only really ever written one paper. I hate writing papers.
- LFLex Fridman
(laughs)
- JHJeremy Howard
Um, and I didn't even write it. It was my colleague, Sebastian Ruda, who actually wrote it. I just-
- 45:43 – 56:24
DAWNBench - Stanford deep learning benchmark
- LFLex Fridman
Can you tell the story of, uh, the Stanford competition, DAWNBench, and fast.ai's achievement on it?
- JHJeremy Howard
Sure. So, something which I really enjoy is that I, I basically teach two courses a year. Um, the practical Deep Learning for Coders, which is kind of the introductory course, and then Cutting-Edge Deep Learning for Coders, which is the kind of research-level course. And when I teach those courses, um, I have a, a, I, I basically have a big office, uh, at, at University of San Francisco, big enough for like 30 people, and I invite anybody, any student who wants to come and hang out with me while I build the course.
- LFLex Fridman
Mm-hmm.
- JHJeremy Howard
And so generally it's full. And so we have 20 or 30 people in a big office with nothing to do but study deep learning.
- LFLex Fridman
Mm-hmm.
- JHJeremy Howard
Uh, so it was during one of these times that somebody in the group said, "Oh, there's a thing called DAWNBench that looks interesting." And I was like, "What the hell is that?" And they said, "Oh, it's some competition to see how quickly you can train a model. Seems kind of, not exactly relevant to what we're doing, but it sounds like the kind of thing which you might be interested in." And I checked it out and I was like, "Oh, crap, there's only 10 days till it's over."
- LFLex Fridman
(laughs)
- JHJeremy Howard
"It's pretty much too late. And we're kind of busy trying to teach this course." (laughs)
- LFLex Fridman
Yeah.
- JHJeremy Howard
But we're like, "Uh, it would make an interesting case study for the course. Like, it's all the stuff we're already doing. Why don't we just put together our current best practices and ideas?"
- LFLex Fridman
Mm-hmm.
- JHJeremy Howard
So me and, I guess, about four students just decided to give it a go. And we focused on this small one called CIFAR-10, which is little 32 by 32 pixel images.
- LFLex Fridman
Can you say what DAWNBench is that-
- JHJeremy Howard
Yeah, so it's a, it's competition to, to train a model as fast as possible. It was run by Stanford. Uh-
- LFLex Fridman
And as cheap as possible too.
- JHJeremy Howard
Uh, that's also another one, for as cheap as possible. And there was a couple of categories, uh, ImageNet and CIFAR-10. So ImageNet's this big 1.3 million, uh, image thing that took couple of days to train. Remember a friend of mine, uh, Pete Warden, who's now at Google, um, I remember he told me how he trained ImageNet a few years ago when he basically, like, had this, uh, uh, little granny flat out the back that he turned into his ImageNet training center.
- LFLex Fridman
(laughs)
- JHJeremy Howard
And he figu- you know, after like a year of work, he figured out how to train it in like a 10 days or something. It was like, that was a big job. Whereas CIFAR-10, at that time, you could train in a few hours. You know, it's much smaller and easier. So we thought we'd try CIFAR-10. And yeah, I'd really never done that before. Like I'd never really... Like things like using more than one GP- uh, GPU at a time was something I...... try to avoid, 'cause to me it's like very against the whole idea of accessibility is should be able to do things with one GPU.
- LFLex Fridman
Uh, I mean, have you asked in the past before, after having accomplished something, "How do I do this faster, much faster?"
- JHJeremy Howard
Oh, always. But it's always, for me, it's always, "How do I make it much faster on a single GPU-"
- LFLex Fridman
On a single GPU.
- JHJeremy Howard
"... that a normal person could afford in their day-to-day life?"
- LFLex Fridman
Yeah.
- JHJeremy Howard
It's not, "How could I do it faster by, you know, having a huge data center?" 'Cause, uh, to me, it's all about, like, as many people should be able to use something as possible without fussing around with infrastructure. So, anyways, so in this case, it's like, well, we can use, uh, eight GPUs just by renting a AWS machine.
- LFLex Fridman
Mm-hmm.
- JHJeremy Howard
So we thought we'd try that. And, um, yeah, basically using the stuff we were already doing, we were able to get, you know, the speed, you know, within a few days, we had the speed down to, I don't know, a, a s- a very small number of minutes. I can't remember exactly how many minutes it was, but it might have been like 10 minutes or something.
- LFLex Fridman
Mm-hmm.
- JHJeremy Howard
And so, yeah, we found ourselves at the top of the leaderboard easily for both time and money.
- LFLex Fridman
(laughs)
- JHJeremy Howard
Which really shocked me 'cause the other people competing in this were like Google and Intel and stuff, who are like, know a lot more about this stuff than I think we do. So then we were emboldened. We thought, "Let's try the ImageNet one too." (laughs) I mean, it seemed way out of our league. But, uh, our goal was to get under 12 hours.
- 56:24 – 59:01
Fusing multiple audio and image sources
- JHJeremy Howard
on this.
- LFLex Fridman
Th- there's this problem with microphones. We're just talking on microphones now.
- JHJeremy Howard
Yeah.
- LFLex Fridman
It's such a pain in the ass to have these microphones, uh, to get good quality audio. And I tried to see if it's possible to plop down a bunch of cheap sensors and reconstruct higher quality audio from multiple sources. Because right now, I've n- I haven't seen work from... okay, we can say even expensive mics automatically combining audio from multiple sources to improve the combined audio.
- JHJeremy Howard
Right.
- LFLex Fridman
People haven't done that, and that feels like a learning problem.
- JHJeremy Howard
Right.
- LFLex Fridman
So some- hopefully somebody can...
- JHJeremy Howard
Well, I mean, it's, it's eminently doable and it should have been done by now.
- LFLex Fridman
Yeah.
- JHJeremy Howard
Um, I feel- I felt the same way about computational photography four years ago.
- LFLex Fridman
Oh, okay.
- JHJeremy Howard
That's right. Why are we investing in big lenses when three cheap lenses plus actually a little bit of, um, intentional movement, so like hold-
- LFLex Fridman
Mm-hmm.
- JHJeremy Howard
... you know, like take a few frames, gives you enough information to get excellent sub-pixel resolution which, particularly with deep learning, you would know exactly what you're meant to be looking at. Um, we can totally do the same thing with audio. I think it's madness-
- LFLex Fridman
Is there a p-
- JHJeremy Howard
... that it hasn't been done yet. I, I, th-
- LFLex Fridman
Has there been progress on the photog- photography comp- photography?
- JHJeremy Howard
Yeah. Photography is basically standard now. So, uh, the, the, the Google Pixel Night Light, uh, I don't know if you've ever tried it but it's, it's astonishing. You take a picture in almost pitch black and you get back a very-
- LFLex Fridman
Hmm.
- JHJeremy Howard
... high quality re- image. And it's not because of the lens. Uh, same stuff with like adding the bokeh to the, you know, the, the, the background blurring-
- LFLex Fridman
The background stuff. Yeah.
- JHJeremy Howard
... is done computationally.
- LFLex Fridman
This is the Pixel right here?
- JHJeremy Howard
Uh, yeah. Basically the, um... everybody now is doing most of the fanciest stuff on their phones with computational photography, and also increasingly people are putting more than one lens on the back of the camera. So, the same will-
- LFLex Fridman
I think I-
- JHJeremy Howard
... happen for audio for sure.
- LFLex Fridman
And I... there's applications in the audio side, if you look at an Alexa type device. Uh, most people I've seen, especially I worked at Google before, when you look at noise background removal, you don't think of multiple sources of audio. The- you don't play with that as much as I would hope people would.
- JHJeremy Howard
But I mean, you can still do it even with one. Like again, there's not... not much work's been done in this area. So we're actually going to be releasing an audio library soon which hopefully will encourage development of this because it's so underused. The basic approach we used for our super resolution in which Jason uses for Deoldify of generating high quality images, the exact same approach would work for audio. No one's done it yet, but it would be a couple of months work.
- LFLex Fridman
Okay. Uh, also learning rate in terms of DAWNBench. Um,
- 59:01 – 1:04:32
Learning rate & deep learning as an experimental science
- LFLex Fridman
there's some magic on learning rate that you played around with-
- JHJeremy Howard
Yeah.
- LFLex Fridman
... that's kind of interesting.
- JHJeremy Howard
Yeah. So this is all work that came from a guy called Leslie Smith. Uh, Leslie's a researcher who, like us, cares a lot about just the practicalities of training neural networks quickly and accurately. Which you would think is what everybody should care about but almost nobody does. (laughs) Um, and, uh, he discovered something very interesting which he calls super convergence, which is there are certain networks that with certain settings of hyper parameters could suddenly be trained ten times faster-
- LFLex Fridman
Mm-hmm.
- JHJeremy Howard
... by using a ten times higher learning rate. Now, um, no one published that paper because it's not an area of kind of active research in the academic world, no academics recognize this is important. And also deep learning in academia is not considered a experimental science. So unlike in physics where you could say like, "I just saw a s- a sub-atomic particle do something which the theory doesn't explain."
- LFLex Fridman
Mm-hmm.
- JHJeremy Howard
You could publish that without an explanation.
- LFLex Fridman
Right.
- JHJeremy Howard
And then in the next 60 years people can try to work out how to explain it. We don't allow this in the deep learning world so it's, it's literally impossible for Leslie to publish a paper that says, "I've just seen something amazing happen, this thing trained ten times faster than it should have, I don't know why." And so the reviewers were like, "Well, you can't publish that 'cause you don't why." So anyway.
- LFLex Fridman
That's important to pause on because there's so many discoveries that would need to start like that.
- JHJeremy Howard
Every, every other scientific field I know of works of that way. I don't know why ours is uniquely disinterested in-... publishing unexplained experimental results. But there it is. So it wasn't published. Having said that, uh, I read a lot more unpublished papers than published papers, 'cause that's where you find the interesting insights.
- LFLex Fridman
Mm-hmm.
- JHJeremy Howard
So I absolutely read this paper. And I was just like, "This is astonishingly mind-blowing and weird and awesome." And like, "Why isn't everybody only talking about this?" Because like, if you can train these things 10 times faster... They also generalize better because you're, you're doing less epochs, which means you look at the data less, so you get better accuracy. So I've been kind of studying that ever since. And, uh, eventually, Leslie kind of figured out a lot of how to get this done, and we added minor tweaks. And a big part of the trick is starting at a very low learning rate, very gradually increasing it. So as you're training your model, you take very small steps at the start, and you gradually make them bigger and bigger until eventually you're taking much bigger steps than anybody thought was possible.
- LFLex Fridman
Right.
- JHJeremy Howard
There's a few other little tricks to make it work, but e- ev- basically, we can reliably get super convergence. And so for the DAWNBench thing, we were using just much higher learning rates than people expected to work.
- LFLex Fridman
What do you think the future of... I mean, it makes so much sense for that to be a critical hyper-parameter, learning rate that you vary. What do you think the future of learning rate magic looks like?
- JHJeremy Howard
Well, there's been a lot of great work in the last 12 months in this area. It's... And people are increasingly realizing that optimize... Like, we just have no idea really how optimizers work. And, uh, the combination of weight decay, which is how we regularize optimizers, and the learning rate, and then other things like the epsilon we use in, in the Adam optimizer, they all work together in weird ways. And different parts of the model... This is another thing we've done a lot of work on, is research into how different parts of the model should be trained at different rates in different ways.
- LFLex Fridman
Mm-hmm.
- JHJeremy Howard
Um, so we do something we call discriminative learning rates, which is really important, particularly for transfer learning. Um, so really, I think in the last 12 months, a lot of people have realized that this, all this stuff is important. There's been a lot of great work coming out. And we're starting to see algorithms appear which have very, very few dials, if any, that you have to touch. So like the... I think what's going to happen is the idea of a learning rate will... It almost already has disappeared-
- LFLex Fridman
Mm-hmm.
- JHJeremy Howard
... in the latest research. And instead, it's just like, you know, we, we know enough about how to interpret the gradients and the change of gradients we see to know how to set every parameter off to
- LFLex Fridman
That you can automate it. So you see the future of, uh, of, uh, deep learning where really... Where is the input of a human expert needed in the future?
- JHJeremy Howard
Well, hopefully, the input of the human expert will be almost entirely unneeded from the deep learning point of view. So, um, again, like Google's approach to this is to try and use thousands of times more compute to run lots and lots of models at the same time and hope that one of them is good.
- LFLex Fridman
AutoML kind of thing?
- JHJeremy Howard
Yeah, AutoML kind of stuff, which I think is insane.
- LFLex Fridman
(laughs)
- JHJeremy Howard
Um, when you better understand the mechanics of how models learn, you don't have to try a thousand different models to find which one happens to work the best.
- LFLex Fridman
Mm-hmm.
- JHJeremy Howard
You can just jump straight to the best one, uh, which means that it's more accessible in terms of compute, cheaper, and also with less hyper-parameters to set. It means you don't need deep learning experts to train your deep learning model for you, which means that domain experts can do more of the work, which means that now you can focus the human time on the kind of interpretation, the data gathering, identifying what all errors, and stuff like that.
- 1:04:32 – 1:06:16
Working with data
- LFLex Fridman
side. How often do you work with data these days in terms of the cleaning? Looking at... Like Darwin looked at different species while traveling about. Do you look at data? Ha- have you in your roots in Kaggle-
- JHJeremy Howard
Always. Yeah.
- LFLex Fridman
... just looked at data and just-
- JHJeremy Howard
Yeah, I mean, it's, it's a key part of our course. It's like before we train a model in the course, we see how to look at the data, and then aft-... The first thing we do after we train our first model, which we fine-tune an ImageNet model for five minutes. And then the thing we immediately do after that is we learn how to analyze the results of the model by looking at examples of misclassified images and looking at a classification matrix and then doing, like, research on Google to learn about the kinds of things that it's misclassifying.
- LFLex Fridman
Mm-hmm.
- JHJeremy Howard
So to me, one of the really cool things about machine learning models in general is that you can inter-... Like, when you interpret them, they tell you about things like what are the most important features, which groups you're misclassifying. And they help you become a domain expert more quickly because you can focus your time on the bits that the model is telling you is important.
- LFLex Fridman
Mm-hmm.
- JHJeremy Howard
So it lets you deal with things like data leakage. For example, if it says, "Oh, the main feature I'm looking at is customer ID." (laughs) You know, and you're like, "Oh, customer ID should be predictive." And then you can talk to the people that manage customer IDs, and they'll tell you like, "Oh, yes, as soon as a customer's application is accepted, we add a one on the end of their customer ID."
- LFLex Fridman
Oh, boy.
- JHJeremy Howard
Or something, you know?
- LFLex Fridman
Yeah.
- JHJeremy Howard
Um, so yeah, model... Looking at data particularly from the lens of which parts of the data the model says is important is super important.
- LFLex Fridman
Yeah, and using kind of, using the model to almost debug the data to, yeah-
- JHJeremy Howard
Yep.
- LFLex Fridman
... learn more about the-
- JHJeremy Howard
Exactly.
- 1:06:16 – 1:09:12
Deep learning cloud options
- LFLex Fridman
... (sighs) what are the different cloud options for training your networks? Last question related to DAWNBench. Well, it's part of a lot of the work you do, but from a perspective of performance, I think you've written this in a blog post. There's AWS. There's T- TPU from Google. What's your sense what the future holds? What would you recommend now-
- JHJeremy Howard
Right.
- LFLex Fridman
... in terms of, uh-
- JHJeremy Howard
So from a hardware point of view-
- LFLex Fridman
... training in the cloud?
- JHJeremy Howard
... Google's TPUs and the best NVIDIA GPUs are similar. I mean, maybe the TPUs are like 30% faster, but they're also much harder to program.... where there isn't a clear leader in terms of hardware right now. Although, much more importantly, the GPU, NVIDIA's GPUs are much more programmable, they've got much more written for them. So like that's the clear leader for me and where I would spend my time as a researcher and practitioner. But then in terms of the platform, I mean, we're, we're super lucky now with stuff like Google, uh, GCP, Google Cloud, and, um, AWS that you can access a GPU pretty quickly and easily. But, I mean, for, for AWS it's still too hard. Like you have to find an AMI and get the instance running and then install the software you want and blah, blah, blah. GCP is still, is currently the, the best way to get started on a full-
- LFLex Fridman
Easiest?
- JHJeremy Howard
... server environment because, um, they have a fantastic fast.ai and PyTorch ready to go instance, which has all the courses pre-installed, it has Jupyter Notebook pre-running. Jupyter Notebook is this, uh, wonderful interactive computing system which everybody basically should (laughs) be using-
- LFLex Fridman
Mm-hmm.
- JHJeremy Howard
... for any kind of data-driven research. But then even better than that, uh, uh, there are platforms like, um, Salamander, which we own, and, uh, Paperspace where literally you click a single button and it pops up a Jupyter Notebook straightaway without any kind of, uh-
- LFLex Fridman
(laughs)
- JHJeremy Howard
... um, installation or anything.
- LFLex Fridman
Yeah.
- JHJeremy Howard
And all the course notebooks are all preinstalled. So like for me, we, um, this is one of the things we spent a lot of time, uh, kind of curating and working on, 'cause when we first started our courses, the biggest problem was people dropped out of lesson one 'cause they couldn't get an AWS instance running.
- LFLex Fridman
Right.
- JHJeremy Howard
So, um, things are so much better now. And like we actually have, if you go to course.fast.ai, the first thing it says is, "Here's how to get started with your GPU." And it's like you just click on the link and you click start and-
- LFLex Fridman
And it's-
- JHJeremy Howard
... you're going.
- LFLex Fridman
... it w- you will go GCP. I have to confess, I've never used the Google GCP.
- JHJeremy Howard
Yeah. GCP gives you $300 of compute for free, which is really nice. But as I say, uh, Salamander and Paperspace are even, even easier still.
- LFLex Fridman
Okay. So, uh,
- 1:09:12 – 1:17:51
Deep learning frameworks
- LFLex Fridman
the, from the perspective of deep learning frameworks, you work with fast.ai, particular to this framework, and, uh, PyTorch and TensorFlow. What are the strengths of each platform-
- JHJeremy Howard
Sure.
- LFLex Fridman
... in your perspective?
- JHJeremy Howard
So in terms of what we've done our research on and taught in our course, we started with Theano and Keras, and then we switched to TensorFlow and Keras. And then we switched to PyTorch, and then we switched to PyTorch and fast.ai. Um, and that, th- that kind of reflects a growth and development of the, the ecosystem of deep learning libraries. Th- Theano and TensorFlow were great, but were much harder to teach and to do research and development on because they define what's called a computational graph upfront, a static graph, where you basically have to say, "Here are all the things that I'm going to eventually do in my model."
- LFLex Fridman
Mm-hmm.
- JHJeremy Howard
And then later on you say, "Okay, do those things with this data." And you can't, like, debug them. You can't do them step by step. You can't program them interactively in a Jupyter Notebook and so forth. PyTorch was not the first, but PyTorch was certainly the, the s- the strongest entrant to come along and say, "Let's not do it that way. Let's just use normal Python. And everything you know about in Python is just gonna work, and we'll figure out how to make that run on the GPU as and when n- necessary."
- LFLex Fridman
Mm-hmm.
- JHJeremy Howard
That turned out to be a huge, a huge leap in terms of what we could do with our research and what we could do with our teaching, and-
- LFLex Fridman
'Cause it wasn't limiting.
- JHJeremy Howard
Yeah, I mean, it was critical for us for something like DAWNBench to be able to rapidly try things. It's just so much harder to be a researcher and practitioner when you have to do everything up front and you can't inspect it. Um, problem with PyTorch is it's not at all accessible to newcomers because you have to, like, write your own training loop and manage the-
- LFLex Fridman
Mm-hmm.
- JHJeremy Howard
... gradients and all this stuff. And it's also, like, not great for researchers because you're spending your time dealing with all this boilerplate and overhead rather than thinking about your algorithm.
- LFLex Fridman
Mm-hmm.
- JHJeremy Howard
So we ended up writing this very multi-layered API that at the top level you can train a state-of-the-art neural network in three lines of code.
- LFLex Fridman
(laughs)
- JHJeremy Howard
Um, and which kind of talks to an API, which talks to an API, which talks to an API, which, like, you can d- dive into at any level and get progressively closer to the machine kind of levels of control.
- LFLex Fridman
Mm-hmm.
- JHJeremy Howard
Um, and this is the fast.ai library. That's been critical for us and for our students, uh, and for lots of people that have won big learning competitions with it and written academic papers with it. Um, it's, it's made a big difference. We're still limited though by Python. And particularly this problem with things like recurrent neural nets, say, where you just can't change things unless-
- LFLex Fridman
Yeah.
- JHJeremy Howard
... you accept it going so slowly that it's impractical. So in the latest incarnation of the course and with some of the research we're start, now starting to do, we're starting to do stuff, some stuff in Swift. I think we're three years away from that being super practical, but I'm in no hurry. I'm very happy to invest the time to get there. But, you know, with, with that, uh, we actually already have a nascent version of the fast.ai library for vision, uh, running on Swift-
- LFLex Fridman
On Swift.
- JHJeremy Howard
... for TensorFlow.
- LFLex Fridman
Mm-hmm.
- JHJeremy Howard
'Cause, uh, Python for TensorFlow is not gonna cut it. It's just a disaster. What they did was they tried to replicate-... the bits that people were saying they like about PyTorch-
- LFLex Fridman
Mm-hmm.
- JHJeremy Howard
... the, this kind of interactive computation. But they didn't actually change their foundational runtime components, so they kind of added this, like syntax sugar they call TFEager, Tensorflow Eager-
- LFLex Fridman
Yeah.
- JHJeremy Howard
... which makes it look a lot like PyTorch, but it's ten times slower than PyTorch to actually-
- LFLex Fridman
Hmm.
- JHJeremy Howard
... do a step. So, because they didn't invest the time in, like retooling the foundations, 'cause their code base is so horribly complex-
- 1:17:51 – 1:19:49
How long does it take to finish fast.ai courses?
- JHJeremy Howard
thing.
- LFLex Fridman
How long does it take, um... So th- if you look at the two- two fast.ai courses, how long does it take to get from point zero to completing both courses?
- JHJeremy Howard
Um, it varies a lot. Somewhere between two months and two years, generally.
- LFLex Fridman
So for two months, how many hours a day on average?
- JHJeremy Howard
So like, so like a- a- a- somebody who is a very competent coder can- can do 70 hours per course and pick up-
- LFLex Fridman
70? Seven zero?
- JHJeremy Howard
70, yeah.
- LFLex Fridman
That's it? Okay.
- JHJeremy Howard
Yeah. But a lot of people I know who take a year off to study fast.ai full time-
- LFLex Fridman
Yeah.
- JHJeremy Howard
... and say at the end of the year, they feel pretty competent 'cause generally there's a lot of other things you do. Like they're, generally they'll be entering Kaggle competitions, they-
- LFLex Fridman
Yeah, exactly.
- JHJeremy Howard
... might be reading Ian Goodfellow's book. They might, you know, they'll be doing a bunch of stuff.
- LFLex Fridman
Yeah.
- JHJeremy Howard
And often, you know, particularly if they are a domain expert, their coding skills might be-... a little on the pedestrian side. So part of it's just, like, doing a lot more writing.
- LFLex Fridman
What do you find is the bottleneck for people usually? Uh, except getting started and setting stuff up.
- JHJeremy Howard
I would say coding.
- LFLex Fridman
Just-
- JHJeremy Howard
Yeah, I would say the best... The people who are strong coders pick it up the best. Although another bottleneck is people who have a lot of experience of classic statistics can really struggle because it... The intuition is so the opposite of what they're used to. They're very used to-
- LFLex Fridman
Hmm.
- JHJeremy Howard
... like, trying to reduce the number of parameters in their model and looking at individual coefficients and stuff like that. So I, I find people who have a lot of coding background and know nothing about statistics are generally going to be the best off.
- LFLex Fridman
So,
- 1:19:49 – 1:21:34
Lessons from teaching deep learning
- LFLex Fridman
uh, you taught several courses on deep learning. And as Feynman says, "Best way to understand something is to teach it." What have you learned about deep learning from teaching it?
- JHJeremy Howard
A lot. That's a key reason for me to, to teach the courses. I mean, obviously it's going to be necessary to achieve our goal of getting domain experts to be familiar with deep learning, but that's also necessary for me to achieve my goal (laughs) of being really familiar with deep learning.
- LFLex Fridman
Yeah.
- JHJeremy Howard
I, I mean (sighs) to see so many domain experts from so many different backgrounds, it's definitely, I wouldn't say taught me, but convinced me something that I liked to believe was true, which was anyone can do it. So there's a lot of, kind of snobbishness out there about only certain people can learn to code, only certain people are going to be smart enough to, like, do AI. That's definitely bullshit, you know?
- LFLex Fridman
Mm-hmm.
- JHJeremy Howard
I've seen so many people from so many different backgrounds get state-of-the-art results in their domain areas now. Uh, the, uh, it's definitely taught me that the key differentiator between people that succeed and people that fail is tenacity. That seems to be basically the only thing that matters. Um, the people... A lot of people give up, and... But of the ones who don't give up, pretty much everybody succeeds, you know, even if at first I'm just kind of, like, thinking like, "Wow, they really aren't quite getting it yet, are they?" But, uh, eventually people get it and they succeed. So I think that's been... I think they're both things I'd liked to believe was true, but I don't feel like I really had strong evidence (laughs) for them to be true. But now I can say I've seen it again and again.
- 1:21:34 – 1:27:02
Advice for people starting with deep learning
- LFLex Fridman
So what advice do you have for someone, uh, who wants to get started in deep learning?
- JHJeremy Howard
Train lots of models. That's, that's how you, that's how you learn it. So, like... So I would... You know, uh, I think... Uh, uh, it's not just me. I think, I think our course is very good, but also lots of people independently have said it's very good. It recently won the CogX award for AI courses as being the best in the world. So I, I'd say come to our course, course.fast.ai.
- LFLex Fridman
Of course.
- JHJeremy Howard
And the thing I keep on harping on in my lessons is train models, print out the inputs to the models, print out the outputs to the models. Like study, you know, change, change the inputs a bit, look at how the outputs vary. Just run lots of experiments to get a, you know, an intuitive understanding of what's going on.
- LFLex Fridman
To, to get hooked, do you think... You mentioned training. Do you think just running the model's inference... Like, if we talk about getting started.
- JHJeremy Howard
No, you've got to fine-tune the models. So that's, that's, that's the critical thing, because at that point you now have a model that's in your domain area.
- LFLex Fridman
Mm-hmm.
- JHJeremy Howard
So there's, there's, there's no point running somebody else's model because it's not your model. Like, so it only takes five minutes to fine-tune a model for the data you care about. And in lesson two of the course, we teach you how to create your own dataset from scratch by scripting Google Image Search.
- LFLex Fridman
Yeah.
- JHJeremy Howard
So... And we show you how to actually create a web application running online. So I create one in the course that differentiates between a teddy bear, a grizzly bear, and a brown bear.
- LFLex Fridman
(laughs)
- JHJeremy Howard
And it does it with basically 100% accuracy. Took me about four minutes to scrape the images from Google Search in the script. There's, uh, little, um, graphical widgets we have in the notebook that help you clean up the dataset. Uh, there's other widgets that help you s- study the results to see where the errors are happening. And so now we've ha-... Got over a thousand replies in our Share Your Work Here thread of students saying, "Here's the thing I built." And so there's people who, like... And, and a lot of them are state-of-the-art.
- LFLex Fridman
Hmm.
- JHJeremy Howard
Like somebody said, "Oh, I tried looking at Devanagari characters and I couldn't believe it. The thing that came out was more accurate than the best academic paper-"
- LFLex Fridman
Hmm.
- JHJeremy Howard
"... after lesson one." And then there's others which are just more kind of fun, like somebody was doing Trinidad and Tobago hummingbirds. She said that's kind of their national bird, and so she's got something that can now classify Trinidad and Tobago hummingbirds. So yeah, train models, fine-tune models with your dataset, and then study their inputs and outputs.
- LFLex Fridman
How much is fast.ai courses?
- JHJeremy Howard
Free. Everything we do is free. We have no revenue sources of any kind. It's just a service to the community.
- LFLex Fridman
You're a saint. Okay.
- JHJeremy Howard
(laughs)
- LFLex Fridman
Once a person (laughs) understands the basics, trains a bunch of models, uh, if we look at the scale of years, what advice do you have for someone wanting to eventually become an expert?
- JHJeremy Howard
Train lots of models. (laughs)
- LFLex Fridman
(laughs)
- JHJeremy Howard
Um, but specifically train lots of models in your domain area. So an expert what, right? We don't need more expert, like, uh, create slightly evolutionary research in areas that everybody is studying. We need experts at using deep learning to diagnose mala- malaria, or we need experts at using deep learning to analyze language-
- LFLex Fridman
Mm-hmm.
- JHJeremy Howard
... to study media bias, or we need experts in, um, um-... analyzing fisheries to identify problem areas in, uh, you know, the ocean. You know, that, that's, that's what we need. So like, become the expert in your passion area. And this is a tool which you can use for just about anything, and you'll be able to do that thing better than other people, particularly by combining it with your passion and domain expertise.
- LFLex Fridman
So that's really interesting. Even if you do want to innovate on transfer learning or active learning, uh, your thought is, I mean, it's one I, I certainly share, is you also need to find a domain or data set that you actually really care for.
- JHJeremy Howard
Right. If you're not working on a real problem that you understand, how do you know if you're doing it any good, you know? How do you know if your results are good? How do you know if you're getting bad results why you're getting bad results? Is it a problem with the data, or is... Like, how do you know you're doing anything useful? Yeah, the only, to me, the only really interesting research is... Not the only, but the vast majority of interesting research is, like, try and solve an actual problem-
- LFLex Fridman
Right.
- JHJeremy Howard
... and solve it really well.
Episode duration: 1:44:10
Install uListen for AI-powered chat & search across the full episode — Get Full Transcript
Transcript of episode J6XcP4JOHmk