arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2406.08221cs.SE
收藏

FAIL:使用 LLM 分析新闻中的软件故障

FAIL: Analyzing Software Failures from the News Using LLMs

Dharun Anandayuvaraj, Matthew Campbell, Arav Tewari, James C. Davis

AI总结:

提出 FAIL 系统,利用 LLM 自动收集、聚类并按分类体系分析新闻报道的软件故障,在大规模语料中识别 2457 起故障并揭示其复发与严重性趋势。

摘要:

软件故障可为工程工作、标准和法规提供参考。例如,Log4J 漏洞促使政府和行业关注软件供应链的评估与安全保障。获取私人工程记录十分困难,因此故障分析往往使用新闻媒体报道的信息。然而,此前沿这一方向开展的研究依赖人工分析,限制了其分析规模。社区缺乏自动化支持,难以让此类分析覆盖广泛的新闻来源和事件。本文提出 Failure Analysis Investigation with LLMs(FAIL)系统以填补这一空白。FAIL 收集、分析并总结新闻所报道的软件故障。FAIL 会对描述同一事件的文章进行分组,随后使用现有的事后分析、故障和系统特征分类体系分析事件。为调优和评估 FAIL,我们遵循以往研究的方法,人工分析了 31 起软件故障。FAIL 在收集软件故障新闻方面取得了 90% 的 F1 分数,在合并报道同一事件的文章方面取得了 0.98 的 V-measure,并提取了 90% 的故障事实。随后,我们将 FAIL 应用于来自 11 家提供商、发表于 2010 年至 2022 年间的共计 137,427 篇新闻文章。FAIL 在 4,184 篇文章中识别并分析了 2,457 起不同的故障。我们的发现包括:(1)当前一代大语言模型能够识别描述故障的新闻文章,并按照结构化分类体系对其进行分析;(2)类似故障在组织内部和跨组织之间均高频重复发生;(3)过去十年间,软件故障后果的严重程度有所上升。完整的 FAIL 数据库已公开,以便研究人员、工程师和政策制定者从多样化的软件故障中汲取经验。

英文摘要:

Software failures inform engineering work, standards, 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. That has limited the scale of their analyses. 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. It then analyzes incidents 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 2457 distinct failures reported across 4,184 articles. Our findings include: (1) current generation of large language models are capable of identifying news articles that describe failures, and analyzing them according to structured taxonomies; (2) high recurrences of similar failures within organizations and across organizations; and (3) severity of the consequences of software failures have increased over the past decade. The full FAIL database is available so that researchers, engineers, and policymakers can learn from a diversity of software failures.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