Skip to content
Start here Foundation 22 min read

How to study AI so it sticks

The bottleneck in learning AI is not access to information; it is remembering and using what you read. A century of memory research says what works: test yourself, space it out, mix it up, explain it, and build it. This page turns that research into a routine for this site.

10,000 ft

Learning science has tested dozens of study techniques. In the most cited review, Dunlosky and colleagues (2013) rated only two as high utility across ages, materials and test formats: practice testing (retrieving from memory) and distributed practice (spacing study over time). Three more were rated moderate: interleaving, self-explanation and elaborative interrogation. The habits most students actually use, rereading, highlighting and summarising, were rated low. AI is an unusually demanding subject for memory: maths, code, architectures and a moving literature all at once. The techniques below are how you keep it, and how you turn reading into the ability to build.

2,000 ft

Study in a loop. Read a page from the top down (10,000 ft, then 2,000 ft, then ground level). Close it and explain it in your own words. Build the code from a blank file. Turn what you could not recall into a few flashcards. Let a scheduler bring them back at growing intervals. Log what you did and what surprised you. Each step is backed by a specific finding, and each feels harder than rereading; that difficulty is the mechanism, not a side effect.

The study loop
The study loop. Read top-down 10k → 2k → ground, Explain it from memory, Build it from a blank file, Make cards for the gaps, Spaced review scheduler, Lab notebook, revisit at a deeper levelThe study loop. Read top-down 10k → 2k → ground, Explain it from memory, Build it from a blank file, Make cards for the gaps, Spaced review scheduler, Lab notebook, revisit at a deeper level

Ground level

Why rereading feels good and fails

Rereading produces fluency: the page feels familiar, so you judge that you know it. Familiarity is a poor predictor of being able to recall or use the material later, and the gap between the two is measurable.

Roediger and Karpicke (2006) had students study short prose passages in four periods. One group studied four times (SSSS), one studied three times and took one free-recall test (SSST), and one studied once and took three tests (STTT). No test gave feedback. Five minutes later the repeated studiers recalled the most. One week later the order reversed:

0%50%100% 837871 405661 5 minutes later1 week later SSSS (study ×4) SSST STTT (study ×1, test ×3)
Percentage of idea units recalled, Roediger and Karpicke (2006), Experiment 2. Repeated study wins at five minutes and loses badly at one week. The SSSS group also predicted it would remember the most.

The last detail is the important one: the students who studied four times were the most confident they would remember the passage a week later, and they remembered the least. Your sense of "I know this" after rereading a page on attention is not evidence that you know attention. The only reliable evidence is retrieving it.

Retrieval practice: test yourself before you feel ready

Retrieval practice means pulling information out of memory instead of putting it back in. Each successful retrieval makes the memory more durable and more accessible from new cues; each failed attempt, followed by the answer, tells you exactly where the gap is. Karpicke and Blunt (2011) found retrieval practice produced more learning than elaborative study with concept maps, even on questions that asked students to draw inferences rather than recall facts.

On this site, retrieval practice has four concrete forms:

  • Check yourself questions at the end of every page. Answer them before opening the collapsible, in writing or aloud. A wrong answer you then correct is worth more than a right answer you recognised.
  • The blank-page derivation. Close the page and derive the result: the gradient of softmax cross-entropy, the \(\sqrt{d_k}\) scaling in attention, \(C \approx 6ND\). If you stall, look at one line, close it again, continue.
  • The blank-file build. Rebuild the page's Build it code without looking. You will discover which shapes and which signs you never really understood.
  • Flashcards for the facts and small derivations you want available in a second (below).

Spacing: the same hours, spread out, last longer

Material studied in several sessions separated by gaps is retained far longer than the same study time in one block. Cepeda and colleagues (2006) pooled 839 assessments from 317 experiments and confirmed the effect is robust, and that the best gap grows with how long you need to remember. Their follow-up (Cepeda et al., 2008) asked the practical question: how big a gap? More than 1,350 people learned facts, reviewed them after a gap of up to 3.5 months, and were tested up to a year later. The best gap grew with how long you need to remember, but as a fraction of that period it shrank: about 20–40% of a one-week retention interval, falling to about 5–10% of a one-year interval.

For you, that translates into a rule: if you want to remember something for a year, review it at intervals that start at days and grow to weeks and months. That is exactly what a spaced repetition scheduler does.

1.00.50 day 020304060 test on day 30 reviews on days 1, 3, 7, 16 cram on days 26–29
A toy memory model (the one in Build it): each review resets recall to 1 and slows later forgetting, more so when the review came after more forgetting. Cramming wins a test on day 30; expanding reviews win everything after it.

