Combining Formal Reasoning and LLMs for Scenario-Based Educational STEM Exercises
Abstract Large language models (LLMs) enable scalable generation of educational exercises for science, technology, engineering, and mathematics (STEM) but often produce mathematically invalid or physically inconsistent problems, while manual authoring remains accurate but hard to scale. This paper introduces a neuro-symbolic framework for scenario-based educational STEM exercises, demonstrated through applications in introductory thermodynamics. We encode domain knowledge in first-order logic and use a satisfiability-modulo-theories (SMT) solver to enumerate all physically and pedagogically admissible exercise scenarios. We derive scenario-based knowledge graphs and employ symbolic reasoning to select solution paths and assign consistent numerical values before using an LLM solely for natural-language realization. In our case study, the framework reduces 512 naive attribute combinations to 12 valid thermodynamic scenarios and generates correct, solvable exercises per scenario with diverse solution paths. Compared to direct LLM-based generation, in which roughly half of the generated exercises were physically invalid or implausible, our pipeline avoids such inconsistencies by design. This suggests that scenario-centric approaches provide a promising foundation for transparent, human-centric AI in STEM education.
Authors
- Daniel Neider (ORCID: https://orcid.org/0000-0001-9276-6342)
- Luisa Vollmer (ORCID: https://orcid.org/0009-0007-6698-9578)
- Heike Leitte (ORCID: https://orcid.org/0000-0002-7112-2190)
- Rébecca Loubet
- Hans Hasse
Institutions
- University of Kaiserslautern (DE)
- TU Dortmund University (DE)
- University of Applied Sciences Kaiserslautern (DE)
Publication Details
- Journal
- Human-Centric Intelligent Systems
- Published
- 2026-09-10
- DOI
- https://doi.org/10.1007/s44230-026-00174-1
- Primary Topic
- Intelligent Tutoring Systems and Adaptive Learning
- Type
- article
- Field-Weighted Citation Impact
- 0.00