Education · Algorithm ·

When to review

How to know the right moment to review a verse you memorized, before forgetting takes you by surprise.

Forgetting

A student memorizing the Quran recites verse 136 of Al-Baqarah, “Say, [O believers], "We have believed in Allāh and what has been revealed to us and what has been revealed to Abraham ” [Al-Baqarah 2:136], and without noticing slides into its sister verse in Al Imran: “Say, "We have believed in Allāh and in what was revealed to us and what was revealed to Abraham, ” [Ali 'Imran 3:84]. The two are almost identical. The student memorized the first three weeks ago and has reviewed it once.

So when should it have been reviewed? The next day? A week later? Every day? It isn't only a question for people memorizing the Quran. Anyone memorizing anything, the words of a new language, the names of drugs, the laws of physics, runs into it.

It sounds like a small question, and nobody has settled it. Psychologists, language teachers and a programming student have each tried, and each came away with a rule. Every one of those rules is an algorithm: steps we follow to make the decision ourselves, whether on paper or with an app on a phone. The algorithm doesn't decide for us. It helps us decide.

The question is as old as memorizing itself. Measuring forgetting with experiments and numbers began in Berlin in the 1880s, with a man memorizing words that mean nothing. Hermann Ebbinghaus built lists of short syllables from no language at all, so that meaning couldn't help him remember. He learned a list, waited, learned it again, and timed himself. A day later, relearning saved him about a third of the original work. A month later, about a fifth.1 Most of the forgetting happens in the first days, and what is left fades slowly.

A review changes the curve. Recall goes back to the top, and the fall after it is slower than the one before. Each review that holds pushes the next one further away.

50%60%70%80%90%100%0510152025303540days since it was memorizedS 1.0S 3.6S 12.7S 38.9 →1234

plate 1 · one verse, three reviewsAl-Baqarah 136 · difficulty to memorize 5.5 · R = 9S / (9S + t)

  1. 1The day it is memorized. Recall starts certain and falls fast: to 90% by the next morning.
  2. 2Stability, S: the days until recall falls to 90%. One day, after a first memorizing.
  3. 3A review that holds puts recall back at the top and multiplies the stability. Each fall is slower than the last.
  4. 4Left alone, the same verse is below one chance in two by day nine.

reviewed on days 1, 5 and 18never reviewed

Plate 1

Every method below is a rule for where to put the next review on this curve.

Figure 1. One verse, reviewed three times, and the same verse left alone.

Review too soon and the review is wasted: reciting a verse you were sure to recall adds almost nothing to your memory of it. Review too late and the verse has slipped, and the review becomes memorizing it over. Psychologists call this the spacing effect. In 2008, Nicholas Cepeda and his colleagues ran a test online with 1,354 people. They learned 32 facts and came back for a second session after a gap of up to fifteen weeks. The best gap gave 64% more recall than studying twice in a row, and the best gap grew with how long the facts had to last.2 A gap a little too long cost much less than one a little too short.

Every way of reviewing tries to find that gap for each verse, and all it has to go on is the recitation: whether the verse came out right, and whether it came easily or after a pause.

Three verses

Follow three verses. The first is easy to memorize: “Say, "He is Allāh, [who is] One,” [Al-Ikhlas 112:1], the first verse of Al-Ikhlas, short and recited every day. The second is verse 136 of Al-Baqarah, so close to its sister in Al Imran that memorizers pass around a trick to keep them apart: in Arabic, Al Imran's "upon us", علينا, begins with the letter ain, like the name of the sura. The third is hard to memorize: verse 35 of Al-Ahzab, “Indeed, the Muslim men and Muslim women, the believing men and believing women, ” [Al-Ahzab 33:35], a long run of paired qualities where one pair is easily dropped or put in the wrong place.

Each method is a rule that runs after every recitation. It reads the grade and returns the day of the next review. The grade is a number for the recitation: 1 if the verse was forgotten, 3 if reciting it was hard, 4 if it went well, 5 if it was easy. Every method reviews a verse the day after it is memorized, and they part ways from there.

Turn on Example to follow the three through their first review, on day 1. Al-Ikhlas comes easily, Al-Baqarah 136 after a pause, and Al-Ahzab 35 not at all. Compare puts two methods side by side.

Leitner. In 1972 the German journalist Sebastian Leitner published So lernt man lernen, "How to learn to learn", and in it a box of paper cards split into compartments: a card answered right moves forward one, a card answered wrong goes back to the first.4 With verses the compartments become the rungs of a ladder that rates how well we hold each verse. A right recitation raises our rating of the verse by a rung, a mistake sets the rating back to the bottom, and the rungs are reviewed every day, every two days, then every 4, 8 and 16, as in the common version today. Duolingo started with a system like this.5 The method listens, but only to right and wrong.

Algorithm 3Leitner

3 of 5
1procedure MOVE-ON-THE-LADDER(verse, q, today)2if q ≥ 3 then3rung[verse] ← MIN(rung[verse] + 1, 5)4else5rung[verse] ← 16return today + GAPS[rung[verse]]
The common modern version, on a calendar. The rungs rate how well we hold a verse; Leitner had the compartments of a card box.
verse
Every day89 reviews · 1 forgotten
Pimsleur3 reviews · 1 forgotten
Leitner15 reviews · 3 forgotten
SM-25 reviews · 1 forgotten
FSRS6 reviews · 2 forgotten
reviewed, recited rightreviewed, forgottenone learner · the same verses in every lane

One verse, five calendars

Pick a verse. Al-Ahzab 35 is forgotten the day after it is memorized, in every lane. Every day draws a comb. Pimsleur stops after day 31 for these three, and our hold on the verse fades. The other three space their reviews out while our memory of the verse holds, and pull them in again when it slips.

Figure 2. The same verse, the same learner, under each method, for ninety days.

The model

Every number on this page comes from one simulation, and Algorithm 6 is that simulation, line for line.

Time moves in whole days. Each day, every verse that is due is reviewed. The learner recites it right or doesn't, by chance, with the probability the model gives for that verse on that day. The memory changes, and the method sets the next review. Then the day's new verses are memorized.

Algorithm 6Ninety days of review

Takes
verses, the hundred verses
Returns
due, the day each verse is next reviewed
1procedure STUDY(verses, REVIEW)2for today from 0 to 89 do3for each verse in verses do4if today = GET-START(verse) then8else if today = due[verse] then9R ← PREDICT-RECALL(today − last[verse], S[verse])10recalled ← DRAW() < R11if recalled then12S[verse] ← STRENGTHEN(S[verse], GET-DIFFICULTY(verse), R)13else14S[verse] ← WEAKEN(S[verse])15last[verse] ← today16due[verse] ← REVIEW(verse, GRADE(recalled, R), today)18function PREDICT-RECALL(t, S)19return (1 + t / (9 · S))−120function STRENGTHEN(S, D, R)21return S · (1 + 4.5 · (11 − D) · S−0.1 · (e1 − R − 1))22function WEAKEN(S)23return MAX(1, 0.2 · S)24function GRADE(recalled, R)
A hundred verses, ten new a day. The numbers are the ones in the text.

The memory is the shape FSRS uses, with numbers of our own, rounded and easy to argue with. Our memory of each verse has two numbers. Its stability, S, is the number of days until recall falls to 90%: a day after it is first memorized. How hard the verse is to memorize runs from 2 to 9, and no method is told what it is.

Recall falls as R = 9S / (9S + t), with t the days since the last review, so it is 90% after S days and 50% after 9S. A right recitation multiplies the stability, by more when the verse is easy to memorize, by less when our memory of it is already stable, and by more the lower recall had fallen: a review at 70% is worth about three times one at 90%. A blank keeps a fifth of the stability, and never less than a first memorizing, since the learner is corrected and the verse is recited again. The grade follows how sure the recitation was.

Day by day

show
verse
or tap any bar

Day 0. The learner memorizes the first ten verses. No reviews yet.

Every dayevery verse, every day

recall —below 90% 0reviews today 0reviews so far 0

Pimsleureach gap five times the last

recall —below 90% 0reviews today 0reviews so far 0

Leitnerfive rungs, a right recitation raises the rating one

recall —below 90% 0reviews today 0reviews so far 0

SM-2gaps grow by an ease factor

recall —below 90% 0reviews today 0reviews so far 0

FSRSpredicts recall, reviews at 90%

recall —below 90% 0reviews today 0reviews so far 0

day0

How to read a bar: one verse, from the day it is memorized

  1. Memorized: the bar is full
  2. A day later: at 90%
  3. Reviewed, back to the top
  4. Three days later: falling more slowly
  5. Two weeks later: below 90%, and the space above is what was lost
  6. A month later: forgotten when recited
the verse picked, and its story under the barsforgotten when recitednot memorized yet

Try it

Each bar is a verse, tall while we hold it and shorter as our memory of it slips, and each method decides when to send it back to the top. Pick a verse, or tap any bar, to see its story under each lane. Watch the second month: one lane keeps every bar at the top by reviewing it every day, one goes quiet and its bars shrink, and three review a verse before its bar has fallen far.

Figure 3. The same learner and the same hundred verses, five methods, ninety days.

Picture a learner who memorizes a hundred verses, ten a day for the first ten days, and then tries to keep them for three months. Give that learner five schedules and watch.

In the first days the schedules look alike: new verses every day and plenty of reviews for them. By the end of the second week they come apart. Every day asks for a hundred reviews a day, and never fewer. The others thin out: in the second month Leitner asks for about seven a day, SM-2 about three, and FSRS two or three.

On day 40 something odd happens in the Pimsleur lane. It goes quiet. Every verse has had its 25-day gap, and the next is 125 days away. The verses are left alone, their bars shrink day by day, and on the last day this learner holds only about two verses in three.

At the end, Every day keeps 99.8% of the verses, measured each morning of the last two months. FSRS keeps 95% for a seventeenth of the work: about five reviews a verse in ninety days, against eighty-five.

What remembering costs

One learner can be lucky. The chart brings thirty together, each with their own verses, and puts every method at two numbers: how many reviews it cost per verse, and how much was still held. FSRS is a curve rather than a point, because its target is a dial: every target from 70% to 97%.

FSRS aims at90%

FSRSrecall kept 95.1%5.0 a verse

75%80%85%90%95%100%24681012reviews per verse, 90 daysEvery day99.8%84.5 a verse →Pimsleur 80.4%Leitner 98.3%SM-2 95.4%
FSRS, target 70% to 97%each point: the mean of 30 learners

Cost

Slide the target. Up to about 90%, a few more reviews buy a lot. Past it, each point of recall costs more than the one before.

Figure 4. Recall kept against reviews per verse over ninety days, the mean of thirty learners. FSRS at every target from 70% to 97%.

From this chart we can draw three observations.

The first is that listening to the recitation is worth a lot. Pimsleur and FSRS at 70% both spend three reviews a verse; Pimsleur keeps 80%, FSRS 87%. The reason is simple. Where Pimsleur spends its third review on a verse we already held firmly, FSRS spends it on one whose memory was slipping.

The second is that the old rules still hold. Leitner and SM-2 sit on the curve FSRS draws: SM-2 keeps 95.4% for five reviews a verse, and FSRS at 90% keeps 95.1% for the same five. That says as much about our model as about the methods. Our learner forgets by one formula with one set of numbers, and SM-2's gaps of 1, 6 and about 15 days happen to suit it. People don't all forget by one formula. FSRS's real advantage is that it fits its numbers to each person's own history, and on ten thousand Anki collections it predicts recall far better than SM-2 does.8 Our version is handed the model's own formula, so this chart can't show that advantage.

The third is that the last points are expensive. Raising the target from 90% to 97% doubles the reviews, from five a verse to ten, for three more points. Every day spends seventeen times SM-2's reviews for four and a half. Anki's manual gives the same warning: above 90% the workload climbs quickly, and above 97% it can be overwhelming.9 At the other end, lowering the target below about 75% saves no work: more verses are forgotten, and memorizing them again costs reviews too.

The curve is jagged because days are whole. Ninety days hold only a handful of reviews for most verses, so a small turn of the dial can move a review across the end of a gap.

What it leaves out

In the model every verse stands alone, while in the Quran each verse pulls the next along. The model's learner never mixes one verse up with its sister, as happens with the verses of Al-Baqarah and Al Imran. Same-day repeats are folded into the review: in practice a forgotten verse is recited again within minutes, while the model only lets it start over. And ninety days is short. Memorizing is meant to last years, and the gaps that matter most are the long ones.

Two results should hold outside the model too. Reviewing more often than needed buys very little, and with a fixed schedule that ignores the recitation, we forget verses we would have kept had we reviewed them in time. A method that listens, whether it uses a ladder, an ease factor or a model of memory, gets most of the way there.

So when should that student have reviewed the verse of Al-Baqarah? Reviewing everything every day would have kept it, at a price paid every morning. Pimsleur would have left it alone for four months after day 31. The methods that listen to the recitation would have brought it back within a few days, spaced the reviews out while our memory of it held, and pulled it closer again at the first hesitation.

The article Why not review every day? shows where the ideas behind these methods are used in computing, and why reviewing every day isn't the best use of our time, even though it feels safest.

References

  1. H. Ebbinghaus, Über das Gedächtnis, Leipzig, 1885. His savings, as tabulated in J. M. J. Murre and J. Dros, “Replication and analysis of Ebbinghaus’ forgetting curve,” PLOS ONE 10(7): e0120644, 2015. doi:10.1371/journal.pone.0120644 ↩

  2. N. J. Cepeda, E. Vul, D. Rohrer, J. T. Wixted and H. Pashler, “Spacing effects in learning: a temporal ridgeline of optimal retention,” Psychological Science 19(11), 1095–1102, 2008. doi:10.1111/j.1467-9280.2008.02209.x ↩

  3. P. Pimsleur, “A memory schedule,” The Modern Language Journal 51(2), 73–75, 1967. ERIC ED012150 ↩

  4. S. Leitner, So lernt man lernen, Herder, Freiburg, 1972. ↩

  5. B. Settles and B. Meeder, “A trainable spaced repetition model for language learning,” Proceedings of ACL 2016, 1848–1858. P16-1174 ↩

  6. P. Woźniak, “Algorithm SM-2,” from Optimization of learning, master’s thesis, University of Technology in Poznań, 1990. ↩

  7. J. Ye, J. Su and Y. Cao, “A stochastic shortest path algorithm for optimizing spaced repetition scheduling,” Proceedings of KDD 2022, 4381–4390. doi:10.1145/3534678.3539081. Anki 23.10, release notes, 31 October 2023. ↩

  8. Open Spaced Repetition, “srs-benchmark.” In the last version to include it, SM-2 had a log loss of 0.72 against 0.36 for FSRS-5, lower being better. SM-2 was not built to predict recall, and the benchmark added formulas so it could. ↩

  9. Anki Manual, “Deck options: desired retention.” ↩