GitHub Copilot AI pair programmer: Asset or Liability?

Authors: Arghavan Moradi Dakhel (Jack), Vahid Majdinasab (Jack), Amin Nikanjam (Jack), Foutse Khomh (Jack), Michel C. Desmarais (Jack), Zhen Ming (Jack), Jiang

Submitted to arXiv on 30 Jun. 2022
Abstract

Automatic program synthesis is a long-lasting dream in software engineering. Recently, a promising Deep Learning (DL) based solution, called Copilot, has been proposed by Open AI and Microsoft as an industrial product. Although some studies evaluate the correctness of Copilot solutions and report its issues, more empirical evaluations are necessary to understand how developers can benefit from it effectively. In this paper, we study the capabilities of Copilot in two different programming tasks: (1) generating (and reproducing) correct and efficient solutions for fundamental algorithmic problems, and (2) comparing Copilot's proposed solutions with those of human programmers on a set of programming tasks. For the former, we assess the performance and functionality of Copilot in solving selected fundamental problems in computer science, like sorting and implementing basic data structures. In the latter, a dataset of programming problems with human-provided solutions is used. The results show that Copilot is capable of providing solutions for almost all fundamental algorithmic problems, however, some solutions are buggy and non-reproducible. Moreover, Copilot has some difficulties in combining multiple methods to generate a solution. Comparing Copilot to humans, our results show that the correct ratio of human solutions is greater than Copilot's correct ratio, while the buggy solutions generated by Copilot require less effort to be repaired. While Copilot shows limitations as an assistant for developers especially in advanced programming tasks, as highlighted in this study and previous ones, it can generate preliminary solutions for basic programming tasks.

The papers around it, by date and closeness

Higher is closer to this paper; left is older. Lines join papers close to each other: groups of lines are sub-topics. Select a point to see why it is there. Back to the summary of this paper

How to read this map? Illustrated guide

Closest papers Prior work it builds on Papers that cite it

Papers around this one

Ranked by how close their title and abstract are to this paper’s. Select some to read them together.

