Skip to main content
QUICK REVIEW

[Paper Review] Optimal Counterfactual Explanations for Scorecard modelling

Guillermo Navas-Palencia|arXiv (Cornell University)|Apr 17, 2021
Forecasting Techniques and ApplicationsDecision Sciences14 references6 citations
TL;DR

This paper proposes mixed-integer programming formulations to generate optimal, diverse counterfactual explanations for scorecard models in finance, using multi-objective optimization to balance proximity, sparsity, and realism. The approach efficiently produces high-quality counterfactuals in seconds using CP-SAT, with infeasibility certificates and strong performance on real-world datasets.

ABSTRACT

Counterfactual explanations is one of the post-hoc methods used to provide explainability to machine learning models that have been attracting attention in recent years. Most examples in the literature, address the problem of generating post-hoc explanations for black-box machine learning models after the rejection of a loan application. In contrast, in this work, we investigate mathematical programming formulations for scorecard models, a type of interpretable model predominant within the banking industry for lending. The proposed mixed-integer programming formulations combine objective functions to ensure close, realistic and sparse counterfactuals using multi-objective optimization techniques for a binary, probability or continuous outcome. Moreover, we extend these formulations to generate multiple optimal counterfactuals simultaneously while guaranteeing diversity. Experiments on two real-world datasets confirm that the presented approach can generate optimal diverse counterfactuals addressing desired properties with assumable CPU times for practice use.

Motivation & Objective

  • Address the lack of optimization-based counterfactual methods tailored for interpretable scorecard models used in banking and finance.
  • Develop mathematical programming formulations that generate counterfactuals satisfying key properties: proximity to input, sparsity, realism, and diversity.
  • Extend formulations to simultaneously generate multiple diverse counterfactuals while ensuring they are optimal under multi-objective criteria.
  • Provide practical, scalable solutions with infeasibility certification and acceptable computation times for real-world deployment.

Proposed method

  • Formulate counterfactual generation as a mixed-integer program minimizing a distance function between input and counterfactual, subject to achieving a desired outcome via the scorecard model.
  • Integrate multiple objectives—proximity, sparsity (via feature change limit Θ), and closeness (via feature value constraints)—using weighted or hierarchical multi-objective strategies.
  • Enforce diversity among multiple counterfactuals through hard constraints on feature values (FV) and feature changes (F), ensuring distinct combinations of variable modifications.
  • Use the CP-SAT solver to efficiently solve the optimization problems, enabling fast computation and infeasibility detection.
  • Model scorecard outcomes as binary, probability, or continuous using piecewise-linear approximations compatible with MIP solvers.
  • Incorporate actionable constraints by excluding non-actionable features (e.g., sex, race) from modifications, ensuring practical feasibility.

Experimental results

Research questions

  • RQ1Can mixed-integer programming formulations generate optimal, diverse, and realistic counterfactual explanations for scorecard models in finance?
  • RQ2How do proximity, sparsity, and closeness objectives trade off in counterfactual generation, and what multi-objective strategies best balance them?
  • RQ3What is the computational performance of generating multiple diverse counterfactuals simultaneously under practical constraints?
  • RQ4How effective is the method in detecting infeasible counterfactual scenarios, and what factors influence infeasibility?

Key findings

  • The proposed method generates optimal, diverse counterfactuals for a single data point in under 4 seconds using CP-SAT, with results stable across multiple configurations.
  • Infeasibility is detected quickly—within 0.8 seconds—when constraints on actionable features and diversity are too strict, confirming the method’s ability to certify infeasibility.
  • For K=5 and Θ=5, the method produced feasible counterfactuals with predicted probabilities ranging from 0.502 to 0.526, demonstrating consistent outcome control.
  • Excluding the closeness objective leads to counterfactuals with larger feature value shifts, confirming that closeness improves realism and practicality.
  • The method successfully avoids modifying non-actionable features like sex and race, ensuring ethical and practical feasibility.
  • The weighted approach with diversity constraints (F + FV) produced four distinct counterfactuals for the Adult-Income dataset, each with minimal, realistic changes to actionable features.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.