NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Supervising Feature Influence

Shayak Sen, Piotr Mardziel, Anupam Datta, Matthew FredriksonarXiv 2018

Introduction

Machine learning models trained to minimize empirical risk often rely on unintended or biased features, even when achieving high overall accuracy. This phenomenon, termed "causal laziness," occurs because standard Empirical Risk Minimization (ERM) only optimizes for predictive performance on the training distribution. This paper identifies covariate shift in causal testing as the primary obstacle to auditing model reasoning and proposes a novel active learning algorithm that queries counterfactuals to explicitly supervise and correct a model's causal influences.

The Problem: Covariate Shift in Causal Testing

As algorithmic accountability becomes a legal and ethical necessity (e.g., the GDPR's "right to explanation"), auditors use causal influence measures to ask counterfactual questions: "Would the outcome change if feature $X$ were different, but all other features remained constant?"

Visualizing covariate shift in causal testing. (a) Multiple predictors achieve similar accuracy on the training distribution but rely on different features. (b) Causal testing requires querying counterfactual points (red bar) where these predictors diverge.

However, if features like age and income are highly correlated in the training data, ERM is indifferent to which feature the model uses. To test which feature the model actually relies on, auditors must evaluate it on atypical, out-of-distribution (OOD) data points—such as a very young person with a high income. Because the model was never trained on these points, its behavior is unconstrained. The authors formally prove (Theorem 1) that if the training and counterfactual distributions diverge, ERM leaves causal influences mathematically unconstrained.

Methodology: Counterfactual Active Learning

To address this, the authors introduce Counterfactual Active Learning, an algorithm designed to align a model's causal influences with ground-truth values. The method utilizes an active learning loop guided by two oracles:

  1. Feature Selection Oracle: Identifies problematic or suspicious features by examining the model's current causal influences (measured via Average Unary Quantitative Input Influence, or auQII).
  2. Labeling Oracle: Provides ground-truth labels for generated counterfactual data points where the flagged feature is altered while others are sampled from their marginal distributions.

By retraining the model on a mix of original and counterfactual data, the algorithm forces the model to minimize error across both distributions, thereby constraining its causal reasoning. Theorem 2 in the paper guarantees that if two predictors match on both distributions, their causal influences must be mathematically close.

Key Results and Generalization

The approach was evaluated on three real-world tabular datasets: Adult (census income), Arrests (criminal history), and Lending Club (loan defaults). The authors compared a "guided" feature selection oracle against "random" and "non-counterfactual" baselines across Logistic Regression, Decision Trees, and Random Forests.

Convergence results across Adult, Arrests, and Lending Club datasets. The 'guided' approach (blue) significantly outperforms random sampling and standard ERM in aligning causal influence and reducing OOD error.

Key findings include:

  • Influence Alignment: The active learning loop successfully forced model influences to converge toward the ground truth. The guided oracle demonstrated the most efficient convergence.
  • Stability of In-Distribution Accuracy: Incorporating counterfactual points did not degrade performance on the original data distribution.
  • Improved OOD Generalization: Aligning causal influences with the ground truth forced the models to learn the true underlying data-generating function, leading to significantly lower error rates on unbiased, out-of-distribution holdout sets.

Limitations and Future Work

A primary limitation is the reliance on a labeling oracle that can provide certain labels for OOD points, which may be expensive or require real-world experimentation in practice. Future research should focus on cost-aware active learning and mechanisms for answering counterfactual queries when data points fall extremely far from the natural distribution.

Summary updated

BibTeX
@misc{sen2018supervising,
  author = {Shayak Sen and Piotr Mardziel and Anupam Datta and Matthew Fredrikson},
  title = {{Supervising Feature Influence}},
  year = {2018},
  eprint = {1803.10815},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1803.10815},
}
Figure