Regularized Federated Learning

Machine Learning
Introduced by
Li, T. et al. (FedProx); McMahan, B. et al. (FedAvg base)
Year
2020
Type
Distributed optimization with regularization
Family
Machine learning

What does it do?

Regularized federated learning adds a penalty term to each client's local objective so that local updates stay close to the current global model.

The canonical formulation, FedProx, adds a proximal term that limits how far a client can move from the global weights in each round. The aim is more stable training when client data distributions differ.

The intuition behind the method

In standard federated learning (FedAvg), each client optimizes its own local loss and sends the result back, so a client with unusual data can pull the global model in its own direction. Regularized federated learning adds a penalty that discourages this drift: the local solution is pulled back toward the global weights received at the start of the round. The proximal term acts as a restoring force that grows with the distance from the global weights and is scaled by mu, so larger deviations are penalized more strongly. Clients still learn from their own data, but under heterogeneous data this is intended to make the averaged model less sensitive to any single client's distribution.

History

Federated learning was introduced by McMahan et al. (2017) with the FedAvg algorithm for training across decentralized devices. FedAvg works reasonably when client data are similar but can be unstable under heterogeneous distributions. Li et al. (2020) proposed FedProx, which adds a proximal term to each client's objective, and analysed its convergence under stated assumptions.

When to use it

Use regularized federated learning when data cannot be pooled because of privacy, regulatory or bandwidth constraints, and when client data distributions are heterogeneous enough that standard FedAvg is unstable or slow to converge. It fits settings such as hospital networks, financial institutions or mobile devices, where each data holder has partial, shifted data. Do not use it when data can be centralized, since centralized training is simpler to build and tune. It offers little benefit when there are only a few clients with nearly identical distributions, where plain FedAvg is usually sufficient; the page gives no firm client-count threshold.

Limitations and considerations

  • The coefficient mu must be tuned: a small value gives little protection against drift, while a large value slows the global model's progress, and the page gives no general value that separates these cases.
  • Each round requires sending full model weights to and from every participating client, so communication cost grows with model size and with the number of rounds.
  • The penalty reduces client drift but does not remove heterogeneity bias; clients whose distributions differ strongly from the rest may still be poorly served by one global model.
  • The formulation requires gradient-based local optimization, so it does not directly apply to non-differentiable models such as standard decision trees (see FAQ).

Source conditions do not replace independent scientific review or validation by an analysis engine.

Strengths

  • The proximal penalty is an explicit quadratic term in the distance from the global weights, so it can be added to any model trained by gradient-based local optimization, including neural and linear models.
  • The coefficient mu gives a single, interpretable control over how far local updates may move from the global model, with mu = 0 recovering FedAvg.
  • Clients can perform only partial local work without their drift destabilizing the global model, which suits settings with partial participation.
  • Raw data stays on each client, which reduces data movement; this is not, however, a formal privacy guarantee (see FAQ).
  • The method is designed for statistical heterogeneity (non-IID client data), the setting that motivated FedProx.

Applications

  • Healthcare: training models across hospitals where patient records cannot be shared.
  • Mobile devices: on-device learning across many phones with differing user behaviour.
  • Finance: cross-institution models where transaction data is legally restricted.
  • IoT: learning shared models from edge devices whose sensors and data differ.
  • Language models: federated fine-tuning across enterprise clients holding private text.

How it works

How it works

1

At the start of each communication round, the server sends the current global weights to all participating clients, or to a sampled subset. Every client starts from the same reference point, so the proximal penalty in the next step is measured against a common model.

2

Each client approximately minimizes a local objective that combines its own empirical loss F_k(w) with a proximal penalty, (mu/2) times the squared distance from the global weights w^t. The formula's h_k(w; w^t) denotes this whole proximal subproblem, F_k(w) + (mu/2)||w - w^t||^2, so the penalty is already inside h_k and must not be added a second time in an implementation. Setting mu to 0 removes the penalty and recovers the unregularized local update of FedAvg. Because the penalty limits drift, a client does not need to fully converge its local problem before reporting.

Formula
\min_{w} \; h_k(w; w^t) + \frac{\mu}{2}\|w - w^t\|^2
3

The server collects the locally updated weights and forms a weighted average, with each client weighted by n_k/n, its share of the training data. When only a sampled subset of clients participates in a round, the weights should be normalised over the clients sampled in that round, so that they sum to one. Check the normalisation in your implementation against the original paper before comparing results.

Formula
w^{t+1} = \sum_{k=1}^{K} \frac{n_k}{n} w_k^{t+1}
4

The server evaluates a stopping criterion, such as the change in global loss or the norm of the aggregated update, and either broadcasts the new model for another round or stops. The proximal term limits client drift, which is the mechanism behind the stability claims. The convergence guarantees in the original work rest on assumptions, including a bound on how much client objectives may differ (local dissimilarity) and a tolerance for inexact local solutions. These should be checked in Li et al. (2020) and not assumed to hold in a given deployment.

Common pitfalls

  • A large mu holds local models so close to the global weights that the global model barely changes between rounds, discarding useful local information.
  • Tuning mu over too few communication rounds can favour settings that look stable early but converge too slowly; check behaviour over the full round budget.
  • Reporting convergence on the training clients is not evidence of performance on clients whose data was not used in training.
  • The proximal term does not provide differential privacy. If legal privacy requirements apply, clipping and noise or secure aggregation must be added separately.

Frequently asked questions

How does FedProx differ from FedAvg?

FedAvg asks each client to minimize only its local loss. FedProx adds a proximal term that penalizes deviation from the global model, bounding client drift. This makes FedProx more stable when clients have very different data, at the cost of one extra hyperparameter (mu).

How do I choose the proximal coefficient mu?

The page does not establish a standard value. One simple approach is to compare a small illustrative grid such as 0.001, 0.01, 0.1 and 1 on a held-out global validation set, or to monitor convergence speed across rounds. Larger mu limits drift more strongly, which can help under high heterogeneity; smaller mu allows more local adaptation. The suitable range depends on the data and should be checked experimentally.

Does regularized federated learning guarantee differential privacy?

No. The proximal term improves convergence stability but does not add formal privacy guarantees. For differential privacy, you must additionally clip gradients and inject calibrated Gaussian or Laplace noise at each client before aggregation.

Can I use regularized federated learning with non-differentiable models like decision trees?

The standard proximal formulation requires gradient-based local optimization. For tree-based models, specialized federated tree algorithms exist (e.g., federated gradient boosting), but the standard FedProx framework does not directly apply.

When should I prefer personalized federated learning over regularized federated learning?

When client distributions are so heterogeneous that a single global model is a poor fit for any individual client, personalized approaches (e.g., per-client fine-tuning, MAML-based meta-learning) are preferable. Regularized federated learning targets a good single global model, not per-client models.

Related methods

Sources

  1. Li, T., Sahu, A. K., Zaheer, M., Sanjabi, M., Talwalkar, A., & Smith, V. (2020). Federated Optimization in Heterogeneous Networks. Proceedings of Machine Learning and Systems (MLSys), 2, 429–450.

    Open publication reference
  2. McMahan, B., Moore, E., Ramage, D., Hampson, S., & y Arcas, B. A. (2017). Communication-Efficient Learning of Deep Networks from Decentralized Data. Proceedings of the 20th International Conference on Artificial Intelligence and Statistics (AISTATS), PMLR 54, 1273–1282.

    Open publication reference