Students often avoid the effortful parts of active learning. They skip the preparation for a flipped class, ask for the full answer instead of a hint, or submit guesses until something passes. Education research calls this resistance pedagogical inertia and usually describes it in terms of habit, culture or identity. We propose a sharper and testable account taken from economics and reinforcement learning. A learner, like a bidder with a budget, judges whether to spend effort now against what that time could earn elsewhere. The key quantity is the opportunity cost of time: the average rate of reward the learner has recently been getting per minute. In laboratory tasks, The opportunity cost of time modulates cognitive effort found that this background reward rate, and not the reward on offer for the current trial, governs how hard people try. If the same holds in real learning, it makes a counterintuitive prediction. A run of quick, easy successes should lower effort on the next hard problem, because it raises the felt cost of slowing down. Fatigue accounts, confidence or momentum accounts, and knowledge-state accounts all predict something different.
This note proposes two things. The first is to test that prediction on large learning logs. The second, if the test succeeds, is to build a tutor that schedules problems and chooses hint depth by managing the learner's background reward rate, rather than by tracking knowledge alone. The practical stakes are direct. Feedback-ladder tutors and Socratic tutors deliberately withhold answers to protect "productive struggle." None of them models when withholding tips a learner into giving up. A measurable opportunity-cost signal would tell such a tutor when struggle is likely to be productive and when it is likely to end in a bottom-out request or an abandoned problem.
Core Claim
Effort withdrawal in learning is predicted by a running estimate of the learner's reward rate, after controlling for estimated knowledge, item difficulty and time on task. The immediate value of the current item adds little beyond that. Because the reward rate is shaped by sequencing, a tutor can lower the opportunity cost at the moment hard effort is needed. It does this by placing hard items before easy ones rather than after, and by choosing scaffold depth with that cost in view. Such a tutor should reduce bottom-out help requests and abandonment without reducing learning.
Concretely, let $r_t$ be the reward a learner earns on interaction $t$ (correctness, or partial test credit in programming) and $\Delta_t$ the time it took. The background rate is the exponentially weighted average
$$\bar r_t = (1-\alpha)\,\bar r_{t-1} + \alpha\, \frac{r_t}{\Delta_t},$$
where $\alpha$ is a learning rate fit per dataset. This mirrors the average-reward term in the reinforcement-learning model that Otto et al. used to explain their behavioral data. The claim is that the probability of effort withdrawal on item $t$ rises with $\bar r_{t-1}$. Effort withdrawal here means a rapid response relative to the item's typical time, an escalation to a full-solution hint, or abandonment. The withdrawal probability should rise with $\bar r_{t-1}$ holding fixed the knowledge-tracing estimate of mastery, item difficulty and elapsed session time.
How This Relates to Prior Work
The opportunity-cost machinery comes from sequential allocation. Real-Time Bidding by Reinforcement Learning in Display Advertising treats bidding as a Markov decision process, a model in which each action changes a state of remaining time and budget. It shows that ignoring the marginal value of remaining budget exhausts spend before good opportunities arrive. Deep Reinforcement Learning for Sequential Combinatorial Auctions shows that pricing without a continuation-value offset causes myopic over-allocation. Its fitted policy iteration reaches revenue 7.00 against 6.20 for an item-wise myopic baseline in its 10x10 setting. These papers supply the method, meaning value functions over a depletable resource. They also motivate the claim that myopic per-item policies fail in sequential settings. They assume perfectly rational agents, however. We instead treat the opportunity cost as a behavioral quantity that the learner tracks imperfectly.
Otto et al. supply the behavioral mechanism, but only for sub-second psychomotor tasks over short blocks. Whether the same signal operates over minutes-long problems in real courses is exactly what is unknown, and it is the first thing we test.
On the pedagogy side, three works motivate the gap without filling it. The Personalized System of Instruction study Estudio comparativo entre el sistema de enseñanza convencional y el sistema de instrucción personalizada en un curso superior de psicología found that self-paced mastery raised the share of "excellent" grades from 16.6% to 88.3%. Conventional lectures nonetheless kept a slightly higher pass rate (91.6% against 88.3%). That pattern is consistent with lectures being a low-effort, steady-reward option. The flipped-classroom meta-analysis Effects of flipped language classrooms on learning outcomes in higher education: A Bayesian meta-analysis reports a large effect ($d = 1.096$) that shrinks for interventions longer than ten weeks, and it offers no mechanism for the shrinkage. Expectancy-value-cost work on teachers, Examining teachers' motivational views on Lakatos-style investigation: A value-cost-expectancy approach, names cost as a brake on adoption but measures it with surveys rather than modeling it dynamically.
Three tutoring systems are what our policy would modify. Generating Feedback-Ladders for Logical Errors in Programming using Large Language Models generates five-level hint ladders for programming errors. Its levels range from a yes/no verdict to a full code edit, and the authors found the middle levels most effective. It leaves the choice of level static. SocraticLM: Exploring Socratic Personalized Teaching with Large Language Models trains a tutor to ask guiding questions instead of giving answers. It simulates "weak thirst for learning" students but optimizes no cross-session objective. Teacher–Student Curriculum Learning sequences tasks by learning progress, the slope of the student's performance curve. Its students are neural networks that always comply, so effort withdrawal cannot occur.
Knowledge tracing provides the controls. Knowledge tracing means predicting whether a student will answer the next item correctly from their history. Relevant examples are PDKT on Programming Knowledge Tracing: A Comprehensive Dataset and A New Model and the models benchmarked in XES3G5M: A Knowledge Tracing Benchmark Dataset with Auxiliary Information. These models predict correctness but treat effort as noise rather than as a choice.
Research Program
The work has three stages. Each stage only makes sense if the previous one succeeds.
Stage one: measurement. We construct effort-withdrawal labels from interaction logs. The two log sources are XES3G5M (5.5M interactions, K-12 math) and BePKT (906 university programmers, with source code and submission error logs). Withdrawal markers are fast responses relative to each item's median time, resubmissions with negligible code change, and problem abandonment. The research file does not document exactly which timing fields each release contains, so the first deliverable is an audit of available timestamps. Markers that a dataset cannot support will be dropped for that dataset rather than approximated.
Stage two: the observational test. We fit nested models of withdrawal. The base model includes knowledge-tracing mastery estimates, item difficulty, session elapsed time and the item's own value. The full model adds $\bar r_{t-1}$. Identification is the main risk. Recent successes also signal knowledge, so we control for mastery. We also exploit platform-driven variation in item order. In that variation, the same learner meets the same hard item after differing runs of easy items, which changes $\bar r$ without changing knowledge much. Two further tests follow. The first asks whether the coefficient on $\bar r$ is positive while the coefficient on immediate item value is near zero, which is the signature of Otto's result. The second, in a longer-horizon secondary analysis, asks whether withdrawal rises in high-workload phases of the term. That would give the novelty decay in Chen et al. a mechanistic reading.
Stage three: the intervention. We build a tutor policy for programming exercises. The policy uses the Heickal and Lan ladder levels as its actions, and it orders problems and picks hint levels to maximize expected learning over a session while penalizing predicted withdrawal. The withdrawal model from stage two serves as the state's cost term, much as the value differential in Cai et al. prices remaining budget. The policy is first evaluated against simulated learners fit to BePKT. It is then evaluated in a small randomized deployment in an introductory programming course, where both sequencing and ladder policy are randomized at the student level.
Baselines
The naive reference point is the status quo of each setting. In the logs, that is withdrawal predicted from item difficulty and session elapsed time alone. In the deployment, it is a fixed ladder that always starts at the test-case level (level 1) and escalates one level per failed attempt, with problems in instructor order. This baseline matters because it is roughly what deployed feedback-ladder systems already do. If our tutor cannot beat it, the opportunity-cost machinery adds nothing.
The strongest predictive competitor is a full knowledge-tracing model given the same raw inputs, including response times. On BePKT this is PDKT, which reports AUC 0.7745 for correctness prediction against 0.7197 for DKT in Programming Knowledge Tracing: A Comprehensive Dataset and A New Model. On XES3G5M it is IEKT, the benchmark champion. The file gives no AUC value for IEKT itself, and there is no reported result found on Lacuna for withdrawal prediction on either dataset. We will retrain each model with an added withdrawal output head, using identical splits and identical hyperparameter search budgets. Our model beats it if adding $\bar r$ to the knowledge-tracing state improves held-out withdrawal prediction (AUC and calibration) on learners not seen in training, and if the gain survives when the knowledge-tracing model also receives the raw recent correctness-per-time sequence. That condition rules out a model that simply failed to see the data.
The strongest policy competitor is learning-progress sequencing in the style of Teacher–Student Curriculum Learning, combined with a myopic contextual bandit. The bandit picks the ladder level that maximizes immediate resolution probability given knowledge state. No human-learner numbers for TSCL appear in the file. Both policies get the same simulator for tuning and the same number of tuning episodes. Our policy beats them if it lowers bottom-out (level-4) requests and abandonment while matching or improving post-test performance.
The ablation that isolates the key ingredient keeps our policy unchanged but replaces $\bar r$ with session elapsed time in the cost term. If the policy performs as well with that substitution, the benefit comes from fatigue pacing, and the opportunity-cost account adds nothing.
Why not just…?
Why not just add response time as a feature to a knowledge-tracing model? This is the most serious threat. A flexible sequence model might learn something equivalent to $\bar r$ from raw timing data. The stage-two comparison is designed to settle it: the knowledge-tracing baseline receives the same raw sequence. If it matches our structured model, we will say so, and the contribution shrinks to an interpretation of what the network has learned. The structured variable still has one advantage a black box lacks. It predicts the direction of a sequencing intervention before any intervention data exist, and the deployment tests that prediction directly.
Why not just call it fatigue and pace by time on task? Fatigue and opportunity cost come apart on one observable pattern. After a streak of easy successes early in a session, fatigue predicts high effort on the next hard item, while opportunity cost predicts low effort. The quasi-random order variation in stage two and the elapsed-time ablation in stage three both test this distinction. If withdrawal tracks elapsed time and not $\bar r$, the hypothesis is wrong.
Why not just raise the reward for hard items, with points or badges, to offset the effort? Otto et al. found that the immediate reward on offer had no significant effect on effort in any of their three experiments. If that carries over, incentives attached to the current item will not help, and only changes to the background rate will. This alternative is cheap to test, so the deployment includes a per-item bonus-points arm. If that arm reduces withdrawal as much as resequencing does, the opportunity-cost account loses its practical edge.
Why not just use a myopic hint policy, as current Socratic and ladder tutors effectively do? In the sequential allocation work, myopic policies lose to continuation-aware ones (6.20 against 7.00 revenue in the combinatorial auction setting of Ravindranath et al.). But that is an analogy, not evidence about learners. The bandit baseline is the direct test. We expect the gap to be small when $\bar r$ is stable and to appear mainly in sessions with sharp swings in reward rate. If no such gap appears, the continuation term is unnecessary.
Decisive Checks
The project stands or falls on three results. The first is that, on held-out learners in BePKT and XES3G5M, the background reward rate predicts effort withdrawal beyond knowledge state and elapsed time, with a positive sign, while immediate item value does not. The second is the streak reversal: a hard item met after a run of fast easy successes draws more withdrawal than the same item met after a mixed run. This must hold within learner, controlling for mastery. The third is that, in the randomized course deployment, placing hard problems before easy ones and choosing ladder level with the withdrawal cost reduces level-4 requests and abandonment relative to the fixed ladder, learning-progress sequencing and the bonus-points arm, with no loss on a transfer post-test.
The first two results can be checked on existing logs before any tutor is built. A null result on them is informative on its own terms. It would mean pedagogical inertia at the level of single problems is not explained by the laboratory opportunity-cost mechanism, and that the effort-based explanations common in the education literature need a different formal account.
References
- The opportunity cost of time modulates cognitive effort
- Real-Time Bidding by Reinforcement Learning in Display Advertising
- Deep Reinforcement Learning for Sequential Combinatorial Auctions
- Estudio comparativo entre el sistema de enseñanza convencional y el sistema de instrucción personalizada en un curso superior de psicología
- Effects of flipped language classrooms on learning outcomes in higher education: A Bayesian meta-analysis
- Examining teachers' motivational views on Lakatos-style investigation: A value-cost-expectancy approach
- Generating Feedback-Ladders for Logical Errors in Programming using Large Language Models
- SocraticLM: Exploring Socratic Personalized Teaching with Large Language Models
- Teacher-Student Curriculum Learning
- Programming Knowledge Tracing: A Comprehensive Dataset and A New Model
- XES3G5M: A Knowledge Tracing Benchmark Dataset with Auxiliary Information