Fed-Ref: Effective Unbounded Drift Control in Heterogeneous Federated Learning: Bayesian Fine-Tuning Using a Reference Model
Federated learning (FL) enables collaborative model training across distributed clients while preserving data privacy. However, data and system heterogeneity often induce unbounded drift in model updates due to multiple local steps, partial participation, and unbounded dynamics. These challenges severely degrade predictive performance, exacerbate catastrophic forgetting, and hinder global optimization. To address these limitations, we propose FedRef, a robust optimization framework that leverages a reference model generalized from prior global models via Bayesian fine-tuning. FedRef integrates a Maximum A Posteriori (MAP)-based regularization mechanism that calibrates global updates toward a temporally aggregated reference model, thereby effectively controlling unbounded drift and maximizing empirical stability. Unlike prior approaches that rely on complex client-side optimization heuristics, FedRef achieves superior generalization by seamlessly blending a robust probabilistic prior with global likelihood optimization. By maintaining a temporal moving average centered on previous global trajectories, the proposed framework provides a highly reliable optimization anchor that effectively counteracts misleading updates under extreme unbounded drift settings. Extensive experiments on image classification (FEMNIST, CINIC-10) and medical image segmentation (FeTS2022) demonstrate that FedRef yields superior predictive performance, higher F1-scores, and significantly faster convergence under severely non-IID conditions. These results highlight FedRef as an exceptionally efficient and stable framework capable of unlocking high-fidelity generalization in heterogeneous real-world FL scenarios.
| Environment set | Settings for detail |
|---|---|
| FL framework | Flower: a friendly federated learning framework |
| Language | Python: 3.9.21 |
| Operation System | Linux 24.04 LTS |
| GPU | Nvidia RTX 4090 |
| Tools | Visual studio code |
Will be updated..
Available Dataset
-
cinic10
-
femnist
-
fets * need custom data settings following:
├── Folder (parameter: -cd ./Folder) ├── client1 ├── client2 ├── client3 ├── client4 ├── client5 ├── client6 ├── client7 ├── client8 ├── client9 ├── client10 ├── client11 ├── client12 ├── client13 ├── client14 ├── client15 ├── client16 ├── client17 └── test1 (parameter: --data-dir ./Folder/test1)
Available FL Strategies
- FedAvg
- FedProx
- FedOpt
- FedRef (our proposed work.)
- Adabest
- FedEve
For example:
python3 main.py -r 50 -e 3 -bs 256 -l 1e-5 -udp 0.0 -t femnist -m fedavg -NON 10 -g True
