This study presents the first large-scale, side-by-side comparison of contemporary Large Language Models (LLMs) in the automated grading of programming assignments. Drawing on over 6000 student submissions collected across four years of an introductory programming course, the study systematically analyzed grade distributions, differences in mean scores and variability reflecting stricter or more lenient grading, and the consistency and clustering of grading patterns across models. Eighteen publicly available models were evaluated: Anthropic (claude-3-5-haiku, claude-opus-4-1, claude-sonnet-4), DeepSeek (deepseek-chat, deepseek-reasoner), Google (gemini-2.0-flash-lite, gemini-2.0-flash, gemini-2.5-flash-lite, gemini-2.5-flash, gemini-2.5-pro), and OpenAI (gpt-4.1-mini, gpt-4.1-nano, gpt-4.1, gpt-4o-mini, gpt-4o, gpt-5-mini, gpt-5-nano, gpt-5). Statistical analyses, including correlation, agreement, and clustering methods, revealed clear and systematic differences in grading behavior across models. Distinct grading patterns emerged, ranging from more lenient to more restrictive evaluation styles, while models from the same vendor tended to cluster together, suggesting shared algorithmic approaches to code assessment. Full-scale models consistently outperformed their smaller “mini” and “nano” counterparts. Despite strong internal agreement among models, alignment with human teachers’ grades remained limited: even the best-performing model achieved only moderate reliability. These findings indicate that the choice of LLM for educational deployment is not neutral and may substantially influence grading outcomes. The results highlight the importance of careful model selection, transparent reporting of evaluation metrics, and a human-in-the-loop approach when integrating AI-based grading systems in educational contexts. • Large-scale comparison of 18 LLMs from four vendors for grading. • Analysis of 6000+ student solutions from four years of courses. • Models differ: some lenient, some strict, others give mid scores. • Vendor clustering shows similar grading styles within providers. • Human agreement is moderate, limiting full grading automation.
Marcin Jukiewicz (Mon,) studied this question.