How to read a paper¶
The literature is where AI actually happens, and it moves at hundreds of papers a day. Read in three passes, each with a purpose and a stopping rule; read the maths by checking shapes; read the results with error bars in your head. This page teaches all three, with a close reading of the paper that started the boom.
10,000 ft
Blog posts, videos and this site are summaries; papers are the primary source. Being able to read one quickly and critically is what separates someone who follows AI from someone who can use, judge and extend it. The volume is the first obstacle: the arXiv API lists about 13,600 papers submitted in September 2026 to the four main AI categories (cs.LG, cs.AI, cs.CL, cs.CV), roughly 450 a day. Nobody reads that. The skill is triage (deciding in minutes what deserves an hour), comprehension (extracting the one idea and its evidence), and scepticism (knowing which claims the evidence actually supports). The method below is S. Keshav's three-pass approach, adapted for machine learning.
2,000 ft
Read every paper in up to three passes and stop as soon as you have what you need. Pass 1 (5–10 minutes): title, abstract, introduction, headings, conclusion, figures; decide whether to continue. Pass 2 (up to an hour): the method and the main results, ignoring proofs; you can now summarise the paper with its evidence. Pass 3 (one to five hours): virtually re-implement it, challenging every assumption; you can now reconstruct it from memory and name its weaknesses.
Ground level¶
Where papers come from, and where to find them¶
Almost every AI paper appears first as a preprint on arXiv, often months before (or instead of) peer-reviewed publication. The main peer-reviewed venues are conferences, not journals: NeurIPS, ICML and ICLR for machine learning, ACL and EMNLP for language, CVPR and ICCV for vision. Frontier labs increasingly publish technical reports and model cards rather than peer-reviewed papers; they can be excellent (the Llama 3 report documents data, training and post-training in unusual detail) or thin on exactly the details you want, such as data and compute.
The tools that help you find the right papers:
| Tool | Use it for |
|---|---|
| arXiv listings and API | the raw firehose; search by category, title, author or date |
| Hugging Face Papers | a daily, community-voted shortlist with linked models, datasets and code. Papers with Code was shut down in July 2025; its address now redirects here |
| Semantic Scholar | citation graphs, "highly influential citations", author pages |
| Connected Papers | a visual map of papers related to one you choose; good for finding the survey or the origin |
| OpenReview | ICLR and many other venues publish reviews and author responses openly; reading them is the fastest way to learn what experts criticise |
| The paper canon | this site's ordered list of the papers that matter most |
Choosing what to read¶
You will read a tiny fraction of what is published, so choose deliberately.
- Start from a survey or a canon. A good survey gives you the map and the reference list in one go. For LLMs, Zhao et al.'s survey is continuously updated; for everything, start at the paper canon.
- Use Keshav's literature-survey recipe for a new area. Find three to five recent papers; give each a first pass; read their related-work sections; note the citations and author names that recur. Those are the key papers and people. Look at where those people publish, and scan recent proceedings of those venues.
- Read origins, then the current state. For any idea, read the paper that introduced it and one recent paper that uses it. The gap between them is usually the most instructive thing you can learn about the idea.
- Batch by topic. Read three or four papers on one question in the same week. Comparisons reveal what each paper's choices really are, and the repetition works as spaced retrieval (How to study).
The anatomy of an ML paper¶
Most machine learning papers share one structure. Knowing what each part is for tells you where to look and what to distrust.
| Section | Extract | Be suspicious of |
|---|---|---|
| Abstract | the one-sentence claim and the headline number | adjectives ("dramatically", "simple") standing in for numbers |
| Introduction | the gap being filled; the contributions list (the paper's own checklist) | a related-work framing that makes old ideas look new |
| Method | the core equation or algorithm box; what is new versus borrowed | notation that hides a simple idea, or a simple idea dressed up as theory ("mathiness") |
| Experiments | the main results table: metric, baselines, compute | untuned baselines, unmatched compute, missing error bars, one seed |
| Ablations | which component produces the gain | gains attributed to the headline idea that ablations attribute elsewhere |
| Limitations | what does not work | its absence |
| Appendix | hyperparameters, data details, prompts | important tricks mentioned only here |
Pass 1: decide (5–10 minutes)¶
Keshav's first pass: read the title, abstract and introduction carefully; read the section and sub-section headings and nothing else; read the conclusions; glance over the references. For ML, add: look at every figure and table caption, because the evidence lives there. At the end you should be able to answer the five Cs:
- Category: what type of paper is it? A new method, a new benchmark, an analysis, a system, a scaling study, a position paper?
- Context: which papers is it related to, and which theory does it use?
- Correctness: do the assumptions look valid?
- Contributions: what are the main contributions?
- Clarity: is it well written?
Write the five Cs in your reading log in four lines and stop, unless you have a reason to go on. Most papers should end here, and that is a success, not a failure.
Pass 2: understand (up to an hour)¶
Read with care, but skip proofs and derivations. Keshav's instructions: look carefully at the figures, diagrams and graphs (are the axes labelled? are there error bars?), and mark unread references you will need. For ML papers, in this order:
- The method figure (often Figure 1 or 2) until you can redraw it.
- The core equation or algorithm box, symbol by symbol (see Reading the maths below).
- The main results table: what is compared to what, under what budget, on which data.
- The ablation table: which component carries the gain.
Andrew Ng's CS230 lecture on reading papers suggests four questions to answer at the end: What did the authors try to accomplish? What were the key elements of the approach? What can you use yourself? What other references do you want to follow? If you can answer them in writing without looking, pass 2 is done.
Pass 3: rebuild (one to five hours)¶
Keshav's third pass is to virtually re-implement the paper: make the same assumptions as the authors and re-create the work in your head or on paper, comparing your version with theirs at every step. Differences expose both the paper's real innovations and its hidden assumptions. He estimates four or five hours for a beginner and about an hour with experience. At the end you should be able to reconstruct the paper from memory and name its strong and weak points, its implicit assumptions and its missing citations.
For ML papers, the third pass is best done literally: implement the core of the method in a notebook at toy scale. The ladder in How to study (run, re-implement, reproduce, ablate) is the extension of the third pass into a project.
Reading the maths¶
Equations in ML papers are usually simpler than they look, but they are compressed. Five habits decompress them:
- Define every symbol before reading the equation. Write a legend in the margin: what is \(\theta\), what is indexed by \(i\), what is a vector and what a matrix.
- Check shapes. Write the shape of every tensor. If \(Q\) is \(T \times d_k\) and \(K\) is \(T \times d_k\), then \(QK^\top\) is \(T \times T\): one score for every pair of positions. Shape checking catches most misreadings and is exactly what the code in Build it does.
- Plug in tiny numbers. Take \(T = 2\), \(d = 1\) and compute the expression by hand.
- Check the limits. What happens as the temperature goes to zero, as a dimension grows, when two inputs are equal? Authors usually choose forms whose limits make sense; if a limit looks wrong, you have probably misread.
- Ask what each term is for. Delete one term mentally and ask what would break. That is the ablation the authors may not have run.
Reading the results critically¶
The results section is where you decide whether to believe the paper. Ask these questions of every comparison:
- Is the difference bigger than the noise? A 2-point gain on a 164-problem benchmark is inside the 95% interval of either model (The maths below). Look for error bars, multiple seeds and a test of the difference. Henderson et al. showed in deep RL that random seeds alone can produce differences as large as published improvements (Deep RL that Matters).
- Were the baselines given the same care? Same tuning budget, same compute, same data, same prompt engineering. Untuned baselines are the most common way a method looks better than it is.
- Is the test set clean? If test examples or their close paraphrases were in the training data (contamination), scores measure memory, not capability (Contamination). Even honest reuse of a test set over years overfits a field to it: rebuilt test sets for CIFAR-10 and ImageNet showed accuracy drops of 3–15% and 11–14% (Recht et al., 2019).
- Do the ablations support the story? Lipton and Steinhardt list four troubling trends in ML writing: failing to separate explanation from speculation, failing to identify the source of empirical gains, "mathiness", and misuse of language (Troubling Trends). The second one is checked by the ablation table.
- Could the result leak? Kapoor and Narayanan catalogue data-leakage errors across ML-based science, from preprocessing on the full dataset to features that encode the label (Leakage and the Reproducibility Crisis).
- Are the examples cherry-picked? Qualitative samples are illustrations, never evidence.
A worked close reading: Attention Is All You Need¶
Vaswani et al., 2017: Attention Is All You Need
Category and claim. A new architecture for sequence transduction (machine translation) using only attention, no recurrence or convolution. The headline: 28.4 BLEU on WMT 2014 English–German and 41.8 on English–French, trained in 3.5 days on eight P100 GPUs, a fraction of previous training costs.
Read in pass 2. Figure 1 (the encoder–decoder diagram), Figure 2 (scaled dot-product and multi-head attention), section 3.2 with equation 1, section 3.5 (positional encoding), and Table 3, the ablation table: it varies the number of heads, \(d_k\), model size, dropout and the positional encoding, and it is where most of the paper's design choices are justified.
Skip on a first reading. Section 2 (background), the regularisation details beyond residual dropout and label smoothing, and the constituency-parsing experiment in section 6.3 (it shows generality; it is not the main claim).
Check the shapes. Base model: \(d_{\text{model}} = 512\), \(h = 8\) heads, so \(d_k = d_v = 64\); \(d_{ff} = 2048\); six layers each side. The code in Build it runs equation 1 at these sizes and confirms that without the \(1/\sqrt{d_k}\) factor the attention scores have a standard deviation of about 8 instead of 1, which is the paper's footnoted argument for the scaling.
What aged. The paper normalises after each residual addition, \(\text{LayerNorm}(x + \text{Sublayer}(x))\); almost all later large models normalise before the sub-layer, which trains more stably without careful warm-up (Xiong et al., 2020). The authors chose sinusoidal positional encodings over learned ones (Table 3 row E found them "nearly identical") partly because they "may allow the model to extrapolate" to longer sequences; later work found sinusoidal encodings extrapolate poorly (ALiBi), and rotary embeddings (RoPE) became the standard. And the encoder–decoder framing for translation turned out to be less important than the decoder alone, scaled up as a language model.
What to take away. One idea (every position reads from every other through learned similarity, in parallel), one equation, and an ablation table that justified the defaults the field used for years. Continue at Attention from first principles.
Keep a reading log¶
One entry per paper, written at the end of whichever pass you stopped at:
2026-10-20 Vaswani et al. 2017, Attention Is All You Need (arXiv 1706.03762) pass 2
Category: new architecture (seq2seq). Context: replaces RNN/CNN encoders; builds on attention (Bahdanau 2014).
Claim: attention-only model beats RNN/CNN translation SOTA at lower training cost.
Evidence: WMT14 EN-DE 28.4 BLEU, EN-FR 41.8; Table 3 ablations (heads, d_k, PE).
Doubts: single runs, no error bars on BLEU; post-LN.
Use: equation 1 and multi-head attention; Table 3 as a design-choice reference.
Follow up: RoPE (2104.09864), pre-LN (2002.04745).
Cards: 3 written (eq. 1 shapes; why sqrt(d_k); what Table 3 row E found).
The log is searchable memory, the cards keep the key facts alive, and the habit forces you to decide what the paper actually showed. Michael Nielsen's Augmenting Long-term Memory describes the same practice applied to learning a new field through its papers.
Reading with an AI assistant¶
Assistants are good at expanding notation, explaining a step, suggesting prerequisite reading and quizzing you on a paper after you have read it. They are bad at being the source: they compress, smooth over caveats, and can attribute claims, numbers or citations to a paper that does not contain them. Do pass 1 yourself; use the assistant during pass 2 for specific questions about specific passages; check every claim it makes against the PDF before it enters your log.
First principles¶
Why does reading in passes work better than reading from start to finish?
A paper's value is concentrated. Most papers contribute one idea and a few numbers. The rest is context, justification and detail that matter only if the idea matters to you. A front-to-back read spends equal attention on everything; a pass structure spends attention where the value is.
Reading is a sequence of decisions. After each pass you have more information and a better estimate of whether the next hour is worth it. Stopping early on a paper that turns out to be irrelevant is a win; the stopping rules make that explicit, which is what lets you triage hundreds of abstracts.
Papers are written to be skimmed. Abstract, figure captions, contributions lists and conclusions are designed (and reviewed) to carry the claim on their own. Keshav makes the same point from the author's side: most reviewers make only one pass, so a paper whose gist is not clear after five minutes will likely be rejected.
Understanding means being able to rebuild. Pass 3 asks for re-implementation because comprehension that has not been tested by generation is mostly recognition, and recognition is the illusion of knowing that How to study warns about.
The maths¶
The single most useful piece of maths for reading ML results is the error bar on an accuracy.
One model. A benchmark of \(n\) independent questions, a true accuracy \(p\), and an observed accuracy \(\hat p\). Each question is a Bernoulli trial, so
At \(p = 0.7\): on HumanEval (\(n = 164\), Chen et al., 2021) the interval is \(\pm 7.0\) points; on the MMLU test set (\(n = 14{,}079\), Hendrycks et al., 2020) it is \(\pm 0.8\) points. A one-point gap means something on MMLU and nothing on HumanEval.
Two models on the same questions. Because both models answer the same items, compare them paired. Let \(d_i = b_i - a_i \in \{-1, 0, 1\}\) for question \(i\). If \(n_{10}\) questions are solved only by \(B\) and \(n_{01}\) only by \(A\), then
Only the questions on which the models disagree carry information about which is better.
Worked example. In the simulation below, \(A\) scores 70.1% and \(B\) 72.6% on 164 problems; \(B\) alone solves 21 and \(A\) alone 17. Then \(\bar d = 4/164 = 0.0244\), \(\operatorname{Var}(d) = 38/164 - 0.0244^2 = 0.2311\), \(\operatorname{SE} = \sqrt{0.2311/164} = 0.0375\), and the 95% interval is \(0.024 \pm 0.074 = [-0.049, +0.098]\). It contains zero: the benchmark cannot tell these models apart. Treating the two scores as independent would give \(\operatorname{SE} = 0.050\), so pairing helps, but not enough.
How big must a benchmark be? To detect a true gap \(\delta\) with 95% confidence and 80% power you need roughly \((1.96 + 0.84)\operatorname{SE} \le \delta\). With 23% of questions discordant, as here, \(\operatorname{SE} \approx \sqrt{0.23/n}\), so detecting \(\delta = 3\) points needs \(n \ge 0.23\,(2.8/0.03)^2 \approx 2{,}000\) questions. Evan Miller's Adding Error Bars to Evals develops this properly, including clustered questions, which make the intervals wider still.
Build it¶
Three tools for reading papers. First, the error bars: the size of the noise on two benchmarks, and a paired bootstrap on two simulated models whose outcomes are correlated (some problems are hard for both), as real models' are.
# How big must a gap between two models be before you believe it?
import numpy as np
rng = np.random.default_rng(0)
def ci95(p, n): # normal-approximation 95% interval for an accuracy
se = np.sqrt(p * (1 - p) / n)
return 1.96 * se
for name, n in [("HumanEval", 164), ("MMLU test", 14079)]:
print(f"{name:10s} n={n:6d}: accuracy 70% is ±{100*ci95(0.70, n):.1f} points (95% CI)")
# Two models on the same 164 problems: A solves 70%, B solves 73%.
n = 164
skill = rng.normal(size=n) # some problems are hard for both
za = skill + rng.normal(scale=0.8, size=n) # each model's own noise on top
zb = skill + rng.normal(scale=0.8, size=n)
a, b = za > np.quantile(za, 0.30), zb > np.quantile(zb, 0.27)
print(f"\nA = {a.mean():.3f}, B = {b.mean():.3f}, B - A = {b.mean() - a.mean():+.3f}")
# Paired bootstrap: resample problems, keep each problem's (A, B) pair together.
idx = rng.integers(0, n, size=(10_000, n))
diffs = b[idx].mean(axis=1) - a[idx].mean(axis=1)
lo, hi = np.percentile(diffs, [2.5, 97.5])
print(f"paired bootstrap 95% CI for B - A: [{lo:+.3f}, {hi:+.3f}]")
print(f"problems where they disagree: {np.sum(a != b)} of {n}")
Output:
HumanEval n= 164: accuracy 70% is ±7.0 points (95% CI)
MMLU test n= 14079: accuracy 70% is ±0.8 points (95% CI)
A = 0.701, B = 0.726, B - A = +0.024
paired bootstrap 95% CI for B - A: [-0.049, +0.098]
problems where they disagree: 38 of 164
The bootstrap interval matches the formula in The maths to three decimals.
Second, reading an equation by running it. This is equation 1 of the transformer paper at the paper's base sizes, with every shape printed and two of the paper's claims checked by assertion and measurement.
# Read an equation by checking its shapes: Attention(Q,K,V) = softmax(QK^T / sqrt(d_k)) V
# (Vaswani et al., 2017, eq. 1), with the paper's base sizes: d_model=512, h=8, d_k=d_v=64.
import numpy as np
rng = np.random.default_rng(0)
B, T, d_model, h = 2, 10, 512, 8
d_k = d_v = d_model // h # 64, as in section 3.2.2
X = rng.normal(size=(B, T, d_model))
W_q, W_k, W_v = (rng.normal(size=(h, d_model, d_k)) / np.sqrt(d_model) for _ in range(3))
W_o = rng.normal(size=(h * d_v, d_model)) / np.sqrt(h * d_v)
Q = np.einsum("btd,hdk->bhtk", X, W_q) # (B, h, T, d_k)
K = np.einsum("btd,hdk->bhtk", X, W_k)
V = np.einsum("btd,hdk->bhtk", X, W_v)
S = Q @ K.transpose(0, 1, 3, 2) / np.sqrt(d_k) # (B, h, T, T)
A = np.exp(S - S.max(-1, keepdims=True)); A /= A.sum(-1, keepdims=True)
O = (A @ V).transpose(0, 2, 1, 3).reshape(B, T, h * d_v) @ W_o # concat heads, project
for name, M in [("Q", Q), ("scores", S), ("weights", A), ("output", O)]:
print(f"{name:8s} {str(M.shape):18s}")
assert np.allclose(A.sum(-1), 1) and O.shape == X.shape
print("rows of the attention weights sum to 1; output has the input's shape")
print(f"score std with 1/sqrt(d_k): {S.std():.2f}; without: {(S * np.sqrt(d_k)).std():.2f}")
Output:
Q (2, 8, 10, 64)
scores (2, 8, 10, 10)
weights (2, 8, 10, 10)
output (2, 10, 512)
rows of the attention weights sum to 1; output has the input's shape
score std with 1/sqrt(d_k): 1.02; without: 8.18
The weights tensor is what the paper's attention visualisations in its appendix show. Pick a query
token below and read its row: one probability distribution over the positions it attends to.
Third, finding papers programmatically with the arXiv API, which asks for no more than one request every three seconds. Your output will differ: it is live.
# Query the arXiv API: how many AI papers in a month, and the newest few on a topic.
import re, time, urllib.parse, urllib.request
def arxiv(query, n=1, sort="relevance"):
url = "https://export.arxiv.org/api/query?" + urllib.parse.urlencode(
{"search_query": query, "max_results": n, "sortBy": sort, "sortOrder": "descending"})
xml = urllib.request.urlopen(url, timeout=30).read().decode()
total = int(re.search(r"<opensearch:totalResults>(\d+)", xml).group(1))
entries = re.findall(r"<id>http://arxiv.org/abs/(\S+?)</id>.*?<title>(.*?)</title>", xml, re.S)
return total, [(i, " ".join(t.split())) for i, t in entries]
cats = "(cat:cs.LG OR cat:cs.AI OR cat:cs.CL OR cat:cs.CV)"
total, _ = arxiv(f"{cats} AND submittedDate:[202609010000 TO 202609302359]")
print(f"AI/ML papers submitted to arXiv in September 2026: {total:,} (~{total/30:.0f} a day)")
time.sleep(3) # arXiv asks for a pause between calls
_, latest = arxiv('ti:"direct preference optimization"', n=3, sort="submittedDate")
for arxiv_id, title in latest:
print(f" {arxiv_id:14s} {title[:70]}")
Output (run on 20 October 2026):
AI/ML papers submitted to arXiv in September 2026: 13,641 (~455 a day)
2610.25856v1 Statistical Learning Theory for Direct Preference Optimization
2610.24945v1 Robust Direct Preference Optimization under Preference Label-Flip Atta
2610.18609v1 DPOison-VL: Clean Preference Poisoning in Vision-Language Direct Prefe
Things to try
- In the first program, change \(n\) to 2,000 and rerun: does the interval for \(B - A\) now exclude zero?
- Remove the shared
skillterm so the two models' errors are independent. How does the number of disagreements, and the interval, change? Why do real models' errors correlate? - In the attention program, add a causal mask (set scores above the diagonal to \(-\infty\) before the softmax) and check that row \(t\) of the weights is zero beyond column \(t\).
- Pick a paper from the last week on Hugging Face Papers and do a timed first pass: ten minutes, then write the five Cs.
Check yourself¶
What are Keshav's three passes, and what should you be able to do after each?
Pass 1 (5–10 min: title, abstract, introduction, headings, conclusions, references): answer the five Cs and decide whether to continue. Pass 2 (up to an hour, skipping proofs, studying figures): summarise the paper and its evidence to someone else. Pass 3 (virtual re-implementation, about four to five hours for a beginner): reconstruct it from memory and identify its strengths, weaknesses and hidden assumptions.
Name the five Cs.
Category, Context, Correctness, Contributions, Clarity.
A paper reports 71.3% vs a baseline's 69.8% on a 500-question benchmark, single run each. What would you want before believing the gain?
The 95% interval on each score is about ±4 points, so the 1.5-point gap is well inside the noise. You want a paired comparison on the same questions with its interval, several seeds or samples, equally tuned baselines with matched compute, and evidence the test set is not contaminated.
Why do only the questions on which two models disagree matter for a paired comparison?
On questions both get right or both get wrong, \(d_i = 0\): they add nothing to the mean difference and (beyond the count \(n\)) nothing to its variance. The evidence for "B is better" is the balance of B-only wins over A-only wins.
In 'Attention Is All You Need', which table should you read in pass 2, and why?
Table 3, the ablations. It varies heads, key size, model size, dropout and positional encoding, and is where the paper justifies its design choices; the main results table only shows the headline numbers.
Give one design choice in the original transformer that the field later changed, and why.
Post-layer-norm became pre-layer-norm (more stable training of deep stacks without careful warm-up); sinusoidal positions gave way to rotary embeddings (better relative-position behaviour and extrapolation).
What is 'mathiness', in Lipton and Steinhardt's sense, and how do you detect it?
Mathematics that obscures or adds false authority instead of clarifying: loose theorems, notation for simple ideas. Detect it by translating each equation into a sentence and asking whether the sentence says something the prose did not, and whether any result depends on it.
Go deeper¶
Papers and guides
- How to Read a Paper — S. Keshav, ACM SIGCOMM CCR, 2007. Two pages; the three-pass method and the literature-survey recipe this page adapts.
- Ten simple rules for reading a scientific paper — Carey, Steiner and Petri, PLOS Computational Biology, 2020. Complementary advice, written for students.
- Troubling Trends in Machine Learning Scholarship — Lipton and Steinhardt, 2018. The four failure patterns to look for; essential for pass 2.
- Adding Error Bars to Evals — Evan Miller, 2024. The statistics of comparing models on benchmarks, from first principles.
- Deep Reinforcement Learning that Matters — Henderson et al., 2017. How seeds and implementation details swamp reported gains.
- Leakage and the Reproducibility Crisis in ML-based Science — Kapoor and Narayanan, 2022. A taxonomy of leakage you will now spot everywhere.
- Do ImageNet Classifiers Generalize to ImageNet? — Recht et al., 2019. What years of test-set reuse does to a benchmark.
- Attention Is All You Need — Vaswani et al., 2017. The paper read closely above; do your own three passes on it.
Videos and lectures
- CS230 Lecture 8: Career Advice / Reading Research Papers — Andrew Ng, Stanford, 2018. How a prolific researcher reads: many papers, several passes, four questions.
Tools
- Hugging Face Papers — A daily shortlist with linked code and models.
- OpenReview — Read the reviews of a paper you have read; compare them with your own pass-2 doubts.
- arXiv API user manual — Query syntax for the third program above.
Where this leads¶
- The paper canon — what to read, in order.
- Keeping up with the frontier — a weekly routine for staying current without drowning.
- Benchmarks and their limits — the measurement side of every results table.
- Statistics for experiments and evals — the error-bar maths in full.