Multi-modal Causal Structure Learning and Root Cause Analysis

Lecheng Zheng, Zhengzhang Chen, Jingrui He, Haifeng ChenarXiv 2024 · DOI

Executive Summary

MULAN (MULti-modal CAusal Structure LearNing) is a unified framework designed for Root Cause Analysis (RCA) in complex microservice environments. By fusing system metrics and unstructured logs into a single causal graph, MULAN identifies system failures more accurately than traditional methods. Leveraging a log-tailored language model and contrastive learning, it achieves up to a 12.5% improvement in Mean Reciprocal Rank (MRR) over state-of-the-art competitors.

Introduction: The Challenge of RCA in Microservices

In modern microservice architectures, identifying the root cause of a failure is increasingly difficult due to the sheer volume of data across pods, containers, and network calls. Traditional data-driven RCA methods typically focus on a single modality: either system metrics (e.g., CPU/Memory usage) or system logs (textual status messages).

However, single-modality approaches suffer from three major gaps:

  1. Incomplete Visibility: Certain faults, such as database query failures, may only appear in logs, while others, like DDoS attacks, primarily manifest as metric spikes.
  2. Log Complexity: Logs are unstructured and lack formal grammar, making it difficult for standard language models to extract causal features effectively.
  3. Modality Reliability: Real-world data is often noisy. If one data source is overwhelmed with redundant messages during a crash, it can pollute the analysis if treated with the same weight as clean metric data.

Methodology: The MULAN Pipeline

MULAN introduces a four-stage pipeline to bridge these gaps and provide a robust, multi-modal RCA solution.

The MULAN architecture consists of four stages: representation extraction, contrastive causal structure learning, causal graph fusion, and root cause localization.
  1. Log-Tailored Language Model: Instead of a generic LLM, MULAN uses the Drain parser to convert logs into templates. A regression-based transformer then predicts "anomaly scores" based on template frequency, effectively converting textual log sequences into structured time-series data.
  2. Contrastive Multi-modal Learning: To fuse metrics and logs, the model extracts modality-invariant (shared) and modality-specific (unique) representations. Contrastive loss ensures shared features agree across modalities, while an orthogonal constraint prevents overlap between specific and shared features.
  3. KPI-Aware Attention: This innovation enhances robustness by calculating the cross-correlation between each entity (service or pod) and the Key Performance Indicator (KPI). If a modality’s features correlate poorly with the system failure, the attention mechanism down-weights that modality.
  4. Random Walk with Restart (RWR): Once a unified causal graph is constructed, MULAN simulates fault propagation using RWR to rank the most likely root cause entities.

Results and Evaluation

The framework was evaluated on three real-world microservice benchmarks: Product Review, Online Boutique, and Train Ticket. These datasets include system metrics (CPU, memory, network) and pod-level Kubernetes logs.

Performance comparison across different data qualities and modality weights.

MULAN consistently outperformed six baselines, including PC, Dynotears, and Nezha:

  • Product Review: Achieved a perfect 1.0 MRR and 1.0 Precision@1, significantly outperforming the next best model, REASON (0.875 MRR).
  • Online Boutique: Improved MRR by 13.2% and MAP@5 by 8% compared to Nezha.
  • Robustness: Case studies demonstrated that when "low-quality" metrics were introduced, MULAN’s KPI-aware attention automatically shifted weight to log data, maintaining stable performance while competing models' accuracy declined.

Conclusion and Future Directions

MULAN demonstrates the power of multi-modal fusion and adaptive weighting in root cause analysis. By treating logs as time-series and intelligently weighting modalities based on their correlation with system KPIs, it provides a more reliable diagnostic tool for complex cloud environments.

Currently, MULAN is designed for offline analysis. Future work will focus on adapting the framework for real-time streaming data and optimizing causal graph construction for extremely large-scale industrial systems involving thousands of services.

Summary updated

BibTeX
@misc{zheng2024multi,
  author = {Lecheng Zheng and Zhengzhang Chen and Jingrui He and Haifeng Chen},
  title = {{Multi-modal Causal Structure Learning and Root Cause Analysis}},
  year = {2024},
  eprint = {2402.02357},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2402.02357},
}
Figure