betaFeedback

WorksComputer Science

Learning What to Change: State-Verified Reinforcement Learning for Educational Agents

Abstract

Persistent tutoring agents do more than answer questions: they manage course files, practice records, and learner profiles that govern future lessons. In such stateful settings, knowing what to teach does not guarantee knowing what to change. We identify a pervasive failure mode, content-state decoupling, where agents deliver pedagogically sound responses while silently corrupting workspace state through unwarranted updates, missed prerequisites, or unintended side effects. Text-level judges overlook these state errors, whereas isolated tool-call checks break down because whether a write action is valid depends jointly on the learner request, prior state, and execution order. We propose State-Verified Reinforcement Learning, which supervises online policy optimization directly through verifiable workspace transitions. Within isolated sandboxes that snapshot state around every tool call, a deterministic verifier audits tool effects, workflow ordering, and native auto-sync side effects, pairing graded partial credit with a hard gate that zeroes episode reward upon any critical violation. Whenever no critical violation occurs, an evidence-grounded judge scores actual saved artifacts rather than agent claims. We pair 1,000 verifiable training instances with an independently authored, human-reviewed evaluation benchmark of 60 tasks spanning 11 educational categories and 16 native tools. After online GRPO training, Qwen3.8-27B raises category-weighted strict success on our benchmark from 51.47% to 80.74% (+29.27 points), cutting content-pass-only execution failures from 45.6% to 13.7% and required state-check failures from 63 to 1 across 180 trials. The resulting policy outperforms seven reference baselines by over 20 points while reducing output tokens by 17-39% across seven of eight external benchmarks without regressing on general reasoning or tool use.

Introduction

Personal learning assistants have moved beyond single-turn question answering. Persistent tutoring systems maintain longitudinal student workspaces spanning course materials, exercise banks, learner mastery profiles, event logs, knowledge wikis, session histories, and study reminders. In such environments, every write operation alters durable state that governs later sessions: when a student returns next week, a mastery record should reflect problems the student actually solved rather than worked examples written by the tutor. Delivering a clear lesson is therefore only half the task; the agent must also decide what to change—and what to leave untouched.

Reinforcement learning (RL) has driven strong gains for tool-using agents in math, coding, and search, where supervision largely reduces to verifying a final answer ([8, 4] (Qian et al. 2025)). Stateful tutoring breaks this assumption. A tutoring request admits many valid explanations or study plans, yet enforces strict invariants on which workspace records may change and in what order. Evaluating Qwen3.8-27B across 180 restored workspace trials reveals a pervasive failure mode we term content–state decoupling (Figure 1a). In a representative explanation task, a student asks for help with conditional probability and a self-check handout. The model saves a clear, accurate handout that passes content assessment, but then logs a learning event, triggering an automatic learner-profile update even though the student submitted no work. Across all 180 trials, 169 (93.9%) pass content assessment, yet 77 of those 169 (45.6%) fail strict completion because of unauthorized profile edits, skipped prerequisites, or unintended side effects.

Figure 1. (a) Content–state decoupling in stateful tutoring. On a representative explanation task (Appendix B), Qwen3.8-27B saves an accurate handout that passes content assessment, yet logs a learning event and triggers an automatic profile update without a student submission. Across 180 Qwen3.8-27B trials, 77 of 169 content passes (45.6%) fail strict execution. (b) Strict success across all 11 educational task categories. State-Verified RL lifts category-weighted strict success from 51.47% to 80.74%, reaching 100% on four categories and raising clarification and planning from 0% to 76.2%.

Neither response-level judges nor isolated tool-call rules can close this gap. For example, the same event-logging operation records valid progress after a new submission, corrupts the learner profile during a concept explanation (Figure 1a), and double-counts evidence when the attempt is already on file. Whether an action should be rewarded therefore depends jointly on the request qq, the initial workspace s0s_0, the order of events in trajectory τ\tau, and the final workspace sTs_T.

We address content–state decoupling with State-Verified Reinforcement Learning, grounding policy optimization directly in verifiable workspace transitions. Each rollout runs in an isolated sandbox restored from s0s_0 with 16 native tools and a scripted learner, capturing workspace state snapshots around every tool call. Against a private task contract, a deterministic verifier audits target tool effects and workflow ordering while replaying native auto-sync rules to separate authorized runtime updates from critical violations, such as unsupported mastery edits, duplicate attempts, or writes to protected files. When no critical violation occurs, an independent judge scores pedagogical quality directly from saved artifacts and tool returns rather than agent claims, requiring explicit evidence citations. We combine these signals into a hard-gated terminal reward for group-relative policy optimization (GRPO): graded execution and content scores preserve partial credit across valid rollouts, while any critical violation zeroes episode reward so fluent prose never offsets state corruption.

To support both training and evaluation over the same 16-tool runtime, we pair 1,000 verifiable training instances with INNOBENCH, a human-reviewed benchmark of 60 independently authored tasks spanning 11 educational categories. Online GRPO training from Qwen3.8-27B raises category-weighted strict success from 51.47% to 80.74% (+29.27 points), reduces required state-check failures from 63 to 1 across 180 trials, and outperforms seven reference baselines by over 20 points. Category-level results (Figure 1b) show the largest gains where state preservation and execution order are decisive: explanation rises from 13/30 to 30/30, practice reuse from 3/15 to 15/15, and clarification and planning from 0/21 to 16/21, while selective, evidence-conditioned profile updates in diagnostic feedback (12/30) remain more challenging than restraint. Across eight unseen external benchmarks, the trained policy maintains general reasoning and tool-use performance while reducing output tokens by 17–39% on seven suites.

Our main contributions are:

  • We identify and quantify content–state decoupling in stateful tutoring agents: across evaluated baselines, strong reasoning and tool-use capabilities still leave strict completion at or below 60.20%, and 45.6% of content-passing Qwen3.8-27B trials fail state or workflow verification.

  • We propose State-Verified Reinforcement Learning, combining workspace state snapshots, native auto-sync replay, a hard-gated terminal reward, and evidence-grounded content judging to supervise online GRPO.

  • We construct 1,000 verifiable training instances alongside INNOBENCH, a human-reviewed benchmark of 60 tasks over 16 native tools; online GRPO training raises category-weighted strict success by +29.27 points, cuts required state-check failures from 63 to 1, and cuts output tokens by 17–39% on seven of eight external benchmarks without reasoning or tool-use regression.

