arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2604.13277cs.SE
收藏

生成人工智能辅助软件工程项目中的理解债务

Comprehension Debt in GenAI-Assisted Software Engineering Projects

Karlstad University(卡尔斯特德大学)

Muhammad Ovais Ahmad

AI总结:

研究探讨生成人工智能工具在软件工程项目中导致理解债务的机制,识别四种积累模式和一种缓解模式,强调通过验证实践和结构化回顾减少集体认知债务。

摘要:

生成人工智能(GenAI)工具(如ChatGPT、Calude)已迅速成为软件开发的核心组成部分。这些工具尤其吸引学生,因其能降低认知负荷。然而,其采用也引入了社会认知风险:理解债务(CD)。CD指的是开发团队对代码库的理解与实际需要维护和修改时的理解之间的差距。本定性研究探讨了GenAI工具在本科软件工程项目中如何导致CD。我们的研究基于207名学生在八周内的621份反思日记。我们识别出学生使用GenAI工具时的四种CD积累模式和一种缓解模式。四种积累模式包括:(1)AI作为黑箱代码接受,(2)上下文不匹配债务,(3)依赖性导致的萎缩,(4)验证绕过。相比之下,缓解模式涉及学生将GenAI作为理解支架,从而深入理解代码。我们论证CD不同于传统技术债务,因为它存在于开发团队的集体认知中,而非代码库本身。我们的发现强调了在软件工程教育中需要明确的教育策略来缓解CD,强调验证实践、结构化回顾和主动学习评估。

英文摘要:

Generative Artificial Intelligence (GenAI) tools (e.g., ChatGPT, Calude) have rapidly become integral to software development. These tools are especially attractive to students, as they can reduce cognitive load. However, their adoption also introduces a socio-cognitive risk: the accumulation of Comprehension Debt (CD). CD refers to the growing gap between what a development team knows about its codebase and what it actually needs to understand in order to maintain and modify it effectively. This qualitative study investigate how GenAI tools contribute to CD in the context of an undergraduate software engineering project. Our study is based on 621 reflective diaries from 207 students over eight weeks. We identify four CD accumulation patterns and one mitigating pattern in students' use of GenAI tools. The four accumulation patterns include: (1) AI-as-black-box code acceptance, (2) context-mismatch debt, (3) dependency-induced atrophy, and (4) verification-bypass. In contrast, the mitigating pattern involves students using GenAI as a comprehension scaffold, allowing them to build a deeper understanding of the code. We argue that CD is distinct from traditional technical debt because it resides in the collective cognition of development teams rather than in the codebase itself. Our findings highlight the need for explicit pedagogical strategies to mitigate CD in software engineering education, emphasizing verification practices, structured retrospectives, and active learning assessments.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