Limitations and Failures of Large Language Model Based Code Grading Systems
Abstract
Recent advances in large language models (LLMs) have introduced new opportunities for automating the assessment of student work in computer science education. While these systems demonstrate promising consistency on structured programming tasks, their behaviour under realistic classroom conditions reveals recurring interpretive limitations. Building on our previous benchmarking study across four model families (GPT, Qwen, LLaMA, and DeepSeek), this paper examines the sources of inconsistency, overfitting, and bias that emerge when LLMs are used as code graders. We focus on qualitative aspects of model behaviour, such as prompt sensitivity, rigidity in interpretation, and the loss of pedagogical nuance, to reveal how grading reliability depends on behavioural stability and not only on numeric performance. The study identifies common failure modes, including hallucinated feedback, overly strict rubric adherence, and response carryover, highlighting their implications for fairness and interpretability. The findings emphasize the need for hybrid human–AI grading workflows that combine the scalability of automated systems with the contextual awareness of human evaluation.
© 2026 Lukáš Tomaščík, Nikola Tomaščíková, Marek Horváth, Norbert Ádám, published by Technical University of Košice
This work is licensed under the Creative Commons Attribution 4.0 License.
