TRANSMISSION // 2611.28565v1

Can AI Grade the Whole Story in a Student Notebook?

Source published

A notebook autograder follows students’ choices across linked questions and reads code, writing, numbers and plots. Early results are promising, but stability and human review remain essential.

AI-generated conceptual illustration for Can AI Grade the Whole Story in a Student Notebook?
AI-generated conceptual illustration; not documentary evidence.

A student may choose one valid approach, build on it in later steps and reach a sound conclusion that differs from the answer key. A new LLM-based system aims to grade that whole chain—not just isolated cells—while keeping instructors involved.

A Jupyter notebook can show more than whether a piece of code runs. A submitted notebook may bring together a student’s choices, calculations, plots and explanations. Grading this work can be difficult: a later answer may be correct only in light of an earlier choice, and several different approaches may be reasonable.

In Beyond Unit Tests: Path-Aware Rubric-Guided LLM Autograding of Notebooks, Salman Hajizada, Mohammed Yusuf Ansari and Gianni Di Caro describe a system designed for linked assignments. Their practical question is whether a language model can help grade notebook work without requiring every student to follow the instructor’s exact solution.

Following a student’s choices

The system starts with an instructor’s reference solution and uses a language model to draft a rubric. A second step, called “softening,” generalizes criteria that are too closely tied to that reference. If the example solution removes one data feature or uses a particular preprocessing method, the rubric can be adjusted to allow other defensible choices.

The instructor reviews and can edit the rubric before grading. The system then groups related questions into a single model call, so a later answer can be assessed in the context of the student’s earlier work. In the paper’s example, a student chooses a feature to remove, retrains a model, and interprets the results. That interpretation should be judged against the feature the student actually removed, not a fixed answer key.

The system gathers evidence from notebook text, code, captured outputs and figures. Question-type labels indicate what evidence to expect, such as an explanation, plot or specific value. The model returns a score, feedback, a confidence label and a flag for work needing review. Instructors inspect results and may edit or regrade them before releasing grades. The tool was integrated with Gradescope and included notebook-format checks and defenses against prompt injection: attempts to manipulate a model through text in a submission.

What the evaluation found

The researchers tested the tool in a machine-learning course and on archived work from earlier terms. The live deployment covered four assessments in a course with 24 students. For comparison with staff grades, they regraded 171 archived submissions across nine lab assessments.

Repeatability differed substantially among the tested models. When the same 23 students’ HW1 submissions were graded five times, one model produced identical total scores in 65.2% of cases; another did so in 13.0%. In these tested models, the pattern tracked whether they supported very low-temperature inference. The authors caution against assuming that a model will grade consistently without testing its stability.

Agreement results were encouraging but limited. In a comparison involving five HW1 submissions and 130 paired question scores, the system’s scores were at least as close to each of two instructors’ scores as those instructors were to one another. The authors stress that this small, nested comparison does not show the system is superior to human graders. Across archived lab totals, correlations with staff scores were often strong, but varied between assessments.

The prompt-injection test also showed model-dependent results. In the synthetic test, no attack family increased scores from one tested model, gpt-4.1. For gpt-4.1-mini, all six attack families increased scores on one targeted question, by an average of 1.00 point. The system was designed to constrain outputs to a schema and keep scores within valid limits. Those safeguards do not ensure that the grading judgment itself is correct.

Promise, with conditions

The authors describe the system as workable for small-class deployment with a carefully reviewed rubric and instructor review before grades reach students. Their findings also underscore the importance of checking a model’s stability and resistance to manipulation. The association between low-temperature support and repeatability applies to the models tested; it is not a guarantee. Open-ended interpretation questions remained especially challenging because a rubric cannot list every valid response.

Survey averages were favorable, but only seven students responded—too few to represent the class reliably. No regrade requests were received, an observation the authors describe as anecdotal.

The study was conducted at one site, in one course and with one instructor team. Tests covered four models from one provider, and the agreement analyses combine different assignments and grading contexts. Whether the approach generalizes across institutions, providers or larger classes remains open.

The source is an arXiv preprint. Its paper text states that it was accepted for publication at IEEE TALE 2026, but the supplied record does not independently verify that status. The findings are best read as a context-specific evaluation, not proof that AI grading can replace instructors. The narrower takeaway is that models may assist with complex notebook grading when they consider a student’s linked answers and instructors remain responsible for reviewing grades.

Automatically matched by shared topic keywords. These links do not imply that the sources agree or establish a consensus.