NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Agentic Memory Enhanced Recursive Reasoning for Root Cause Localization in Microservices

Lingzhe Zhang, Tong Jia, Yunpeng Zhai, Leyi Pan, Chiming Duan, Minghua He, Mengxi Jia, Ying Li · DOI

Abstract

As contemporary microservice systems become increasingly popular and complex—often comprising hundreds or even thousands of fine-grained, interdependent subsystems—they are experiencing more frequent failures. Ensuring system reliability thus demands accurate root cause localization (RCL). While many traditional graph-based and deep learning approaches have been explored for this task, they often rely heavily on pre-defined schemas that struggle to adapt to evolving operational contexts. Consequently, a number of LLM-based methods have recently been proposed. However, these methods still face two major limitations: shallow, symptom-centric reasoning that undermines accuracy, and a lack of cross-alert reuse that leads to redundant reasoning and high latency. In this paper, we introduce AMER-RCL, an agentic memory enhanced recursive reasoning framework for root cause localization in microservices. AMER-RCL employs the Recursive Reasoning RCL engine, a multi-agent framework that performs recursive reasoning on each alert to progressively refine candidate causes, while Agentic Memory incrementally accumulates and reuses reasoning from prior alerts within a time window to reduce redundant exploration and lower inference latency. Experimental results demonstrate that AMER-RCL consistently outperforms state-of-the-art methods in both localization accuracy and inference efficiency.

Introduction

Modern microservice architectures are the backbone of large-scale e-commerce and cloud platforms. However, their inherent complexity—characterized by thousands of interdependent components—makes failure diagnosis a significant challenge. When an outage occurs, Site Reliability Engineers (SREs) are often flooded with a "storm" of alerts. Identifying the specific root cause among these symptoms is critical for minimizing downtime.

While Large Language Models (LLMs) have shown promise in automating RCL, they often suffer from "lazy" behaviors. Specifically, they tend to engage in shallow reasoning, stopping at the first visible symptom (e.g., a slow service) rather than investigating the underlying cause (e.g., a hardware bottleneck). Furthermore, they exhibit high redundancy, re-analyzing thousands of similar alerts from scratch, which leads to excessive computational costs and high latency during critical outages.

Methodology: Learning from SRE Experts

To address these limitations, we conducted a study involving 22 professional SREs to understand the human diagnostic process. Our findings revealed three core characteristics of expert reasoning:

  1. Recursiveness: Experts follow the call chain (traces) from the entry point down to the failing leaf node.
  2. Multi-dimensional Expansion: Beyond software traces, experts examine related services and physical infrastructure (nodes).
  3. Cross-modal Reasoning: Findings from traces are verified against logs and metrics to confirm the failure mechanism.
Figure 4: Multi-dimensional expansion and cross-modal reasoning using logs, metrics, and node data.

The AMER-RCL Framework

AMER-RCL automates these expert strategies through two primary components:

1. Recursive Reasoning RCL Engine

This multi-agent system utilizes a MetaAgent to coordinate specialized agents: the TraceAgent, LogAgent, and MetricAgent. To combat shallow reasoning, we implement a "Depth-Assured" framework:

  • Initial Reasoning: The agents broadly explore the trace tree to identify potential failure paths.
  • Critical Reflection: This stage forces the model to challenge its initial findings. Even if a candidate cause is found, the model must verify it against logs and metrics, preventing premature termination.
  • Final Review: The MetaAgent consolidates cross-modal evidence into a prioritized list of root causes.

2. Agentic Memory

To solve the redundancy problem, AMER-RCL features an Agentic Memory that acts as a persistent knowledge base. It stores previous causal graphs and the reasoning paths used to resolve them. When a new alert arrives, the system compares it to stored patterns.

Figure 5: Agentic Memory reuses reasoning across similar alert sequences to reduce redundancy.

If a new alert matches a known pattern, the system reuses the existing reasoning. If it is only partially similar, the engine focuses its computational resources solely on the "divergence points," drastically reducing the time to resolution.

Experimental Evaluation

We evaluated AMER-RCL across three diverse environments: the real-world AIOPS 2022 dataset, the Train-Ticket benchmark, and Alibaba Cloud's production-level FAMOS-Mall system.

Key Results

  • Superior Accuracy: AMER-RCL outperformed the leading LLM-based method, mABC, by an average of 15.75% in localization accuracy, achieving a Mean Reciprocal Rank (MRR) of up to 81.93%.
  • Unprecedented Efficiency: The Agentic Memory provided a 3.5x speedup over RCAgent and was 31x faster than mABC. This efficiency is vital for real-time operations where every second of latency translates to lost revenue.
  • Model Agnostic: While the framework achieved peak performance with Claude-3.5 Sonnet, it remained highly effective when paired with open-source models like DeepSeek-R1, demonstrating its broad applicability.

Conclusion

AMER-RCL represents a significant step forward in automated microservice maintenance. By mimicking the recursive and cross-modal reasoning of human experts and implementing an efficient memory system, it overcomes the "lazy" tendencies of standard LLM applications. Future work will focus on extending this framework to automated mitigation—moving from finding the root cause to automatically fixing it—and testing its generalizability across diverse architectural paradigms.

Summary updated

BibTeX
@misc{zhang2026agentic,
  author = {Lingzhe Zhang and Tong Jia and Yunpeng Zhai and Leyi Pan and Chiming Duan and Minghua He and Mengxi Jia and Ying Li},
  title = {{Agentic Memory Enhanced Recursive Reasoning for Root Cause Localization in Microservices}},
  year = {2026},
  eprint = {2601.02732},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2601.02732},
}
Figure