AI-PAL: A Knowledge-Tracing-Driven Adaptive Learning Framework with Guardrailed Generative Feedback—Design and Simulation-Based Evaluation

Generative AI tutors can improve or impair learning depending on their design, yet most combine a large language model (LLM) with no persistent model of what each learner knows. We present AI-PAL, a modular framework that couples Bayesian knowledge tracing (BKT) with prerequisite-aware content selection and a graduated, attempt-gated hint ladder whose generated hints are validated before display. The generative component is evaluated in a small-scale study of 170 real LLM-generated hints. We specify four algorithms (knowledge estimation, content selection, feedback and progress update), analyze their complexity and evaluate them in six simulation experiments with known ground truth. With 15 practice opportunities per knowledge component, BKT fitted by expectation–maximization reached a held-out AUC of 0.85 and classified mastery with precision above 0.99 and recall of 0.96. In a simulated 11-week course with 150 learners, AI-PAL selection increased the expected end-of-course score from 0.78 (fixed sequence) to 0.88. The simulated advantage was observed across learner terciles and under forgetting and parameter misspecification; these outcomes describe the behavior of the simulated learner model, not demonstrated learning gains. Under two non-BKT learner generators, however, the advantage shrank or reversed because BKT declared mastery prematurely; continuing spaced review instead of stopping practice at estimated mastery restored parity or a small advantage. Attempt gating reduced bottom-out hints for simulated hint-gaming learners from 0.64 to 0.02. With an operational new-attempt detector, gating remained effective when gaming learners submitted trivially edited code (bottom-out share 0.02 versus 0.24 when any resubmission counted). Power simulations show that 45 learners per arm can detect only moderate effects; realistic effects of d = 0.3–0.4 require about 62–109 learners per AI arm and 10 to 30 or more teacher-led groups of ten, depending on clustering. Because the learner simulator shares BKT’s assumptions, these results establish algorithmic behavior, not learning effects in classrooms. In that study, retrieval did not improve correctness or grounding, which were near ceiling, but increased solution leakage (33% versus 9% of hints), and the four checks together caught only 40% of unacceptable hints, mainly because the token-based leak check missed paraphrased and renamed leaks.

Authors

Institutions

Publication Details

Journal
Applied Sciences
Published
2026-12-02
DOI
https://doi.org/10.3390/app162311954
Primary Topic
Intelligent Tutoring Systems and Adaptive Learning
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
NOV
article

AI-PAL: A Knowledge-Tracing-Driven Adaptive Learning Framework with Guardrailed Generative Feedback—Design and Simulation-Based Evaluation

Rafe Alasem, Khaled Ayasrah
Applied Sciences
Intelligent Tutoring Systems and Adaptive Learning
article

AI-PAL: A Knowledge-Tracing-Driven Adaptive Learning Framework with Guardrailed Generative Feedback—Design and Simulation-Based Evaluation

Rafe Alasem, Khaled Ayasrah
article en

Abstract

Generative AI tutors can improve or impair learning depending on their design, yet most combine a large language model (LLM) with no persistent model of what each learner knows. We present AI-PAL, a modular framework that couples Bayesian knowledge tracing (BKT) with prerequisite-aware content selection and a graduated, attempt-gated hint ladder whose generated hints are validated before display. The generative component is evaluated in a small-scale study of 170 real LLM-generated hints. We specify four algorithms (knowledge estimation, content selection, feedback and progress update), analyze their complexity and evaluate them in six simulation experiments with known ground truth. With 15 practice opportunities per knowledge component, BKT fitted by expectation–maximization reached a held-out AUC of 0.85 and classified mastery with precision above 0.99 and recall of 0.96. In a simulated 11-week course with 150 learners, AI-PAL selection increased the expected end-of-course score from 0.78 (fixed sequence) to 0.88. The simulated advantage was observed across learner terciles and under forgetting and parameter misspecification; these outcomes describe the behavior of the simulated learner model, not demonstrated learning gains. Under two non-BKT learner generators, however, the advantage shrank or reversed because BKT declared mastery prematurely; continuing spaced review instead of stopping practice at estimated mastery restored parity or a small advantage. Attempt gating reduced bottom-out hints for simulated hint-gaming learners from 0.64 to 0.02. With an operational new-attempt detector, gating remained effective when gaming learners submitted trivially edited code (bottom-out share 0.02 versus 0.24 when any resubmission counted). Power simulations show that 45 learners per arm can detect only moderate effects; realistic effects of d = 0.3–0.4 require about 62–109 learners per AI arm and 10 to 30 or more teacher-led groups of ten, depending on clustering. Because the learner simulator shares BKT’s assumptions, these results establish algorithmic behavior, not learning effects in classrooms. In that study, retrieval did not improve correctness or grounding, which were near ceiling, but increased solution leakage (33% versus 9% of hints), and the four checks together caught only 40% of unacceptable hints, mainly because the token-based leak check missed paraphrased and renamed leaks.

Applied SciencesVol. 16(23)
Abu Dhabi University (AE), University of Dubai (AE), Amity University (AE)
Intelligent Tutoring Systems and Adaptive Learning
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.

Laika access coming soon