mlsanityData to 7 Oct 2026

Can ChatGPT replace StackOverflow? A Study on Robustness and Reliability of Large Language Model Code Generation

arXiv 2308.10335 ↗First posted 20 Aug 2023cs.CL cs.AI cs.SEcited by 72

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

  1. 2023Llama 2: Open Foundation and Fine-Tuned Chat Modelscited by 12,865
  2. 2021Evaluating Large Language Models Trained on Codecited by 8,053
  3. 2021Program Synthesis with Large Language Modelscited by 3,509
  4. 2023Is Your Code Generated by ChatGPT Really Correct? Rigorous Evaluation of Large Language Models for Code Generationcited by 1,332
  5. 2023Gorilla: Large Language Model Connected with Massive APIscited by 1,302
  6. 2021Measuring Coding Challenge Competence With APPScited by 879
  7. 2021Asleep at the Keyboard? Assessing the Security of GitHub Copilot's Code Contributionscited by 417
  8. 2022A Systematic Evaluation of Large Language Models of Codecited by 360
  9. 2023A Comprehensive Capability Analysis of GPT-3 and GPT-3.5 Series Modelscited by 244
  10. 2022Do Users Write More Insecure Code with AI Assistants?cited by 186
  11. 2018Learning to Mine Aligned Code and Natural Language Pairs from Stack Overflowcited by 165
  12. 2022Lost at C: A User Study on the Security Implications of Large Language Model Code Assistantscited by 87
5 more
  1. 2023PanGu-Coder2: Boosting Large Language Models for Code with Ranking Feedbackcited by 69
  2. 2023Large Language Models and Simple, Stupid Bugscited by 45
  3. 2017Stack Overflow Considered Harmful? The Impact of Copy&Paste on Android Application Securitycited by 11
  4. 2016From Query to Usable Code: An Analysis of Stack Overflow Code Snippetscited by 6
  5. 2018DeepSeek: Content Based Image Search & Retrievalcited by 2

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2023: 5; 2024: 24; 2025: 31; 2026: 12.

72 papers.

Sort:

By area:

  1. 2024Large Language Model-Brained GUI Agents: A Surveycited by 160
  2. 2023Purple Llama CyberSecEval: A Secure Coding Benchmark for Language Modelscited by 130
  3. 2024Beyond Functional Correctness: Exploring Hallucinations in LLM-Generated Codecited by 106
  4. 2024LLM Hallucinations in Practical Code Generation: Phenomena, Mechanism, and Mitigationcited by 92
  5. 2024Language Models Still Struggle to Zero-shot Reason about Time Seriescited by 81
  6. 2025A Survey of AI Agent Protocolscited by 77
  7. 2024OfficeBench: Benchmarking Language Agents across Multiple Applications for Office Automationcited by 66
  8. 2023Zero-Shot Goal-Directed Dialogue via RL on Imagined Conversationscited by 38
  9. 2024Benchmarks as Microscopes: A Call for Model Metrologycited by 33
  10. 2024AlphaVerus: Bootstrapping Formally Verified Code Generation through Self-Improving Translation and Treefinementcited by 33
  11. 2025STARK: Strategic Team of Agents for Refining Kernelscited by 23
  12. 2025A Study of LLMs' Preferences for Libraries and Programming Languagescited by 20
