📄 Research Article
VETTING: A dual-LLM framework for in-loop safety verification via policy isolation in educational AI
Synthesis: VETTING: A dual-LLM framework for in-loop safety verification via policy isolation in educational AI
Key Findings
Study Design & Method
Educational AI systems increasingly rely on large language models to support student writing and inquiry, yet enforcing safety and instructional constraints during open-ended, multi-turn interaction remains challenging. Existing approaches commonly embed such constraints within conversational prompts or rely on static filtering; over time these approaches may become sensitive to user interaction, making it difficult to monitor and audit when students are able to circumvent or otherwise attempt to violate the measures. VETTING instead separates response generation from policy verification and applies explicit policy checks at runtime, illustrated through a grounded instantiation that enforces instructional and safety constraints without exposing policy specifications during interaction. The evaluation ran in a middle school classroom during a structured, timed writing activity: 190 students in grades 6–8 were given 45 minutes to write a 500-word essay on the advantages and disadvantages of AI in education, and 151 of them interacted with the chatbot. Every candidate response was checked by the verification layer before release; failed responses triggered an iterative rewrite loop bounded at three attempts before a fallback response was issued. Evaluation combined analysis of student–AI interaction behavior, human audit of verification outcomes against a thematic codebook, characterization of computational overhead, and a retrospective comparison with a single-LLM embedded-policy baseline.
Implications for AI in Education
Policy-isolated runtime verification supports the analysis and management of educational AI behavior under authentic classroom use. Because safety checks are explicit and separate from generation, instructors and developers gain an auditable record of when and how students attempt to violate constraints — and the documented taxonomy of boundary-testing behaviors can inform both system design and classroom guidance. The measured trade-off (a large reduction in inappropriate content exposure for a modest increase in token usage) gives practitioners a concrete cost-benefit estimate for this class of architecture. A retrospective comparison with a single-LLM baseline in which the safety policy was embedded in the system prompt found that 35.3% of the violations intercepted by VETTING would still have produced student-visible responses under embedded prompting — positioning separated runtime verification as a conservative, higher-control design point for high-risk contexts (minors, developmentally sensitive content, or tasks where direct answer provision would undermine the activity) rather than a necessary architecture for every application. For Pedagogical Safety in K 12 settings, VETTING offers a template that complements human oversight rather than replacing it, and its open-source implementation lowers the barrier to adopting verifier-based safeguards in Human In The Loop AI deployments.
Limitations
The authors caution that the taxonomy is exploratory rather than fully validated: categories were developed through collaborative discussion and subsequently applied by a single annotator, so formal inter-rater reliability metrics could not be computed. Recall estimates were derived from a sample-based audit of passed interactions, yielding wide confidence intervals due to the low base rate of violations. The evaluation was conducted within a single middle school writing activity centered on AI in education, which may have influenced both the content of student prompts and the types of violations observed, and it was not designed as a direct empirical comparison against strengthened prompt-based safeguards — the retrospective baseline does not reproduce full live-interaction dynamics.
Connected Concepts
Connected Articles
Citation
Li, H., Zhang, S., & Botelho, A. F. (2026). VETTING: A dual-LLM framework for in-loop safety verification via policy isolation in educational AI.