mlsanityData to 7 Oct 2026

CounterNet: End-to-End Training of Prediction Aware Counterfactual Explanations

arXiv 2109.07557 ↗First posted 15 Sep 2021cs.LGcited by 17

Not on the map. Why?

Abstract (arXiv)

This work presents CounterNet, a novel end-to-end learning framework which integrates Machine Learning (ML) model training and the generation of corresponding counterfactual (CF) explanations into a single end-to-end pipeline. Counterfactual explanations offer a contrastive case, i.e., they attempt to find the smallest modification to the feature values of an instance that changes the prediction of the ML model on that instance to a predefined output. Prior techniques for generating CF explanations suffer from two major limitations: (i) all of them are post-hoc methods designed for use with proprietary ML models -- as a result, their procedure for generating CF explanations is uninformed by the training of the ML model, which leads to misalignment between model predictions and explanations; and (ii) most of them rely on solving separate time-intensive optimization problems to find CF explanations for each input data point (which negatively impacts their runtime). This work makes a novel departure from the prevalent post-hoc paradigm (of generating CF explanations) by presenting CounterNet, an end-to-end learning framework which integrates predictive model training and the generation of counterfactual (CF) explanations into a single pipeline. Unlike post-hoc methods, CounterNet enables the optimization of the CF explanation generation only once together with the predictive model. We adopt a block-wise coordinate descent procedure which helps in effectively training CounterNet's network. Our extensive experiments on multiple real-world datasets show that CounterNet generates high-quality predictions, and consistently achieves 100% CF validity and low proximity scores (thereby achieving a well-balanced cost-invalidity trade-off) for any new input instance, and runs 3X faster than existing state-of-the-art baselines.

Key facts. Cited by 17 papers in the map (data through 7 Oct 2026). Builds on 41 of its 64 references that are in the map. First posted on arXiv 15 Sep 2021.

Builds on

41 of 64 references.

References · 41

  1. 2015Deep Residual Learning for Image Recognitioncited by 51,809
  2. 2014Explaining and Harnessing Adversarial Examplescited by 7,287
  3. 2016Grad-CAM: Visual Explanations from Deep Networks via Gradient-based Localizationcited by 6,690
  4. 2017A Unified Approach to Interpreting Model Predictionscited by 6,488
  5. 2017Towards Deep Learning Models Resistant to Adversarial Attackscited by 6,326
  6. 2016"Why Should I Trust You?": Explaining the Predictions of Any Classifiercited by 5,040
  7. 2017Axiomatic Attribution for Deep Networkscited by 3,350
  8. 2017Understanding Black-box Predictions via Influence Functionscited by 1,714
  9. 2017Explanation in Artificial Intelligence: Insights from the Social Sciencescited by 1,201
  10. 2017SmoothGrad: removing noise by adding noisecited by 1,097
  11. 2017Counterfactual Explanations without Opening the Black Box: Automated Decisions and the GDPRcited by 1,086
  12. 2018A Survey Of Methods For Explaining Black Box Modelscited by 970
