학술

PACE: A performance-adaptive calibratable engine for interpretable difficulty adjustment, evaluated in an offline multi-dataset benchmark

PLOS ONE
CC BY
이 매체는 공공·자유 라이선스로 본문을 직접 표시합니다.

Figures
Abstract
Adjustment of the difficulty of the task presented to a user, based on his or her current ability level, is a widespread feature of serious games, intelligent tutoring and rehabilitation technology. Existing approaches are either hand-tuned rules whose thresholds are never checked against the user’s true success rate, or learned policies that are accurate but opaque and data-hungry; both are awkward for safety-critical, on-device use. The paper presents an interpretable controller for dynamic difficulty adjustment, termed the Performance-Adaptive Calibratable Engine (PACE). PACE is simple, built from a dead-zone proportional law and a low-pass filter. The controller has a provably stable fixed point at the Flow-optimal difficulty. At the heart of the proposal is a closed-form rule that converts a target success band into controller thresholds through an offset estimated separately for each dataset. We evaluate PACE offline against five baseline controllers on a synthetic environment and on replays of two real-world educational datasets, under a fairness protocol of matched calibration and equal tuning budgets, with a linear mixed-effects model as the primary analysis and Friedman and Nemenyi tests and bootstrap confidence intervals as secondary analyses. Calibration matters more than the choice of controller. A properly calibrated PID achieves the highest raw engagement on real data; nevertheless, at matched calibration the calibrated PACE configuration we recommend matches the fuzzy controller on engagement while changing difficulty about nine times less often than calibrated PID and six to seven times less often than the fuzzy controller on real data, runs in microseconds and remains auditable. These are offline results that say nothing yet about clinical benefit; within that scope, PACE is a prudent choice where stability, transparency and cost matter alongside engagement.
Citation: Al Tawil A, Hashim SHM, Alshahrani A, Fathi H (2026) PACE: A performance-adaptive calibratable engine for interpretable difficulty adjustment, evaluated in an offline multi-dataset benchmark. PLoS One 21(11): e0363753. https://doi.org/10.1371/journal.pone.0363753
Editor: Zeheng Wang, Commonwealth Scientific and Industrial Research Organisation, AUSTRALIA
Received: July 12, 2026; Accepted: November 12, 2026; Published: November 30, 2026
Copyright: © 2026 Al Tawil et al. This is an open access article distributed under the terms of the Creative Commons Attribution License, which permits unrestricted use, distribution, and reproduction in any medium, provided the original author and source are credited.
Data Availability: All source code needed to reproduce every result, table, and figure in this study, together with the processed result files and figures, is openly available on Zenodo at https://doi.org/10.5281/zenodo.21323855 (MIT license). The two real datasets are third-party public data: the ASSISTments 2009–2010 skill-builder dataset is available from the ASSISTments data repository, and the Junyi Academy 2015 dataset from the Junyi Academy / EDM 2015 public data release. All random seeds and pinned dependency versions are logged in the repository, so the full analysis can be re-run deterministically.
Funding: This work was supported by Princess Nourah bint Abdulrahman University Researchers Supporting Project (number PNURSP2026R732), Princess Nourah bint Abdulrahman University, Riyadh, Saudi Arabia. The funder provided research resources and contributed to editing the first draft of the manuscript. The funder had no role in study design, data collection and analysis, or the decision to publish.
Competing interests: The authors have declared that no competing interests exist.
1. Introduction
Adaptive systems that tailor task difficulty to a user’s current ability now appear almost everywhere, from video games to intelligent tutoring systems to rehabilitation technology [1,2]. Beneath the surface, each solves the same small problem repeatedly: after each interaction, and from noisy signals, it must decide whether the next task should be harder, easier, or unchanged. Dynamic difficulty adjustment (DDA) modifies task difficulty so that the user remains engaged. The user must be stretched enough to improve, but not so far that they give up. This idea derives from Flow theory, which places the best experience and the quickest learning in a narrow band between boredom and anxiety, where the challenge on offer matches the user’s skill [3,4]. Research has shown that adaptive settings influence user engagement, retention and performance more effectively than fixed settings, in games and in serious applications alike [2,5,6].
Two weaknesses have proved persistent, and both bite hardest in safety-critical, resource-limited settings. The first is calibration. Most rule-based controllers rely on thresholds and step sizes set by hand, with little justification and no check that the chosen values actually place the user in the intended success region [1,2]. Because the relationship between an observed performance score and a user’s true success probability is rarely documented, a controller that keeps its score within an interval can still leave the user far outside the Flow band. The second limitation is interpretability. Adaptive systems increasingly rely on reinforcement learning or other learned policies [7–9]. These can be powerful, but they require a great deal of interaction data before they settle, behave unpredictably in the meantime, and cannot be inspected by a non-specialist — an obstacle in clinical and educational contexts, where someone needs to understand and trust each adjustment [10,11].
These weaknesses matter nowhere more than in stroke and motor rehabilitation, where adaptive serious games are increasingly used to sustain the high repetition counts that recovery demands [12–14]. Stroke remains one of the leading causes of long-term disability. Moreover, a patient’s engagement is a major determinant of the therapeutic dose actually received [13,15]. But the restrictions are strict: cohorts are small, sessions are supervised, the hardware is normally a standalone headset with little computation, and clinicians need behaviour they can observe and trust. In this constrained setting, a data-hungry learned controller is impractical and an unvalidated heuristic is unsafe; what remains is the need for an interpretable controller whose parameters can be set, justified and bounded [11].
We state the scope of the present evidence at the outset, because the motivation is clinical while the evaluation is not. Everything reported here is offline: a synthetic benchmark and replays against ability trajectories recovered from two educational datasets. That design can demonstrate algorithmic behaviour — contraction to a specified success band, stability of adaptation, cost per update and generalisation beyond smooth synthetic learners — but it cannot establish clinical efficacy, patient acceptance, or therapeutic benefit, and we make no such claim. The rehabilitation setting motivates the requirements PACE is designed against and nothing more. The present evidence does not support any claim of readiness for clinical deployment, and validating PACE in that setting is entirely future work, outlined in the Discussion. The paper should accordingly be read as an offline methodological and benchmarking contribution.
Deployment cost is a further concern. Adaptive rehabilitation and learning increasingly run on standalone headsets and phones, where the controller has to share a tight compute and latency budget with rendering and tracking. A controller that updates in microseconds and needs no training is far easier to certify and ship than one that learns online or evaluates an expensive policy at every step. Interpretability helps here too: when the whole decision rule comes down to a few named parameters, a clinician or teacher can anticipate what the system will do, explain it and intervene when necessary — often a precondition for supervised use at all [11]. Small data, real-time on-device execution and the need for human oversight therefore pull in the same direction, toward a controller that is simple enough to deploy and audit yet principled enough to calibrate and analyse.
We argue that the gap between hand-tuned and learned DDA closes once difficulty adjustment is treated as feedback control with explicit calibration. The paper makes four contributions. First, we formulate PACE (Performance-Adaptive Calibratable Engine), an interpretable controller that maps a real-time performance score to a continuous difficulty through a proportional law that acts outside a dead-zone and is bounded by saturation, with an exponential low-pass filter on its input [16,17]; nothing about it is hidden, since every adjustment follows from a handful of thresholds, a gain and a smoothing factor. Second, we analyse it and show that, under a standard logistic ability model [18,19], it settles at a stable fixed point at the Flow-optimal difficulty, and we give an explicit bound on the gain for which this holds. Third, and most importantly, we derive a closed-form rule that maps a desired success band to the score thresholds; because the score-to-success offset is population-dependent, we estimate it from each dataset rather than assume it. Fourth, we benchmark PACE against five baselines on a synthetic environment and two real educational datasets [17, 20,21], following the statistics recommended for comparing many methods across many conditions [22–24].
We have tried to report outcomes honestly throughout. The fairness protocol gives every calibratable baseline the same data-derived calibration that PACE receives, so no competitor is handicapped, and the metric we care about, the fraction of steps on which the user’s true success probability falls in the Flow band, is computed from a hidden ability variable that no controller can game. We specified a predictive dead-zone extension in advance of running it, and report it although it did not help. The result is a more modest and more trustworthy picture than a blanket claim of superiority, and it fits the no-free-lunch idea from optimisation: no single controller is best at everything. Calibration is decisive for all of them; a well-calibrated PID wins on raw engagement on real data; and PACE matches the fuzzy controller on engagement while being far steadier, far cheaper and fully transparent.
It is worth saying what PACE is not. It is not a learning algorithm, and it deliberately avoids hidden state or trainable parameters, so that a supervising clinician or teacher can inspect it and predict what it will do. Nor do we claim that it wins everywhere. The question we ask is narrower and, we think, more useful: given the mix of engagement, stability, interpretability and low compute that safety-critical adaptive systems demand, which controller gives the best overall operating point, and how much of the achievable performance comes from principled calibration rather than from a cleverer controller?
The rest of the paper proceeds as follows. The Related Work section reviews DDA, Flow theory and the evaluation of adaptive controllers. The Background section introduces the five baseline controllers we compare against. The section on the PACE decision engine presents its control law and its stability analysis, and the Calibration Rule section develops the calibration rule and its empirical offset. The Experimental Methodology section describes the player model, datasets, metrics and statistics behind the benchmark; the Results section reports the outcomes, including the trade-off between Flow and stability that is PACE’s practical advantage; and the Discussion and Conclusions sections interpret the findings and close the paper.
2. Related work
DDA has a long history in game design. In Hunicke’s Hamlet system, adaptation is framed as an evaluation function over game state coupled to an adjustment policy; any adjustment has to protect the integrity of the experience [1]. Since then, reviews have mapped a wide design space that runs from performance-based heuristics through probabilistic models and search-based content generation to fully learned controllers [2,5]. Flow theory supplies the conventional rationale: enjoyment and learning peak when challenge tracks ability. GameFlow and related player-experience models translated this into criteria that games can be designed against [3, 6, 25]. Most DDA systems pursue this target: keeping the user successful often enough to stay motivated, but not so often that they stop improving [26,27]. The ideal success rate remains debated, with estimates ranging from the classic Flow channel to the more recent eighty-five percent rule for optimal learning [19], which is why we treat the band as something to sweep rather than fix. Recent studies suggest that no single strategy is best across players and games [28,29].
In rehabilitation and serious games, adaptation is mainly a way to keep patients working and motivated. Hocine et al. adapt difficulty for motor rehabilitation from a probabilistic estimate of the patient’s ability, and Sekhavat adjusts rehabilitation-game difficulty online with reinforcement learning [7,12]. More recent systems pair experience-driven procedural content generation with difficulty adaptation in virtual-reality exergames [8]. The clinical case is not in doubt: virtual reality and game-based therapy can improve upper-limb recovery after stroke, and engagement lies on the causal path [4, 13, 15]. More recent work has begun to validate DDA clinically, auto-adapting task difficulty to each patient’s impairment in robot-assisted upper-limb rehabilitation [30]. What is usually missing is an analysis of the controller itself: whether it is stable, and whether its thresholds correspond to a defined success target.
A second line of work reads difficulty adjustment as feedback control. Casting the controller as a proportional or PID loop connects DDA to a mature theory of stability, steady-state error and tuning [14,16], and it appeals precisely because a low-order controller’s behaviour is fully determined by a few named parameters. The catch is that control-theoretic DDA is rarely put head to head with the heuristic and learned methods it competes with, and the question that matters most, how to set the setpoint to a target success rate rather than to some arbitrary score, is usually left open. This echoes a wider argument in decision science, where Rudin makes the case that high-stakes decisions call for models that are interpretable to begin with rather than black boxes explained after the fact [11]. Knowledge-tracing and item-response models, for their part, estimate latent ability from response sequences and feed many adaptive policies [9, 10,18,19]; they estimate ability well but are not controllers, and we borrow a logistic ability model from that tradition to drive our simulated players and to define a Flow metric that cannot be gamed.
Replaying controllers on logged interaction data has become a practical middle ground between pure simulation and expensive live trials. Tutoring-system logs hold millions of genuine responses, and running a candidate controller against the ability trajectories recovered from them tests how well it generalises to real human behaviour without putting anyone in front of an unproven policy [17, 20,21]. The approach echoes off-policy evaluation in sequential decision making, and it inherits the same caveat: the recovered ability is a model, and a replay cannot reproduce the motivational feedback that shows up only with live users. Even so, it is a strong way to stress a controller across many realistic ability curves. The one requirement is fairness: calibrating one controller more favourably than another can reverse the ranking outright [22,31].
Evaluating adaptive controllers is a methodological problem in its own right. Many studies rely on a single environment or on engagement questionnaires, both of which blur the distinction between controller and content [6,32]. Simulated players give repeatable, controlled comparisons but risk circularity when the metric happens to be what the controller optimises, whereas real logs from systems like ASSISTments, EdNet and Junyi Academy supply large samples of genuine ability trajectories to anchor the comparison [17, 20,21]. When many controllers are compared across many conditions, the accepted recipe is a Friedman test followed by Nemenyi or a corrected pairwise post-hoc analysis, reported with effect sizes [22–24,31]. Reporting only mean scores from one setting invites both false positives and overclaiming, so we apply this paired, multi-dataset analysis throughout.
Put together, a consistent gap emerges. Heuristic controllers are cheap and readable but are almost never calibrated to an explicit success target or checked for stability. Learned controllers can be powerful but are data-hungry, opaque and hard to certify. Control-theoretic formulations promise both transparency and provable behaviour, yet they are seldom benchmarked fairly, and the question of how to tie their setpoint to a clinically meaningful success rate is usually left open. That gap is what we target: an interpretable, analysable controller with a closed-form calibration rule, tested fairly against a representative spread of baselines on both synthetic and real data with proper statistics.
3. Background: Baseline difficulty controllers
Before turning to PACE, we set out the five controllers against which it is measured. They cover the whole span from a fixed rule to a learned policy, and each stands in for a family of methods used widely in games, tutoring and rehabilitation. Seeing how they work also makes clear what PACE takes from classical control and where it departs from it.
3.1 Static difficulty
The Static controller holds difficulty at one value for the whole session and ignores performance entirely. It is not a serious adaptive method but a yardstick: any adaptive controller worth its complexity should beat a sensibly chosen fixed difficulty. Because it never moves, it also has zero jitter, which makes it a useful anchor at one end of the stability-versus-engagement trade-off.
3.2 Staircase controller
The Staircase controller is the old workhorse from psychophysics and adaptive testing. It nudges difficulty up by a fixed step after a success and down by a fixed step after a failure, so over time it hovers around the level where the user succeeds at a ratio fixed by the up and down step sizes. It is simple and transparent, and needs no model of the user, but the fixed step forces a choice between reacting slowly and oscillating around the target, and the success ratio it targets is implicit in the step design rather than stated explicitly.
3.3 Proportional-integral-derivative (PID) control
The PID controller treats difficulty adjustment as textbook feedback control [14,16]. The controller computes the error between the measured performance signal and a predetermined setpoint. It then adjusts difficulty in proportion to that error, along with optional integral and derivative terms for accumulated error and changing error, respectively. PID is transparent because its behaviour is fixed by a few named gains, and its setpoint can in principle be aligned with a desired success rate. Hence, our fairness protocol calibrates it too (PID-cal). The drawback is that, without a dead-zone, it continues to correct even very small errors. This shows up as frequent difficulty changes and high jitter.
3.4 Fuzzy logic controller
The Fuzzy controller uses Mamdani inference to turn linguistic readings of performance and its recent trend, such as low, medium or high, into a difficulty change through a rule base and a defuzzification step. Fuzzy control captures expert intuition effectively and often performs well on engagement, but the rules and membership functions are hand-designed, the mapping is harder to audit than a single control law, and the inference is much more expensive to evaluate, which starts to matter for real-time, on-device use.
3.5 Reinforcement learning
The Reinforcement-Learning baseline is a tabular Q-learning agent whose state is a discretised pair of recent performance and current difficulty, whose actions lower, hold or raise difficulty, and whose reward is being inside the Flow band [7,9]. Given enough interaction it can learn a good policy, but it requires hundreds of episodes to do so, behaves unpredictably before convergence, and yields a policy that a non-specialist cannot read. That makes it a telling contrast: a data-hungry black box set against the zero-training, white-box design of PACE.
4. The PACE decision engine
PACE is the method we propose: an interpretable, calibratable controller aimed squarely at the gap identified in the Related Work section. Before we work through the control law, Table 1 sets PACE beside the five baselines described in the Background section on the properties that decide a safety-critical, on-device deployment, namely whether a controller adapts at all, whether it is white-box, whether it can be calibrated to an explicit success band, whether it needs training, whether it comes with a stability guarantee, and how much it jitters. The table makes the design intent plain: PACE is the only controller that is at once adaptive, white-box, calibratable, training-free and provably stable, while staying among the cheapest to run and the smoothest in operation.
Stability labels in Table 1 follow the single criterion defined at the end of the Stability Analysis subsection and are applied uniformly to every controller; ‘rho’ is the spectral radius of the expected closed-loop update map at the published parameters.
We use ‘interpretable’ in one operational sense throughout, and apply it uniformly in Table 1: a controller is interpretable if every parameter has a stated meaning in the units of the task, if the mapping from the observed performance signal to the next difficulty can be written in closed form and traced by hand for any single step, and if there is no learned or hidden state that a supervising clinician cannot inspect. PACE, PID and the staircase satisfy all three. The fuzzy controller satisfies the first and third but not the second, because Mamdani defuzzification has no closed form; we therefore describe it as partially interpretable and, where it is the strongest comparator on a benchmark, name it explicitly rather than calling it the best interpretable baseline. The RL agent satisfies none of the three.
PACE controls a continuous difficulty d in [0,1] from a real-time performance score. The name reflects its three design commitments: it is Performance-Adaptive (it reacts to a smoothed performance signal), Calibratable (its thresholds map to a clinically meaningful success band through a closed-form rule), and an Engine in the sense of a compact, deterministic decision procedure that runs at every interaction. The closed loop is shown in Fig 1. At step t the environment returns three observable signals, each in [0,1]: correctness, accuracy and normalised completion time. These are combined into a single performance score:
Observable performance is mapped to a score (Eq. 1), smoothed by an EMA low-pass (Eq. 2), and converted to a difficulty update by a dead-zone proportional law (Eqs. 3-4). Difficulty is fed back to the player, closing the loop.
Because raw performance is noisy, the engine acts on a smoothed signal produced by an exponential low-pass (EMA) filter with smoothing factor α in (0,1]:
(2)The engine maintains a Flow band defined by a lower and upper threshold, T_low and T_high. Inside the band it holds difficulty constant (a dead-zone); outside it, it applies a correction proportional to the signed distance from the nearer threshold. Defining the dead-zone error
(3)the difficulty is updated by a bounded proportional control law with gain K_p and saturation to the unit interval:
(4)The complete procedure is given in Algorithm 1. The engine is fully white-box: its entire behaviour is determined by the four named parameters (T_low, T_high, K_p, α), each of which has a direct operational meaning that a practitioner can read and adjust. The sign convention is intuitive: a smoothed score above the band means the task is too easy, giving a positive error that raises difficulty; a score below the band means it is too hard, giving a negative error that lowers difficulty. The dead-zone makes the band a set of equilibria, so the engine stops adjusting once the user is in Flow — the mechanism behind its low jitter.
Algorithm 1. Pseudocode of PACE (Performance-Adaptive Calibratable Engine)
1: Input: thresholds Tlow, Thigh; gain Kp; smoothing α; horizon T; initial difficulty d0.
2: Output: difficulty trajectory {dt} keeping the user in the Flow band.
3: Initialisation: d ← d0; smoothed score P̄ ← ∅; t ← 0.
4: while t ≤ T do
5: Observe Correctness, Accuracy, NormalizedTime at difficulty d.
6: Compute performance score P by Eq. (1).
7: Update smoothed score P̄ by the EMA filter, Eq. (2).
8: if Tlow ≤ P̄ ≤ Thigh then (dead-zone: user in Flow)
9: e ← 0
10: else if P̄ > Thigh then (too easy)
11: e ← P̄ − Thigh
12: else (too hard)
13: e ← P̄ − Tlow
14: end if
15: Update difficulty d ← clip(d + Kp· e, 0, 1) by Eq. (4).
16: t ← t + 1
17: end while
18: Return difficulty trajectory {dt}.
Four differences separate PACE from plain proportional and PID control, and they are worth stating explicitly because the update law otherwise looks like textbook P-control. Table 2 sets them side by side.
4.1 Parameter semantics and interpretability
PACE is interpretable in a strong operational sense. Every parameter has a direct, human-readable meaning. There is no hidden state, and the only hidden structure is a single smoothed scalar. Table 3 gives the complete set of parameters with their default values and semantics. The Flow band in score space consists of the two thresholds, which are set from a clinical success target by the calibration rule introduced below; the proportional gain controls how aggressively the engine corrects an out-of-band score and is bounded by the stability analysis that follows; and the smoothing factor trades responsiveness against noise rejection. Because the update in Eq. (4) is a single closed-form line, a practitioner can trace exactly why any given adaptation occurred and predict what the engine will do next and (if clinical judgement requires) override a parameter with a fully understood effect. This transparency is not incidental. It is a precondition for use in supervised, safety-critical environments, one that a black-box policy struggles to meet [11], although whether clinicians in practice accept the engine is a question this offline study cannot answer.
4.2 Stability analysis
We now show that PACE is not merely a heuristic but a controller with provable behaviour. Let the hidden ability be s and let success follow a logistic model p_succ = σ(k(s − d)), so that success is 50% when difficulty equals ability and rises as difficulty falls below ability. The Flow-optimal difficulty d* is the value at which the true success probability equals the centre of the target band; for a target success p* this is
(5)Proposition 1 (Flow-optimal fixed point). Under the logistic ability model and a monotone score-to-success relationship, d* in Eq. (5) is a fixed point of the closed-loop update (Eq. 4): when the smoothed score equals the band centre, the dead-zone error is zero and the difficulty is left unchanged. Intuitively, the controller stops precisely where the user’s true success probability sits at the centre of the Flow band, which is the intended operating point.
Proposition 2 (Contraction and gain bound). Outside the dead-zone the closed-loop update is a contraction toward d* whenever the proportional gain satisfies 0 < K_p < K_max, where K_max depends on the local slope of the score-to-difficulty map at d*. Writing the one-step map as d_{t + 1} = g(d_t), the update contracts when the magnitude of its derivative at the fixed point, |g’(d*)| = |1 − K_p· J|, is below one, where J is the local sensitivity of the smoothed score to difficulty. This yields the stable range 0 < K_p < 2/J. Within this range d* is a stable fixed point and the difficulty trajectory converges to it without sustained oscillation; beyond it, the update overshoots and oscillates. Empirically (see the Results section) the stable-gain ceiling for our player model is K_p^max ≈ 1.07, and the default K_p = 0.50 sits comfortably inside the contracting region with a contraction factor of about 0.06, settling within about two steps. Fig 2 shows the contraction factor and settling time as functions of the gain.
(a) The empirical contraction factor |g’(d*)| stays below one for gains up to K_p^max ≈ 1.07, beyond which the update no longer contracts; (b) settling time to the Flow-optimal difficulty d* as a function of the gain.
The dead-zone deliberately introduces a region of inaction around d*, which trades a small amount of tracking accuracy for a large reduction in jitter — a property we quantify empirically in the Results section. This is the key structural difference between PACE and a plain proportional or PID loop: the equilibrium is a band rather than a point, so once the user is engaged the engine issues no further changes, which is exactly the stability that supervised, safety-critical settings demand.
For the comparison in Table 1 we apply one stability criterion uniformly to every controller. Freeze the player’s skill at s and consider each controller’s expected closed-loop update map M(d) = E[d_{t + 1} | d_t = d], obtained by substituting the expected observations E[P](d) = g*mu(d) – c, mu(d) = sigmoid(k(s – d)) into that controller’s own update rule; for a controller carrying internal state, M is the corresponding vector map on the full state and rho(M’) is the spectral radius of its Jacobian. A controller is provably stable at the clinical target when M has a fixed point d* with mu(d*) equal to the clinical target success, rho(M’(d*)) < 1 at the published parameters, and the contraction condition can be written in closed form as a bound on the controller’s own gains; provably stable at the wrong target when all of that holds but mu(d*) lies outside the Flow band; conditionally stable when a contracting fixed point of the expected map exists but the realised stochastic update cannot converge to it, as with a fixed non-zero step size; neutrally stable when every point is a fixed point and rho(M’) = 1; and not analytically derivable when M has no closed form, in which case the fixed point and rho(M’) are computed numerically on the same linearisation. The clinical target enters only through mu(d*), so the contraction test itself is identical for every controller.
5. The calibration rule
Algorithm 1 defines the thresholds T_low and T_high in the space of the performance score P. However, the actual quantity that the designer cares about is the user’s success rate. The two differ: the score defined in Eq. (1) sits at a roughly constant offset below the true success probability. Setting thresholds in score space therefore leaves the user at an unintended success rate. The calibration rule makes the mapping explicit and is the methodological centre of the paper: it converts an empirical tuning problem into a closed-form design step.
Let the target Flow band be a success interval [a, b]. Taking expectations of Eq. (1) under the ability model, the expected score relates to the expected success μ by a population-dependent offset c:
(6)so a target success band [a, b] maps to score thresholds by subtracting the offset:
(7)Proposition 3 (Threshold calibration). Under the idealised synthetic model in which normalised time is exactly one minus success, the offset evaluates to c = 0.20 in closed form, which makes Eq. (7) exact: a target band [a, b] is achieved by score thresholds [a − 0.2, b − 0.2]. On real data this idealisation does not hold, so we do not assume c; instead we estimate it empirically for each dataset as the mean difference between observed success and observed score, and apply the same estimated offset to every calibratable controller. On the ASSISTments data, for example, the estimated offset was c = 0.18, giving calibrated PACE thresholds of (0.32, 0.57). This empirical-offset step is what allows a rule derived under an idealised model to transfer honestly to real populations, and it is applied identically to the PID baseline so that the comparison remains fair.
Fig 3 reports the validation of the rule against an exhaustive threshold search across five target bands. The closed-form thresholds fall within a small margin of the swept optimum — the mean absolute threshold error is about 0.06 and the mean gap in time-in-Flow between the rule and the exhaustive optimum is about 0.08 — while requiring no search at all. In other words, the rule delivers near-optimal calibration instantly, turning what is usually an expensive grid search into a single arithmetic operation. This matters for deployment: a clinician can specify a success band and obtain the thresholds directly, without a tuning campaign.
(a) Time-in-Flow of the closed-form rule versus an exhaustive threshold search across five target bands; (b) absolute error between the predicted and swept-optimal thresholds. The rule is near-optimal with no search.
5.1 Derivation of the score-to-success offset
The offset c in Eq. (6) follows from the structure of the score. Under the idealised model the normalised completion time behaves as the complement of success, NormalizedTime = 1 – p_succ. Substituting into Eq. (1) and taking expectations, the correctness and accuracy terms contribute about 0.80 x p_succ while the time term contributes −0.20 x (1 – p_succ); collecting terms gives an expected score that tracks the success probability with a constant downward shift of about 0.20, which is the offset c = 0.20. Because the shift is approximately constant over the operating region, subtracting it from the target success band recovers the correct score thresholds, which is the content of Proposition 3.
5.2 Empirical offset estimation on real data
On real interaction logs the idealised coupling between time and success does not hold exactly, so a fixed c = 0.20 would mis-calibrate every calibratable controller equally. We therefore estimate the offset directly from each dataset as the mean difference between observed success and observed score, and use that estimate in Eq. (7). On ASSISTments this yields c = 0.18, and the estimate is applied identically to PACE and to the PID baseline, so the calibration cannot advantage one controller over another.
6. Experimental methodology
6.1 Player model and flow metric
Each simulated user has a hidden latent ability s(t) in [0,1] that evolves over a session by an exponential law of practice, with optional fatigue and a non-stationary step change; controllers never observe s. At each step, success probability is p_succ = σ(k(s − d)) with slope k = 8, from which correctness, accuracy and a time signal are drawn with additive measurement noise [18,19]. The primary metric is time-in-Flow: the fraction of steps at which the true success probability lies in the Flow band [0.50, 0.75]. Because this is computed from the hidden ability rather than the controller’s own signal, no controller can game it — it must actually place the user in the true success band, not merely keep its own score in range. We also report the difficulty-skill match, oscillation (standard deviation of difficulty changes and the number of direction reversals), settling time, steady-state gap and per-step latency.
The Flow band is a clinical choice rather than a universal constant. General Flow and optimal-learning work spans roughly 50–75% success [3] up to about 85% (the ‘eighty-five percent rule’ [19]). Which point in that range suits a given clinical population is a decision for the supervising clinician rather than a constant we can fix from the literature, and it is precisely why we treat the band as a metric parameter and sweep it rather than assume a single value.
The choice is therefore reported as an assumption rather than a finding: because the appropriate band differs between healthy learners and fragile rehabilitation cohorts, and because the supporting evidence for any single figure is domain-specific, we do not claim [0.50, 0.75] is correct for rehabilitation and instead report every controller as a function of the target, so that a reader with a different clinical band can read the result off directly.
The six synthetic profiles are designed to stress different aspects of a controller: slow and fast learners differ in the rate at which ability rises; low- and high-baseline profiles start from very different ability levels; the fatiguing profile introduces a gradual late-session decline; and the step-change profile applies a sudden mid-session drop. Because ground-truth ability is known exactly for each profile, the synthetic benchmark isolates controller behaviour from the confound of an uncertain ability estimate.
6.2 Baselines
PACE is benchmarked against the five baseline controllers introduced in the Background section — static, staircase, PID, fuzzy and reinforcement learning — which span the interpretability-complexity spectrum. Two calibratable controllers, PACE and PID, additionally appear in calibrated form (PACE-cal and PID-cal). Including both the default and calibrated variants of PACE in the same statistical test is deliberate: it lets the reader see the uncalibrated weakness and the calibrated strength side by side, so nothing is hidden. The three PACE configurations that appear in the paper play different roles, and we keep them apart throughout. PACE-cal, which uses the default gain and smoothing factor with thresholds set by the calibration rule, is the configuration we recommend for deployment and the primary object of every comparison. The default PACE, with uncalibrated thresholds, is reported only to isolate the effect of calibration. The equal-budget tuned PACE (see the Equal Tuning Budget subsection) is a ceiling: it shows how much engagement a parameter search can add, and no ranking claim rests on it.
The baseline set is deliberately restricted to simple, interpretable, training-free controllers that run on-device, and we state that scope rather than leaving it implicit. Deep reinforcement learning, Bayesian knowledge tracing and other model-based adaptive-tutoring methods are excluded because they require training data, offline fitting or per-learner model estimation, and because their parameters cannot be inspected by a supervising clinician in the way this paper’s comparison is about. That is a real limitation of the comparison: it establishes where PACE sits among cheap interpretable controllers, not among the strongest adaptive methods available, and a comparison against learned DDA under matched calibration would be a worthwhile follow-up.
6.3 Datasets and fairness protocol
We evaluate on three settings. The synthetic benchmark comprises six parameterised player profiles — slow and fast learners, low and high baseline ability, a fatiguing profile and a non-stationary step-change profile — each driven by the logistic ability model and run over many random seeds; it provides controlled, repeatable conditions in which the ground-truth ability is known exactly. ASSISTments 2009–2010 is a widely used benchmark of real student interactions with an online mathematics tutoring system, comprising roughly 347,000 logged responses from about 4,200 students across some 27,000 questions, each record indicating correctness together with timing information [17]. Junyi Academy 2015 is a comparable but independent corpus of mathematics-exercise logs from a large e-learning platform and a different student population [21]. For both real datasets we group interactions by student and skill, recover a per-skill latent ability trajectory as an exponentially weighted moving average of the binary correctness sequence (pandas ewm, span 10), clipped to [0.05, 0.95], and replay every controller against these recovered trajectories, so that the comparison is driven by genuine, individually heterogeneous human ability dynamics rather than smooth synthetic learning curves. The per-step observations the controller receives are generated from the response model conditioned on that recovered ability; the paragraph below states precisely which channels are recovered from data and which are simulated. We deliberately do not fit an item-response model. The replay requires only a per-step ability estimate on the same [0, 1] scale as difficulty, and a smoothed running success rate supplies this directly, without introducing item-difficulty parameters that the replay never consumes. Trajectories are grouped by student and skill and ordered by attempt index; those shorter than 30 responses (ASSISTments) or 50 (Junyi) are discarded, and the 150 longest are retained for evaluation. Because both corpora originate in education rather than rehabilitation, they test generalisation to authentic human ability data, not clinical efficacy; the latter is reserved for the future clinical study outlined in the Discussion.
In both real-data settings the replay is a hybrid, and it is worth being precise about which parts are real. The latent ability trajectory is recovered from the logged responses and is therefore genuine, individually heterogeneous and non-stationary. The per-step observations the controller receives — correctness, accuracy and normalised completion time — are generated from the response model conditioned on that recovered ability. This is unavoidable in offline replay: a static log cannot report how a learner would have performed at a difficulty they were never administered, so the counterfactual response has to be modelled. The Junyi corpus makes the point plainly, since it records only the exercise attempted and whether it was correct, and carries no response-time channel at all. What the real datasets contribute is realistic ability dynamics in place of smooth synthetic learning curves; what they do not contribute is validation of the response model itself. Because the modelling assumptions are identical for every controller, the ranking is unaffected by them, but the absolute time-in-Flow values on ASSISTments and Junyi are model-conditional and should be read as such.
The order of operations within each replay step determines whether the replay is causal, so we state it exactly. At step t the controller has already chosen the difficulty d_t from the observations of steps 0 to t − 1 alone. The simulated learner then responds to d_t, with a success probability set by the recovered ability at step t, and only after that response does the controller update and choose d_{t + 1}. No observation from step t is therefore available to the decision taken at step t. One subtlety remains. Because the moving average at attempt t includes the learner’s logged outcome at attempt t, the ground-truth ability against which step t is scored already reflects that outcome. This passes no information to any controller, but it is not the strictly causal definition, under which the ability at step t would draw on attempts 0 to t − 1 only. Two further details complete the picture. The calibration offset for ASSISTments is estimated from all logged interactions, including those of the evaluation learners; and the reinforcement-learning agent is trained on a pool of trajectories disjoint from the evaluation set but split by student and skill rather than by student, so that on ASSISTments 22 of the 125 evaluation students also contribute a different-skill trajectory to that pool. The subsection on sensitivity to temporal ordering in the Results repeats the benchmark with a strictly causal ability estimate and with an offset estimated after holding out every evaluation learner.
The three evaluation settings are summarised in Table 4, which lists their type, domain, scale and the number of ability trajectories replayed. Fig 4 characterises the two real datasets empirically: the distribution of mean success rate across students (ASSISTments) and exercise sequences (Junyi), and the number of interactions per trajectory. Both real corpora show a broad spread of success rates and sequence lengths — including many short and many near-saturated sequences — which is what makes replaying a controller against them a demanding test of generalisation to authentic human behaviour.
Top row: distribution of mean correctness per student (ASSISTments) and per exercise sequence (Junyi). Bottom row: number of interactions per student/sequence on a logarithmic scale. The wide spread of success rates and sequence lengths makes the replay a demanding generalisation test.
The fairness protocol has two layers. First, the calibration offset is estimated from each dataset and applied equally to every calibratable controller, and tunable baseline parameters are set for the same target band as PACE. Second, because equal calibration does not by itself guarantee equal tuning effort, we additionally give every controller an identical search budget of 200 configurations on a validation split and report performance on a held-out test split (see the Equal Tuning Budget subsection). Any remaining difference therefore reflects the controller rather than an unfair configuration.
Ethics statement. This study did not involve human participants or animals; it uses fully synthetic simulations and previously published, publicly available, de-identified educational datasets, so no ethical approval was required.
6.4 Implementation and computational complexity
Each PACE update is a constant-time, constant-memory operation: it reads three scalar signals, updates one filtered scalar, evaluates a two-sided threshold test, and applies a clipped proportional step. There are no matrices, no search, no learned tables and no iteration, so per-step time and space complexity are both O(1) with a very small constant, reflected in the measured latency of under two microseconds per step. The absence of any training phase means the engine is ready at the first interaction with fully specified, bounded behaviour.
6.5 Statistics
The primary estimand is, for each dataset, the difference in mean time-in-Flow between PACE-cal and each other controller, and the primary analysis is a linear mixed-effects model fitted to scores averaged over Monte-Carlo seeds, with controller as the only fixed effect and PACE-cal as the reference level. On the two real datasets the model has crossed random intercepts for student and for skill, because students practise several skills and skills are shared across students, together with a random intercept for each trajectory, that is, each student-skill sequence; on the synthetic benchmark it has a random intercept for the player profile. In both cases the residual is the trajectory-by-controller (or profile-by-controller) interaction, so each contrast is tested against the variation of controller effects across learners rather than against Monte-Carlo noise. The models are fitted by restricted maximum likelihood (statsmodels 0.14.6, L-BFGS optimiser); contrasts are Wald t-tests, and p-values are Holm-adjusted across all pairwise contrasts among the controllers compared. Every other analysis is secondary and is reported as such: bootstrap 95% confidence intervals on time-in-Flow (10,000 resamples), the Friedman omnibus test with the Nemenyi critical-difference (CD) analysis on trajectory-by-seed blocks, pairwise Wilcoxon signed-rank tests under Holm correction, a Friedman test on seed-averaged scores, and Cliff’s delta effect sizes [22–24,31]. The blocked tests respect the paired design but treat the Monte-Carlo replicates of one learner as independent blocks, which can inflate the effective degrees of freedom; this is why they are not primary. The subsection on pairwise significance in the Results compares the three analyses, reports the variance components and intraclass correlations, and checks the sensitivity of the primary model to outlying observations. Seeds and pinned dependencies are logged for full reproducibility.
Reproducibility was treated as a first-class design requirement rather than an afterthought. Every random draw derives from a logged master seed and per-profile seeds. The synthetic benchmark, the real-data replays and the parameter sweeps regenerate deterministically from a single command. The bootstrap confidence intervals were originally seeded from Python’s string hash, which is randomised per process; this has been corrected to a stable checksum so that they too are now deterministic, and the parameter-search log is provided in full so that the selected configurations can be verified directly. Dependencies are pinned to exact versions. Renaming or reconfiguring the controller changes only display labels, not the underlying numbers, because the pipeline is deterministic given the seeds. This discipline matters for the credibility of the benchmark: any reader can rerun the study, confirm the reported ranks and confidence intervals, and probe alternative assumptions such as a different clinical band or ability model.
7. Results
7.1 Calibration is decisive
On every benchmark, calibration lifts a controller from the bottom of the table to the top group. With default score thresholds, PACE ranks last on the synthetic benchmark and near-last on both real datasets; once it is calibrated with the data-derived offset, it jumps to the top group. The same happens to PID. This is the clearest and most general result of the study: what most determines performance is the calibration step, not the controller family. The ablation study in the Results puts a number on it, with default thresholds giving a time-in-Flow of only 0.034 on the synthetic benchmark against 0.880 once calibrated (ablation protocol). Fig 5 shows time-in-Flow for every controller across the three benchmarks.
Calibration lifts PACE and PID from the bottom to the top group; uncalibrated variants remain poor. PACE-cal is highlighted; calibrated PID is ahead of it on all three settings.
The reinforcement-learning baseline turned out to be mis-specified rather than merely weak, and correcting it strengthens rather than weakens the central claim. Its reward paid +1 when the performance score lay in [0.50, 0.75]; read through the calibration rule, that band corresponds to true success between 0.70 and 0.95, while the agent was being scored on success between 0.50 and 0.75. It was optimising a target almost disjoint from the one it was measured against — the same failure the uncalibrated PACE exhibits, and the one calibratable controller that had not received the offset. Instrumenting a trained agent confirms this directly: 91% of its steps on the synthetic benchmark placed the learner above the Flow band. Applying the identical calibration used for PACE and PID, and changing nothing else, moves 87% of steps inside it.
Table 5 therefore reports the calibration lift for every calibratable controller. Eight of the nine dataset-controller pairs improve, several of them by an order of magnitude. The exception is the RL agent on Junyi, which degrades at the published 300-episode budget because the calibrated agent has not converged on the longest trajectories; at the equal-compute budget the sign reverses to +0.055. We report both, and we do not claim that calibration improves every controller unconditionally. Table 5 is computed within the reinforcement-learning protocol, on its own held-out units, where all three calibrated controllers use the analytic offset c = 0.20 on ASSISTments rather than the data-derived 0.18 used in Table 6; The sensitivity analysis of temporal ordering shows that rerunning them at a common held-out, data-derived offset leaves every lift positive.
The most direct evidence for the claim is the pair of uncalibrated baselines: PACE at 0.033 and PID at 0.034 on the synthetic benchmark are, to within noise, equally broken. Their calibrated counterparts reach 0.860 and 0.902. The gap between those two pairs is far larger than any gap between controller families.
7.2 Benchmark Ranking: Synthetic versus real
Table 6 summarises the main results. On the synthetic benchmark, calibrated PID attains the best mean rank (1.37), with calibrated PACE second (2.05) and fuzzy third (2.63); the omnibus Friedman test is highly significant (χ² = 1129, p < 0.001) with a critical difference of 0.78 for the eight controllers now compared. The ordering therefore matches the real datasets: once both are calibrated, PID edges PACE on raw engagement in every setting. On real data the picture is consistent across both datasets: a correctly calibrated PID attains the highest raw time-in-Flow (mean rank 2.06 on ASSISTments and 1.83 on Junyi), while calibrated PACE is competitive and statistically indistinguishable from fuzzy, though it trails calibrated PID. The Friedman tests are again highly significant (χ² = 2881 on ASSISTments and 2831 on Junyi, both p < 0.001) with a critical difference of 0.38. Fig 6 shows the critical-difference diagram for ASSISTments: PACE-cal is statistically indistinguishable from fuzzy, trails calibrated PID and the staircase by more than the critical difference, and is well ahead of static, plain PID and RL.
Controllers are placed by mean rank; a difference smaller than the critical difference (CD = 0.38) is not statistically significant. Calibrated PID leads; PACE-cal is tied with fuzzy and trails calibrated PID and the staircase.
This is the no-free-lunch pattern in practice. If the single objective is raw engagement on real data, calibrated PID is the better choice. But raw engagement is not the only objective that matters for a deployable decision engine, and the next subsection shows where PACE’s advantage lies.
7.2.1 Per-Profile Behaviour on the Synthetic Benchmark.
Table 7 breaks the synthetic result down by player profile. Calibrated PID is the strongest controller on four of the six profiles, with time-in-Flow between 0.899 and 0.906 on every profile. Calibrated PACE is ahead of it only on the high-ceiling profile (0.962 against 0.903) and level with it on the low, slow learner (0.902 against 0.900); it trails both calibrated PID and fuzzy on the fatiguing profile, and remains above 0.80 on the non-stationary step-change profile (0.825), where the engine must re-converge after a sudden ability drop. Uncalibrated PACE is near zero on every profile, confirming that the calibration step, not the profile, drives the outcome.
7.3 Equal tuning budget
Matched calibration removes one asymmetry but not another: a controller can still be favoured simply by having had more attention paid to its gains. To close this, every controller was given an identical search budget of 200 randomly sampled configurations, scored on a validation split of trajectories and reported on a held-out test split. PACE’s gain, smoothing factor and band width; the PID gains and setpoint; the staircase step sizes and target ratio, including a weighted Kaernbach variant; the fuzzy output scale; and the static difficulty were all searched under the same budget. The reinforcement-learning agent is not commensurable with a 200-point parameter search, so it was instead given an equal compute budget, and we flag that the comparison there is approximate rather than exact.
Table 8 reports the outcome. Under equal budget the tuned PACE has the highest mean time-in-Flow on all three settings, ahead of the tuned PID by 0.073 on the synthetic benchmark, 0.018 on ASSISTments and 0.015 on Junyi. On both real datasets, however, the margin lies within the critical difference (Nemenyi p = 0.095 and p = 0.600), so the honest reading is that the two are statistically tied there, and the tuned PACE is clearly ahead only on the synthetic benchmark. We treat these tuned results as a ceiling on what a parameter search can add, not as the basis of the ranking, which rests on the calibrated-default comparison in the Benchmark Ranking subsection.
The reversal has a straightforward explanation, and it is a design decision rather than an accident. PACE’s published gain K_p = 0.50 is deliberately conservative: The stability analysis bounds the contracting region at K_p < 1.07, and an extended gain sweep shows time-in-Flow continues to rise well beyond that bound, at the cost of roughly double the difficulty jitter and the loss of any contraction guarantee. PACE therefore has the higher ceiling and the lower default. We retain the conservative default because a provably contracting loop is worth more in a supervised clinical setting than the extra engagement available outside the guaranteed region. PACE-cal at the conservative default is therefore the configuration we recommend, and the one on which the comparisons of the benchmark ranking, the Flow-versus-stability trade-off and the temporal-ordering sensitivity analysis rest.
7.4 The flow-versus-stability trade-off
Raw time-in-Flow is only half the story. PACE-cal achieves its engagement with far smoother adaptation than the controllers that outperform it. On ASSISTments it makes about 3.6 difficulty changes per episode, against roughly 26 for fuzzy and 32 for calibrated PID, a seven- to ninefold drop in jitter, at essentially the same engagement as fuzzy. Junyi shows the same pattern, with PACE-cal at about 5 changes per episode versus 33 for fuzzy and 45 for PID-cal. Fig 7 puts the controllers on the Flow-versus-jitter plane: PACE-cal matches fuzzy’s Flow within statistical error with far fewer changes, and offers a much steadier alternative to PID-cal. Where difficulty should not be changed abruptly, that steadiness is the real benefit of the dead-zone design, and Table 9 lays out the joint stability-and-cost picture on real data.
The horizontal axis is engagement (time-in-Flow, higher is better); the vertical axis is the number of difficulty changes per episode (lower is smoother). PACE and PACE-cal (stars) sit in the low-jitter region; PACE-cal matches fuzzy’s engagement with far fewer changes and offers a much smoother alternative to PID-cal.
7.5 Robustness Across Clinical Bands
Because the Flow band is a clinical choice, a useful controller must perform well not at one target but across the plausible range. Fig 8 sweeps the success band from 50–75% up to 70–85% and reports time-in-Flow. Recalibrated PACE stays high and stable across every band (roughly 0.84–0.88), whereas the baseline rankings flip: the staircase collapses at higher bands and fuzzy drops at 70–85%. In other words, which baseline is competitive depends on the clinical target, while PACE-cal is stable across the whole range — a direct consequence of its calibratability.
Recalibrated PACE (thick line with stars) remains high and stable as the target band is varied, whereas baseline performance and ordering change substantially.
7.6 Robustness to the Response Model
The synthetic players and the stability and calibration derivations all assume a logistic link between the ability-difficulty gap and success, together with two auxiliary identities: that expected accuracy equals the success probability and that expected normalised time is its complement. A reasonable objection is that a benchmark built on the same model the analysis assumes is partly circular. We therefore repeated the entire benchmark under three alternative response models: a probit link, an asymmetric complementary log-log link under which success at d = s is 0.63 rather than 0.50, and a variant that keeps the logistic link but breaks both auxiliary identities by giving accuracy a systematic bias and drawing response time from a lognormal model. For each, the affine map was re-estimated empirically and the thresholds re-derived from those estimates rather than from the analytic constants.
Table 10 reports time-in-Flow for every controller under each of the four response models. Two findings follow. The first is unfavourable and we report it plainly: the first-ranked controller is not stable across models. Calibrated PID leads under the logistic and probit links, calibrated PACE under the skewed link, and fuzzy under broken identities, where PACE-cal also falls just outside the top statistical group. No controller can be claimed to win robustly.
The second finding is that PACE is the least sensitive of the adaptive controllers to which model is assumed. Across the four response models its time-in-Flow spans 0.028, the smallest of any adaptive controller, against 0.046 for the staircase, 0.048 for calibrated PID, 0.058 for calibrated RL and 0.162 for fuzzy. The circularity concern would predict the opposite — that the controller whose guarantees assume the logistic model would be the one most damaged when that model is wrong. It is in fact the most stable of them.
The calibration rule also survives the change, provided the coefficients are estimated rather than assumed. The analytic constants g = 1.00 and c = 0.20 fall outside the empirical 95% confidence interval under every model, including the logistic one, where clipping of the observation channels pulls the offset to about 0.19. Under broken identities the departure is large (g = 0.82, c = 0.05). Estimating the pair from data, which the fairness protocol already requires, is what keeps every calibrated controller working when the idealisation fails.
7.7 Ablations
Four ablations probe the design, and we report them against our own expectations. Replacing the proportional law with the original fixed-step rule slightly increased time-in-Flow (0.935 versus 0.880) and marginally reduced jitter, so the proportional reformulation is justified by analysability — a provable fixed point and gain bound — rather than by raw performance. Removing the EMA filter raised time-in-Flow modestly (0.975) but increased direction reversals roughly twelve-fold (from about 1.2 to 14.5 per session), confirming that the filter trades a little engagement for much smoother behaviour. Removing the normalised-time term barely changed Flow (0.887), indicating that under this player model the time signal is largely redundant with success. Finally, a predictive dead-zone variant specified in advance, intended to anticipate ability drift, added jitter without raising Flow and was rejected; this negative result confirms that the plain dead-zone is the right design. Table 11 collects the ablation numbers and Fig 9 visualises the Flow-versus-jitter effect of each component.
Bars show time-in-Flow (left axis) and difficulty direction reversals (right axis). Removing the EMA filter raises Flow slightly but multiplies jitter; the calibrated dead-zone proportional design is the balanced choice.
7.8 Computational Cost and Effect Sizes
All controllers update in microseconds per step except the fuzzy controller, which is about three orders of magnitude slower (roughly 2,443 microseconds against about 1.7 for PACE, a factor of about 1,400). This places PACE comfortably within the compute budget that real-time, on-device use would impose, and exposes a cost of the fuzzy baseline that the raw Flow ranking conceals. Fig 10 shows the per-step latency on a logarithmic scale. Effect sizes corroborate the ranking: on real data Cliff’s delta between PACE-cal and fuzzy is negligible (about −0.03 on ASSISTments and −0.01 on Junyi), confirming the two are practically tied on engagement, while PACE-cal dominates static, plain PID and RL by a large margin. Table 12 lists the effect sizes.
PACE updates in under two microseconds; the fuzzy controller is about three orders of magnitude slower.
7.9 Pairwise Significance and Robustness of the Ranking
Beyond the omnibus tests, pairwise Wilcoxon signed-rank comparisons with Holm-Bonferroni correction confirm the structure implied by the critical-difference diagrams. On the synthetic benchmark, calibrated PACE is significantly better than every controller except calibrated PID and fuzzy; on both real datasets, the top group (PID-cal, PACE-cal, fuzzy and staircase) is separated from static, plain PID and RL at the corrected significance level, while several differences within that top group fall below the critical difference. The effect sizes in Table 12 tell the same story in magnitude terms, giving a consistent, multiply-confirmed picture rather than a single fragile comparison.
The hierarchical re-analysis changes three conclusions and leaves the rest intact. On both real datasets, calibrated PID significantly outperforms calibrated PACE under the mixed-effects model (p = 6.6e-11 on ASSISTments, p = 1.6e-07 on Junyi), which is consistent with the raw means and with Table 6. PACE-cal is not distinguishable from fuzzy on either real dataset under mixed-effects (p = 1.0 and p = 0.90), so the two should be read as tied rather than ordered. PACE-cal’s advantage over RL and static holds under every one of the three analyses on every dataset. Its position relative to the staircase depends on the dataset: ahead on the synthetic benchmark and on Junyi, behind on ASSISTments (mixed-effects difference −0.049, p = 0.001), as the critical-difference diagram in Fig 6 already shows.
One caveat matters and is easy to get wrong. On the synthetic benchmark, averaging over seeds leaves only six blocks, one per player profile. A Wilcoxon signed-rank test on six pairs cannot reach a Holm-adjusted significance level across twenty-one comparisons regardless of effect size, so the uniformly non-significant adjusted p-values in the seed-averaged column there reflect a limit on power rather than an absence of effect. For the synthetic benchmark the mixed-effects model is the appropriate conservative analysis, because it pools the controller contrasts across all six profiles and tests them against the profile-by-controller interaction. Its profile variance component is estimated at zero, a singular fit, so on the synthetic benchmark the model reduces in practice to a two-way analysis of variance with that interaction as the error term, and we report it as such rather than as a genuinely hierarchical fit.
The primary model on the real datasets is reported in full here, since its structure governs every contrast in Table 13. On ASSISTments the estimated variance components are 0.0279 for skill, 0.00004 for student, 0.0019 for trajectory and 0.0126 for the residual. The random intercepts therefore account for 70% of the variance (intraclass correlation 0.70), almost all of it attributable to the skill being practised, while the student component accounts for 0.1%. Junyi gives a total intraclass correlation of 0.52, of which the student accounts for 1.8%. The near-zero student component places the fit on the boundary of the parameter space, which the software flags; the controller contrasts are not affected, because they are tested against the trajectory-by-controller residual rather than against the student term. As a sensitivity check, we refitted the model after removing observations with an absolute standardised residual above 3. This removes 14 of the 1,200 seed-averaged observations on ASSISTments, all of them from static or default PACE, and none on Junyi. No contrast involving PACE-cal or calibrated PID changes significance; on ASSISTments, the three contrasts among default PACE, RL and static, the weakest controllers, become significant once those observations are removed.
7.10 Sensitivity of the Real-Data Replay to Temporal Ordering
The Datasets and Fairness Protocol subsection sets out the order of operations in the replay and notes two places where it falls short of strict causality: the ability proxy at step t includes the learner’s logged outcome at attempt t, and the ASSISTments offset is estimated from data that include the evaluation learners. To measure what each contributes, we reran both real-data benchmarks with one change at a time. The lagged variant computes the ability proxy from attempts 0 to t − 1 only, with the first step set to 0.5, and uses it everywhere, including reinforcement-learning training. The held-out variant re-estimates the ASSISTments offset after removing every interaction of the 125 students behind the 150 evaluation trajectories. The fully causal replay applies both. Junyi uses the analytic offset and so has only the lagged variant. Before any change, the original runs were reproduced exactly from the archived code, so every difference reported below is attributable to the change under test; the analysis is reproduced by dda_sim/rev4_causal_replay.py.
The held-out offset is 0.1770, against 0.1765 for the original estimate, from 324,215 of the 401,748 interactions; at that size the difference alters no conclusion. The lagged proxy changes more, but neither in PACE-cal’s favour nor against it. Table 14 shows that the Friedman mean-rank order of the eight controllers is identical under every variant on both datasets. Under the fully causal replay on ASSISTments, calibrated PID still leads (0.448 against 0.362 for PACE-cal; mixed-effects difference −0.086, Holm-adjusted p < 0.001), and PACE-cal remains statistically tied with fuzzy (difference −0.005, p = 0.69). On ASSISTments the lag raised most controllers slightly, by between 0.005 and 0.04, and narrowed PACE-cal’s gap to calibrated PID rather than widening it, so the original definition did not flatter PACE-cal. The stability ratios are unchanged in substance: under the causal replay PACE-cal changes difficulty 8.6 times less often than calibrated PID and 7.2 times less often than fuzzy. Because the causal replay leaves the ranking and the primary-analysis conclusions on ASSISTments unchanged, we keep the original replay as the basis of Tables 6–13 to 13 and report the causal replay in full in Table 14, so that both are visible, including the differences on Junyi described next.
Two changes run the other way, and we report them. On Junyi under the lagged proxy, PACE-cal falls from second to fourth by raw mean (0.474), behind calibrated PID, fuzzy (0.495) and plain PID (0.475). The primary mixed-effects model still reads PACE-cal and fuzzy as tied (difference −0.021, p = 0.70), but the secondary blocked Wilcoxon and Nemenyi tests separate them in fuzzy’s favour, and PACE-cal’s margin over the staircase on Junyi is no longer significant (p = 0.18). The only other changes in significance under either variant involve default PACE, RL and static, the three weakest controllers. Within the reinforcement-learning protocol of Table 5, the calibration lift remains positive for PACE, PID and RL under every variant, with all three calibrated controllers sharing the held-out offset on ASSISTments, and the single negative lift in Table 5, RL on Junyi, turns positive (+0.069) under the lagged proxy. We read that reversal as training variance in the agent rather than an effect of the proxy: the agents’ results moved far more than any other controller’s, the uncalibrated agent’s direction reversals on Junyi rising from 13.8 to 72.3 per episode under the same change.
8. Discussion
The experiments yielded two main findings. Calibrating an individual controller’s parameters, rather than the choice of controller family, largely determines performance; a single data-derived offset takes both an interpretable rule-based engine and a plain PID controller from worst to best on every benchmark. This reframes a significant part of the DDA design problem as a calibration problem. The closed-form rule with an empirical offset gives practitioners a pragmatic and general method that can be applied without a tuning campaign. It moderates the common belief that engagement gains come mainly from a cleverer controller; here they come primarily from setting the operating point correctly.
The second finding, for PACE itself, is a trade-off rather than a clean win, and it is worth stating plainly. A well-calibrated PID achieves higher raw engagement on real data. The fuzzy controller is roughly three orders of magnitude slower: PACE matches it on engagement, adapts far more smoothly and remains fully auditable. Which controller is best depends on what is being optimised. Where supervision is required, safety is paramount and computational resources are limited, stability, transparency and cost are not afterthoughts but requirements. Among the controllers tested, and within the limits of an offline benchmark, PACE occupies the most useful operating point in that respect.
Several practical details support this. The instantaneous update and the lack of training imply that a session can begin immediately with a known, bounded policy that adds no appreciable load to a headset already busy with rendering and tracking. Reducing the frequency of difficulty adjustments six- to ninefold at matched calibration may also matter clinically, although this study cannot show that it does. Fluctuations in difficulty could undermine a patient’s sense of competence and disrupt the rhythm of a session, and a controller that settles into the Flow band and stays there would plausibly feel calmer and more predictable; testing that expectation is a task for the clinical study outlined below. Taken together: because the entire policy is a function of four named parameters and one filtered scalar, a therapist can be told in plain language why the difficulty moved and can shift the target band mid-programme with a predictable effect. These properties could also reduce the organisational cost of validating, monitoring and certifying such a system, although that too remains to be shown in practice.
The study has clear limitations, and they should be read together. The evaluation is entirely offline, so no result here speaks to motivation, acceptance or therapeutic benefit, and none of the reported behaviour has been observed with a real user in the loop. The two real datasets come from tutoring systems rather than motor rehabilitation; they show that the engine generalises to real human ability curves, but not that it helps patients. The real-data replays depend on a response model for the per-step observations, as the Datasets and Fairness Protocol subsection sets out, so their absolute values are model-conditional even though their ability trajectories are genuine, and a replay of recorded ability cannot capture the motivational feedback that arises only when a real user responds to the difficulty they are given. In the simulation, where normalised time is exactly the complement of success, the calibration offset is exact and the time term partly redundant; neither property need hold in real interaction, which is why the offset is estimated from each dataset and the Flow band is swept rather than fixed. The benchmark covers a fatiguing profile and a single step-change profile but not strongly multimodal or rapidly non-stationary ability, where a dead-zone controller tuned for smooth drift may adapt too slowly. Finally, the reinforcement-learning results are single training draws and are markedly sensitive to them: in the sensitivity analysis of temporal ordering, small changes to the inputs moved the calibrated agent’s time-in-Flow on Junyi from 0.264 to 0.483, more than any other controller moved, so the RL figures should be read as indicative rather than precise; its training pool, though disjoint from the evaluation trajectories, also shares some students with them. That the central finding holds in a controlled synthetic environment and in two independent real corpora is at least some evidence that it is not an artefact of one setting.
The assumptions behind the analysis are now testable rather than merely acknowledged. The response-model robustness analysis shows that the first-placed controller changes with the assumed response model, so no controller wins unconditionally; that PACE is the least sensitive of the adaptive controllers to that choice; and that the calibration rule holds up only when its coefficients are estimated rather than assumed.
It is worth saying what these numbers mean in absolute terms, since the best real-data values are about 0.48 on ASSISTments and 0.61 on Junyi under equal-budget tuning. Time-in-Flow is the fraction of steps at which the learner’s true success probability lies inside a 25-percentage-point window, so a value of 0.50 means the learner spends about half the session in the intended range — against roughly 0.16 and 0.10 for a fixed difficulty on the same trajectories. The ceiling is well below 1.0 for a structural reason: a replayed ability trajectory moves between steps, and no controller that adjusts once per step can hold a fast-moving learner inside a narrow band continuously. The synthetic benchmark, where ability drifts smoothly, is where values above 0.9 become attainable. Readers should therefore compare controllers within a dataset rather than read an absolute level as a quality grade.
The offset estimates are a useful worked example of the difference between statistical and practical significance. The three datasets give c = 0.190, 0.189 and 0.187. With n = 20,000 probe observations, Junyi’s 95% confidence interval does not overlap ASSISTments’, so the difference is unambiguously significant. It is also unimportant: the gap is 0.0023, and propagating it through the calibration rule moves the derived score thresholds by under 0.002, far less than the width of the dead zone. Significance at this sample size is a statement about precision, not about whether the distinction should change any design decision.
Applying a single stability criterion uniformly refines rather than confirms the distinction Table 1 originally drew. A proportional controller with a calibrated setpoint has the same closed-form Jacobian as PACE and contracts onto the same clinical target; describing PID as only partially stable is defensible for its default setpoint, where it converges reliably to a success rate of 0.83, but not for its calibrated form. What separates PACE is not that PID is unstable but that PACE’s equilibrium is a dead-zone interval rather than a point, so the engine stops adjusting once the learner is inside the band, and that the band itself is placed directly from a clinical success target.
The next logical step would be to conduct a clinical study to assess a supervised stroke-rehabilitation deployment. It would use a single calibrated PACE configuration, frozen for the duration, and test its convergent validity against standard clinical instruments. It would also assess how stable and acceptable the adaptation feels to patients. The experiment would test whether the observed engagement and smoothness translate into therapeutic benefit, thereby connecting the algorithmic evidence reported here to the clinical use it points toward. The benchmark could also be extended with further real-world corpora and alternative ability models. The calibration offset might also be updated online in a bounded, auditable fashion without compromising interpretability. Together, these steps would move PACE from a well-characterised algorithm to one ready for deployment.
9. Conclusions
We have presented PACE, a Performance-Adaptive Calibratable Engine for interpretable, real-time difficulty decision-making, along with a closed-form rule that maps a target success band to controller thresholds through a data-derived offset. Built from a dead-zone proportional law and a low-pass filter, PACE has a provable stable fixed point at the Flow-optimal difficulty, an explicit gain bound for contraction, and an update that costs microseconds. Across a fair benchmark against five baselines on a synthetic environment and two large real datasets, calibration proved decisive for every controller. A well-calibrated PID edges ahead on raw engagement on real data. The calibrated PACE configuration we recommend matches the fuzzy controller on engagement and, at matched calibration on real data, changes difficulty about nine times less often than calibrated PID and six to seven times less often than fuzzy; it adds provable stability, microsecond latency and full interpretability, the combination that would matter when a controller has to be trusted, explained and certified. These properties survive a strictly causal replay of the real data. In keeping with the no-free-lunch principle, the contribution is not a claim to win everywhere but a transferable calibration method and a reproducible comparison that identifies where an interpretable engine is the right choice. All of the evidence is offline, and establishing clinical effectiveness in stroke rehabilitation remains entirely future work.
Acknowledgments
Princess Nourah bint Abdulrahman University Researchers Supporting Project number (PNURSP2026R732), Princess Nourah bint Abdulrahman University, Riyadh, Saudi Arabia.
References
- 1. Hunicke R. The case for dynamic difficulty adjustment in games. In: Proceedings of the 2005 ACM SIGCHI International Conference on Advances in computer entertainment technology. 2005;429–33.
- 2. Paraschos PD, Koulouriotis DE. Game difficulty adaptation and experience personalization: a literature review. Int J Hum-Comput Interact. 2022;39(1).
- 3.
Csikszentmihalyi M. Flow: the psychology of optimal experience. New York: Harper and Row. 1990.
- 4. Laver KE, Lange B, George S, Deutsch JE, Saposnik G, Chapman M, et al. Virtual reality for stroke rehabilitation. Cochrane Database Syst Rev. 2025;6(6):CD008349. pmid:40537150
- 5. Mortazavi F, Moradi H, Vahabie A-H. Dynamic difficulty adjustment approaches in video games: a systematic literature review. Multimed Tools Appl. 2024;83(35):83227–74.
- 6. Cowley B, Charles D, Black M, Hickey R. Toward an understanding of flow in video games. ACM Comput Entertain. 2008;6(2):20.
- 7. Sekhavat YA. MPRL: Multiple-Periodic Reinforcement Learning for difficulty adjustment in rehabilitation games. In: 2017 IEEE 5th International Conference on Serious Games and Applications for Health (SeGAH). 2017;1–7.
- 8. Huber T, Mertes S, Rangelova S, Flutura S, Andre E. Dynamic Difficulty Adjustment in Virtual Reality Exergames through Experience-driven Procedural Content Generation. In: 2021 IEEE Symposium Series on Computational Intelligence (SSCI). 2021. 1–8.
- 9. Piech C, Bassen J, Huang J, Ganguli S, Sahami M, Guibas L. Deep knowledge tracing. Adv Neural Inf Process Syst. 2015;28:505–13.
- 10. Corbett AT, Anderson JR. Knowledge tracing: modeling the acquisition of procedural knowledge. User Model User-Adapt Interact. 1995;4(4):253–78.
- 11. Rudin C. Stop Explaining Black Box Machine Learning Models for High Stakes Decisions and Use Interpretable Models Instead. Nat Mach Intell. 2019;1(5):206–15. pmid:35603010
- 12. Hocine N, Gouaïch A, Cerri SA. Dynamic Difficulty Adaptation in Serious Games for Motor Rehabilitation. Lecture Notes in Computer Science. Springer International Publishing. 2014. p. 115–28.
- 13. GBD 2019 Stroke Collaborators. Global, regional, and national burden of stroke and its risk factors, 1990-2019. Lancet Neurol. 2021;20(10):795–820.
- 14.
Astrom KJ, Murray RM. Feedback systems: an introduction for scientists and engineers. Princeton (NJ): Princeton University Press. 2008.
- 15. Soleimani M, Ghazisaeedi M, Heydari S. The efficacy of virtual reality for upper limb rehabilitation in stroke patients: a systematic review and meta-analysis. BMC Med Inform Decis Mak. 2024;24(1):135. pmid:38790042
- 16.
Astrom KJ, Hagglund T. PID controllers: theory, design, and tuning. 2nd ed. Research Triangle Park (NC): ISA. 1995.
- 17. Feng M, Heffernan N, Koedinger K. Addressing the assessment challenge with an online system that tutors as it assesses. User Model User-Adapt Interact. 2009;19(3):243–66.
- 18. Embretson SE, Reise SP. Item response theory for psychologists. Mahwah (NJ): Lawrence Erlbaum. 2000.
- 19. Wilson RC, Shenhav A, Straccia M, Cohen JD. The Eighty Five Percent Rule for optimal learning. Nat Commun. 2019;10(1):4646. pmid:31690723
- 20.
Choi Y, Lee Y, Shin D, Cho J, Park S, Lee S. In: Artificial Intelligence in Education, 2020. 69–73. https://doi.org/10.1007/978-3-030-52240-7_13
- 21.
Chang HS, Hsu HJ, Chen KT. Modeling exercise relationships in e-learning: a unified approach. In: Proc 8th Int Conf Educ Data Min (EDM 2015), 2015. 532–5.
- 22. Demsar J. Statistical comparisons of classifiers over multiple data sets. J Mach Learn Res. 2006;7:1–30.
- 23. Friedman M. The use of ranks to avoid the assumption of normality implicit in the analysis of variance. J Am Stat Assoc. 1937;32(200):675–701.
- 24. Cliff N. Dominance statistics: ordinal analyses to answer ordinal questions. Psychol Bull. 1993;114(3):494–509.
- 25. Sweetser P, Wyeth P. GameFlow: a model for evaluating player enjoyment in games. ACM Comput Entertain. 2005;3(3):3.
- 26. Bjork RA. Memory and Metamemory Considerations in the Training of Human Beings. Metacognition. The MIT Press. 1994. p. 185–206.
- 27.
Vygotsky LS. Mind in society: the development of higher psychological processes. Cambridge (MA): Harvard University Press. 1978.
- 28. Vitekova L, Kapec P, Fabo P. Dynamic difficulty adjustment in serious games: a literature review. Information. 2026;17(1):96.
- 29. Fisher N, Kulshreshth AK. Exploring Dynamic Difficulty Adjustment Methods for Video Games. Virtual Worlds. 2024;3(2):230–55.
- 30. Doumas I, Lejeune T, Edwards M, Stoquart G, Vandermeeren Y, Dehez B, et al. Clinical validation of an individualized auto-adaptative serious game for combined cognitive and upper limb motor robotic rehabilitation after stroke. J Neuroeng Rehabil. 2025;22(1):10. pmid:39849588
- 31. Garcia S, Herrera F. An extension on statistical comparisons of classifiers over multiple data sets for all pairwise comparisons. J Mach Learn Res. 2008;9:2677–94.
- 32.
Bond TG, Fox CM. Applying the Rasch model: fundamental measurement in the human sciences. 3rd ed. New York: Routledge. 2015.

관련 뉴스