Andrej Karpathy on Education
Andrej Karpathy treats education as learning by building, understanding first principles, and continuously re-educating as AI changes how people work.
- Learn from first principles, not just APIs or buzzwords.
- The best AI education is hands-on: build small systems and see how they work.
- Strong foundations matter most: math, physics, and computer science.
- AI will change jobs, so education must include large-scale re-education.
- He prefers AI that empowers people, which shapes how education should be designed.
Education should start with fundamentals, not surface-level tools
Karpathy’s view of education starts with understanding the core ideas underneath modern AI systems. In his teaching, he repeatedly peels systems down to their simplest working pieces, whether that means explaining backpropagation as the core mechanism of neural network learning or identifying the Transformer as the engine doing the main work in GPT-style models. That reflects a broader belief that real understanding comes from seeing what the machine is actually doing, not from treating it as a black box.12
He also frames machine learning as a new kind of programming, where optimization writes the program from examples. That is an educational idea as much as a technical one: students should learn to think differently about software, data, and specification. For him, this shift is what made the field worth serious attention in the first place.
The best way to learn is to build small systems yourself
Karpathy’s teaching style suggests that people learn AI best by constructing simple models end to end. He uses small datasets, character-level models, and minimal architectures so learners can watch data become tokens, tokens become vectors, and vectors become predictions. That approach makes abstract ideas concrete and gives students an intuition for why the larger systems work.2
He clearly values playful, direct experimentation. Sequence models are worth studying not only because they are useful, but because they are engaging to interact with, and that engagement helps learning stick. His examples also show that once you build something simple, you can see where it fails, why it fails, and what improvement actually changes behavior.8
Good education teaches generalization, not memorization
One of Karpathy’s recurring lessons is that intelligence comes from structures that generalize across cases, not from brittle lookup tables. He uses embeddings to show how models can share statistical strength across similar contexts, which is a direct lesson for human learning too: you want transferable concepts, not isolated facts.8
The same theme appears in how he talks about models discovering structure on their own. Sequence models begin to infer words and patterns from raw data, and vision-language systems can learn meaningful parts and relationships without being explicitly hand-coded for every case. Education, in this frame, should aim at building representations and mental models that transfer.
For AI careers, the strongest base is math, physics, and computer science
When Karpathy is asked what background best prepares someone, his answer is straightforward: math, physics, and computer science. That combination fits his broader worldview. Math helps with optimization and modeling, physics trains quantitative intuition, and computer science develops the ability to build systems that actually run.
His own explanations reinforce this mix. He moves comfortably between mathematical mechanisms like gradients, software concerns like tensor operations and infrastructure, and system-level thinking about scaling. So his educational advice is not to specialize too early in fashionable tools, but to build durable technical depth that survives changes in frameworks and model trends.1
AI changes work, so education must become re-education
Karpathy does not treat education as something you finish once. He expects AI to change jobs substantially, which means many people will need not only initial training but repeated upskilling. He explicitly says there will have to be a lot of re-education, and he sees AI education as practically motivated because it connects directly to how people make a living in the near term.15
That urgency is tied to how fast his own workflow has changed. He describes moving from personally writing code toward delegating more and more to agents, which means the valuable skills shift upward from typing to orchestrating, reviewing, and directing systems. Education therefore has to prepare people for collaboration with AI, not just competition against it.
At the same time, he is more interested in AI that empowers people than in AI that simply pushes them aside. That implies an educational goal larger than employability: teach people to stay capable, agentic, and central in a world with strong automation.

