mlsanityData to 7 Oct 2026

The FormAI Dataset: Generative AI in Software Security Through the Lens of Formal Verification

arXiv 2307.02192 ↗First posted 5 Jul 2023cs.DB cs.AIcited by 32

Not on the map. Why?

Abstract (arXiv)

This paper presents the FormAI dataset, a large collection of 112, 000 AI-generated compilable and independent C programs with vulnerability classification. We introduce a dynamic zero-shot prompting technique constructed to spawn diverse programs utilizing Large Language Models (LLMs). The dataset is generated by GPT-3.5-turbo and comprises programs with varying levels of complexity. Some programs handle complicated tasks like network management, table games, or encryption, while others deal with simpler tasks like string manipulation. Every program is labeled with the vulnerabilities found within the source code, indicating the type, line number, and vulnerable function name. This is accomplished by employing a formal verification method using the Efficient SMT-based Bounded Model Checker (ESBMC), which uses model checking, abstract interpretation, constraint programming, and satisfiability modulo theories to reason over safety/security properties in programs. This approach definitively detects vulnerabilities and offers a formal model known as a counterexample, thus eliminating the possibility of generating false positive reports. We have associated the identified vulnerabilities with Common Weakness Enumeration (CWE) numbers. We make the source code available for the 112, 000 programs, accompanied by a separate file containing the vulnerabilities detected in each program, making the dataset ideal for training LLMs and machine learning algorithms. Our study unveiled that according to ESBMC, 51.24% of the programs generated by GPT-3.5 contained vulnerabilities, thereby presenting considerable risks to software safety and security.

Key facts. Cited by 32 papers in the map (data through 7 Oct 2026). Builds on 23 of its 73 references that are in the map. First posted on arXiv 5 Jul 2023.

Builds on

23 of 73 references.

References · 23

  1. 2023GPT-4 Technical Reportcited by 18,132
  2. 2022Chain-of-Thought Prompting Elicits Reasoning in Large Language Modelscited by 12,302
  3. 2023Tree of Thoughts: Deliberate Problem Solving with Large Language Modelscited by 3,155
  4. 2023Is Your Code Generated by ChatGPT Really Correct? Rigorous Evaluation of Large Language Models for Code Generationcited by 1,332
  5. 2023A Prompt Pattern Catalog to Enhance Prompt Engineering with ChatGPTcited by 612
  6. 2021Asleep at the Keyboard? Assessing the Security of GitHub Copilot's Code Contributionscited by 417
  7. 2023The Curse of Recursion: Training on Generated Data Makes Models Forgetcited by 343
  8. 2019Devign: Effective Vulnerability Identification by Learning Comprehensive Program Semantics via Graph Neural Networkscited by 266
  9. 2023MathPrompter: Mathematical Reasoning using Large Language Modelscited by 236
  10. 2022Do Users Write More Insecure Code with AI Assistants?cited by 186
  11. 2020Deep Learning based Vulnerability Detection: Are We There Yet?cited by 142
  12. 2020Towards Accountability for Machine Learning Datasets: Practices from Software Engineering and Infrastructurecited by 138
11 more
  1. 2018Automated Vulnerability Detection in Source Code Using Deep Representation Learningcited by 114
  2. 2021Examining Zero-Shot Vulnerability Repair with Large Language Modelscited by 105
  3. 2023DiverseVul: A New Vulnerable Source Code Dataset for Deep Learning Based Vulnerability Detectioncited by 98
  4. 2023The Programmer's Assistant: Conversational Interaction with a Large Language Model for Software Developmentcited by 95
  5. 2022Lost at C: A User Study on the Security Implications of Large Language Model Code Assistantscited by 87
  6. 2023How Secure is Code Generated by ChatGPT?cited by 77
  7. 2023A New Era in Software Security: Towards Self-Healing Software via Large Language Models and Formal Verificationcited by 42
  8. 2023CodeTF: One-stop Transformer Library for State-of-the-art Code LLMscited by 21
  9. 2020Ensuring Dataset Quality for Machine Learning Certificationcited by 7
  10. 2018SMT-Based Refutation of Spurious Bug Reports in the Clang Static Analyzercited by 5
  11. 2023Prompt Sapper: LLM-Empowered Software Engineering Infrastructure for AI-Native Servicescited by 5

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2023: 4; 2024: 16; 2025: 11; 2026: 1.

