mlsanityData to 14 Oct 2026

xai-cola: A Python library for sparsifying counterfactual explanations

arXiv 2602.21845 ↗First posted 25 Feb 2026cs.LG cs.AI cs.CYcited by 0

Not on the map. Why?

Abstract (arXiv)

Counterfactual explanation (CE) is an important domain within post-hoc explainability. However, the explanations generated by most CE generators are often highly redundant. This work introduces an open-source Python library xai-cola, which provides an end-to-end pipeline for sparsifying CEs produced by arbitrary generators, reducing superfluous feature changes while preserving their validity. It offers a documented API that takes as input raw tabular data in pandas DataFrame form, a preprocessing object (for standardization and encoding), and a trained scikit-learn or PyTorch model. On this basis, users can either employ the built-in or externally imported CE generators. The library also implements several sparsification policies and includes visualization routines for analysing and comparing sparsified counterfactuals. xai-cola is released under the MIT license and can be installed from PyPI. Empirical experiments indicate that xai-cola produces sparser counterfactuals across several CE generators, reducing the number of modified features by up to 50% in our setting. The source code is available at https://github.com/understanding-ml/COLA.

Key facts. No citing papers in the map yet (data through 14 Oct 2026). Builds on 8 of its 12 references that are in the map. First posted on arXiv 25 Feb 2026.

Builds on

8 of 12 references.

References · 8

  1. 2019Explainable Artificial Intelligence (XAI): Concepts, Taxonomies, Opportunities and Challenges toward Responsible AIcited by 1,552
  2. 2017Counterfactual Explanations without Opening the Black Box: Automated Decisions and the GDPRcited by 1,089
  3. 2019Explaining Machine Learning Classifiers through Diverse Counterfactual Explanationscited by 614
  4. 2019FACE: Feasible and Actionable Counterfactual Explanationscited by 233
  5. 2020Counterfactual Explanations and Algorithmic Recourses for Machine Learning: A Reviewcited by 174
  6. 2023GLOBE-CE: A Translation-Based Approach for Global Counterfactual Explanationscited by 27
  7. 2024Distributional Counterfactual Explanations With Optimal Transportcited by 6
  8. 2024Joint Distribution-Informed Shapley Values for Sparse Counterfactual Explanationscited by 4

Built on by

Not cited yet.