“There's going to have to be a lot of not just education but also re-education. I would love to help out there because the jobs will probably change quite a bit. For example, today a lot of people are trying to upskill in AI specifically. I think it's a really good course to teach in this respect. Motivation-wise, before AGI motivation is very simple to solve because people want to make money. This is how you make money in the industry today. Post-AGI is a lot more interesting possibly because if everything is automated and there's nothing to do for anyone, why would anyone go to a school? I often say that pre-AGI education is useful. Post-AGI education is fun.”Dwarkesh Patel interview, September 2024 · full transcript →
The point of education is to keep humans empowered
Karpathy’s educational outlook is ultimately human-centered. He is drawn to tools and systems that increase what an individual can do, and he worries about futures where people are sidelined by automation. In that sense, education is not just about transferring knowledge; it is about preserving human agency as the technology gets stronger.
This also helps explain why he teaches from first principles and why he emphasizes understanding over rote use. People remain powerful when they can inspect systems, reason about them, build with them, and adapt as the frontier moves. In the near term, education is useful because it helps people operate in the economy AI is reshaping, and in the longer term he suggests learning may become less about necessity and more about curiosity and enjoyment.15
Karpathy on education, in his own words
“There's going to have to be a lot of not just education but also re-education. I would love to help out there because the jobs will probably change quite a bit. For example, today a lot of people are trying to upskill in AI specifically. I think it's a really good course to teach in this respect. Motivation-wise, before AGI motivation is very simple to solve because people want to make money. This is how you make money in the industry today. Post-AGI is a lot more interesting possibly because if everything is automated and there's nothing to do for anyone, why would anyone go to a school? I often say that pre-AGI education is useful. Post-AGI education is fun.”
Where to watch
Andrej Karpathy on AI and Robotics: Models, Agents, and Education2024 · 44 min · full transcriptBest single source for his explicit advice on what to study and how AI, robotics, and human empowerment connect to education.
Andrej Karpathy on GPT From Scratch: How ChatGPT Works2022 · 116 min · full transcriptShows his first-principles teaching style by rebuilding GPT concepts from simple components.
Andrej Karpathy on MLPs for Language Modeling: makemore2020 · 76 min · full transcriptA hands-on example of how he teaches learning by building small models and understanding generalization.
Andrej Karpathy on Recurrent Neural Networks: LSTMs and Captioning2017 · 70 min · full transcriptGood for seeing how he explains sequence models clearly and makes technical learning approachable and fun.
Andrej Karpathy on Agents and AI Progress: why it’s a decade2024 · 146 min · full transcriptBest for his view that AI will force large-scale re-education as agents gradually reshape work.
Andrej Karpathy on Code Agents: The Loopy Era of AI2023 · 67 min · full transcriptShows how education must adapt to agentic workflows where the key skill becomes directing systems, not typing everything yourself.
Questions people ask
- How small did Andrej Karpathy think powerful AI models could become?
- What did Andrej Karpathy say about Tesla as a robotics company?
- What did Andrej Karpathy say about education after AGI?
- What did Andrej Karpathy say about the first uses for humanoid robots?
- What did Andrej Karpathy say about why deep learning felt more compelling than traditional AI?
- Why did Andrej Karpathy leave OpenAI to work on education?
Sources
Every quote above, word for word from the transcripts. Numbers match the text.
“Micrograd is basically an autograd engine. Autograd is short for automatic gradient, and really what it does is it implements backpropagation. Now, backpropagation is this algorithm that allows you to efficiently evaluate the gradient of some kind of a loss function with respect to the weights of a neural network, and what that allows us to do then is we can iteratively tune the weights of that neural network to minimize the loss function and therefore improve the accuracy of the network. So backpropagation would be at the mathematical core of any modern deep neural network library, like say PyTorch or JAX. So the functionality of micrograd is, I think, best illustrated by an example, so…”
“Transformer is the neural net that actually does all the heavy lifting under the hood…”
“That the predictions from this model are not very good because you only take one character of context. So the model didn't produce very name-like sounding things. Now, the problem with this approach, though, is that if we are to take more context into account when predicting the next character in the sequence, things quickly blow up, and this table—the size of this table—grows, and in fact it grows exponentially with the length of the context. Because if we only take a single character at a time, that's 27 possibilities of context. But if we take two characters in the past and try to predict the third one, suddenly the number of rows in this matrix, you can look at it that way, is 27 * 27. So there's 729 possibilities for what could have come in the context.”
“There's going to have to be a lot of not just education but also re-education. I would love to help out there because the jobs will probably change quite a bit. For example, today a lot of people are trying to upskill in AI specifically. I think it's a really good course to teach in this respect. Motivation-wise, before AGI motivation is very simple to solve because people want to make money. This is how you make money in the industry today. Post-AGI is a lot more interesting possibly because if everything is automated and there's nothing to do for anyone, why would anyone go to a school? I often say that pre-AGI education is useful. Post-AGI education is fun.”
How this guide was made: drafted with AI from the full transcripts of the recordings cited, then checked: every quotation must match a transcript word for word and be the speaker's own words, and an independent review gates accuracy. Methodology and corrections.

