Andrej Karpathy advises people starting out in machine learning to consistently spend time on something they care about, instead of agonizing over what to study. Compare yourself to your past self, keep trying, and treat mistakes as experience. Teaching gives you a way to check your understanding, and writing and running real code lets you see what actually happens.
1. How Much You Do Matters More Than What You Pick
Lex Fridman mentions Karpathy's teaching work, going back to Stanford's CS231N machine learning course, and asks what advice he would give people who want to get started in machine learning.
Karpathy says beginners focus too much on "What should I do?" He thinks they should ask "How much time am I putting in?"
"Beginners often focus on what they should do. I think they should focus more on how much they do."
Broadly speaking, he believes in the 10,000-hour rule. The idea is that if you choose something you care enough about to devote time to, you can become an expert through sustained, deliberate effort.
You don't have to pick the perfect way to spend your time at the outset. You'll try things, repeat and improve them, and sometimes waste time. Karpathy says you have to go through that process.
"I think if you pick something and work at it deliberately for 10,000 hours, you can actually become an expert in it."
He finds this view reassuring. Becoming an expert feels connected to putting in enough time and effort, instead of depending entirely on some vague notion of talent. This is his belief about how people learn.
2. Build a Daily Habit and Compare Yourself to Your Past Self
Fridman asks how to improve your chances of reaching 10,000 hours. He suggests building a habit of actually doing the work every day.
Karpathy agrees that you need to find what works for you. In his view, staying consistent is largely a psychological challenge.
One approach he finds particularly helpful is changing whom you compare yourself with. Comparing yourself to others in your field can be harmful, he says, so compare yourself to who you were a year ago.
"I think comparing yourself to other people is very harmful. Only compare yourself to who you were a little while ago. Are you better than you were a year ago, for example?"
That comparison helps you see your progress, and seeing it gives you a reason to keep going.
3. Keep Moving When You Face a Choice and Learn from Mistakes
Fridman finds the advice to focus on time spent interesting. Beginners and people who are already studying can both get stuck wondering which path to take. Sometimes they can't even choose a development tool and end up making no progress.
Karpathy acknowledges that a bad choice really can cost you time. Still, realizing later that you got it wrong leaves a scar, and that scar makes you stronger next time.
"You'll waste time doing something wrong. Eventually you'll realize it wasn't right. That's how you accumulate scars."
He says he's spent a long time on plenty of things that ultimately led nowhere. Those experiences gave him an intuition for what was useful, what wasn't, and how things played out.
"All those mistakes weren't wasted work."
That's why he again urges people to focus on actually doing the work instead of getting stuck thinking about it. The question to ask yourself is simple.
"What did you do? What did you do last week?"
Fridman adds that the question works in many fields beyond machine learning and can help you cut unnecessary or inefficient things from your life.
4. Teaching Is Hard and Helps People
Fridman then asks what Karpathy likes about teaching. He says Karpathy seems both good at it and drawn to it time and again.
Karpathy's answer is unexpected. What he likes is seeing people happy because of something he taught them.
"I think I like happy people more than I like teaching. And people are happy when I teach."
He doesn't dislike teaching, but he says the work itself isn't what he enjoys most. He's reasonably good at it, people appreciate it, and he's willing to do it to help.
Making good educational material is genuinely difficult and sometimes irritating or frustrating. While preparing lectures, he thought back to CS231N and was reminded of how much effort, iteration, and thought goes into creating and refining the material. He often follows a direction that leads to a dead end and has to make substantial changes.
"Making something good that has educational value is really hard. And it's not fun."
5. Spending Ten Hours to Make a One-Hour Lecture
Fridman also points to Karpathy's teaching style. When explaining something like backpropagation, the process by which a machine learning model learns from its errors, Karpathy builds something in front of the viewer as he talks. Fridman asks how hard these lectures are to prepare and how much Karpathy works out on the spot while recording.
Karpathy says he usually records several takes and picks the better material for the lecture. He might record around three times. If a take goes in a direction he doesn't like, he sometimes throws away an entire half hour.
"There's a lot of iteration and revision. I think it takes roughly ten hours to make about an hour of material."
Behind the hour the audience sees are multiple recordings, choices about what to keep, cuts, and revisions.
6. Test Your Understanding by Explaining and Running Code
Fridman asks whether going back to fundamentals like backpropagation and loss functions is difficult, and whether Karpathy gains any insights in the process. A loss function quantifies how far off a model's predictions are.
Karpathy says teaching someone definitely deepens his own understanding. Teaching helps the other person, and it's also a way for the teacher to learn.
"When you have to explain something to someone, you realize there are gaps in your own knowledge."
Even he sometimes expects a certain result in a lecture, only to be surprised when the actual result is different. That makes him take another look at something he believed he understood.
Fridman says that's what makes writing and running actual code so effective. Given a concrete input, it produces actual numbers and results, so you can see exactly when reality differs from your expectations.
Karpathy agrees and closes with this point.
"The source of truth is the code. It's not the slides. Just build it yourself."
