Abstract
This work addresses the key challenges of applying federated learning to large-scale deep neural networks, particularly the issue of client drift due to data heterogeneity across clients and the high costs of communication, computation, and memory. We propose FedSub, an efficient subspace algorithm for federated learning on heterogeneous data. Specifically, FedSub utilizes subspace projection to guarantee local updates of each client within low-dimensional subspaces, thereby reducing communication, computation, and memory costs. Additionally, it incorporates low-dimensional dual variables to mitigate client drift. We provide convergence analysis that reveals the impact of key factors such as step size and subspace projection matrices on convergence. Experimental results demonstrate its efficiency.
Introduction
Federated Learning (FL) is the standard framework for training machine learning models on decentralized, private data. However, as models scale to billions of parameters, edge devices face significant resource bottlenecks in communication, computation, and memory. Furthermore, the non-IID nature of local data causes "client drift," where local updates diverge from the global optimum, severely impacting performance.
While techniques like Low-Rank Adaptation (LoRA) reduce resource costs, they do not inherently address client drift. Conversely, drift-correction algorithms like SCAFFOLD often double communication overhead by requiring extra control variates. This paper introduces FedSub, an algorithm designed to be the "best of both worlds" by combining low-dimensional subspace projections with a primal-dual framework for implicit drift correction.
Methods: Subspace Projection and Dual Correction
FedSub operates on two core principles to optimize federated training:
- Subspace Projection: FedSub leverages the observation that neural network gradients often exhibit a low-rank structure. It restricts local updates to a small subspace of size $r \times d$ (where $r \ll m$), which reduces uplink communication complexity from $O(md)$ to $O(rd)$ and significantly lowers the local memory footprint during backpropagation.
- Dual Variable Correction: Derived from a Primal-Dual Hybrid Gradient (PDHG) framework, FedSub incorporates "dual variables" within the same low-dimensional subspace. These variables act as a memory of the difference between local and global gradients, nudging local updates back toward the global consensus. Crucially, this correction is baked into the subspace variables, requiring no additional communication overhead compared to standard subspace methods.
Experimental Evaluation
The authors evaluated FedSub on synthetic logistic regression and image classification (CIFAR-100 with ResNet-110) under high data heterogeneity.
Performance on Deep Models
On the CIFAR-100 task, FedSub achieved nearly 58% test accuracy, significantly outperforming standard FedAvg. Notably, it maintained this performance while reducing trainable parameters to just 43% of the original model size, demonstrating its effectiveness for deep neural networks.
Drift Mitigation and Subspace Impact
In synthetic tests, FedSub demonstrated high-precision convergence, reaching an error level of $10^{-7}$, whereas versions without dual correction (like FedAvg-CD) plateaued at $10^{-5}$ due to client drift. The choice of subspace dimension $r$ also plays a critical role: higher dimensions accelerate convergence but increase resource consumption, as shown in the analysis below.
Conclusion
FedSub provides a robust solution for training large models on resource-constrained devices with heterogeneous data. By integrating subspace projections with a primal-dual correction mechanism, it achieves significant efficiency gains and high-precision convergence without additional communication penalties. Future work will explore extensions to adaptive optimizers and downlink compression techniques.
Summary updated