Towards In-Depth Root Cause Localization for Microservices with Multi-Agent Recursion-of-Thought

Lingzhe Zhang, Tong Jia, Kangjin Wang, Chiming Duan, Minghua He, Rongqian Wang, Xi Peng, Meiling Wang, Gong Zhang, Renhai Chen, Ying LiarXiv 2026

TL;DR

Modern microservice failures are notoriously difficult to diagnose due to complex, cascading dependencies across hundreds of components. This paper introduces RCLAgent, a multi-agent framework that mirrors human troubleshooting by mapping large language model (LLM) agents directly to a system's distributed trace graph. By executing localized, parallel "Recursion-of-Thought" reasoning, RCLAgent overcomes the context explosion and slow processing speeds of traditional LLM approaches, significantly boosting both diagnosis accuracy and efficiency.

What Problem Does This Paper Address?

When a microservice system fails, finding the exact root cause (Root Cause Localization, or RCL) is like finding a needle in a haystack of interconnected services, pods, and physical nodes. Traditional machine learning and deep learning methods act as black boxes, offering poor interpretability and failing to generalize across different system deployments.

To fix this, researchers recently turned to Large Language Models (LLMs). However, monolithic LLM approaches hit two major walls:

  1. Context Explosion: Shoving massive volumes of traces, logs, and metrics into a single prompt dilutes critical evidence. The model suffers from "cognitive overload," causing it to forget or demote the true root cause in favor of noisy, superficial correlations.
  2. Serial Reasoning Structures: Standard step-by-step agent loops (like ReAct) process everything sequentially. This leads to shallow exploration because deeper reasoning incurs prohibitive latency and token costs, forcing the agent to settle prematurely on surface-level symptoms.

Methods

The authors present RCLAgent, a framework built on a novel Multi-Agent Recursion-of-Thought (RoT) paradigm. Instead of using a single agent to analyze the entire system, RCLAgent mirrors the topology of the distributed trace graph itself.

  • Dedicated Agents: Every single span (operation) in the trace graph is assigned its own dedicated LLM agent.
  • Bounded Context & Self-State Verification: Each agent only looks at its own span's data, using specialized tools to filter and analyze local metrics and logs. This completely prevents context explosion.
  • Evidence Consolidation: Rather than passing raw data up the chain, agents recursively pass compact, structured hypotheses to their parent agents.
  • Parallel Execution: Independent branches of the trace graph are analyzed concurrently via an Agents Pool, decoupling reasoning depth from wall-clock time.
  • Diagnosis Synthesizer: At the root level, a synthesizer combines the top-down Root-Level Diagnosis Report with a bottom-up Global Evidence Graph (which preserves fine-grained local hypotheses) to produce the final ranked list of root causes.
Fig. 4. Architecture of RCLAgent

Datasets

The authors evaluated RCLAgent on three public microservice benchmarks:

  1. AIOPS 2022: A large-scale, real-world dataset from a production e-commerce system consisting of 7 microservices deployed across 44 pods and 6 nodes.
  2. Augmented-TrainTicket: A benchmark based on a train ticket booking system (41 microservices), augmented with comprehensive multi-modal observability data.
  3. RCAEval (RE2-OB subdataset): An open-source benchmark providing a unified evaluation environment across multiple distinct microservice architectures.

Key Insights and Ideas

  • Mimicking Human SREs: The core breakthrough comes from studying human Site Reliability Engineers (SREs). Humans naturally use recursiveness (drilling down trace chains), multi-dimensional expansion (checking pods, nodes, and services simultaneously), and cross-modal reasoning (validating traces with logs and metrics). RCLAgent is structurally designed to enforce these exact behaviors.
  • The Danger of Monolithic Contexts: The paper demonstrates a fundamental tension in single-agent architectures: more reasoning rounds improve accuracy but linearly increase latency and context size, which paradoxically dilutes critical evidence.
Fig. 3. Effect of Reasoning Rounds on RCL Accuracy (MRR) and Latency
  • Decoupling Depth from Latency: By running agents in parallel across trace branches, RCLAgent removes the implicit pressure to "stop early," allowing exhaustive causal exploration without a time penalty.

Key Results

  • Superior Accuracy: RCLAgent consistently outperformed both traditional and LLM-based state-of-the-art baselines. On the AIOPS 2022 dataset, it achieved a Mean Reciprocal Rank (MRR) of 69.73% (using Claude-3.5-Sonnet) and 73.24% (using Qwen-3.6-Plus), outperforming the next best LLM baseline (mABC) by up to 15.19%.
  • Massive Speedup: Thanks to parallel multi-agent execution, RCLAgent achieved a 1.49× to 2.11× speedup over standard single-agent Chain-of-Thought (CoT) baselines, reducing diagnosis times to well under a minute—highly practical for real-world incident response.

Limitations and Future Work

  • Trace Dependency: RCLAgent is highly trace-centric. If a system lacks comprehensive distributed tracing coverage, or if an asynchronous failure isn't captured in the trace graph, the framework's performance degrades.
  • Blind Spots: Missing spans due to network sampling or logging failures can break the recursive chain, causing agents to misattribute the root cause to neighboring services.
  • LLM Vulnerabilities: The framework still inherits standard LLM risks like hallucinations or inconsistent local attributions, though bounded contexts minimize these.
  • Future Directions: The authors plan to explore how to achieve similar localization accuracy using smaller, open-source, and more cost-effective LLM models, as well as extending the framework to handle automated failure mitigation.

Summary updated

BibTeX
@misc{zhang2026towards,
  author = {Lingzhe Zhang and Tong Jia and Kangjin Wang and Chiming Duan and Minghua He and Rongqian Wang and Xi Peng and Meiling Wang and Gong Zhang and Renhai Chen and Ying Li},
  title = {{Towards In-Depth Root Cause Localization for Microservices with Multi-Agent Recursion-of-Thought}},
  year = {2026},
  eprint = {2605.14866},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2605.14866},
}
Figure