32 papers.

Sort:

By area:

  1. 2023Large Language Models for Software Engineering: A Systematic Literature Reviewcited by 389
  2. 2023Purple Llama CyberSecEval: A Secure Coding Benchmark for Language Modelscited by 130
  3. 2024When LLMs Meet Cybersecurity: A Systematic Literature Reviewcited by 70
  4. 2024Large Language Models for Cyber Security: A Systematic Literature Reviewcited by 65
  5. 2024Constrained Decoding for Secure Code Generationcited by 35
  6. 2024How secure is AI-generated Code: A Large-Scale Comparison of Large Language Modelscited by 23
  7. 2024LLMs in Web Development: Evaluating LLM-Generated PHP Code Unveiling Vulnerabilities and Limitationscited by 21
  8. 2024HexaCoder: Secure Code Generation via Oracle-Guided Synthetic Training Datacited by 14
  9. 2023SecureFalcon: Are We There Yet in Automated Software Vulnerability Detection with LLMs?cited by 13
  10. 2024All Artificial, Less Intelligence: GenAI through the Lens of Formal Verificationcited by 11
  11. 2025Large Language Models for Security Operations Centers: A Comprehensive Surveycited by 9
  12. 2025A Systematic Literature Review on Detecting Software Vulnerabilities with Large Language Modelscited by 8
20 more
  1. 2026ARVO: Atlas of Reproducible Vulnerabilities for Open-Source Softwarecited by 8
  2. 2024CompilerDream: Learning a Compiler World Model for General Code Optimizationcited by 6
  3. 2024Helping LLMs Improve Code Generation Using Feedback from Testing and Static Analysiscited by 6
  4. 2024Dynamic Intelligence Assessment: Benchmarking LLMs on the Road to AGI with a Focus on Model Confidencecited by 5
  5. 2024Enhancing Source Code Security with LLMs: Demystifying The Challenges and Generating Reliable Repairscited by 4
  6. 2024SeCodePLT: A Unified Platform for Evaluating the Security of Code GenAIcited by 4
  7. 2025SCGAgent: Recreating the Benefits of Reasoning Models for Secure Code Generation with Agentic Workflowscited by 4
  8. 2025Exploring the Challenges and Opportunities of AI-assisted Codebase Generationcited by 4
  9. 2024Assessing the Latent Automated Program Repair Capabilities of Large Language Models using Round-Trip Translationcited by 3
  10. 2025Benchmarking AI Models in Software Engineering: A Review, Search Tool, and Unified Approach for Elevating Benchmark Qualitycited by 3
  11. 2024Generative transformations and patterns in LLM-native approaches for software verification and falsificationcited by 2
  12. 2025MultiAIGCD: A Comprehensive dataset for AI Generated Code Detection Covering Multiple Languages, Models,Prompts, and Scenarioscited by 2
  13. 2023Towards Auto-Modeling of Formal Verification for NextG Protocols: A Multimodal cross- and self-attention Large Language Model Approachcited by 1
  14. 2024ARVO: Atlas of Reproducible Vulnerabilities for Open-Source Softwarecited by 1
  15. 2024Evaluating and Improving the Robustness of Security Attack Detectors Generated by LLMscited by 1
  16. 2025The 4/δ Bound: Designing Predictable LLM-Verifier Systems for Formal Method Guaranteecited by 1
  17. 2025Large Language Models in Cybersecurity: Applications, Vulnerabilities, and Defense Techniquescited by 0
  18. 2025AVIATOR: Towards AI-Agentic Vulnerability Injection Workflow for High-Fidelity, Large-Scale Code Security Datasetcited by 0
  19. 2025From Model to Breach: Towards Actionable LLM-Generated Vulnerabilities Reportingcited by 0
  20. 2025SoK: Understanding (New) Security Issues Across AI4Code Use Casescited by 0