Closest papers

  1. Very close Broader context
    Practices and Challenges of Using GitHub Copilot: An Empirical Study
    Beiqi Zhang, Peng Liang, Xiyu Zhou et al. · 2023 · Software Engineering · cited 86 times · AI summary available

    This study analyzes Stack Overflow posts and GitHub Discussions to describe developers’ practices and challenges when using Copilot.

    Abstract

    With the advances in machine learning, there is a growing interest in AI-enabled tools for autocompleting source code. GitHub Copilot, also referred to as the "AI Pair Programmer", has been trained on billions of lines of open source GitHub code, and is one of such tools that has been increasingly used since its launch on June 2021. However, little effort has been devoted to understanding the practices and challenges of using Copilot in programming with auto-completed source code. To this end, we conducted an empirical study by collecting and analyzing the data from Stack Overflow (SO) and GitHub Discussions. More specifically, we searched and manually collected 169 SO posts and 655 GitHub d…

  2. Very close Broader context
    On the Concerns of Developers When Using GitHub Copilot
    Xiyu Zhou, Peng Liang, Beiqi Zhang et al. · 2023 · Software Engineering · cited 48 times · AI summary available

    This study examines developers’ experiences and challenges with Copilot, rather than testing its generated solutions against programming problems.

    Abstract

    With the recent advancement of Artificial Intelligence (AI) and the emergence of Large Language Models (LLMs), AI-based code generation tools have achieved significant progress and become a practical solution for software development. GitHub Copilot, referred to as AI pair programmer, utilizes machine learning models that are trained on a large corpus of code snippets to generate code suggestions or auto-complete code using natural language processing. Despite its popularity, there is little empirical evidence on the actual experiences of software developers who work with Copilot. To this end, we conducted an empirical study to understand the issues and challenges that developers face when u…

  3. Very close Another approach to the problem Cited by this paper Used in depth by this paper A method it uses
    An Empirical Evaluation of GitHub Copilot's Code Suggestions
    N. Nguyen, S. Nadi · 2022 · IEEE Working Conference on Mining Software Repositories · cited 430 times · Not summarized yet

    This study tests Copilot’s correctness and understandability on LeetCode problems, a related evaluation of generated code.

    Abstract

    GitHub and OpenAI recently launched Copilot, an “AI pair programmer” that utilizes the power of Natural Language Processing, Static Analysis, Code Synthesis, and Artificial Intelligence. Given a natural language description of the target functionality, Copilot can generate corresponding code in several programming languages. In this paper, we perform an empirical study to evaluate the correctness and understandability of Copilot's suggested code. We use 33 LeetCode questions to create queries for Copilot in four different programming languages. We evaluate the correctness of the corresponding 132 Copilot solutions by running LeetCode's provided tests, and evaluate understandability using Son…

  4. Very close Same method, another problem Cites this paper
    Can We Trust the AI Pair Programmer? Copilot for API Misuse Detection and Correction
    Saikat Mondal, C. Roy, Hong Wang et al. · 2025 · Conference of the Centre for Advanced Studies on Collaborative Research · Not summarized yet

    This study evaluates Copilot’s ability to detect and correct API misuse, applying empirical assessment of generated code to a security task.

    Abstract

    API misuse introduces security vulnerabilities, system failures, and increases maintenance costs, all of which remain critical challenges in software development. Existing detection approaches rely on static analysis or machine learning-based tools that operate post-development, which delays defect resolution. Delayed defect resolution can significantly increase the cost and complexity of maintenance and negatively impact software reliability and user trust. AI-powered code assistants, such as GitHub Copilot, offer the potential for real-time API misuse detection within development environments. This study evaluates GitHub Copilot's effectiveness in identifying and correcting API misuse usin…

  5. Very close Another approach to the problem Cites this paper
    Assessing and Analyzing the Correctness of GitHub Copilot’s Code Suggestions
    Ran Mo, Dongyu Wang, W. Zhan et al. · 2025 · ACM Transactions on Software Engineering and Methodology · cited 20 times · Not summarized yet

    This study assesses Copilot’s correctness on LeetCode problems across four languages, extending evaluation to a larger problem set.

    Abstract

    AI programming has become a popular topic in recent years. Code suggestion, with code suggestion being a key capability of AI programming. Copilot, an “AI programmer” that provides code suggestions from natural language descriptions, has been launched by GitHub and OpenAI. By far, Copilot has been widely used by millions of developers. However, little work has systematically evaluated the correctness of Copilot’s suggestions. We conducted an empirical study on all 2,033 LeetCode problems to assess Copilot’s code generation across four mainstream languages: C, Java, JavaScript, and Python. We have found that: (1) 70.0% of problems received at least one correct suggestion, with language-specif…

  6. Very close Same method, another problem Cited by this paper Cites this paper
    Is GitHub’s Copilot as bad as humans at introducing vulnerabilities in code?
    Owura Asare, M. Nagappan, Nirmal Asokan · 2022 · Empirical Software Engineering · cited 210 times · Not summarized yet

    This study compares Copilot-generated code with human code, focusing on whether both introduce vulnerabilities.

    Abstract

    Several advances in deep learning have been successfully applied to the software development process. Of recent interest is the use of neural language models to build tools, such as Copilot, that assist in writing code. In this paper we perform a comparative empirical analysis of Copilot-generated code from a security perspective. The aim of this study is to determine if Copilot is as bad as human developers. We investigate whether Copilot is just as likely to introduce the same software vulnerabilities as human developers. Using a dataset of C/C++ vulnerabilities, we prompt Copilot to generate suggestions in scenarios that led to the introduction of vulnerabilities by human developers. The …

  7. Very close Same question
    Exploring Copilot Github to Automatically Solve Programming Problems in Computer Science Courses
    Clemente Rubio, Fabián Mella, Claudia Martínez et al. · 2023 · International Conference of the Chilean Computer Science Society · cited 2 times · Not summarized yet

    This study experimentally evaluates Copilot’s ability to solve programming problems in computer science courses.

    Abstract

    In recent times, the field of computer programming has experienced a significant revolution, thanks to advancements in machine learning. Applications have emerged with the capability to generate source code from natural language descriptions. These tools primarily utilize language models based on deep learning, which have been trained on a collection of programs and projects hosted in public repositories. One of these tools is Github Copilot, an artificial intelligence capable of generating source code that can be integrated as an extension into development environments. The objective of this study is to experimentally explore, analyze, and evaluate the suggestions made by the Github Copilot…

  8. Very close Review Cited by this paper
    The Potential of Artificial Intelligence as a Method of Software Developer's Productivity Improvement
    E. Moroz, Vladimir O. Grizkevich, I. M. Novozhilov · 2022 · 2022 Conference of Russian Young Researchers in Electrical and Electronic Engineering (ElConRus) · cited 19 times · Not summarized yet

    This paper reviews Copilot’s capabilities, limitations, and development prospects, including code correctness and safety.

    Abstract

    Artificial Intelligence finds application at all stages of Software Engineering, and uses the Neural Networks, Machine Learning, Natural Language Processing concepts. This paper attempts to review the instance of such approach - neural network programmer’s assistant Copilot, based on Codex, the AI system developed by OpenAI. The differences between Codex language model’s versions and analogous systems were analyzed. The main problems and gaps of this innovation, such as correct commands formulation, copyrighting, safety issues, inefficient code, good practice examples and restrictions are also considered. Additionally, the opportunities for Copilot’s growth, development and possible features…

