Introduction
Federated Learning (FL) typically aims to train a single global model across multiple decentralized clients. However, in real-world scenarios, data is often non-IID (not identically and independently distributed). For instance, medical data from different hospitals may vary significantly due to local demographics and equipment. Personalized Federated Learning (PFL) addresses this by tailoring models to individual clients.
While existing PFL methods focus on mixing global and local information or decoupling model components, they often neglect the generalization potential of the local training process. Models frequently converge to "sharp" minima—regions in the loss landscape where minor parameter changes cause significant error spikes. These sharp minima generalize poorly to unseen data. While Sharpness-Aware Minimization (SAM) optimizers can find "flat" minima, applying them uniformly across all layers in a federated setting often leads to slow convergence and suboptimal performance.
Proposed Methodology
The authors introduce FedFSA (Federated learning with Flexible Sharpness-Aware Minimization), a framework based on the observation that neural network layers contribute unequally to a model's lack of generalization.
1. Perturbation Sensitivity Metric
To avoid the high computational cost of calculating Hessian traces, the authors developed a "perturbation sensitivity" metric. This metric estimates layer-wise sharpness by measuring the variation in model loss when a specific layer's perturbation is removed. It utilizes the difference between local and global model weights—information already available to the client—ensuring minimal computational overhead.
2. Flexible SAM Optimizer
During local training, FedFSA identifies the TopC most sensitive layers. It applies a larger perturbation amplitude ($\rho_{larger}$) to these critical layers while maintaining a default, smaller perturbation ($\rho_{default}$) for the rest. This selective approach allows the model to escape sharp minima in critical regions without compromising the convergence of the entire network.
Experimental Evaluation
The researchers evaluated FedFSA on standard image classification benchmarks, including Fashion-MNIST, CIFAR-10, CIFAR-100, and Tiny-ImageNet, using both Pathological and Dirichlet data partitioning to simulate real-world heterogeneity.
Key Results
- Superior Accuracy: FedFSA outperformed seven state-of-the-art baselines. On the complex CIFAR-100 dataset, it achieved an accuracy boost of up to 8.26% over the next best method.
- Plug-and-Play Compatibility: As a local optimizer modification, FedFSA can be integrated into other PFL frameworks. For example, adding it to the FedALA method yielded an additional 4.45% accuracy improvement.
- Scalability and Robustness: The method maintained performance leads as the number of clients increased and proved effective across various architectures, including simple CNNs and ResNet-18.
Conclusion
FedFSA demonstrates that selective, layer-wise sharpness awareness is a powerful tool for improving generalization in personalized federated learning. By focusing perturbations on the most sensitive layers, the framework achieves significant accuracy gains with negligible computational cost. Future work may explore adaptive methods for automatically tuning perturbation amplitudes and the number of targeted layers based on real-time training dynamics.
Summary updated