29 more
  1. 2018This Looks Like That: Deep Learning for Interpretable Image Recognitioncited by 731
  2. 2019Explaining Machine Learning Classifiers through Diverse Counterfactual Explanationscited by 612
  3. 2015Empirical Evaluation of Rectified Activations in Convolutional Networkcited by 515
  4. 2017Robust Loss Functions under Label Noise for Deep Neural Networkscited by 441
  5. 2018Actionable Recourse in Linear Classificationcited by 327
  6. 2018Explanations based on the Missing: Towards Contrastive Explanations with Pertinent Negativescited by 261
  7. 2018Manipulating and Measuring Model Interpretabilitycited by 256
  8. 2020Algorithmic Recourse: from Counterfactual Explanations to Interventionscited by 250
  9. 2019Interpretable Counterfactual Explanations Guided by Prototypescited by 223
  10. 2019Explainable Machine Learning in Deploymentcited by 210
  11. 2017Formal Guarantees on the Robustness of a Classifier against Adversarial Manipulationcited by 182
  12. 2019Learning Model-Agnostic Counterfactual Explanations for Tabular Datacited by 146
  13. 2019Preserving Causal Constraints in Counterfactual Explanations for Machine Learning Classifierscited by 143
  14. 2020Evaluation of Neural Architectures Trained with Square Loss vs Cross-Entropy in Classification Taskscited by 137
  15. 2019Towards Realistic Individual Recourse and Actionable Explanations in Black-Box Decision Making Systemscited by 128
  16. 2020Interpretable Machine Learning -- A Brief History, State-of-the-Art and Challengescited by 120
  17. 2020A survey of algorithmic recourse: definitions, formulations, solutions, and prospectscited by 118
  18. 2021Towards Robust and Reliable Algorithmic Recoursecited by 101
  19. 2018'It's Reducing a Human Being to a Percentage'; Perceptions of Justice in Algorithmic Decisionscited by 91
  20. 2020Do Wider Neural Networks Really Help Adversarial Robustness?cited by 79
  21. 2019Explanation by Progressive Exaggerationcited by 76
  22. 2020On the Fairness of Causal Algorithmic Recoursecited by 69
  23. 2021Beyond Trivial Counterfactual Explanations with Diverse Valuable Explanationscited by 56
  24. 2021Generating Interpretable Counterfactual Explanations By Implicit Minimisation of Epistemic and Aleatoric Uncertaintiescited by 41
  25. 2021Amortized Generation of Sequential Algorithmic Recourses for Black-box Modelscited by 24
  26. 2020Learning Models for Actionable Recoursecited by 18
  27. 2021Model-Based Counterfactual Synthesizer for Interpretationcited by 14
  28. 2021Impact of Response Latency on User Behaviour in Mobile Web Searchcited by 4
  29. 2018Leveraging Program Analysis to Reduce User-Perceived Latency in Mobile Applicationscited by 1

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2022: 1; 2023: 1; 2024: 5; 2025: 7; 2026: 3.

17 papers.

Sort:

By area:

  1. 2024Vinoground: Scrutinizing LMMs over Dense Temporal Reasoning with Short Videoscited by 37
  2. 2024Self-eXplainable AI for Medical Image Analysis: A Survey and New Outlookscited by 18
  3. 2022RoCourseNet: Distributionally Robust Training of a Prediction Aware Recourse Modelcited by 11
  4. 2025Explain Yourself, Briefly! Self-Explaining Neural Networks with Concise Sufficient Reasonscited by 11
  5. 2024Counterfactual Concept Bottleneck Modelscited by 7
  6. 2023Designing User-Centric Behavioral Interventions to Prevent Dysglycemia with Novel Counterfactual Explanationscited by 5
  7. 2025GlyTwin: Digital Twin for Glucose Control in Type 1 Diabetes Through Optimal Behavioral Modifications Using Patient-Centric Counterfactualscited by 5
  8. 2026Counterfactual Modeling with Fine-Tuned LLMs for Health Intervention Design and Sensor Data Augmentationcited by 3
  9. 2024Verified Training for Counterfactual Explanation Robustness under Data Shiftcited by 2
  10. 2025Tabular Diffusion based Actionable Counterfactual Explanations for Network Intrusion Detectioncited by 1
  11. 2025TriShGAN: Enhancing Sparsity and Robustness in Multivariate Time Series Counterfactuals Explanationcited by 1
  12. 2024Watermarking Counterfactual Explanationscited by 0
5 more
  1. 2025Designing User-Centric Metrics for Evaluation of Counterfactual Explanationscited by 0
  2. 2025Tabular Diffusion Counterfactual Explanationscited by 0
  3. 2025An Explainable Gaussian Process Auto-encoder for Tabular Datacited by 0
  4. 2026Counterfactual Training: Teaching Models Plausible and Actionable Explanationscited by 0
  5. 2026Class-Aware Reinforcement Learning for Counterfactual Explanation Generationcited by 0