[Paper Review] Counterfactual Explanations for Arbitrary Regression Models
This paper introduces a Bayesian optimization-based method for generating counterfactual explanations (CFEs) in regression models, using differentiable potentials to overcome threshold-based robustness issues. It achieves global convergence, supports arbitrary constraints (e.g., sparsity, actionability), and enables parallel querying with knowledge transfer, outperforming local gradient-based methods in sample efficiency and precision on real-world regression tasks.
We present a new method for counterfactual explanations (CFEs) based on Bayesian optimisation that applies to both classification and regression models. Our method is a globally convergent search algorithm with support for arbitrary regression models and constraints like feature sparsity and actionable recourse, and furthermore can answer multiple counterfactual questions in parallel while learning from previous queries. We formulate CFE search for regression models in a rigorous mathematical framework using differentiable potentials, which resolves robustness issues in threshold-based objectives. We prove that in this framework, (a) verifying the existence of counterfactuals is NP-complete; and (b) that finding instances using such potentials is CLS-complete. We describe a unified algorithm for CFEs using a specialised acquisition function that composes both expected improvement and an exponential-polynomial (EP) family with desirable properties. Our evaluation on real-world benchmark domains demonstrate high sample-efficiency and precision.
Motivation & Objective
- To address the lack of robust, principled counterfactual explanation methods for regression models, which are prone to trivial or uninformative perturbations due to continuous outputs.
- To formalize counterfactual search in regression using differentiable potentials, resolving the sensitivity of threshold-based objectives.
- To develop a globally convergent, black-box-compatible algorithm that supports arbitrary nonlinear constraints and enables parallel, amortized CFE generation.
- To establish theoretical complexity bounds for CFE existence and optimality in the proposed framework, proving NP-completeness and CLS-completeness.
- To demonstrate the method’s effectiveness through empirical evaluation on real-world regression benchmarks with actionable, sparse, and causally informed counterfactuals.
Proposed method
- Formulate counterfactual search in regression using differentiable potentials, replacing threshold-based objectives to ensure robustness and mathematical rigor.
- Introduce an exponential-polynomial (EP) family of potential functions with desirable theoretical and practical properties for modeling target deviations.
- Design a specialized acquisition function combining expected improvement and EP potentials to guide Bayesian optimization toward valid, high-quality counterfactuals.
- Implement a unified algorithm that supports arbitrary nonlinear constraints (e.g., sparsity, actionability) via user-defined regularization or feature bounds.
- Enable parallel querying of multiple counterfactual questions in a single optimization run, reusing information across queries to improve sample efficiency.
- Use Bayesian optimization with global convergence guarantees, even when the underlying model is non-differentiable or black-box.
Experimental results
Research questions
- RQ1Can a principled, robust framework for counterfactual explanation be developed for regression models that avoids the pitfalls of threshold-based objectives?
- RQ2What is the computational complexity of counterfactual existence and optimality in the proposed potential-based formalism?
- RQ3Can a Bayesian optimization-based method achieve global convergence and high sample efficiency in generating counterfactuals for arbitrary regression models?
- RQ4How effective is the proposed method in generating actionable, sparse, and causally plausible counterfactuals across real-world regression tasks?
- RQ5Can the method support multiple counterfactual queries in parallel while reusing optimization knowledge across queries?
Key findings
- The proposed method achieves high sample efficiency and precision in generating counterfactuals across real-world regression benchmarks, outperforming local gradient-based approaches.
- The use of differentiable potentials resolves robustness issues inherent in threshold-based objectives, ensuring consistent and meaningful counterfactual generation.
- Theoretical analysis proves that verifying counterfactual existence is NP-complete and finding optimal counterfactuals is CLS-complete under the proposed formalism.
- The algorithm demonstrates global convergence even when the model is non-differentiable, a key advantage over local optimization methods.
- Counterfactuals generated for a ride-sharing duration prediction model revealed intuitive drivers (e.g., distance, number of passengers) and counterintuitive patterns (e.g., time-of-day effects), validating diagnostic utility.
- Even with no constraints, some target deviations were unattainable, and the method successfully identified this via accumulated candidate sampling, unlike path-dependent gradient methods.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.