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

DevFeed: [Feeling Easier, Working Harder: Cognitive Load in AI-Assisted Code Comprehension](<https://devfeed.tech/articles/feeling-easier-working-harder-cognitive-load-in-ai-assisted-code-comprehension-126220.md>)

Original publisher: [Read original article](<https://arxiv.org/abs/2611.12019>)

Author: Maryangela White, Maximilian Rose, Matthew Buckman, Amy McDonnell, Francisco Ortega, Bianca Trinkenreich

Published: 2026-11-10T05:00:00Z

Content type: article

Language: en

Sources: [arXiv: Artificial Intelligence](<https://devfeed.tech/sources/arxiv-artificial-intelligence.md>), [arXiv: Software Engineering](<https://devfeed.tech/sources/arxiv-software-engineering.md>)

Topics: [AI-assisted coding](<https://devfeed.tech/topics/ai-assisted-coding.md>), [Generative AI](<https://devfeed.tech/topics/generative-ai.md>), [generative-ai-tools](<https://devfeed.tech/topics/generative-ai-tools.md>)

Tags: [ai](<https://devfeed.tech/tags/ai.md>), [ai-assisted](<https://devfeed.tech/tags/ai-assisted.md>), [code](<https://devfeed.tech/tags/code.md>), [cognitive-load](<https://devfeed.tech/tags/cognitive-load.md>), [cs-ai](<https://devfeed.tech/tags/cs-ai.md>), [cs-se](<https://devfeed.tech/tags/cs-se.md>), [education](<https://devfeed.tech/tags/education.md>), [generative-ai](<https://devfeed.tech/tags/generative-ai.md>), [java](<https://devfeed.tech/tags/java.md>), [software-developers](<https://devfeed.tech/tags/software-developers.md>), [software-engineering](<https://devfeed.tech/tags/software-engineering.md>)

## AI overview

In a within-subjects study of 20 novice CS students reviewing Java snippets, AI assistance raised objective cognitive workload: tDRT reaction times increased 11.2%, while participants' reported workload did not change. Comprehension scores were high with and without AI, and the study found no improvement at the evaluated difficulty levels; a ceiling effect limited detection of benefits on harder tasks. Participants described checking AI explanations against their own reading for complex snippets but trusting them directly for simpler ones. Some shifted toward skimming code or relying on explanations. The findings suggest AI interaction can add cognitive effort that users may not perceive, though results come from novice students and the tested tasks.

## Source excerpt

arXiv:2611.12019v1 Announce Type: cross Abstract: 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.