Abstract
This paper introduces a statistical framework that automatically identifies specific subgroups where two machine learning models differ most in terms of fairness and accuracy. By using a "difference-in-differences" approach within a recursive partitioning framework, the authors demonstrate that models with nearly identical aggregate performance can harbor vastly different racial or gender disparities at the subgroup level.
Introduction
In high-stakes domains like criminal justice, lending, and healthcare, practitioners often face a choice: should they stick with a simple, transparent model or move to a complex, proprietary "black-box" algorithm? The standard approach is to compare aggregate metrics like overall accuracy or Area Under the Curve (AUC). However, this "top-down" view is dangerously incomplete. Two models might share similar accuracy but disagree on which specific individuals they misclassify. More importantly, a new model might improve overall accuracy while simultaneously increasing unfairness for a specific demographic.
Methods: Automated Subgroup Discovery
The authors propose a model comparison framework based on recursive binary partitioning. The core of this approach is the Disparity Parameter ($\Delta$), defined as a "difference-in-differences." For instance, when comparing the False Positive Rate (FPR) disparity between Black and White defendants across two models ($M_1$ and $M_2$), $\Delta$ measures how much the racial gap in $M_2$ differs from the racial gap in $M_1$.
The algorithm starts with the entire dataset and searches for the covariate (e.g., age, gender, or prior charges) that shows the most statistically significant variation in $\Delta$. It splits the data into two groups and repeats the process recursively. To maintain computational efficiency, the framework uses "score-type" tests (Lagrange Multiplier tests) to detect disparity variations without re-fitting complex models for every potential split. Crucially, the framework is model-agnostic; it only requires final classifications and true outcomes.
Case Study: Recidivism Prediction
The framework was evaluated using the ProPublica COMPAS dataset, comparing the proprietary COMPAS tool against a simple baseline model based solely on a defendant's number of prior offenses ("Priors").
The Aggregate Fallacy
On the surface, the two models appear remarkably similar. As shown in the aggregate performance table, COMPAS and the Priors model have comparable accuracy and AUC scores.
Despite these similar summary statistics, the models disagreed on 32% of all cases. This highlights the "aggregate fallacy": models that appear identical in a summary table can be fundamentally different under the hood.
Localized Fairness
The automated partitioning identified 7 distinct subgroups where the racial gap in FPR differed between the models. While the models might seem equally fair in the aggregate, disparities are rarely uniform.
For men under 25, the racial disparity in COMPAS was high, while the simpler "Priors" model showed nearly zero racial disparity for that same group. This suggests that moving to a more complex model does not always yield a "free lunch" in accuracy and can introduce significant intersectional biases.
Insights from Lending Data
The framework was also applied to the UCI Adult dataset to simulate a lending scenario. Comparing a "Small" model (limited features) against a "Full" model (including race and marital status) revealed that "blinding" a model to sensitive traits is not always the best path to equity. In some subgroups, including sensitive attributes actually decreased gender disparity, challenging common assumptions about fairness through unawareness.
Conclusion
Fairness is local. This diagnostic tool allows researchers and practitioners to move beyond aggregate metrics and systematically surface "hidden" subgroups where model behavior diverges. While the framework identifies where disparities exist, it remains a diagnostic tool rather than a causal explanation. Future work aims to extend the logic to multi-level sensitive attributes and a wider variety of parity metrics.
Summary updated