John Schulman — An Opinionated Guide to ML Research
TL;DR. John Schulman wrote this guide in December 2017 for the OpenAI Fellows program and posted it in 2020. He names three keys to success: working on the right problems, making steady progress on them, and continuing to grow as a researcher. For problems, he advises developing taste, preferring goal-driven to idea-driven research, and asking whether a project could give a 10X improvement rather than 10%. For progress, keep a daily notebook, review it every week or two, and switch problems less often than you want to. For growth, read textbooks and theses, not only papers, and reimplement work you admire. He names Hamming’s talk as a predecessor, tuned here to machine learning.
Why it matters now. Most advice in this section is general. Schulman’s is about empirical ML, the same kind of work an LLM retrieval lab does: experiments that may show nothing at all because of one wrong detail, a fast-moving literature that many groups read at once, and incremental gains that are easy to get but rarely used. His own PhD (trajectory optimization, then TRPO and GAE, then PPO) is a worked example of a research program. For a new adviser, the notebook-and-review habit is also something you can teach.
Key idea
Section titled “Key idea”Taste is learned, and environment speeds it up. Choosing problems matters more than technical skill. You learn it by reading critically, working in a group, asking experienced researchers (who will tell you ideas are cheap), and thinking about why some ideas spread and others are forgotten. He notes that bursts of impactful work cluster in a few groups because expertise and perspective are concentrated there. If you are not in such a place, specialize and build your own perspective.
Goal-driven beats idea-driven for most people. Idea-driven research follows the literature: read how to do X, think of how to do it better. Goal-driven research picks a capability and works toward making it happen for the first time. Idea-driven work has a high risk of being scooped, because everyone reads the same papers. A goal gives you a different perspective, keeps you motivated, and lets a team split the work.
Aim high, climb in small steps. Ask: “Will this be a 10% improvement or a 10X improvement?” AlexNet had no radically new component; it stacked many small improvements to reach a surprising result. Small steps are fine if they lead to a large goal. A small gain alone must be very simple, or no one will use it.
What the guide says
Section titled “What the guide says”A worked research program. In the first half of his PhD, the lab goal (set by Pieter Abbeel) was robots manipulating deformable objects. Schulman chose learning from demonstrations, starting with getting a PR2 robot to tie knots. Trajectory optimization came up as a subproblem and became the project’s most influential result. In the second half, he set the goal of getting a 3D robot to learn to run from scratch with reinforcement learning. He chose policy gradient methods because they suited analysis and his strength in optimization, and developed TRPO and GAE. When DQN on Atari appeared and many people switched to Q-learning, he had already tried it for locomotion and stayed with policy gradients. That path led to PPO.
General solutions. One risk of goal-driven research is reaching the goal in an uninteresting way. For locomotion, he kept domain information out of the algorithm. He did a little feature engineering and reward shaping to see the first signs of life, but kept them separate from the method.
The notebook. He kept one through five years of graduate school and two years at OpenAI. It has three uses: ideas written down when they come (and sometimes completed at review time); results kept in one place, such as which hyperparameters mattered; and a record of time, which can show you have been switching between ideas too often.
When to switch. In empirical ML it is hard to tell if an idea has been tried hard enough, since one wrong detail can hide all signs of life. Looking back over months, you should see many small dead ends, but most time should have gone to projects that produced a deliverable, such as a paper or a blog post. He suggests, though he has not tried it, one day a week on something totally different.
Personal development. Without time set aside, knowledge plateaus at what daily work needs. Textbooks are denser than papers, because a paper has one idea plus a background section too terse to learn from. Theses usually have three parts: background, stapled-together papers, and an outlook. Parts 1 and 3 give an expert’s view of the field. Reimplementation teaches more than reading and gives fast feedback, since the target number is known. Skimming the steady flow of ordinary papers shows trends and how ideas depend on one another.
Limitations & open questions
Section titled “Limitations & open questions”- Industry-lab context. The guide assumes access to people and compute like OpenAI’s. Goals that need large training runs may not have a reasonable attack in an academic lab. Choose goals where data, evaluation or method design is the bottleneck.
- The numbers are illustrations. He says so about the 2 and 10 lines of code. The ratio between gain and complexity is the lesson, not the numbers.
- The exploration budget is untested by him. He finds it sensible on reflection, but it is a suggestion.
- Students need intermediate results. A single long goal can leave a student with nothing to show for internships and fellowships. The knot-tying story suggests the answer: plan for publishable subproblems.
- Open question for IR: what is the retrieval equivalent of 3D humanoid locomotion, a concrete goal that is exciting, clearly not yet possible, and reachable by an academic lab?
Connections
Section titled “Connections”- Hamming — You and Your Research — the essay Schulman builds on: important problems and a reasonable attack.
- Steinhardt — Research as a Stochastic Decision Process — how to order the work inside one project, including when to give up.
- Karpathy — A Survival Guide to a PhD — the same period of ML, from a student’s view.
- PPO, TRPO, GAE — the papers his goal-driven program produced.
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
Schulman's illustrative rule is that a 10% improvement should cost about 2 lines of code and a 50% improvement about 10. (a) Treat this as a linear budget and work out the allowed lines for a reranking trick that lifts nDCG@10 from 0.50 to 0.515. (b) His exploration budget is one day per week. Over a five-year PhD of about 260 working days a year, how many days is that, and how does it compare with the length of a typical project? (c) What do the two numbers together say about how a student should spend time?
What a strong answer covers
- (a) The linear budget is 2 lines per 10%, i.e. 0.2 lines per percent. 0.50 to 0.515 is a 3% relative gain, so about 0.6 lines: essentially a flag or one changed line. Anything more complex will not be used, "not even" by you.
- (b) One day of five is 20%. 0.2 × 5 × 260 = 260 days, roughly a full working year of exploration over the PhD.
- If a typical project takes three to six months of full-time work, 260 days is enough for one or two serious side bets, or many small trials.
- (c) Main-line time should go to work aiming at a large gain or a new capability. Small gains are only worth publishing when nearly free. Exploration is real but bounded, which protects against switching problems too often.
- Mechanism
Explain why Schulman expects goal-driven research to carry less risk of being scooped than idea-driven research. Use his own PhD case: he kept working on policy gradients for locomotion after DQN on Atari, and the result was TRPO, GAE and then PPO.
What a strong answer covers
- Idea-driven: everyone reads the same papers, so the natural next idea ("do X better") occurs to many groups at once. Being first requires an unusually deep or divergent view.
- Goal-driven: a specific goal ("make 3D humanoid locomotion work for the first time") makes you ask questions others are not asking. Your subproblems are shaped by the goal, not by the latest paper.
- In his case, he had already concluded that Q-learning did not suit his locomotion tasks. When much of the field moved to Atari Q-learning, he kept going and his work was not duplicated.
- The goal also produces unplanned results. His knot-tying goal led to trajectory optimization, which became the most influential output of that project.
- A goal can be split across a team, while idea-driven work suits teams of one or two.
- Critique
Schulman recommends goal-driven research "for most people", based on a PhD in Pieter Abbeel's lab and work at OpenAI. Criticize how well this transfers to a first-year PhD student in a new academic IR lab with modest compute. Where is the advice strongest, where is it risky, and how would you adjust it?
What a strong answer covers
- His goal was set by his adviser (deformable-object manipulation was the lab's goal); he chose the approach. In a new lab, the adviser must supply that goal, which is part of the job.
- Risk: a single ambitious goal may produce no paper for a long time, and students need early results for internships, fellowships and confidence.
- Compute: goals that need large-scale training may have no reasonable attack with academic GPUs. Choose goals where data, evaluation or method design is the bottleneck.
- Adjustment: a lab goal broken into subproblems that are publishable alone (a benchmark, an analysis, a method), plus his "general solutions" constraint so that each one is reusable.
- His own story already shows this: knot-tying was the goal, trajectory optimization was the paper.
- Design
Design a notebook-and-review system for your lab of four PhD students, based on Schulman's personal practice: daily entries, a review every one or two weeks with findings, insights, code progress and next steps, and a separate backburner list. Say what is shared, what stays private, and how you would use it in one-on-one meetings without turning it into surveillance.
What a strong answer covers
- Each student keeps daily entries (what they did, ideas, results with plots and tables) in a form they control.
- The one- or two-week review is the shared artifact: findings, insights, code progress, next steps. It becomes the agenda for the one-on-one, which saves meeting time.
- The notebook answers "where did last week go?" and shows when a student has drifted between half-finished projects, which Schulman calls the more common failure.
- A lab-wide backburner list lets good ideas wait without derailing current work, and gives new students ideas to start from.
- Guardrails: the adviser reads summaries, not daily entries; the purpose is memory and reflection, not hours worked.
- Research idea
Write a goal-driven research program for retrieval in Schulman's sense: a capability that does not yet work, phrased as "make X work for the first time". Then apply his constraint "restrict yourself to general solutions": name two shortcuts that would reach the goal on your benchmark without advancing the field, and the rule you would use to exclude them.
What a strong answer covers
- A concrete capability goal: e.g. a small open model that answers deep-research questions over a fixed corpus as well as a large proprietary agent, or retrieval that stays correct as the corpus changes daily.
- Subproblems that will appear and may each be papers: training data, rewards, retrieval tools, evaluation with human relevance judgments.
- Shortcuts to exclude: hand-written rules for the benchmark's question templates, query rewriting tuned to its corpus, or memorizing answers that leaked into training data.
- Rule: any change must be justified as applicable to other corpora or tasks, and tested on a second benchmark. Schulman kept domain information out of his locomotion algorithm, and allowed a little shaping only to get the first signs of life.