PRISM: Asymmetric Precision-Recall Optimization for Million-Scale Root Cause Analysis

Wei Zhang, Rongyao Cai, Xiaosheng Li, Hang Yu, Rui WangNeurIPS 2026

TL;DR

When a massive digital platform suddenly breaks, engineers have seconds to sift through millions of log records to find the exact combination of attributes—like a specific phone model in a specific city—causing the outage. Existing diagnostic tools choke at this scale because they wastefully analyze the overwhelming sea of normal, healthy traffic. PRISM flips the math by exploiting a simple geometric truth—failures cluster tightly while normal traffic scatters—allowing it to pinpoint root causes across 5 million records in under a third of a second.

What Problem Does This Paper Address?

Imagine it’s 2:00 AM and order success rates on a payment platform like Alipay or Google Pay suddenly plummet by 40%. You have millions of telemetry records, each tagged with $M$ categorical attributes (City, Device, OS, SKU, etc.). Your job—known as multi-dimensional Root Cause Analysis (RCA)—is to find the exact combination of attribute values (say, City=Jakarta $\land$ SKU=HOME-23841) driving the crash.

Figure 1: Multi-dimensional RCA overview. (Left) An upstream monitor flags a significant drop (e.g., 40%) in a business metric. (Center) Diagnostic telemetry contains M categorical attributes, where the root cause resides in a specific attribute-value combination (highlighted). (Right) Projected onto the root-cause subspace, anomalous samples cluster tightly while normal samples remain diffuse, motivating asymmetric optimization.

As attribute counts and value cardinalities grow, the search space explodes past $2^{100}$ possible combinations. Historically, RCA algorithms have been tested on toy-sized datasets of $10^4$–$10^5$ records and 3–6 dimensions. At modern industrial scale (millions of records, 15+ dimensions), existing paradigms hit a brick wall:

  1. Heuristic search methods scan and aggregate the entire dataset symmetrically, bogging down in $O(2^M)$ combinatorial grids dominated by normal records.
  2. Pairwise metric-learning methods compare every record to every other record ($O(|\mathcal{U}|^2)$), burning nearly all their compute comparing healthy records to other healthy records—which tells you nothing about what broke.

Methods

PRISM (Precision-Recall Informed Subspace Mining) achieves sub-second, million-scale diagnosis through a three-part pipeline that strips away redundant math and data:

Figure 2: PRISM pipeline. Tensor compression reduces pairwise complexity from O(|U|2 · M) to O(|P|2 · M). Stage 1 prunes the O(2M) search space to O(2m) via Bernoulli relaxation. Stage 2 guarantees global optimality within the pruned subspace by exhaustive verification (≤31 evaluations).
  • Asymmetric Precision-Recall Objective: Instead of standard symmetric comparisons, PRISM defines smooth, differentiable versions of Precision and Recall directly over attribute subspaces. Precision compares anomalous-to-normal (P-N) pairs, acting as a "discriminative push" to separate failures from background traffic. Recall compares anomalous-to-anomalous (P-P) pairs, acting as a "cohesive pull" to force anomalies into a tight cluster. Normal-to-normal (N-N) comparisons are eliminated completely.
  • One-Pass Tensor Compression: Before running iterative optimization, PRISM takes a single linear pass over the data to cap the normal background sample size relative to the anomaly count, anonymize irrelevant long-tail values exclusively found in normal data into a single <other> token, and deduplicate identical rows without losing information. This bounds the pairwise math strictly by the number of anomalies ($O(|\mathcal{P}|^2 \cdot M)$) rather than total traffic.
  • Two-Stage Solver: Continuous optimization alone leaves messy fractional weights on attributes. Instead, Stage 1 treats weights as probabilities, sampling binary masks via a Bernoulli relaxation and updating via straight-through gradient estimation to prune $M$ attributes down to a tiny candidate pool ($m \le 5$). Stage 2 then runs an exact, exhaustive combinatorial check over those $\le 31$ non-empty subsets to guarantee the F1-optimal root cause. Multiple concurrent failures are caught by "peeling" away explained anomalies and repeating.

Datasets

  • Public Benchmarks ($\mathcal{A}, \mathcal{D}, \mathcal{B}_3, \mathcal{B}_4$): Four standard, smaller-scale semi-synthetic RCA datasets, each containing 8 subsets of varying granularity.
  • NFC (Newly Introduced): An open-source, production-sourced industrial benchmark from a mobile-payment platform. It features 5.13 million transaction records across $M=15$ attributes ($2^{110}$ value combinations) spanning 100 engineer-verified incidents, complete with real-world label noise.
  • NFC-20K (Diagnostic Control): A scaled-down version of NFC (20,000 records, $M=8$) that preserves the true root-cause records, built to test whether baseline algorithms fail on NFC due to scale or localization logic.

