Abstract
Traditional A/B testing in educational environments often fails to account for student heterogeneity and the opportunity cost of exploration. This paper frames dynamic experimentation as a contextual multi-armed bandit problem, applying Thompson Sampling to personalize email outreach in Massive Open Online Courses (MOOCs). By utilizing the MOOClet framework for real-time adaptivity, the authors achieved a significant increase in student response rates, rising from 4.5% under random assignment to 7.2% with personalized recommendations.
Introduction
Static A/B testing is a cornerstone of web optimization but presents two major drawbacks in educational contexts: it ignores individual differences (personalization) and incurs high "regret" by exposing many users to sub-optimal versions during the trial phase (the explore-exploit tradeoff). This research addresses these challenges by treating experimentation as a recommendation problem, where the goal is to learn and personalize content "on the fly" without prior data.
Methodology
The authors model email optimization as a Contextual Multi-Armed Bandit (MAB) problem.
Action Space and Context
The system optimized three dimensions of an email—subject line, introduction, and body—each with three variations, resulting in 27 unique combinations. To personalize these actions, the model considered two primary user contexts: age group and the number of days the user had been active in the course.
Algorithm and Framework
A Bayesian Logistic Regression model was employed to estimate response probabilities. The core algorithm used was Thompson Sampling, which balances exploration and exploitation by selecting actions based on the probability that they are optimal. This was implemented via the MOOClet framework, an API-driven system that allows for real-time policy updates as soon as individual feedback is received.
Experimental Evaluation
The study was conducted in two phases: an offline simulation and a live online deployment.
Datasets
- Offline Evaluation Set: Data from 3,765 users under a randomized policy served as a ground truth for simulating various bandit algorithms.
- Online Deployment Set: A group of 1,775 participants was used to validate Thompson Sampling against a random control in a live MOOC environment.
Results
In offline simulations, bandit algorithms significantly outperformed random assignment. As shown in Figure 1, Thompson Sampling and LinUCB achieved the lowest cumulative regret over time compared to Epsilon-Greedy and Random policies.
In the live online deployment, the Thompson Sampling policy achieved a 7.2% response rate, a substantial improvement over the 4.5% observed in the randomized control group.
Key Insights
- A/B Testing as Recommendation: Experimentation is fundamentally a recommendation task where content versions are the "items."
- Modular Design: Treating email components (subject, intro, body) as independent bandits simplifies the learning space and accelerates convergence.
- Real-time Adaptivity: The MOOClet API enables the system to pivot immediately based on observed student behavior, minimizing the time spent on ineffective interventions.
Limitations and Future Work
While successful, the current model uses a limited feature set (two characteristics out of 50+ available). Future iterations could benefit from automated feature selection. Additionally, the model assumes independence between email components; exploring interaction effects (e.g., how a specific subject line pairs with a specific body) could further refine performance. Finally, while immediate engagement increased, the long-term impact on learning outcomes remains a critical area for future study.
Summary updated