OCEAN: Online Multi-modal Root Cause Analysis for Microservice Systems

Lecheng Zheng, Zhengzhang Chen, Haifeng Chen, Jingrui He · Submission to ICLR 2025 · Withdrawn

TL;DR

OCEAN is an online, multi-modal root cause analysis (RCA) framework for microservice systems that pinpoints failure causes in near real-time. By pairing dilated convolutions with graph neural networks, multi-factor cross-attention, and contrastive graph fusion, OCEAN captures long-term temporal dependencies and cross-modal interactions (metrics and logs) at a fraction of the computational cost of existing online methods.

What Problem Does This Paper Address?

Modern cloud-native microservices generate massive streams of telemetry data across multiple modalities, primarily continuous numerical metrics (e.g., CPU, memory utilization) and discrete text-derived logs (e.g., error counts, "golden signals"). When key performance indicators (KPIs) like response latency spike, operators must quickly identify the faulty entity (pod, container, or service).

Existing RCA approaches fall short in production for three key reasons:

  1. Computational bottleneck of online learning: Most multi-modal causal discovery methods run strictly offline because retraining causal graphs is too expensive. Existing online approaches are largely restricted to single-modal data.
  2. Short temporal horizons: Existing online methods rely on Vector Autoregressive (VAR) models that cannot scale to long time lags, failing to catch persistent or slow-burning issues like DDoS attacks.
  3. Imbalanced or noisy multi-modal signals: Naively merging metrics and logs treats all dimensions equally. In practice, a noisy or low-quality modality can degrade graph learning, and certain failure modes manifest clearly in only one modality (e.g., database query errors in logs vs. memory exhaustion in metrics).

Methods

OCEAN integrates four core modules to process streaming mini-batches alongside historical data:

  • Dilated Causal Convolutions + GNNs: Instead of high-complexity VAR models, RNNs, or quadratic Transformers, OCEAN employs 1D dilated convolutions ($O(NTkC)$ complexity) with gated activations to exponentially increase the receptive field across time. A GraphSAGE-based message-passing network then learns structural transitions between entities, penalized by a continuous acyclicity constraint (via a matrix trace exponential) to ensure directed acyclic graphs (DAGs).
  • Multi-Factor Attention Mechanism: Microservices produce multi-attribute data (e.g., CPU, disk I/O, error logs). OCEAN computes cross-modal similarity matrices between metric and log representations, generating attention weights that dynamically prioritize the most informative attributes during temporal forecasting.
  • Contrastive Multi-Modal Graph Fusion: To avoid dense or cyclical graphs when fusing modalities, OCEAN uses an InfoNCE-style contrastive objective to maximize mutual information between metric and log representations. It dynamically scores each modality's reliability to weight metric and log graphs during fusion.
  • Random Walk with Restart (RWR) & Early Stopping: Fault effects propagate across services; immediate KPI neighbors are not necessarily the culprit. An RWR process ranks likely root-cause nodes. OCEAN halts online updates once consecutive rankings stabilize using Rank-Biased Overlap (RBO), saving computing cycles.

Datasets

The authors evaluated OCEAN across three real-world microservice benchmarks containing paired metrics and logs:

  • Product Review: 234 pods across 6 cloud servers, evaluated over 4 real system fault incidents.
  • Online Boutique: An e-commerce benchmark featuring 5 injected fault scenarios.
  • Train Ticket: A microservice railway ticketing system evaluated over 5 injected fault scenarios.
  • (Extended evaluation also tested the integration of distributed traces on Train Ticket and Product Review).

Key Insights and Ideas

  • Dilated convolutions beat autoregression and Transformers for online causal discovery: DCNNs allow parallel computation and linear scaling in sequence length while capturing long-range dependencies that autoregression cuts short due to parameter explosion.
  • Feature importance changes dynamically during failures: A memory leak requires heavy weighting on memory metrics, whereas a misconfiguration manifests in log error keywords. Cross-modal attention allows the model to shift focus between metrics and log indicators per entity.
  • Quality-aware modality fusion: Simply concatenating or adding graph matrices from metrics and logs creates noisy edges. Weighting the fusion by cross-factor correlation scores shields the final graph from noisy modalities.

Key Results

  • Localization Accuracy: OCEAN achieved state-of-the-art results across all datasets, achieving a Mean Reciprocal Rank (MRR) of 1.0 (Precision@1 of 1.0) on the Product Review dataset (beating the strongest baseline, CORAL, at 0.875 MRR) and an MRR of 0.8 on Online Boutique (vs. 0.7 for CORAL).
  • Efficiency: On the Product Review dataset, OCEAN reduced per-batch training time to 20.16 seconds—nearly 9× faster than CORAL (186.73s) and roughly 70–90× faster than offline deep learning models like C-LSTM (1,808s).
  • Prompt Detection: In case studies, OCEAN identified ground-truth root causes roughly 10 epochs earlier than competing online methods.
  • Ablation Studies: Removing the multi-factor attention module led to a 25% drop in MRR on Product Review; omitting contrastive mutual information caused a 12.5% drop. Substituting DCNNs with Transformers or LSTMs caused both slower batch processing and lower ranking accuracy.

Limitations and Future Work

  • Dependence on Change-Point Detection Triggers: OCEAN focuses on root cause localization once an alert occurs, relying on upstream detection algorithms (e.g., MSSA) to trigger its execution.
  • Log Preprocessing Sensitivity: Converting unstructured logs into structured time-series relies on external log parsers (e.g., Drain) and predefined keyword dictionaries for "golden signals."
  • Performance on Complex Topologies: On the larger Train Ticket benchmark, absolute MRR dropped across all tested baselines (OCEAN achieved 0.381 MRR), indicating room for improvement in deeper microservice dependency chains.

Summary updated

BibTeX
@misc{zheng2024ocean,
  author = {Lecheng Zheng and Zhengzhang Chen and Haifeng Chen and Jingrui He},
  title = {{OCEAN: Online Multi-modal Root Cause Analysis for Microservice Systems}},
  year = {2024},
  eprint = {2410.10021},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2410.10021},
}
Figure