TL;DR: DapperFL is a novel Federated Learning (FL) framework designed for the messy reality of edge computing, where devices have vastly different hardware capabilities and local data comes from diverse domains. By combining Model Fusion Pruning (MFP) with Domain Adaptive Regularization (DAR), DapperFL delivers models that are up to 80% smaller while improving accuracy across diverse data sources by up to 2.28% over state-of-the-art methods.
The Challenge: System Heterogeneity and Domain Shifts
Standard Federated Learning often assumes an idealized environment. In practice, two major hurdles break existing systems:
- System Heterogeneity: Edge devices (phones, IoT sensors) possess varying computational capacities. A high-end smartphone can train a complex model, but a low-power sensor might time out or crash, leading the central server to ignore its data entirely.
- Domain Shifts: Data varies significantly by environment. One client’s "cat" photos might be high-resolution outdoor shots, while another’s are grainy indoor night shots. Models often overfit to their local domain, making the aggregated global model fragile when faced with new environments.
Existing research usually tackles these issues in isolation. DapperFL is one of the first frameworks to address both simultaneously, ensuring that even resource-constrained devices can contribute to a model that generalizes well across multiple domains.
The DapperFL Approach
To overcome these challenges, the authors introduce three core components to the FL pipeline:
- Model Fusion Pruning (MFP): Instead of pruning a local model based solely on local data (which risks losing global knowledge), MFP first fuses the global model with a fine-tuned local model using a dynamic fusion factor. It then applies structural channel pruning (using an $\ell_1$ norm) to create a personalized, compact architecture. This ensures the pruned model retains essential features from both the local domain and broader global knowledge.
- Domain Adaptive Regularization (DAR): To prevent the model from becoming too specialized to one client's data, DAR splits the model into an encoder and a classifier. It adds a regularization term (squared $\ell_2$ norm) to the encoder’s output. This encourages the model to learn stable, domain-invariant representations robust to shifts in data distribution.
- Heterogeneous Aggregation: Because every client now has a differently pruned, personalized model, they cannot be averaged normally. The server recovers the full model structure by filling in the pruned gaps with weights from the previous global model before performing weighted averaging.
Key Insights
- Fusion Before Pruning: Pruning a purely local model is a recipe for overfitting. By fusing global weights before deciding which channels to cut, the device retains globally useful network components, even if they aren't the most active for its specific local dataset.
- Dynamic Weighting: The fusion factor isn't static. It starts high (relying on the global model for guidance) and decreases over time as the local model becomes more competent, allowing for better personalization without losing the big picture early on.
- Hardware-Friendly Pruning: By choosing structural channel pruning over unstructured weight pruning, the resulting models are faster on real-world hardware like GPUs and mobile CPUs, as they don't require specialized sparse-matrix software.
Evaluation and Results
The framework was evaluated on two classic Domain Generalization (DG) benchmarks: Digits (MNIST, USPS, SVHN, SYN) and Office Caltech (Caltech, Amazon, Webcam, DSLR). The authors simulated 10 heterogeneous clients across 5 capability levels to ensure a realistic spread of hardware constraints.
- Superior Accuracy: DapperFL achieved the highest global accuracy on both benchmarks, outperforming the runner-up by 0.13% on Digits and a significant 2.28% on Office Caltech.
- Massive Compression: The framework successfully reduced model volumes by 20% to 80%, depending on the device's capability level.
- Robustness to Pruning: In ablation studies, DapperFL maintained high accuracy even at high pruning ratios (e.g., 0.6), whereas competing methods like FedMP and NeFL saw much sharper performance drops as models got smaller.
Limitations and Future Work
The primary limitation of DapperFL is the introduction of four new hyperparameters. While the authors provide a Bayesian search mechanism to help find optimal values, tuning these for a new dataset adds complexity. Future work aims to develop an automatic selection mechanism for these hyperparameters, making DapperFL more "plug-and-play" for field engineers, and to further explore the framework's flexibility in even more diverse edge environments.
Summary updated