Efficient and Private Federated Learning with Partially Trainable Networks

Hakim Sidahmed, Zheng Xu, Ankush Garg, Yuan Cao, Mingqing ChenarXiv 2021

Abstract

Federated Learning (FL) on edge devices is often bottlenecked by high communication costs, limited hardware memory, and the accuracy degradation caused by Differential Privacy (DP). We present FedPT (Federated learning of Partially Trainable neural networks), a method that freezes a significant portion of model parameters during training. By only updating a small fraction of weights, FedPT achieves up to a 46x reduction in communication costs with minimal accuracy loss. Furthermore, FedPT demonstrates a "privacy paradox" where partially trained models outperform fully trained ones under strict differential privacy guarantees by improving the signal-to-noise ratio of parameter updates.

Introduction

Training massive neural networks across millions of decentralized edge devices—such as mobile phones and IoT sensors—presents significant challenges. Standard Federated Learning requires clients to download and upload full model parameter sets, which is often unfeasible over unstable, low-bandwidth connections. Additionally, backpropagating through billions of parameters exceeds the RAM and battery capacity of many edge devices. While Differential Privacy (DP) can mitigate privacy risks, the noise it introduces typically degrades model performance significantly. FedPT addresses these hurdles by exploiting the inherent overparameterization of modern models, asking whether training every weight is truly necessary for effective learning.

Methodology: The FedPT Approach

The core innovation of FedPT is the strategic freezing of layers at their initial random values. The process involves several key components:

  • The Seed Trick: To minimize downlink costs, the server does not send the full model. Instead, it transmits a small random seed along with the current values of only the trainable parameters. Clients use this seed to locally reconstruct the frozen layers.
  • Local Training and Efficient Uplink: Clients perform training only on the unfrozen parameters. Because the frozen layers remain static, the client only needs to upload updates for the small fraction of trainable weights.
  • Layer Selection Principles: The authors employ a "greedy" selection strategy, prioritizing the freezing of large parameter blocks (such as dense or convolutional layers). Crucially, research indicates that normalization layers (e.g., GroupNorm) should remain trainable to preserve model performance.

Experimental Results

Communication and Accuracy Trade-offs

Evaluations on the CIFAR-10 benchmark using a ResNet-18 architecture demonstrate that FedPT can drastically reduce resource consumption with negligible impact on performance. As shown in the table below, freezing approximately 98% of the model results in a massive 46.3x communication saving while maintaining an accuracy of nearly 80%.

Communication and accuracy trade-offs for ResNet-18 on CIFAR-10 using FedPT.

When the communication reduction is tuned to a more modest 12.4x (using 8.07% trainable parameters), the accuracy drop is less than 1% compared to a fully trained model.

The Privacy-Utility Paradox

One of the most significant findings of the study is that FedPT actually improves performance under strict Differential Privacy (DP) regimes. In standard DP, noise is added to the updates to protect privacy. In a fully trained model (FT), this noise is spread across all parameters. In FedPT (PT), the same noise budget is applied to fewer dimensions, leading to a better signal-to-noise ratio.

Comparison of Full Training (FT) vs. Partial Training (PT) under varying Differential Privacy budgets.

As seen in the results for the Stack Overflow next-word prediction task, at a high privacy guarantee (ε = 1.77), the partially trained model achieved 15.01% accuracy, notably outperforming the fully trained model's 14.60%.

Memory and Runtime Efficiency

Beyond communication and privacy, FedPT offers tangible hardware benefits. By freezing layers, clients do not need to store intermediate activations for those layers during the backward pass, reducing peak memory footprint by approximately 10%. Simulation runtimes were also reduced by up to 25% in various configurations.

Conclusion and Future Work

FedPT provides a robust framework for making Federated Learning more practical for real-world edge deployment. It successfully balances the trade-offs between communication efficiency, memory usage, and privacy without sacrificing significant accuracy. Future research will focus on automating the layer selection process to remove manual tuning and exploring "selective freezing" to accommodate devices with heterogeneous hardware capabilities.

Summary updated

BibTeX
@misc{sidahmed2021efficient,
  author = {Hakim Sidahmed and Zheng Xu and Ankush Garg and Yuan Cao and Mingqing Chen},
  title = {{Efficient and Private Federated Learning with Partially Trainable Networks}},
  year = {2021},
  eprint = {2110.03450},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2110.03450},
}
Figure