Research Article
Taming the Black Box: Design Principles for Rule-Integrated LLM Tutoring Systems in Primary School Mathematical Problem Solving
Synthesis: This design science research (DSR) develops a rule-guided LLM tutoring system for primary-school mathematical word problems, addressing the inconsistency and pedagogical opacity of unconstrained intelligent tutors in a procedural domain where correctness is governed by deterministic rules. The artifact formalizes a distinction between rule-guided scaffolding, governed by a three-layer architecture (diagnosis → intent selection → constrained response generation), and ad-hoc scaffolding, where helpful moves are difficult to audit and replicate. The system constrains stochastic variability through explicit Guardrails while embedding Scaffolding theory, evaluated through a staged DSR approach spanning persona-based simulated dialogues and a real classroom pilot. Findings show rule-guided scaffolding improves interactional consistency, reduces premature answer-giving, and sustains cognitive engagement — while revealing interactional complexities that only authentic classrooms expose.
Key Findings
- Rule-guided scaffolding outperformed ad-hoc scaffolding on interactional consistency: in 36 of 40 (90%) real-student sessions both the tutor and students followed the intended turn-taking script, and the tutor guided key concepts/rules in the same 36 sessions, even under fragmented, ambiguous classroom input.
- The three-layer architecture reduced premature answer-giving and early closure via anti-spoiler boundaries and a completion-only goodbye gate; the tutor's diagnostic layer identified and responded to clear student deviations in all sessions where they occurred, validating the granularity of its assessment codes.
- Simulation surfaced architectural failure modes with high recall — arithmetic verification misjudgment, over-explanation, answer-giving boundary violations, and premature goodbye were all identified and remediated through an "evidence–diagnosis–revision–retest" cycle using an LLM-as-Student, dual-model configuration (DeepSeek as student, ChatGPT as tutor).
- The classroom pilot with 40 Grade 5 students (mean age 10.8 years) revealed complexities not captured in simulation: attentional fragility requiring pause/resume, engagement costs of pedagogical verbosity, trust sensitivity to arithmetic disagreements, and need for explicit locking of high-risk procedural rules (units, rounding, billing conventions).
- Even a highly structured prompt cannot fully eliminate stochastic variability — the tutor produced incorrect information (arithmetic hallucinations) in 4 of 40 sessions (10%), motivating strengthened uncertainty guardrails and an "epistemic humility" design in which all computation is returned to the student.
- Simulation and classroom validation are complementary, not interchangeable: every Phase 1 failure mode reappeared in Phase 2, yet simulation systematically underestimates interactional failure modes (fragmented inputs, off-task behavior, trust sensitivity), warning against "ecological overconfidence."
What this means for practice
- Designers. Externalize pedagogical decisions into auditable diagnosis → intent → response layers rather than relying on unconstrained model inference, and treat constraints on generation as the core design asset.
- Designers. Lock high-risk procedural rules (units, rounding, billing conventions) and add numerical correctness gates, anti-spoiler boundaries, and a completion-only closing gate.
- Designers. Remove arithmetic from the tutor's role and return all computation to the student: the tutor produced incorrect arithmetic information in 4 of 40 real classroom sessions.
- Software developers. Validate in two stages — persona-based simulation for diagnostic precision plus an authentic classroom pilot for ecological validity — because simulation systematically underestimated interactional failure modes.
- Educators. Add pause/resume affordances for interrupted work and keep tutor turns brief; attentional fragility and verbosity costs appeared only once real students were in the room.
Limitations
- The empirical evidence is a single classroom pilot with 40 Grade 5 students (22 female, 18 male, mean age 10.8 years) in one Shenzhen school computer laboratory working on unit-conversion and rounding word problems, so scalability to other populations and content such as fractions or proportional reasoning is untested.
- There was no controlled comparison condition, so learning effects cannot be attributed causally; facilitator influence, peer effects, and variable student motivation were uncontrolled classroom variables.
- The tutor gave incorrect arithmetic information in 4 of 40 sessions (10%), and LLM version updates may shift prompt performance, requiring ongoing monitoring and periodic re-validation.
Citation
Looi, C.-K., Liu, Z., & Sun, D. (2026). Taming the black box: Design principles for rule-integrated LLM tutoring systems in primary school mathematical problem solving. Computers and Education: Artificial Intelligence, 10, 100586.