Prior work it builds on

  1. Close Broader context Used in depth by this paper A method it uses
    Expectation vs. Experience: Evaluating the Usability of Code Generation Tools Powered by Large Language Models
    Priyan Vaithilingam, Tianyi Zhang, Elena L. Glassman · 2022 · CHI Extended Abstracts · cited 869 times · Not summarized yet

    This user study examines how programmers use and perceive Copilot during programming tasks.

    Abstract

    Recent advances in Large Language Models (LLM) have made automatic code generation possible for real-world programming tasks in general-purpose programming languages such as Python. However, there are few human studies on the usability of these tools and how they fit the programming workflow. In this work, we conducted a within-subjects user study with 24 participants to understand how programmers use and perceive Copilot, a LLM-based code generation tool. We found that, while Copilot did not necessarily improve the task completion time or success rate, most participants preferred to use Copilot in daily programming tasks, since Copilot often provided a useful starting point and saved the ef…

  2. Close Broader context
    Is GitHub Copilot a Substitute for Human Pair-programming? An Empirical Study
    Saki Imai · 2022 · 2022 IEEE/ACM 44th International Conference on Software Engineering: Companion Proceedings (ICSE-Companion) · cited 221 times · Not summarized yet

    This experiment compares Copilot-assisted programming with human pair programming on productivity and code quality.

    Abstract

    This empirical study investigates the effectiveness of pair programming with GitHub Copilot in comparison to human pair-programming. Through an experiment with 21 participants we focus on code productivity and code quality. For experimental design, a participant was given a project to code, under three conditions presented in a randomized order. The conditions are pair-programming with Copilot, human pair-programming as a driver, and as a navigator. The codes generated from the three trials were analyzed to determine how many lines of code on average were added in each condition and how many lines of code on average were removed in the subsequent stage. The former measures the productivity o…

  3. Close Same method, another problem
    Asleep at the Keyboard? Assessing the Security of GitHub Copilot’s Code Contributions
    H. Pearce, Baleegh Ahmad, Benjamin Tan et al. · 2021 · IEEE Symposium on Security and Privacy · cited 1,103 times · Not summarized yet

    This study systematically tests Copilot’s code contributions for security weaknesses, rather than algorithmic correctness and repair effort.

    Abstract

    There is burgeoning interest in designing AI-based systems to assist humans in designing computing systems, including tools that automatically generate computer code. The most notable of these comes in the form of the first self-described ‘AI pair programmer’, GitHub Copilot, which is a language model trained over open-source GitHub code. However, code often contains bugs—and so, given the vast quantity of unvetted code that Copilot has processed, it is certain that the language model will have learned from exploitable, buggy code. This raises concerns on the security of Copilot’s code contributions. In this work, we systematically investigate the prevalence and conditions that can cause Git…

  4. Close Broader context
    Productivity assessment of neural code completion
    Albert Ziegler, E. Kalliamvakou, X. Li et al. · 2022 · MAPS@PLDI · cited 347 times · Not summarized yet

    This case study relates developers’ perceived productivity from Copilot to measured suggestion acceptance and code persistence.

    Abstract

    Neural code synthesis has reached a point where snippet generation is accurate enough to be considered for integration into human software development workflows. Commercial products aim to increase programmers’ productivity, without being able to measure it directly. In this case study, we asked users of GitHub Copilot about its impact on their productivity, and sought to find a reflection of their perception in directly measurable user data. We find that the rate with which shown suggestions are accepted, rather than more specific metrics regarding the persistence of completions in the code over time, drives developers’ perception of productivity.

  5. Related Broader context Used in depth by this paper
    Competition-level code generation with AlphaCode
    Yujia Li, David Choi, Junyoung Chung et al. · 2022 · Science · cited 2,692 times · Not summarized yet

    AlphaCode generates solutions to competitive programming problems, addressing code-generation capability beyond Copilot’s basic algorithmic tasks.

    Abstract

    Programming is a powerful and ubiquitous problem-solving tool. Systems that can assist programmers or even generate programs themselves could make programming more productive and accessible. Recent transformer-based neural network models show impressive code generation abilities yet still perform poorly on more complex tasks requiring problem-solving skills, such as competitive programming problems. Here, we introduce AlphaCode, a system for code generation that achieved an average ranking in the top 54.3% in simulated evaluations on recent programming competitions on the Codeforces platform. AlphaCode solves problems by generating millions of diverse programs using specially trained transfo…

