On the Robustness of Code Generation Techniques: An Empirical Study on GitHub Copilot
Not on the map. Why?
Abstract (arXiv)
Software engineering research has always being concerned with the improvement of code completion approaches, which suggest the next tokens a developer will likely type while coding. The release of GitHub Copilot constitutes a big step forward, also because of its unprecedented ability to automatically generate even entire functions from their natural language description. While the usefulness of Copilot is evident, it is still unclear to what extent it is robust. Specifically, we do not know the extent to which semantic-preserving changes in the natural language description provided to the model have an effect on the generated code function. In this paper we present an empirical study in which we aim at understanding whether different but semantically equivalent natural language descriptions result in the same recommended function. A negative answer would pose questions on the robustness of deep learning (DL)-based code generators since it would imply that developers using different wordings to describe the same code would obtain different recommendations. We asked Copilot to automatically generate 892 Java methods starting from their original Javadoc description. Then, we generated different semantically equivalent descriptions for each method both manually and automatically, and we analyzed the extent to which predictions generated by Copilot changed. Our results show that modifying the description results in different code recommendations in ~46% of cases. Also, differences in the semantically equivalent descriptions might impact the correctness of the generated code ~28%.
Key facts. Cited by 64 papers in the map (data through 7 Oct 2026). First posted on arXiv 1 Feb 2023.
Builds on
No reference list yet.
Built on by
Citing papers per year: 2023: 11; 2024: 16; 2025: 17; 2026: 20.
64 papers.
Sort:
By area:
- 2023VerilogEval: Evaluating Large Language Models for Verilog Code Generationcited by 246
- 2024Bugs in Large Language Models Generated Code: An Empirical Studycited by 59
- 2025LessLeak-Bench: A First Investigation of Data Leakage in LLMs Across 83 Software Engineering Benchmarkscited by 34
- 2023Vulnerabilities in AI Code Generators: Exploring Targeted Data Poisoning Attackscited by 29
- 2024Beyond Code Generation: An Observational Study of ChatGPT Usage in Software Engineering Practicecited by 25
- 2025Agent READMEs: An Empirical Study of Context Files for Agentic Codingcited by 21
- 2023Trustworthy and Synergistic Artificial Intelligence for Software Engineering: Vision and Roadmapscited by 19
- 2024NLPerturbator: Studying the Robustness of Code LLMs to Natural Language Variationscited by 19
- 2023Exploring the Robustness of Large Language Models for Solving Programming Problemscited by 16
- 2025CodeCrash: Exposing LLM Fragility to Misleading Natural Language in Code Reasoningcited by 14
- 2024Investigating Large Language Models for Code Vulnerability Detection: An Experimental Studycited by 11
- 2023Pitfalls in Language Models for Code Intelligence: A Taxonomy and Surveycited by 9
38 more
- 2023Turbulence: Systematically and Automatically Testing Instruction-Tuned Large Language Models for Codecited by 9
- 2024Exploring Human-AI Collaboration in Agile: Customised LLM Meeting Assistantscited by 9
- 2025TuRTLe: A Unified Evaluation of LLMs for RTL Generationcited by 8
- 2024PPM: Automated Generation of Diverse Programming Problems for Benchmarking Code Generation Modelscited by 7
- 2024Analyzing Prompt Influence on Automated Method Generation: An Empirical Study with Copilotcited by 6
- 2024Enhancing Security of AI-Based Code Synthesis with GitHub Copilot via Cheap and Efficient Prompt-Engineeringcited by 6
- 2025Memorize or Generalize? Evaluating LLM Code Generation with Code Rewritingcited by 6
- 2025CodeMirage: A Multi-Lingual Benchmark for Detecting AI-Generated and Paraphrased Source Code from Production-Level LLMscited by 6
- 2023Out of Context: How important is Local Context in Neural Program Repair?cited by 5
- 2023A Comprehensive Evaluation of Parameter-Efficient Fine-Tuning on Software Engineering Taskscited by 5
- 2025Human-AI Experience in Integrated Development Environments: A Systematic Literature Reviewcited by 5
- 2023An Empirical Study of AI-based Smart Contract Creationcited by 4
- 2024Efficacy of Various Large Language Models in Generating Smart Contractscited by 4
- 2025Evaluating the Effectiveness of LLMs in Fixing Maintainability Issues in Real-World Projectscited by 4
- 2025TFHE-Coder: Evaluating LLM-agentic Fully Homomorphic Encryption Code Generationcited by 4
- 2023Enhancing Robustness of AI Offensive Code Generators via Data Augmentationcited by 3
- 2024Chain of Targeted Verification Questions to Improve the Reliability of Code Generated by LLMscited by 3
- 2024Impact of AI-tooling on the Engineering Workspacecited by 3
- 2024TaskEval: Assessing Difficulty of Code Generation Tasks for Large Language Modelscited by 3
- 2024Enhancing AI-based Generation of Software Exploits with Contextual Informationcited by 3
- 2025Smaller = Weaker? Benchmarking Robustness of Quantized LLMs in Code Generationcited by 3
- 2025Understanding and Bridging the Planner-Coder Gap: A Systematic Study on the Robustness of Multi-Agent Systems for Code Generationcited by 3
- 2026Agentic AI in Industry: Adoption Level and Deployment Barrierscited by 3
- 2024Optimizing AI-Assisted Code Generationcited by 2
- 2026TrajGuard: Streaming Hidden-state Trajectory Detection for Decoding-time Jailbreak Defensecited by 2
- 2026Defective Task Descriptions in LLM-Based Code Generation: Detection and Analysiscited by 2
- 2024The Rise and Fall(?) of Software Engineeringcited by 1
- 2025The Role of GitHub Copilot on Software Development: A Perspective on Productivity, Security, Best Practices and Future Directionscited by 1
- 2025User Perceptions vs. Proxy LLM Judges: Privacy and Helpfulness in LLM Responses to Privacy-Sensitive Scenarioscited by 1
- 2026TOSSS: a CVE-based Software Security Benchmark for Large Language Modelscited by 1
- 2026Interrogating Design Homogenization in Web Vibe Codingcited by 1
- 2023A new solution and concrete implementation steps for Artificial General Intelligencecited by 0
- 2024A Preliminary Study of Multilingual Code Language Models for Code Generation Task Using Translated Benchmarkscited by 0
- 2025Contamination Means Overestimation? A Fine-Grained Empirical Study in Code Intelligencecited by 0
- 2025Feedback Loops and Code Perturbations in LLM-based Software Engineering: A Case Study on a C-to-Rust Translation Systemcited by 0
- 2025Learning to Code with Context: A Study-Based Approachcited by 0
- 2025SeBERTis: A Framework for Producing Classifiers of Security-Related Issue Reportscited by 0
- 2026Human-Aligned Enhancement of Programming Answers with LLMs Guided by User Feedbackcited by 0
50 most cited of 64 All 64 (JSON)
- 2026CS-Guard: Benchmarking LLM Guardrails for Code Generation Security9 Sep 2026
- 2026CIT-CAD: Constraint Intent Tree-based CAD Code Generation and Verification7 Sep 2026
- 2026WiseSpec: Requirements-Driven Agents for Code Generation1 Sep 2026
- 2026A Jagged Frontier: Evaluating Robustness of Code Agents to Semantics-Preserving Transformations18 Aug 2026
- 2026Memorization Diagnostics for Code LLMs Should be Scale-Aware13 Aug 2026
- 2026Test Coverage Analysis of Agentic Pull Requests20 Jul 2026
- 2026Large Language Models for Code Generation from Multilingual Prompts: A Curated Benchmark and a Study on Code Quality16 Jul 2026
- 2026Quantize with Confidence? An Empirical Study of Quantization for Code Generation15 Jul 2026
- 2026A Benchmark and Framework for Evaluating Next Action Predictions in Spreadsheets11 Jun 2026
- 2026Agentic AI in Industry: Adoption Level and Deployment Barriers14 May 2026
- 2026Defective Task Descriptions in LLM-Based Code Generation: Detection and Analysis27 Apr 2026
- 2026Characterizing Paraphrase-Induced Failures in Lean 4 Autoformalization25 Apr 2026
38 more
- 2026TrajGuard: Streaming Hidden-state Trajectory Detection for Decoding-time Jailbreak Defense9 Apr 2026
- 2026Interrogating Design Homogenization in Web Vibe Coding13 Mar 2026
- 2026Design-Specification Tiling for ICL-based CAD Code Generation13 Mar 2026
- 2026TOSSS: a CVE-based Software Security Benchmark for Large Language Models11 Mar 2026
- 2026Operational Robustness of LLMs on Code Generation21 Feb 2026
- 2026Fine-Tuning LLMs to Generate Economical and Reliable Actions for the Power Grid17 Feb 2026
- 2026PELLI: Framework to effectively integrate LLMs for quality software generation11 Feb 2026
- 2026Human-Aligned Enhancement of Programming Answers with LLMs Guided by User Feedback24 Jan 2026
- 2025SeBERTis: A Framework for Producing Classifiers of Security-Related Issue Reports17 Dec 2025
- 2025Learning to Code with Context: A Study-Based Approach4 Dec 2025
- 2025Feedback Loops and Code Perturbations in LLM-based Software Engineering: A Case Study on a C-to-Rust Translation System2 Dec 2025
- 2025Agent READMEs: An Empirical Study of Context Files for Agentic Coding17 Nov 2025
- 2025User Perceptions vs. Proxy LLM Judges: Privacy and Helpfulness in LLM Responses to Privacy-Sensitive Scenarios23 Oct 2025
- 2025Understanding and Bridging the Planner-Coder Gap: A Systematic Study on the Robustness of Multi-Agent Systems for Code Generation12 Oct 2025
- 2025Smaller = Weaker? Benchmarking Robustness of Quantized LLMs in Code Generation28 Jun 2025
- 2025Contamination Means Overestimation? A Fine-Grained Empirical Study in Code Intelligence3 Jun 2025
- 2025CodeMirage: A Multi-Lingual Benchmark for Detecting AI-Generated and Paraphrased Source Code from Production-Level LLMs27 May 2025
- 2025CodeCrash: Exposing LLM Fragility to Misleading Natural Language in Code Reasoning19 Apr 2025
- 2025TuRTLe: A Unified Evaluation of LLMs for RTL Generation31 Mar 2025
- 2025TFHE-Coder: Evaluating LLM-agentic Fully Homomorphic Encryption Code Generation15 Mar 2025
- 2025Human-AI Experience in Integrated Development Environments: A Systematic Literature Review8 Mar 2025
- 2025Memorize or Generalize? Evaluating LLM Code Generation with Code Rewriting4 Mar 2025
- 2025The Role of GitHub Copilot on Software Development: A Perspective on Productivity, Security, Best Practices and Future Directions18 Feb 2025
- 2025LessLeak-Bench: A First Investigation of Data Leakage in LLMs Across 83 Software Engineering Benchmarks10 Feb 2025
- 2025Evaluating the Effectiveness of LLMs in Fixing Maintainability Issues in Real-World Projects4 Feb 2025
- 2024Investigating Large Language Models for Code Vulnerability Detection: An Experimental Study24 Dec 2024
- 2024Optimizing AI-Assisted Code Generation14 Dec 2024
- 2024A Preliminary Study of Multilingual Code Language Models for Code Generation Task Using Translated Benchmarks23 Nov 2024
- 2024Enhancing AI-based Generation of Software Exploits with Contextual Information5 Aug 2024
- 2024TaskEval: Assessing Difficulty of Code Generation Tasks for Large Language Models30 Jul 2024
- 2024Efficacy of Various Large Language Models in Generating Smart Contracts28 Jun 2024
- 2024NLPerturbator: Studying the Robustness of Code LLMs to Natural Language Variations28 Jun 2024
- 2024The Rise and Fall(?) of Software Engineering14 Jun 2024
- 2024Impact of AI-tooling on the Engineering Workspace11 Jun 2024
- 2024Chain of Targeted Verification Questions to Improve the Reliability of Code Generated by LLMs22 May 2024
- 2024Beyond Code Generation: An Observational Study of ChatGPT Usage in Software Engineering Practice23 Apr 2024
- 2024Exploring Human-AI Collaboration in Agile: Customised LLM Meeting Assistants23 Apr 2024
- 2024Enhancing Security of AI-Based Code Synthesis with GitHub Copilot via Cheap and Efficient Prompt-Engineering19 Mar 2024
50 newest of 64 All 64 (JSON)
- 2025Agent READMEs: An Empirical Study of Context Files for Agentic Codingcited by 21
- 2025TFHE-Coder: Evaluating LLM-agentic Fully Homomorphic Encryption Code Generationcited by 4
- 2025Understanding and Bridging the Planner-Coder Gap: A Systematic Study on the Robustness of Multi-Agent Systems for Code Generationcited by 3
- 2026Agentic AI in Industry: Adoption Level and Deployment Barrierscited by 3
- 2026Test Coverage Analysis of Agentic Pull Requestscited by 0
- 2026A Jagged Frontier: Evaluating Robustness of Code Agents to Semantics-Preserving Transformationscited by 0
- 2026WiseSpec: Requirements-Driven Agents for Code Generationcited by 0
- 2026WiseSpec: Requirements-Driven Agents for Code Generation1 Sep 2026
- 2026A Jagged Frontier: Evaluating Robustness of Code Agents to Semantics-Preserving Transformations18 Aug 2026
- 2026Test Coverage Analysis of Agentic Pull Requests20 Jul 2026
- 2026Agentic AI in Industry: Adoption Level and Deployment Barriers14 May 2026
- 2025Agent READMEs: An Empirical Study of Context Files for Agentic Coding17 Nov 2025
- 2025Understanding and Bridging the Planner-Coder Gap: A Systematic Study on the Robustness of Multi-Agent Systems for Code Generation12 Oct 2025
- 2025TFHE-Coder: Evaluating LLM-agentic Fully Homomorphic Encryption Code Generation15 Mar 2025
- 2023VerilogEval: Evaluating Large Language Models for Verilog Code Generationcited by 246
- 2024Bugs in Large Language Models Generated Code: An Empirical Studycited by 59
- 2025LessLeak-Bench: A First Investigation of Data Leakage in LLMs Across 83 Software Engineering Benchmarkscited by 34
- 2024Beyond Code Generation: An Observational Study of ChatGPT Usage in Software Engineering Practicecited by 25
- 2023Trustworthy and Synergistic Artificial Intelligence for Software Engineering: Vision and Roadmapscited by 19
- 2024NLPerturbator: Studying the Robustness of Code LLMs to Natural Language Variationscited by 19
- 2023Exploring the Robustness of Large Language Models for Solving Programming Problemscited by 16
- 2024Investigating Large Language Models for Code Vulnerability Detection: An Experimental Studycited by 11
- 2023Pitfalls in Language Models for Code Intelligence: A Taxonomy and Surveycited by 9
- 2023Turbulence: Systematically and Automatically Testing Instruction-Tuned Large Language Models for Codecited by 9
- 2024Exploring Human-AI Collaboration in Agile: Customised LLM Meeting Assistantscited by 9
- 2025TuRTLe: A Unified Evaluation of LLMs for RTL Generationcited by 8
12 most cited of 52 All 52 (JSON)
- 2026CIT-CAD: Constraint Intent Tree-based CAD Code Generation and Verification7 Sep 2026
- 2026Memorization Diagnostics for Code LLMs Should be Scale-Aware13 Aug 2026
- 2026Large Language Models for Code Generation from Multilingual Prompts: A Curated Benchmark and a Study on Code Quality16 Jul 2026
- 2026Quantize with Confidence? An Empirical Study of Quantization for Code Generation15 Jul 2026
- 2026A Benchmark and Framework for Evaluating Next Action Predictions in Spreadsheets11 Jun 2026
- 2026Defective Task Descriptions in LLM-Based Code Generation: Detection and Analysis27 Apr 2026
- 2026Characterizing Paraphrase-Induced Failures in Lean 4 Autoformalization25 Apr 2026
- 2026Interrogating Design Homogenization in Web Vibe Coding13 Mar 2026
- 2026Design-Specification Tiling for ICL-based CAD Code Generation13 Mar 2026
- 2026TOSSS: a CVE-based Software Security Benchmark for Large Language Models11 Mar 2026
- 2026Operational Robustness of LLMs on Code Generation21 Feb 2026
- 2026Fine-Tuning LLMs to Generate Economical and Reliable Actions for the Power Grid17 Feb 2026
12 newest of 52 All 52 (JSON)