Federated Pruning: Improving Neural Network Efficiency with Federated Learning

Rongmei Lin, Yonghui Xiao, Tien-Ju Yang, Ding Zhao, Li Xiong, Giovanni Motta, Françoise Beaufays

Introduction

Federated Learning (FL) has emerged as a powerful paradigm for training machine learning models across thousands of edge devices, such as smartphones, without requiring sensitive user data to leave the local device. However, a significant bottleneck remains: modern state-of-the-art architectures, particularly for Automatic Speech Recognition (ASR), are increasingly massive. For instance, the "Conformer" architecture used in this research contains approximately 130 million parameters, requiring over 500MB of memory just for weight storage during training.

Most edge devices operate under strict RAM and bandwidth constraints. While standard FL updates the values of parameters, it leaves the bulky model architecture unchanged. This creates a feasibility gap where models are too large to fit in a phone's memory or too heavy to transmit over mobile networks. To bridge this gap, this paper introduces Federated Pruning (FP), a framework that integrates model pruning directly into the federated training process to "shrink" the model while it learns.

The Federated Pruning Framework

Federated Pruning (FP) systematically removes redundant parameters throughout the training lifecycle. Unlike post-training pruning, which happens after a model is fully optimized, FP operates across federated rounds in three distinct phases:

  1. Pruning Phase: The sparsity level (the percentage of deleted weights) is gradually increased from 0% to a predefined target (e.g., 50%).
  2. Refining Phase: The sparsity level remains constant, but the "mask"—the map determining which weights are active—is allowed to change. This allows the model to "revive" previously pruned parameters if they demonstrate importance in later rounds.
  3. Fine-tuning Phase: The pruning masks are frozen, and the remaining parameters are trained to final convergence.

Technical Innovations

To ensure the framework is practical for edge deployment, the authors implemented several key innovations:

  • Structured Pruning: Rather than "unstructured" pruning (removing random individual weights), FP utilizes structured pruning by removing entire rows or columns of weight matrices. This physically reduces the model size, leading to tangible memory and computation savings on hardware.
  • Adaptive Per-Layer Sparsity: Instead of applying a flat sparsity percentage across the entire model, FP uses a heuristic to distinguish between "critical" and "ambient" layers. Layers with larger weight magnitudes are considered more important and are pruned less aggressively than others.
  • Mask Refinement: By allowing the server to update the pruning mask during the refining phase, the model can recover from suboptimal early pruning decisions, ensuring that the most relevant features are preserved.

Experimental Evaluation

The researchers evaluated the FP framework on two significant ASR benchmarks:

  • LibriSpeech: A standard public corpus consisting of 970 hours of labeled speech.
  • Industry-scale Multi-domain Dataset: A massive, production-grade dataset containing 400,000 hours of anonymized, hand-transcribed speech spanning search, telephony, and YouTube domains.

Key Insights and Results

Efficiency vs. Accuracy

On the LibriSpeech dataset, the authors demonstrated that FP could achieve 50% sparsity—effectively cutting the model size in half—with only a marginal increase in Word Error Rate (WER). For example, using adaptive sparsity, the WER moved from a baseline of 2.1% to just 2.4% on the test set.

The Importance of Adaptivity and Revival

The experiments highlighted that adaptive per-layer sparsity consistently outperformed "unified" (flat) sparsity. At the 50% sparsity mark, the adaptive approach achieved a 2.4% WER compared to 2.5% for the unified approach. Furthermore, the "Refining Phase" proved vital; allowing the model to re-evaluate its architecture during training acts as a safety net against the permanent loss of vital parameters.

Structural Preferences

In ASR-specific contexts, the authors found that column pruning (specifically half-column pruning) consistently outperformed row pruning in maintaining low WER. This suggests that the internal representations of Conformer models are more sensitive to the loss of specific row-wise features than column-wise ones.

Production Viability

When scaled to the 400k-hour multi-domain dataset, the pruned models remained competitive with full-sized baselines. At lower sparsity levels (10-20%), the performance gap was negligible, proving that FP is a viable strategy for real-world, large-scale deployment where efficiency is paramount.

Limitations and Future Directions

While FP represents a significant step forward, the authors identified areas for further refinement. One challenge is "stale masks": because pruned regions receive zero updates during a training round, their importance scores can become outdated. While the refinement phase mitigates this, more dynamic methods for estimating the potential of pruned weights are needed.

Additionally, while structured pruning is designed for hardware efficiency, this study focused primarily on algorithmic performance (WER) and parameter reduction. Future work will involve measuring exact battery life and millisecond-level latency improvements on specific mobile chipsets to fully quantify the real-world benefits of Federated Pruning.

Summary updated

BibTeX
@inproceedings{lin2022federated,
  author = {Rongmei Lin and Yonghui Xiao and Tien-Ju Yang and Ding Zhao and Li Xiong and Giovanni Motta and Françoise Beaufays},
  title = {{Federated Pruning: Improving Neural Network Efficiency with Federated Learning}},
  booktitle = {Interspeech},
  year = {2022},
  doi = {10.21437/interspeech.2022-10787},
}
Figure