Large Language Models and Simple, Stupid Bugs
Not on the map. Why?
Abstract (arXiv)
With the advent of powerful neural language models, AI-based systems to assist developers in coding tasks are becoming widely available; Copilot is one such system. Copilot uses Codex, a large language model (LLM), to complete code conditioned on a preceding "prompt". Codex, however, is trained on public GitHub repositories, viz., on code that may include bugs and vulnerabilities. Previous studies [1], [2] show Codex reproduces vulnerabilities seen in training. In this study, we examine how prone Codex is to generate an interesting bug category, single statement bugs, commonly referred to as simple, stupid bugs or SStuBs in the MSR community. We find that Codex and similar LLMs do help avoid some SStuBs, but do produce known, verbatim SStuBs as much as 2x as likely than known, verbatim correct code. We explore the consequences of the Codex generated SStuBs and propose avoidance strategies that suggest the possibility of reducing the production of known, verbatim SStubs, and increase the possibility of producing known, verbatim fixes.
Key facts. Cited by 45 papers in the map (data through 7 Oct 2026). Builds on 39 of its 64 references that are in the map. First posted on arXiv 20 Mar 2023.
Builds on
39 of 64 references.
References · 39
- 2022Chain-of-Thought Prompting Elicits Reasoning in Large Language Modelscited by 12,302
- 2021Evaluating Large Language Models Trained on Codecited by 8,053
- 2022Large Language Models are Zero-Shot Reasonerscited by 4,323
- 2021Program Synthesis with Large Language Modelscited by 3,509
- 2021Pre-train, Prompt, and Predict: A Systematic Survey of Prompting Methods in Natural Language Processingcited by 2,222
- 2020CodeBERT: A Pre-Trained Model for Programming and Natural Languagescited by 1,286
- 2021CodeT5: Identifier-aware Unified Pre-trained Encoder-Decoder Models for Code Understanding and Generationcited by 890
- 2020GraphCodeBERT: Pre-training Code Representations with Data Flowcited by 600
- 2022InCoder: A Generative Model for Code Infilling and Synthesiscited by 492
- 2021Asleep at the Keyboard? Assessing the Security of GitHub Copilot's Code Contributionscited by 417
- 2021Unified Pre-training for Program Understanding and Generationcited by 361
- 2022A Systematic Evaluation of Large Language Models of Codecited by 360
27 more
- 2020Unsupervised Translation of Programming Languagescited by 262
- 2022Do Users Write More Insecure Code with AI Assistants?cited by 186
- 2020How Context Affects Language Models' Factual Predictionscited by 181
- 2018SequenceR: Sequence-to-Sequence Learning for End-to-End Program Repaircited by 144
- 2022Few-shot training LLMs for project-specific code-summarizationcited by 128
- 2018The Adverse Effects of Code Duplication in Machine Learning Models of Codecited by 123
- 2021Examining Zero-Shot Vulnerability Repair with Large Language Modelscited by 105
- 2021Jigsaw: Large Language Models meet Program Synthesiscited by 103
- 2022Evaluating the Text-to-SQL Capabilities of Large Language Modelscited by 101
- 2021A Neural Network Solves, Explains, and Generates University Math Problems by Program Synthesis and Few-Shot Learning at Human Levelcited by 96
- 2022Is GitHub's Copilot as Bad as Humans at Introducing Vulnerabilities in Code?cited by 63
- 2021Applying CodeBERT for Automated Program Repair of Java Simple Bugscited by 44
- 2022No More Fine-Tuning? An Experimental Evaluation of Prompt Tuning in Code Intelligencecited by 41
- 2022What is it like to program with artificial intelligence?cited by 39
- 2023Recommending Root-Cause and Mitigation Steps for Cloud Incidents using Large Language Modelscited by 38
- 2019How Often Do Single-Statement Bugs Occur? The ManySStuBs4J Datasetcited by 35
- 2021CodeTrans: Towards Cracking the Language of Silicon's Code Through Self-Supervised Deep Learning and High Performance Computingcited by 28
- 2021Automatic Program Repair with OpenAI's Codex: Evaluating QuixBugscited by 24
- 2021Choose Your Programming Copilot: A Comparison of the Program Synthesis Performance of GitHub Copilot and Genetic Programmingcited by 24
- 2022TSSB-3M: Mining single statement bugs at massive scalecited by 14
- 2022Codex Hacks HackerRank: Memorization Issues and a Framework for Code Synthesis Evaluationcited by 14
- 2021Solving Probability and Statistics Problems by Program Synthesiscited by 9
- 2022CodexDB: Generating Code for Processing SQL Queries using GPT-3 Codexcited by 5
- 2021On the Rise and Fall of Simple Stupid Bugs: a Life-Cycle Analysis of SStuBscited by 2
- 2021Mea culpa: How developers fix their own simple bugs differently from other developerscited by 2
- 2021A large-scale study on human-cloned changes for automated program repaircited by 2
- 2021On the Distribution of "Simple Stupid Bugs" in Unit Test Files: An Exploratory Studycited by 1
Built on by
Citing papers per year: 2023: 3; 2024: 21; 2025: 12; 2026: 9.
45 papers.
Sort:
By area:
- 2024Beyond Functional Correctness: Exploring Hallucinations in LLM-Generated Codecited by 106
- 2023Can ChatGPT replace StackOverflow? A Study on Robustness and Reliability of Large Language Model Code Generationcited by 72
- 2024Bugs in Large Language Models Generated Code: An Empirical Studycited by 59
- 2024Calibration and Correctness of Language Models for Codecited by 49
- 2024A Performance Study of LLM-Generated Code on Leetcodecited by 48
- 2024Securing Large Language Models: Threats, Vulnerabilities and Responsible Practicescited by 36
- 2024Automatic Programming: Large Language Models and Beyondcited by 35
- 2024Prompting Techniques for Secure Code Generation: A Systematic Investigationcited by 33
- 2024AlphaVerus: Bootstrapping Formally Verified Code Generation through Self-Improving Translation and Treefinementcited by 33
- 2024CodeHalu: Investigating Code Hallucinations in LLMs via Execution-based Verificationcited by 32
- 2025Correctness Assessment of Code Generated by Large Language Models Using Internal Representationscited by 17
- 2024LLM-Powered Code Vulnerability Repair with Reinforcement Learning and Semantic Rewardcited by 16
33 more
- 2024Calibration of Large Language Models on Code Summarizationcited by 12
- 2024Studying LLM Performance on Closed- and Open-source Datacited by 11
- 2024Code Security Vulnerability Repair Using Reinforcement Learning with Large Language Modelscited by 10
- 2026Goedel-Code-Prover: Hierarchical Proof Search for Open State-of-the-Art Code Verificationcited by 10
- 2024A Deep Dive Into Large Language Model Code Generation Mistakes: What and Why?cited by 9
- 2025Hallucination by Code Generation LLMs: Taxonomy, Benchmarks, Mitigation, and Challengescited by 9
- 2025Risk Assessment Framework for Code LLMs via Leveraging Internal Statescited by 8
- 2023A Language Model of Java Methods with Train/Test Deduplicationcited by 6
- 2024Impeding LLM-assisted Cheating in Introductory Programming Assignments via Adversarial Perturbationcited by 5
- 2024AIGCodeSet: A New Annotated Dataset for AI Generated Code Detectioncited by 5
- 2024Enhancing Source Code Security with LLMs: Demystifying The Challenges and Generating Reliable Repairscited by 4
- 2024Harnessing the Power of LLMs: Automating Unit Test Generation for High-Performance Computingcited by 3
- 2025Where's the Bug? Attention Probing for Scalable Fault Localizationcited by 3
- 2025Localized Calibrated Uncertainty in Code Language Modelscited by 3
- 2026What Breaks When LLMs Code? Characterizing Operational Safety Failures of Agentic Code Assistantscited by 3
- 2024N-Version Assessment and Enhancement of Generative AIcited by 2
- 2025MigGPT: Harnessing Large Language Models for Automated Migration of Out-of-Tree Linux Kernel Patches Across Versionscited by 2
- 2025MultiAIGCD: A Comprehensive dataset for AI Generated Code Detection Covering Multiple Languages, Models,Prompts, and Scenarioscited by 2
- 2025Multicalibration for LLM-based Code Generationcited by 2
- 2024Morescient GAI for Software Engineering (Extended Version)cited by 1
- 2024Software Model Evolution with Large Language Models: Experiments on Simulated, Public, and Industrial Datasetscited by 1
- 2025Investigating Security Implications of Automatically Generated Code on the Software Supply Chaincited by 1
- 2025Open the Oyster: Empirical Evaluation and Improvement of Code Reasoning Confidence in LLMscited by 1
- 2025Anka: A Domain-Specific Language for Reliable LLM Code Generationcited by 1
- 2026Model See, Model Do? Exposure-Aware Evaluation of Bug-vs-Fix Preference in Code LLMscited by 1
- 2026From LLMs to Agents in Programming: The Impact of Providing an LLM with a Compilercited by 1
- 2026SPELL: Synthesis of Programmatic Edits using LLMscited by 1
- 2026Bridging Generation and Training: A Systematic Review of Quality Issues in LLMs for Codecited by 1
- 2026FLARE: Fine-Grained Diagnostic Feedback for LLM Code Refinementcited by 1
- 2023Breaking the Silence: the Threats of Using LLMs in Software Engineeringcited by 0
- 2025Evaluating the Limitations of Local LLMs in Solving Complex Programming Challengescited by 0
- 2026Where Did the Variability Go? From Vibe Coding to Product Lines by Regenerationcited by 0
- 2026What is the Difference Between Me and You? Benchmarking the Quality Gap Between Human-Written and AI-Generated Codecited by 0
- 2026What is the Difference Between Me and You? Benchmarking the Quality Gap Between Human-Written and AI-Generated Code11 Sep 2026
- 2026Where Did the Variability Go? From Vibe Coding to Product Lines by Regeneration17 Jun 2026
- 2026FLARE: Fine-Grained Diagnostic Feedback for LLM Code Refinement2 Jun 2026
- 2026What Breaks When LLMs Code? Characterizing Operational Safety Failures of Agentic Code Assistants29 May 2026
- 2026Bridging Generation and Training: A Systematic Review of Quality Issues in LLMs for Code6 May 2026
- 2026Goedel-Code-Prover: Hierarchical Proof Search for Open State-of-the-Art Code Verification18 Mar 2026
- 2026SPELL: Synthesis of Programmatic Edits using LLMs1 Feb 2026
- 2026From LLMs to Agents in Programming: The Impact of Providing an LLM with a Compiler17 Jan 2026
- 2026Model See, Model Do? Exposure-Aware Evaluation of Bug-vs-Fix Preference in Code LLMs15 Jan 2026
- 2025Localized Calibrated Uncertainty in Code Language Models31 Dec 2025
- 2025Anka: A Domain-Specific Language for Reliable LLM Code Generation29 Dec 2025
- 2025Multicalibration for LLM-based Code Generation9 Dec 2025
33 more
- 2025Open the Oyster: Empirical Evaluation and Improvement of Code Reasoning Confidence in LLMs4 Nov 2025
- 2025Investigating Security Implications of Automatically Generated Code on the Software Supply Chain24 Sep 2025
- 2025Evaluating the Limitations of Local LLMs in Solving Complex Programming Challenges18 Sep 2025
- 2025MultiAIGCD: A Comprehensive dataset for AI Generated Code Detection Covering Multiple Languages, Models,Prompts, and Scenarios29 Jul 2025
- 2025Hallucination by Code Generation LLMs: Taxonomy, Benchmarks, Mitigation, and Challenges29 Apr 2025
- 2025Risk Assessment Framework for Code LLMs via Leveraging Internal States20 Apr 2025
- 2025MigGPT: Harnessing Large Language Models for Automated Migration of Out-of-Tree Linux Kernel Patches Across Versions13 Apr 2025
- 2025Where's the Bug? Attention Probing for Scalable Fault Localization19 Feb 2025
- 2025Correctness Assessment of Code Generated by Large Language Models Using Internal Representations22 Jan 2025
- 2024AIGCodeSet: A New Annotated Dataset for AI Generated Code Detection21 Dec 2024
- 2024AlphaVerus: Bootstrapping Formally Verified Code Generation through Self-Improving Translation and Treefinement9 Dec 2024
- 2024A Deep Dive Into Large Language Model Code Generation Mistakes: What and Why?3 Nov 2024
- 2024Impeding LLM-assisted Cheating in Introductory Programming Assignments via Adversarial Perturbation12 Oct 2024
- 2024N-Version Assessment and Enhancement of Generative AI21 Sep 2024
- 2024Enhancing Source Code Security with LLMs: Demystifying The Challenges and Generating Reliable Repairs1 Sep 2024
- 2024A Performance Study of LLM-Generated Code on Leetcode31 Jul 2024
- 2024Prompting Techniques for Secure Code Generation: A Systematic Investigation9 Jul 2024
- 2024Harnessing the Power of LLMs: Automating Unit Test Generation for High-Performance Computing6 Jul 2024
- 2024Software Model Evolution with Large Language Models: Experiments on Simulated, Public, and Industrial Datasets25 Jun 2024
- 2024Morescient GAI for Software Engineering (Extended Version)7 Jun 2024
- 2024Automatic Programming: Large Language Models and Beyond3 May 2024
- 2024CodeHalu: Investigating Code Hallucinations in LLMs via Execution-based Verification30 Apr 2024
- 2024Calibration of Large Language Models on Code Summarization30 Apr 2024
- 2024Beyond Functional Correctness: Exploring Hallucinations in LLM-Generated Code1 Apr 2024
- 2024Securing Large Language Models: Threats, Vulnerabilities and Responsible Practices19 Mar 2024
- 2024Bugs in Large Language Models Generated Code: An Empirical Study13 Mar 2024
- 2024Studying LLM Performance on Closed- and Open-source Data23 Feb 2024
- 2024Calibration and Correctness of Language Models for Code3 Feb 2024
- 2024Code Security Vulnerability Repair Using Reinforcement Learning with Large Language Models13 Jan 2024
- 2024LLM-Powered Code Vulnerability Repair with Reinforcement Learning and Semantic Reward7 Jan 2024
- 2023Breaking the Silence: the Threats of Using LLMs in Software Engineering13 Dec 2023
- 2023Can ChatGPT replace StackOverflow? A Study on Robustness and Reliability of Large Language Model Code Generation20 Aug 2023
- 2023A Language Model of Java Methods with Train/Test Deduplication15 May 2023
- 2024Beyond Functional Correctness: Exploring Hallucinations in LLM-Generated Codecited by 106
- 2023Can ChatGPT replace StackOverflow? A Study on Robustness and Reliability of Large Language Model Code Generationcited by 72
- 2024Bugs in Large Language Models Generated Code: An Empirical Studycited by 59
- 2024Calibration and Correctness of Language Models for Codecited by 49
- 2024A Performance Study of LLM-Generated Code on Leetcodecited by 48
- 2024Securing Large Language Models: Threats, Vulnerabilities and Responsible Practicescited by 36
- 2024Automatic Programming: Large Language Models and Beyondcited by 35
- 2024Prompting Techniques for Secure Code Generation: A Systematic Investigationcited by 33
- 2024CodeHalu: Investigating Code Hallucinations in LLMs via Execution-based Verificationcited by 32
- 2025Correctness Assessment of Code Generated by Large Language Models Using Internal Representationscited by 17
- 2024LLM-Powered Code Vulnerability Repair with Reinforcement Learning and Semantic Rewardcited by 16
- 2024Calibration of Large Language Models on Code Summarizationcited by 12
12 most cited of 41 All 41 (JSON)
- 2026What is the Difference Between Me and You? Benchmarking the Quality Gap Between Human-Written and AI-Generated Code11 Sep 2026
- 2026Where Did the Variability Go? From Vibe Coding to Product Lines by Regeneration17 Jun 2026
- 2026FLARE: Fine-Grained Diagnostic Feedback for LLM Code Refinement2 Jun 2026
- 2026Bridging Generation and Training: A Systematic Review of Quality Issues in LLMs for Code6 May 2026
- 2026Goedel-Code-Prover: Hierarchical Proof Search for Open State-of-the-Art Code Verification18 Mar 2026
- 2026SPELL: Synthesis of Programmatic Edits using LLMs1 Feb 2026
- 2026Model See, Model Do? Exposure-Aware Evaluation of Bug-vs-Fix Preference in Code LLMs15 Jan 2026
- 2025Localized Calibrated Uncertainty in Code Language Models31 Dec 2025
- 2025Anka: A Domain-Specific Language for Reliable LLM Code Generation29 Dec 2025
- 2025Multicalibration for LLM-based Code Generation9 Dec 2025
- 2025Investigating Security Implications of Automatically Generated Code on the Software Supply Chain24 Sep 2025
- 2025Evaluating the Limitations of Local LLMs in Solving Complex Programming Challenges18 Sep 2025
12 newest of 41 All 41 (JSON)