Fit a Half-Life Regression Model for Word Recall
Last updated: November 29, 2026
Quick Overview
Explain how you would model the probability that a learner recalls a word as $p = 2^{-\Delta/h}$ with a learned half-life $h = 2^{\theta \cdot x}$, what features x you would use, how you would train it from practice logs, and how you would evaluate it against a simple Leitner-box baseline.
Duolingo
November 29, 20260
0
0 solved
Explain how you would model the probability that a learner recalls a word as $p = 2^{-\Delta/h}$ with a learned half-life $h = 2^{\theta \cdot x}$, what features x you would use, how you would train it from practice logs, and how you would evaluate it against a simple Leitner-box baseline.
Duolingo published half-life regression as a trainable spaced repetition model that cut recall prediction error versus the Leitner system. An MLE technical screen can use it to probe whether a candidate can reason about a model with a strong functional form, choose a loss, and pick metrics that matter for scheduling.
What the Interviewer Expects
- Explains why the exponential forgetting curve is a sensible prior
- Proposes interpretable features: right and wrong counts, lexeme identity, time since last seen
- Derives a training target from observed session recall rates
- Chooses a loss on both p and h and mentions regularization
- Evaluates with MAE on p, ranking quality and an online A/B test
- Compares to Leitner and a plain logistic regression
Key Topics to Cover
How to Approach This
- Understand the bias-variance trade-off. High training accuracy but low test accuracy signals overfitting.
- Choose evaluation metrics carefully based on the problem. Accuracy alone is often insufficient.
- Feature engineering is often more impactful than model selection.
- Know when to use tree-based models (tabular data) vs neural networks (unstructured data).
- Handle class imbalance with SMOTE, class weights, or appropriate loss functions.
Possible Follow-up Questions
- Why might logistic regression on the same features predict recall well but schedule badly?
- How would you handle a brand-new word with no history?
- How would you replace the linear half-life with a neural model and keep it fast?
- What online metric shows that better recall prediction improves learning?
Sharpen Your Skills on Codemia
Practice similar problems with our interactive workspace, get AI feedback, and track your progress.
Explore ML Interview PrepSample Answer
Clarify
Unit: a learner and word (lexeme) pair. Each practice session gives the time since last seen and the fraction of times the word was answered correctly in that session, used as observed recall...
Approach
Model and . Features x: , , a bias, and one-hot lexeme tags so each word gets its own d...