Howzat? Appealing to Expert Judgement for Evaluating Human and AI Next-Step Hints for Novice Programmers
Open accessThe 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.
Integrity signals
Registry
Cites
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.
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
Shute, V. J. (2008) · Review of Educational Research · doi:10.3102/0034654307313795 · Cited by 4,631
Koedinger, K. R., Corbett, A. T., & Perfetti, C. (2012) · Cognitive Science · doi:10.1111/j.1551-6709.2012.01245.x · Cited by 772
How many words do we read per minute? A review and meta-analysis of reading rate
Brysbaert, M. (2019) · Journal of Memory and Language · doi:10.1016/j.jml.2019.104047 · Cited by 553
Using an LLM to Help With Code Understanding
Nam, D., Macvean, A., Hellendoorn, V., Vasilescu, B., & Myers, B. (2024) · Proceedings of the IEEE/ACM 46th International Conference on Software Engineering · doi:10.1145/3597503.3639187 · Cited by 487
A systematic literature review of automated feedback generation for programming exercises
Keuning, H., Jeuring, J., & Heeren, B. (2019) · ACM Transactions on Computing Education · doi:10.1145/3231711 · Cited by 370 · cited 4×
“This is in contrast to large portions of the hint-generating literature which rely on knowing the problem context to provide hints [10, 34, 53].”
InfluentialComputing Education in the Era of Generative AI
Denny, P., Prather, J., Becker, B. A., Finnie-Ansley, J., Hellas, A., Leinonen, J., Luxton-Reilly, A., Reeves, B. N., Santos, E. A., & Sarsa, S. (2024) · Communications of the ACM · doi:10.1145/3624720 · Cited by 316
Self-citationCorbett, A. T., & Anderson, J. R. (2001) · Proceedings of the SIGCHI Conference on Human Factors in Computing Systems · doi:10.1145/365024.365111 · Cited by 280
Prather, J., Reeves, B. N., Denny, P., Becker, B. A., Leinonen, J., Luxton-Reilly, A., Powell, G., Finnie-Ansley, J., & Santos, E. A. (2024) · ACM Transactions on Computer-Human Interaction · doi:10.1145/3617367 · Cited by 256
Self-citationLau, S., & Guo, P. (2023) · Proceedings of the 2023 ACM Conference on International Computing Education Research V.1 · doi:10.1145/3568813.3600138 · Cited by 241 · cited 1×
“In an early 2023 study, educators were found to be split between those who wanted to resist AI tools and those who wanted to embrace them [41].”
Using Large Language Models to Enhance Programming Error Messages
Leinonen, J., Hellas, A., Sarsa, S., Reeves, B., Denny, P., Prather, J., & Becker, B. A. (2023) · Proceedings of the 54th ACM Technical Symposium on Computer Science Education V. 1 · doi:10.1145/3545945.3569770 · Cited by 235
Self-citationExploring the Responses of Large Language Models to Beginner Programmers' Help Requests
Hellas, A., Leinonen, J., Sarsa, S., Koutcheme, C., Kujanpää, L., & Sorva, J. (2023) · arXiv · doi:10.48550/arxiv.2306.05715 · Cited by 211
Self-citationComparing Code Explanations Created by Students and Large Language Models
Leinonen, J., Denny, P., MacNeil, S., Sarsa, S., Bernstein, S., Kim, J., Tran, A., & Hellas, A. (2023) · Proceedings of the 2023 Conference on Innovation and Technology in Computer Science Education V. 1 · doi:10.1145/3587102.3588785 · Cited by 210
Self-citationThe Widening Gap: The Benefits and Harms of Generative AI for Novice Programmers
Prather, J., Reeves, B. N., Leinonen, J., MacNeil, S., Randrianasolo, A. S., Becker, B. A., Kimmel, B., Wright, J., & Briggs, B. (2024) · Proceedings of the 2024 ACM Conference on International Computing Education Research - Volume 1 · doi:10.1145/3632620.3671116 · Cited by 196
Self-citationThe Widening Gap: The Benefits and Harms of Generative AI for Novice Programmers
Prather, J., Reeves, B., Leinonen, J., MacNeil, S., Randrianasolo, A. S., Becker, B., Kimmel, B., Wright, J., & Briggs, B. (2024) · arXiv · Cited by 196
Self-citationMacNeil, S., Tran, A., Hellas, A., Kim, J., Sarsa, S., Denny, P., Bernstein, S., & Leinonen, J. (2022) · arXiv · doi:10.48550/arxiv.2211.02265 · Cited by 195
Self-citationMacNeil, S., Tran, A., Hellas, A., Kim, J., Sarsa, S., Denny, P., Bernstein, S., & Leinonen, J. (2023) · Proceedings of the 54th ACM Technical Symposium on Computer Science Education V. 1 · doi:10.1145/3545945.3569785 · Cited by 195
Self-citationCodeHelp: Using Large Language Models with Guardrails for Scalable Support in Programming Classes
Liffiton, M., Sheese, B. E., Savelka, J., & Denny, P. (2023) · Proceedings of the 23rd Koli Calling International Conference on Computing Education Research · doi:10.1145/3631802.3631830 · Cited by 192
Self-citationPrompt Problems: A New Programming Exercise for the Generative AI Era
Denny, P., Leinonen, J., Prather, J., Luxton-Reilly, A., Amarouche, T., Becker, B. A., & Reeves, B. N. (2024) · Proceedings of the 55th ACM Technical Symposium on Computer Science Education V. 1 · doi:10.1145/3626252.3630909 · Cited by 187
Self-citationIntelligent tutoring systems for programming education: a systematic review
Crow, T., Luxton-Reilly, A., & Wuensche, B. (2018) · Proceedings of the 20th Australasian Computing Education Conference · doi:10.1145/3160489.3160492 · Cited by 166
Exploring the Responses of Large Language Models to Beginner Programmers’ Help Requests
Hellas, A., Leinonen, J., Sarsa, S., Koutcheme, C., Kujanpää, L., & Sorva, J. (2023) · Proceedings of the 2023 ACM Conference on International Computing Education Research V.1 · doi:10.1145/3568813.3600139 · Cited by 145
Self-citationMetacognitive Difficulties Faced by Novice Programmers in Automated Assessment Tools
Prather, J., Pettit, R., McMurry, K., Peters, A., Homer, J., & Cohen, M. (2018) · Proceedings of the 2018 ACM Conference on International Computing Education Research · doi:10.1145/3230977.3230981 · Cited by 129 · cited 1×
“This may be because they cannot solve a compiler error [65], a run-time error [18, 77], or other more general issues with problem solving [9, 64].”
Does ChatGPT Help With Introductory Programming?An Experiment of Students Using ChatGPT in CS1
Xue, Y., Chen, H., Bai, G. R., Tairas, R., & Huang, Y. (2024) · Proceedings of the 46th International Conference on Software Engineering: Software Engineering Education and Training · doi:10.1145/3639474.3640076 · Cited by 96
On Novices' Interaction with Compiler Error Messages: A Human Factors Approach
Prather, J., Pettit, R., McMurry, K. H., Peters, A., Homer, J., Simone, N., & Cohen, M. (2017) · Proceedings of the 2017 ACM Conference on International Computing Education Research · doi:10.1145/3105726.3106169 · Cited by 72
On Designing Programming Error Messages for Novices: Readability and its Constituent Factors
Denny, P., Prather, J., Becker, B. A., Mooney, C., Homer, J., Albrecht, Z. C., & Powell, G. B. (2021) · Proceedings of the 2021 CHI Conference on Human Factors in Computing Systems · doi:10.1145/3411764.3445696 · Cited by 60 · cited 1×
“…length of the hint (in number of words), complexity of the vocabulary (i.e. reading level), (these first two are suggested in guidelines by Denny et al. [15] as used by Prather et al. [63] for error message readability), sentiment, correctness, and type of feedback (as per Cucuiat and Waite [11]).”
Self-citationInstructor Perceptions of AI Code Generation Tools - A Multi-Institutional Interview Study
Sheard, J., Denny, P., Hellas, A., Leinonen, J., Malmi, L., & Simon (2024) · Proceedings of the 55th ACM Technical Symposium on Computer Science Education V. 1 · doi:10.1145/3626252.3630880 · Cited by 54
Self-citationA Think-Aloud Study of Novice Debugging
Whalley, J., Settle, A., & Luxton-Reilly, A. (2023) · ACM Transactions on Computing Education · doi:10.1145/3589004 · Cited by 53
Large language models meet user interfaces: The case of provisioning feedback
Pozdniakov, S., Brazil, J., Abdi, S., Bakharia, A., Sadiq, S., Gašević, D., Denny, P., & Khosravi, H. (2024) · Computers and Education: Artificial Intelligence · doi:10.1016/j.caeai.2024.100289 · Cited by 43
Self-citationTowards Giving Timely Formative Feedback and Hints to Novice Programmers
Jeuring, J., Keuning, H., Marwan, S., Bouvier, D., Izu, C., Kiesler, N., Lehtinen, T., Lohr, D., Peterson, A., & Sarsa, S. (2022) · Proceedings of the 2022 Working Group Reports on Innovation and Technology in Computer Science Education · doi:10.1145/3571785.3574124 · Cited by 40
A Survey of Automated Programming Hint Generation: The HINTS Framework
McBroom, J., Koprinska, I., & Yacef, K. (2022) · ACM Computing Surveys · doi:10.1145/3469885 · Cited by 39 · cited 1×
“This is in contrast to large portions of the hint-generating literature which rely on knowing the problem context to provide hints [10, 34, 53].”
Scholl, A., & Kiesler, N. (2024) · 2024 IEEE Frontiers in Education Conference (FIE) · doi:10.1109/fie61694.2024.10893442 · Cited by 35 · cited 1×
“An alternative mode of use suggested by several researchers [55, 74, 81] is to build tools powered by LLMs.”
AI-Generated Code Not Considered Harmful
Kendon, T., Wu, L., & Aycock, J. (2023) · Proceedings of the 25th Western Canadian Conference on Computing Education · doi:10.1145/3593342.3593349 · Cited by 13
Mailach, A., Gorgosch, D., Siegmund, N., & Siegmund, J. (2025) · Empirical Software Engineering · doi:10.1007/s10664-024-10561-6 · Cited by 13
"It's Weird That it Knows What I Want": Usability and Interactions with Copilot for Novice Programmers
Prather, J., Reeves, B. N., Denny, P., Becker, B. A., Leinonen, J., Luxton-Reilly, A., Powell, G., Finnie-Ansley, J., & Santos, E. A. (2023) · arXiv
Self-citation
Research works printed but not linked: 68
- 10.1145/2787622.2787717 · DOI · Paper page
- 10.1145/3377814.3381703 · DOI · Paper page
- 10.1007/s40593-015-0089-1 · DOI · Paper page
- 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
- 10.21061/ctete-rms.v1.c.1 · DOI
- 10.1145/3699538.3699556 · DOI
- Brad Boehmke and Brandon M. Greenwell. 2019. Hands-on Machine Learning with R. Chapman and Hall/CRC. · DOI · Paper page
- 10.1145/2994154 · DOI · Paper page
- 10.1145/3610969.3611117 · DOI
- 10.1145/2538862.2538924 · DOI · Paper page
- 10.1145/3328778.3366847 · DOI
- Victoria Clarke and Virginia Braun. 2017. Thematic analysis. The Journal of Positive Psychology 12, 3 (2017), 297–298. · DOI · Paper page
- 10.1145/3649217.3653595 · DOI
- 10.1145/3649217.3653574 · DOI
- 10.1001/jamaophthalmol.2013.5521 · DOI
- 10.1145/2361276.2361288 · DOI · Paper page
- 10.1145/3544549.3585737 · DOI · Paper page
- 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.
- 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.
- 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
- 10.1145/2818048.2820011 · DOI · Paper page
- 10.1145/3386527.3406733 · DOI
- 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
- 10.1145/3197091.3205845 · DOI
- 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.
- 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
- 10.1609/icwsm.v8i1.14550 · DOI · Paper page
- 10.1145/3202185.3202762 · DOI
- 10.1080/1743727X.2023.2242273 · DOI
- 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
- 10.1145/3544548.3580919 · DOI · Paper page
- 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
- 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
- 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.
- 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
- 10.1145/3641554.3701791 · DOI
- 10.1145/3649217.3653612 · DOI · Paper page
- 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
- 10.1145/3649217.3653530 · DOI
- 10.1145/3610969.3610982 · DOI
- 10.1145/3291279.3339420 · DOI
- 10.1145/3304221.3319759 · DOI · Paper page
- 10.1109/TLT.2022.3223577 · DOI
- 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
- 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.
- 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.
- 10.1145/3626252.3630960 · DOI · Paper page
- 10.1145/3613904.3642706 · DOI · Paper page
- 10.1145/3430665.3456344 · DOI
- 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).
- 10.1145/3649217.3653608 · DOI
- 10.1145/3059009.3059058 · DOI
- 10.1080/0969594X.2012.665354 · DOI · Paper page
- 10.1145/3545945.3569791 · DOI
- 10.1145/3430895.3460159 · doi:10.1145/3430895.3460159
- 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
- 10.1145/3561833.3561843 · DOI
- 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
- Kelly Rivers. 2017. Automated Data-Driven Hint Generation for Learning Programming. Ph.D. Dissertation. Carnegie Mellon University.
- 10.1145/3636243.3636259 · DOI
- 10.1080/0969594X.2019.1602027 · DOI
- 10.1145/3636243.3636249 · DOI · Paper page
- 10.1145/3287324.3287394 · DOI
- 10.1145/3027063.3053187 · DOI · Paper page
- 10.1145/3408877.3432538 · DOI
- 10.18637/jss.v077.i01 · DOI · Paper page
- 10.1145/3613905.3650937 · DOI · Paper page
- 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
- Semantic Scholar
- 41caadfebeaabd41eebfcec5db5e41acc2c13007
- Cited by
- 5
- References
- 33
- Citations by year
- 2026: 5
- FWCI
- 4.78
- Type
- journal article
- Language
- en
- Open access
- green
- arxiv.org
- 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.