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

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

Introduction

Generative AI, particularly Large Language Models (LLMs) like GPT-4, has become a cornerstone of modern automated tutoring. These systems are frequently used to provide Socratic-style hints that guide students toward solutions without giving away the answer. To ensure these hints are pedagogically sound, researchers typically rely on expert-designed rubrics that measure correctness, informativeness, and the degree of "concealment" (avoiding direct answers). However, a critical question remains: Do these expert evaluations actually reflect the student experience? This paper investigates the "evaluation gap" between educators and learners and proposes a more student-aware framework for AI feedback.

Study Design and Methodology

The researchers conducted a four-week study within an introductory Python data science course at the University of Michigan, focusing on the use of the pandas library and regular expressions.

The Hint System

The study utilized a hint-generation tool powered by GPT-4. The system operated in two stages: first, it extracted "symbolic information"—such as the difference between a student’s buggy output and the expected fixed version—and then it synthesized a Socratic hint based on that data.

Data Collection

Out of 74 enrolled students, 34 actively engaged with the hint system, resulting in 139 rated interactions. Students categorized hints as either "Helpful" or "Unhelpful" and were encouraged to provide "pre-hint thoughts"—a brief description of what they believed was wrong before receiving assistance.

Expert Benchmarking

Two experienced Python educators independently evaluated the same 139 hints using a standard rubric consisting of four attributes:

  1. Correctness: Is the hint technically accurate?
  2. Informativeness: Does it provide enough context to be useful?
  3. Concealment: Does it avoid giving the answer away?
  4. Comprehensibility: Is the language clear and easy to follow?

The Evaluation Gap: Expert Optimism

The study revealed a significant 34.5% disagreement rate between students and experts. The most prominent trend was "Expert Optimism": in 77% of the cases where ratings diverged, experts rated a hint as high-quality while the student found it unhelpful. This suggests that a hint can satisfy all traditional pedagogical requirements and still fail the learner in practice.

Why Experts and Students Disagree

Through qualitative thematic analysis, the researchers identified four primary reasons for this discrepancy:

  • The Conflict Over Detail: Experts prioritize "Concealment" to encourage pedagogical struggle. However, students often found these hints too vague, desiring more direct assistance to overcome a specific blocker.
  • Ignoring Student Concerns: AI models often focus on the objective bug in the code. However, a student might be confused by the problem description itself. If the AI addresses a technical bug the student wasn't even aware of, the hint fails to resolve the student's actual confusion.
  • The "Goldfish Memory" Problem: When students requested multiple hints in succession, the AI often failed to account for the "trajectory" of the conversation. It would frequently repeat previous advice or ignore the fact that the student had already attempted the suggested fix.
  • Level Mismatch: If a student’s logic is fundamentally flawed or their program is empty, a hint regarding a minor syntax error is perceived as useless noise. The AI often failed to distinguish between high-level logical failures and low-level syntax issues.

Proposed Solutions: Student-Aware Feedback

To bridge this gap, the authors propose an Extended Rubric that moves beyond technical correctness to include:

  • Accounting for student concern: Does the hint address what the student actually asked?
  • Informative given history: Does the hint build upon previous interactions?
  • Tackling overarching bugs: Does it address the root cause rather than symptoms?
  • Guiding based on progress: Is the hint appropriate for the student's current stage in the problem?

Furthermore, the researchers found that by incorporating "pre-hint thoughts" into the GPT-4 prompts, the system could generate hints that were significantly better aligned with student needs, as experts could see the AI responding to the student's specific mental model.

Conclusion and Future Work

While the study is limited by a small sample size and a single-course context, it highlights a vital need for "student-aware" AI. Future research will focus on scaling these findings to larger populations and developing automated ways to integrate student history and thoughts into the AI pipeline. The ultimate goal is to ensure that automated feedback is not just "correct" by expert standards, but truly effective for the students it aims to serve.

Summary updated

BibTeX
@misc{phung2025bridging,
  author = {Tung Phung and Margaret 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