Spaced repetition software

A spaced repetition system (SRS) holds your flashcards and schedules each one individually: a card you answer easily comes back after a longer interval, one you fail comes back soon. Anki is the standard free tool. Its scheduler can be the classic SM-2 algorithm or FSRS, a newer model fitted to large review datasets (see The maths). Michael Nielsen's essay Augmenting Long-term Memory describes using Anki to read papers in an unfamiliar field: the practical guide to doing what this section describes.

What to put on cards for AI:

Good card Why it works
Q: In scaled dot-product attention, what are the shapes of \(Q\), \(K^\top\) and \(QK^\top\) for one head with sequence length \(T\) and head size \(d_k\)? A: \(T\times d_k\), \(d_k \times T\), \(T \times T\). precise, one idea, answer is unambiguous
Q: Why divide attention scores by \(\sqrt{d_k}\)? A: dot products of random unit-variance vectors have variance \(d_k\); scaling keeps softmax out of its saturated, small-gradient region. a why, short enough to retrieve
Q: Training compute of a dense transformer, \(N\) params, \(D\) tokens? A: \(C \approx 6ND\) (2 forward + 4 backward FLOPs per param per token). a formula plus the reason for its constant
Q: What does DPO optimise instead of a learned reward model? A: a classification loss on preference pairs, using the policy's log-ratio to a reference model as an implicit reward. links two ideas

And what not to: whole paragraphs, lists of ten items, anything you could not answer the same way twice. Andy Matuschak's guide to writing good prompts gives five properties: focused (one detail), precise (the question says exactly what it wants), consistent (the same answer each time), tractable (you can almost always answer it) and effortful (you genuinely retrieve, not infer from the wording). Write cards only for things you have already understood; a card cannot create understanding, only preserve it.

Interleaving: mix the problem types

Practising one type of problem in a block feels productive because each problem uses the method you just used. Mixing types forces you to choose the method, which is the skill a real problem demands. Rohrer and Taylor (2007) taught students to compute the volumes of four kinds of solids. During practice, students who worked blocked sets scored 89% and those working shuffled sets 60%. On a test one week later the shuffled group scored 63% and the blocked group 20%.

For AI this means: when you review, mix. Do a shape problem from attention, then a gradient from an MLP, then a probability question, then a compute estimate. The Check yourself sections of different pages, answered in a shuffled order, are an interleaved problem set.

Self-explanation and the Feynman technique

Chi and colleagues found that the students who learned most from worked examples were the ones who explained each step to themselves (1989), and that prompting students to self-explain improved understanding (1994). Explaining forces you to connect the new idea to what you already know and exposes steps you were taking on faith.

The "Feynman technique" is the popular packaging of this: write the idea for an intelligent newcomer in plain words, find the places where you hand-wave or reach for jargon, go back to the source for exactly those places, and simplify again. Feynman did not write down a technique by that name; the label is modern. But it captures his habit well, and the words reported on his blackboard when he died in 1988, "What I cannot create, I do not understand", are the best one-line summary of how to learn AI.

The 2,000-ft box on every page is a target for this: if you can redraw the diagram and explain each arrow to a colleague, you understand the page at that altitude.

Build it: generation beats recognition

Implementing an idea is the strongest form of retrieval and self-explanation combined. Code does not let you hand-wave: a wrong shape crashes, a wrong sign diverges. That is why every page here ends in code you can type, and why the project ladder starts with micrograd.

Implementing a paper is the advanced version. Climb this ladder one rung at a time:

  1. Run the official code and reproduce one number from the paper.
  2. Re-implement the core method from the paper's description, using the official code only as an oracle to compare intermediate values.
  3. Reproduce a table entry with your own implementation, with several seeds and error bars.
  4. Ablate: remove one component the paper claims matters and measure what changes.

Most of the learning happens in rung 2, at the moments where your output and the oracle's disagree. How to read a paper covers how to extract what you need from the text.

Worked examples first, then fade them

When a topic is new, solving problems from scratch overloads working memory: you spend effort searching for a method instead of learning one. Sweller's cognitive load theory (1988) explains why, and the worked-example effect that followed from it is one of its best-replicated findings: novices learn more from studying worked examples than from solving the equivalent problems. The effect reverses as you gain expertise. So: on a new page, study the worked numeric example first; on review, cover the solution and generate it.

Keep a lab notebook

Ericsson's research on expert performance (1993) found that what separates experts is deliberate practice: effortful practice on specific weaknesses with immediate feedback, not hours alone. A lab notebook is how you give yourself feedback across weeks. Keep one file (Markdown or a paper book) with dated entries:

