On this page

Synthesis: Singh and colleagues randomized 97 graduate students in an online data science course to one of three ways of writing hints for incorrect code: alone, with an on-demand GPT-4 hint, or with the AI hint deferred until after a first independent attempt. Deferring produced the highest-quality hints (coefficient 1.096, SE = 0.37, p = 0.003 against the no-AI baseline) and the best coverage of mistakes, while on-demand access fell between the two and was only marginally better than working alone in pairwise comparison. Deferred students also spent more than twice as long on the first assignment. Post-test scores did not differ significantly, so the case rests on artifact quality and visible metacognitive work, not test gains. The design makes the timing of scaffold removal, rather than the presence of AI, the variable that protects effortful processing.

Key Findings

  1. Deferral produced the best hints. In a linear mixed-effects model, the deferred condition scored 1.096 above Baseline (SE = 0.37, p = 0.003) and the on-demand condition scored 0.75 above it (SE = 0.34, p = 0.03); Tukey comparisons put deferred against Baseline at p = 0.01 and on-demand against Baseline at p = 0.08.
  2. The advantage sat in finding mistakes. On the rubric's Level 1 score, which covers identifying errors and excluding extraneous information, deferred beat Baseline (p = 0.03); neither of the other two pairwise comparisons was significant.
  3. Baseline hints often named no error at all. Around 45% of hints from the Baseline condition did not identify any of the mistakes in the incorrect solution, against 12.5% in the deferred condition and 25% in the on-demand condition.
  4. Deferral cost time, at first. Week 1 median time on task was 27.68 minutes in the deferred condition against 11.13 for Baseline and 11.60 for on-demand, an ANOVA difference at p = 0.02; by Week 2 the medians were 12.73, 10.12 and 10.30 and the difference was gone (p = 0.35).
  5. Learning outcomes did not separate. After propensity matching to 55 students with comparable pre-test scores, post-test means were 5.70 for Baseline, 4.75 for on-demand and 5.67 for deferred, with an ANOVA p = 0.18.
  6. AI hints pulled revisions both ways. Around 52% of students in the deferred condition improved their hint, 32% showed no major difference between drafts, and 39% made at least one revision that lowered quality, including hints that disclosed the full solution or added redundant information.
  7. Students missed what the AI missed. Both AI conditions struggled to identify mistakes absent from the GPT hint, including trivial ones such as rounding the output to 5 decimal places; in the on-demand condition about 20% never opened the hint and 17% appeared to disregard it after viewing.

What the study did

The study ran in the September 2023 offering of a four-week online graduate Data Manipulation course at the University of Michigan. Of 101 enrolled students (mean age 30.94, SD = 8.60), 97 completed the first hint-writing activity and 95 the second. Students were randomly assigned to Baseline, AI-assistance or Deferred AI-assistance and completed one activity in Week 1 and one in Week 2, immediately after the deadlines of the second and third programming assignments.

Each activity showed the student a correct solution and an incorrect solution side by side. The correct solution was the student's own submission if it was correct, otherwise the instructor's. The incorrect solution was selected from a repository of 12 and 13 unique wrong submissions from earlier offerings, using a Jaccard similarity over imported libraries and built-in functions extracted from each program's abstract syntax tree. The student then wrote a hint that would help someone fix the incorrect program without revealing the answer.

The conditions differed only in when a GPT-4 hint appeared. Baseline students wrote alone. On-demand students could click "Show ChatGPT Hint" at any point. Deferred students wrote a first hint, then saw the GPT hint, compared it with their own, and revised. Both AI conditions were told the hint could be incorrect or incomplete and that validating it was their responsibility. Hints were generated zero-shot so that quality varied, and 25 GPT hints were produced across the two assignments. Completion alone earned 5% of the course grade.

Hint quality was scored with a two-level rubric covering accuracy, specificity, phrasing, extraneous information and redundancy. Scores ran from -6 to 1 and were mapped to 1–7; two authors reached 0.78 Cohen's Kappa on a 15% sample before the first author rated the rest. Learning was measured with a ten-item pre-test and a post-test worth 10 points that mixed single-answer and multi-answer items on data manipulation and debugging. The pre- and post-tests were not isomorphic, so the analysis compared post-test scores while controlling for prior knowledge.

Why deferral helped, and where it hurt

The design follows the assistance dilemma: help early enough to prevent frustration, late enough that the learner has to diagnose the problem. In the deferred condition the AI arrived after the student had committed to a reading of the bug, so it functioned as a second opinion to be checked rather than a first draft to be accepted. That reading fits the time data. Deferred students spent more than twice as long as the other groups in Week 1, beyond the roughly double time that writing two hints would predict, and they were the group most likely to identify mistakes. The paper's interpretation is that the extra time reflects productive struggle and comparison rather than confusion.

The same mandatory comparison appears to have cost something. Deferred students were more likely than on-demand students to absorb the GPT hint's faults (39% against 17%), and the damage was concentrated in communication rather than coverage: revised hints that gave away the solution, repeated the hint, or added unnecessary detail. The authors attribute this to cognitive load. On-demand students could ignore the hint; deferred students were instructed to revise against it, which made its verbosity harder to resist.

The perception data run against the quality data. Baseline students were the most willing to do the activity again and rated it most useful for practicing debugging, while deferred students rated it least useful for practicing data manipulation. The authors read this as unfamiliarity and effort aversion rather than a verdict on learning, and note that the study ran in 2023, when both the models and students' AI experience were weaker. The paper is an arXiv preprint (2604.19931v1, 21 Apr 2026) and reports no delayed post-test.

What this means for practice

  • Instructors: require a first attempt before revealing an AI hint, and make the comparison explicit. The staged version produced better hints than either working alone or opening the hint at will.
  • Designers: build the reveal as a sequence with stored drafts (write, compare, revise) rather than a single help button, and expect some students to import the model's verbosity into the revision.
  • Researchers: hint quality is scorable at scale with a rubric, but the learning-outcome question needs a larger sample than the 55 matched students here, and a post-test that students actually complete.
  • Administrators: the personalization pipeline is automatable, since it pairs each student's own solution with a similar wrong one from a stored repository, which makes the activity feasible in courses far larger than 97.

Limitations

The study is one course at one institution, with two assignments and a single model generation from 2023. Only 62 of 97 students completed the post-test, and propensity matching left 55, so the null learning result is a power problem as much as a finding. Time on task was not modeled as a covariate, which leaves open how much of the hint-quality advantage is design and how much is simply more minutes. The quality of the GPT hints was not varied systematically, so the paper cannot say how much of the revision damage came from bad hints versus compliant students. Students received no feedback on their hints, and nothing here tests whether the habit of writing a draft before consulting AI persists into other courses.

Citation

Singh, A., Brooks, C., Li, W., Kim, J., & Wang, X. (2026). Hint-Writing with Deferred AI Assistance: Fostering Critical Engagement in Data Science Education. arXiv preprint.

Embed this page

Copy the code below to embed this page in a learning management system or other website. The embedded version shows only the page content — it hides the site header, navigation, and footer.