Abstract
Software failures inform engineering work, standards, and regulations. For example, the Log4J vulnerability brought government and industry attention to evaluating and securing software supply chains. Accessing private engineering records is difficult, so failure analyses tend to use information reported by the news media. However, prior works in this direction have relied on manual analysis, limiting their scale. The community lacks automated support to enable such analyses to consider a wide range of news sources and incidents. In this paper, we propose the Failure Analysis Investigation with LLMs (FAIL) system to fill this gap. FAIL collects, analyzes, and summarizes software failures as reported in the news. FAIL groups articles that describe the same incidents and analyzes them using existing taxonomies for postmortems, faults, and system characteristics. To tune and evaluate FAIL, we followed the methods of prior works by manually analyzing 31 software failures. FAIL achieved an F1 score of 90% for collecting news about software failures, a V-measure of 0.98 for merging articles reporting on the same incident, and extracted 90% of the facts about failures. We then applied FAIL to a total of 137,427 news articles from 11 providers published between 2010 and 2022. FAIL identified and analyzed 2,457 distinct failures reported across 4,184 articles. Our findings include: (1) current generation large language models are capable of identifying and analyzing news articles according to structured taxonomies; (2) high recurrences of similar failures within and across organizations; and (3) the severity of consequences has increased over the past decade. The full FAIL database is available for researchers, engineers, and policymakers.
Introduction
In mature engineering disciplines like civil or aerospace engineering, analyzing past failures is a fundamental principle for improving safety. However, in software engineering, private postmortems are rarely shared publicly. Researchers often turn to "grey literature"—news reports from outlets like Wired, The Guardian, or The New York Times—to study incidents. This approach, known as Open-Source Intelligence (OSINT), provides a window into real-world software failures that would otherwise remain hidden behind corporate firewalls.
The primary bottleneck is that manual analysis does not scale. A previous landmark study required 1,000 person-hours to analyze roughly 4,000 incidents. Because of this high cost, the community lacks an up-to-date, large-scale database of software failures to inform better standards and regulations. The FAIL (Failure Analysis Investigation with LLMs) system addresses this by automating the collection, deduplication, and taxonomic analysis of software failures reported in the media.
The FAIL Pipeline
The FAIL system is an automated pipeline powered by Large Language Models (LLMs) and Retrieval-Augmented Generation (RAG). It transforms thousands of messy news articles into a structured database through a six-step process:
- Initial Search: Scraping 11 major news providers using 13 failure-related keywords (e.g., "software flaw," "system crash").
- Relevance Filtering: An LLM determines if the article actually describes a software failure.
- Detail Filtering: An LLM checks if the article contains enough technical or contextual detail for a meaningful postmortem.
- Merging (Clustering): To avoid double-counting, FAIL uses a two-stage process. It first uses sentence embeddings to find similar articles and then uses an LLM to confirm if they describe the same specific incident.
- Handling Long Articles (RAG): For incidents with extensive coverage, the system chunks the text and uses a vector database to provide the LLM with the most relevant context.
- Postmortem Analysis: The LLM extracts data based on established academic taxonomies, covering the timeline, software causes, impacted organizations, and consequences.
Key Results and Evaluation
To validate the system, the authors manually labeled 31 failures (comprising 77 articles). This manual process took approximately 320 person-hours, highlighting the efficiency gains of automation. FAIL achieved a 90% F1 score for identifying relevant news articles and a V-measure of 0.98 for merging articles, indicating near-perfect performance in grouping different reports into a single incident record. Furthermore, the LLM successfully extracted 90% of the facts identified by human analysts.
The final FAIL database contains 2,457 distinct software failures identified from a pool of 137,427 news articles published between 2010 and 2022. Running this pipeline for 12 years of data cost only $590 ($0.25 per incident), making it orders of magnitude cheaper than manual expert analysis.
Insights into Software Failures
Analysis of the FAIL database revealed several critical trends in the software industry:
- The "Learning Gap": A staggering 85% of incidents were recurring, meaning similar failures had happened before within the same organization or across the industry. This suggests that software engineering lacks the "inter-organizational learning" seen in fields like aviation.
- Escalating Severity: The consequences of software failures are getting worse. In 2012, roughly 50% of reported failures had "no consequences" (minor glitches). By the end of the 2010–2022 period, only 5% were consequence-free, with a significant rise in failures causing property damage, physical harm, or death.
- LLMs as Taxonomic Experts: The study proves that current LLMs are highly capable of applying complex, structured engineering taxonomies to unstructured journalistic text—a task that previously required human subject matter experts.
Limitations and Future Work
While powerful, the FAIL system has limitations. News outlets prioritize "sensational" or high-impact failures, meaning the database may underrepresent common but minor software bugs. Additionally, the current sources are primarily Western/English-language, which may skew the types of failures represented. While rare (about 1%), LLM hallucinations remain a factor to monitor.
Future work includes building "failure-aware chatbots" to assist developers during the design phase by providing warnings about historical failures relevant to their current projects. The FAIL database will remain a living resource for policymakers and engineers to learn from a diversity of software failures.
Summary updated