cs.CYSep 15, 2026

Finding Common Mistakes In Modelling With Mathematical Formalisms Using LLMs

Authors: Lilian Killich, Marko Schmellenkamp, Fabian Vehlken, Thomas Zeume

Organizations: Ruhr University Bochum Bochum, Germany

Abstract

Modelling with mathematical formalisms like logical formulas, mathematical equations, or regular expressions is an important yet challenging task for students of computer science and other STEM disciplines. Identifying common mistakes occurring in this context is an important step towards helping struggling students by providing targeted high-quality feedback, e.g. in interactive learning systems. We present a tool-supported workflow that allows to (1) identify candidates for common mistakes that explain many student mistakes in large educational data sets, (2) cluster candidates according to similarities, and (3) visualize resulting clusters for instructors and CS education researchers. The visualization is designed to help researchers to identify common modelling mistakes. The candidates for common mistakes are represented by bug fixing transformations that translate incorrect formalizations into correct formalizations; they are generated by an LLM and validated algorithmically. We show that this approach works well by reproducing common mistakes in propositional logic modelling that were identified by hand in the literature; showing that, unlike other algorithmic approaches, the LLM-based approach is suitable for very large sets of data; and applying it to multiple other formalisms to showcase it generalizes beyond propositional logic.

Figures & tables

Appendix figures & tables38 assets

Supplementary material from the paper’s appendix.

Appendix

Explore similar work

CardsList
  1. Can LLMs Model Incorrect Student Reasoning? A Case Study on Distractor Generation

    Mar 16, 2026Yanick Zengaffinen, Andreas Opedal, Donya Rooein +3LLM PromptingGenerative AI in Education

  2. Correct Diagnosis, Better Feedback: A Symbolic-Verifier for Faithful LLM Tutoring Feedback in Logic Proofs

    Sep 18, 2026Tahreem Yasir, Arnav Mody, Xioayi Tian +1Intelligent Tutoring SystemsLanguage Model Error Detection