p2pfl.learning.aggregators.fedprox moduleΒΆ
FedProx Aggregator - Federated Proximal.
- class p2pfl.learning.aggregators.fedprox.FedProx(proximal_mu=0.01, disable_partial_aggregation=False)[source]ΒΆ
Bases:
FedAvgFedProx - Federated Proximal [Li et al., 2018].
Inherits from
FedAvg(which inherits fromWeightAggregator) as FedProx works with neural network weight tensors.FedProx extends FedAvg by adding a proximal term to the local objective function to handle system and statistical heterogeneity.
Note
Requires the
fedproxcallback (e.g.,FedProxCallbackfor PyTorch).Aggregator passes
proximal_muviaadditional_infoCallback snapshots model params at training start as the global reference
During training, callback adds proximal penalty:
ΞΌ Γ (w - w_global)
- Parameters:
proximal_mu (
float)disable_partial_aggregation (
bool)