Related Work

RL for Tool-Using Agents. Interleaving reasoning with tool calls enables agents to adapt to live environment observations (Yao et al., 2023). Search-R1, ReTool, and ToolRL train search and tool-use policies from interaction outcomes [8, 4] (Qian et al. 2025), while GiGPO extends credit assignment across both episode and step levels [5]. For open-ended tasks without exact ground truth, ArenaRL (Zhang et al., 2026) replaces noisy pointwise LLM scores with process-aware pairwise tournaments. Stateful tutoring raises a complementary supervision problem: even when pedagogical quality can be judged reliably, persistent workspaces enforce hard state invariants conditioned on s0s_0 and prior tool returns. We therefore couple deterministic state verification with GRPO (Shao et al., 2024) to supervise both teaching quality and state integrity.

Executable and Stateful Benchmarks. App-World checks programmatic state transitions and unintended side effects across applications (Trivedi et al., 2024), while τ\tau-bench and τ2\tau^2-bench evaluate policy compliance and multi-trial consistency in interactive workflows [1] (Yao et al. 2025). Agentic Rubrics further ties executable verification criteria to heterogeneous execution evidence [2]. Educational workspaces place open-ended teaching artifacts and strict state invariants inside the same interaction. Building on this state-based approach, we pair INNOBENCH with 1,000 verifiable training instances, bringing state verification from evaluation into online RL.

LLM Tutoring Agents. MathDial and MathTutorBench evaluate pedagogical dialogue quality [12] (Macina et al. 2025), while SocraticLM and TutorRL optimize multi-turn teaching guidance within single problem-solving sessions [11, 3]. Unlike stateless tutoring dialogues, personal learning agents such as Inno Agent maintain and mutate persistent layered memory across sessions [6], requiring joint optimization of pedagogical quality and workspace state integrity.

Problem Formulation

Stateful Educational Trajectories

We formulate each persistent tutoring task as a tuple (q,s0,C)(q, s_0, C), comprising a learner request qq, a restorable initial workspace s0s_0, and a private verification contract CC. Each workspace state sts_t maintains five persistent stores: workspace files, an L1 learner profile (tracking concept mastery, confidence, stability, misconceptions, and preferences), an append-only learning-event log, retrieval memory (an L2 knowledge wiki and L3 session history), and scheduled reminders. Interacting over a 16-tool interface T\mathcal{T} and a learner simulator, policy πθ\pi_\theta generates a multi-turn trajectory

τ=[z1,a1,o1,…,zK,aK,oK,y],(1)\tau= [z_1, a_1, o_1, \ldots, z_K, a_K, o_K, y], \tag*{(1)}

where zkz_k, aka_k, oko_k, and yy denote reasoning, actions (tool calls or clarification questions), returned observations, and the final response, respectively. Across tool executions, these actions induce a sequence of workspace states s0→s1→⋯→sTs_0 \rightarrow s_1 \rightarrow\cdots\rightarrow s_T, terminating in final workspace sTs_T. Rather than prescribing a single fixed tool sequence, CC specifies target state outcomes and invariants, allowing distinct valid explanations, document structures, or error-recovery steps to satisfy the task.

We define strict task success as the conjunction of pedagogical quality and operational compliance:

S(τ)=B(τ)⋅V(τ),(2)S(\tau) = B(\tau) \cdot V(\tau), \tag*{(2)}

where B(τ)∈{0,1}B(\tau) \in\{0,1\} indicates that the episode passes independent content assessment, and V(τ)∈{0,1}V(\tau) \in\{0,1\} indicates that it terminates normally within resource budgets, satisfies all mandatory checks, and incurs zero critical violations.

Why Content- and Call-Only Rewards Fail

Base-policy rollouts expose three failure modes of conventional rewards in persistent workspaces:

  1. Content scores mask state corruption. The base policy satisfies B(τ)=1B(\tau)=1 on 169/180 trials (93.9%) yet reaches S(τ)=1S(\tau)=1 on only 92 (51.1%), with 63 failing a required state check and 84 triggering a side-effect violation. Because a text-only judge already scores nearly 94% of rollouts near ceiling, group-relative updates lose discriminative signal against silent record corruption.

  1. Action validity depends on (q,s0,τ)(q, s_0, \tau). Isolated tool-call rules fail because the same write operation changes validity with context and timing. Logging a learning event is required after a new submission, unauthorized during an explanation (where native sync mutates mastery), and a duplicate violation if the same attempt is already recorded in s0s_0. Likewise, saving a study plan before eliciting goals and daily budgets violates workflow

order even if the file reads well.

  1. Partial progress and state corruption are asymmetric. A study plan that satisfies two of three requirements still provides useful learning signal over an empty rollout, whereas silently inflating mastery, duplicating an attempt, or overwriting a protected file corrupts durable learner state regardless of clarity.

A reliable reward must therefore verify three properties across (s0,τ,sT)(s_0, \tau, s_T): whether the requested artifacts and updates were realized, whether prerequisites were gathered before committing writes, and whether protected records remained untouched.

State-Verified Reinforcement Learning

Figure 2 provides an overview of our training pipeline. To supervise both pedagogical quality and workspace integrity, State-Verified RL integrates four components: isolated sandbox rollouts with workspace state snapshots, deterministic state and workflow verification with native auto-sync replay, a hard-gated terminal reward with evidence-grounded judging, and online GRPO.

Isolated Sandboxed Rollouts and Snapshots

For each task, we spawn G=8G=8 isolated rollouts from identical copies of s0s_0 inside the workspace runtime, preserving deployment tool schemas and memory-update behavior. The policy interacts with 16 native tools across five functional groups: file I/O (3), learner memory and profiles (5), L2 wiki and L3 history retrieval (3), learner clarification (1), and reminder management (4); full tool specifications appear in Appendix C. Within a four-turn interaction budget, a scripted learner responds to both structured and natural-language clarification requests and issues fixed follow-ups without revealing hidden contract criteria. Before execution, after every tool call, and upon termination, the sandbox records state snapshots of all persistent workspace stores alongside the ordered event trace, capturing even transient mutations that are later overwritten.

State, Workflow, and Auto-Sync Verification