Papers that cite it

  1. Close Another approach to the problem
    Benchmarking ChatGPT, Codeium, and GitHub Copilot: A Comparative Study of AI-Driven Programming and Debugging Assistants
    Md Sultanul Islam Ovi, Nafisa Anjum, Tasmina Haque Bithe et al. · 2024 · 2024 27th International Conference on Computer and Information Technology (ICCIT) · cited 6 times · Not summarized yet

    This study benchmarks Copilot alongside ChatGPT and Codeium on LeetCode problems using correctness and efficiency measures.

    Abstract

    With the increasing adoption of AI-driven tools in software development, large language models (LLMs) have become essential for tasks like code generation, bug fixing, and optimization. Tools like ChatGPT, GitHub Copilot, and Codeium provide valuable assistance in solving programming challenges, yet their effectiveness remains underexplored. This paper presents a comparative study of ChatGPT, Codeium, and GitHub Copilot, evaluating their performance on LeetCode problems across varying difficulty levels and categories. Key metrics such as success rates, runtime efficiency, memory usage, and error-handling capabilities are assessed. GitHub Copilot showed superior performance on easier and medi…

  2. Close Broader context
    "My productivity is boosted, but …" Demystifying Users’ Perception on AI Coding Assistants
    Yunbo Lyu, Zhou Yang, Jie-Ke Shi et al. · 2025 · International Conference on Automated Software Engineering · cited 15 times · Not summarized yet

    This study analyzes users’ reviews of AI coding assistants to identify perceived benefits and criticisms in daily work.

    Abstract

    This paper aims to explore fundamental questions in the era when AI coding assistants like GitHub Copilot are widely adopted: what do developers truly value and criticize in AI coding assistants, and what does this reveal about their needs and expectations in real-world software development? Unlike previous studies that conduct observational research in controlled and simulated environments, we analyze extensive, first-hand user reviews of AI coding assistants, which capture developers’ authentic perspectives and experiences drawn directly from their actual day-to-day work contexts. We identify 1,085 AI coding assistants from the Visual Studio Code Marketplace. Although they only account for…

  3. Close Same method, another problem
    Security Weaknesses of Copilot-Generated Code in GitHub Projects: An Empirical Study
    Yujia Fu, Peng Liang, Amjed Tahir et al. · 2025 · ACM Transactions on Software Engineering and Methodology · cited 131 times · Not summarized yet

    This study empirically evaluates Copilot-generated code, focusing on security in open-source projects rather than correctness on programming tasks.

    Abstract

    Modern code generation tools utilizing AI models like Large Language Models have gained increased popularity due to their ability to produce functional code. However, their usage presents security challenges, often resulting in insecure code merging into the code base. Thus, evaluating the quality of generated code, especially its security, is crucial. While prior research explored various aspects of code generation, the focus on security has been limited, mostly examining code produced in controlled environments rather than open source development scenarios. To address this gap, we conducted an empirical study, analyzing code snippets generated by GitHub Copilot and two other AI code genera…

  4. Close Broader context
    The Impact of Generative AI on Collaborative Open-Source Software Development: Evidence from GitHub Copilot
    Fan Song, A. Agarwal, Wen Wen · 2024 · Social Science Research Network · cited 55 times · Not summarized yet

    This study measures Copilot’s effects on open-source project contributions and developer participation.

    Abstract

    Generative artificial intelligence (AI) facilitates content production and enhances ideation, with potentially important implications for developer productivity and participation in software development. To explore its impact on collaborative open-source software (OSS) development, we investigate the role of GitHub Copilot, a generative AI pair programmer, in OSS development where multiple distributed developers voluntarily collaborate. Using GitHub's proprietary Copilot usage data, combined with public OSS project data obtained from GitHub, we find that Copilot use increases project-level code contributions by 5.9%. This gain is accompanied by a 3.4% increase in developer coding participati…

  5. Close Broader context
    AI or Ally? Understanding Student Reliance on GitHub Copilot and Human Peers Through Eye Tracking
    George Salib, Zohreh Sharafi · 2026 · IEEE Transactions on Software Engineering · Not summarized yet

    This eye-tracking study compares novice programmers’ performance and reliance with Copilot or a human peer.

    Abstract

    As AI-powered tools like GitHub Copilot become increasingly integrated into development workflows, it’s essential to understand how developers—particularly novices—interact with these systems compared to traditional peer collaboration. This paper presents a within-subjects eye-tracking study of novice developers completing programming tasks with assistance from either GitHub Copilot or a human peer. We evaluate participants’ task performance, visual attention patterns, and perceived reliance on the assistant. Results show that participants achieved significantly higher correctness scores with Copilot (50%) than with peers (32%), but also spent more time and exhibited higher cognitive load. P…

How are these papers found?

We compare the title and abstract of this paper with those of every paper summarized on this site, and with the papers Semantic Scholar recommends, those it cites and those citing it (for a much-cited paper, its most recent citations and, from OpenAlex, the most cited ones). Among the prior work and the follow-ups, the papers that use each other in depth, a method it uses and the much-cited follow-ups come a little higher. The levels (very close, close, related) come from the similarity of the texts, not from a judgment of quality; * marks a paper without an abstract, compared by its title. The sentence under a paper is written by an AI from the two abstracts: check it in the papers. A paper marked not relevant by three readers leaves the list.

Updated on 6 November 2026.

The illustrated guide to the papers around a paper