TL;DR
This paper introduces DisPFL, a novel decentralized federated learning framework that tackles data and client heterogeneity by employing personalized sparse masks. DisPFL significantly reduces communication costs and computation, achieving higher accuracy with fewer rounds, and adapts well to devices with varying capabilities.
What Problem Does This Paper Address?
Federated learning (FL) allows multiple devices to collaboratively train a model without sharing raw data, preserving privacy. However, real-world FL faces two major challenges: data heterogeneity (clients have different data distributions) and client heterogeneity (devices have varying computational power, memory, and communication bandwidth). Existing personalized FL (PFL) methods often rely on a central server, which creates a communication bottleneck and is vulnerable to failures or attacks. Decentralized FL (DFL) addresses the central server issue by enabling peer-to-peer communication, but still struggles with personalization and efficiency, especially under client heterogeneity. This paper aims to bridge this gap by proposing a decentralized approach that is both communication-efficient and capable of learning personalized models for each client, even when clients have vastly different resources.
Methods
The core of DisPFL is a decentralized sparse training technique integrated into a peer-to-peer communication protocol. Here's a breakdown:
- Personalized Sparse Masks: Each client learns a unique, sparse "mask" that determines which parameters of a shared underlying model structure are active for their personalized model. This allows for customization without needing to store a full dense model.
- Decentralized Sparse Training: The training process itself is sparse. Clients only maintain and update a fixed number of active parameters throughout local training and communication. This drastically reduces the amount of data that needs to be transmitted and processed.
- Modified Gossip Averaging: Instead of a central server aggregating models, DisPFL uses a weighted average of intersection weights from neighboring clients' models. This is then combined with the client's local mask.
- Local Mask Searching: Clients dynamically update their sparse masks based on gradient information. This process, inspired by techniques like Rigl, helps recover important weights and adapt the sparsity to better suit the local data and improve personalization.
- Adaptation to Heterogeneity: The framework is designed to accommodate clients with varying computational capabilities. Clients can choose their sparsity levels based on their individual constraints, allowing the system to function even with a mix of powerful and resource-limited devices.
Datasets
The proposed method was evaluated on three standard image classification datasets:
- CIFAR-10
- CIFAR-100
- Tiny-Imagenet
Two common non-IID data partitioning strategies were used:
- Dirichlet Partition: Simulates uneven label distributions across clients.
- Pathological Partition: Assigns clients only a limited number of classes.
Key Insights and Ideas
- Decentralization + Sparsity = Efficiency: Combining a decentralized communication protocol with sparse model training is a powerful combination for reducing communication overhead and computational load in FL.
- Personalized Masks as a Key to Customization: Using sparse masks allows for fine-grained personalization of local models without the need for large, dense, client-specific models. This is crucial for adapting to diverse local data.
- Dynamic Masking for Better Adaptation: The ability to dynamically update sparse masks based on local gradients allows the model to adapt more effectively to the specific data distribution of each client, leading to better personalization.
- Robustness to Client Heterogeneity: The framework's design, allowing clients to adapt their sparsity based on their capabilities, makes it highly resilient to the diverse hardware constraints found in real-world federated systems. This is a significant advantage over methods that require all clients to conform to the weakest device.
- Decentralized Resilience: Unlike centralized FL, the failure of individual clients in DisPFL does not halt the entire training process, making it more robust to network issues.
Key Results
- Improved Accuracy: DisPFL consistently outperforms various centralized and decentralized baselines in terms of test accuracy across all datasets and data partitions. For example, on CIFAR-10 with Dirichlet partition, DisPFL achieved 85.70% accuracy, significantly higher than FedAvg (78.07%) and D-PSGD (79.02%).
- Reduced Communication Cost: The method significantly reduces the communication bottleneck, especially for the busiest node. Table 1 shows DisPFL achieving a communication cost of 223.4 MB on CIFAR-10, compared to 446.9 MB for FedAvg.
- Lower Computation Cost: By maintaining sparse models, DisPFL reduces local training FLOPS.
- Faster Convergence: DisPFL requires significantly fewer communication rounds to reach a target accuracy compared to other methods, indicating faster convergence.
- Adaptability to Heterogeneity: Experiments show DisPFL performing well even when clients have different computational capabilities, outperforming baselines that struggle to adapt to such diverse settings.
Limitations and Future Work
- Sparsity Ratio Tuning: Finding the optimal sparsity ratio is noted as challenging. While higher sparsity offers communication benefits, it can lead to performance degradation due to reduced information exchange. The paper suggests that selecting a "sweet point" requires careful consideration.
- Deeper Insights into Mask-Data Correlation: While Figure 5 shows a correlation between learned masks and data distributions, the authors suggest that deeper insights into the relationship between masks and local distributions are an area for future work.
- Impact of Client Dropping: While DisPFL is more robust to client dropping than centralized methods, the paper acknowledges that increased dropping probability can slow down convergence and potentially affect the final personalized result. Further investigation into optimizing performance under such conditions could be beneficial.
Summary updated