Automated Feedback Generation for Undergraduate Mathematics: Development and Evaluation of an AI Teaching Assistant
Aron Gohr, Marie-Amelie Lawn, Kevin Gao, Inigo Serjeant, Stephen Heslip
TL;DR
The paper addresses the challenge of providing scalable, high-quality feedback on undergraduate mathematical proofs. It presents a modular AI teaching assistant built around large language models that processes free-form inputs, decomposes feedback tasks into configurable steps, and integrates with Lambdafeedback to deliver real-time guidance. Through new datasets and stress-testing, the authors demonstrate that, with appropriate configuration and a strong model, AI-generated feedback can approach human expert quality for early undergraduate work and reveal gaps under more challenging tasks. They also share lessons learned on prompting, data augmentation, and platform integration, offering practical guidance for deploying AI tutors in real mathematics education settings. The work has practical implications for scalability, equity, and the pedagogy of mathematical writing, while outlining future directions such as combining with formal tools and improving evaluation of feedback quality.
Abstract
Intelligent tutoring systems have long enabled automated immediate feedback on student work when it is presented in a tightly structured format and when problems are very constrained, but reliably assessing free-form mathematical reasoning remains challenging. We present a system that processes free-form natural language input, handles a wide range of edge cases, and comments competently not only on the technical correctness of submitted proofs, but also on style and presentation issues. We discuss the advantages and disadvantages of various approaches to the evaluation of such a system, and show that by the metrics we evaluate, the quality of the feedback generated is comparable to that produced by human experts when assessing early undergraduate homework. We stress-test our system with a small set of more advanced and unusual questions, and report both significant gaps and encouraging successes in that more challenging setting. Our system uses large language models in a modular workflow. The workflow configuration is human-readable and editable without programming knowledge, and allows some intermediate steps to be precomputed or injected by the instructor. A version of our tool is deployed on the Imperial mathematics homework platform Lambdafeedback. We report also on the integration of our tool into this platform.
