TL;DR
This paper investigates how to best partition a deep neural network (DNN) in federated learning (FL) to handle non-independent and identically distributed (non-IID) data. They discover that privatizing the encoder (base layers) often improves performance, even in label-shift scenarios, contrary to common assumptions, and propose methods to automatically learn optimal privatization strategies.
What Problem Does This Paper Address?
Federated Learning (FL) allows training models across decentralized devices without centralizing data, offering privacy benefits. However, a major challenge is statistical heterogeneity, where data on different clients is non-IID. This heterogeneity can significantly degrade model performance, especially during aggregation. A common approach to mitigate this is to privatize (keep local) certain layers of a DNN while sharing others. The core problem this paper addresses is: which layers should be privatized in a DNN for effective federated learning under different types of non-IID data distributions? The authors aim to understand if there are general rules or preferred strategies for privatization based on the nature of the non-IID data (e.g., covariate shift vs. label shift) and to develop methods for automatically discovering these strategies.
Methods
The paper explores two main avenues:
- Empirical Investigation of Privatization Strategies:
- They define coarse-grained network splits (encoder vs. classifier) and fine-grained splits (multiple blocks).
- They implement various privatization schemes based on these splits, categorizing them as Private-Shared (PS), Shared-Private (SP), Shared-Private-Shared (SPS), and Shared-Shared-Private (SSP). These schemes allow for different combinations of shared and private blocks.
- They systematically evaluate the aggregation (global model performance) and personalization (local model performance) of these strategies across different non-IID benchmarks.
- Automatic Learning of Privatization:
- They propose three algorithms: AutoCS (Cross Stitch), AutoSA (Soft Attention), and AutoHS (Hard Selection). These methods dynamically learn how to combine features or outputs from shared and private components during local training.
- They also introduce an interpolation trick to explore the trade-off between shared and private components by interpolating features and predictions.
Datasets
The authors use four established FL benchmarks:
- FeCifar10 and FeCifar100: These are constructed by splitting CIFAR-10 and CIFAR-100 datasets based on labels, representing label shift non-IID scenes.
- Shakespeare: A dataset built from Shakespeare's works, where each speaking role is treated as a client.
- FeMnist: A dataset for classifying digits and characters, where data from different writers forms clients.
Shakespeare and FeMnist are categorized as covariate shift non-IID scenes, where heterogeneity arises from different user roles or styles.
Key Insights and Ideas
- Privatizing Base Layers Can Be Beneficial: Contrary to intuition that only task-specific layers should be privatized, the paper finds that privatizing base layers (encoders) can significantly boost performance, even in label-shift scenarios. This suggests that preserving client-specific feature extraction is crucial.
- Shakespeare is Not Severely Non-IID: Surprisingly, none of the tested privatization strategies improved performance on the Shakespeare benchmark. The authors hypothesize that this dataset might not exhibit the severe non-IID characteristics that necessitate complex privatization.
- Double-Branch Architectures Outperform Single-Branch: Privatization strategies that involve multiple branches (e.g., keeping both encoder and classifier private, or having separate shared and private components) generally yield better results than single-branch approaches (e.g., only privatizing the encoder or classifier).
- Automatic Learning is Feasible: The proposed AutoCS, AutoSA, and AutoHS algorithms, along with the interpolation trick, demonstrate that it's possible to automatically learn effective privatization strategies, reducing the need for manual hyperparameter tuning and architecture search.
Key Results
- On FeCifar10 and FeCifar100 (label shift), the "AaB" (double-branch privatized encoder) strategy consistently outperformed others in both aggregation and personalization. The "ABb" (double-branch privatized classifier) also showed promise.
- On FeMnist (covariate shift), "ABb" showed faster aggregation convergence, and "AaB" performed comparably for personalization.
- For Shakespeare, all privatization methods showed no improvement, suggesting it might not be a suitable benchmark for testing these techniques.
- Fine-grained privatization on VGG11 for FeCifar10/100 revealed that personalization performance degrades monotonically with more privatized blocks in single-branch approaches. Double-branch architectures maintained similar personalization performance.
- The automatic algorithms (AutoCS, AutoSA, AutoHS) achieved performance comparable to the best manually selected strategies, validating their effectiveness.
Limitations and Future Work
- Shakespeare Benchmark: The paper acknowledges that Shakespeare might not be a severe non-IID scene, limiting the conclusions drawn from it. Future work could involve more rigorous quantification of non-IID levels.
- Hyperparameter Sensitivity: While they report best performances by tuning hyperparameters, the interaction between privatization strategies and specific hyperparameter settings could be explored further.
- Automatic Algorithm Coefficients: The paper notes that the learned coefficients in AutoCS and AutoSA show interesting patterns but suggests further investigation into their relationship with the balancing factor $\alpha$ from their theoretical analysis.
- Future Directions: The authors suggest exploring parameter interpolation instead of feature/output interpolation, learning combination weights locally, and assigning different weights per neuron. They also propose applying advanced neural architecture search techniques to FL and better quantifying non-IID levels.
Summary updated