NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Distributed Pruning Towards Tiny Neural Networks in Federated Learning

Hong Huang, Lan Zhang, Chaoyue Sun, Ruogu Fang, Xiaoyong Yuan, Dapeng Wu

Abstract

Neural network pruning is an essential technique for reducing the size and complexity of deep neural networks, enabling large-scale models on devices with limited resources. However, existing pruning approaches heavily rely on training data for guiding the pruning strategies, making them ineffective for federated learning over distributed and confidential datasets. Additionally, the memory- and computation-intensive pruning process becomes infeasible for resource-constrained devices in federated learning. To address these challenges, we propose FedTiny, a distributed pruning framework for federated learning that generates specialized tiny models for memory- and computing-constrained devices. We introduce two key modules in FedTiny to adaptively search coarse- and finer-pruned specialized models to fit deployment scenarios with sparse and cheap local computation. Experimental results demonstrate that FedTiny outperforms state-of-the-art approaches, particularly when compressing deep models to extremely sparse tiny models. FedTiny achieves an accuracy improvement of 2.61% while significantly reducing the computational cost by 95.91% and the memory footprint by 94.01% compared to state-of-the-art methods.

Introduction

Deep Neural Networks (DNNs) are notoriously resource-hungry, making them difficult to deploy on "tiny" edge devices like microcontrollers or low-power IoT sensors. While neural network pruning—removing redundant parameters—is a standard solution, applying it within a Federated Learning (FL) context introduces three major hurdles:

  1. Data Privacy: Traditional pruning relies on centralized datasets to determine weight importance, which conflicts with FL's privacy-first distributed nature.
  2. Initial Bias: Server-side pruning done without data visibility often results in a "biased" model structure that performs poorly on heterogeneous (non-IID) local data.
  3. Resource Constraints: Most on-device pruning algorithms require storing importance scores for every parameter in a dense model, creating a memory overhead that tiny devices cannot support.

The FedTiny Framework

FedTiny reconfigures the interaction between the server and devices through two key modules designed to minimize local overhead while maximizing model specialization.

Overview of the FedTiny framework featuring Adaptive BN Selection and Progressive Pruning.

1. Adaptive Batch Normalization (BN) Selection

To solve the "initial bias" problem, the server generates a pool of candidate pruned models using different layer-wise pruning ratios. Instead of a full training run, devices perform a cheap forward pass to update the Batch Normalization layers with their local data. They then report the evaluation loss back to the server. The server selects the candidate with the lowest average loss as the starting point. This uses BN parameters as a low-cost proxy for how well a model structure fits the local data distribution.

2. Progressive Pruning Module

Once a coarse model is selected, FedTiny refines it during the federated training process. Inspired by dynamic sparse training, it iteratively "grows" new weights and "prunes" old ones. To ensure memory efficiency, devices only track and upload the top-K gradients for pruned parameters, rather than the full gradient matrix. Furthermore, FedTiny divides the model into blocks and prunes them sequentially in backward order (from output to input), aligning with gradient propagation to reduce peak computational load.

Experimental Results

The framework was evaluated using ResNet18 and VGG11 architectures across four image classification benchmarks: CIFAR-10, CIFAR-100, CINIC-10, and SVHN. Real-world FL conditions were simulated by partitioning these datasets into non-IID distributions.

FedTiny consistently outperformed state-of-the-art baselines like SNIP, SynFlow, and PruneFL, particularly in "low-density" regimes where only 0.1% to 1% of weights remain.

Comparison of FedTiny against state-of-the-art methods across different densities for ResNet18 and VGG11.

As shown in the table above, at 0.001 density (99.9% sparse), FedTiny achieved an accuracy of 63.11% on ResNet18/CIFAR-10, whereas the next best baseline (LotteryFL) only reached ~30%. Compared to standard FL pruning methods, FedTiny reduced the computational cost (FLOPs) by 95.91% and the memory footprint by 94.01%.

Discussion and Conclusion

One of the most significant findings is that the "starting point" of the pruning process matters immensely. If the initial pruning at the server is biased, the model may never recover at extreme sparsity. FedTiny's use of BN statistics as a "distribution sensor" provides a computationally cheap way to fix the initial structure. Additionally, the results suggest that pruning a large model down to 1% density using FedTiny yields better results than training a natively small model with the same number of parameters from scratch.

While future work is needed to address the server-side overhead of managing candidate pools and to extend the framework to NLP architectures like Transformers, FedTiny represents a major step toward enabling sophisticated intelligence on resource-constrained edge hardware.

Summary updated

BibTeX
@inproceedings{huang2022distributed,
  author = {Hong Huang and Lan Zhang and Chaoyue Sun and Ruogu Fang and Xiaoyong Yuan and Dapeng Wu},
  title = {{Distributed Pruning Towards Tiny Neural Networks in Federated Learning}},
  booktitle = {ICDCS},
  year = {2022},
}
Figure