Abstract
As deep anomaly detection models are increasingly deployed in real-world settings, the need for interpretability has become paramount. While current research often identifies features contributing to abnormal outcomes, it frequently fails to recommend actionable steps to reverse these predictions. This paper introduces RootCLAM (Root Cause Localization and Anomaly Mitigation), a framework that leverages causal algorithmic recourse to suggest interventions. By modeling the underlying causal mechanisms, RootCLAM identifies root causes and recommends minimal actions to flip abnormal labels. Experiments across three datasets demonstrate that RootCLAM effectively reverts anomalies with significantly lower intervention costs than baseline methods.
Introduction: Beyond Feature Attribution
Deep learning has significantly advanced anomaly detection, yet many models remain "black boxes." In critical sectors like finance or healthcare, simply flagging an anomaly is insufficient; practitioners must understand the "why" and the "how" of mitigation. Traditional explainability methods typically rely on feature attribution, highlighting which variables appear abnormal. However, these methods often overlook causal dependencies. For instance, a loan rejection might be attributed to "low savings," while the actual root cause is "low income."
Furthermore, standard "algorithmic recourse"—suggesting changes to flip a model's prediction—often ignores the "causal ripples" of real-world interventions. Changing one feature inevitably impacts its downstream descendants in a causal network. This research bridges the gap by integrating causal inference into the detection and mitigation pipeline.
The RootCLAM Framework
RootCLAM addresses these challenges through a two-phase approach grounded in Structural Causal Models (SCMs).
- Root Cause Localization: The framework utilizes a Variational Causal Graph Autoencoder (VACA) to map observed features to their underlying exogenous variables (external factors not explained by parents in the graph). By identifying which exogenous variables deviate from the normal distribution, RootCLAM can distinguish between a feature that is abnormal due to its parents and one that is a true root cause.
- Anomaly Mitigation: Once root causes are pinpointed, the framework seeks the minimum perturbation required to flip the anomaly label. Unlike "hard interventions" that might suggest unrealistic changes, RootCLAM employs soft interventions. It iteratively calculates how changes to a root cause propagate through the causal graph, ensuring that the suggested recourse is both effective and causally consistent.
The optimization process employs a differentiable loss function that balances the success of the label flip against the magnitude (cost) of the intervention.
Empirical Evaluation
The researchers evaluated RootCLAM on three distinct datasets: a semi-synthetic Loan dataset (based on German Credit data), an Adult income dataset, and a real-world Donors dataset from DonorsChoose.org.
Key Findings
- Localization Accuracy: RootCLAM significantly outperformed state-of-the-art methods like CausalRCA. On the Loan dataset, it achieved a recall of 0.765, compared to 0.680 for the baseline.
- Mitigation Efficiency: In "flipping ratio" tests—measuring the percentage of anomalies successfully reverted—RootCLAM achieved near 100% success on the Adult dataset. Crucially, it required much smaller perturbations than "NaiveAM," which ignores causal structures.
- Real-World Application: In the DonorsChoose case study, RootCLAM correctly identified that increasing "teacher-referred counts" and "great messages" would flip a project's status to "exciting." Baseline methods failed here by not accounting for the downstream impacts of these changes.
Discussion and Future Directions
While RootCLAM offers a robust path toward actionable interpretability, it relies on the availability of a causal graph. Although causal discovery algorithms like PC can infer these graphs from data, errors in graph structure can propagate into the mitigation process. Additionally, the current framework is optimized for tabular data. Future research will explore extending causal recourse to more complex domains, such as time-series data or high-dimensional image data, where identifying temporal or spatial root causes remains an open challenge.
Summary updated