Against the private verification contract C\mathcal{C}, a deterministic verifier computes three structured signals from the recorded snapshots and event trace without prescribing a single rigid tool sequence:

Tool-Effect Score T(τ)∈[0,1]T(\tau) \in[0,1]. T(τ)T(\tau) measures the equal-weighted pass rate across contract-specified operational goals, including reading required source files (merging segmented reads), writing valid target artifacts, linking existing exercises, archiving into the L2 wiki with provenance, updating requested preference fields, and applying exact reminder edits. Header-only reads, empty writes, and unverified agent claims receive no credit.

Workflow-Order Score P(τ)∈[0,1]P(\tau) \in[0,1]. P(τ)P(\tau) measures the equal-weighted pass rate across temporal and structural invariants: reading source materials before writing or archiving, eliciting missing learner constraints before drafting a study plan, inspecting history before logging an attempt, enforcing unique attempt records, validating saved artifacts, and terminating normally within budget. Policies may recover from failed intermediate tool calls and still achieve P(τ)=1P(\tau)=1.

Native Auto-Sync Replay and Critical Gate C(τ)∈{0,1}C(\tau) \in\{0,1\}. In the native runtime, logging a learning event automatically updates system-managed profile fields such as evidence links and timestamps. Directly editing the learner profile before logging the same event can double-count evidence, whereas authorized automatic updates triggered by a valid event should not be penalized. Our verifier therefore replays the native auto-sync rules over the captured snapshots to reconstruct expected system-managed states, isolating policy-induced edits from runtime synchronization. The binary gate triggers (C(τ)=1C(\tau)=1) if any snapshot reveals: (1) a modification to a protected workspace file, (2) an unauthorized L2 wiki or reminder change, (3) an unrequested learning event or duplicate attempt record, (4) an explicit, unsupported update to mastery, confidence, or stability, or (5) an unauthorized profile or preference edit.

Evidence-Grounded Judge and Hard-Gated Reward

When C(τ)=0C(\tau)=0, an independent LLM judge evaluates pedagogical quality without access to verifier outputs. Rather than relying on what the agent claims to have done, the judge inspects the conversation alongside the saved workspace and L2 wiki artifacts, final learner-profile, event-log, and reminder states, and tool returns, each indexed with a unique evidence identifier. It scores correctness (w1=0.50w_1=0.50), completeness (w2=0.25w_2=0.25), grounding (w3=0.15w_3=0.15), and clarity (w4=0.10w_4=0.10) on a 0–4 scale while citing valid identifiers from this evidence bundle (invalid citations trigger up to three retries), yielding J(τ)=14∑m=14wmscore⁡m(τ)∈[0,1]J(\tau)=\frac{1}{4}\sum_{m=1}^{4}w_m\operatorname{score}_m(\tau)\in[0,1]. We combine deterministic verification and content assessment into a hard-gated terminal reward:

R(τ)=(1−C(τ))[0.35T(τ)+0.35P(τ)+0.30J(τ)](3)R(\tau) = (1-C(\tau))\left[0.35T(\tau)+0.35P(\tau)+0.30J(\tau)\right] \tag*{(3)}

When C(τ)=0C(\tau)=0, the 70/30 balance between graded execution checks (0.35T(τ)+0.35P(τ))(0.35T(\tau)+0.35P(\tau)) and content quality (0.30J(τ))(0.30J(\tau)) preserves reward discrimination across partially successful rollouts. When C(τ)=1C(\tau)=1, the gate zeroes R(τ)R(\tau) and bypasses content evaluation, ensuring fluent responses never offset state corruption while avoiding unnecessary judge calls. Episodes affected by runtime or snapshot-capture errors are excluded from policy updates rather than assigned fallback scores.

Online Group-Relative Policy Optimization

We optimize policy πθ\pi_\theta directly from the base model using synchronous online GRPO (Shao et al., 2024) without an SFT warm-up stage. For each task, we sample G=8G=8 rollouts from identical copies of s0s_0 and compute a single group-normalized advantage per episode, independent of turn count:

A^i={0,sR=0,Ri−R‾sR+10−6,sR>0,(4)\widehat{A}_i = \begin{cases} 0, & s_R=0,\\ \dfrac{R_i-\overline{R}}{s_R+10^{-6}}, & s_R>0, \end{cases} \tag*{(4)}

where R‾\overline{R} and sRs_R denote the group mean and sample standard deviation of {Ri}i=1G\{R_i\}_{i=1}^{G}. Every policy-generated token in τi\tau_i receives advantage A^i\widehat{A}_i, whereas tool observations and learner turns are masked from the loss (Figure 2, Stage 4). Each optimization step processes four task groups (32 episodes) at a learning rate of 10−610^{-6} for 250 updates, with both KL regularization and entropy coefficients set to zero (Appendix C).

Figure 2. Overview of State-Verified Reinforcement Learning. (1) Each task pairs a learner request qq and an initial workspace s0s_0 with a private verification contract CC specifying target effects, workflow order, and protected state. (2) Policy πθ\pi_\theta samples G=8G=8 isolated rollouts from identical copies of s0s_0 over 16 native tools, recording workspace state snapshots (s0→⋯→sTs_0 \to\cdots\to s_T) around every tool call. (3) A deterministic verifier scores tool effects TiT_i and workflow order PiP_i, and detects critical violations CiC_i via native auto-sync replay; when Ci=0C_i=0, an evidence-grounded judge inspects saved artifacts and tool returns to compute JiJ_i, yielding the hard-gated terminal reward RiR_i. (4) Online GRPO normalizes rewards within each group and updates only policy-generated tokens while masking tool observations and learner turns.

Training Suite and InnoBench

We pair 1,000 verifiable training instances with InnoBench, a human-authored benchmark of 60 tasks operating over the same 16-tool workspace runtime (Table 1).

Task CategoryTrainEvalWt.InteractionPrimary State & Workflow Invariant
Explanation1601016%Single-turnDeliver grounded lesson; preserve profile & mastery
Diagnostic feedback1601016%Follow-upRead history before logging; unique attempt records
Practice creation120712%Single-turnRead sources first; save valid target exercise file
Clarification & planning120712%Clarify (5/7)Elicit goal & budget before writing; keep reminders intact
Practice reuse8058%Follow-upLink existing practice; forbid creating new files
History recall8058%Follow-upCite latest L3 session; no unrequested reminders
Knowledge retrieval8058%Single-turnQuery L2 wiki first; preserve workspace & profile
Document revision6046%Single-turnRead draft first; edit target path, protect other files
Knowledge archival6036%Single-turnRead source before L2 archive; preserve provenance
Profile update4024%Single-turnUpdate requested preferences; keep other fields intact
Scheduling4024%Single-turnApply exact reminder edits; keep other reminders intact
Total1,00060100%320 / 20Shared 16-tool runtime (Math, Prog., Sci., Planning)

Table 1. Taxonomy of the 1,000 verifiable training instances and the 60-task INNOBENCH benchmark. Category weights match training proportions; Interaction reports the number of follow-up tasks (320 in training / 20 in INNOBENCH), and five of seven clarification tasks withhold constraints upfront.

Verifiable Training Suite (1,000 Instances). The training suite comprises 1,000 tasks organized into 396 source groups across 36 topics in mathematics, programming, science, and study planning. Each instance separates public inputs (q,s0)(q,s_0) and scripted learner facts from private verification checks and rule-derived reference answers. To train both multi-turn adaptability and restraint, 320 instances include a fixed learner follow-up, while clarification tasks mix underspecified requests with fully specified prompts that penalize unnecessary questions.

InnoBench (60 Tasks). InnoBench consists of 60 independently authored tasks matching the 11-category training distribution, spanning mathematics (20), programming (16), science (15), and study planning (9), with a worked example in Appendix A. Twenty tasks include fixed learner follow-ups, and five of the seven clarification tasks withhold essential constraints upfront. Three human reviewers inspected all 60 tasks and audited model execution traces. We evaluate the final checkpoint after the fixed 250-update schedule on InnoBench alongside eight unseen external benchmarks.

Evaluation Protocol. Each model runs three trials per task from restored copies of s0s_0 under uniform execution limits (16,384 generated tokens, 24 turns, 30 tool calls, and a 300-second timeout). Strict task success requires S(τ)=1S(\tau)=1 (Equation (2)), using DeepSeek-V4.1-Flash-1017 as the independent content judge. Our primary metric is category-weighted strict success:

Score⁡=∑c=111wc⋅1∣Dc∣∑x∈DcS‾(x),(5)\operatorname{Score} = \sum_{c=1}^{11} w_c \cdot\frac{1}{\lvert D_c \rvert} \sum_{x \in D_c} \overline{S}(x), \tag*{(5)}

where wcw_c denotes the training proportion of category cc, DcD_c its task subset in INNOBENCH, and S‾(x)\overline{S}(x) the three-trial mean strict success on task xx. We additionally report unweighted trial passes (out of 180) and All-3 consistency (tasks passing all three trials, out of 60).

Experiments

Experimental Setup

We compare Qwen3.8-27B against Qwen3.8-27B-SVRL (trained with State-Verified RL), InnoSpark 3.1 (a prior educational model), and five open-weight reference models: GLM-4.7-Flash, Muse Glimmer 30B High, Gemma 4 26B-A4B Thinking, GPT-OSS-20B High, and OmniEdu-27B [9].

All INNOBENCH evaluations use deterministic decoding (temperature 0, top-pp 1) under a unified sandbox runtime, with DeepSeek-V4.1-Flash-1017 serving as the content judge (reasoning mode enabled, 32,768-token budget). We estimate paired 95% confidence intervals between Qwen3.8-27B and Qwen3.8-27B-SVRL via 10,000 stratified within-category bootstrap resamples, keeping each task’s three trials grouped. To assess out-of-domain generalization and non-regression, we evaluate all eight models across eight external benchmarks: AIME 2026, MATH-500 [10], GPQA Diamond (Rein et al., 2024), Olympiad-Bench [7], IFEval (Zhou et al., 2023), IFBench (Pyatkin et al., 2025), BFCL-v4 (Patil et al., 2025), and τ2\tau^2-bench Telecom [1]. Paired differences between Qwen3.8-27B and Qwen3.8-27B-SVRL on these external suites are tested using exact two-sided McNemar tests with Holm correction (Appendix D).

Main Results on InnoBench

Table 2 compares all eight models across nine suites; Table 3 breaks down Qwen3.8-27B vs. Qwen3.8-27B-SVRL on INNOBENCH.

ModelAIMEMATHGPQAOlym.IFEvalIFBenchBFCLτ2\tau^2-Tel.INNOBENCH
Items3050019823654130080011460×3
Open-Weight Reference Models
GLM-4.7-Flash60.0091.4047.4736.4475.7945.3356.3896.4939.21
Muse Glimmer 30B High76.6794.8082.8334.7592.7972.6734.5089.4755.20
Gemma 4 26B-A4B Thinking76.6787.8051.0118.6474.6844.3354.3845.6160.20
GPT-OSS-20B High23.3375.4035.3511.0214.6013.3320.7529.8243.58
OmniEdu-27B86.6798.0079.8050.4283.7354.0049.0060.5351.18
Qwen3.8-27B & Educational Models
Qwen3.8-27B83.3398.0082.8346.6188.5464.6750.8889.4751.47
InnoSpark 3.186.6798.0084.3447.4690.2065.0050.5089.4753.07
Qwen3.8-27B-SVRL (Ours)86.6798.2086.8749.1589.4664.0054.5087.7280.74

Table 2. Comparison of eight models across nine benchmarks (%). Single-response suites use a 32,768-token budget; GPQA denotes GPQA Diamond, Olym. denotes OlympiadBench, IFEval and IFBench use strict prompt-level scoring, BFCL denotes BFCL-v4, τ2\tau^2-Tel. denotes τ2\tau^2-bench Telecom, and INNOBENCH reports category-weighted strict success. Bold values indicate column maxima.

MetricQwen3.8-27B+SVRLΔ\Delta
Weighted strict success (%)51.4780.74+29.27
Strict passes (of 180)92145+53
All-3 consistency (of 60)2342+19
0/3 consistent failures (of 60)216−15
Content pass (judged)169/180168/1790.0 pp
Content-pass-only failures77/16923/168−31.9 pp
Required state failures63/1801/180−34.4 pp
Side-effect failures84/18018/180−36.7 pp
Artifact check failures4/846/84+2.4 pp

Table 3. Paired comparison between Qwen3.8-27B and Qwen3.8-27B-SVRL (+SVRL) on INNOBENCH (60 tasks × 3 trials). The paired 95% bootstrap confidence interval for the category-weighted strict gain is [21.80, 36.64] percentage points. One Qwen3.8-27B-SVRL trial was unjudged after an objective check failure.

Closing Content–State Decoupling. State-Verified RL lifts category-weighted strict success from 51.47% to 80.74% (+29.27 percentage points; paired 95% CI [21.80, 36.64]), increasing strict trial passes from 92/180 to 145/180 and All-3 consistency from 23/60 to 42/60 while reducing zero-pass tasks (0/3) from 21/60 to 6/60. Meanwhile, content pass rates remain virtually unchanged: Qwen3.8-27B passes 169/180 trials (93.9%), and Qwen3.8-27B-SVRL passes 168/179 judged trials (93.9%, as the single unjudged trial already failed an objective diagnostic check). Nearly the entire 29-point gain comes from cutting content-pass-only execution failures from 77/169 (45.6%) to 23/168 (13.7%): Qwen3.8-27B knew what to teach; State-Verified RL teaches what to change.

Cross-Model Positioning. Across all eight models (Table 2), Qwen3.8-27B-SVRL (80.74%) outperforms the strongest external baseline, Gemma 4 26B-A4B Thinking (60.20%), by over 20 points, followed by Muse Glimmer 30B High (55.20%), InnoSpark 3.1 (53.07%), Qwen3.8-27B (51.47%), OmniEdu-27B (51.18%), GPT-OSS-20B High (43.58%), and GLM-4.7-Flash (39.21%). Neither strong tool use nor domain reasoning alone ensures stateful compliance: GLM-4.7-Flash leads both BFCL-v4 (56.38%) and τ2\tau^2bench Telecom (96.49%) yet scores 39.21% on INNOBENCH, while OmniEdu-27B leads OlympiadBench (50.42%) yet matches Qwen3.8-27B on INNOBENCH (51.18%).

Behavioral and Error Analysis

Figure 3 decomposes the 29.27-point gain. Matched by task and trial (Figure 3a), 64 Qwen3.8-27B failures turn into strict passes under Qwen3.8-27B-SVRL against 11 regressions, while 81 trials pass and 24 fail under both models. Required state-check failures drop sharply from 63/180 (35.0%) to 1/180 (0.6%), and side-effect failures fall from 84/180 (46.7%) to 18/180 (10.0%) (Figure 3c), whereas artifact-check failures change only marginally (from 4/84 to 6/84).

Figure 3. Behavioral shift after State-Verified RL on INNOBENCH (60 tasks × 3 trials; Base: Qwen3.8-27B, SVRL: Qwen3.8-27B-SVRL). (a) Matched-trial comparison: 64 Qwen3.8-27B failures flip to strict passes under Qwen3.8-27B-SVRL against 11 regressions (net +53). (b) Three-trial consistency: All-3 tasks rise from 23 to 42 while 0/3 failures fall from 21 to 6. (c) Failure rates by verification check: required state-check failures drop from 63/180 to 1/180, and side-effect failures drop from 84/180 to 18/180.

Across the 11 task categories (Figure 1b; Table 4, Appendix A), four clear patterns emerge: (i) State preservation and non-duplication reach 100%: Explanation (13/30 to 30/30), Practice Reuse (3/15 to 15/15), Knowledge Archival (1/9 to 9/9), and Knowledge Retrieval (13/15 to 15/15). (ii) Prerequisite ordering recovers from zero: Clarification and Planning rises from 0/21 to 16/21 (+76.2 percentage points), and Document Revision improves from 4/12 to 7/12. (iii) Small write-only categories show mild caution: Profile Update and Scheduling (six trials each) dip slightly from 6/6 to 4/6. (iv) Diagnostic feedback stays flat at 12/30 (§ 5.5).

CategoryTasksWeight (%)Qwen3.8-27BQwen3.8-27B-SVRLΔ (pp)
Explanation101613/30 (43.3%)30/30 (100.0%)+56.7
Diagnostic feedback101612/30 (40.0%)12/30 (40.0%)0.0
Practice creation71221/21 (100.0%)20/21 (95.2%)−4.8
Clarification and planning7120/21 (0.0%)16/21 (76.2%)+76.2
Practice reuse583/15 (20.0%)15/15 (100.0%)+80.0
History recall5813/15 (86.7%)13/15 (86.7%)0.0
Knowledge retrieval5813/15 (86.7%)15/15 (100.0%)+13.3
Document revision464/12 (33.3%)7/12 (58.3%)+25.0
Knowledge archival361/9 (11.1%)9/9 (100.0%)+88.9
Profile update246/6 (100.0%)4/6 (66.7%)−33.3
Scheduling246/6 (100.0%)4/6 (66.7%)−33.3
Unweighted total / Weighted score6010092/180 (51.47%)145/180 (80.74%)+29.27

Table 4. Category-level strict pass counts (passes/trials) for Qwen3.8-27B and Qwen3.8-27B-SVRL on INNOBENCH. Each restored task is evaluated over three independent trials.

Training Dynamics, Conciseness, and Generalization

Figure 4a tracks training progression across all 250 online GRPO updates from Qwen3.8-27B. With graded partial credit sustaining intra-group variance from the first update, mean on-policy reward climbs from 0.557 (first 20 updates) to 0.984 (last 20), and training success rises from 44.53% to 94.53%. The three scheduled checkpoints that completed full 180-trial periodic evaluation (under non-reasoning judging) follow the same curve without interpolation: 52.26% (step 10), 78.24% (240), and 80.03% (250; Table 5, Appendix C).

Figure 4. Training dynamics across 250 online GRPO updates and out-of-domain generalization. (a) On-policy reward and training success (raw values and 10-update moving averages) climb steadily from Qwen3.8-27B; diamonds mark the three completed full-suite periodic evaluations without interpolation. (b) Mean per-turn policy response length decreases by 58.3% (from 738 to 308 tokens). (c) Output token change (%) and paired accuracy difference (Δ\Delta score, in percentage points) from Qwen3.8-27B to Qwen3.8-27B-SVRL across eight unseen benchmarks: Qwen3.8-27B-SVRL reduces output tokens by 17–39% on seven suites without capability regression.

UpdatesWeighted (%)Strict (%)Exec. (%)Quality (/100)
1052.2652.2254.4498.02
24078.2478.8982.2295.52
25080.0380.5682.7894.65

Table 5. Completed full-suite periodic evaluations during online GRPO training (60 tasks × 3 trials each, without interpolation). Periodic evaluations use non-reasoning judging, whereas Table 3 reports final results under the unified reasoning-enabled protocol.

State-Verified RL also substantially shortens policy responses: mean per-turn response length falls by 58.3% (from 738 to 308 tokens; Figure 4b). This conciseness transfers out of domain (Figure 4c; Table 8): Qwen3.8-27B-SVRL reduces mean output tokens on seven of the eight unseen benchmarks, including −39.3% on BFCL-v4 (from 4,142 to 2,516), −39.0% on τ2\tau^2-bench Telecom (from 7,058 to 4,304), −27.0% on OlympiadBench, −25.9% on GPQA Diamond, −23.9% on AIME 2026, −20.5% on IFEval, and −17.0% on MATH-500, with only a +2.0% change on IFEval.

BenchmarkPaired NNQwen3.8-27BQwen3.8-27B-SVRLChange (%)
BFCL-v48004,1422,516−39.3%
τ2\tau^{2}-bench Telecom1137,0584,304−39.0%
IFEval5412,3582,404+2.0%
IFBench3008,5066,766−20.5%
AIME 20263016,25412,367−23.9%
MATH-5005001,9421,611−17.0%
GPQA Diamond19810,5617,821−25.9%
OlympiadBench23613,1009,557−27.0%

Table 8. Mean output tokens per task for Qwen3.8-27B and Qwen3.8-27B-SVRL (including unsuccessful items and returned reasoning tokens, excluding user-simulator tokens). On τ2\tau^{2}-bench Telecom, 113 tasks retain complete paired trajectories; success counts include the 114th task whose Qwen3.8-27B failure has no recoverable dialogue.

Crucially, this conciseness comes without capability regression (Table 2): Qwen3.8-27B-SVRL ranks first (or tied) on AIME 2026, MATH-500, and GPQA Diamond (second on OlympiadBench behind OmniEdu-27B) and improves across all four BFCL-v4 subsets (50.88% to 54.50%, unadjusted p=0.021p=0.021; Table 6), while matching Qwen3.8-27B on τ2\tau^2-bench Telecom (100/114 vs. 102/114, p=0.815p=0.815), IFEval, and IFBench (smallest Holmadjusted p=0.172p=0.172; Table 7, Appendix § 10).

BFCL-v4 Multi-Turn SubsetQwen3.8-27BQwen3.8-27B-SVRLΔ\Delta (pp)
Base tasks141/200147/200+3.00
Long context102/200113/200+5.50
Missing function82/20089/200+3.50
Missing parameter82/20087/200+2.50
Combined (4 subsets)407/800 (50.88%)436/800 (54.50%)+3.62

Table 6. BFCL-v4 multi-turn breakdown (200 tasks per subset). Qwen3.8-27B-SVRL improves performance across all four subsets.

BenchmarkQwen3.8-27B onlySVRL only95% CI (Δ\Delta pp)pppHolmp_{\mathrm{Holm}}
BFCL-v4 (N=800N=800)6089[+0.63, +6.63]0.0210.172
τ2\tau^{2}-bench Telecom (N=114N=114)108[−8.77, +5.26]0.8151.000
IFEval (N=541N=541)1722[−1.29, +3.14]0.5221.000
IFBench (N=300N=300)2624[−5.33, +4.00]0.8881.000
AIME 2026 (N=30N=30)12[−6.67, +16.67]1.0001.000
MATH-500 (N=500N=500)34[−0.80, +1.20]1.0001.000
GPQA Diamond (N=198N=198)311[+0.51, +8.08]0.0570.402
OlympiadBench (N=236N=236)1016[−1.69, +6.78]0.3271.000

Table 7. Paired comparison between Qwen3.8-27B and Qwen3.8-27B-SVRL across all eight external benchmarks. Qwen3.8-27B only and SVRL only count discordant items passed exclusively by one model. Confidence intervals use 20,000 paired bootstrap resamples (seed 42); pp denotes exact two-sided McNemar pp-values, and pHolmp_{\mathrm{Holm}} denotes Holm-adjusted values across the eight-benchmark family.

Case Study: Restraint vs. Selective Diagnosis

To understand why Qwen3.8-27B-SVRL reaches 30/30 on Explanation yet remains at 12/30 on Diagnostic Feedback, we examine paired trajectories on a representative diagnostic task (Appendix § 8), in which a student revisits a Python submission that miscounted duplicate elements by using a set. Qwen3.8-27B-SVRL reads the workspace notes, accurately explains why a Python set discards multiplicities, and proceeds to log a learning event and directly update the learner profile. However, because it modifies the profile without first inspecting prior learner context, it triggers profile-mutation and learner-state violations. On the identical trial, InnoSpark 3.1 retrieves prior learner context before logging the event and updating the profile, passing every verification check.

This contrast highlights a structural limitation of episode-level RL. Explanation and reuse tasks reward blanket restraint, which a terminal hard gate teaches rapidly (reducing required state-check failures from 63 to 1), whereas follow-up diagnosis requires selective, context-conditioned edits. Broadcasting a single episode advantage A^i\hat{A}_i uniformly across all turns makes separating grounded inspect-then-update sequences from ungrounded edits harder than suppressing writes.

Conclusion

In persistent tutoring workspaces, delivering clear instruction and maintaining trustworthy learner records are distinct capabilities. We identified and quantified content–state decoupling in stateful tutoring agents—where 45.6% of content-passing trials from Qwen3.8-27B still fail state or workflow verification—and demonstrated that State-Verified RL substantially closes this gap. Through online GRPO supervised by workspace state snapshots, workflow verification, native auto-sync replay, a hard-gated terminal reward, and evidence-grounded content judging, Qwen3.8-27B-SVRL raises category-weighted strict success on INNOBENCH from 51.47% to 80.74%, reduces required state-check failures from 63 to 1 across 180 trials, and cuts output tokens by 17–39% on seven of eight external benchmarks without regressing on general reasoning or tool use. More broadly, our findings show that verifiable state transitions provide a scalable supervision signal for building trustworthy, persistent agents beyond single-turn interaction.

Limitations

While State-Verified RL substantially improves stateful tutoring reliability, our study has several scope boundaries that motivate future work. First, our experiments focus on training the full State-Verified RL objective on a single 27B backbone; systematic ablations across individual reward components (TT, PP, JJ, and CC) and evaluations across broader model scales remain valuable extensions. Second, scripted learners enable controlled, reproducible cross-model comparisons from identical initial workspaces, whereas measuring long-term learning gains requires longitudinal studies with real students. Finally, while episode-level GRPO advantages rapidly instill state preservation and workflow ordering, tasks requiring selective multi-field profile updates (such as diagnostic feedback) may benefit further from finer-grained, turn-level credit assignment.

Ethics and Reproducibility

All training instances and INNOBENCH tasks are constructed with synthetic learner personas, synthetic requests, and restorable sandboxed workspaces, containing no real student data or personally identifiable information. To ensure auditability and reproducibility, each evaluation run logs task identifiers, random seeds, trial indices, tool-call traces, workspace state snapshots, and content-judge outputs; decoding settings, training hyperparameters, and full evaluation details are documented in Appendix C. Generative AI tools were used solely to assist with literature discovery, manuscript editing, and figure preparation; all experimental results and statistical tests were manually verified against the raw evaluation logs.

Task Coverage and a Worked Planning Example

The verifiable training suite contains 1,000 instances drawn from 396 source groups across 36 topics, including 320 instances with a fixed learner follow-up. The 60 INNOBENCH tasks span mathematics (20), programming (16), science (15), and study planning (9), with 20 tasks including a fixed learner follow-up. Among the seven clarification and planning tasks, five withhold essential constraints in the initial prompt and two provide all constraints upfront. Table 4 reports the exact category weights and per-category strict pass counts for Qwen3.8-27B and Qwen3.8-27B-SVRL; categories containing two tasks contribute six trials per model.

Worked Planning Example. A learner asks for a three-day review plan on statistical charts, requests that the agent save the plan to a file, and explicitly prohibits creating reminders. The initial prompt omits both the specific learning goal and the daily time budget. When prompted via either a structured clarification request or a direct natural-language question, the scripted learner specifies that they want to distinguish histograms from bar charts and have 35 minutes per day. The deterministic verifier checks that: (i) the agent elicits both missing constraints before saving the plan, (ii) the saved artifact exists at the target path, (iii) scheduled reminders remain unchanged from s0s_0, and (iv) the planned review is not prematurely logged as completed learning evidence. The content judge independently evaluates whether the saved file addresses the clarified goal and fits within the 35-minute daily budget.

Paired Case Studies

Case 1: Explaining Conditional Probability. Figure 1a summarizes a representative Qwen3.8-27B trajectory on an explanation task. The model reads the instructional materials twice, saves an accurate worked example and self-check handout, and then logs a learning event for concept explanation. The write operation succeeds and triggers native automatic synchronization of the learner profile. Although the content judge awards full credit to the handout, the deterministic verifier flags the resulting knowledge-state mutation because no student submission justified updating the profile.

Case 2: Revisiting a Programming Diagnosis. In a representative diagnostic follow-up task, the learner revisits a previously submitted solution involving Python sets that miscounted duplicate elements. Qwen3.8-27B-SVRL reads the course material, accurately explains why a Python set discards duplicate element frequencies, and proceeds to log a learning event and directly update the learner profile. The verifier flags both profile-mutation and learner-state violations because the edit was performed without consulting prior learner records. On the exact same task and trial, InnoSpark 3.1 retrieves prior learner context before logging the event and updating the profile, passing all required checks. Both trajectories invoke the same two write operations; task success depends on grounding those updates in prior workspace state.

Training and Evaluation Configuration

RL Training Setup. Online GRPO training initializes from Qwen3.8-27B across 8 GPUs (tensor parallelism 4, pipeline parallelism 2, data parallelism 1, with CPU optimizer offloading) using a learner ing rate of 10−610^{-6}, random seed 17, and zero KL-regularization and entropy coefficients. Each of the 250 updates samples four task groups of G=8G=8 episodes (32 trajectories per step). Training rollouts allow a 32,768-token context window, up to 16,384 generated tokens, 40 model calls, and 32 tool calls, with the scripted learner supporting up to four interaction turns. All training rollouts and INNOBENCH evaluations expose the same 16 native workspace tools: file I/O (read, write, edit), learner memory and profiles (get_learner_context, record_learning_event, update_learner_profile, patch_learner_profile, review_learner_profile), knowledge and history retrieval (l2_query, l2_archive, l3_recall), learner clarification (ask_user_question), and reminder management (create_scheduled_job, list_scheduled_jobs, update_scheduled_job, delete_scheduled_job). Episodes with unavailable or invalid reward feedback are excluded from policy updates rather than assigned fallback scores.

InnoBench Evaluation Protocol. All main-text INNOBENCH comparisons are conducted under a unified sandboxed evaluation runtime. Each trial restores the fixed initial workspace s0s_0 and enforces cumulative episode budgets of 16,384 generated tokens, 24 assistant turns, 30 tool calls, and 300 seconds. All models decode deterministically at temperature 0 and top-pp 1 under their native serving configurations. DeepSeek-V4.1-Flash-1017 serves as the content judge with reasoning mode enabled and a 32,768-token request budget. All eight evaluated models use native function calling under this unified interface.

Across all eight models, there are 1,440 distinct model–task–trial records with complete strict outcomes. Twenty-three episodes lack a completed content judgment (six exceeded an execution budget, 13 failed a mandatory objective check, and four timed out), each of which independently constitutes a strict failure. Reported content pass rates exclude unjudged episodes from the denominator: Qwen3.8-27B passes 169/180 judged trials, and Qwen3.8-27B-SVRL passes 168/179 judged trials (its single unjudged trial failed an objective diagnostic check).

Training Dynamics and Periodic Checkpoints. Comparing the first 20 against the last 20 training updates across the 250-step run, mean on-policy episode reward rises from 0.557 to 0.984, logged training success increases from 44.53% to 94.53%, and mean per-turn policy response length decreases from 738 to 308 tokens. Table 5 reports the three completed full-suite periodic evaluations (180 trials each, scored under non-reasoning judging), whereas the final comparisons in Table 2 and Table 3 use the unified reasoning-enabled evaluation protocol.

External Benchmark Protocols and Statistical Tests

Benchmark Protocols. The six single-response benchmarks evaluate one response per item under a 32,768-token generation budget. IFEval (541 prompts) and IFBench (300 prompts) use strict prompt-level scoring; GPQA uses the 198-item Diamond split; OlympiadBench evaluates 236 English text physics problems with full context using the official symbolic grader; AIME 2026 (30 items) and MATH-500 (500 items) use exact mathematical equivalence. Under a fixed generation allowance, failing to terminate within budget yields an empty final answer (for example, GPT-OSS-20B High exhausts the budget on 447/541 IFEval prompts and 239/300 IFBench prompts).

For BFCL-v4, we evaluate 200 tasks from each of four multi-turn subsets (800 tasks in total; Table 6) using official prompts, native checkers, and a 20-step limit. For τ2\tau^2-bench Telecom (114 tasks), all models use native function calling and interact with the same Qwen3.8-27B user simulator under the official environment reward, with limits of 100 steps and 10 tool errors.

Paired Statistical Tests and Token Usage. Each external benchmark evaluates Qwen3.8-27B and Qwen3.8-27B-SVRL on identical items with one attempt per item. Table 7 reports discordant counts, unadjusted 95% percentile intervals from 20,000 paired bootstrap resamples (seed 42), exact two-sided McNemar pp-values, and Holm-adjusted pp-values across the eight-benchmark family. Table 8 reports mean output tokens per task for Qwen3.8-27B and Qwen3.8-27B-SVRL (including reasoning tokens when returned by the serving stack and excluding user-simulator tokens).

References

  1. [1]Victor Barres, Honghua Dong, Soham Ray, Xujie Si, and Karthik Narasimhan. 2025. τ²-Bench: Evaluating conversational agents in a dual-control environment. arXiv preprint arXiv:2506.07982.arxiv.org/abs/2506.07982
  2. [2]Shunian Chen, Rui Yu, Zhengyang Tang, Yuhao Du, Zejian Xie, Songxin Zhang, and Benyou Wang. 2026. Agentic Rubrics: Interfacing agents with heterogeneous environments using executable rubrics. In Proceedings of the 2026 Conference on Empirical Methods in Natural Language Processing. Association for Computational Linguistics.DOI
  3. [3]David Dinucu-Jianu, Jakub Macina, Nico Daheim, Ido Hakimi, Iryna Gurevych, and Mrinmaya Sachan. 2025. From problem-solving to teaching problem-solving: Aligning LLMs with pedagogy using reinforcement learning. In Proceedings of the 2025 Conference on Empirical Methods in Natural Language Processing, pages 272–292. Association for Computational Linguistics.
  4. [4]Jiazhan Feng, Shijue Huang, Xingwei Qu, Ge Zhang, Yujia Qin, Baoquan Zhong, Chengquan Jiang, Jinxin Chi, and Wanjun Zhong. 2026. ReTool: Reinforcement learning for strategic tool use in LLMs. In International Conference on Learning Representations.arxiv.org/abs/2504.11536
  5. [5]Lang Feng, Zhenghai Xue, Tingcong Liu, and Bo An. 2025. Group-in-group policy optimization for LLM agent training. In Advances in Neural Information Processing Systems, volume 38.arxiv.org/abs/2505.10978
  6. [6]Hao Hao, Ye Lu, Ruotong Yang, Yongheng Guo, and Aimin Zhou. 2026. Inno Agent: An open-source personal learning agent with layered memory, educational post-training, and local deployment. Technical report. Project repository.
  7. [7]Chaoqun He, Renjie Luo, Yuzhuo Bai, Shengding Hu, Zhen Thai, Junhao Shen, Jinyi Hu, Xu Han, Yujie Huang, Yuxiang Zhang, Jie Liu, Lei Qi, Zhiyuan Liu, and Maosong Sun. 2024. OlympiadBench: A challenging benchmark for promoting AGI with olympiad-level bilingual multimodal scientific problems. In Proceedings of the 62nd Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pages 3828–3850. Association for Computational Linguistics.
  8. [8]Bowen Jin, Hansi Zeng, Zhenrui Yue, Jinsung Yoon, Sercan Arik, Dong Wang, Hamed Zamani, and Jiawei Han. 2025. Search-R1: Training LLMs to reason and leverage search engines with reinforcement learning. In Conference on Language Modeling.arxiv.org/abs/2503.09516
  9. [9]Hao Liang, Qihan Lin, Meiyi Qiang, Linzhuang Sun, Hengyi Feng, Mingrui Chen, Sizhe Qiu, and Wentao Zhang. 2026. OmniEdu: Open foundation models for learning and teaching. arXiv preprint arXiv:2609.23088.arxiv.org/abs/2609.23088
  10. [10]Hunter Lightman, Vineet Kosaraju, Yura Burda, Harri Edwards, Bowen Baker, Teddy Lee, Jan Leike, John Schulman, Ilya Sutskever, and Karl Cobbe. 2024. Let’s verify step by step. In International Conference on Learning Representations.arxiv.org/abs/2305.20050
  11. [11]Jiayu Liu, Zhenya Huang, Tong Xiao, Jing Sha, Jinze Wu, Qi Liu, Shijin Wang, and Enhong Chen. 2024. SocraticLM: Exploring Socratic personalized teaching with large language models. In Advances in Neural Information Processing Systems, volume 37, pages 85693–85721.DOI
  12. [12]Jakub Macina, Nico Daheim, Sankalan Chowdhury, Tanmay Sinha, Manu Kapur, Iryna Gurevych, and Mrinmaya Sachan. 2023. MathDial: A dialogue tutoring dataset with rich pedagogical properties grounded in math reasoning problems. In Findings of the Association for Computational Linguistics: EMNLP 2023, pages 5602–5621. Association for Computational Linguistics.

Paper details

vlnc:W_hnefe757
Version
v1 · latest
Published
Fresh — added to the Hub within the last 30 days
Added
License
CC BY 4.0
Usage

views · 7

downloads · 0

A view counts once per browser per day, a download each time the PDF is requested.

  • Computer Science

Not recorded for this paper

View statement
Looking for related papers…
Contents