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.
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:
- Heuristic search methods scan and aggregate the entire dataset symmetrically, bogging down in $O(2^M)$ combinatorial grids dominated by normal records.
- 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:
- 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:
- 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