BEAGLE: Behavior-Enforced Agent for Grounded Learner Emulation
Abstract
Simulating student learning behaviors in open-ended problem-solving environments holds potential for education research, from training adaptive tutoring systems to stress-testing pedagogical interventions. However, collecting authentic data is challenging due to privacy concerns and the high cost of longitudinal studies. While Large Language Models (LLMs) offer a promising path to student simulation, they suffer from competency bias, optimizing for efficient correctness rather than the erratic, iterative struggle characteristic of novice learners. We present BEAGLE, a neuro-symbolic framework for computational STEM (C-STEM) learning environments, where students learn disciplinary content by building executable computational models. BEAGLE addresses this bias with an architecture inspired by Self-Regulated Learning (SRL) theory. BEAGLE integrates three key technical innovations: (1) a semi-Markov model that governs the timing and transitions of cognitive behaviors and metacognitive behaviors; (2) Bayesian Knowledge Tracing with explicit flaw injection to enforce realistic knowledge gaps and "unknown unknowns"; and (3) a decoupled agent design that separates high-level strategy use from code generation actions to prevent the model from silently correcting its own intentional errors. In evaluations on four Python-based physics and applied-mathematics tasks, BEAGLE reproduces authentic trajectories more faithfully than nine baselines. In a human Turing test using our animated trace viewer, participants could not reliably distinguish rendered BEAGLE traces from real student traces (52.8%, d' = 0.15, N = 71). Code is available at https://github.com/HCWDavid/BEAGLE-NIPS2026.