CoChat

Howzat? Appealing to Expert Judgement for Evaluating Human and AI Next-Step Hints for Novice Programmers

Open access
Brown, Neil C. C., Weill-Tessier, Pierre, Leinonen, Juho, Denny, Paul, Kölling, Michael · 2025 · ACM Transactions on Computing Education

The DOI matches its Crossref record; 33 of the 33 references it cites were found in a registry or an index.

Abstract

Motivation : Students learning to program often reach states where they are stuck and can make no forward progress—but this may be outside the classroom where no instructor is available to help. In this situation, an automatically generated next-step hint can help them make forward progress and support their learning. It is important to know what makes a good hint or a bad hint, and how to generate good hints automatically in novice programming tools, for example, using large language models (LLMs). Method and Participants : We recruited 44 Java educators from around the world to participate in an online study. We used a set of real student code states as hint-generation scenarios. Participants used a technique known as comparative judgement to rank a set of candidate next-step Java hints, which were generated by LLMs and by five human experienced educators. Participants ranked the hints without being told how they were generated. The hints were generated with no explicit detail given to the LLMs/humans on what the target task was. Participants then filled in a survey with follow-up questions. The ranks of the hints were analysed against a set of extracted hint characteristics using a random forest approach. Findings : We found that LLMs had considerable variation in generating high quality next-step hints for programming novices, with GPT-4 outperforming other models tested. When used with a well-designed prompt, GPT-4 outperformed human experts in generating pedagogically valuable hints. A multi-stage prompt was the most effective LLM prompt. According to a fitted random forest model, the two most important factors of a good hint were length (80–160 words being best) and reading level (US grade nine or below being best). Offering alternative approaches to solving the problem was considered bad, and we found no effect of sentiment. Conclusions : Automatic generation of these hints is immediately viable, given that LLMs outperformed humans—even when the students’ task is unknown. Hint length and reading level were more important than several pedagogical features of hints. The fact that it took a group of experts several rounds of experimentation and refinement to design a prompt that achieves this outcome suggests that students on their own are unlikely to be able to produce the same benefit. The prompting task, therefore, should be embedded in an expert-designed tool.

Overview

The claims and statistics of this paper haven’t been checked yet.

Free: it reads the open-access text and checks the first 5 claims that cite a source we can check. Create a free account to check every claim.

A few free checks a day · papers already verified open instantly · results are public

Integrity signals

Registry

Crossref · 10.1145/3737885

Cites

33 of 33 references verified0 citation errors · 0 not checkable

Statistics

Verification

Claims the paper makes

The claims and statistics of this paper haven’t been checked yet.

Free: it reads the open-access text and checks the first 5 claims that cite a source we can check. Create a free account to check every claim.

A few free checks a day · papers already verified open instantly · results are public

Self-check

Percentages, sums and reported differences re-computed from the paper’s own numbers.

The self-check needs the paper’s full text.

Citations

Cites

