Quantifying Program Bias

Aws Albarghouthi, Loris D'Antoni, Samuel Drews, Aditya V. NoriarXiv 2017

Introduction

As automated decision-making systems increasingly influence critical life outcomes—from hiring and college admissions to criminal sentencing—the potential for algorithmic bias has become a significant societal concern. A common misconception is that bias can be avoided simply by removing protected attributes, such as race or gender, from the input data. However, algorithms can still exhibit discriminatory behavior by leveraging proxy variables—like zip codes or educational background—that correlate strongly with protected characteristics.

To address this, researchers have developed FairSquare, a pioneering verification tool designed to mathematically quantify and prove the fairness of decision-making programs. Unlike empirical testing methods that rely on specific datasets, FairSquare provides formal guarantees by analyzing programs as probabilistic entities.

The Challenge of Formal Fairness

Traditional bias detection often relies on "black-box" testing, which evaluates a model's performance on a finite set of historical data. While useful, this approach cannot guarantee fairness for all possible future inputs. Formal verification offers a more robust alternative: it seeks to prove that a program satisfies a quantitative fairness property (e.g., group fairness) for any input drawn from a defined population distribution.

The core difficulty lies in the complexity of the programs and the underlying distributions. Proving fairness requires calculating the probability of specific outcomes across different demographic groups, a task that reduces to computing the "weighted volume" of high-dimensional geometric regions defined by program logic.

Methodology: From Logic to Geometry

FairSquare treats decision-making algorithms as probabilistic programs. The verification process follows a three-step pipeline:

  1. Modeling: Users define a "population model"—a probabilistic precondition describing demographic attributes and their correlations—and the "decision program" itself.
  2. Logical Encoding: The tool translates both the population model and the program logic into a Satisfiability Modulo Theories (SMT) formula. This formula represents a geometric region in high-dimensional space where each point corresponds to an input leading to a specific decision (e.g., "hired").
  3. Weighted Volume Computation: The probability of an outcome is determined by calculating the volume of this region, weighted by the probability density of the population.
Geometric representation of a decision program as a 3D region in the input space.

Because exact volume computation for arbitrary SMT formulas is computationally intractable (#P-hard), FairSquare employs a novel algorithm called ADF-SYMVOL. This algorithm iteratively approximates the complex decision region using a union of simpler "boxes" (hyperrectangles), which are easy to integrate. To accelerate convergence, FairSquare uses Approximate Density Functions (ADFs)—step-function approximations of probability distributions—to guide the search toward regions with high probability mass.

Experimental Evaluation

The authors evaluated FairSquare on 39 benchmarks derived from the UCI Census Income dataset. These benchmarks included 11 different machine learning classifiers, such as Decision Trees, Support Vector Machines (SVMs), and Neural Networks, paired with various population models capturing complex attribute correlations.

Key Results

FairSquare successfully analyzed 32 out of 39 problems, proving 21 programs were fair and 11 were unfair according to the "80% rule" (a standard used by the EEOC).

Convergence of the fairness ratio's upper and lower bounds over successive iterations of the FairSquare algorithm.
  • Superior Performance: The tool significantly outperformed existing probabilistic inference engines like PSI and VC. While previous tools struggled with the "angled" decision boundaries of SVMs and Neural Networks, FairSquare's geometric approximation remained robust.
  • Convergence and Proof: By providing both upper and lower bounds on the fairness ratio, FairSquare allows users to stop the computation once the bounds are tight enough to confirm or refute a fairness property. This enables formal proofs of fairness that were previously impossible for complex models.

Conclusion and Future Directions

FairSquare demonstrates that fairness can be treated as a quantitative safety property, amenable to the same rigorous verification techniques used in software engineering. By bridging the gap between formal logic and probabilistic calculus, it provides a powerful framework for auditing automated systems.

While FairSquare represents a major step forward, challenges remain regarding scalability. As the number of input variables grows, the "curse of dimensionality" makes hyperrectangle approximation more difficult. Future work aims to optimize search strategies and handle more complex joint distributions, ensuring that formal fairness verification can keep pace with the increasing complexity of real-world AI systems.

Summary updated

BibTeX
@misc{albarghouthi2017quantifying,
  author = {Aws Albarghouthi and Loris D'Antoni and Samuel Drews and Aditya V. Nori},
  title = {{Quantifying Program Bias}},
  year = {2017},
  eprint = {1702.05437},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1702.05437},
}
Figure