TL;DR
JAPE (Joint Anomaly Prediction and Explanation) is a novel framework that shifts multivariate time-series anomaly prediction from simply tracking numerical spikes to modeling evolving dependency structures between variables. By explicitly capturing how inter-variable relationships change before a fault occurs, JAPE achieves a 19.7% improvement in F1-score and a 41.3% gain in AUC-PR over state-of-the-art baselines, while providing "free" variable-level explanations for every alert.
What Problem Does This Paper Address?
In complex distributed systems, waiting for a failure to occur before acting is costly. While anomaly detection identifies faults after the fact, anomaly prediction aims to issue proactive alerts by spotting precursors in historical data.
However, existing prediction methods face three major hurdles:
- Delayed Detection: Most models focus on numerical deviations. Subtle changes in how variables interact (structural precursors) are often drowned out by normal temporal patterns until a massive numerical spike occurs.
- Limited Discriminability: Once a fault starts propagating, many variables show similar numerical deviations, making it hard to distinguish the actual source of the anomaly from its symptoms.
- Lack of Explainability: Traditional "black-box" predictors might tell you an anomaly is coming but rarely explain why or which variables are responsible without expensive post-hoc analysis.
Methods
JAPE introduces a three-pronged approach to move beyond value-centric modeling:
- Decoupled Spatio-Temporal Representation (DSTR): Instead of processing time and variable interactions together, DSTR splits them. The temporal axis models individual variable trends, while the spatial axis uses a lag-aware directional contrast function. This allows the model to capture "lead-lag" relationships (e.g., variable A's past influencing variable B's present), preserving weak structural signals that numerical forecasting might smooth over.
- Dual-View Alerting Mechanism: To issue an alert, JAPE doesn't just look at forecasted values. It fuses two views—the numerical view (predicted future values) and the structural view (predicted future dependency graphs)—using cross-attention. This ensures that even if numerical changes are subtle, a shift in system structure can still trigger a high-confidence alert.
- Native Predictive Explanation (NPE): This is JAPE's "intrinsic" feature. Because the model already generates dependency graphs to make its prediction, it reuses them to calculate a Graph Deviation Score (GDS). By comparing the "anomalous" predicted graph to a "normal" baseline, JAPE can rank which variables contributed most to the structural shift, providing explanations at zero additional computational cost.
Datasets
The authors evaluated JAPE on five diverse, real-world multivariate time-series benchmarks:
- SMD (Server Machine Dataset): Metrics from a large internet company.
- WADI (Water Distribution): Data from a physical water treatment testbed.
- MSL (Mars Science Laboratory) & PSM (Pooled Server Metrics): Spacecraft and server monitoring data.
- EXATHLON: A benchmark specifically designed for explainable anomaly detection in Spark clusters.
Key Insights and Ideas
- Structure is a Leading Indicator: The core "aha" moment is that system relationships often reorganize before values go out of bounds. Modeling these shifts explicitly allows for much earlier and more accurate warnings.
- Decoupling Prevents "Drowning": By separating spatial and temporal modeling, JAPE prevents dominant normal temporal cycles from masking subtle, anomalous inter-variable dependencies.
- Explanation as a Byproduct: By making the dependency graph a core part of the prediction process rather than an afterthought, explainability becomes a natural extension of the model's logic rather than a separate, complex task.
Key Results
- Superior Accuracy: JAPE outperformed strong baselines (like PatchTST and A2P) across all five datasets, showing particularly strong gains in AUC-PR (41.3% average improvement), indicating a much more reliable ranking of anomaly likelihoods.
- Better Explanations: In variable-level localization tasks, JAPE improved the Mean Reciprocal Rank (MRR) by 26.6%, proving it is better at identifying the actual source variables of an impending anomaly.
- High Efficiency: Despite its complexity, JAPE is faster to train than many competitors. The NPE explanation module is incredibly lightweight, accounting for less than 0.5% of the total runtime.
Limitations and Future Work
While JAPE is highly effective, the authors note a few areas for growth:
- Scalability: Modeling full dependency graphs for systems with thousands of variables could become computationally expensive. Future work will explore adaptive graph sparsification to handle massive-scale systems.
- Online Evolution: In real-world deployments, "normal" behavior can drift over time. The authors plan to investigate how structural signals can be integrated into online continual learning scenarios to keep the model's baseline current.
Summary updated