mlsanityData to 24 Nov 2026

Feeling Easier, Working Harder: Cognitive Load in AI-Assisted Code Comprehension

arXiv 2611.12019 ↗Submitted 9 Nov 2026cs.SE cs.AIcited by 0

Not on the map. Why?

Abstract (arXiv)

Software developers spend significant time reading and understanding code, increasingly supplemented by generative AI. While these tools aim to reduce the difficulty of reading code, interacting with them introduces a dual-task environment that may impose extraneous cognitive load that is challenging to capture. This study investigates how access to generative AI affects developers' real-time cognitive workload, code comprehension performance, and self-perceived code comprehension strategies. We conducted a 3x2 within-subjects study with 20 novice CS students reviewing Java code snippets of varying lengths with or without AI assistance, followed by an AI-unassisted comprehension quiz. Cognitive workload was continuously captured using a Detection-Response Task (tDRT) during both reading and quiz phases, and compared to post-quiz NASA-TLX and SEQ scores. AI assistance significantly increased objective cognitive workload, raising tDRT reaction times by 11.2%, yet participants' perceived workload remained unchanged. Code comprehension scores were high under both conditions, with no evidence that AI assistance improved comprehension at the difficulty levels evaluated; a ceiling effect limited power to detect benefits on harder tasks. Qualitatively, participants reported trusting the AI conditionally -verifying its output against their own reading for more complex snippets, but directly trusting it for simpler code- and, while many felt their reading process was unchanged, a notable subset shifted toward skimming or reading the AI's explanations in place of the code itself. These findings reveal that developers do not accurately perceive the cognitive resources they expend when managing AI tools. This study provides evidence of added cognitive effort associated with using generative AI, pointing towards a need to account for this dual-task penalty in software engineering tools and education.

Key facts. No citing papers in the map yet (data through 24 Nov 2026). Builds on 11 of its 50 references that are in the map. Submitted 9 Nov 2026.

Builds on

11 of 50 references.

References · 11

  1. 2023Using an LLM to Help With Code Understandingcited by 234
  2. 2022Do Users Write More Insecure Code with AI Assistants?cited by 202
  3. 2022Reading Between the Lines: Modeling User Behavior and Costs in AI-Assisted Programmingcited by 97
  4. 2024Exploring the Design Space of Cognitive Engagement Techniques with AI-Generated Code for Enhanced Learningcited by 18
  5. 2025Towards Decoding Developer Cognition in the Age of AI Assistantscited by 4
  6. 2026"I'm Not Reading All of That": Understanding Software Engineers' Level of Cognitive Engagement with Agentic Coding Assistantscited by 4
  7. 2026The efficiency-gain illusion: People underestimate the rate of AI use and overestimate its benefits on simple taskscited by 3
  8. 202240 Years of Designing Code Comprehension Experiments: A Systematic Mapping Studycited by 2
  9. 2025Understanding Codebase like a Professional! Human-AI Collaboration for Code Comprehensioncited by 1
  10. 2025A Systematic Literature Review of the Use of GenAI Assistants for Code Comprehension: Implications for Computing Education Research and Practicecited by 1
  11. 2025AILINKPREVIEWER: Enhancing Code Reviews with LLM-Powered Link Previewscited by 1

Built on by

Not cited yet.