Abstract
Federated Learning is an evolving machine learning paradigm, in which multiple clients perform computations based on their individual private data, interspersed by communication with a remote server. A common strategy to curtail communication costs is Local Training, which consists in performing multiple local stochastic gradient descent steps between successive communication rounds. However, the conventional approach to local training overlooks the practical necessity for client-specific personalization, a technique to tailor local models to individual needs. We introduce Scafflix, a novel algorithm that efficiently integrates explicit personalization with local training. This innovative approach benefits from these two techniques, thereby achieving doubly accelerated communication, as we demonstrate both in theory and practice.
Introduction
Federated Learning (FL) enables collective model training across distributed devices without compromising data privacy. Despite its promise, FL faces two critical challenges: significant communication overhead and data heterogeneity. While Local Training (LT) reduces communication frequency by performing multiple local updates, it often fails to address the need for personalization in non-IID (not Identically and Independently Distributed) settings. Conversely, many personalization methods do not incorporate the communication acceleration benefits of modern LT algorithms. This work introduces Scafflix, an algorithm designed to bridge this gap by achieving "double communication acceleration" through the synergy of local training and explicit personalization.
The Scafflix Algorithm
Scafflix builds upon the "Scaffnew" framework, introducing several key innovations:
- FLIX Objective: Instead of a single global model, Scafflix optimizes a mixture objective where each client targets a model that balances the global consensus with its locally optimal model.
- Individualized Stepsizes: Scafflix allows for client-specific stepsizes ($\gamma_i$) tailored to local data smoothness ($L_i$), capturing local geometry much more accurately than a uniform global learning rate.
- Accelerated Control Variates: By employing a probabilistic communication scheme and control variates, Scafflix mitigates "client drift," ensuring local updates remain aligned with the global objective.
Experimental Evaluation
The performance of Scafflix was evaluated across diverse settings:
- Convex Benchmarks: Using
mushrooms,a6a, andw6adatasets from LibSVM to validate theoretical convergence rates. - Large-Scale FL Benchmarks:
- FEMNIST: A character recognition task involving 670,000 samples across 3,400 devices.
- Shakespeare: A next-character prediction task using an RNN, distributed across 1,129 devices.
Results and Discussion
Scafflix demonstrates superior performance in both convergence speed and final accuracy.
In convex experiments (Figure 1), Scafflix significantly reduces the communication rounds required to reach target loss levels compared to standard gradient descent. A key insight is that personalization acts as an acceleration mechanism; by reducing the initial error gap between the global model and local needs, the algorithm converges faster. Theoretically, Scafflix improves communication complexity from a dependence on the condition number $\kappa$ to $\sqrt{\kappa}$, a hallmark of Nesterov-style acceleration.
On complex deep learning tasks (Figure 2), Scafflix consistently outperforms baselines. For instance, on the Shakespeare dataset, Scafflix reached 54.21% accuracy, significantly higher than FedAvg's 38.67%. The algorithm also proved robust to "inexact" local training, making it highly practical for resource-constrained edge devices.
Conclusion and Future Work
Scafflix successfully integrates explicit personalization with local training to achieve double communication acceleration. While its linear convergence is formally proven for strongly convex functions, empirical results on non-convex deep learning tasks are highly promising. Future research will focus on extending theoretical guarantees to non-convex landscapes and improving robustness to partial client participation. Additionally, Scafflix holds potential for efficient federated fine-tuning of Large Language Models (LLMs).
Summary updated