TL;DR
This paper introduces FAIL, an automated pipeline that leverages Large Language Models (LLMs) to analyze software failures reported in news articles. By processing vast amounts of news data, FAIL provides a scalable and cost-effective way to identify, group, and extract detailed information about software failures, offering valuable insights for software engineering research and practice.
What Problem Does This Paper Address?
Software failures have significant societal and economic impacts, yet understanding them is often hindered by the difficulty of accessing private engineering records. While news articles offer a rich source of information on public-facing failures, manual analysis of this data is time-consuming and limits the scale of research. Existing approaches struggle to efficiently process the sheer volume of news, leading to a gap in our ability to learn from past failures and improve future software development practices. This paper aims to bridge this gap by automating the analysis of software failures reported in the news.
Methods
The core of the FAIL system is an LLM-based pipeline designed to automate the process of collecting, analyzing, and summarizing software failures from news articles. The pipeline consists of six main steps:
- Initial Search: Uses a curated list of news sources and keywords to scrape news articles related to software failures.
- Relevance Filtering: Employs an LLM to determine if an article genuinely reports on a software failure.
- Detail Filtering: Uses an LLM to assess if an article contains sufficient information for detailed failure analysis.
- Incident Merging (Clustering): LLMs are used to summarize articles, and embeddings are generated to group articles reporting on the same incident. This involves an approximation stage followed by a verification step.
- Handling Long Articles (RAG): For incidents with extensive coverage, Retrieval-Augmented Generation (RAG) is used to manage context windows by chunking articles and retrieving relevant information based on similarity.
- Postmortem Analysis: LLMs are prompted to extract structured information (postmortem details and taxonomy-based classifications) from the merged incident data.
The system was developed and validated using a manually created ground-truth dataset, with iterative prompt engineering and analyst agreement to refine the process.
Datasets
The primary dataset used in this work is a collection of news articles scraped from 11 popular news sources (e.g., The New York Times, CNN, BBC News, Wired) covering the period from 2010 to 2022. This forms the basis of the FAIL database. For evaluation, a ground-truth dataset was manually created by two analysts who independently labeled a subset of news articles for relevance, detail, and incident merging.
Key Insights and Ideas
- LLMs are Capable of Automated Failure Analysis: The study demonstrates that current LLMs can effectively identify news articles about software failures and analyze them according to structured taxonomies, a task previously requiring significant manual effort.
- High Recurrence of Failures: A significant finding is the high recurrence of similar software failures, both within individual organizations and across different organizations. This highlights a systemic issue and the potential for broader learning.
- Increasing Severity of Consequences: The analysis indicates that the severity of consequences from software failures has increased over the past decade, underscoring the growing importance of robust software engineering practices.
- News as a Valuable, Though Biased, Data Source: The research validates the utility of news articles as a source for understanding software failures, while acknowledging inherent biases in media reporting.
Key Results
- Accuracy: The FAIL pipeline achieved an F1 score of 90% for collecting news about software failures and a V-measure of 0.98 for merging articles reporting on the same incident. It also extracted 90% of the facts about failures.
- Scale: FAIL analyzed 137,427 news articles, identifying 2,457 distinct failures reported across 4,184 articles.
- Cost: The cost of running FAIL to gather incidents over a 12-year span was approximately $590, or $0.25 per incident, a significant reduction compared to manual analysis.
- Failure Characteristics: The analysis revealed that 85% of incidents were recurring, 95% of failures were due to factors introduced during system design, and 69% of failures involved human actions.
- Impacts: The study found a notable increase in the severity of consequences, with only 5% of failures having no consequences in the 2010-2022 period, compared to previous studies.
Limitations and Future Work
- News Bias: The authors acknowledge that news articles can be biased, potentially leading to an overrepresentation of large-scale, impactful, or "interesting" incidents, and a geographical bias towards US and European issues.
- LLM Hallucinations: While mitigated by prompt engineering and low temperature settings, LLMs can still hallucinate or introduce incorrect cause-effect relationships. The evaluation showed a low percentage of incorrect facts (1%) but a higher percentage of irrelevant facts (8%).
- Future Work: The authors propose several extensions, including:
- Thematic analysis of open-ended fields in the FAIL database to identify failure trends.
- Development of a failure-aware chatbot to assist engineers throughout the Software Development Life-Cycle.
- Continuous updates to the FAIL pipeline to incorporate advancements in news aggregators and LLMs.
- Development of new taxonomies to capture emerging failure modes (e.g., in microservices, serverless architectures, and AI-driven systems).
- Mapping failures to the Common Weakness Enumeration (CWE) categories for improved cybersecurity analysis.
Summary updated