Research works printed but not linked: 68

  1. 10.1145/2787622.2787717 · DOI · Paper page
  2. 10.1145/3377814.3381703 · DOI · Paper page
  3. 10.1007/s40593-015-0089-1 · DOI · Paper page
  4. André Altmann, Laura Toloşi, Oliver Sander, and Thomas Lengauer. 2010. Permutation importance: A corrected feature importance measure. Bioinformatics 26, 10 (2010), 1340–1347. · DOI · Paper page
  5. 10.21061/ctete-rms.v1.c.1 · DOI
  6. 10.1145/3699538.3699556 · DOI
  7. Brad Boehmke and Brandon M. Greenwell. 2019. Hands-on Machine Learning with R. Chapman and Hall/CRC. · DOI · Paper page
  8. 10.1145/2994154 · DOI · Paper page
  9. 10.1145/3610969.3611117 · DOI
  10. 10.1145/2538862.2538924 · DOI · Paper page
  11. 10.1145/3328778.3366847 · DOI
  12. Victoria Clarke and Virginia Braun. 2017. Thematic analysis. The Journal of Positive Psychology 12, 3 (2017), 297–298. · DOI · Paper page
  13. 10.1145/3649217.3653595 · DOI
  14. 10.1145/3649217.3653574 · DOI
  15. 10.1001/jamaophthalmol.2013.5521 · DOI
  16. 10.1145/2361276.2361288 · DOI · Paper page
  17. 10.1145/3544549.3585737 · DOI · Paper page
  18. Davide Fossati, Barbara Di Eugenio, Stellan Ohlsson, Christopher Brown, and Lin Chen. 2015. Data driven automatic feedback generation in the iList intelligent tutoring system. Technology, Instruction, Cognition and Learning 10, 1 (2015), 5–26.
  19. Sandy Garner, Patricia Haden, and Anthony Robins. 2005. My program is correct but it doesn’t run: A preliminary investigation of novice programmers’ problems. In Proceedings of the 7th Australasian Conference on Computing Education (ACE ’05), Vol. 42. Australian Computer Society, Inc., Australia, 173–180.
  20. Aashish Ghimire and John Edwards. 2024. Coding with AI: How are tools like ChatGPT being used by students in foundational programming courses. In Artificial Intelligence in Education. Andrew M. Olney, Irene-Angelica Chounta, Zitao Liu, Olga C. Santos, and Ig Ibert Bittencourt (Eds.), Springer Nature Switzerland, Cham, 259–267. · DOI
  21. 10.1145/2818048.2820011 · DOI · Paper page
  22. 10.1145/3386527.3406733 · DOI
  23. Luke Gusukuma, Dennis Kafura, and Austin Cory Bart. 2017. Authoring feedback for novice programmers in a block-based language. In Proceedings of the 2017 IEEE Blocks and Beyond Workshop (B&B), 37–40. DOI: 10.1109/BLOCKS.2017.8120407 · DOI
  24. 10.1145/3197091.3205845 · DOI
  25. Katharina Hellman and Matthias Nuckles. 2013. Expert blind spot in pre-service and in-service mathematics teachers: Task design moderates overestimation of novices’ performance. In Proceedings of the Annual Meeting of the Cognitive Science Society, Vol. 35.
  26. Tin Kam Ho. 1995. Random decision forests. In Proceedings of the 3rd International Conference on Document Analysis and Recognition (ICDAR ’95), Vol. 1. IEEE Computer Society, 278. · DOI · Paper page
  27. 10.1609/icwsm.v8i1.14550 · DOI · Paper page
  28. 10.1145/3202185.3202762 · DOI
  29. 10.1080/1743727X.2023.2242273 · DOI
  30. Ishika Joshi Ritvik Budhiraja Pranav Deepak Tanna Lovenya Jain Mihika Deshpande Arjun Srivastava Srinivas Rallapalli Harshal D. Akolekar Jagat Sesh Challa and Dhruv Kumar. 2023. “With great power comes great responsibility!”: Student and instructor perspectives on the influence of LLMs on undergraduate engineering education. arXiv:2309.10694. Retrieved from https://arxiv.org/abs/2309.10694 · arXiv
  31. 10.1145/3544548.3580919 · DOI · Paper page
  32. Natalie Kiesler, Dominic Lohr, and Hieke Keuning. 2023. Exploring the potential of large language models to generate formative programming feedback. In Proceedings of the 2023 IEEE Frontiers in Education Conference (FIE), 1–5. DOI: 10.1109/FIE58773.2023.10343457 · DOI · Paper page
  33. Natalie Kiesler and Daniel Schiffner. 2023. Large language models in introductory programming education: ChatGPT’s performance and implications for assessments. arXiv:2308.08572. Retrieved from https://arxiv.org/abs/2308.08572 · arXiv
  34. Irwin Kirsch and Mary Louise Lennon. 2017. PIAAC: A new design for a new era. Large-Scale Assessments in Education 5, 1 (2017), 1–22.
  35. Neil Jones. 2016. ‘No more marking’: An online tool for comparative judgement. Cambridge English Language Assessment Research Notes 12 63 (2016) 12–15. Retrieved from https://www.cambridgeenglish.org/images/301971-research-notes-63.pdf#page=14
  36. 10.1145/3641554.3701791 · DOI
  37. 10.1145/3649217.3653612 · DOI · Paper page
  38. Steffen Lippert, Anna Dreber, Magnus Johannesson, Warren Tierney, Wilson Cyrus-Lai, Eric Luis Uhlmann, Emotion Expression Collaboration, and Thomas Pfeiffer. 2024. Can large language models help predict results from a complex behavioural science study? Royal Society Open Science 11, 9 (2024), 240682. · DOI
  39. 10.1145/3649217.3653530 · DOI
  40. 10.1145/3610969.3610982 · DOI
  41. 10.1145/3291279.3339420 · DOI
  42. 10.1145/3304221.3319759 · DOI · Paper page
  43. 10.1109/TLT.2022.3223577 · DOI
  44. Angela J. McLean, Carol H. Bond, and Helen D. Nicholson. 2015. An anatomy of feedback: A phenomenographic investigation of undergraduate students’ conceptions of feedback. Studies in Higher Education 40, 5 (2015), 921–932. · DOI · Paper page
  45. Susanne Narciss. 2008. Feedback strategies for interactive learning tasks. In Handbook of Research on Educational Communications and Technology. J. Michael Spector, M. David Merrill, Jeroen van Merriënboer, and Marcy P. Driscoll (Eds.), Routledge, 125–143.
  46. Mitchell J. Nathan, Kenneth R. Koedinger, and Martha W. Alibali. 2001. Expert blind spot: When content knowledge eclipses pedagogical content knowledge. In Proceedings of the 3rd International Conference on Cognitive Science, Vol. 644648, 644–648.
  47. 10.1145/3626252.3630960 · DOI · Paper page
  48. 10.1145/3613904.3642706 · DOI · Paper page
  49. 10.1145/3430665.3456344 · DOI
  50. Benjamin Paaßen, Jessica McBroom, Bryn Jeffries, Irena Koprinska, and Kalina Yacef. 2021. Next steps for next-step hints: Lessons learned from teacher evaluations of automatic programming hints. In Joint Proceedings of the Workshops of the 14th International Conference on Educational Data Mining (EDM).
  51. 10.1145/3649217.3653608 · DOI
  52. 10.1145/3059009.3059058 · DOI
  53. 10.1080/0969594X.2012.665354 · DOI · Paper page
  54. 10.1145/3545945.3569791 · DOI
  55. 10.1145/3430895.3460159 · doi:10.1145/3430895.3460159
  56. Thomas W. Price, Samiha Marwan, Michael Winters, and Joseph Jay Williams. 2020. An evaluation of data-driven programming hints in a classroom setting. In Artificial Intelligence in Education. Ig Ibert Bittencourt, Mutlu Cukurova, Kasia Muldner, Rose Luckin, and Eva Millán (Eds.), Springer International Publishing, Cham, 246–251. · DOI
  57. 10.1145/3561833.3561843 · DOI
  58. Eric F. Rietzschel, Bernard A. Nijstad, and Wolfgang Stroebe. 2006. Productivity is not enough: A comparison of interactive and nominal brainstorming groups on idea generation and selection. Journal of Experimental Social Psychology 42, 2 (2006), 244–251. · DOI · Paper page
  59. Kelly Rivers. 2017. Automated Data-Driven Hint Generation for Learning Programming. Ph.D. Dissertation. Carnegie Mellon University.
  60. 10.1145/3636243.3636259 · DOI
  61. 10.1080/0969594X.2019.1602027 · DOI
  62. 10.1145/3636243.3636249 · DOI · Paper page
  63. 10.1145/3287324.3287394 · DOI
  64. 10.1145/3027063.3053187 · DOI · Paper page
  65. 10.1145/3408877.3432538 · DOI
  66. 10.18637/jss.v077.i01 · DOI · Paper page
  67. 10.1145/3613905.3650937 · DOI · Paper page
  68. 10.1145/3544548.3581388 · DOI · Paper page

