Abstract
As machine learning (ML) models increasingly govern high-stakes societal decisions, ensuring their fairness is paramount. Traditional fairness verification tools are often either sample-based, making them sensitive to data bias, or distribution-based but computationally inefficient. We present Justicia, a novel framework that leverages Stochastic Boolean Satisfiability (SSAT) to formally verify fairness. Justicia is significantly faster and more accurate than existing formal verifiers and uniquely handles complex, compound sensitive attributes across various model types.
Introduction
The deployment of machine learning in domains like insurance, lending, and criminal justice necessitates rigorous fairness audits. However, existing verification tools face a trade-off between ease of use and robustness. Sample-based verifiers, such as AIF360, are prone to high variance if the test set is small or biased. Conversely, distribution-based verifiers like FairSquare offer robustness but often struggle with scalability, non-Boolean data, and intersectional "compound" groups (e.g., race, gender, and age combined). Justicia addresses these limitations by providing a unified, formally rigorous, and computationally efficient framework for fairness verification.
Methodology
Justicia frames fairness verification as a Stochastic Boolean Satisfiability (SSAT) problem. Unlike standard SAT, which seeks any satisfying assignment, SSAT determines the probability that a formula is true given a distribution over its variables. This allows the ML model to be treated as a logical circuit and the data distribution as a source of random inputs, enabling exact probabilistic guarantees.
The framework includes two primary algorithms: Justicia_enum, which iterates through protected groups, and Justicia_learn, which utilizes SSAT properties to efficiently identify favored and disfavored groups without exhaustive enumeration. To support real-world models, Justicia translates Decision Trees and Linear Classifiers into Conjunctive Normal Form (CNF) and employs discretization for continuous attributes like income or age.
Experimental Evaluation
The researchers evaluated Justicia on standard benchmarks, including UCI Adult, ProPublica COMPAS, German Credit, Ricci, and Titanic. These datasets cover a range of high-stakes prediction tasks where fairness is critical. The tool was tested against existing verifiers like FairSquare and sample-based tools like AIF360.
Key Results
Justicia demonstrates superior performance across several dimensions:
- Speed and Scalability: It is 1 to 3 orders of magnitude faster than previous formal verifiers. While earlier tools often timed out on complex benchmarks, Justicia typically completes verification in under a second. The
Justicia_learnalgorithm scales effectively to over 40 compound groups, showing exponential improvement over naive enumeration. - Accuracy and Stability: On synthetic benchmarks with known ground truths, Justicia maintains an error rate below 1%. Crucially, it provides a stable, distribution-based view of fairness, avoiding the high variance seen in sample-based tools.
- Compound Discrimination: Justicia reveals biases that single-attribute tools miss. It is the first formal tool capable of scaling to the intersectional complexity of real-world discrimination, showing how a model might appear fair for "Race" and "Gender" separately but fail for "Black Women."
Conclusion
Justicia represents a significant advancement in formal fairness verification. By bridging the gap between logical rigor and computational efficiency, it provides a reliable mathematical "safety net" for auditing ML models. Future work will focus on extending support to more complex models like Deep Neural Networks and improving the handling of continuous variables and complex data dependencies.
Summary updated