ExDBSCAN: Explaining DBSCAN with Counterfactual Reasoning
Pernille Matthews, Lena Krieger, Tommaso Amico, Arthur Zimek, Thomas Seidl, Ira Assent
Abstract
Clustering is an unsupervised technique for grouping data points by similarity. While explainability methods exist for supervised machine learning, they are not directly applicable to clustering, making it challenging to understand cluster assignments. This interpretability gap is particularly evident in the popular density-based method DBSCAN, which assigns points as inliers (cluster members in dense regions) or outliers (noise points in sparse regions). DBSCAN does not provide insight into why a particular point receives its assignment or whether its assignment is robust to small changes in the data. To address the lack of explainability, we introduce ExDBSCAN, a density-aware, post-hoc explanation method. ExDBSCAN offers actionable counterfactual explanations, with theoretical guarantees for validity. It generates multiple counterfactuals using a densityconnected weighted graph, adopting a physics-inspired model that repels counterfactual candidates from one another (diversity), while pulling them toward the instance to explain (proximity). Empirical evaluation on 30 tabular datasets comparing against four baselines shows that ExDBSCAN outperforms all baselines while attaining perfect validity and retrieving diverse, proximal 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 b18c2b19-cec4-4a6d-b0bd-cd263ddbb858Builds on3
- Explainable k-Means and k-Medians ClusteringMichal Moshkovitz, Sanjoy Dasgupta, Cyrus Rashtchian, Nave FrostICML 2020 · 184 citations
- How to Find a Good Explanation for Clustering?Sayan Bandyapadhyay, Fedor V. Fomin, Petr A. Golovach, William Lochet et al.AAAI 2022 · 47 citations
- Diverse, Global and Amortised Counterfactual Explanations for Uncertainty EstimatesDan Ley, Umang Bhatt, Adrian WellerAAAI 2022 · 25 citations
Related papers
- DCFO: Density-Based Counterfactuals for OutliersTommaso Amico, Pernille Matthews, Lena Krieger, Arthur Zimek et al.KDD 2026
- Internal Evaluation of Density-Based Clusterings with NoiseAnna Beer, Lena Krieger, Pascal Weber, Martin Ritzert et al.ICLR 2026 · 2 citations
- Fast Density-Based Clustering: Geometric ApproachXiaogang Huang, Tiefeng MaSIGMOD 2023 · 3 citations
- UNR-Explainer: Counterfactual Explanations for Unsupervised Node Representation Learning ModelsHyunju Kang, Geonhee Han, Hogun ParkICLR 2024 · 8 citations
- Connecting the Dots - Density-Connectivity Distance unifies DBSCAN, k-Center and Spectral ClusteringAnna Beer, Andrew Draganov, Ellen Hohma, Philipp Jahn et al.KDD 2023 · 18 citations
