CoChat

A Systematic Literature Review of the Use of GenAI Assistants for Code Comprehension: Implications for Computing Education Research and Practice

Open access
Qiao, Yunhan, Shihab, Md Istiak Hossain, Hundhausen, Christopher · 2026 · ACM Transactions on Computing Education

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

Abstract

The ability to comprehend code has long been recognized as an essential skill in software engineering. As programmers lean more heavily on Generative AI (GenAI) assistants to develop code solutions, it is becoming increasingly important for programmers to comprehend GenAI solutions so that they can verify their appropriateness and properly integrate them into existing code. At the same time, GenAI tools are increasingly being enlisted to provide programmers with tailored explanations of code written both by GenAI and humans. Thus, in computing education, GenAI presents new challenges and opportunities for learners who are trying to comprehend computer programs. To provide computing educators with evidence-based guidance on the use of GenAI to facilitate code comprehension and to identify directions for future research, we present a Systematic Literature Review (SLR) of state-of-the-art approaches and tools that leverage GenAI to enhance code comprehension. Our SLR focuses on 31 studies published between 2022 and 2024. Despite their potential, GenAI assistants often yield inaccurate or unclear explanations, and novice programmers frequently struggle to craft effective prompts, thereby impeding their ability to leverage GenAI to aid code comprehension. Our review classifies GenAI-based approaches and tools, identifies methods used to study them, and summarizes the empirical evaluations of their effectiveness. We consider the implications of our findings for computing education research and practice, and identify directions for future research.

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/3785366

Cites

34 of 34 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

Show all 34 references

