LoGoFair: Post-Processing for Local and Global Fairness in Federated Learning

Li Zhang, Chaochao Chen, Zhongxuan Han, Qiyong Zhong, Xiaolin Zheng

Abstract

Federated Learning (FL) enables collaborative model training while preserving data privacy, yet it often struggles with biases across heterogeneous client populations. We present LoGoFair, a novel post-processing framework designed to achieve both local (client-level) and global (population-level) fairness. By formulating the task as a bilevel optimization problem, LoGoFair calibrates pre-trained models using global guidance and local optimization. Our approach is model-agnostic, computationally efficient, and robust to statistical heterogeneity, outperforming existing in-processing methods on standard benchmarks.

Introduction

As Federated Learning (FL) gains traction in sensitive domains like healthcare and finance, ensuring fairness becomes paramount. Standard FL algorithms, while effective at aggregating knowledge, often inherit or exacerbate biases against protected groups. Existing research primarily focuses on "in-processing" techniques, which modify the training phase. However, these methods are often computationally prohibitive, require retraining from scratch, and struggle to balance the conflicting requirements of local and global fairness.

The Local-Global Fairness Conflict

A significant challenge in fair FL is the discrepancy between local and global fairness metrics, driven by statistical heterogeneity (non-IID data) across clients. A model that appears fair across the entire global population may exhibit significant bias when evaluated on a specific client's local data, and vice versa.

The conflict between local and global fair classifiers in a heterogeneous federated environment.

As illustrated in the figure above, a global fair classifier (red dashed line) might fail to provide equitable outcomes for individual clients, while local fair classifiers (blue dashed lines) may diverge significantly from the global optimum. LoGoFair addresses this "Local-Global Conflict" and the "In-Processing Burden" through a streamlined post-processing approach.

Methodology: Federated Post-Processing

LoGoFair treats the search for a fair model as the identification of a Bayes optimal federated fair classifier. Instead of altering internal model weights, the framework "calibrates" the output probability scores of a pre-trained model.

Bilevel Optimization Framework

The framework utilizes a decentralized bilevel optimization strategy:

  1. Global Fairness Guidance: The server maintains parameters (λ) that track population-wide bias and provides these as guidance to the clients.
  2. Local Fairness Optimization: Individual clients adjust the model to meet fairness standards for their specific local data distributions, using the global guidance to ensure alignment with the aggregate model.
The LoGoFair architecture: A collaborative post-processing procedure involving global guidance and local optimization.

Key Technical Features

  • Model-Agnosticism: LoGoFair can be applied to any pre-trained FL model (e.g., FedAvg) without requiring access to the original training process.
  • Smooth Relaxation: To handle non-smooth fairness constraints, the authors employ a logarithmic exponential relaxation, making the optimization problem more tractable and faster to solve.
  • Efficiency: The post-processing phase is highly efficient, typically converging within 10 communication rounds.

Experimental Evaluation

The authors evaluated LoGoFair on three real-world datasets: Adult (census data), ENEM (educational performance), and CelebA (facial attributes). To simulate realistic FL environments, they introduced varying levels of statistical heterogeneity using a Dirichlet distribution (α).

Key Results

  • Superior Trade-offs: LoGoFair consistently achieves a better balance between accuracy and fairness compared to state-of-the-art methods like FedFB and FCFL. It significantly reduces disparity (Δ) in both local and global contexts.
  • Robustness: While other methods degrade as data heterogeneity increases (lower α), LoGoFair maintains stable performance.
  • Practicality: The method's speed and flexibility allow developers to tune the trade-off between accuracy and fairness using relaxation parameters.

Conclusion and Future Work

LoGoFair demonstrates that fairness in Federated Learning can be effectively achieved through collaborative post-processing. By decoupling fairness optimization from the primary training phase, it offers a practical solution for deploying fair models in heterogeneous environments. Future research will explore extending the framework to multi-class classification, intersectional fairness, and deeper integration with Differential Privacy to further enhance client data protection.

Summary updated

BibTeX
@inproceedings{zhang2025logofair,
  author = {Li Zhang and Chaochao Chen and Zhongxuan Han and Qiyong Zhong and Xiaolin Zheng},
  title = {{LoGoFair: Post-Processing for Local and Global Fairness in Federated Learning}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2025},
  doi = {10.1609/aaai.v39i21.34404},
}
Figure