TL;DR
FedMef is a novel framework for federated dynamic pruning that significantly reduces the memory footprint of training on resource-constrained edge devices. By combining "budget-aware extrusion" to prevent accuracy loss and "scaled activation pruning" to shrink intermediate data caches, it achieves a 28.5% memory reduction while delivering higher accuracy than current state-of-the-art methods.
What Problem Does This Paper Address?
Federated Learning (FL) allows devices to train models locally without sharing sensitive data, but it hits a major wall at the "edge." Training modern deep learning models requires massive amounts of memory and compute—resources that smartphones and IoT devices simply don't have.
While neural network pruning (removing unnecessary weights) is a standard solution, applying it to FL is tricky. Traditional pruning requires training a "dense" (full-sized) model first, which edge devices can't handle. "Dynamic" pruning starts with a sparse model and adjusts it over time, but it suffers from two major flaws:
- Post-pruning Performance Drop: Abruptly cutting weights often discards crucial information, leading to a permanent dip in accuracy.
- The Activation Bottleneck: Most pruning methods focus on reducing the number of weights. However, for many edge-optimized models like MobileNet, the real memory hog is the activation cache—the intermediate data stored during the forward pass to calculate gradients during the backward pass.
Methods
The authors introduce FedMef, which tackles these issues through two primary innovations:
1. Budget-aware Extrusion (BaE)
Instead of just "killing" low-magnitude weights, BaE "extrudes" their information into the surviving weights. Before a pruning step, the framework uses a surrogate loss function ($L_1$ regularization) to push the information from soon-to-be-pruned weights into the rest of the network. To make this happen quickly within a limited training budget, they employ a modified "REX" learning rate schedule that scales based on the magnitude of the target weights.
2. Scaled Activation Pruning (SAP)
To address the activation memory bottleneck, SAP prunes the activation tensors themselves. However, standard activation pruning relies heavily on Batch Normalization (BN) to keep values near zero. BN performs poorly in FL due to small batch sizes and non-IID (heterogeneous) data.
To fix this, FedMef uses Normalized Sparse Convolution (NSConv). NSConv reparameterizes the layers to ensure outputs are consistently zero-centered without needing BN. This makes the activation distribution stable and highly compressible, as shown in the workflow overview:
Datasets
The framework was evaluated on three standard image recognition benchmarks:
- CIFAR-10
- CINIC-10
- TinyImageNet
Experiments were conducted using ResNet18 and MobileNetV2 architectures across 100 simulated devices with heterogeneous data partitions.
Key Insights and Ideas
- Information Salvage: The core philosophy of BaE is that pruning shouldn't be a "hard cut." By treating it as a soft transition, the model retains its representational power even as it becomes sparser.
- Solving the Mean Shift: Without normalization, activations in deep networks tend to drift away from zero (internal covariate shift). The authors' NSConv is a clever workaround that provides the benefits of Batch Norm (zero-centering) without its drawbacks in a federated, small-batch setting.
- Targeting the Real Hog: By recognizing that activations—not just weights—are the primary memory constraint for edge models, FedMef provides a more holistic approach to on-device efficiency.
Key Results
FedMef consistently outperformed state-of-the-art (SOTA) federated pruning methods like FedTiny and FedDST:
- Memory Efficiency: It achieved a 28.5% reduction in memory footprint for MobileNetV2 compared to the best baseline.
- Accuracy Boost: On CIFAR-10 with MobileNetV2, FedMef improved accuracy by 2.13% over FedTiny while using significantly less memory.
- Convergence Stability: As seen in the validation curves, FedMef reaches higher accuracy faster and maintains a more stable trajectory than its competitors.
Limitations and Future Work
While FedMef reduces memory, the authors note that the additional calculations for BaE and SAP introduce a marginal increase in FLOPs (computational overhead). Although they argue this is negligible compared to the overall training cost, it remains a factor for the most extreme low-power devices.
Future work could involve extending these techniques to Transformer-based architectures or exploring how budget-aware extrusion could be adapted for different types of model compression, such as quantization.
Summary updated