Design the System That Chooses Daily Practice Reminders
Last updated: November 29, 2026
Quick Overview
Design an ML system that decides, for each learner every day, whether to send a practice reminder, which message template to use and when to send it, so that more learners practice without causing notification fatigue or opt-outs.
Duolingo
November 29, 20260
0
0 solved
Design an ML system that decides, for each learner every day, whether to send a practice reminder, which message template to use and when to send it, so that more learners practice without causing notification fatigue or opt-outs.
Duolingo's reminders are famous, and the company has described choosing among templates with a bandit that accounts for novelty wearing off, and for templates recovering their power after a rest. An ML system design round expects the candidate to frame this as a contextual bandit with constraints, and design the data loop, serving path and safety limits.
What the Interviewer Expects
- Frames the problem as a contextual bandit with a delayed reward, not plain supervised learning
- Models novelty decay and recovery for repeated templates
- Separates timing from template choice and explains why
- Defines reward as practice within a window and penalizes opt-outs
- Designs logging with propensities for off-policy evaluation
- Covers scale, time zones and hard caps on sends
Key Topics to Cover
How to Approach This
- Start by mapping the business objective to a concrete ML objective and metric.
- Cover the full pipeline: data collection, feature engineering, model selection, training, serving.
- Discuss online vs offline evaluation. Plan an A/B test to validate real-world impact.
- Address the serving latency budget and whether batch or real-time inference is needed.
- Think about the data flywheel: how user feedback improves the model over time.
Possible Follow-up Questions
- How would you evaluate a new policy offline before an A/B test?
- How do you stop the system from learning that guilt messages work and overusing them?
- What happens to the reward when a learner practices before any reminder?
- How would an LLM-written template enter the arm pool safely?
Sharpen Your Skills on Codemia
Practice similar problems with our interactive workspace, get AI feedback, and track your progress.
Practice ML System Design ProblemsSample Answer
Requirements
Daily decision for tens of millions of learners: send or not, template, send time. Objective: probability of a lesson within 24 hours of the send, minus a penalty for disabling notifications or uninst...
High-Level Design
- Event pipeline: lesson completions, sends, opens, opt-outs into a warehouse and a feature store. 2. Timing model: predicts the hour the learner usually practices (often the time they practiced yest...