Hypothesize-Then-Verify: Speculative Root Cause Analysis for Microservices with Pathwise Parallelism

Lingzhe Zhang, Tong Jia, Yunpeng Zhai, Leyi Pan, Chiming Duan, Minghua He, Pei Xiao, Ying Li

TL;DR

SpecRCA introduces a "hypothesize-then-verify" framework that radically accelerates and improves root cause analysis (RCA) in microservice architectures. By combining lightweight machine learning to draft a diverse set of failure hypotheses with tiny, fine-tuned large language models (LLMs) that verify them in parallel, SpecRCA improves failure localization accuracy by over 12% while delivering diagnoses in under 10 seconds.

What Problem Does This Paper Address?

Modern cloud-native applications rely on microservices, which are highly elastic but incredibly complex. When an anomaly occurs, failures can rapidly cascade across dependent services, making manual troubleshooting slow and heavily reliant on scarce expert knowledge.

Recently, researchers have turned to Large Language Models (LLMs) to automate Root Cause Analysis (RCA). However, existing LLM-based solutions suffer from two major bottlenecks:

  1. Limited Exploration Diversity: Sequential reasoning or multi-agent voting schemes often cause LLMs to prematurely converge on a single, shallow explanation, ignoring alternative (and often correct) root causes.
  2. High Inference Latency: Relying on massive, closed-source LLMs (like GPT-4o) or multi-turn agent conversations introduces massive delays, making them impractical for real-time production environments where every second of downtime is costly.

Methods

SpecRCA addresses these challenges by decoupling the problem into a speculative Hypothesize-Then-Verify paradigm, orchestrating models of varying sizes to balance efficiency and accuracy.

Overview of the SpecRCA workflow

The framework operates in three distinct stages:

1. Hypothesis Drafting

Instead of trying to find the single perfect answer immediately, a lightweight, data-driven machine learning module quickly scans heterogeneous system signals (metrics, traces, and logs) to generate a broad, inclusive list of candidate root causes.

  • Metrics: Uses 1-Wasserstein distance to detect anomalies and Granger Causality Analysis to map inter-service dependencies.
  • Traces: Extracts critical paths and applies a trace-weighted Service-Oriented PageRank to rank suspicious services.
  • Logs: Mines sequences and frequencies to catch rare or bursty error templates. These multi-modal signals are fused using a topology-guided integration algorithm to output a prioritized list of candidate hypotheses.
The multi-modal Hypothesis Drafting pipeline

2. Parallel Root Cause Verifier

Every candidate root cause is treated as an independent hypothesis. SpecRCA spins up a specialized, ultra-lightweight LLM called RCALite (<3B parameters) to evaluate each hypothesis simultaneously. RCALite is distilled from a high-capacity teacher model (Claude-3.5-Sonnet) via Supervised Fine-Tuning (SFT). For each hypothesis, it performs:

  • Self-State Verification: Does the service's internal data explain the anomaly?
  • Upstream/Downstream Verification: Could parent or child service anomalies explain this behavior instead?

Because these tasks are independent, they run in parallel, completely bypassing the latency bottleneck of sequential LLM generation.

The RCALite training and verification architecture

3. Diagnosis Synthesizer

Finally, a larger-scale LLM aggregates the parallel verification reports, resolves any conflicting evidence, and compiles a coherent, interpretable final diagnosis report.

Datasets

The authors evaluated SpecRCA using the AIOps 2022 dataset, a standard benchmark for microservice anomaly detection and root cause analysis containing real-world multi-modal operational data (metrics, traces, and logs).

Key Insights and Ideas

  • The "Right Tool for the Job" Architecture: Instead of forcing a massive LLM to do everything, SpecRCA uses traditional ML for high-throughput data crunching (drafting), tiny parallelized LLMs for localized reasoning (verification), and a large LLM only when complex reasoning is required (synthesis).
  • Enforced Diversity Beats Consensus: Multi-agent voting systems often suffer from groupthink. By explicitly forcing independent verification of every drafted hypothesis, SpecRCA uncovers hidden root causes that standard sequential LLM chains would overlook.

Key Results

In preliminary evaluations against state-of-the-art LLM-based RCA frameworks (RCAgent and mABC), SpecRCA demonstrated massive gains in both precision and speed:

  • Superior Accuracy: SpecRCA achieved a Recall@1 of 61.34% and a Mean Reciprocal Rank (MRR) of 62.64%, outperforming the next best method (mABC) by roughly 12.14% in failure localization.
  • Blazing Fast Speed: SpecRCA generated a complete diagnosis report in just 9.89 seconds per query, compared to 52.79 seconds for RCAgent and 83.17 seconds for mABC. This represents an 8x speedup over multi-agent alternatives.
Quantitative comparison of accuracy and speed

Limitations and Future Work

While promising, the authors note a few areas for improvement:

  • Incomplete Training Pipeline: The current prototype of RCALite has only undergone Supervised Fine-Tuning (SFT) distillation. The authors plan to implement the subsequent Reinforcement Fine-Tuning (RFT) stage using a reward model and Group Relative Policy Optimization (GRPO) to further boost reasoning reliability.
  • Synthesizer Bottleneck: The final Diagnosis Synthesizer (the large LLM) is currently the primary speed bottleneck. The team plans to explore diffusion-based LLMs with parallel decoding to optimize this final step.
  • Broader Evaluation: Future work will test SpecRCA across a wider variety of datasets to prove its cross-platform generalizability.

Summary updated

BibTeX
@inproceedings{zhang2026hypothesize,
  author = {Lingzhe Zhang and Tong Jia and Yunpeng Zhai and Leyi Pan and Chiming Duan and Minghua He and Pei Xiao and Ying Li},
  title = {{Hypothesize-Then-Verify: Speculative Root Cause Analysis for Microservices with Pathwise Parallelism}},
  booktitle = {NIER@ICSE},
  year = {2026},
  doi = {10.1145/3786582.3786803},
}
Figure