Search and Filter

Repository Feedback

Your feedback helps us improve the repository's content relevance and usability. Please share your thoughts to help us better serve researchers and practitioners.

Submit feedback

Submit a research study

Contribute to the repository:

Add a paper

Faster But Not Wiser: Github Copilot Decouples Programming Performance From Code Comprehension In Brownfield Tasks

Date
Publisher
arXiv
Teaching Computer Science (CS) students to comprehend and maintain existing codebases is a critical challenge in software engineering education. Although Generative AI (GenAI) assistants such as GitHub Copilot can improve task completion speed and correctness, their relationship with code comprehension remains unclear. We conducted a within-subjects study with 15 CS graduate students who completed feature-implementation tasks in an unfamiliar codebase with and without Copilot. Despite significant performance improvements with Copilot, participants showed no corresponding improvement in overall comprehension ($p=0.59$), and performance gains were not significantly associated with comprehension gains. Exploratory category-level estimates were positive for identifying what and where to modify ($ρ=0.50$) and negative for explaining how the existing code worked and predicting the effects of a change ($ρ=-0.57$); however, neither remained significant after correction for multiple comparisons. Our behavioral analysis showed that participants with higher comprehension engaged more frequently in verification loops, repeatedly inspecting and revising code. They performed write-then-view transitions 4.7 times more often than participants with lower comprehension ($p=0.001$). These findings show that successful task completion does not reliably indicate code comprehension and suggest that how students engage with AI-generated code may matter for their resulting understanding. We argue for programming education that assesses correctness and comprehension separately, teaches students to inspect and explain AI-generated code, and encourages GenAI tools that support active verification.
Study at a glance
  • Question: How does GitHub Copilot affect students' code comprehension and programming behaviors when modifying unfamiliar codebases?
  • Setting and data: Online asynchronous graduate course at a western US university, 15 computer science graduate students, modifying an unfamiliar web application.
  • Method: Within-subjects experiment comparing tasks completed with and without Copilot, using comprehension assessments and video-based behavioral coding.
Why it matters

Teaching computer science students to comprehend and maintain existing codebases is a critical challenge. Whether performance improvements from generative AI assistants translate into code comprehension remains unclear.

Key findings
  • Copilot reduced completion time by 50.7 percent and increased passed tests by 71.4 percent, but participants showed no corresponding improvement in overall comprehension.
  • Performance improvements with Copilot were not significantly correlated with overall code comprehension gains, showing a decoupling between task performance and understanding.
  • Higher-comprehension participants performed write-then-view verification loops 4.7 times more often and spent significantly more time writing code rather than passively viewing Copilot responses.

Summary drafted with AI from the full paper and may contain errors. See the full paper for details.

What is the application?
Who is the user?
Who age?