Introduction
Algorithmic fairness research has traditionally treated decision-making systems as "black boxes," focusing on statistical disparities in outcomes—such as whether one demographic group receives fewer loans than another. However, this outcome-centric approach often overlooks the internal logic of the algorithm. A program might appear statistically fair under a specific data distribution while still harboring biased decision logic that could manifest under different conditions.
This paper bridges the gap between information security and algorithmic fairness by treating protected attributes (e.g., race, gender) as "secrets" within a program. By leveraging decades of research in secure information flow, the authors provide a formal framework to analyze fairness directly from source code. They introduce a new quantitative metric, Fairness Spread ($S$), which aligns with the principle of counterfactual fairness.
Methodology: Fairness as Information Flow
The authors propose an information-flow perspective built on three pillars:
1. Qualitative Analysis: Noninterference
The core concept is Unconditional Noninterference: if a protected attribute cannot influence a program's output, the program is considered fair. The authors formally prove that this property implies Demographic Parity. To accommodate "justified" exceptions (e.g., using age for insurance premiums), they introduce Restricted Information Flow, where discrimination is permitted only within pre-defined, legitimate categories.
2. Quantitative Analysis: Fairness Spread
Since absolute noninterference is often unattainable in practice, the authors adapt "Conditional Vulnerability" (a standard security metric) into Fairness Spread ($S$). This metric quantifies the weighted disparity in treatment between the most advantaged and disadvantaged groups. Unlike standard security metrics, $S$ assumes a uniform distribution of the protected attribute, ensuring the metric reflects algorithmic bias rather than population demographics.
3. Causal Integration
To address correlations between protected and unprotected variables (e.g., zip code and race), the framework integrates Structural Causal Models (SCMs). By encoding causal relationships into the program logic, the authors use information-flow tools to verify Counterfactual Fairness.
Evaluation and Results
The framework was evaluated using synthetic algorithms, real-world tax software, and insurance case studies.
Metric Validation
The authors used three synthetic credit decision programs ($c1, c2, c3$) to validate the Fairness Spread metric. As shown in the results table, the metric correctly identifies the bias levels: $c1$ (purely group-based) has a maximum spread of $S=1.0$, while $c2$ (purely score-based) achieves a perfectly fair $S=0.0$.
Real-World Scalability
Using the Joana information-flow tool, the authors analyzed a 1,500-line Java implementation of German wage tax software. They formally proved that religious affiliation—though collected for church tax purposes—does not "leak" into the general wage tax computation, demonstrating that formal methods can scale to complex, human-written code.
Causal Discovery in Insurance
In a car insurance case study, the authors demonstrated that an algorithm ignoring "gender" but using "engine power" still exhibited a Fairness Spread of 0.36 due to underlying causal dependencies. Conversely, an algorithm explicitly accounting for both variables according to a causal model was found to be counterfactually fair.
Key Insights and Future Directions
- Fairness as a Hyperproperty: Information flow is a "hyperproperty" because it describes relationships between multiple program executions. This makes it a natural mathematical fit for fairness, which compares the treatment of different individuals.
- White-Box Advantages: Formal program analysis can detect "disparate treatment" that black-box statistical tests might miss, particularly when bias is subtle or masked by data distributions.
- Limitations: The approach currently targets explicit source code (Java/C) rather than neural networks. Additionally, the requirement for accurate Structural Causal Models remains a significant hurdle in many real-world applications where causal relationships are poorly understood.
By reframing fairness as a security problem, this work provides a rigorous, tool-supported path toward building demonstrably fair decision-making systems.
Summary updated