What Is Andrej Karpathy's Academic Background and His Stanford CS 231n Course?
Updated
Andrej Karpathy earned his PhD at Stanford (2011–2015), where his research focused on convolutional and recurrent neural networks and their applications in computer vision, natural language processing, and the intersection of the two. His adviser was Fei-Fei Li at the Stanford Vision Lab, and he also worked with Daphne Koller, Andrew Ng, Sebastian Thrun, and Vladlen Koltun during the first-year rotation program. During the same period he designed and was the primary instructor for Stanford's CS 231n: Convolutional Neural Networks for Visual Recognition, which grew from 150 enrolled students in 2015 to 330 in 2016 and 750 in 2017, becoming one of the largest classes at Stanford.
PhD Research: What He Actually Worked On
Karpathy's doctoral work sat at the meeting point of two model families and two application domains:
- Convolutional neural networks (CNNs) — the architecture behind image recognition, which later became central to his industry work.
- Recurrent neural networks (RNNs) — sequence models used for text and other ordered data.
- Applications — computer vision, natural language processing, and the intersection of the two (for example, tasks that require connecting images with language).
This combination of vision and language is a useful signal for anyone trying to understand his later trajectory: the same pairing shows up in autonomous driving (perception plus reasoning about scenes) and in large language models (sequences of tokens at scale).
The People Around Him
The page names his adviser and collaborators explicitly, which matters if you're evaluating the research environment rather than just the degree:
| Role | Name |
|---|---|
| PhD adviser | Fei-Fei Li (Stanford Vision Lab) |
| Collaborators during first-year rotation | Daphne Koller, Andrew Ng, Sebastian Thrun, Vladlen Koltun |
Fei-Fei Li is closely associated with computer vision and the ImageNet line of work, so a PhD under her supervision places Karpathy squarely in the vision community. The rotation-year names span machine learning, robotics, and vision, which is consistent with a broad first year before specializing.
CS 231n: The Course He Built
Karpathy designed CS 231n and served as its primary instructor. The course title — Convolutional Neural Networks for Visual Recognition — describes its scope directly: how CNNs work and how they are applied to recognizing what is in an image.
Enrollment Growth
The page gives exact figures, and the trend is the clearest evidence of the course's impact:
| Year | Enrolled students |
|---|---|
| 2015 | 150 |
| 2016 | 330 |
| 2017 | 750 |
Going from 150 to 750 students in three years made it one of the largest classes at Stanford. That growth also tracks the broader surge of interest in deep learning over the same period.
Why This Course Matters Beyond Stanford
CS 231n became a reference point for how deep learning is taught, not just at Stanford but well beyond it. If you are trying to learn the material today, the practical takeaway is that the course's structure — convolutional networks applied to visual recognition — is a well-defined prerequisite path: you need linear algebra, basic calculus, and some programming before the CNN material will land.
How to Place This in His Wider Career
The academic phase is one segment of a longer timeline documented on karpathy.ai:
- 2011–2015 — Stanford PhD; designed and taught CS 231n.
- 2015–2017 — research scientist and founding member at OpenAI.
- 2017–2022 — Director of AI at Tesla, leading the computer vision team for Autopilot (and briefly Optimus), covering in-house data labeling, neural network training, and deployment on Tesla's custom inference chip.
- 2023–2024 — returned to OpenAI, building a team working on midtraining and synthetic data generation.
- 2024 onward — creates educational videos on AI via his YouTube channel, in a technical track (the Zero to Hero playlist) and a general-audience track (Deep Dive into LLMs like ChatGPT, How I Use LLMs, and the earlier Intro to Large Language Models).
The through-line from the PhD to the rest: CNNs and sequence models, applied first to vision and language research, then to production-scale perception at Tesla, then to LLM training at OpenAI, and now explained to a general audience.
Quick Answers to Common Questions
Did he get a PhD? Yes — Stanford, 2011–2015, advised by Fei-Fei Li.
What was his thesis area? Convolutional and recurrent neural networks, applied to computer vision, NLP, and their intersection.
Did he create CS 231n? Yes — he designed it and was the primary instructor.
How big did the class get? 150 (2015) → 330 (2016) → 750 (2017).
Where can I verify this? The source is his own site, karpathy.ai, which lists his positions, adviser, collaborators, and the enrollment numbers.