38 more
  1. 2024NLPerturbator: Studying the Robustness of Code LLMs to Natural Language Variationscited by 19
  2. 2024Causal Evaluation of Language Modelscited by 18
  3. 2024Scaling Up Video Summarization Pretraining with Large Language Modelscited by 17
  4. 2023LLM4VV: Developing LLM-Driven Testsuite for Compiler Validationcited by 15
  5. 2024APEX: An Extensible and Dynamism-Aware Simulator for Automated Parallel Execution in LLM Servingcited by 15
  6. 2025Beyond Final Code: A Process-Oriented Error Analysis of Software Development Agents in Real-World GitHub Scenarioscited by 14
  7. 2025SecRepoBench: Benchmarking Code Agents for Secure Code Completion in Real-World Repositoriescited by 14
  8. 2025AMSbench: A Comprehensive Benchmark for Evaluating MLLM Capabilities in AMS Circuitscited by 14
  9. 2024VerMCTS: Synthesizing Multi-Step Programs using a Verifier, a Large Language Model, and Tree Searchcited by 13
  10. 2024Collu-Bench: A Benchmark for Predicting Language Model Hallucinations in Codecited by 13
  11. 2023From Chatbots to PhishBots? -- Preventing Phishing scams created using ChatGPT, Google Bard and Claudecited by 12
  12. 2023Resolving the Imbalance Issue in Hierarchical Disciplinary Topic Inference via LLM-based Data Augmentationcited by 11
  13. 2025Planning without Search: Refining Frontier LLMs with Offline Goal-Conditioned RLcited by 11
  14. 2025Generative AI and Empirical Software Engineering: A Paradigm Shiftcited by 9
  15. 2025Hallucination by Code Generation LLMs: Taxonomy, Benchmarks, Mitigation, and Challengescited by 9
  16. 2024OOP: Object-Oriented Programming Evaluation Benchmark for Large Language Modelscited by 8
  17. 2024Is ChatGPT a Good Software Librarian? An Exploratory Study on the Use of ChatGPT for Software Library Recommendationscited by 7
  18. 2025Dialogue Benchmark Generation from Knowledge Graphs with Cost-Effective Retrieval-Augmented LLMscited by 7
  19. 2026ChipBench: A Next-Step Benchmark for Evaluating LLM Performance in AI-Aided Chip Designcited by 7
  20. 2024CRQBench: A Benchmark of Code Reasoning Questionscited by 6
  21. 2025Assessing and Enhancing the Robustness of LLM-based Multi-Agent Systems Through Chaos Engineeringcited by 6
  22. 2024Prefix Guidance: A Steering Wheel for Large Language Models to Defend Against Jailbreak Attackscited by 5
  23. 2025Evaluating and Improving Robustness in Large Language Models: A Survey and Future Directionscited by 5
  24. 2025SkipKV: Selective Skipping of KV Generation and Storage for Efficient Inference with Large Reasoning Modelscited by 5
  25. 2025QiMeng-Attention: SOTA Attention Operator is generated by SOTA Attention Algorithmcited by 4
  26. 2024Harnessing the Power of LLMs: Automating Unit Test Generation for High-Performance Computingcited by 3
  27. 2025Benchmarking AI Models in Software Engineering: A Review, Search Tool, and Unified Approach for Elevating Benchmark Qualitycited by 3
  28. 2025Understanding and Bridging the Planner-Coder Gap: A Systematic Study on the Robustness of Multi-Agent Systems for Code Generationcited by 3
  29. 2024Evaluating LLMs on Entity Disambiguation in Tablescited by 2
  30. 2025Evaluating LLMs on Sequential API Call Through Automated Test Generationcited by 2
  31. 2025How Robust are LLM-Generated Library Imports? An Empirical Study using Stack Overflowcited by 2
  32. 2025VerilogLAVD: LLM-Aided Rule Generation for Vulnerability Detection in Verilogcited by 2
  33. 2025IaC Generation with LLMs: An Error Taxonomy and A Study on Configuration Knowledge Injectioncited by 2
  34. 2024QACP: An Annotated Question Answering Dataset for Assisting Chinese Python Programming Learnerscited by 1
  35. 2025Goal2Story: A Multi-Agent Fleet based on Privately Enabled sLLMs for Impacting Mapping on Requirements Elicitationcited by 1
  36. 2025DMind Benchmark: Toward a Holistic Assessment of LLM Capabilities across the Web3 Domaincited by 1
  37. 2025LLMs on a Budget? Say HOLAcited by 1
  38. 2025Investigating Security Implications of Automatically Generated Code on the Software Supply Chaincited by 1

50 most cited of 72 All 72 (JSON)