Metadata

Authors
Brown, N. C. C., Weill-Tessier, P., Leinonen, J., Denny, P., & Kölling, M.
Affiliations
  • King's College London (GB)
  • Aalto University (FI)
  • University of Auckland (NZ)
Venue
ACM Transactions on Computing Education
Published
2025-07-22
Volume
25
Issue
3
Pages
1-43
ISSN
1946-6226 (ISSN-L)
OpenAlex
W4404990707
Cited by
5
References
33
Citations by year
2026: 5
FWCI
4.78
Type
journal article
Language
en
Open access
Locations
  • ACM Transactions on Computing Education (publishedVersion)
  • arXiv (Cornell University) (submittedVersion)
  • Research Portal (King's College London) (submittedVersion, cc-by-nd)
  • Aaltodoc (Aalto University) (submittedVersion, cc-by-nd)
  • OSF Preprints (OSF Preprints) (submittedVersion)
  • arXiv (Cornell University)
Funders
Research Council of Finland (356114)
Topics
  • Physical Sciences › Computer Science › Computer Science Applications › Teaching and Learning Programming
  • Physical Sciences › Computer Science › Artificial Intelligence › Intelligent Tutoring Systems and Adaptive Learning
  • Physical Sciences › Computer Science › Information Systems › Software Engineering Research
Keywords
large language models, GPT-4, novice programmers, programming education, expert opinion, comparative judgment, LLM prompts, Java programming, reading level

About these checks

Registry, retraction, Cites and statistics results are computed, not judged, with one exception: a printed reference that no index lists is read once by a model before it counts as a citation error. Claims are extracted by a model and kept only when their quote appears verbatim in the text; each cited source is then checked, with a model’s help, for whether it says what the claim relies on. Those verdicts can be wrong — read the claim’s quote and the cited source before relying on one.

Statistics and arithmetic are recomputed, not judged.

Confidence bands are shown only for fields calibrated on our annotated test set. None is calibrated yet, so no band is shown.

What counts as a claim ›How we measure confidence ›How we check this ›

Are you an author, or do you see a problem with this page? Request a review

Data sources

Bibliographic data: Semantic Scholar, OpenAlex, Crossref.

Contains information from the Semantic Scholar Academic Graph Datasets, made available under the ODC Attribution License (ODC-BY 1.0).

Semantic Scholar’s data is described in: Kinney, R., et al. (2023). The Semantic Scholar Open Data Platform. arXiv:2301.10140.