Can ChatGPT replace StackOverflow? A Study on Robustness and Reliability of Large Language Model Code Generation
Not on the map. Why?
Abstract (arXiv)
Recently, the large language models (LLMs) have shown extraordinary ability in understanding natural language and generating programming code. It has been a common practice of software engineers to consult LLMs when encountering coding questions. Although efforts have been made to avoid syntax errors and align the code with the intended semantics, the reliability and robustness of the code generationfrom LLMs have not yet been thoroughly studied. The executable code is not equivalent to the reliable and robust code, especially in the context of real-world software development. The misuse of APIs in the generated code could lead to severe problem, such as resource leaks, program crashes. To make things worse, the users of LLM code generation services are actually the developers that are most vulnerable to these code that seems right -- They are always novice developers that are not familiar with the APIs that LLMs generate code for them. Therefore, they could hardly tell the misuse in the code generated by LLMs, which further facilitates the incorrect code applied in real-world software. Existing code evaluation benchmark and datasets focus on crafting small tasks such as programming questions in coding interviews, which however deviates from the problem that developers would ask LLM for real-world coding help. To fill the missing piece, in this work, we propose a dataset RobustAPI for evaluating the reliability and robustness of code generated by LLMs. We collect 1208 coding questions from StackOverflow on 24 representative Java APIs. We summarize thecommon misuse patterns of these APIs and evaluate them oncurrent popular LLMs. The evaluation results show that evenfor GPT-4, 62% of the generated code contains API misuses,which would cause unexpected consequences if the code isintroduced into real-world software.
Key facts. Cited by 72 papers in the map (data through 7 Oct 2026). Builds on 17 of its 27 references that are in the map. First posted on arXiv 20 Aug 2023.
Builds on
17 of 27 references.
References · 17
- 2023Llama 2: Open Foundation and Fine-Tuned Chat Modelscited by 12,865
- 2021Evaluating Large Language Models Trained on Codecited by 8,053
- 2021Program Synthesis with Large Language Modelscited by 3,509
- 2023Is Your Code Generated by ChatGPT Really Correct? Rigorous Evaluation of Large Language Models for Code Generationcited by 1,332
- 2023Gorilla: Large Language Model Connected with Massive APIscited by 1,302
- 2021Measuring Coding Challenge Competence With APPScited by 879
- 2021Asleep at the Keyboard? Assessing the Security of GitHub Copilot's Code Contributionscited by 417
- 2022A Systematic Evaluation of Large Language Models of Codecited by 360
- 2023A Comprehensive Capability Analysis of GPT-3 and GPT-3.5 Series Modelscited by 244
- 2022Do Users Write More Insecure Code with AI Assistants?cited by 186
- 2018Learning to Mine Aligned Code and Natural Language Pairs from Stack Overflowcited by 165
- 2022Lost at C: A User Study on the Security Implications of Large Language Model Code Assistantscited by 87
5 more
- 2023PanGu-Coder2: Boosting Large Language Models for Code with Ranking Feedbackcited by 69
- 2023Large Language Models and Simple, Stupid Bugscited by 45
- 2017Stack Overflow Considered Harmful? The Impact of Copy&Paste on Android Application Securitycited by 11
- 2016From Query to Usable Code: An Analysis of Stack Overflow Code Snippetscited by 6
- 2018DeepSeek: Content Based Image Search & Retrievalcited by 2
Built on by
Citing papers per year: 2023: 5; 2024: 24; 2025: 31; 2026: 12.
72 papers.
Sort:
By area:
- 2024Large Language Model-Brained GUI Agents: A Surveycited by 160
- 2023Purple Llama CyberSecEval: A Secure Coding Benchmark for Language Modelscited by 130
- 2024Beyond Functional Correctness: Exploring Hallucinations in LLM-Generated Codecited by 106
- 2024LLM Hallucinations in Practical Code Generation: Phenomena, Mechanism, and Mitigationcited by 92
- 2024Language Models Still Struggle to Zero-shot Reason about Time Seriescited by 81
- 2025A Survey of AI Agent Protocolscited by 77
- 2024OfficeBench: Benchmarking Language Agents across Multiple Applications for Office Automationcited by 66
- 2023Zero-Shot Goal-Directed Dialogue via RL on Imagined Conversationscited by 38
- 2024Benchmarks as Microscopes: A Call for Model Metrologycited by 33
- 2024AlphaVerus: Bootstrapping Formally Verified Code Generation through Self-Improving Translation and Treefinementcited by 33
- 2025STARK: Strategic Team of Agents for Refining Kernelscited by 23
- 2025A Study of LLMs' Preferences for Libraries and Programming Languagescited by 20
38 more
- 2024NLPerturbator: Studying the Robustness of Code LLMs to Natural Language Variationscited by 19
- 2024Causal Evaluation of Language Modelscited by 18
- 2024Scaling Up Video Summarization Pretraining with Large Language Modelscited by 17
- 2023LLM4VV: Developing LLM-Driven Testsuite for Compiler Validationcited by 15
- 2024APEX: An Extensible and Dynamism-Aware Simulator for Automated Parallel Execution in LLM Servingcited by 15
- 2025Beyond Final Code: A Process-Oriented Error Analysis of Software Development Agents in Real-World GitHub Scenarioscited by 14
- 2025SecRepoBench: Benchmarking Code Agents for Secure Code Completion in Real-World Repositoriescited by 14
- 2025AMSbench: A Comprehensive Benchmark for Evaluating MLLM Capabilities in AMS Circuitscited by 14
- 2024VerMCTS: Synthesizing Multi-Step Programs using a Verifier, a Large Language Model, and Tree Searchcited by 13
- 2024Collu-Bench: A Benchmark for Predicting Language Model Hallucinations in Codecited by 13
- 2023From Chatbots to PhishBots? -- Preventing Phishing scams created using ChatGPT, Google Bard and Claudecited by 12
- 2023Resolving the Imbalance Issue in Hierarchical Disciplinary Topic Inference via LLM-based Data Augmentationcited by 11
- 2025Planning without Search: Refining Frontier LLMs with Offline Goal-Conditioned RLcited by 11
- 2025Generative AI and Empirical Software Engineering: A Paradigm Shiftcited by 9
- 2025Hallucination by Code Generation LLMs: Taxonomy, Benchmarks, Mitigation, and Challengescited by 9
- 2024OOP: Object-Oriented Programming Evaluation Benchmark for Large Language Modelscited by 8
- 2024Is ChatGPT a Good Software Librarian? An Exploratory Study on the Use of ChatGPT for Software Library Recommendationscited by 7
- 2025Dialogue Benchmark Generation from Knowledge Graphs with Cost-Effective Retrieval-Augmented LLMscited by 7
- 2026ChipBench: A Next-Step Benchmark for Evaluating LLM Performance in AI-Aided Chip Designcited by 7
- 2024CRQBench: A Benchmark of Code Reasoning Questionscited by 6
- 2025Assessing and Enhancing the Robustness of LLM-based Multi-Agent Systems Through Chaos Engineeringcited by 6
- 2024Prefix Guidance: A Steering Wheel for Large Language Models to Defend Against Jailbreak Attackscited by 5
- 2025Evaluating and Improving Robustness in Large Language Models: A Survey and Future Directionscited by 5
- 2025SkipKV: Selective Skipping of KV Generation and Storage for Efficient Inference with Large Reasoning Modelscited by 5
- 2025QiMeng-Attention: SOTA Attention Operator is generated by SOTA Attention Algorithmcited by 4
- 2024Harnessing the Power of LLMs: Automating Unit Test Generation for High-Performance Computingcited by 3
- 2025Benchmarking AI Models in Software Engineering: A Review, Search Tool, and Unified Approach for Elevating Benchmark Qualitycited by 3
- 2025Understanding and Bridging the Planner-Coder Gap: A Systematic Study on the Robustness of Multi-Agent Systems for Code Generationcited by 3
- 2024Evaluating LLMs on Entity Disambiguation in Tablescited by 2
- 2025Evaluating LLMs on Sequential API Call Through Automated Test Generationcited by 2
- 2025How Robust are LLM-Generated Library Imports? An Empirical Study using Stack Overflowcited by 2
- 2025VerilogLAVD: LLM-Aided Rule Generation for Vulnerability Detection in Verilogcited by 2
- 2025IaC Generation with LLMs: An Error Taxonomy and A Study on Configuration Knowledge Injectioncited by 2
- 2024QACP: An Annotated Question Answering Dataset for Assisting Chinese Python Programming Learnerscited by 1
- 2025Goal2Story: A Multi-Agent Fleet based on Privately Enabled sLLMs for Impacting Mapping on Requirements Elicitationcited by 1
- 2025DMind Benchmark: Toward a Holistic Assessment of LLM Capabilities across the Web3 Domaincited by 1
- 2025LLMs on a Budget? Say HOLAcited by 1
- 2025Investigating Security Implications of Automatically Generated Code on the Software Supply Chaincited by 1
50 most cited of 72 All 72 (JSON)
- 2026Reinforcing Agentic Creativity in Scientific Ideation with Night Science28 Sep 2026
- 2026Do Influence Tactics Matter? Investigating Prompt Framing Effects in LLM Code Generation11 Aug 2026
- 2026Beyond "What to Retrieve": Uncertainty in Retrieval-Augmented Code Generation27 Jul 2026
- 2026Position: AI Lock-In Is in Progress, and We Must Be Prepared28 May 2026
- 2026Characterizing Readability Issue Patterns and the Role of Prompt Design in LLM-Generated Code13 May 2026
- 2026Vibe-Coding: Feedback-Based Automated Verification with no Human Code Inspection, a Feasibility Study16 Apr 2026
- 2026Stage-Aware Communication Scheduling for Disaggregated LLM Serving18 Mar 2026
- 2026Security-by-Design for LLM-Based Code Generation: Leveraging Internal Representations for Concept-Driven Steering Mechanisms11 Mar 2026
- 2026Large language models for spreading dynamics in complex systems8 Feb 2026
- 2026GradingAttack: Exposing Security Vulnerabilities in LLM Based Educational Grading Agents1 Feb 2026
- 2026ChipBench: A Next-Step Benchmark for Evaluating LLM Performance in AI-Aided Chip Design29 Jan 2026
- 2026Model See, Model Do? Exposure-Aware Evaluation of Bug-vs-Fix Preference in Code LLMs15 Jan 2026
38 more
- 2025IaC Generation with LLMs: An Error Taxonomy and A Study on Configuration Knowledge Injection16 Dec 2025
- 2025SkipKV: Selective Skipping of KV Generation and Storage for Efficient Inference with Large Reasoning Models8 Dec 2025
- 2025From Model to Breach: Towards Actionable LLM-Generated Vulnerabilities Reporting6 Nov 2025
- 2025QiMeng-NeuComBack: Self-Evolving Translation from IR to Assembly Code3 Nov 2025
- 2025STARK: Strategic Team of Agents for Refining Kernels19 Oct 2025
- 2025Do AI Models Dream of Faster Code? An Empirical Study on LLM-Proposed Performance Improvements in Real-World Software17 Oct 2025
- 2025Understanding and Bridging the Planner-Coder Gap: A Systematic Study on the Robustness of Multi-Agent Systems for Code Generation12 Oct 2025
- 2025Learning Linear Regression with Low-Rank Tasks in-Context6 Oct 2025
- 2025Library Hallucinations in LLM-Generated Code: A Risk Analysis Grounded in Developer Queries26 Sep 2025
- 2025Investigating Security Implications of Automatically Generated Code on the Software Supply Chain24 Sep 2025
- 2025VerilogLAVD: LLM-Aided Rule Generation for Vulnerability Detection in Verilog18 Aug 2025
- 2025StackPilot: Autonomous Function Agents for Scalable and Environment-Free Code Execution6 Aug 2025
- 2025How Robust are LLM-Generated Library Imports? An Empirical Study using Stack Overflow14 Jul 2025
- 2025Evaluating LLMs on Sequential API Call Through Automated Test Generation13 Jul 2025
- 2025LLMs on a Budget? Say HOLA23 Jun 2025
- 2025QiMeng-Attention: SOTA Attention Operator is generated by SOTA Attention Algorithm14 Jun 2025
- 2025code_transformed: The Influence of Large Language Models on Code13 Jun 2025
- 2025Evaluating and Improving Robustness in Large Language Models: A Survey and Future Directions8 Jun 2025
- 2025AMSbench: A Comprehensive Benchmark for Evaluating MLLM Capabilities in AMS Circuits30 May 2025
- 2025Planning without Search: Refining Frontier LLMs with Offline Goal-Conditioned RL23 May 2025
- 2025Assessing and Enhancing the Robustness of LLM-based Multi-Agent Systems Through Chaos Engineering6 May 2025
- 2025SecRepoBench: Benchmarking Code Agents for Secure Code Completion in Real-World Repositories29 Apr 2025
- 2025Hallucination by Code Generation LLMs: Taxonomy, Benchmarks, Mitigation, and Challenges29 Apr 2025
- 2025A Survey of AI Agent Protocols23 Apr 2025
- 2025DMind Benchmark: Toward a Holistic Assessment of LLM Capabilities across the Web3 Domain18 Apr 2025
- 2025A Study of LLMs' Preferences for Libraries and Programming Languages21 Mar 2025
- 2025Goal2Story: A Multi-Agent Fleet based on Privately Enabled sLLMs for Impacting Mapping on Requirements Elicitation17 Mar 2025
- 2025Beyond Final Code: A Process-Oriented Error Analysis of Software Development Agents in Real-World GitHub Scenarios16 Mar 2025
- 2025Benchmarking AI Models in Software Engineering: A Review, Search Tool, and Unified Approach for Elevating Benchmark Quality7 Mar 2025
- 2025Generative AI and Empirical Software Engineering: A Paradigm Shift12 Feb 2025
- 2025Dialogue Benchmark Generation from Knowledge Graphs with Cost-Effective Retrieval-Augmented LLMs17 Jan 2025
- 2024AlphaVerus: Bootstrapping Formally Verified Code Generation through Self-Improving Translation and Treefinement9 Dec 2024
- 2024Large Language Model-Brained GUI Agents: A Survey27 Nov 2024
- 2024APEX: An Extensible and Dynamism-Aware Simulator for Automated Parallel Execution in LLM Serving26 Nov 2024
- 2024Collu-Bench: A Benchmark for Predicting Language Model Hallucinations in Code13 Oct 2024
- 2024LLM Hallucinations in Practical Code Generation: Phenomena, Mechanism, and Mitigation30 Sep 2024
- 2024A Disguised Wolf Is More Harmful Than a Toothless Tiger: Adaptive Malicious Code Injection Backdoor Attack Leveraging User Behavior as Triggers19 Aug 2024
- 2024Prefix Guidance: A Steering Wheel for Large Language Models to Defend Against Jailbreak Attacks15 Aug 2024
50 newest of 72 All 72 (JSON)
- 2024Large Language Model-Brained GUI Agents: A Surveycited by 160
- 2025A Survey of AI Agent Protocolscited by 77
- 2024OfficeBench: Benchmarking Language Agents across Multiple Applications for Office Automationcited by 66
- 2025STARK: Strategic Team of Agents for Refining Kernelscited by 23
- 2025Beyond Final Code: A Process-Oriented Error Analysis of Software Development Agents in Real-World GitHub Scenarioscited by 14
- 2025SecRepoBench: Benchmarking Code Agents for Secure Code Completion in Real-World Repositoriescited by 14
- 2025Assessing and Enhancing the Robustness of LLM-based Multi-Agent Systems Through Chaos Engineeringcited by 6
- 2025Understanding and Bridging the Planner-Coder Gap: A Systematic Study on the Robustness of Multi-Agent Systems for Code Generationcited by 3
- 2025Evaluating LLMs on Sequential API Call Through Automated Test Generationcited by 2
- 2025Goal2Story: A Multi-Agent Fleet based on Privately Enabled sLLMs for Impacting Mapping on Requirements Elicitationcited by 1
- 2025StackPilot: Autonomous Function Agents for Scalable and Environment-Free Code Executioncited by 0
- 2026GradingAttack: Exposing Security Vulnerabilities in LLM Based Educational Grading Agentscited by 0
12 most cited of 13 All 13 (JSON)
- 2026Reinforcing Agentic Creativity in Scientific Ideation with Night Science28 Sep 2026
- 2026GradingAttack: Exposing Security Vulnerabilities in LLM Based Educational Grading Agents1 Feb 2026
- 2025STARK: Strategic Team of Agents for Refining Kernels19 Oct 2025
- 2025Understanding and Bridging the Planner-Coder Gap: A Systematic Study on the Robustness of Multi-Agent Systems for Code Generation12 Oct 2025
- 2025StackPilot: Autonomous Function Agents for Scalable and Environment-Free Code Execution6 Aug 2025
- 2025Evaluating LLMs on Sequential API Call Through Automated Test Generation13 Jul 2025
- 2025Assessing and Enhancing the Robustness of LLM-based Multi-Agent Systems Through Chaos Engineering6 May 2025
- 2025SecRepoBench: Benchmarking Code Agents for Secure Code Completion in Real-World Repositories29 Apr 2025
- 2025A Survey of AI Agent Protocols23 Apr 2025
- 2025Goal2Story: A Multi-Agent Fleet based on Privately Enabled sLLMs for Impacting Mapping on Requirements Elicitation17 Mar 2025
- 2025Beyond Final Code: A Process-Oriented Error Analysis of Software Development Agents in Real-World GitHub Scenarios16 Mar 2025
- 2024Large Language Model-Brained GUI Agents: A Survey27 Nov 2024
12 newest of 13 All 13 (JSON)
- 2024Language Models Still Struggle to Zero-shot Reason about Time Seriescited by 81
- 2024Causal Evaluation of Language Modelscited by 18
- 2024VerMCTS: Synthesizing Multi-Step Programs using a Verifier, a Large Language Model, and Tree Searchcited by 13
- 2024CRQBench: A Benchmark of Code Reasoning Questionscited by 6
- 2025SkipKV: Selective Skipping of KV Generation and Storage for Efficient Inference with Large Reasoning Modelscited by 5
- 2024Can't say cant? Measuring and Reasoning of Dark Jargons in Large Language Modelscited by 0
- 2025SkipKV: Selective Skipping of KV Generation and Storage for Efficient Inference with Large Reasoning Models8 Dec 2025
- 2024CRQBench: A Benchmark of Code Reasoning Questions15 Aug 2024
- 2024Causal Evaluation of Language Models1 May 2024
- 2024Can't say cant? Measuring and Reasoning of Dark Jargons in Large Language Models25 Apr 2024
- 2024Language Models Still Struggle to Zero-shot Reason about Time Series17 Apr 2024
- 2024VerMCTS: Synthesizing Multi-Step Programs using a Verifier, a Large Language Model, and Tree Search13 Feb 2024
- 2025Dialogue Benchmark Generation from Knowledge Graphs with Cost-Effective Retrieval-Augmented LLMscited by 7
- 2025IaC Generation with LLMs: An Error Taxonomy and A Study on Configuration Knowledge Injectioncited by 2
- 2026Beyond "What to Retrieve": Uncertainty in Retrieval-Augmented Code Generationcited by 1
- 2026Beyond "What to Retrieve": Uncertainty in Retrieval-Augmented Code Generation27 Jul 2026
- 2025IaC Generation with LLMs: An Error Taxonomy and A Study on Configuration Knowledge Injection16 Dec 2025
- 2025Dialogue Benchmark Generation from Knowledge Graphs with Cost-Effective Retrieval-Augmented LLMs17 Jan 2025
- 2023Purple Llama CyberSecEval: A Secure Coding Benchmark for Language Modelscited by 130
- 2024Beyond Functional Correctness: Exploring Hallucinations in LLM-Generated Codecited by 106
- 2024LLM Hallucinations in Practical Code Generation: Phenomena, Mechanism, and Mitigationcited by 92
- 2023Zero-Shot Goal-Directed Dialogue via RL on Imagined Conversationscited by 38
- 2024Benchmarks as Microscopes: A Call for Model Metrologycited by 33
- 2025A Study of LLMs' Preferences for Libraries and Programming Languagescited by 20
- 2024NLPerturbator: Studying the Robustness of Code LLMs to Natural Language Variationscited by 19
- 2024Scaling Up Video Summarization Pretraining with Large Language Modelscited by 17
- 2023LLM4VV: Developing LLM-Driven Testsuite for Compiler Validationcited by 15
- 2025AMSbench: A Comprehensive Benchmark for Evaluating MLLM Capabilities in AMS Circuitscited by 14
- 2024Collu-Bench: A Benchmark for Predicting Language Model Hallucinations in Codecited by 13
- 2023From Chatbots to PhishBots? -- Preventing Phishing scams created using ChatGPT, Google Bard and Claudecited by 12
12 most cited of 44 All 44 (JSON)
- 2026Do Influence Tactics Matter? Investigating Prompt Framing Effects in LLM Code Generation11 Aug 2026
- 2026Position: AI Lock-In Is in Progress, and We Must Be Prepared28 May 2026
- 2026Characterizing Readability Issue Patterns and the Role of Prompt Design in LLM-Generated Code13 May 2026
- 2026Vibe-Coding: Feedback-Based Automated Verification with no Human Code Inspection, a Feasibility Study16 Apr 2026
- 2026Security-by-Design for LLM-Based Code Generation: Leveraging Internal Representations for Concept-Driven Steering Mechanisms11 Mar 2026
- 2026Large language models for spreading dynamics in complex systems8 Feb 2026
- 2026ChipBench: A Next-Step Benchmark for Evaluating LLM Performance in AI-Aided Chip Design29 Jan 2026
- 2026Model See, Model Do? Exposure-Aware Evaluation of Bug-vs-Fix Preference in Code LLMs15 Jan 2026
- 2025From Model to Breach: Towards Actionable LLM-Generated Vulnerabilities Reporting6 Nov 2025
- 2025Do AI Models Dream of Faster Code? An Empirical Study on LLM-Proposed Performance Improvements in Real-World Software17 Oct 2025
- 2025Learning Linear Regression with Low-Rank Tasks in-Context6 Oct 2025
- 2025Library Hallucinations in LLM-Generated Code: A Risk Analysis Grounded in Developer Queries26 Sep 2025
12 newest of 44 All 44 (JSON)