PRIM: Meta-Learned Bayesian Root Cause Analysis

Christopher Lohse, Anish Dhir, Amadou Ba, Bradley Eck, Marco Ruffini +1 more
5/9/2026
cs.LG
bayesian

No confident code implementation found for this paper.

Abstract

Root cause analysis (RCA) in complex systems is challenging due to error propagation across multiple variables, the need for structural causal knowledge, and the computational cost of inference at test time. We introduce PRIM (Prior-fitted Root cause Identification with Meta-learning), a causal meta-learning approach that frames RCA as a Bayesian inference task over a synthetic prior of causal models.

Show full abstract

By marginalising out structural uncertainty, PRIM implicitly identifies changes in the data-generating mechanism between baseline and anomalous periods. In doing so, PRIM infers distributional differences without explicit statistical testing, and implicitly learns causal structure without model fitting at test time. Following the simulation-based meta-learning paradigm of prior-fitted networks, PRIM uses a Model-Averaged Causal Estimation (MACE) transformer neural process that jointly attends over observational and anomalous samples and the causal structure of nodes, enabling zero-shot inference in 17,ms for systems with up to 100 variables. Across synthetic benchmarks and two realistic benchmark datasets, PetShop and CausRCA, PRIM is competitive with methods that are aware of the system's causal graphical structure a priori while outperforming graph-unaware methods on several tasks. Lightweight fine-tuning to specific domains and data dynamics improves performance further.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{lohse2026prim,
  title  = {PRIM: Meta-Learned Bayesian Root Cause Analysis},
  author = {Christopher Lohse and Anish Dhir and Amadou Ba and Bradley Eck and Marco Ruffini and Jonas Wahl},
  year   = {2026},
  eprint = {2605.08786},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2605.08786v3}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2605.08786.svg)](https://codeofpaper.com/paper/2605.08786)

Discussion