Introduction
As machine learning models are increasingly deployed in high-stakes domains such as finance and healthcare, the imperative to ensure they do not discriminate against protected groups (e.g., based on race or gender) has become critical. However, training fair models typically requires access to sensitive attributes across a unified dataset, which conflicts with the privacy-preserving nature of Federated Learning (FL). In FL, data is siloed across different parties, leading to a "fairness-privacy" paradox.
The Fairness-Privacy Paradox
The challenge of achieving fairness in a federated setting stems from two primary issues:
- The Estimation Gap: Measuring a model's global fairness is difficult without direct access to the private data of all participating parties.
- The Local Constraint Trap: Enforcing local fairness on individual clients does not guarantee global fairness. Local constraints can be noisy and may lead to infeasible optimization problems that standard federated algorithms cannot resolve.
Methodology: The FedFair Framework
FedFair addresses these challenges by introducing a collaborative approach to fairness estimation and optimization. The framework utilizes the Difference of Generalized Equal Opportunity (DGEO) as a continuous fairness metric. Instead of local enforcement, clients calculate local estimates of conditional loss for protected groups and transmit these to a central server. The server then aggregates these to form a high-accuracy global fairness estimate.
The training process is formulated as a constrained optimization problem—maximizing accuracy while maintaining the global DGEO below a threshold $\epsilon$. This is solved using the Alternating Gradient Projection (AGP) algorithm, which updates model parameters and fairness penalties in a privacy-preserving manner.
Experimental Evaluation
FedFair was evaluated on three standard fairness benchmarks: ADULT (Gender), COMPAS (Race), and DRUG (Race). These datasets were tested in both IID and non-IID settings to simulate diverse real-world federated environments where data distributions vary significantly between clients.
Key Results and Insights
The experimental results demonstrate that FedFair consistently outperforms baseline methods like AgnosticFair and standard post-processing techniques.
- Superior Accuracy-Fairness Trade-offs: FedFair achieved the highest Harmonic Mean (HM) of accuracy and fairness across most scenarios. For instance, on the ADULT dataset, FedFair reached a fairness score of 0.98 while maintaining 84% accuracy.
- Robustness to Data Heterogeneity: In non-IID settings, FedFair maintained high fairness scores while other methods struggled to find a feasible path to optimization.
- Strength in Numbers: Theoretical analysis confirms that the variance of the federated fairness estimate decreases as the number of clients increases, proving that collaboration enhances fairness measurement without compromising privacy.
Conclusion
FedFair provides a robust solution to the fairness-privacy paradox in federated learning. By shifting from local constraints to a global federated estimation, it enables the training of models that are both accurate and socially equitable. Future work may address the "honest-but-curious" assumption by incorporating defenses against adversarial clients and extending the framework to handle multiple protected attributes simultaneously.
Summary updated