Size-adaptive Hypothesis Testing for Fairness

Antonio Ferrara, Francesco Cozzi, Alan Perotti, André Panisson, Francesco Bonchi

TL;DR

Current algorithmic fairness audits often rely on comparing "point estimates" against arbitrary thresholds. This practice ignores statistical uncertainty and frequently fails when evaluating small demographic subgroups. To address this, researchers introduce SAFT (Size-Adaptive Fairness Testing), a unified framework that combines a new Central Limit Theorem result for large groups with a Bayesian estimator for small groups. This approach provides a mathematically rigorous way to detect discrimination regardless of sample size.

The Problem with Arbitrary Thresholds

In the realm of AI ethics, auditors frequently measure "Statistical Parity"—the principle that a model should predict favorable outcomes (like loan approvals) at similar rates across different demographic groups. Traditionally, this involves calculating a single number (the difference in rates) and checking if it exceeds a fixed threshold, such as 0.1.

The authors argue this approach is statistically brittle. For a group of 10,000 people, a 5% difference is a massive, statistically significant red flag. However, when conducting an "intersectional" analysis—for example, looking specifically at "Asian women over 65 in a specific zip code"—the sample size might be as small as 5 people. In such a tiny sample, a 20% difference could easily be attributed to random noise.

As fairness analyses become more granular, we hit a "resolution limit" where data is too sparse for traditional metrics. Current methods either ignore this uncertainty (leading to false alarms) or down-weight small groups so heavily that genuine local discrimination is overlooked.

The SAFT Framework

The paper proposes a two-pronged, size-adaptive framework to handle varying levels of data availability:

  1. The Large-Sample Regime (Wald Test): For sufficiently large groups, the authors prove a new Central Limit Theorem (CLT) for Statistical Parity. They derive the asymptotic distribution of the parity difference, allowing them to calculate analytic confidence intervals and perform a Wald test. This ensures that for large populations, the false positive rate of detecting unfairness is strictly controlled.
  2. The Small-Sample Regime (Bayesian Inference): When groups are small (the "long tail"), CLT assumptions break down. Here, the authors employ a Dirichlet-multinomial estimator. By treating the group counts as draws from a probability distribution, they generate "credible intervals" via Monte Carlo sampling.
  3. The Unified Algorithm: The framework automatically switches between these two modes based on a minimum support threshold. Crucially, the Bayesian intervals naturally converge to the Wald intervals as more data becomes available, providing a smooth transition from high-uncertainty to high-certainty environments.

Key Insights and Ideas

  • The "No-Power" Zone: The paper visualizes "resolution limits" for small groups. It demonstrates that for very small sample sizes, it is mathematically impossible to reject the null hypothesis of "no disparity" at a standard significance level ($\alpha=0.05$), even if the observed disparity is 100%. This provides a reality check for auditors: you cannot claim a group is "treated unfairly" if there isn't enough evidence to distinguish bias from a coin flip.
Resolution limits showing the "no-power" zone for small protected groups.
  • Thresholds are Inconsistent: Fixed-threshold methods are highly sensitive to how a dataset is split. A group might look "unfair" in one split and "fine" in another simply due to sampling luck. SAFT remains consistent because it explicitly factors in variance.
  • The "Anti-Conservative" Wald Test: Using large-sample tests on small groups tends to underestimate variance and falsely reject the null hypothesis, leading to spurious signaling of fairness violations.

Key Results

The authors validated SAFT using four canonical fairness benchmarks: Adult Income, COMPAS, German Credit, and Student Performance. They tested these across both non-intersectional and multi-way intersectional slices.

  • Convergence and Intersectional Robustness: The Bayesian credible intervals and the Frequentist confidence intervals align almost perfectly once group sizes exceed roughly 30-50 individuals. However, for tiny intersectional subgroups, SAFT successfully identifies cases where traditional threshold-based audits would have flagged subgroups as "unfair" despite insufficient statistical evidence.
Comparison of Bayesian and Asymptotic intervals across different group sizes.
  • Generalization: While the primary focus is on Statistical Parity, the authors provide a generalized version of their theorem that can be applied to other metrics like Equal Opportunity or Disparate Impact.

Limitations and Future Work

  • Prior Sensitivity: Like all Bayesian methods, the small-sample test requires choosing a prior. While the authors use a weakly informative prior by default, this modeling choice can influence results in extremely data-poor regimes.
  • Scope of Metrics: The current empirical validation focuses on group fairness. Future work should extend this hypothesis-testing logic to individual fairness and counterfactual fairness.
  • The "Auditor's Dilemma": Because there are many fairness metrics, an auditor could theoretically cherry-pick the one that yields a desired result. The authors urge practitioners to transparently report all tested metrics and their associated confidence intervals.

Summary updated

BibTeX
@inproceedings{ferrara2025size,
  author = {Antonio Ferrara and Francesco Cozzi and Alan Perotti and André Panisson and Francesco Bonchi},
  title = {{Size-adaptive Hypothesis Testing for Fairness}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2025},
  url = {https://openreview.net/forum?id=v34WBRPSon},
}
Figure