📄 Research Article
Q-Learning Lab: Teaching Reinforcement Learning Through Learner-Generated Trace Analysis
Presents Q-Learning Lab, a single-file tool that makes the Bellman update concrete by letting undergraduates inspect how each value is computed and why actions are chosen, through learner-generated trace analysis. It addresses the abstraction gap where students watch policy convergence without understanding mechanism.
A Reinforcement Learning artifact grounded in Active Learning and STEM Education for Higher Ed. It connects to Self Regulated Learning by making the learning process observable, and to Scaffolding of difficult quantitative concepts, offering a reproducible teaching tool for ML/RL courses.
Key Findings
Study Design & Method
The tool was validated without human-subject data through three complementary evaluations: (i) correctness of the learned values and policy against a value-iteration ground truth on the identical MDP; (ii) hyperparameter sweeps over α, γ, and ε demonstrating that every pedagogical claim the tool makes is reproducible; and (iii) a reward-editing study in which editing the pit reward produced distinct failure modes: with a pit reward of +5 the optimal policy still reaches the goal (V(s0)=6.38), yet Q-learning converges to the pit in 10/10 seeds — an exploration failure — whereas with a pit reward of +20 (above the 7.774 threshold) the optimal policy genuinely prefers the pit (V(s0)=16.86) and Q-learning agrees in 10/10 seeds — true reward misspecification. The paper also situates the tool against existing gridworld visualizers via a feature comparison, grounds it in learning-by-doing pedagogy, and includes a 50-minute lesson plan; the tool and all experiment code are openly available.
Implications for AI in Education
Reinforcement learning is usually introduced through the Bellman update, yet the equation often remains abstract to undergraduates: they watch policy arrows converge but rarely observe how each value is computed or why an action is chosen. By making the numeric update and every decision visible and exportable, Q-Learning Lab supports Self Regulated Learning and reflective inquiry in quantitative courses, and its learn–export–analyze loop gives instructors a reproducible way to diagnose common student confusions — such as conflating exploration failure with reward misspecification — that surface only when learners analyze their own agent's traces.
Connected Concepts
Connected Articles
Citation
Ekkachai Jueng (2026). Q-Learning Lab: Teaching Reinforcement Learning Through Learner-Generated Trace Analysis. arXiv:2607.10802. arXiv preprint.