Stop 15 · Responsible ML, Portfolio & InterviewsTopics · 4/10

Reading ML Research Papers

Part of the Machine Learning Roadmap

In short

Dropout, Adam, ResNet and transformers all started as research papers. You don't need a PhD to read them. You need a method: read in passes, skip the scary maths at first, and turn one key equation into code.

Research papers are where new ML ideas first appear. Reading them in passes, starting with the abstract, figures and conclusion before the maths, makes them manageable and helps you understand the tools you use.

The jaadu sits at a study desk with a cup of tea, a thick stapled paper spread out, three coloured highlighters and sticky notes marking different pages.

Think of it like this

Reading the newspaper the smart way

Nobody reads a newspaper cover to cover in order. You scan the headlines, read the first paragraph of the stories that matter, glance at the photos, and only then read one or two articles fully. Papers work the same way: title and abstract, then figures and conclusion, and only then the method and maths in detail.

Watch it happen

The three-pass method

Pass 1: skim
Pass 2: figures
Pass 3: method
Reimplement

1/410 minutes: title, abstract, introduction's last paragraph, section headings and conclusion. What problem, what claim?

The big ideas

What you need to know

Read the abstract first

It tells you the problem, the idea and the headline result. Many papers can be dropped after this.

Figures carry the story

Result tables and diagrams often explain the contribution better than the text. Check the baselines they beat.

Write a one-page summary

Problem, key idea, results, limitations, and questions you still have. This is great material for interviews.

Use code and explainers

Papers with Code links official code. Blog explainers and talks are fine to use alongside the paper.

See it in code

Walk through the code

python
1import torch2 3# Adam, written straight from Algorithm 1 of the Adam paper (Kingma & Ba, 2014)4def adam_step(theta, g, m, v, t, lr=1e-3, b1=0.9, b2=0.999, eps=1e-8):5    m = b1 * m + (1 - b1) * g              # first moment (mean of gradients)6    v = b2 * v + (1 - b2) * g ** 2         # second moment (mean of squared gradients)7    m_hat = m / (1 - b1 ** t)              # bias correction8    v_hat = v / (1 - b2 ** t)9    theta = theta - lr * m_hat / (v_hat.sqrt() + eps)10    return theta, m, v11 12w = torch.tensor([2.0], requires_grad=True)13opt = torch.optim.Adam([w], lr=1e-3)14mine, m, v = torch.tensor([2.0]), torch.zeros(1), torch.zeros(1)15 16for t in range(1, 6):17    loss = (w - 5) ** 218    opt.zero_grad(); loss.backward(); opt.step()19    mine, m, v = adam_step(mine, 2 * (mine - 5), m, v, t)20 21print(w.item(), mine.item())     # the two match, up to tiny rounding

1/5The paper keeps running averages of the gradient and the squared gradient.

Turning a paper's pseudocode into code, then checking it against PyTorch's own optimizer.

Save yourself the pain

Common mistakes

Oops

Reading a paper from the first line to the last and getting stuck on equation 3.

Do this instead

Do the quick passes first. Return to hard maths only if you still need it after seeing the figures and conclusion.

Oops

Starting with the newest, hardest papers.

Do this instead

Begin with classics that are well explained elsewhere: Dropout, Batch Norm, ResNet, Adam, 'Attention Is All You Need'.

Your mission

One paper, one page, one notebook

~120 min

Quick check

In the three-pass method, what should the first pass focus on?

Go deeper

  1. 1Read 'Attention Is All You Need' or the ResNet paper using the three-pass method.
  2. 2Use Papers with Code to find an implementation and run it.
  3. 3Write a one-page summary of the problem, idea, results and limitations.

More topics at this stop

Stuck on this topic? Ask an Insider

Get 1:1 guidance from people who've walked this exact path — on the InsideEdge app.

Download
InsideEdge