Improving Decision Sparsity

Yiyang Sun, Tong Wang, Cynthia Rudin

Abstract

Traditional interpretability in machine learning often focuses on global model simplicity, such as limiting the total number of features used by a model. However, for individuals affected by algorithmic decisions, "local sparsity"—the minimal number of features one must change to alter an outcome—is far more relevant. This paper introduces the Sparse Explanation Value (SEV) and its variants (SEV©, SEVᵀ, SEVᴲ) to generate counterfactual explanations that are sparse, realistic, and actionable. We further propose optimization frameworks, All-Opt- and TOpt, to train models that inherently prioritize decision sparsity. Our results across seven diverse datasets show that these methods produce significantly simpler explanations than existing state-of-the-art techniques without sacrificing predictive accuracy.

Introduction

In the field of interpretable machine learning, a common assumption is that a model is "simple" if it possesses global sparsity—for example, a decision tree with few nodes or a linear model with few non-zero coefficients. While global sparsity is useful for developers, it often fails the end-user. For an individual denied a loan or a medical treatment, the most pertinent question is: "What is the smallest number of changes I need to make to change this result?"

This concept is defined as decision sparsity. Existing counterfactual explanation methods often prioritize "closeness" (making the smallest possible numerical changes) over sparsity. This frequently results in explanations that suggest changing dozens of features by negligible amounts, which is cognitively overwhelming and practically impossible for a human to implement. Furthermore, many methods suggest "non-credible" changes—scenarios that are statistically or logically impossible. This research addresses these gaps by shifting the focus toward sparse, credible, and local explanations.

Methodology

Sparse Explanation Value (SEV) and Variants

The core metric used is the Sparse Explanation Value (SEV), defined as the minimum number of features that must be aligned with a reference point to flip a model's prediction. To improve the utility of SEV, the authors introduced several specialized variants:

  • Cluster-based SEV (SEV©): Rather than using a single population mean as a reference, this method utilizes cluster centroids from the target class. By comparing an individual to a "prototype" of a successful candidate similar to themselves, the resulting explanations are more realistic and actionable.
  • Tree-based SEV (SEVᵀ): This is a computationally efficient algorithm designed specifically for decision tree ensembles. It identifies the shortest path to a leaf node with the desired outcome, enabling real-time explanation generation.
  • Flexible Reference SEV (SEVᴲ): This variant allows the reference point to shift within a defined neighborhood. This flexibility helps identify even sparser explanations by finding a reference that requires fewer feature changes while remaining meaningful.

Model Optimization for Sparsity

Beyond merely explaining existing models, the authors developed methods to train models to be inherently sparse in their decision-making:

  • All-Opt-: A gradient-based training method that applies a penalty to samples with high SEV. This forces the model (including complex architectures like neural networks) to make decisions based on a small number of critical factors for most individuals.
  • TOpt: A search-based optimization method that explores the "Rashomon set"—the collection of all models that achieve near-optimal accuracy—to select the specific model that maximizes average decision sparsity across the dataset.

Experimental Setup

The methods were evaluated on seven tabular datasets representing critical domains in fairness and interpretability:

  • UCI Adult Income: Socioeconomic data for income prediction.
  • FICO HELOC: Credit risk assessment.
  • UCI German Credit: Financial creditworthiness.
  • MIMIC-III: Clinical data from intensive care units.
  • COMPAS: Recidivism risk scores.
  • Diabetes: Hospital readmission prediction.
  • News Headlines: Social media shareability.

Key Insights and Results

Sparsity vs. Closeness

The research highlights a fundamental trade-off: moving to a reference point that is numerically further away in feature space often allows for a much sparser explanation. For human users, changing one feature significantly (e.g., increasing savings) is often more feasible than changing ten features slightly (e.g., changing age, zip code, and multiple minor credit markers simultaneously).

Performance Benchmarks

Compared to popular counterfactual methods like DiCE or Growing Spheres, SEV variants consistently produced sparser explanations. While competitors often required changes to five or more features, SEV variants frequently reduced this to just one or two. Notably, the TOpt algorithm achieved a "perfect" average SEV of 1.00 on several datasets, meaning every decision made by the model could be reversed by changing a single feature.

Credibility and Realism

By utilizing cluster-based references (SEV©), the researchers significantly improved the "log-likelihood" of the generated counterfactuals. This serves as a proxy for how realistic the suggested changes are, ensuring that the model does not suggest impossible scenarios (e.g., reducing one's age to gain a loan).

Conclusion and Future Work

This paper demonstrates that local simplicity can be baked into complex models without a significant loss in accuracy. By prioritizing decision sparsity and credibility, machine learning explanations become more than just diagnostic tools for developers—they become actionable guides for the people affected by the models.

Future research will focus on incorporating causal constraints, ensuring that suggested changes respect the relationships between features (e.g., understanding that changing education level affects income). Additionally, extending these high-sparsity local explanations to unstructured data types, such as images and text, remains a primary objective.

Summary updated

BibTeX
@inproceedings{sun2024improving,
  author = {Yiyang Sun and Tong Wang and Cynthia Rudin},
  title = {{Improving Decision Sparsity}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2024},
  url = {https://openreview.net/forum?id=GhqdnLZMAz},
}
Figure