Lune

KDD2026Top-tier venue

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 Lune

Know this paper in minutes, not an afternoon.

Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.

Questions to start from

Lune can draw on

the full paper · related work

Get the answer

Free to start. No credit card required.

Lineage

Builds onCited byLeft to right by year; the more cited, the higher.

Builds on3

  1. Diverse, Global and Amortised Counterfactual Explanations for Uncertainty EstimatesDan Ley, Umang Bhatt, Adrian WellerAAAI 2022 · 25 citations
  2. AR-Pro: Counterfactual Explanations for Anomaly Repair with Formal PropertiesXiayan Ji, Anton Xue, Eric Wong, Oleg Sokolsky et al.NeurIPS 2024 · 9 citations
  3. Framing Algorithmic Recourse for Anomaly DetectionDebanjan Datta, Feng Chen, Naren RamakrishnanKDD 2022 · 2 citations

Related papers

  1. ExDBSCAN: Explaining DBSCAN with Counterfactual ReasoningPernille Matthews, Lena Krieger, Tommaso Amico, Arthur Zimek et al.KDD 2026 · 1 citation
  2. LeapFactual: Reliable Visual Counterfactual Explanation Using Conditional Flow MatchingZhuo Cao, Xuan Zhao, Lena Krieger, Hanno Scharr et al.NeurIPS 2025 · 5 citations
  3. Ordered Counterfactual Explanation by Mixed-Integer Linear OptimizationKentaro Kanamori, Takuya Takagi, Ken Kobayashi, Yuichi Ike et al.AAAI 2021 · 135 citations
  4. Concept-based Explanations for Out-of-Distribution DetectorsJihye Choi, Jayaram Raghuram, Ryan Feng, Jiefeng Chen et al.ICML 2023 · 18 citations
  5. OCTET: Object-aware Counterfactual ExplanationsMehdi Zemni, Mickaël Chen, Éloi Zablocki, Hédi Ben-Younes et al.CVPR 2023
Dusk over the sea between two cliffs drawn in fine vertical lines