2026-10-20  Attention (transformers/attention)
Goal: derive softmax(QKᵀ/√d)V and implement it with a causal mask.
Did: derivation on paper ✓; NumPy build ✓ after one bug.
Bug: masked with 0 instead of -inf, so masked positions still got weight.
Could not recall: why √d and not d. → card written.
Surprise: attention weights for "it" in my toy sentence split across two nouns.
Next: multi-head attention; redo the derivation on Friday from memory.

For experiments, add the hypothesis, the exact configuration, the seed, the result and what you will change. Six months later this file is the record of what you know, and the place you look when you have forgotten.

Desirable difficulties: why the good techniques feel worse

Every technique above makes study feel slower and less fluent than rereading. Robert and Elizabeth Bjork call these desirable difficulties: conditions that slow apparent progress during learning but improve long-term retention and transfer. The trap is that you judge your learning by how it feels in the session. In the Rohrer and Taylor study, the blocked group was better during practice. In the Roediger and Karpicke study, the rereaders felt more confident. Trust the schedule, not the feeling.

Using AI assistants to learn AI

An assistant is an excellent tutor and a dangerous crutch, and the difference is who does the generating. In a field experiment with about a thousand high school students, Bastani and colleagues (2025) found that students given unrestricted GPT-4 access during practice did much better on practice problems and then about 17% worse on an exam taken without it than students who never had access; a version designed to give hints rather than answers largely removed the harm. Use the assistant to quiz you, to check your derivation after you have done it, to generate new practice problems, and to explain a step you have already tried. Do not use it to produce the derivation or the code you are meant to be learning. And verify what it says about recent facts against primary sources: that is a skill this whole site is built to teach.

A routine that fits a working week

When What Time
Daily flashcard review in your SRS, new cards from yesterday's study 10–15 min
Study sessions (3–4 a week) one page: read top-down, explain, build, Check yourself, write cards 60–90 min
Weekly (Friday) interleaved review: answer last week's Check yourself questions shuffled; redo one derivation from memory; notebook summary 30–45 min
Monthly rebuild one past Build it from a blank file; reread your notebook; adjust the learning path 1–2 h

First principles

Why do testing and spacing work? The most useful account is Robert and Elizabeth Bjork's "new theory of disuse" (1992), which distinguishes two properties of every memory:

  • Storage strength: how well learned and interconnected the memory is. It only grows.
  • Retrieval strength: how accessible it is right now. It decays with time and interference.

The key claim is that the gain in storage strength from a study event is larger when retrieval strength is low at the time. Reviewing something you can recall effortlessly (just after reading it) adds little; retrieving something you have half forgotten, with effort, adds a lot. That one assumption predicts most of this page:

  • Spacing works because waiting lets retrieval strength fall, so the next review produces a larger gain.
  • Testing works because retrieval is a more potent study event than re-exposure, and failed retrieval followed by feedback marks the gap precisely.
  • Massed study and rereading feel effective because retrieval strength is high during them, and that same high retrieval strength is why they add little storage strength.
  • Interleaving works because each problem requires retrieving the method, not just reapplying the one in working memory.

Forgetting is not the enemy of learning; it is what makes the next retrieval valuable. This is also the logic behind the scheduler in the toy model below: the boost from a review grows with how much was forgotten.

The maths

The forgetting curve

Ebbinghaus (1885) measured his own forgetting of nonsense syllables by how much relearning they needed. After about twenty minutes he saved 58% of the original learning effort, after a day about a third, after a month about a fifth: fast loss at first, then a long slow tail. Murre and Dros (2015) replicated the curve with the same method and found results similar to the original, with a small upward jump at the 24-hour point (sleep is the likely reason).

The simplest model is exponential decay of recall probability \(R\) with time \(t\) since the last review, governed by a stability \(S\) (in days):

\[ R(t) = e^{-t/S}. \]

If you want to review when recall has dropped to a target \(r\) (say 0.9), solve for \(t\):

\[ t^{*} = -S \ln r, \qquad r = 0.9 \;\Rightarrow\; t^{*} \approx 0.105\,S. \]

Real forgetting has a heavier tail than an exponential: a mixture of memories with different stabilities decays like a power law. FSRS-4.5 uses

\[ R(t, S) = \left(1 + F\,\frac{t}{S}\right)^{D}, \qquad D = -0.5, \]

with \(F\) chosen so that \(S\) keeps its meaning, the interval after which recall falls to 90%: requiring \(R(S, S) = 0.9\) gives \((1 + F)^{-0.5} = 0.9\), so \(1 + F = 0.9^{-2} = 100/81\) and \(F = 19/81\). Inverting for the interval that hits a desired retention \(r\):

