SECLLGMar 7, 2024

Exploring LLM-based Agents for Root Cause Analysis

arXiv:2403.04123v1100 citationsh-index: 28SIGSOFT FSE Companion
Originality Incremental advance
AI Analysis

This work addresses the demanding task of RCA for on-call engineers in cloud software systems, offering a practical automation solution that is incremental over prior LLM-based approaches.

The paper tackles the problem of automating root cause analysis (RCA) in cloud software systems by exploring LLM-based agents, specifically a ReAct agent with retrieval tools, to dynamically collect diagnostic information like logs and metrics, resulting in competitive performance with high factual accuracy on a dataset of production incidents from Microsoft.

The growing complexity of cloud based software systems has resulted in incident management becoming an integral part of the software development lifecycle. Root cause analysis (RCA), a critical part of the incident management process, is a demanding task for on-call engineers, requiring deep domain knowledge and extensive experience with a team's specific services. Automation of RCA can result in significant savings of time, and ease the burden of incident management on on-call engineers. Recently, researchers have utilized Large Language Models (LLMs) to perform RCA, and have demonstrated promising results. However, these approaches are not able to dynamically collect additional diagnostic information such as incident related logs, metrics or databases, severely restricting their ability to diagnose root causes. In this work, we explore the use of LLM based agents for RCA to address this limitation. We present a thorough empirical evaluation of a ReAct agent equipped with retrieval tools, on an out-of-distribution dataset of production incidents collected at Microsoft. Results show that ReAct performs competitively with strong retrieval and reasoning baselines, but with highly increased factual accuracy. We then extend this evaluation by incorporating discussions associated with incident reports as additional inputs for the models, which surprisingly does not yield significant performance improvements. Lastly, we conduct a case study with a team at Microsoft to equip the ReAct agent with tools that give it access to external diagnostic services that are used by the team for manual RCA. Our results show how agents can overcome the limitations of prior work, and practical considerations for implementing such a system in practice.

Foundations

The foundational work for this paper's niche, ranked by how specifically the neighbourhood builds on it — not by global fame.

Your Notes