Bridging Gaps Between Student and Expert Evaluations of AI-Generated Programming Hints

Tung Phung, Mengyan Wu, Heeryung Choi, Gustavo Soares, Sumit Gulwani, Adish Singla, Christopher Brooks

TL;DR

AI-generated programming hints often look perfect to expert educators on paper but fail to help students in practice. This study analyzes the root causes of this evaluation gap and proposes an extended rubric alongside context-aware prompting strategies to make automated feedback truly helpful.

What Problem Does This Paper Address?

Generative AI models like GPT-4 are increasingly being used to provide personalized, Socratic hints to students learning to code. To evaluate these systems safely without risking student frustration, researchers typically rely on expert-designed rubrics that check for correctness, informativeness, and clarity.

But do these rubrics actually align with what students find helpful? This paper addresses the critical disconnect between expert evaluation and student perception. The authors focus heavily on "false positives"—scenarios where an LLM-generated hint gets a perfect quality score from educators but a thumbs-down from the student actually trying to solve the problem.

An illustrative example of a mismatch where the expert approved a hint that failed to address the student's actual underlying concern.

Methods

The authors deployed a GPT-4-based hint generation system within a 4-week introductory Python data science course. The baseline system used a standard two-stage approach: first, it extracted symbolic information (such as buggy outputs and a corrected version of the code), and then it generated a Socratic hint using Chain-of-Thought prompting.

The core of the methodology lies in the dual-evaluation setup:

  1. Student Evaluation: Students could voluntarily request hints while working in JupyterLab and rate them as Helpful or Unhelpful. They could also optionally log their "pre-hint thoughts."
  2. Expert Evaluation: Two expert educators independently reviewed the generated hints using a standard rubric covering four binary attributes: Correct, Informative, Conceal (not giving away the answer), and Comprehensible.

After identifying significant mismatches, the authors designed an extended rubric adding four new context-driven attributes (Accounting for student's concern, Informative given history, Tackling overarching bug, and Guiding) and proposed corresponding prompt adjustments to inject student context and interaction history back into the LLM.

Datasets

The study collected real-world interaction data from 74 students enrolled in an online Master’s program course at the University of Michigan.

  • 34 students actively interacted with the system.
  • The deployment yielded a dataset of 158 generated hints, 139 of which received explicit helpful/unhelpful ratings from students.

Key Insights and Ideas

  • Code Alone Isn't Enough Context: An LLM looking only at a student's buggy code might fix a minor syntax error or file path issue, while the student is actually struggling with a high-level conceptual misunderstanding (e.g., how to merge multiple Excel sheets).
  • The "Memoryless" Hint Problem: When students ask for multiple hints sequentially, standard LLM pipelines treat each request in isolation. This leads to the AI repeating the same advice and completely ignoring the student's problem-solving trajectory.
  • Pedagogical vs. Practical Goals: A significant portion of mismatches stems from a clash of objectives. Students often want direct, explicit code blocks to get past a hurdle, whereas expert rubrics praise Socratic, conceptual guidance that forces the student to think—even if it leaves the student feeling unsupported.

Key Results

  • High Disagreement Rate: Students and experts disagreed on hint quality in 34.5% of cases (48 out of 139 hints).
  • Expert Over-Optimism: The vast majority of these disagreements (77%) occurred because experts rated a hint as high-quality, but the student found it unhelpful.
Table 1: RQ1: Comparison of students’ and experts’ ratings.
  • Mismatch Breakdown: Among the 37 over-optimistic expert ratings, the primary reasons were mismatches in pedagogical objectives (27.0%), failure to address the student's specific concern (21.6%), and ignoring the student's multi-hint trajectory (10.8%).

Limitations and Future Work

  • Sample Size and Diversity: The study is limited to 34 active students in a single introductory Python course, which constrains how well these findings generalize to other languages or student demographics.
  • Evaluating the Extended Rubric: While the authors' extended rubric successfully flags the unhelpful hints that the original rubric missed, it still needs to be evaluated on cases where students and experts already agreed to ensure it doesn't introduce false negatives.
  • Automation Gap: The proposed prompt adjustments (like incorporating user intent and history) were evaluated manually in this paper. Future work must focus on building an automated mechanism to dynamically inject student thoughts and interaction history into LLM prompts in real-time.

Summary updated

BibTeX
@misc{phung2025bridging,
  author = {Tung Phung and Mengyan Wu and Heeryung Choi and Gustavo Soares and Sumit Gulwani and Adish Singla and Christopher Brooks},
  title = {{Bridging Gaps Between Student and Expert Evaluations of AI-Generated Programming Hints}},
  year = {2025},
  eprint = {2509.03269},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2509.03269},
}
Figure