The Comprehension Gap in LLM-Assisted Software Development: An Experiment
Julian Oertel, Jil Kl\"under, Regina Hebig
Key points
From the paper's conclusion- We conduct a crossover experiment and interviews with 35 participants consisting of students, academic personnel, and software developers.
Abstract
When LLM tools are pushed beyond their capabilities for software development tasks, developers must be able to step in. However, the comprehension that developers acquire during development might be negatively impacted due to excessive code generation. This could create a cognitive debt that needs to be resolved before tasks can be solved efficiently again. We explore how well developers understand code they generated by prompting in comparison to self-written and unseen code and how they reflect on their comprehension. We conduct a crossover experiment and interviews with 35 participants consisting of students, academic personnel, and software developers. After completing two programming tasks with or without LLM chat usage, respectively, participants are tasked with finding introduced mutations in the produced and additional unseen code. We use insights from interviews and screen recordings to supplement our results. Regarding the experiment, 36% of participants report a better understanding of self-written code compared to their generated code. On average, participants solved the comprehension task 20% faster for self-written code than for generated code and found 11% more mutations. Participants needed significantly less time to solve programming tasks when working with the LLM. However, participants with high reliance on the LLM chat and low task engagement showed significantly decreased comprehension. Our qualitative results show great variability in individual perspectives on comprehension differences and strategies to mitigate issues. Strategies for dealing with comprehension differences range from accepting comprehension differences to adapting their LLM interactions or avoiding the tools altogether. Our results warrant further investigation into cognitive debt in larger systems and developer practices to mitigate issues.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- LLMs’ reshaping of people, processes, products, and society in software development: a qualitative exploration with early adoptersEmpirical Software Engineering · 2026
- Feeling Easier, Working Harder: Cognitive Load in AI-Assisted Code ComprehensionarXiv · 2026
- Helping LLMs improve code generation using feedback from testing and static analysisDiscover Artificial Intelligence · 2026
- "Like Taking the Path of Least Resistance": Exploring the Impact of LLM Interaction on the Creative Process of ProgrammingACM Transactions on Software Engineering and Methodology · 2026
- SWE-Journey: Towards More Realistic Evaluation of Coding Assistants through Long-Horizon, Multi-Turn InteractionarXiv · 2026
- Does Confusing Code Confuse LLMs? A Pilot Study on C++arXiv · 2026