Introduction
Federated Learning (FL) has emerged as a critical paradigm for training machine learning models across decentralized devices while maintaining data privacy. However, the practical implementation of FL faces two primary challenges: communication bottlenecks, caused by the frequent exchange of large model updates, and system heterogeneity, where participating devices (clients) possess vastly different computational and memory resources.
Traditional methods to mitigate these issues often rely on "vertical" or intra-layer pruning, which removes individual neurons or filters. While effective at reducing model size, these methods can increase system complexity and lead to training instability. FedLP (Federated Layer-wise Pruning) introduces a "horizontal" alternative, pruning entire layers to streamline communication and computation without sacrificing model robustness.
The FedLP Framework
FedLP shifts the pruning unit from the neuron to the layer. This approach is inherently model-agnostic, treating layers as modular components regardless of whether they are convolutional or fully connected. The framework offers two primary operational modes:
1. FedLP-Homo (Homogeneous)
Designed for environments where clients share similar hardware capabilities, FedLP-Homo utilizes a Layer-Preserving-Rate (LPR). While every client trains the full model locally, they only upload a randomly selected subset of layers to the central server. The server then aggregates only the layers received in that specific round. This random selection process not only reduces the data transfer volume but also acts as a form of stochastic regularization, often improving the global model's ability to generalize.
2. FedLP-Hetero (Heterogeneous)
To address the "straggler" problem in FL, FedLP-Hetero assigns sub-models of varying depths to clients based on their specific hardware constraints. Powerful edge nodes may train deeper versions of the model, while resource-constrained IoT sensors train shallower versions. To maintain architectural compatibility during aggregation, these sub-models utilize personalized output layers to ensure data dimensions remain consistent across the network.
Experimental Evaluation
The researchers evaluated FedLP using the CIFAR-10 dataset across three distinct data distribution scenarios: Independent and Identically Distributed (IID), Dirichlet non-IID (simulating standard imbalance), and Mixed non-IID (simulating high label skew).
Key Findings
- Efficiency vs. Accuracy: FedLP-Homo with an LPR of 0.7 achieved a 30% reduction in communication traffic while actually outperforming the standard FedAvg baseline on IID and Dirichlet non-IID data. This suggests that horizontal pruning provides a beneficial regularization effect similar to Dropout, but at the layer level.
- Resource Optimization: In heterogeneous settings, FedLP-Hetero(1) reduced computational requirements (MFLOPs) by over 50% and communication overhead by over 80%. While this resulted in a more noticeable hit to accuracy compared to the homogeneous variant, it demonstrated a viable path for including low-power devices in the FL process.
- Resilience: The framework showed remarkable "graceful degradation." Even when dropping 70% of layers (LPR 0.3), the accuracy drop on IID data remained negligible, proving the model's structural resilience to layer-wise sparsity.
Discussion and Future Directions
FedLP demonstrates that horizontal pruning is often superior to vertical pruning in terms of stability and implementation ease. Furthermore, the random nature of layer selection in FedLP-Homo provides an inherent security benefit; because an attacker cannot predict which layers a client will update in a given round, the model becomes more difficult to target via certain gradient-based attacks.
However, limitations remain. The framework currently struggles with "Mixed non-IID" data, where extreme label skew can lead to divergent local updates when layers are not synchronized. Additionally, the personalized layers in the heterogeneous scheme are not currently aggregated, which may limit the global model's total knowledge integration. Future research will focus on dynamic pruning rates and more sophisticated aggregation techniques for personalized layers to further bridge the gap between efficiency and performance.
Summary updated