Objective

Generative AI tools can now write working code. That creates a problem for programming teachers: if a student hands in correct code, how do you know what the student actually understands? Many automated grading systems check only whether the code runs and passes test cases. Instructors usually look at more, such as how clearly the student explains the logic.

The authors proposed a three-part grading model and wanted to see how well it matched human grading. A large language model (LLM) is the kind of AI behind chatbots such as ChatGPT. The study asked two things:

  • How closely do scores from three LLMs (GPT, Claude and Gemini) match instructor scores when the rubric looks only at whether the code works?
  • Does a rubric that also scores the quality of the student's written explanation and the level of AI use bring the model scores closer to the instructors' scores?

The authors treat AI use as something to measure openly in the grade, not as something to hide or ban.

Methods

This was a two-phase comparison on the same student work. It can show how closely model scores track instructor scores, but it cannot show whether either one is the right grade.

The study involved 187 undergraduate students in their first to fourth years at three universities in Kazakhstan, in Physics-Informatics, Informatics and Information Systems programs. Students did programming assignments in ordinary courses and were encouraged to use generative AI as a learning helper. Two task sets were used, each with three levels of difficulty, and each was given to a different course group. For each task, students submitted their code, a written explanation of their logic and, if they wished, the prompts or chat link they used with AI. Submissions went through a Google Colab notebook into a Google Sheets database.

Three programming instructors graded the work, each for their own group, using one holistic score from 0 to 100. Each submission was graded by one instructor only. The same submissions were then scored by ChatGPT (GPT-5.2), Claude (Claude Opus 4.5) and Gemini (Gemini 3), used through their public web interfaces, once per model per condition.

In Phase 1 the rubric looked only at whether the code worked. In Phase 2 the rubric had three parts: functional correctness, explanation quality and level of AI use. The weights came from a survey of 31 programming instructors: 36.26% for correctness, 36.41% for explanation and 27.33% for AI use.

The authors compared model and instructor scores with correlations, mean absolute error (the average size of the gap in points) and mean difference, and tested changes between phases with statistical tests that suit paired data. The paper says routine coursework was treated as ordinary teaching, so ethics approval was not required, and participants gave written consent.

Key Findings

Overall, the richer rubric helped, but only for some models, and agreement with instructors stayed moderate.

Phase 1: code correctness only

  • All three models rose and fell with instructor scores to a moderate degree. Pearson correlations were 0.575 for GPT, 0.478 for Claude and 0.579 for Gemini.
  • All three gave higher scores than instructors, on average by 10.02 points (GPT), 15.67 points (Claude) and about 13 points (Gemini).
  • Average error was 13.72 points for GPT, 18.32 for Claude and 16.12 for Gemini.

Phase 2: correctness, explanation and AI use

  • Claude improved on every measure. The correlation rose from 0.478 to 0.647, the rank-based correlation from 0.449 to 0.690, and average error fell from 18.32 to 7.34 points. The authors tested this change and called it statistically significant.
  • Gemini kept about the same correlations (0.579 to 0.602) but its average error fell from 16.12 to 11.44 points, a significant drop.
  • GPT showed no significant change on any measure. Its correlation went from 0.575 to 0.608 and its error from 13.72 to 12.87 points. Its bias flipped direction: it gave 10.02 points too many on average before and 11.63 points too few after. The authors say the flip moved its bias around rather than fixing it.

How good was the best result?

Claude's 0.647 correlation means about 42% of the variation in instructor scores is shared with the model. The authors say this is moderate. An average error of 7.34 points on a 100-point scale could still push a student over a grade boundary.

A worked example

One student had working code but thin explanations and no AI record. The baseline rubric gave 98 points and the instructor gave 70. The three-part rubric gave about 71 points, close to the instructor.

Other observations

  • Students with correct code but little written reasoning got lower scores under the new rubric.
  • 38.0% of students gave no usable AI-use record, so the AI-use score for them reflects missing paperwork rather than a measured level of AI help.

Implications

What the authors say

  • Assessment in AI-supported courses should look at explanation and at how AI was used, not just at whether code runs.
  • A richer rubric does not help every model equally, so each model should be checked against instructor judgment before its scores are used.
  • Because agreement stayed moderate, an instructor should confirm or revise AI scores. The authors see the realistic role of such a system as triage, giving a first score and a written reason for an instructor to review.

For teachers and course leaders

If you ask students to submit a short explanation of their reasoning along with code, you gain evidence that is harder to get from a chatbot alone. If you ask them to share their prompts, make that step required, since the study shows optional records leave gaps.

For developers and researchers

Test a rubric on each model separately. The same rubric made one model much closer to instructors and left another unchanged.

Our reading (not the authors' recommendation): any school thinking about using a chatbot to produce grades should treat the scores as a draft and keep a person responsible for final marks, since even the best model here missed by about 7 points on average.

Our reading (not the authors' recommendation): the AI-use score should not be used to judge students until records are collected for everyone.

Limitations

The authors state several weaknesses, and a reader should keep them in mind.

  • One grader per paper. Each submission was scored by a single instructor, so the reliability of the instructor scores is unknown. Differences between course groups may partly reflect individual grading habits.
  • Instructors scored holistically. They gave one overall score, so the explanation and AI-use parts were never rated by people, and no agreement can be computed for them.
  • Hard to repeat. The models were used through public web pages that change over time, and each paper was scored only once per model, so some of the results could be chance.
  • Missing AI records. 38.0% of students supplied no usable record of AI use, and the rubric treats a missing record like minimal AI use.
  • Two different task sets. The two course groups did different tasks and their agreement figures differed, so the pooled numbers do not describe one single group.
  • Scales not formally validated. The descriptions of explanation and AI-use levels came from literature and expert ratings, without a separate validation study.

The paper does not mention, but the study was done in Kazakhstan with undergraduates, so the results may not carry over to other places or levels.

The paper does not mention, but the work was done by the same team that designed the rubric, which can make a new model look better than an independent test might.

Future Directions

The authors suggest these next steps:

  • Have two instructors score a sample of work independently, to learn how reliable the instructor scores are and how much agreement is even possible.
  • Run the models through an API with fixed versions and repeated scoring runs, to see how stable the results are.
  • Make the AI-use record required, or collect it from process data such as version history, so the AI-use score measures something real.
  • Have trained raters apply the explanation and AI-use scales independently, and check how well they agree.
  • Test the model in other subjects, with larger groups and with other language models, and add oral questioning.
  • Look at long-term effects on learning and academic integrity.

One open question is whether the explanation and AI-use records reflect how students plan and review their own work. The authors say the study cannot answer it.

The bottom line: In this study of 187 programming students, a rubric that scored explanation and AI use as well as working code brought Claude's grades much closer to instructors', helped Gemini only in the size of its errors and did not help GPT. Even the best model agreed with instructors only moderately, and instructors were single graders. Treat AI grading as a first draft that a teacher checks, test each tool on your own course, and collect AI-use records from every student before relying on that part of the score.