arXiv:2610.41094cs.SEOct 2026

Manuscript Offprint

arXiv:2610.41094

AIFaultBench: A Reproducible Benchmark of Real-World Faults in AI Software Systems

Mehil B Shah, Mohammad Masudur Rahman, Foutse Khomh

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Mehil B Shah

Dalhousie University

Halifax, Canada

shahmehil@dal.ca

Mohammad Masudur Rahman

Dalhousie University

Halifax, Canada

masud.rahman@dal.ca

Foutse Khomh

Polytechnique Montréal

Montreal, Canada

foutse.khomh@polymtl.ca

Abstract—AI-based software systems remain difficult to debug because their failures can involve interactions among code, models, data, dependencies, hardware, and execution environments. Existing benchmarks cover specific classes of AI systems, while concerns about fault realism and reproducibility highlight the need for documented execution conditions and evidence. We present AIFaultBench, a benchmark of 770 real-world bugs from 105 AI-based software repositories across 76 organizations. It covers six classes of AI systems: machine learning, deep learning, reinforcement learning, systems based on large language models, agentic AI, and AI tooling and infrastructure. Each bug record connects the original report and source revision to structured metadata, environment setup scripts, a reproduction trigger, and investigation evidence. We reproduced 652 bugs (84.7%) under the recorded execution conditions and documented the outcomes of the remaining 118 attempts. Through its broad coverage, documented reproduction evidence, and common structure, AIFaultBench supports empirical studies of AI faults, debugging tool evaluation, practical failure investigation, and teaching with real-world examples. Dataset: https://zenodo.org/records/21782307. Video: https://youtu.be/PHK_g7sa-0g.

Index Terms—AI software, real-world faults, fault benchmarks, bug reproduction, software debugging

I. HIGH-LEVEL OVERVIEW

AI-based software systems combine conventional software components with learned models, data processing pipelines, and execution environments. Their failures can therefore span source code, models, data, dependencies, and hardware. Cutting-edge AI-based systems such as large language models (LLMs) and agentic systems further involve very large-scale models, external tools, and memory, making their bugs even more complex [1]. Over the last few years, the software engineering community has developed several methods to debug these AI systems [2], [3]. To effectively evaluate these debugging methods, we need not only the affected version of an AI-based system but also the execution conditions that trigger the failures. In other words, an evaluation benchmark should provide the artifacts needed to reproduce AI bugs, making benchmark construction a challenging task.

Existing benchmarks of software bugs serve as valuable resources for developers and researchers. Defects4J [4], BugsInPy [5], and SWE-bench [6] provide hundreds of real-world bugs, but they are mostly collected from conventional software projects written in Java or Python. Recent benchmarks such as Benchmark [7], Defects4ML [8], and gDefects4DL [9]

TABLE I

COMPOSITION OF AIFaultBENCH.

Class of AI systemsFaultsShare
Deep learning30739.9%
Large language models15119.6%
Agentic AI13016.9%
Machine learning11815.3%
Reinforcement learning405.2%
Tooling and infrastructure243.1%

capture faults from machine learning and deep learning systems. Although these AI-specific benchmarks provide useful datasets and relevant artifacts, they target specific classes of systems, such as machine learning or deep learning systems. A recent study [10] reports that only 18.5% of the examined faults from the existing benchmarks (e.g., Defects4ML) met its realism criteria (i.e., the presence of original buggy code, fixes, and training data) and only 52% of them were reproducible. Given these observations, a benchmark that curates faults and failures from multiple classes of AI-based systems and connects each fault to relevant artifacts (e.g., source code, dependencies, and reproduction scripts) and execution evidence can greatly benefit the evaluation of debugging methods.

We present AIFaultBench, a benchmark of 770 real-world faults from 105 AI-based software repositories maintained by 76 organizations [11]. These faults were submitted as bug reports between July 2016 and July 2026 and stem from six classes of AI systems, as summarized in Table I. In the benchmark, each bug report is connected to the target version of its codebase, dependency specifications, setup scripts, a reproduction trigger, and investigation evidence. We capture the affected version of the codebase based on its public repository and recorded commit, preserving source provenance, and attempt to reproduce each bug. We reproduced 652 faults (84.7%) under the recorded execution conditions and documented why the remaining 118 faults were not reproduced. We spent ≈\approx1,640 person-hours to construct the benchmark.

Together, AIFaultBench offers three key benefits over existing benchmarks. First, it has broad fault coverage across six classes of AI systems, supporting a comprehensive evaluation of the debugging methods. Second, it supports fault reproducibility through documented reproduction steps and execution results, equipping researchers with valuable insights

Figure

Fig. 1. Construction and validation of AIFAUTBENCH.

and an oracle during the evaluation of their debugging methods. The benchmark also distinguishes successfully reproduced faults from faults that were not reproduced and documents the outcomes. Finally, it supports reusability through an index and bundle structure and allows the same bug reports and artifacts to be used across experiments. Researchers can reuse these artifacts to evaluate their methods targeting fault reproduction, localization, testing, and repair in various AI-based systems.