\[ I(r, S) = \frac{S}{F}\left(r^{1/D} - 1\right). \]

At \(r = 0.9\), \(I = S\) by construction. Asking for 95% retention shortens the interval to \(0.46\,S\); accepting 80% stretches it to \(2.4\,S\). Desired retention is the dial between workload and memory.

SM-2: geometric intervals

SM-2 (Wozniak, 1987) gives each card an easiness factor \(EF\), starting at 2.5. After a review graded \(q \in \{0, \dots, 5\}\):

\[ EF' = \max\!\big(1.3,\; EF + 0.1 - (5 - q)\,(0.08 + 0.02\,(5 - q))\big), \]

and the intervals are \(I(1) = 1\) day, \(I(2) = 6\) days, \(I(n) = I(n-1)\cdot EF\) for \(n > 2\). A grade below 3 restarts the sequence (without changing \(EF\)). A grade of 4 leaves \(EF\) unchanged; 5 adds 0.1; 3 subtracts 0.14.

Intervals therefore grow geometrically: \(I(n) \approx 6\,EF^{\,n-2}\). With \(EF = 2.5\), the number of successful reviews before the interval exceeds a year is the smallest \(n\) with \(6 \times 2.5^{\,n-2} \ge 365\), i.e. \(n - 2 \ge \ln(365/6)/\ln 2.5 = 4.48\), so \(n = 7\). Seven reviews, about a minute of total effort, buys a year of memory for one card.

The workload of a deck

If you add \(k\) new cards a day and each card needs about seven reviews in its first year, then in steady state you do about \(7k\) reviews a day plus the \(k\) new ones. At roughly 8 seconds per review, 10 new cards a day costs about \(80 \times 8\ \text{s} \approx 11\) minutes a day. That is the budget behind the daily line in the routine above, and why "a few good cards a day" beats "fifty cards after a binge".

Build it

Two programs. The first simulates the toy memory model from First principles: exponential forgetting, and a review boost that grows with how much was forgotten. It is illustrative, not fitted to data, but it reproduces the qualitative pattern of the experiments: massed review is nearly useless, cramming wins a test right after it, spaced review wins in the long run.

# Massed vs spaced review under a toy memory model (illustrative, not fitted to data).
import numpy as np

def recall(t, S):                 # probability of recall t days after the last review
    return np.exp(-t / S)

def after_review(S, R, gain=4.0): # toy rule: the harder the recall, the bigger the boost
    return S * (1 + gain * (1 - R))

def simulate(review_days, S0=1.0):
    S, last = S0, 0.0             # day 0: first study, stability 1 day
    for d in review_days:
        R = recall(d - last, S)
        S, last = after_review(S, R), d
    return S, last

schedules = {
    "massed (4 reviews, day 0)": [0.05, 0.10, 0.15, 0.20],
    "cramming (days 26-29)":     [26, 27, 28, 29],
    "expanding (days 1,3,7,16)": [1, 3, 7, 16],
}
print(f"{'schedule':27s} stability  recall@day30  recall@day90")
for name, days in schedules.items():
    S, last = simulate(days)
    print(f"{name:27s} {S:6.1f} d   {recall(30 - last, S):10.2f}  {recall(90 - last, S):12.2f}")

Output:

schedule                    stability  recall@day30  recall@day90
massed (4 reviews, day 0)      1.8 d         0.00          0.00
cramming (days 26-29)         16.2 d         0.94          0.02
expanding (days 1,3,7,16)     52.5 d         0.77          0.24

The second implements SM-2 exactly as Wozniak specified it, and the FSRS-4.5 forgetting curve with its interval formula.

# SM-2 (Wozniak, 1987) and the FSRS-4.5 forgetting curve, side by side.
import math

def sm2(grades, ef=2.5):
    """Yield (grade, next interval in days, E-Factor) for a sequence of 0-5 grades."""
    n, interval = 0, 0
    for q in grades:
        if q < 3:                 # failed: restart the repetitions, keep the E-Factor
            n, interval = 0, 1
        else:
            n += 1
            interval = 1 if n == 1 else 6 if n == 2 else math.ceil(interval * ef)
            ef = max(1.3, ef + 0.1 - (5 - q) * (0.08 + (5 - q) * 0.02))
        yield q, interval, ef

print("SM-2:  grade -> next interval (days), E-Factor")
day = 0
for q, i, ef in sm2([5, 4, 4, 3, 5, 2, 4, 5]):
    day += i
    print(f"  q={q}  +{i:3d} d  (review on day {day:3d})  EF={ef:.2f}")

# FSRS-4.5: R(t, S) = (1 + F t / S)^D with D = -0.5, F = 19/81, so R(S, S) = 0.9.
D, F = -0.5, 19 / 81
R = lambda t, S: (1 + F * t / S) ** D
interval = lambda r, S: S / F * (r ** (1 / D) - 1)
S = 10.0
print(f"\nFSRS-4.5 with stability S = {S:.0f} days: R(S) = {R(S, S):.3f}")
for r in (0.95, 0.90, 0.80, 0.70):
    print(f"  desired retention {r:.2f} -> review after {interval(r, S):5.1f} days")

Output:

SM-2:  grade -> next interval (days), E-Factor
  q=5  +  1 d  (review on day   1)  EF=2.60
  q=4  +  6 d  (review on day   7)  EF=2.60
  q=4  + 16 d  (review on day  23)  EF=2.60
  q=3  + 42 d  (review on day  65)  EF=2.46
  q=5  +104 d  (review on day 169)  EF=2.56
  q=2  +  1 d  (review on day 170)  EF=2.56
  q=4  +  1 d  (review on day 171)  EF=2.56
  q=5  +  6 d  (review on day 177)  EF=2.66
FSRS-4.5 with stability S = 10 days: R(S) = 0.900
  desired retention 0.95 -> review after   4.6 days
  desired retention 0.90 -> review after  10.0 days
  desired retention 0.80 -> review after  24.0 days
  desired retention 0.70 -> review after  44.4 days

Notice the lapse at day 170: one failed review sends a 104-day card back to a 1-day interval. That is SM-2's bluntest edge, and one of the things FSRS improves by modelling difficulty, stability and retrievability separately.

Things to try

  • In the toy model, set gain=0 (reviews do not depend on forgetting). Spacing loses its advantage. The whole effect lives in that one assumption.
  • Search for the review schedule of four reviews that maximises recall on day 90.
  • Compute your own deck's workload: new cards per day times seven, times your seconds per review.
  • Write ten cards for The map of AI using Matuschak's five properties, and review them tomorrow.

Common misconceptions

  • "I have a visual (or auditory) learning style." Pashler, McDaniel, Rohrer and Bjork (2008) reviewed the evidence and found no adequate support for matching instruction to self-reported learning styles; what helps is matching the representation to the content (diagrams for structure, equations for precision, code for procedure).
  • "Highlighting is active." It feels active, but Dunlosky et al. rated it low utility: choosing what to highlight is not the same as retrieving it.
  • "If it felt hard, the session went badly." The opposite is usually true (desirable difficulties).

Check yourself

Name the two techniques Dunlosky et al. rated high utility, and give one way to apply each to this site.

Practice testing (answer Check yourself questions and re-derive results before looking) and distributed practice (review each page's cards on a spaced schedule; revisit pages a week and a month later).

In Roediger and Karpicke's Experiment 2, which group was most confident, and how did it do after a week?

The study-four-times group (SSSS) predicted the best memory and recalled the least after a week: 40% versus 61% for the study-once, test-three-times group.

Derive F = 19/81 in the FSRS-4.5 forgetting curve.

Require \(R(S, S) = (1 + F)^{-0.5} = 0.9\). Then \(1 + F = 0.9^{-2} = 1/0.81 = 100/81\), so \(F = 19/81\).

Under SM-2, grading every review 4 (so EF stays 2.5), how many reviews until the interval exceeds one year?

Intervals 1, 6, 15, 38, 95, 238, 595 days (each the previous times 2.5, rounded up): the seventh exceeds 365. So seven reviews.

Why does the Bjorks' theory predict that spacing helps?

The storage-strength gain from a review is larger when retrieval strength is low. A gap lets retrieval strength fall, so the review that follows produces a larger gain than one taken immediately.

You blocked all your backprop exercises into one evening and aced them. Why might that be misleading, and what would you change?

Blocked practice lets you reuse the method in working memory, inflating performance (blocked students in Rohrer and Taylor scored 89% in practice but 20% a week later). Interleave: mix backprop with attention-shape, probability and compute problems, and test again after a gap.

How should you use an AI assistant while working through a derivation on this site?

Do the derivation yourself first. Then use the assistant to check it, to explain a specific step you tried and could not do, or to generate a new practice problem. Avoid having it produce the derivation for you: the generation is the learning.

Go deeper

Papers

Articles and essays

Tools

Books

  • Make It Stick — Brown, Roediger and McDaniel, 2014. The research above, written for learners.

Where this leads