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

迈向包容性AI驱动的开发:探索代码生成工具交互中的性别差异

Toward Inclusive AI-Driven Development: Exploring Gender Differences in Code Generation Tool Interactions

University of British Columbia(不列颠哥伦比亚大学);Federal University of Pará(帕拉联邦大学)

Manaal Basha, Ivan Beschastnikh, Gema Rodriguez-Perez, Cleidson R. B. de Souza

AI总结:

本研究以39名性别均衡的开发者为对象,探究CGTs交互的性别差异,发现CGTs可降低认知负荷、提升复杂编码任务绩效,且对不同性别用户的核心编程表现无显著影响。

摘要:

对代码生成工具(Code Generation Tools,CGTs)的依赖日益增强,例如Claude Code和GitHub Copilot,正在重塑编程工作流程,并引发关于人机协作中公平性与包容性的关键问题。尽管CGTs有望提升生产力,但尚未充分研究其在不同用户群体中的有效性。我们假设开发者与CGTs的交互会因性别不同而存在差异,进而影响任务结果与认知负荷,因为已有研究表明性别差异会影响技术使用与认知加工。本研究采用混合被试设计,共39名参与者,按性别平均分组以实现平衡设计。参与者使用两种不同处理方式完成两项中高难度编程任务:仅CGTs辅助和仅互联网访问。任务顺序与条件经过平衡以减轻顺序效应。我们收集了认知负荷调查、屏幕录制以及任务绩效指标,如完成时间、代码正确性和CGTs交互行为。结果显示,与基于互联网的工作流程相比,使用CGTs时在认知负荷或绩效结果方面无统计学意义上的性别差异;与基于互联网的工作流程相比,CGTs会降低内在和外在认知负荷,但该降低无统计学意义;不过,CGTs提升了高级代码的正确性。我们的结果表明,CGTs可降低认知负荷并提升复杂编码任务的绩效,且不会显著影响核心正确性或完成时间。这些发现凸显了CGTs的使用如何减轻认知负担,并支持为不同用户提供更公平的编程体验。

英文摘要:

The increasing reliance on Code Generation Tools (CGTs), such as Claude Code and GitHub Copilot, is revamping programming workflows and raising critical questions about fairness and inclusivity in human-AI collaboration. While CGTs offer potential productivity enhancements, their effectiveness across diverse user groups have not been sufficiently investigated. We hypothesized that developers' interactions with CGTs vary based on gender, influencing task outcomes and cognitive load, as prior research suggests that gender differences can affect technology use and cognitive processing. This study employed a mixed-subjects design with 39 participants, evenly divided by gender for a counterbalanced design. Participants completed two programming tasks of medium to high difficulty using two distinct treatments: only CGT assistance and only internet access. Task orders and conditions were counterbalanced to mitigate order effects. We collected cognitive load surveys, screen recordings, and task performance metrics such as completion time, code correctness, and CGT interaction behaviors. Our results indicate no statistically significant gender differences in cognitive load or performance outcomes when using CGTs compared to Internet-based workflows. CGTs reduce intrinsic and extraneous cognitive load compared to Internet based workflows, but the reduction was not statistically significantly. However, CGTs improved advanced code correctness. Our results suggest that CGTs can lower cognitive load and enhance performance on complex coding tasks without significantly affecting core correctness or completion time. These findings highlight how CGT usage can reduce cognitive burden and support more equitable programming experiences across users.

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

↑