In a previous post, we introduced the
concept of a memory model as a function that takes a student, their
review history, and a card, and returns a forgetting curve that gives
the retrievability of the card as a function of time. In this post, we
discuss how we might evaluate and compare memory models, in particular
we’ll motivate our choice of metrics:
Normalized Entropy (Normalized Log Loss)
Brier Skill Score (Normalized Brier Score)
SmoothECE (and calibration plot)
AUC (and ROC curve)
All 8 Major Confusion Matrix Statistics at prediction thresholds
Temporal Discrimination Check
Our goal is that this post will serve as a clear and accessible
introduction for developers and researchers interested in memory models
for spaced repetition. We hope you come away with an improved
understanding of what each of the metrics means and why we chose it.
We’ve chosen to err on the side of covering things in detail, and
explaining concepts we expect readers might not already be familiar
with. We assume you’re familiar with probability theory, but not with
information theory or machine learning.
A note on scope: we discuss these metrics in the context of model
evaluation and comparison, not as training objectives. We are asking
‘which model is better?’, not ‘what should we optimize during training?’
The choice of objective function is largely decoupled from comparison
metrics — the metrics we propose here can be used to compare memory
models trained on a diversity of objectives. What metric to hill-climb
on during training is a separate engineering question involving
model-specific concerns like regularization.
2.1Proper Scoring Rules
A memory model is a kind of forecaster, something that makes
predictions about outcomes. A scoring rule is a function that we can use
to evaluate forecasters. It takes their prediction, along with the
actual outcome, and outputs a number representing the quality of the
forecast.
Sebastian Nowozin has written a helpful
blog post which I have edited slightly to improve readability within
the context of this article:
Given a set of possible outcomes and a class of probability
measures defined on a
suitably constructed -algebra, we consider a
forecaster which makes a forecast in the form of a probability
distribution .
After the forecast is fixed, a realization is revealed and we would like to assess quality
of the prediction made by the forecaster.
A scoring rule is a function such that is taken to mean the
quality of the forecast. Hence the function has the form . There are two variants
popular in the literature: the positively-oriented scoring
rules assign higher values to better forecasts, the
negatively-oriented scoring rules behave like loss functions,
taking smaller values for better forecasts.
A proper scoring rule has desirable behavior, to be made
precise shortly. Let us think what could be desirable in a scoring rule.
Intuitively we would like to make “cheating” difficult, that is, if we
really subjectively believe the forecast , we should have no incentive to report any
deviation from in order to
achieve a better score. Formally, we first define the expected
score under distribution
when reporting a forecast So
that if we believe in any prediction , then we should demand that (for
negatively-oriented scores) For strictly
proper scoring rules the above inequality holds strictly except for
. For a proper scoring rule
the above inequality means that in expectation the lowest possible score
can be achieved by faithfully reporting our true beliefs. Therefore, a
rational forecaster who aims to minimize expected score (loss) is going
to report his beliefs.
It is desirable that the scoring rules we use to evaluate memory
models are proper, because it ensures the models are incentivized to do
the best that they can, rather than reporting something other than what
they believe simply to game the metric. For example, under the improper
scoring rule , the
model is incentivized to always predict or to minimize its loss. Our set of
metrics includes two proper scoring rules: the log loss, and the Brier
score.
Actually, we use normalized versions of these scores to
facilitate model comparison when the models are trained on different
datasets, but this is a technical detail you can ignore for now until we
discuss it later in the post.
2.1.1The Log Loss (aka Binary Cross Entropy
Loss)
Throughout this article, we will use the convention of
negatively-oriented scoring rules. Meaning the output of is always and lower is better. Technically,
the Log Loss we discuss throughout is the Negative Log Loss,
though that loss is commonly referred to as simply the Log Loss
throughout the ML literature. We will remain consistent with that
convention.
For a prediction and
outcome , the
(negative) log loss scoring rule for probabilistic binary classification
is given by
For a dataset of reviews,
typically we report the mean log loss across examples:
where is the prediction of
the model for the -th example.
The
information theoretic interpretation of the log loss.
The log loss has a useful and beautiful information theoretic
formulation, but to understand it, you first need to be acquainted with
the definitions of entropy and KL divergence in information theory, at
least as they pertain to a Bernoulli distribution.
Entropy. The entropy
of a discrete probability distribution (for instance a Bernoulli
distribution) is, informally speaking, a measure of how “random” it is.
It is the expected surprise you experience when you sample from the
distribution. For a discrete random variable with possible outcomes and probability
distribution where , the entropy is:
The term represents
the surprise of outcome . The
smaller , the more you’re
surprised when you observe . In
the limit as the outcome becomes more and more rarefied, you approach
infinite surprise. But why do we use a negative logarithm to represent
surprise? You’re increasingly surprised the more unsuspected an event,
therefore we want it to be large for small probabilities. That’s why we
use the negative log instead of the log, so we get a large positive
number for probabilities approaching zero. If three independent rare
events happen you will be three times as surprised, compared to just one
of them happening, since probabilities of independent events multiply,
and we want surprise to add, the logarithm is the only continuous
function we can choose (). Conversely, when
something we expect to happen happens, we aren’t very surprised at all,
which matches the behavior of logarithms, which approach as their argument approaches .
The entropy is maximized when
is uniform and minimized when
places all its probability mass on a single outcome. The maximum is
unbounded above in general, but for a given is bounded above by . The smallest possible entropy is 0.
The entropy of a Bernoulli distribution () parameterized by is
You will notice this is maximized at , which is in some sense the “most
random” Bernoulli distribution.
KL Divergence (aka Relative Entropy). The
KL divergence (Kullback-Leibler divergence), also called the relative
entropy, is a measure of how much one probability distribution diverges
from another. In Bayesian terms, the KL divergence is the extra
surprise that an agent who believes expects you to experience because you
believe .
For a discrete random variable
with possible outcomes and two probability distributions and over those outcomes, the KL divergence
fromto
is:
To see why this is the “extra surprise”: recall that is the surprise you experience
when you observe outcome and
you believe the distribution is .
Meanwhile is the surprise
an agent who believes experiences
for the same outcome. Suppose such an agent knows you believe . The agent’s expectation of your total
surprise is
which we can decompose by adding and subtracting :
So the agent expects you to incur a loss equal to the entropy — the surprise the agent themselves
would experience — plus the KL divergence, which is the extra
surprise the agent expects you to suffer because you believe and report
instead of . The KL divergence is the expected
value of this per-outcome excess surprise under the agent’s
belief .
Some properties:
always, with equality if and only if . You believe that is
more correct, so you always expect someone who believes to be more surprised than you
are. This is called Gibbs’ Inequality.
is not
symmetric: It is not in general the case that . So KL divergence is not a metric, though it is used as a
notion of “distance” between distributions.
is
undefined if there exists any outcome such that and . If I think something can happen,
and you say it’s infinitely impossible () then I think you’re infinitely wrong
and say ‘to hell with the KL divergence!’
The KL divergence of a Bernoulli distribution from a Bernoulli
distribution
is
The log loss decomposes into entropy plus KL
divergence. Now we can make the connection between information
theory and the log loss for probabilistic binary classification. Recall
that our expected log loss when the forecaster reports but we believe is
This decomposes into the entropy of plus the KL
divergence of
from .
So the log loss we expect a forecaster with forecast to incur when we believe is the sum of the entropy of our belief
(the
surprise we ourselves would experience) plus the KL divergence (the extra surprise we expect the
forecaster to suffer because they believe instead of ).
Since with equality if and only if , this gives us another way to see that the log loss is
strictly proper: the forecaster minimizes their expected loss exactly
when their prediction matches their belief, and the minimum achievable
expected loss in their opinion is the entropy of their belief.
Normalized Entropy
Suppose a dataset of reviews
for probabilistic binary classification has a base rate .
In the memory modeling case, this would mean that of cards are recalled
correctly. A memory model that simply guesses the base rate will incur a
mean log loss of .
For a dataset with base rate , this is nats. For a dataset with base rate , this is approximately
nats. So if model A has an
average loss of on the first
dataset and model B has a loss of on the second dataset, these two
models are clearly not the same, but it’s hard to say by how
much (model A is better, since its log loss is less than half the base
rate log loss, whereas model B’s log loss is comparable to the base rate
log loss).
Since we often want to compare memory models trained and evaluated on
different datasets, the natural fix is to normalize the mean log loss by
the loss incurred when predicting the base rate for everything. The
normalized entropy is:
where is the model’s
prediction for the -th review. The
name “normalized entropy” comes from the fact that the denominator
equals , but don’t
let the name mislead you — operationally, this is just the ratio of two
mean log losses. No distributional assumptions are involved. This puts
every dataset on the same scale:
1 means the model is no better than predicting the base rate for
every review. It has learned nothing from the features.
Less than 1 means the model is extracting information from the
features. Lower is better.
0 means perfect prediction.
Greater than 1 means the model is worse than the no-information
baseline.
We should make clear what this normalization does and does not do.
The normalization cancels the effect of the base rate. If two datasets
have different base rates, a raw log loss of 0.3 means very different
things on each; a normalized entropy of 0.7 means the same thing on
both: the model incurs 70% of the loss that the base-rate predictor
does.
This makes the normalized entropy valid for:
Comparing models evaluated on the same dataset, where the base rate
is identical for all models. (Could just have used log loss here, but
normalized entropy is still fine.)
Cross-validation and train/test splits of the same dataset.
Rough comparisons across datasets with different base rates.
However, there is a subtlety in the cross-dataset case. The
normalized entropy accounts for differences in base rate, but not for
differences in how informative the features are.
A memory model doesn’t predict in a vacuum. For each review , the model observes a feature vector
(e.g. the card’s review
history, time elapsed since last review, difficulty estimates) and
produces its prediction as a
function of . Some datasets have
richer features than others. A dataset with detailed review history and
card content gives the model much more to work with than a dataset with
only coarse review counts. Even a perfect model — one that extracts
every last bit of useful signal from the features — will still incur
some mean log loss, because the features don’t fully determine the
outcome. Call this the noise floor of the dataset.
The noise floor depends on the features. Two datasets can have the
same base rate but very different noise floors if one has richer
features than the other. The normalized entropy divides by the base-rate
loss, which is the same for both — so it removes the base-rate confound
but not the feature-informativeness confound. A model scoring 0.7
normalized entropy on the rich-feature dataset might be further from its
noise floor than a model scoring 0.8 on the sparse-feature dataset.
In summary, when comparing normalized entropies across datasets, keep
in mind that the normalization removes the base rate confound but not
the feature-informativeness confound.
2.1.2The Brier Score
The Brier score is another strictly proper scoring rule common in
machine learning. Unlike the log loss, it doesn’t have an elegant
information theoretic interpretation, but because it is commonly used,
and is strictly proper, we’re including it in our set of metrics.
For probabilistic binary classification, given a forecast and outcome for each predictions, the Brier score is
given by
The Brier Skill Score
Like the log loss, the Brier score is also sensitive to the base rate
. Consider a forecaster who
always predicts . Their
Brier score is:
Recall that the empirical variance of a set of values is defined as
, where is
the mean. So
is exactly the variance of the outcomes. Since each with mean , we can compute this
directly:
There are terms where
and terms where , so:
So . This can be quite low for imbalanced problems — not
because the forecaster is skilled, but because the problem is easy. The
Brier Skill Score ()
corrects for this by measuring improvement relative to this naive
baseline, which we label :
where is perfect,
means no improvement
over always predicting the base rate, and means worse. Note that
the score interpretation is reversed relative to normalized entropy: for
BSS, higher is better.
2.1.3Addressing Wozniak’s Critique
Piotr Wozniak, the creator of SuperMemo, has argued that the log loss
and Brier score are fundamentally
flawed for evaluating spaced repetition algorithms, and has
developed a proprietary “universal metric” as a replacement. His
critique identifies a real characteristic of spaced repetition data, but
some of the conclusions he draws from it are not correct.
In spaced repetition, the vast majority of reviews occur at high
retrievability — typically around 0.9. As established in the properness
proofs, a forecaster who believes
and honestly reports expects to
incur a log loss of and a Brier score
of . Both are small when
is near 0 or 1. Wozniak observes
that in this regime, a trivial model that always predicts 0.9 achieves a
similar aggregate score to a good model. He concludes that the scoring
rules can be “cheated” or “gamed”.
Strict properness already rules out cheating: as proved above, a
forecaster uniquely minimizes their expected score by reporting their
true beliefs. There is no alternative prediction that does better in the
forecaster’s own expectation. This is the definition of properness, and
it holds regardless of the base rate.
But properness is a first-person guarantee — it says each forecaster
does best by being honest given their own beliefs. We can also
ask a third-person question: on a given dataset, does a model that makes
differentiated predictions actually score better than a constant
predictor? The answer is yes, and we can see it directly.
So if any part of Wozniak’s observation is correct, it must be about
the magnitude of the advantage, not its existence. Whether the
advantage is large enough to detect in a finite dataset depends on the
dataset size and how much the outcome rates actually vary across the
feature values the model uses. Typical spaced repetition datasets have
an average recall around , the
distribution is skewed. This means that we need large datasets in order
to trust the distinctions between models made by metrics like logloss or
Brier score. In the experiment below we show that for datasets with
>100K reviews, even under pessimistic assumptions, the
signal-to-noise ratio is sufficient. That models like SM-17 and FSRS
achieve meaningful predictive accuracy using features in the data is
itself evidence that the signal is there; the question is only whether
proper scoring rules can detect it, and at what dataset size.
Wozniak’s proposed metric works as follows: he uses Algorithm SM-17
as a “classifier” to bin reviews by SM-17’s predicted retrievability
into quantiles. Within each bin, he computes the mean
prediction-minus-outcome for the algorithm under evaluation, then
aggregates these per-bin averages via RMSD. This is essentially
measuring calibration (defined formally in the Calibration
section below) — whether predicted probabilities match observed
frequencies within each bin. Measuring calibration across the full
spectrum of predicted retrievability is useful, and this is the
strongest aspect of Wozniak’s contribution. However, his metric bins
observations using SM-17’s predictions, not those of the model under
evaluation. The metric therefore measures alignment with outcomes as
partitioned by SM-17, and its verdicts are only as reliable as
SM-17’s predictions in each bin.
Finally, the skewed distribution of reviews near retrievability 0.9
does cause real problems, but in model training, not
evaluation. Models trained on data overwhelmingly concentrated near
retrievability 0.9 can learn to ignore the observations where outcomes
diverge from 0.9 — new cards, lapsed items, overdue reviews — while
still achieving a low training loss. This kind of degeneracy is a
well-known problem in machine learning, addressed through various
training-time interventions. The loss function does assign the
degenerate model a worse score than a model that makes differentiated
predictions; the problem is the optimization process finding a local
minimum that corresponds to a degenerate solution, not the
appropriateness of the training objective.
That being said, we do want to be able to detect when models fail in
this way. We include both a check for temporal collapse and a
calibration metric (SmoothECE) in our panel of metrics.
2.2Detecting Temporal Collapse
As already mentioned, temporal collapse is a known failure mode for
memory models. However, predicting a flat forgetting curve is not the
only way memory models can violate our expectations about how they
should behave over time. For example, we’ve observed models predict
forgetting curves that go down for a while, then back up!
From the psychological literature, we have a strong prior that, if a
memory isn’t recalled, it becomes less and less retrievable over time.
If a model doesn’t behave this way, we should be wary. Two possible
exceptions are circadian and consolidation effects; respectively,
periodic fluctuations over the day, and paradoxical increases in
retrievability across sleep boundaries.
Accounting for these, we expect that for any time elapsed since last
review , and
forgetting curve , that:
where is a tolerance
function that is monotonically decreasing and approaches zero.
Unfortunately, this theoretical desideratum is hard to check in
practice. Instead, we’re tentatively including an inexpensive sanity
check in our panel of evaluations.
Randomly sample reviews from
the validation or test dataset as appropriate and push them through your
model to get a sample of .
Then, for each , randomly
sample pairs from the
empirical distribution of intervals from the same dataset and label them
such that .
Finally, simply count the number of the total samples where to get a
Monte Carlo estimate of the propensity of the model to violate the
assumption that it should decrease over time.
We are less confident in this approach than in the other sections of
this post; as such, we expect our methodology for evaluating temporal
dynamics to change as we learn more.
2.3Calibration
Calibration is a notion rather than a term with a specific consensus
definition. When we say calibration we use it to describe a
behavioral property of a model. A model is well calibrated if,
vaguely, for events the model predicted had probabilities in the
neighborhood of , the empirical
rate is actually close to .
Specific measures of calibration often differ in how they specify the
concept of a neighborhood as used in the prior paragraph, and
it is this kind of witting and unwitting decision in the translation of
concept to code that makes all the difference to the properties of the
resulting measure of “calibration,” so called. It’s worth emphasizing
that any measure of model performance is itself a mathematical model
which may or may not express what we want.
Side Note: Another thought for future research is the idea that
we might want to know the model calibration with respect to
neighborhoods of the feature space. This would be feature set specific,
and therefore is beyond the scope of this set of metrics focused on
general applicability to memory models.
2.3.1Three Calibration Metrics
Unlike the elegance and clarity of the scoring rules discourse, the
study of calibration measures is more confusing. From our reading some
principled and popular choices have emerged, but though the theoretical
basis for such choices may be there, we are unable to parse all of the
theoretical justifications. It’s not so much that there is an absence of
proofs, but that, since we don’t understand them ourselves, we won’t
simply echo them to you. With that disclaimer, we will introduce
SmoothECE, which is the calibration measure we’ve chosen to use.
ECE
The most common approach to measuring calibration is binned Expected
Calibration Error (ECE). The idea is straightforward: partition the
interval into bins — say,
, , and so on — then, within each
bin, compare the average prediction to the fraction of positive
outcomes. If the model is well calibrated, predictions averaging within a bin should correspond to
roughly 25% positive outcomes in that bin. Binned ECE computes the
absolute difference between these two quantities in each bin, then takes
a weighted average across bins, weighted by how many predictions fall in
each one.
This is intuitive, easy to implement, and easy to visualize — the
familiar bar-chart reliability diagram is just a plot of average outcome
versus average prediction per bin, and the ECE is the weighted sum of
the gaps between the bars and the diagonal. The problem is that the
answer depends on the bins. Change the number of bins, or switch from
equal-width to equal-mass binning, and the reported calibration error
changes — sometimes substantially. A prediction of 0.3001 might land in
a different bin than 0.2999, producing a discontinuous jump in the
measure for an infinitesimal change in the model. There is no principled
basis for choosing 10 bins over 15 or 20, and the choice matters more
than practitioners might realize. Variants like RMSE-based binned ECE
(which squares the per-bin errors before averaging) share the same
fundamental dependence on bin boundaries. The bins are doing real work
in determining the answer, and that work is somewhat arbitrary.
Moreover, because ECE averages absolute (not signed) differences,
sampling noise inside each bin can only inflate the estimate, so a
perfectly calibrated model will still report a positive ECE on finite
data.
SmoothECE
SmoothECE (Błasiok & Nakkiran, 2024) replaces the bins with
kernel smoothing. Instead of asking “among predictions in the bin , what fraction of outcomes
were positive?”, it asks “among predictions near p, weighted by
proximity, what was the average outcome?” The weighting is Gaussian:
predictions very close to p contribute heavily, predictions far from p
contribute little. This produces a smooth estimate of the calibration
function — the function that maps what the model says to what actually
happens — without any bin edges to argue about.
The calibration error is then the average absolute gap between this
smooth curve and the diagonal (where the curve would be if the model
were perfectly calibrated), weighted by where the model’s predictions
actually concentrate.
Mechanically, this is something called Nadaraya-Watson kernel
regression of outcomes on predictions, followed by integration. It’s a
standard ‘nonparametric’ technique.
Kernel smoothing has its own arbitrary choice: the bandwidth σ, which
controls how wide the Gaussian weights are. Wide bandwidth → lots of
smoothing → you can only see broad miscalibration patterns. Narrow
bandwidth → less smoothing → you can see fine structure but also
noise.
SmoothECE’s contribution is a specific rule for choosing σ. The rule
is: find the value σ* where the reported calibration error
equals σ* itself. Because the calibration error decreases
monotonically as you increase σ (more smoothing always hides more
structure), and σ increases linearly, they cross exactly once. This
fixed point is the bandwidth.
The intuition is adaptive resolution: a badly miscalibrated model
gets evaluated at coarse resolution (big σ), and a nearly-calibrated
model gets a fine-grained evaluation (small σ). The resolution matches
the scale of the problem. If you find 5% miscalibration, you were
smoothing at roughly 5%. If you find 0.5%, you were smoothing at
0.5%.
We find the mechanical procedure compelling: it avoids bins, it’s
continuous, and it removes the most obviously arbitrary choices from the
computation. The adaptive bandwidth rule seems reasonable on its face —
it avoids under-smoothing (which would find spurious fine-grained
miscalibration in finite data) and over-smoothing (which would hide real
miscalibration).
The paper proves that the resulting measure is “consistent” in a
specific technical sense defined by Błasiok et al. (2023): the smECE
value is within a constant factor of the Wasserstein distance from the
joint distribution of predictions and outcomes to the nearest perfectly
calibrated such distribution. We are not going to pretend we’ve verified
these proofs, and the framing involves population-level distributional
reasoning that we’re not comfortable with. What we can say is that the
measure behaves well empirically, avoids the known pathologies of binned
ECE, and we are comfortable trusting the people proving the theorems for
now.
Given more time to focus on clarifying calibration measures, we would
investigate the fact that the SmoothECE framework is doing something
that could be expressed more naturally as a hierarchical Bayesian model:
put a flexible prior on the calibration function (say, a spline basis
with a shrinkage prior on the coefficients, on the logit scale), fit it
to the data, and read off a posterior distribution over calibration
error. The bandwidth selection that SmoothECE solves via a fixed-point
equation would instead be handled by inference over the smoothness
hyperparameter, with uncertainty propagated honestly to the final
answer.
We use SmoothECE because we mostly trust the process by which the
authors arrived at the conclusion that it’s an improvement over binned
ECE approaches, it’s implemented in a clean package
(pip install relplot), it produces useful visualizations,
and it’s widely used. We flag the Bayesian alternative as future work
that we think would be worth doing, if only to further clarify the
problem of calibration measurement in language less troubled by
map-territory conflation.
Two Calibration
Metrics From the Community
We want to address two calibration measures that are already in use
in the spaced repetition community. Wozniak’s Universal Metric
(discussed earlier) bins reviews by SM-17’s predicted retrievability and
computes RMSD of per-bin mean residuals. The FSRS project uses a similar
approach: bin reviews by spaced repetition specific features, then
compute RMSE of the per-bin calibration gaps.
Both are measuring something real — they ask whether predicted
probabilities match observed frequencies across the range of
predictions, which is exactly the question calibration metrics should
answer. We don’t claim these measures are wrong, and for the practical
purpose of iterating on a model during development, they clearly work:
the FSRS team has used their RMSE bins metric to successfully guide
improvements over several model versions.
However, both metrics inherit the problems with binning described
above: dependence on the number and placement of bin edges,
discontinuity at bin boundaries, and sensitivity to the binning scheme.
Additionally, both use model-dependent binning — the Universal Metric
bins by SM-17’s predictions, and the FSRS metric bins by spaced
repetition specific features — which can be thought of as a model in
itself. This means the partition of the data changes when you change the
model, which makes it harder to reason about what a change in the metric
actually reflects: did the model’s calibration improve, or did the new
predictions just land in the bins differently? We haven’t carried out a
formal analysis of the consequences of model-dependent binning, but our
intuition is that it introduces coupling between the measure and the
thing being measured that will be harder to reason about as models
become more complex.
We don’t have a strong argument that these concerns matter in
practice for current spaced repetition models. What we do have is a
measure — SmoothECE — that avoids them entirely, is theoretically
grounded, and is easy to compute. Given the choice between a binned
metric we feel has more foot-gun potential and a widely used tool
specifically designed to avoid the binning issues, supported by
epistemologically trustworthy parties, we prefer the latter. If future
work (ours or others’) demonstrates that SmoothECE and the community
metrics disagree in ways that matter, our choice now should be
re-questioned to see if it’s still reasonable given all the evidence
practically available.
2.4Discrimination
Discrimination is the model’s ability to distinguish reviews where
the student will recall the card from reviews where they won’t. Unlike
scoring rules and calibration, which evaluate the model as a
probabilistic forecaster, measures of discrimination treat the model as
a binary classifier: it predicts the student will recall, or that they
won’t recall.
Since a memory model outputs a probability for each review, we must
impose some threshold on all
model outputs, predicting “will recall” if and “won’t recall” if . Different choices for produce different classifiers from
the same memory model. Discrimination metrics characterize how well the
model separates the two classes across the full range of possible
thresholds, or a particular threshold of interest.
2.4.1The Confusion Matrix
For a given threshold ,
every review falls into one of four categories:
Actually recalled
Actually forgot
Predicted recall
True Positive (TP)
False Positive (FP)
Predicted forgot
False Negative (FN)
True Negative (TN)
We call this a confusion matrix. From it we derive several useful
rates. Actually there are 8 empirical conditional probabilities you
probably care about.
Model predictions, conditioned on student outcomes:
= True Positive Rate aka
Sensitivity
= False Positive Rate
= False Negative Rate
= True Negative Rate aka
Specificity
Student outcomes, conditioned on model predictions:
= Precision aka Positive
Predictive Value
= False Omission Rate
= False Discovery Rate
= Negative Predictive
Value
We will refer to the 8 above probabilities as the Confusion
Statistics.
Side Note: You may encounter the terms “type 1 error” and “type 2
error” in discussions of binary classification. These mean,
respectively, falsely detecting a problem that isn’t there, and failing
to detect a problem that is. We mention this only so you can translate
if you encounter these terms elsewhere. We won’t use them ourselves.
2.4.2The Receiver Operating Characteristic (ROC)
and the Area Under Its Curve (AUC)
The Receiver Operating Characteristic (ROC) curve traces out the
tradeoff between the True Positive Rate (TPR) and the False Positive
Rate (FPR) as the threshold
sweeps from 1 down to 0. At , the model predicts “forgot” for everything: , . At , the model predicts “recall” for
everything: , . In between, as the
threshold decreases, both TPR and FPR increase, tracing a curve from
to .
A model with no discriminative ability — one whose predictions are
independent of the outcomes — traces the diagonal from to . A model with perfect
discrimination traces the upper-left corner: it can achieve with at some threshold. Most
models fall somewhere in between, bowing above the diagonal.
The Area Under the ROC Curve (AUC) summarizes this curve as a single
number between 0 and 1. An AUC of 0.5 means no discrimination (the
diagonal). An AUC of 1.0 means perfect discrimination. The AUC has a
probabilistic interpretation: if you randomly draw one review where the
student recalled and one where they forgot, the AUC gives the
probability that the model assigned a higher retrievability to the
recalled review. This is equivalent to saying the AUC measures how well
the model ranks reviews by recall probability. But ranking is
all it measures. A model that predicts 0.51 for every recall and 0.49
for every lapse achieves AUC = 1.0 — perfect discrimination — while
being nearly useless as a probabilistic forecast. The predicted
probabilities are wrong for almost every review, but they are
in the right order. This is why AUC alone is insufficient for evaluating
memory models: we need the probabilities themselves to be correct. The
proper scoring rules and calibration metrics fill that gap.
2.4.3Reporting The Confusion Statistics at
The AUC and ROC curve summarize discrimination across all thresholds,
but in practice a spaced repetition user cares about specific
retrievability targets. A student who wants to maintain 90% recall is
operating at . We report
all 8 confusion statistics at , since these are the retrievability levels
a user is most likely to care about. Popular SRS apps like Anki and
RemNote default to 90% desired retention. This gives a concrete picture
of model behavior at the thresholds that actually matter: how often does
the model correctly identify cards that will be forgotten, how often
does it raise false alarms, and so on — at the specific operating points
a scheduler would use.
There is a deeper reason to evaluate at specific thresholds beyond
user preference. When a scheduler thresholds a memory model’s output at
some , the scheduling decision
is sensitive to small systematic biases in the model’s predictions near
. These biases may not be
apparent in aggregate metrics — a model can have excellent overall
calibration and discrimination while being systematically biased in the
narrow region around 0.9 where the scheduler actually operates.
Reporting the confusion statistics at the thresholds the scheduler will
use detects exactly this kind of failure.
2.5Conclusion
Our evaluation panel consists of six components: normalized entropy,
Brier skill score, SmoothECE (with calibration plot), AUC (with ROC
curve), the 8 confusion statistics at , and a temporal discrimination check.
No single metric tells the whole story. The proper scoring rules measure
overall predictive quality. SmoothECE checks whether the model’s
probabilities mean what they say. AUC and the confusion statistics
assess the model’s ability to distinguish recalls from lapses. The
temporal check catches models that have given up on modeling forgetting
altogether.
We have tried to be careful throughout this post about the
distinction between what we compute from data — averages of scores over
predictions and outcomes — and the distributional concepts that are
often invoked to justify those computations. The metrics we report are
all functions of predictions and outcomes. They do not require positing
a true data distribution, and we think the field is better served by
keeping that clear.
This panel is not final. As we learn more about what matters in
practice for spaced repetition, we expect it to evolve — particularly
around calibration measurement and temporal dynamics, where we are least
confident in our current choices.