RealTCD: Temporal Causal Discovery from Interventional Data with Large Language Model

Peiwen Li, Xin Wang, Zeyang Zhang, Yuan Meng, Fang Shen, Yue Li, Jialong Wang, Yang Li, Wenwu Zhu · DOI

TL;DR

This paper introduces RealTCD, a novel framework for temporal causal discovery in industrial settings that leverages Large Language Models (LLMs) to incorporate domain knowledge. It addresses the challenge of discovering causal relationships without requiring explicit interventional targets, a common limitation in real-world applications.

What Problem Does This Paper Address?

In the realm of Artificial Intelligence for IT Operations (AIOps), understanding causal relationships within complex systems is crucial for tasks like root cause analysis and anomaly detection. Temporal causal discovery aims to identify these relationships over time using observational and interventional data. However, existing methods often rely heavily on synthetic datasets and require precise knowledge of which variables were intervened upon. This is a significant hurdle for real-world industrial scenarios where obtaining such explicit interventional targets is costly and often impractical. Furthermore, these methods tend to ignore the rich textual information (like logs and documentation) embedded within industrial systems, which could provide valuable domain knowledge. This paper tackles these challenges by developing a method that can discover temporal causal relationships without known interventional targets and by integrating textual domain knowledge through LLMs.

Methods

RealTCD comprises two core modules:

  1. Score-based Temporal Causal Discovery: This module is designed to learn causal relationships from observational and interventional data without needing to know the exact interventional targets beforehand. It achieves this by strategically masking and regularizing the learning process, allowing it to infer both the causal graph and the interventional families simultaneously. This is formulated as a score-maximization problem under an acyclicity constraint, solved using an augmented Lagrangian process and stochastic gradient descent.
  2. LLM-guided Meta-Initialization: This module leverages Large Language Models (LLMs) to extract domain knowledge from textual information (e.g., system descriptions, manuals). This knowledge is then used to generate "prompts" for the LLM, which in turn provides potential causal relationships. These LLM-generated relationships serve as a meta-initialization for the adjacency matrix in the score-based discovery module, guiding the data-driven optimization process and improving its efficiency and accuracy.

Datasets

The paper evaluates RealTCD on two types of datasets:

  • Synthetic Datasets: Two synthetic datasets were generated. Dataset 1 consists of 5 nodes with 1 time-lagged variable and 5 different interventional targets. Dataset 2 includes 10 nodes with 1 time-lagged variable and 10 different interventional targets. These datasets were generated to emulate realistic causal structures and dependencies using a structural vector autoregressive (SVAR) model.
  • Real-world Data Center Application: Data was collected from a data center's cooling system, covering a period of 5 months. This dataset includes 38 variables: 18 cold aisle temperatures and 20 air conditioning supply temperatures from CRAC units. Anomalies were identified using an n-o method, and data was sampled around these anomalies to simulate interventional data. This is presented as a novel benchmark for real-world temporal causal discovery with interventional data.

Key Insights and Ideas

  • LLMs as Domain Knowledge Extractors: The paper demonstrates that LLMs can effectively mine textual data to extract crucial domain knowledge, which can then be used to initialize and guide causal discovery algorithms. This moves beyond purely data-driven approaches.
  • Discovering Causality Without Known Targets: The score-based method's ability to infer causal graphs and interventional families simultaneously is a significant advancement for real-world scenarios where interventional targets are often unknown or uncertain.
  • Meta-Initialization for Efficiency and Accuracy: Using LLM-generated insights as an initial guess for the causal graph significantly improves the performance and reduces the search space for the data-driven discovery process.
  • Practicality for AIOps: The framework is directly applicable to AIOps, offering a path to better system monitoring, troubleshooting, and predictive maintenance by uncovering underlying causal mechanisms.

Key Results

  • Synthetic Datasets: RealTCD outperformed baseline methods (DYNOTEARS, PCMCI, TECDI, NeuralGC) on both Structural Hamming Distance (SHD) and Structural Interventional Distance (SID) metrics for both 5-node and 10-node synthetic datasets. The improvement was more pronounced on the larger dataset.
  • Real-world Data Center Datasets: On the real-world data, RealTCD achieved fewer "C2A False" (implausible causal edges from cold aisle to supply temperature) and learned more "A2A True" and "C2C True" (plausible causal edges) compared to baselines. The paper highlights that RealTCD's performance in the "Unknown" targets setting was even better than in the "Known" targets setting, suggesting that explicit, potentially noisy, target labels can sometimes be detrimental.
  • Ablation Studies: Removing either the interventional module or the LLM-guided meta-initialization module significantly degraded RealTCD's performance, underscoring the importance of both components.

Limitations and Future Work

  • Data Quality: The authors acknowledge that the quality and completeness of textual data in real-world applications can be a limitation, with issues like noise, incompleteness, and missing text.
  • Sample Size: The performance of the method might be affected by small sample sizes, a common challenge in real-world data acquisition.
  • Generalizability of LLMs: While LLMs are powerful, their performance can depend on the quality of prompts and the specific LLM used. The paper suggests further exploration of different LLMs and prompt strategies.
  • Future Work: The paper suggests incorporating more varied industrial data for future evaluations and exploring the application of RealTCD in other domains beyond IT operations, such as finance, healthcare, and social sciences.

Summary updated

BibTeX
@inproceedings{li2024realtcd,
  author = {Peiwen Li and Xin Wang and Zeyang Zhang and Yuan Meng and Fang Shen and Yue Li and Jialong Wang and Yang Li and Wenwu Zhu},
  title = {{RealTCD: Temporal Causal Discovery from Interventional Data with Large Language Model}},
  booktitle = {ACM International Conference on Information and Knowledge Management},
  year = {2024},
  doi = {10.1145/3627673.3680042},
}
Figure