Andrej Karpathy — A Survival Guide to a PhD
TL;DR. Andrej Karpathy wrote this guide after his Stanford PhD with Fei-Fei Li. Most of it is about doing the PhD, not getting in: what an adviser is and how to choose one, how to choose problems, how to write papers, release code, give talks and attend conferences. For a new faculty member, it is a description of what a good student will expect and look for.
Key idea
Section titled “Key idea”A PhD is mostly the “outer loop”. Solving a problem is “the simple inner loop”; most of the time is spent “figuring out what problems are worth solving and what problems are ripe for solving”. Good problems are fertile (papers chain into a thesis), fit the adviser’s interests, and are ambitious. His “sublinear scaling of hardness”: a problem 10 times more important is at most 2–3 times harder to achieve, because thinking at 10x forces you to start from first principles. Avoid “incremental work” that “gets 2% extra on some benchmark” (“cockroach papers”), and aim to be “the person who did X”.
The adviser is a person with a job. Learn how tenure, funding and recognition work for them. Pre-tenure advisers are usually around more and more hands-on (“you’re missing a second term in that equation”). Senior advisers work at a higher level (“read up more in this area, talk to this or that person”). Students should ask an adviser’s students specific questions, informally, and check where past students went.
What his own case shows. In his own account, his entire thesis is based on work from the last 1.5 years. The earlier projects led him to a fertile area (connecting images and language) that was easy to explain and at the boundary of what was possible. He ends by asking students not to treat the PhD as “a sequence of papers”: “You’re not a paper writer”. Read the guide as an adviser: it says what students value (time, honesty about expectations, ambition, visibility), and the adviser sections show what they will ask about you.
Connections
Section titled “Connections”- Schulman — An Opinionated Guide to ML Research — another view of choosing problems and of goal-driven work.
- Peyton Jones — How to Write a Great Research Paper — the writing rules behind Karpathy’s “gestalt”.
- Hamming — You and Your Research — important problems and selling your work, from an older generation.
- Karpathy’s LLM deep dive — Karpathy’s own teaching as an example of distillation.
Questions to think through
These questions have no single right answer. Write or say your answer before you open the hints. Mark a question once you could defend your answer in a reading group.
- Derive / compute
Karpathy claims "a 10x more important problem is at most 2-3x harder to achieve". (a) Treat harder as a proportional drop in the chance of success, and compare the expected impact of a problem with impact 1 and success probability p against one with impact 10 and probability p/3. (b) He also computes 5 years × 260 working days × 8 hours. What total does that give, and what does it imply for the size of a PhD topic? (c) Name one assumption in (a) that would change the conclusion for a pre-tenure faculty member.
What a strong answer covers
- (a) Expected impact: 1 × p = p for the small problem and 10 × p/3 ≈ 3.3p for the large one, so at least about 3× more (5× if it is only 2× harder).
- (b) 10,400 hours, about the Gladwell 10,000 hours for expertise. A topic should be broad enough to need that much work and fertile enough for papers to chain into a thesis.
- (c) Variance and timing: expected value ignores that a pre-tenure professor needs results within about 6 years, and a single high-risk project can produce nothing in that window. Students also need papers to graduate.
- A sensible response is a portfolio: one ambitious bet together with smaller, likely projects, or an ambitious project broken into publishable stages.
- Mechanism
Explain two of Karpathy's writing practices: reviewing papers to build "a powerful binary classifier", and Fei-Fei Li's internal deadline two weeks before submission, with at least a 5-page draft and all the final experiments. Why does each one improve papers, and what does each cost an adviser?
What a strong answer covers
- Reviewing: with about 25% acceptance, most reviewed papers are bad, which gives many negative examples (unclear intros, undefined variables, details too early). Students learn what makes a paper good by contrast.
- Gestalt: with enough examples, an expert can judge papers in seconds (Fei-Fei judged 4 papers in about 10 seconds each). He lists the look of a mature paper: ~1-page intro, ~1-page related work, a pull figure on page 1–2, a system figure on page 3, bold numbers, exactly 8 pages.
- Internal deadline: laying out the whole paper early reveals the critical experiments that are missing while there is still time to run them. The internal review uses the conference's own review forms.
- Costs: reviewing takes students' time, and the adviser must find review assignments for them; the internal deadline takes the adviser and lab two weeks of review before every deadline and needs the whole lab to buy in.
- Design
Karpathy tells students to check whether an adviser is pre- or post-tenure, to ask their students "how often do you meet?" and "how hands on are they?", and to make work that adds slides to the adviser's "default talk". As a new assistant professor in IR and NLP, design how you would advise your first students so that a student reading this guide would choose you.
What a strong answer covers
- Being pre-tenure: say openly that you will be hands-on (math, code, reviews of experiments) and also give students independence as they grow, so that the intensity he warns about does not become pressure.
- Concrete answers to the questions students will ask: e.g. weekly one-on-ones, a lab meeting, response times, and introductions to collaborators.
- Default talk: make your research agenda public (e.g. retrieval for deep-research agents, reproducible benchmarks), so students see where their work can fit and can still own a piece of it ("the person who did X").
- Practices from the guide: an internal deadline two weeks early, code release as a lab norm, paying conference travel, and help with reviewing.
- A record that students can check: where past students and interns went, and what they say about working with you.