TL;DR
This paper introduces FedOpt, a generalized framework for Federated Learning (FL) that allows the use of adaptive optimizers like Adam, Adagrad, and Yogi at the server level. By treating the average of local client updates as a "pseudo-gradient," the authors demonstrate that server-side adaptivity significantly improves convergence speed, stability, and ease of hyperparameter tuning without increasing communication costs.
What Problem Does This Paper Address?
Standard Federated Learning relies heavily on Federated Averaging (FedAvg). While effective, FedAvg is essentially a distributed version of SGD, making it susceptible to two major issues:
- Client Drift: Local updates on heterogeneous data can pull the global model away from the true optimum.
- Lack of Adaptivity: SGD struggles with heavy-tailed noise and sparse gradients—conditions frequently encountered when training large-scale language models on decentralized data.
Previous attempts to use adaptive methods in FL often required clients to maintain "state" (like momentum buffers) across rounds. This is a dealbreaker for cross-device FL (e.g., mobile phones), where a client might only participate in training once every few weeks and cannot store persistent optimizer data.
Methods
The authors propose FedOpt, a framework that decouples local client optimization from global server optimization.
- Client Side: Clients perform multiple steps of local training (usually SGD) and send their cumulative model change ($\Delta_t$) back to the server.
- Server Side: Instead of just averaging these updates and adding them to the model (as in FedAvg), the server treats the average update as a pseudo-gradient. This pseudo-gradient is then fed into a server-side adaptive optimizer.
The paper specifically formalizes and analyzes three new algorithms: FedAdagrad, FedAdam, and FedYogi. Because the adaptive state is stored only on the server, these methods require zero extra communication and zero client-side memory compared to FedAvg, making them perfectly compatible with cross-device settings.
Datasets
The authors evaluate their methods on a comprehensive suite of seven tasks across five datasets, designed to represent diverse FL challenges:
- Vision: CIFAR-10, CIFAR-100 (partitioned to simulate high heterogeneity), and EMNIST (both character recognition and autoencoder tasks).
- Language: Shakespeare (next-character prediction) and Stack Overflow (both logistic regression for tag prediction and an RNN for next-word prediction).
They notably introduced a more realistic version of federated CIFAR-100 using the Pachinko Allocation Method (PAM) to create complex correlations between labels across clients.
Key Insights and Ideas
- The "Pseudo-gradient" is Valid: The authors provide a rigorous convergence analysis for non-convex settings, proving that treating the average model update as a gradient is theoretically sound for a wide class of adaptive optimizers.
- Adaptivity Solves Sparsity: In text tasks (like Stack Overflow), most clients only have a tiny fraction of the total vocabulary. Adaptive methods excel here because they scale updates for rare features (words) that appear infrequently, preventing them from being "washed out" by common features.
- Interplay of $K$ and Heterogeneity: The theory highlights a fundamental trade-off: increasing local steps ($K$) improves communication efficiency but can worsen the impact of data heterogeneity ($\sigma_g$). Adaptive server updates help mitigate this tension.
Key Results
- Superior Performance: FedAdam and FedYogi consistently outperformed FedAvg and FedAvgM (FedAvg with momentum) across almost all tasks.
- Massive Gains on Text: On the Stack Overflow next-word prediction task, adaptive methods achieved significantly higher accuracy than non-adaptive baselines.
- Ease of Tuning: Perhaps the most practical finding is that adaptive FL is much easier to tune. Heatmaps of learning rates show that FedAdam and FedYogi have a large "rectangular" region of high performance, whereas FedAvgM requires a very precise, "triangular" balance between client and server learning rates to avoid divergence.
- SCAFFOLD Comparison: While the SCAFFOLD algorithm is designed to fight client drift, it performed poorly in these experiments because it requires client state, which is ineffective when the client population is massive and participation is sparse.
Limitations and Future Work
- Full Participation Assumption: Much of the theoretical analysis assumes all clients participate in every round, though the authors provide some extensions for partial participation.
- Hyperparameter $\tau$: The adaptive methods introduce a new parameter, $\tau$ (a degree of adaptivity/numerical stabilizer). While the results are robust to its value, it is an additional knob to consider.
- Privacy and Fairness: The authors note that future work should investigate how server-side adaptivity interacts with Differential Privacy (DP) and whether it helps or hinders the fairness of the resulting models across different client populations.
Summary updated