[Paper Review] FedFA: Federated Learning with Feature Anchors to Align Features and Classifiers for Heterogeneous Data
FedFA proposes a novel federated learning framework that uses feature anchors to simultaneously align client features and calibrate classifiers, breaking the vicious cycle of feature inconsistency and classifier divergence under data heterogeneity. It achieves state-of-the-art performance on image classification benchmarks under label and feature distribution skew, outperforming existing methods by up to 22.37% in accuracy gains through joint feature and classifier optimization.
Federated learning allows multiple clients to collaboratively train a model without exchanging their data, thus preserving data privacy. Unfortunately, it suffers significant performance degradation due to heterogeneous data at clients. Common solutions involve designing an auxiliary loss to regularize weight divergence or feature inconsistency during local training. However, we discover that these approaches fall short of the expected performance because they ignore the existence of a vicious cycle between feature inconsistency and classifier divergence across clients. This vicious cycle causes client models to be updated in inconsistent feature spaces with more diverged classifiers. To break the vicious cycle, we propose a novel framework named Federated learning with Feature Anchors (FedFA). FedFA utilizes feature anchors to align features and calibrate classifiers across clients simultaneously. This enables client models to be updated in a shared feature space with consistent classifiers during local training. Theoretically, we analyze the non-convex convergence rate of FedFA. We also demonstrate that the integration of feature alignment and classifier calibration in FedFA brings a virtuous cycle between feature and classifier updates, which breaks the vicious cycle existing in current approaches. Extensive experiments show that FedFA significantly outperforms existing approaches on various classification datasets under label distribution skew and feature distribution skew.
Motivation & Objective
- To address performance degradation in federated learning caused by data heterogeneity, particularly label and feature distribution skew.
- To identify and resolve the vicious cycle between feature inconsistency and classifier divergence that undermines existing regularization methods.
- To design a unified framework that simultaneously aligns features and calibrates classifiers across clients in a shared feature space.
- To demonstrate that joint feature and classifier optimization creates a virtuous cycle, improving convergence and generalization.
- To validate the effectiveness of FedFA across diverse datasets and heterogeneity scenarios, including extreme skew conditions.
Proposed method
- Introduces feature anchors—learnable prototypes per class—that serve as shared reference points to align client features across different data distributions.
- Uses feature anchors to project client features into a shared feature space, reducing inter-client feature inconsistency during local training.
- Applies classifier calibration via a momentum-based update of class-specific anchors to align classifiers across clients and reduce divergence.
- Employs a dual optimization mechanism: feature alignment via anchors and classifier calibration via momentum, creating a virtuous cycle between feature and classifier updates.
- Integrates the feature anchor update with a modified FedAvg algorithm, where anchors are updated at each communication round using client gradients.
- The framework maintains consistency by ensuring that both feature extractors and classifiers are updated in alignment with the same anchor-based reference space.
Experimental results
Research questions
- RQ1Does the coexistence of feature inconsistency and classifier divergence create a self-reinforcing vicious cycle that degrades federated learning performance?
- RQ2Can joint feature alignment and classifier calibration through shared feature anchors break this vicious cycle and improve model convergence and accuracy?
- RQ3How sensitive is FedFA to hyperparameters such as the momentum coefficient for anchor updates and the initialization of anchors?
- RQ4Does early and continuous classifier calibration during training yield better performance than post-training calibration?
- RQ5Can FedFA generalize across diverse data heterogeneity scenarios, including extreme label and feature distribution skew?
Key findings
- FedFA significantly outperforms FedAvg and other state-of-the-art methods on multiple datasets under both label and feature distribution skew, achieving up to a 22.37% improvement in accuracy when both skews are present.
- Classifier calibration contributes most to performance gains, with a 22.37% accuracy boost in the combined skew case, highlighting its critical role in mitigating divergence.
- The framework is robust to different momentum coefficients for anchor updates, with performance remaining stable across a wide range of values.
- Initialization of feature anchors has minimal long-term impact, as anchor updates quickly mitigate initial differences, ensuring stable convergence.
- Performing classifier calibration at the end of each mini-batch yields the best performance, indicating that early and continuous correction of classifier divergence is essential.
- FedFA with in-training calibration achieves 84.90% accuracy on FMNIST with #C=2 and label skew, outperforming FedFA without calibration (76.81%) and FedAvg with post-training calibration (75.95%).
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.