Counterfactual learning of new adaptive instructional policies using logged data

Samuel Girard, Sein Minn, Amel Bouzeghoub, Jill-Jênn ViearXiv 2026

TL;DR

This paper introduces an offline contextual bandit framework that optimizes adaptive instructional policies in Intelligent Tutoring Systems (ITS) directly from historical interaction logs. By mapping student proficiency and item difficulty to a shared continuous latent scale and optimizing a "flow-aligned" reward function, the framework learns superior tutoring strategies in seconds without requiring risky online experiments or inaccurate student simulators.

What Problem Does This Paper Address?

Intelligent Tutoring Systems (ITS) aim to personalize education by matching exercise difficulty to a student's current ability. Ideally, exercises should be neither too easy (causing boredom) nor too difficult (causing frustration), keeping the student in a psychological state of "flow."

Traditionally, finding the optimal policy for selecting these exercises requires either expensive online A/B testing on real students—which raises ethical concerns regarding suboptimal learning experiences—or relying on student simulators. However, simulators often fail to capture complex real-world learning dynamics, leading to policies that overfit the simulation but fail when deployed. This paper tackles the challenge of offline policy optimization (counterfactual learning): learning an improved, adaptive instructional policy purely from historical data logs.

Methods

The authors frame exercise assignment as a continuous contextual bandit problem through three key steps:

  1. Continuous Latent Representation: Instead of treating exercises as discrete items, the authors use a 1PL Rasch model (from Item Response Theory) to map both student proficiency and item difficulty onto a shared, one-dimensional continuous scale. A student's estimated proficiency acts as the context, and the chosen item difficulty acts as the continuous action.
  2. Flow-Aligned Reward Design: To operationalize "desirable difficulty," the authors propose a novel reward function: $$ru,t = yu,t (au,t - amin)$$ where $yu,t \in \{0, 1\}$ is the binary correctness of the student's answer, $au,t$ is the item difficulty, and $amin$ is the minimum difficulty. This function yields zero reward for failures and scales linearly with difficulty for successes, incentivizing the system to find the hardest problem a student can successfully solve.

  3. Round-Specific Behavior Policy Estimation: Because the historical logging policy is often unknown and changes over time, the authors estimate it for each round using maximum likelihood over a parametric family (Gaussian or Truncated Gaussian). This acts as a propensity model for off-policy evaluation (OPE).

The framework evaluates target policies using several model-free and model-based OPE estimators, including Inverse Propensity Scoring (IPS), Self-Normalized IPS (SNIPS), Mixture Importance Sampling (MIS), and Doubly Robust (DR) estimation.

Datasets

The framework was evaluated on four large-scale, real-world educational datasets:

  • RoboMission: A dataset of block-based programming problems (truncated to 30 rounds).
  • Assistments2015: Math learning platform data (truncated to 50 rounds).
  • Assistments2009: Math learning platform data, restricted to the 8,000 most frequently attempted items (truncated to 50 rounds).
  • Pix: Data from an ITS delivering digital competency problems (truncated to 30 rounds).

Key Insights and Ideas

  • The Behavior Policy as a Diagnostic Tool: Estimating the historical logging policy $\pi_t(a|x)$ isn't just a mathematical necessity for importance sampling; it serves as an interpretable diagnostic tool. Visualizing it reveals exactly how adaptive the original system was.
Fig. 1: Estimated adaptive behavior policy πt(a | x) at different steps of the learning trace. Shaded areas represent the variance.
  • Compounding Context Drift: The authors highlight that the student context distribution drifts significantly across rounds due to two factors: a statistical estimation effect (Rasch estimates become more dispersed and accurate as student traces lengthen) and a survivorship effect (more proficient or motivated students persist to later rounds).
Fig. 2: Evolution of the context distribution pt(x) across rounds for RoboMission. At early rounds the distribution is narrow and centered near zero; at later rounds it broadens and shifts, reflecting both the improved precision of longer-trace Rasch estimates and survivorship bias among persisting students.
  • Support Matters: On datasets where the original system lacked adaptivity (like Assistments2009, which assigned a narrow range of difficulties regardless of student ability), counterfactual learning is constrained because there is little data "support" to learn a substantially different or better policy.

Key Results

  • Consistent Policy Improvements: Across all four datasets, the offline-learned policies consistently outperformed the historical behavior baseline when evaluated on held-out test sets.
  • Substantial Gains on Adaptive Systems: The highest gains were achieved on datasets that already exhibited strong adaptivity. On Assistments2015, the Learned DR policy achieved a 23.8% improvement in SNIPS over the baseline. On Pix, the Learned DR policy achieved a massive 38.9% improvement in SNIPS.
  • High Efficiency: Unlike deep reinforcement learning methods that require complex simulations, this framework computes and visualizes effective instructional policies within seconds.

Limitations and Future Work

  • Immediate vs. Long-Term Optimization: The bandit formulation optimizes for immediate "flow" (success at the challenge frontier) rather than long-term knowledge retention or learning gains across a curriculum.
  • Simple Parametric Assumptions: The behavior policy estimation currently relies on simple Gaussian distributions. The authors note that more flexible models, such as mixture distributions, are needed to capture complex or multimodal assignment patterns (e.g., when an ITS splits students into distinct difficulty tracks).
  • The Cold-Start Problem: At deployment, a new student has no history, meaning their initial proficiency estimate is imprecise. The policy's recommendations are only as good as this running estimate, which can lead to degraded recommendations during a student's first few interactions.

Summary updated

BibTeX
@misc{girard2026counterfactual,
  author = {Samuel Girard and Sein Minn and Amel Bouzeghoub and Jill-Jênn Vie},
  title = {{Counterfactual learning of new adaptive instructional policies using logged data}},
  year = {2026},
  eprint = {2606.23015},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2606.23015},
}
Figure