DCFO: Density-Based Counterfactuals for Outliers
Tommaso Amico, Pernille Matthews, Lena Krieger, Arthur Zimek, Ira Assent
Abstract
Outlier detection identifies data points that significantly deviate from the majority of the data distribution. Explaining outliers is crucial for understanding the underlying factors that contribute to their detection, validating their significance, and identifying potential biases or errors. Effective explanations provide actionable insights, facilitating preventive measures to avoid similar outliers in the future. Counterfactual explanations clarify why specific data points are classified as outliers by identifying minimal changes required to alter their prediction. Although valuable, most existing counterfactual explanation methods overlook the unique challenges posed by outlier detection, and fail to target classical, widely adopted outlier detection algorithms. Local Outlier Factor (LOF) is one of the most popular unsupervised outlier detection methods, quantifying outlierness through relative local density. Despite LOF's widespread use across diverse applications, it lacks interpretability. To address this limitation, we introduce Density-based Counterfactuals for Outliers (DCFO), a novel method specifically designed to generate counterfactual explanations for LOF. DCFO partitions the data space into regions where LOF behaves smoothly, enabling efficient gradient-based optimisation. Extensive experimental validation on 50 OpenML datasets demonstrates that DCFO consistently outperforms benchmarked competitors, offering superior proximity and validity of generated counterfactuals.
Ask about this paper
Your agent reads all of it.
Lune indexed this paper to the last equation, along with the top-tier papers that cite it. Ask a question and the answer quotes them.
Your agent calls
Luneget_paper_fulltext
Free to start. No credit card required.
Terminal
Install the CLIlune papers fulltext 7403fd3a-77e3-4760-afd9-beb7d36ca0a9Builds on3
- Diverse, Global and Amortised Counterfactual Explanations for Uncertainty EstimatesDan Ley, Umang Bhatt, Adrian WellerAAAI 2022 · 25 citations
- AR-Pro: Counterfactual Explanations for Anomaly Repair with Formal PropertiesXiayan Ji, Anton Xue, Eric Wong, Oleg Sokolsky et al.NeurIPS 2024 · 9 citations
- Framing Algorithmic Recourse for Anomaly DetectionDebanjan Datta, Feng Chen, Naren RamakrishnanKDD 2022 · 2 citations
Related papers
- ExDBSCAN: Explaining DBSCAN with Counterfactual ReasoningPernille Matthews, Lena Krieger, Tommaso Amico, Arthur Zimek et al.KDD 2026 · 1 citation
- LeapFactual: Reliable Visual Counterfactual Explanation Using Conditional Flow MatchingZhuo Cao, Xuan Zhao, Lena Krieger, Hanno Scharr et al.NeurIPS 2025 · 5 citations
- Ordered Counterfactual Explanation by Mixed-Integer Linear OptimizationKentaro Kanamori, Takuya Takagi, Ken Kobayashi, Yuichi Ike et al.AAAI 2021 · 135 citations
- Concept-based Explanations for Out-of-Distribution DetectorsJihye Choi, Jayaram Raghuram, Ryan Feng, Jiefeng Chen et al.ICML 2023 · 18 citations
- OCTET: Object-aware Counterfactual ExplanationsMehdi Zemni, Mickaël Chen, Éloi Zablocki, Hédi Ben-Younes et al.CVPR 2023
