7.1 Reading papers
1. Learn
Section titled “1. Learn”- S. Keshav, How to Read a Paperwhole paper (2 pages): the three-pass approach
- Kaplan et al., Scaling Laws for Neural Language Modelssection 2.1 and table 1: parameter and compute counts
2. Bridge
Section titled “2. Bridge”Three passes. Don’t read a paper from start to end in one go. Keshav’s method reads it three times, each deeper. The first pass, 5 to 10 minutes, covers the title, abstract, introduction, section headings and conclusion, and tells you whether to go on. The second, up to an hour, reads the text and the figures but skips proofs and details. The third re-creates the work in your head, or in code, and is where you find the hidden assumptions. Most papers you meet only need the first pass.
The five Cs. After the first pass you should be able to say the paper’s category (a new method, a measurement, an analysis), its context (which earlier work it builds on), whether it looks correct, its contributions and its clarity (Keshav, section 2.1). Write them down: that is the start of the structured summary this module asks for, and the template is in the notebook.
Check the numbers. On the second pass, recompute any table entry that follows from others in the paper. A GPT-style model’s size follows from its width d, depth L, vocabulary and context: 12 d² + 13 d per block plus the embeddings. Training compute is about 6 N D FLOPs for N parameters and D tokens (Kaplan et al. 2020, section 2.1 and table 1), and time follows from compute, the GPU’s peak and the fraction of it you achieve. Redoing GPT-3’s table 2.1 this way agrees to 2%; the GPT-2 paper’s sizes come out 1 to 6% smaller than its own architecture implies.
Choosing what to read. Start from a survey or a course reading list, read the papers the good ones keep citing (a citation index such as Semantic Scholar shows both directions), and look at the code if it is released: when a paper’s text and its code disagree, the code is what produced the numbers. Keep your summaries in one place, so the context C of the next paper is easier.
3. Explore
Section titled “3. Explore”stubs/m7_1_papers.pyLoading starter file…
Prefer your own editor? Edit exercises/stubs/m7_1_papers.py and run mlc check 7.1. The tests are identical; import the results on the progress page.
Then run the lab. Open notebooks/7.1-checking-papers.ipynb (a CPU is enough, under a minute) and paste in your 7.1 file. It counts the parameters of GPT-2 models built in PyTorch, checks GPT-2’s and GPT-3’s size tables, measures the FLOPs of a forward and backward pass to confirm 6 N D, and recomputes GPT-3’s training compute and the training costs in Attention Is All You Need. Then write structured summaries of three papers with its template: GPT-3 and the two other papers you most want to understand.
5. Check
Section titled “5. Check”- not yet: All tests pass (0/?)
- not yet: Checkpoint quiz ≥ 80%
Learner log: time spent and points of confusion
Every confusion you note becomes a fix before the module is marked stable. Export it from the progress page and attach it to an issue.