Abstract
The issue of group fairness in machine learning models, where certain sub-populations or groups are favored over others, has been recognized for some time. While many mitigation strategies have been proposed in centralized learning, many of these methods are not directly applicable in federated learning, where data is privately stored on multiple clients. To address this, many proposals try to mitigate bias at the level of clients before aggregation, which we call locally fair training. However, the effectiveness of these approaches is not well understood. In this work, we investigate the theoretical foundation of locally fair training by studying the relationship between global model fairness and local model fairness. Additionally, we prove that for a broad class of fairness metrics, the global model's fairness can be obtained using only summary statistics from local clients. Based on that, we propose a globally fair training algorithm that directly minimizes the penalized empirical loss. Real-data experiments demonstrate the promising performance of our proposed approach for enhancing fairness while retaining high accuracy compared to locally fair training methods.
The Local-Global Fairness Disconnect
Federated Learning (FL) allows multiple participants to train a shared global model without exchanging raw, private data. However, these models often inherit group biases, discriminating against sub-populations based on sensitive attributes like race or gender.
The prevailing approach to address this is Locally Fair Training (LFT), which assumes that if every client trains a fair local model, the aggregated global model will also be fair. This paper proves that this intuition is fundamentally flawed due to data heterogeneity. A collection of perfectly fair local models can still result in a biased global model—a phenomenon related to Simpson’s Paradox.
As shown in the example above, while both departments A and B might have equal acceptance rates for males and females (20% and 80% respectively), the total acceptance rate can still show a massive disparity (26% for females vs 74% for males) due to the distribution of applicants. This "fairness gap" is bounded by the level of data heterogeneity; as clients become more different, LFT methods become increasingly unreliable.
FedGFT: Federated Globally Fair Training
To bridge this gap, the authors propose FedGFT, a novel algorithm that optimizes for global fairness directly. The solution relies on two key pillars:
- Proper Fairness Metrics: The researchers identify a class of "proper" metrics (e.g., Statistical Parity and Equal Opportunity) where the global fairness value can be mathematically reconstructed using only summary statistics from local clients. This preserves privacy while allowing the server to track global bias.
- Penalized Empirical Loss: FedGFT modifies the optimization objective to minimize a penalized loss function: $$\min_{\theta} L(\theta) + \lambda J(F(f; \mathcal{D}))$$ Here, the model balances prediction error ($L$) with a penalty ($J$) for global unfairness ($F$). During training, the server sends a "fairness constant" to clients, who then adjust their local gradients to align with the global fairness goal.
Experimental Results
The authors evaluated FedGFT against standard Federated Averaging (FedAvg), FairFed, and Locally Reweighing (LRW) using the Adult, COMPAS, and CelebA datasets. Data heterogeneity was simulated using a Dirichlet distribution parameter $\alpha$, where smaller $\alpha$ indicates higher heterogeneity.
Key Findings:
- Superior Bias Reduction: FedGFT achieved the lowest bias across nearly all scenarios. On the Adult dataset with high heterogeneity ($\alpha=0.5$), FedGFT reduced Statistical Parity (SP) bias to 0.8%, significantly lower than FedAvg (2.9%) and FairFed (1.6%).
- Accuracy Preservation: FedGFT maintained accuracy levels very close to the biased FedAvg baseline, demonstrating that fairness does not always require a significant performance trade-off.
- Robustness to "Pure" Clients: Unlike LFT methods, FedGFT remains effective even when a client only possesses data from a single demographic group, as it does not require local fairness to be well-defined.
Limitations and Future Work
While FedGFT shows promise, some challenges remain. "Calibration" metrics are not yet supported as they do not fit the "proper" metric definition required for reconstruction from summary statistics. Additionally, the current framework is optimized for binary classification; extending these proofs to multi-class responses and intersectional sensitive groups is a key area for future research.
Summary updated