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
Machine Learning
Machine Learning Engineer
Duolingo
November 29, 2026
Machine Learning Engineer
Technical Screen
Machine Learning
Medium

0

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
Spaced repetition
Forgetting curves
Regression with structured output
Model evaluation
Cold start
How to Approach This
  1. Understand the bias-variance trade-off. High training accuracy but low test accuracy signals overfitting.
  2. Choose evaluation metrics carefully based on the problem. Accuracy alone is often insufficient.
  3. Feature engineering is often more impactful than model selection.
  4. Know when to use tree-based models (tabular data) vs neural networks (unstructured data).
  5. 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 Prep
Sample Answer
Clarify

Unit: a learner and word (lexeme) pair. Each practice session gives the time since last seen Δ\Delta and the fraction of times the word was answered correctly in that session, used as observed recall...

Approach

Model hθ=2θ⋅xh_\theta = 2^{\theta \cdot x} and pθ=2−Δ/hθp_\theta = 2^{-\Delta / h_\theta}. Features x: 1+ncorrect\sqrt{1 + n_{correct}}, 1+nwrong\sqrt{1 + n_{wrong}}, a bias, and one-hot lexeme tags so each word gets its own d...


Submit Your Answer
Markdown supported

Related Questions