TL;DR
Training fair machine learning models typically assumes centralized access to data, but privacy regulations often keep datasets siloed across institutions. This paper theoretically proves that federated learning can strictly improve model fairness compared to isolated, local learning, but standard FedAvg-based approaches still fall short of centralized fairness. To bridge this gap, the authors propose FedFB (Federated FairBatch), an algorithm that uses secure loss aggregation to adjust sample weights across clients, matching centralized fair learning performance without sacrificing data privacy.
What Problem Does This Paper Address?
Machine learning models risk inheriting or amplifying societal biases (such as discrimination based on gender or race). While algorithms exist to enforce group fairness (e.g., demographic parity), they predominantly assume a centralized dataset.
In decentralized contexts—such as banks or hospitals subject to strict privacy regulations—two naive extremes emerge:
- Unfederated Fair Learning (UFL): Each client trains a fair model locally. Because each client's slice of data can be severely skewed, locally fair models usually fail to be fair on the global distribution.
- Centralized Fair Learning (CFL): All data is pooled together to train a globally fair model, which completely breaks privacy.
Standard federated learning (such as running fair algorithms locally and aggregating via FedAvg) seems like a natural bridge, but its formal theoretical limits and guarantees were previously unknown.
Methods
The paper introduces a theoretical framework to analyze the fairness–accuracy tradeoffs among UFL, FedAvg-based federated fair learning (FFL via FedAvg), and CFL, followed by a new algorithm:
- Theoretical Framework: Analyzes the achievable demographic parity (DP) disparity under data heterogeneity (differing feature and sensitive attribute distributions across clients).
- FedFB (Federated FairBatch): Adapts the centralized FairBatch algorithm to federated architectures. Centralized FairBatch formulates fairness as a bi-level optimization problem: the inner problem optimizes model parameters given sample weights, and the outer problem adjusts group weights based on group-level loss discrepancies.
- Hierarchical Decomposition: In FedFB, clients compute group-specific empirical risks locally. The server aggregates only these scalar group losses using Secure Aggregation (
SecAgg) to compute global unfairness metrics, updates the group weights $\lambda$, and broadcasts them back. This maintains privacy with minimal communication overhead. - Quantization & Differential Privacy: The authors explore a 10-bit quantized loss variant (
FedFB(10bits)) and incorporate Laplace-based differential privacy to prevent potential leakage from communicating loss scalars.
Datasets
The authors evaluated their framework on both non-convex neural networks (2-layer MLP with ReLU) and logistic regression across:
- Synthetic Dataset: 5,000 generated samples from 2D Gaussian mixtures with varying label, group bias, and partition skews (divided across 2, 3, or 4 clients).
- Adult (Census Income): 48,842 samples, partitioned across clients heterogeneously.
- COMPAS: 7,214 samples, split across clients based on age.
- Bank Telemarketing: 45,211 samples, split across 3 clients based on loan decision status.
Key Insights and Ideas
- Federation Strictly Boosts Fairness ($\text{UFL} < \text{FFL via FedAvg}$): Under feature heterogeneity across clients, UFL possesses a strictly positive lower bound on DP disparity ($\delta > 0$). In contrast, federated learning via FedAvg can reach zero disparity ($\text{DP Disp} = 0$). Federated cooperation is necessary for global fairness even when client sample sizes are already large.
- Limits of Standard FedAvg ($\text{FFL via FedAvg} < \text{CFL}$): When sensitive attribute proportions differ across clients ($q_i \neq q_j$), the parameter average of locally fair models does not yield a globally optimal fairness-accuracy tradeoff. In fact, averaging two fair models can produce a model that is unfair everywhere.
- Hierarchy Aligns with Bi-Level Optimization: The client-server split matches the inner-outer optimization split of FairBatch. Global fairness only requires group-level aggregate losses, which can be protected by standard secure multi-party aggregation without transmitting individual-level metadata.
Key Results
- Demographic Parity Across Benchmarks (2-layer MLP):
- Adult: FedFB dropped DP disparity down to 0.001 (Accuracy: 0.765), vastly outperforming FedAvg (DP Disp: 0.153) and FFL via FedAvg (DP Disp: 0.123), while matching CFL (DP Disp: 0.045).
- COMPAS: FedFB achieved a DP disparity of 0.001 (Accuracy: 0.542), compared to 0.167 for FedAvg and 0.059 for FFL via FedAvg.
- Bank: FedFB achieved 0.000 DP disparity (Accuracy: 0.883), matching CFL.
- Robustness to Heterogeneity: When varying synthetic client heterogeneity from low to high, FedFB maintained stable DP disparity (between 0.011 and 0.058), closely tracing CFL curves.
- Client Parity: Though designed for demographic group fairness, FedFB was generalized to client parity (equalizing client loss values) and matched or beat specialized client-parity baselines like
q-FFL,Ditto, andGIFAIR. - Low Privacy Overhead: Restricting loss updates to 10-bit quantization (
FedFB(10bits)) achieved virtually identical fairness-accuracy tradeoff curves as unquantized FedFB and CFL.
Limitations and Future Work
- Theoretical Characterization of the Full Tradeoff Curve: The theoretical proofs primarily target the extremes (maximum achievable fairness / minimum disparity), leaving the full continuous Pareto frontier between accuracy and fairness open for formal analysis.
- Three-Way Tradeoffs: The interplay between accuracy, group fairness, and formal differential privacy budgets remains an open theoretical problem.
- Proportional Fairness: The current FedFB formulation addresses minimax-style group fairness and client parity, but cannot directly handle contribution-based proportional fairness (rewarding clients proportionally to data contribution).
Summary updated