Skip to content
Preprint

ExplainRoute: A Pre-Deployment Audit Framework for Non-Answer-Giving Programming Tutors

Sep 2026 · 0 citations · 35 references
Computer Science

Abstract

Programming tutors should support learners'own explanations rather than immediately providing model answers. We present ExplainRoute, a pre-deployment audit framework for non-answer-giving programming tutors. Given a code line and a learner explanation, it estimates the explanation state and selects one of two bounded responses: a Feynman-style self-explanation prompt or a Socratic scaffold. The framework exposes its state, strategy, cited code fragment, and leakage risk through a machine-checkable contract. Unlike benchmarks that rank tutors by fluency alone, ExplainRoute audits information boundaries, response polarity, failure closure, and the value of learner-explanation visibility before classroom deployment. We evaluate it offline on the 1,770-pair SelfCode corpus using a code-group split, with 443 pairs reserved in 11 untouched holdout groups. The evaluation compares direct answers, fixed open self-explanation, fixed Socratic scaffolding, adaptive routing, and an adaptive no-state ablation. Contract validity reaches 100% for all pedagogical conditions. Adaptive routing matches the frozen reference rule on 60.5% of records, with state macro-F1 of 0.238 (Open: 0.229; Socratic: 0.246), showing no reliable adaptive advantage. An independent language-model judge scores adaptive responses 4.516/5, outperforming the no-state ablation (2.819/5) but slightly below fixed open self-explanation (4.598/5) and Socratic scaffolding (4.658/5). A blinded rubric evaluation on a stratified 40-row subset confirms that visible learner explanations improve information value while adaptive routing does not outperform fixed strategies. The contribution is a validated audit protocol and a boundary finding, rather than evidence of improved learning, retention, or causal instructional effectiveness.

View source

Similar papers

Preprint Aug 2026

Teaching a Large Language Model Tutor to Withhold the Answer: A Supervisor Architecture and an Evidence-Driven Method for Tuning Socratic Behavior

A deployed tutoring system that enforces answer-withholding as a per-turn, machine-checkable contract, and a method for tuning that withholding against evidence is reported, offering the measure, diagnose, and fix loop as a reusable recipe for any LLM agent that must refuse a capability it has.

Y. Pisan · 0 citations
#human-computer interacti... Preprint Aug 2026

Self-Explanation Tutor for Active Study of CS1 Worked Examples

Worked examples are an important part of introductory programming, but reading their expert explanations is passive. Self explanation, students explaining the problem and its solution to themselves with subgoal level analysis, converts passive reading into an active study of worked example, yet it is hard to scale beca...

Arun-Balajiee Lekshmi-Narayanan, Mohammad Hassany, Kamil Akhuseyinoglu et al. · 0 citations
#large language models Open access Sep 2026

A Provider-Independent LLM Architecture for Adaptive Oracle SQL Tutoring: A Design Study

The design pairs cognitive adaptivity, realised as mastery-based task selection under configurable parameters, with motivational design grounded in Keller’s ARCS model, and a formalised adaptation logic linking learner states, adaptive responses, and conjectures.

Lajos Toldi, Tünde Lengyel Molnár · 0 citations
Conference Sep 2026

Explanation First Prompting for Reviewing AI Programming Answers in Undergraduate Courses

Undergraduate students can now obtain complete programming answers from generative artificial intelligence systems in seconds, but many of those answers are accepted with little checking. This paper examines whether explanation-first prompting makes such answers easier to review rather than whether it improves student...

Orest Raiter · 0 citations
Conference Aug 2026

When Iterative Prompting Fails: An Empirical Study of Unit Test Generation with Open-Source LLMs

Large language models (LLMs) have shown promise in automated unit test generation, yet the effectiveness of prompt engineering for small, locally-deployed open-source models remains poorly understood. Following growing interest in local LLM deployment to mitigate data exposure risks, this paper presents a controlled em...

M. Tran, Khang Mai · 0 citations

We use cookies to run the site and, with your consent, for analytics and to show ads. See our Cookie Policy.