Key Insights and Ideas

  • Anomalies clump; normal life is diffuse: In the true root-cause subspace, failures collapse onto a dense point, whereas healthy transactions remain stochastically scattered everywhere. Realizing that N-N comparisons carry zero diagnostic signal is the key that unlocks million-scale speed.
  • Baselines don't just time out on real data—they get confused: On the tractable NFC-20K control, every baseline finished running, yet almost all of them still scored near-zero F1 (except SinkFlow at 0.53 F1, which later timed out on full NFC). High-cardinality IDs and real-world noise trick traditional heuristic scorers into chasing tiny, noisy sub-groups rather than the true cause.
  • Gradient pruning needs an exact finish: Ablating Stage 2 (just thresholding continuous weights instead of running exact search on the top 5 candidates) drops F1 by 37.4%. Continuous relaxation is great at narrowing the haystacks, while discrete math is still needed to grab the needle.

Key Results

Across 11 baselines, PRISM leads on accuracy while operating orders of magnitude faster:

Table 2: Performance (exact-match F1) and diagnostic latency (seconds) averaged over 5 random seeds (standard deviations in Table 9). Public-benchmark averages (Public Avg.) are reported separately from the 5.13M-record NFC benchmark. Bold denotes the best result (including ties) and underlining the second best. ‘T/O’ indicates no output within the extended 2-hour timeout cap.
  • Public Benchmarks: PRISM achieves the highest average exact-match F1 at 0.92 in 0.02 seconds, beating top contenders RiskLoc (0.91 F1, 0.36s — an $18\times$ speedup) and PSqueeze (0.81 F1, 7.19s — a $350\times$ speedup).
  • Million-Scale Industrial Deployment (Full NFC): Seven baselines failed to finish within an extended 2-hour timeout, and the four that finished collapsed to $\le 0.01$ F1. PRISM alone sustained 0.82 F1 with a sub-second latency of 0.29 seconds.
  • Noise & Scale Resilience: Under a brutal 25% random label-flip rate, PRISM's F1 degrades by only ~7%. When scaling total records from 50K to 5M, latency barely flinches (0.10s to 0.17s at $M=3$).

Limitations and Future Work

  • The $m \le 5$ Subspace Cap: To keep Stage 2's exhaustive search instantaneous ($\le 31$ subsets), Stage 1 retains at most five candidate attributes. Rare, freak incidents caused by six or more intersecting dimensions would be truncated—making scalable combinatorial search for larger candidate pools a natural next step.
  • Sequential Peeling vs. Joint Mixtures: PRISM's Recall term looks for one cohesive cluster at a time, handling concurrent bugs sequentially rather than disentangling multi-modal fault mixtures jointly.
  • Theory-Practice Gap & Telemetry Scope: Formal convergence and identifiability proofs assume clean upstream record labels and idealized proximal updates, rather than noisy alerts or the deployed normalized straight-through heuristic. Additionally, PRISM targets flat categorical tables rather than service dependency graphs or distributed traces.

Summary updated

Abstract

Multi-dimensional Root Cause Analysis (RCA) requires searching an exponential $\mathcal{O}(2^{M})$ attribute-subset space over millions of records within seconds to isolate the root-cause combination. Existing methods fail at this industrial scale because heuristic-search approaches scan and score the massive normal-dominated dataset symmetrically ($\mathcal{O}(|\mathcal{U}| \cdot M)$ with $\mathcal{O}(2^{M})$ search), while pairwise optimization methods incur prohibitive $\mathcal{O}(|\mathcal{U}|^{2})$ normal-normal comparisons. To overcome both bottlenecks, we propose \textbf{PRISM} (\underline{P}recision-\underline{R}ecall \underline{I}nformed \underline{S}ubspace \underline{M}ining), which reformulates RCA as an asymmetric Precision-Recall optimization. Precision is defined over anomaly-normal pairs and Recall over anomaly-anomaly pairs, eliminating uninformative normal-normal comparisons entirely. Coupled with one-pass tensor compression and a two-stage solver---combining Bernoulli straight-through subspace pruning with exact combinatorial verification---PRISM reduces iterative pairwise complexity to an anomaly-bounded $\mathcal{O}(|\mathcal{P}|^{2} \cdot M)$ and exact search to $\mathcal{O}(2^{m})$ ($m \leq 5$). Evaluations on four public benchmarks and a new 5.13M-record industrial dataset show that PRISM achieves the highest public-benchmark average F1 (0.92 vs.\ 0.91 for RiskLoc and 0.81 for PSqueeze), outperforms all baselines on a tractable 20K-record production control (0.82 vs.\ 0.53 F1), and is the only method sustaining high accuracy (0.82 F1) and sub-second latency (0.29\,s) across a $2^{110}$ attribute-value combination space at full 5.13M-record scale. We publicly release our code and this dataset as \textbf{NFC}, establishing a production-sourced, million-scale benchmark for multi-dimensional RCA. \href{https://github.com/goaheand/PRISM}{[Code]} \quad \href{https://huggingface.co/datasets/Ysqq/NFC}{[Dataset]}
BibTeX
@inproceedings{zhang2026prism,
  author = {Wei Zhang and Rongyao Cai and Xiaosheng Li and Hang Yu and Rui Wang},
  title = {{PRISM: Asymmetric Precision-Recall Optimization for Million-Scale Root Cause Analysis}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=cjaVe5kjFu},
}
Figure