mlsanityData to 14 Oct 2026

Automated Repair of AI Code with Large Language Models and Formal Verification

arXiv 2405.08848 ↗First posted 14 May 2024cs.SE cs.AIcited by 3

Not on the map. Why?

Abstract (arXiv)

The next generation of AI systems requires strong safety guarantees. This report looks at the software implementation of neural networks and related memory safety properties, including NULL pointer deference, out-of-bound access, double-free, and memory leaks. Our goal is to detect these vulnerabilities, and automatically repair them with the help of large language models. To this end, we first expand the size of NeuroCodeBench, an existing dataset of neural network code, to about 81k programs via an automated process of program mutation. Then, we verify the memory safety of the mutated neural network implementations with ESBMC, a state-of-the-art software verifier. Whenever ESBMC spots a vulnerability, we invoke a large language model to repair the source code. For the latest task, we compare the performance of various state-of-the-art prompt engineering techniques, and an iterative approach that repeatedly calls the large language model.

Key facts. Cited by 3 papers in the map (data through 14 Oct 2026). Builds on 15 of its 35 references that are in the map. First posted on arXiv 14 May 2024.

Builds on

15 of 35 references.

References · 15

  1. 2017Attention Is All You Needcited by 60,361
  2. 2020Language Models are Few-Shot Learnerscited by 32,419
  3. 2023A Prompt Pattern Catalog to Enhance Prompt Engineering with ChatGPTcited by 619
  4. 2021Exploring the Limits of Out-of-Distribution Detectioncited by 283
  5. 2023How is ChatGPT's behavior changing over time?cited by 270
  6. 2019A Framework for Understanding Sources of Harm throughout the Machine Learning Life Cyclecited by 193
  7. 2019Taxonomy of Real Faults in Deep Learning Systemscited by 90
  8. 2022Automated Repair of Programs from Large Language Modelscited by 71
  9. 2018TensorFuzz: Debugging Neural Networks with Coverage-Guided Fuzzingcited by 68
  10. 2023A New Era in Software Security: Towards Self-Healing Software via Large Language Models and Formal Verificationcited by 42
  11. 2020Pitfalls in Machine Learning Research: Reexamining the Development Cyclecited by 17
  12. 2022Bugs in Machine Learning-based Systems: A Faultload Benchmarkcited by 15
3 more
  1. 2021Learning Density Distribution of Reachable States for Autonomous Systemscited by 11
  2. 2023NeuroCodeBench: a plain C neural network benchmark for software verificationcited by 3
  3. 2019Mull it over: mutation testing based on LLVMcited by 2

Built on by

Cited by year

Citing papers per year: 2025: 3.

3 papers.