Research works printed but not linked: 70

  1. Nedhal A. Al-Saiyd. 2017. Source code comprehension analysis in software maintenance. In Proceedings of the 2017 2nd International Conference on Computer and Communication Systems (ICCCS). IEEE, 1–5.
  2. Ankita Amburle, Cheryl Almeida, Nathan Lopes, and Oswin Lopes. 2024. AI based code error explainer using Gemini model. In Proceedings of the 2024 3rd International Conference on Applied Artificial Intelligence and Computing (ICAAIC). IEEE, 274–278.
  3. Martin Balfroid, Benoît Vanderose, and Xavier Devroey. 2024. Towards LLM-generated code tours for onboarding. In Proceedings of the 3rd ACM/IEEE International Workshop on NL-Based Software Engineering, 65–68. · DOI
  4. Rishabh Balse, Viraj Kumar, Prajish Prasad, and Jayakrishnan Madathil Warriem. 2023. Evaluating the quality of LLM-generated explanations for logical errors in CS1 student programs. In Proceedings of the 16th Annual ACM India Compute Conference, 49–54. · DOI
  5. Aviad Baron and Dror G. Feitelson. 2024. Why is recursion hard to comprehend? An experiment with experienced programmers in python. In Proceedings of the 2024 on Innovation and Technology in Computer Science Education V. 1 115–121. · doi:10.1145/3649217.3653636
  6. Seth Bernstein, Paul Denny, Juho Leinonen, Lauren Kan, Arto Hellas, Matt Littlefield, Sami Sarsa, and Stephen MacNeil. 2024. “Like a nesting doll”: Analyzing recursion analogies generated by CS students using large language models. In Proceedings of the 2024 on Innovation and Technology in Computer Science Education V. 1, 122–128. · DOI
  7. Virginia Braun and Victoria Clarke. 2021. One size fits all? What counts as quality practice in (reflexive) thematic analysis? Qualitative Research in Psychology 18, 3 (2021), 328–352. · DOI · Paper page
  8. Roee Cates, Nadav Yunik, and Dror G. Feitelson. 2021. Does code structure affect comprehension? On using and naming intermediate variables. In Proceedings of the 2021 IEEE/ACM 29th International Conference on Program Comprehension (ICPC). IEEE, 118–126.
  9. Jeevan Chapagain and Vasile Rus. 2025. Automated assessment of student self-explanation in code comprehension using pre-trained language models. In Proceedings of the AAAI Conference on Artificial Intelligence, Vol. 39, 28996–29003.
  10. Rudrajit Choudhuri, Dylan Liu, Igor Steinmacher, Marco Gerosa, and Anita Sarma. 2024. How far are we? The triumphs and trials of generative AI in learning software engineering. In Proceedings of the IEEE/ACM 46th International Conference on Software Engineering, 1–13.
  11. Jorge Cisneros-González, Natalia Gordo-Herrera, Iván Barcia-Santos, and Javier Sánchez-Soriano. 2025. JorGPT: Instructor-aided grading of programming assignments with large language models (LLMs). Future Internet 17, 6 (2025), 265. · DOI
  12. Bas Cornelissen, Andy Zaidman, and Arie van Deursen. 2010. A controlled experiment for program comprehension through trace visualization. IEEE Transactions on Software Engineering 37, 3 (2010), 341–355. · DOI
  13. Veronica Cucuiat and Jane Waite. 2024. Feedback literacy: Holistic analysis of secondary educators’ views of LLM explanations of program error messages. In Proceedings of the 2024 on Innovation and Technology in Computer Science Education V. 1, 192–198. · DOI
  14. Paul Denny, David H. Smith, IV, Max Fowler, James Prather, Brett A. Becker, and Juho Leinonen. 2024. Explaining code with a purpose: An integrated approach for developing code comprehension and prompting skills. In Proceedings of the 2024 on Innovation and Technology in Computer Science Education V. 1, 283–289. · DOI · Paper page
  15. Zixuan Feng Sadia Afroz and Anita Sarma. 2025. Modeling developer burnout with GenAI adoption. arXiv:2510.07435. Retrieved from https://arxiv.org/abs/2510.07435 · arXiv
  16. Zixuan Feng, Katie Kimura, Bianca Trinkenreich, Anita Sarma, and Igor Steinmacher. 2024. Guiding the way: A systematic literature review on mentoring practices in open source software projects. Information and Software Technology 171 (2024), 107470. · DOI
  17. Zixuan Feng Reed Milewicz Emerson Murphy-Hill Tyler Menezes Alexander Serebrenik Igor Steinmacher and Anita Sarma. 2025. Charting uncertain waters: A socio-technical framework for navigating GenAI’s impact on open source communities. arXiv:2508.04921. Retrieved from https://arxiv.org/abs/2508.04921 · DOI
  18. Richard K. Fjeldstad. 1983. Application program maintenance study. In Report to Our Respondents, Proceedings GUIDE 48.
  19. Mingyang Geng, Shangwen Wang, Dezun Dong, Shanzhi Gu, Fang Peng, Weijian Ruan, and Xiangke Liao. 2022. Fine-grained code-comment semantic interaction analysis. In Proceedings of the 30th IEEE/ACM International Conference on Program Comprehension, 585–596. · DOI
  20. Mingyang Geng, Shangwen Wang, Dezun Dong, Haotian Wang, Ge Li, Zhi Jin, Xiaoguang Mao, and Xiangke Liao. 2024. Large language models are few-shot summarizers: Multi-intent comment generation via in-context learning. In Proceedings of the2024 IEEE/ACM 46th International Conference on Software Engineering (ICSE). ACM, New York, NY, 453–465. DOI: 10.1145/3597503.3608134 · DOI · Paper page
  21. Arthur C. Graesser. 2013. Prose Comprehension Beyond the Word. Springer Science & Business Media.
  22. David Heidrich and Andreas Schreiber. 2023. Visualizing source code as comics using generative AI. In Proceedings of the 2023 IEEE Working Conference on Software Visualization (VISSOFT). IEEE, 40–44. · DOI
  23. Ava Heinonen, Bettina Lehtelä, Arto Hellas, and Fabian Fagerholm. 2023. Synthesizing research on programmers’ mental models of programs, tasks and concepts—A systematic literature review. Information and Software Technology 164 (2023), 107300. · DOI · Paper page
  24. Johannes Hofmeister, Janet Siegmund, and Daniel V. Holt. 2017. Shorter identifier names take longer to comprehend. In Proceedings of the 2017 IEEE 24th International Conference on Software Analysis, Evolution and Reengineering (SANER). IEEE, 217–227.
  25. Amber Horvath, Andrew Macvean, and Brad A. Myers. 2024. Meta-Manager: A tool for collecting and exploring meta information about code. In Proceedings of the 2024 CHI Conference on Human Factors in Computing Systems, 1–17.
  26. Majeed Kazemitabaar, Justin Chow, Carl Ka To Ma, Barbara J. Ericson, David Weintrop, and Tovi Grossman. 2023. Studying the effect of AI code generators on supporting novice learners in introductory programming. In Proceedings of the 2023 CHI Conference on Human Factors in Computing Systems, 1–23.
  27. Majeed Kazemitabaar, Runlong Ye, Xiaoning Wang, Austin Zachary Henley, Paul Denny, Michelle Craig, and Tovi Grossman. 2024. CodeAid: Evaluating a classroom deployment of an LLM-based programming assistant that balances student and educator needs. In Proceedings of the CHI Conference on Human Factors in Computing Systems, 1–20.
  28. Junaed Younus Khan and Gias Uddin. 2023. Combining contexts from multiple sources for documentation-specific code example generation. In Proceedings of the 2023 IEEE International Conference on Software Analysis, Evolution and Reengineering (SANER). IEEE, 683–687.
  29. Jürgen Koenemann and Scott P. Robertson. 1991. Expert problem solving strategies for program comprehension. In Proceedings of the SIGCHI Conference on Human Factors in Computing Systems, 125–130. · DOI
  30. Teemu Lehtinen, Charles Koutcheme, and Arto Hellas. 2024. Let’s ask AI about their programs: Exploring ChatGPT’s answers to program comprehension questions. In Proceedings of the 46th International Conference on Software Engineering: Software Engineering Education and Training, 221–232.
  31. Stanley Letovsky. 1987. Cognitive processes in program comprehension. Journal of Systems and Software 7, 4 (1987), 325–339. · DOI · Paper page
  32. Omer Levy and Dror G. Feitelson. 2019. Understanding large-scale software—A hierarchical view. In Proceedings of the 2019 IEEE/ACM 27th International Conference on Program Comprehension (ICPC). IEEE, 283–293.
  33. Patrick Lewis, Ethan Perez, Aleksandra Piktus, Fabio Petroni, Vladimir Karpukhin, Naman Goyal, Heinrich Küttler, Mike Lewis, Wen-Tau Yih, Tim Rocktäschel, et al. 2020. Retrieval-augmented generation for knowledge-intensive NLP tasks. In Proceedings of the Advances in Neural Information Processing Systems, Vol. 33, 9459–9474.
  34. Ziyu Li, Zhendu Li, Kaiming Xiao, and Xuan Li. 2023. Evaluating LLM’s code reading abilities in big data contexts using metamorphic testing. In Proceedings of the 2023 9th International Conference on Big Data and Information Analytics (BigDIA). IEEE, 232–239.
  35. Ziyu Li and Donghwan Shin. 2024. Mutation-based consistency testing for evaluating the code understanding capability of LLMs. In Proceedings of the IEEE/ACM 3rd International Conference on AI Engineering-Software Engineering for AI, 150–159.
  36. Raymond Lister. 2020. On the cognitive development of the novice programmer: And the development of a computing education researcher. In Proceedings of the 9th Computer Science Education Research Conference, 1–15.
  37. Yilun Liu, Shimin Tao, Weibin Meng, Jingyu Wang, Wenbing Ma, Yuhang Chen, Yanqing Zhao, Hao Yang, and Yanfei Jiang. 2024. Interpretable online log analysis using large language models with prompt strategies. In Proceedings of the 32nd IEEE/ACM International Conference on Program Comprehension, 35–46.
  38. Daye Nam, Brad Myers, Bogdan Vasilescu, and Vincent Hellendoorn. 2023. Improving API knowledge discovery with ML: A case study of comparable API methods. In Proceedings of the 2023 IEEE/ACM 45th International Conference on Software Engineering (ICSE). IEEE, 1890–1906.
  39. Amirmohammad Nazari, Swabha Swayamdipta, Souti Chattopadhyay, and Mukund Raghothaman. 2024. Generating function names to improve comprehension of synthesized programs. In Proceedings of the 2024 IEEE Symposium on Visual Languages and Human-Centric Computing (VL/HCC). IEEE, 248–259. · DOI
  40. Ha Nguyen and Vicki Allan. 2024. Using GPT-4 to provide tiered, formative code feedback. In Proceedings of the 55th ACM Technical Symposium on Computer Science Education V. 1, 958–964. · DOI · Paper page
  41. Delano Oliveira, Reydne Bruno, Fernanda Madeiral, and Fernando Castor. 2020. Evaluating code readability and legibility: An examination of human-centric studies. In Proceedings of the 2020 IEEE International Conference on Software Maintenance and Evolution (ICSME). IEEE, 348–359. · DOI
  42. Sida Peng Eirini Kalliamvakou Peter Cihon and Mert Demirer. 2023. The impact of AI on developer productivity: Evidence from GitHub Copilot. arXiv:2302.06590. Retrieved from https://arxiv.org/abs/2302.06590 · arXiv
  43. Tung Phung Heeryung Choi Mengyan Wu Christopher Brooks Sumit Gulwani and Adish Singla. 2025. Closing the loop: An instructor-in-the-loop AI assistance system for supporting student help-seeking in programming education. arXiv:2510.14457. Retrieved from https://arxiv.org/abs/2510.14457 · arXiv
  44. James Prather, Juho Leinonen, Natalie Kiesler, Jamie Gorson Benario, Sam Lau, Stephen MacNeil, Narges Norouzi, Simone Opel, Vee Pettit, Leo Porter, et al. 2025. Beyond the hype: A comprehensive review of current trends in generative AI research, teaching practices, and tools. In Proceedings of the 2024 Working Group Reports on Innovation and Technology in Computer Science Education, 300–338.
  45. Yunhan Qiao Christopher Hundhausen Summit Haque and Md Istiak Hossain Shihab. 2025. Comprehension-performance gap in GenAI-assisted brownfield programming: A replication and extension. arXiv:2511.02922. Retrieved from https://arxiv.org/abs/2511.02922 · arXiv
  46. Steven I. Ross, Fernando Martinez, Stephanie Houde, Michael Muller, and Justin D. Weisz. 2023. The Programmer’s Assistant: Conversational interaction with a large language model for software development. In Proceedings of the 28th International Conference on Intelligent User Interfaces, 491–514. · DOI · Paper page
  47. Surya Prakash Sahu, Madhurima Mandal, Shikhar Bharadwaj, Aditya Kanade, Petros Maniatis, and Shirish Shevade. 2024. CodeQueries: A dataset of semantic queries over code. In Proceedings of the 17th Innovations in Software Engineering Conference, 1–11.
  48. André Santos, Tiago Soares, Nuno Garrido, and Teemu Lehtinen. 2022. Jask: Generation of questions about learners’ code in Java. In Proceedings of the 27th ACM Conference on Innovation and Technology in Computer Science Education, Vol. 1, 117–123.
  49. Eddie Antonio Santos and Brett A. Becker. 2024. Not the silver bullet: LLM-enhanced programming error messages are ineffective in practice. In Proceedings of the 2024 Conference on United Kingdom and Ireland Computing Education Research, 1–7.
  50. Eddie Antonio Santos, Prajish Prasad, and Brett A. Becker. 2023. Always provide context: The effects of code context on programming error message enhancement. In Proceedings of the ACM Conference on Global Computing Education, Vol. 1, 147–153.
  51. Carsten Schulte, Tony Clear, Ahmad Taherkhani, Teresa Busjahn, and James H. Paterson. 2010. An introduction to program comprehension for computer science educators. In Proceedings of the 2010 ITiCSE Working Group Reports, 65–86. · DOI
  52. Danie Smit Hanlie Smuts Paul Louw Julia Pielmeier and Christina Eidelloth. 2024. The impact of GitHub Copilot on developer productivity from a software engineering body of knowledge perspective. In Proceedings of theThirtieth Americas Conference on Information Systems (AMCIS 2024) AIS eLibrary 1–11.
  53. David H. Smith, IV, Paul Denny, and Max Fowler. 2024. Prompting for comprehension: Exploring the intersection of explain in plain English questions and prompt writing. In Proceedings of the 11th ACM Conference on Learning@ Scale, 39–50. · DOI
  54. Sean Stapleton, Yashmeet Gambhir, Alexander LeClair, Zachary Eberhart, Westley Weimer, Kevin Leach, and Yu Huang. 2020. A human study of comprehension and code summarization. In Proceedings of the 28th International Conference on Program Comprehension, 2–13. · DOI · Paper page
  55. John T. Stasko, Marc H. Brown, John B. Domingue, and Blaine A. Price. 1998. Software Visualization. MIT Press, Cambridge, MA.
  56. Ningzhi Tang. 2024. Towards effective validation and integration of LLM-generated code. In Proceedings of the 2024 IEEE Symposium on Visual Languages and Human-Centric Computing (VL/HCC). IEEE, 369–370. · DOI
  57. Shimin Tao, Weibin Meng, Yimeng Cheng, Yichen Zhu, Ying Liu, Chunning Du, Tao Han, Yongpeng Zhao, Xiangguang Wang, and Hao Yang. 2022. LogStamp: Automatic online log parsing based on sequence labelling. ACM SIGMETRICS Performance Evaluation Review 49, 4 (2022), 93–98. · DOI
  58. Andrew Taylor, Alexandra Vassar, Jake Renzella, and Hammond Pearce. 2024. dcc --help: Transforming the role of the compiler by generating context-aware error explanations with large language models. In Proceedings of the 55th ACM Technical Symposium on Computer Science Education V. 1, 1314–1320. · DOI
  59. Donna Teague, Malcolm Corney, Alireza Ahadi, and Raymond Lister. 2013. A qualitative think aloud study of the early neo-Piagetian stages of reasoning in novice programmers. In Proceedings of the 15th Australasian Computing Education Conference. Conferences in Research and Practice in Information Technology, Vol. 136, Australian Computer Society, 87–95.
  60. Barbee E. Teasley. 1994. The effects of naming style and expertise on program comprehension. International Journal of Human-Computer Studies 40, 5 (1994), 757–770. · DOI
  61. Priyadarshi Tripathy and Kshirasagar Naik. 2014. Software Evolution and Maintenance: A Practitioner’s Approach. John Wiley & Sons. · doi:10.1002/9781118964637
  62. Anneliese Von Mayrhauser and A. Marie Vans. 1995. Program comprehension during software maintenance and evolution. Computer 28, 8 (1995), 44–55. · DOI · Paper page
  63. April Yi Wang, Dakuo Wang, Jaimie Drozdal, Michael Muller, Soya Park, Justin D. Weisz, Xuye Liu, Lingfei Wu, and Casey Dugan. 2022. Documentation matters: Human-centered AI system to assist data science code documentation in computational notebooks. ACM Transactions on Computer-Human Interaction 29, 2 (2022), 1–33. · DOI · Paper page
  64. Jacqueline Whalley and Nadia Kasto. 2014. A qualitative think-aloud study of novice programmers’ code writing strategies. In Proceedings of the 2014 Conference on Innovation and Technology in Computer Science Education, 279–284.
  65. Ratnadira Widyasari, Jia Wei Ang, Truong Giang Nguyen, Neil Sharma, and David Lo. 2024. Demystifying faulty code: Step-by-step reasoning for explainable fault localization. In Proceedings of the 2024 IEEE International Conference on Software Analysis, Evolution and Reengineering (SANER). IEEE, 568–579.
  66. Juliette Woodrow, Sanmi Koyejo, and Chris Piech. 2025. Improving Generative AI Student Feedback: Direct Preference Optimization with Teachers in the Loop. International Educational Data Mining Society.
  67. Marvin Wyrich Justus Bogner and Stefan Wagner. 2023. 40 years of designing code comprehension experiments: A systematic mapping study. ACM Computing Surveys 56 4 (2023) 1–42. · DOI · Paper page
  68. Litao Yan, Alyssa Hwang, Zhiyuan Wu, and Andrew Head. 2024. Ivie: Lightweight anchored explanations of just-generated code. In Proceedings of the CHI Conference on Human Factors in Computing Systems, 1–15.
  69. Stephanie Yang, Miles Baird, Eleanor O’Rourke, Karen Brennan, and Bertrand Schneider. 2024. Decoding debugging instruction: A systematic literature review of debugging interventions. ACM Transactions on Computing Education 24, 4 (2024), 1–44. · DOI · Paper page
  70. Yichi Zhang. 2024. Detecting code comment inconsistencies using LLM and program analysis. In Companion Proceedings of the 32nd ACM International Conference on the Foundations of Software Engineering, 683–685. · DOI

Cited by

Metadata

Authors
Qiao, Y., Shihab, M. I. H., & Hundhausen, C.
Affiliations
Oregon State University (US)
Venue
ACM Transactions on Computing Education
Published
2026-02-16
Volume
26
Issue
2
Pages
1-33
ISSN
1946-6226 (ISSN-L)
OpenAlex
W4417382367
Cited by
9
References
34
Citations by year
2026: 9
FWCI
2.11
Type
journal article
Language
en
Open access
Locations
  • ACM Transactions on Computing Education (publishedVersion)
  • arXiv (Cornell University) (submittedVersion)
  • arXiv (Cornell University) (cc-by)
Topics
  • Physical Sciences › Computer Science › Computer Science Applications › Teaching and Learning Programming
  • Physical Sciences › Computer Science › Information Systems › Software Engineering Research
  • Social Sciences › Education › Artificial Intelligence in Education
Keywords
generative AI assistants, program comprehension, novice programmers, AI-generated code, software engineering education, computing education, AI-assisted programming

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.