[Paper Review] Aggregate or Not? Exploring Where to Privatize in DNN Based Federated Learning Under Different Non-IID Scenes
This paper investigates where to apply model privatization in DNN-based federated learning under non-iID data distributions, proposing that base-layer privatization boosts performance even in label-shift scenarios. It introduces automatic methods—cross-stitch, soft attention, and hard selection—to learn optimal privatization strategies, with findings showing double-branch (AaB) and shared-classifier (ABb) designs outperform single-branch approaches across diverse non-iID settings.
Although federated learning (FL) has recently been proposed for efficient distributed training and data privacy protection, it still encounters many obstacles. One of these is the naturally existing statistical heterogeneity among clients, making local data distributions non independently and identically distributed (i.e., non-iid), which poses challenges for model aggregation and personalization. For FL with a deep neural network (DNN), privatizing some layers is a simple yet effective solution for non-iid problems. However, which layers should we privatize to facilitate the learning process? Do different categories of non-iid scenes have preferred privatization ways? Can we automatically learn the most appropriate privatization way during FL? In this paper, we answer these questions via abundant experimental studies on several FL benchmarks. First, we present the detailed statistics of these benchmarks and categorize them into covariate and label shift non-iid scenes. Then, we investigate both coarse-grained and fine-grained network splits and explore whether the preferred privatization ways have any potential relations to the specific category of a non-iid scene. Our findings are exciting, e.g., privatizing the base layers could boost the performances even in label shift non-iid scenes, which are inconsistent with some natural conjectures. We also find that none of these privatization ways could improve the performances on the Shakespeare benchmark, and we guess that Shakespeare may not be a seriously non-iid scene. Finally, we propose several approaches to automatically learn where to aggregate via cross-stitch, soft attention, and hard selection. We advocate the proposed methods could serve as a preliminary try to explore where to privatize for a novel non-iid scene.
Motivation & Objective
- To investigate whether different non-iID data distribution types (covariate vs. label shift) prefer distinct privatization strategies in federated learning.
- To evaluate coarse-grained and fine-grained network splits to determine optimal privatization locations for model aggregation and personalization.
- To develop automatic methods that learn where to privatize during FL training, reducing manual hyperparameter tuning.
- To assess whether existing benchmarks like Shakespeare truly represent severe non-iID challenges.
- To provide a systematic framework for selecting privatization strategies in novel non-iID FL scenarios.
Proposed method
- Categorizes four FL benchmarks into covariate shift and label shift non-iID scenes based on data distribution statistics.
- Designs coarse-grained (e.g., AaB, ABb) and fine-grained (layer-level) privatization splits to compare performance across architectures.
- Proposes three automatic learning mechanisms: AutoCS (cross-stitch), AutoSA (soft attention), and AutoHS (hard selection) to learn optimal aggregation weights.
- Employs an interpolation trick using a shared architecture (AaBb) to efficiently search for optimal privatization patterns without full retraining.
- Uses soft attention and Gumbel-softmax sampling to enable differentiable, learnable privatization routing during training.
- Trains global and personalized models in parallel, with learned coefficients dynamically balancing shared and private components.
Experimental results
Research questions
- RQ1Does the type of non-iID distribution (covariate vs. label shift) influence the optimal layer for privatization in DNN-based FL?
- RQ2Can privatizing early (base) layers improve performance in label shift non-iID scenarios, contrary to intuitive expectations?
- RQ3Is there a consistent privatization strategy that performs well across diverse non-iID benchmarks, including Shakespeare?
- RQ4Can automatic learning mechanisms (e.g., attention, hard selection) effectively discover optimal privatization patterns without prior knowledge?
- RQ5Does the proposed interpolation trick enable efficient and accurate identification of optimal privatization architectures in new non-iID scenarios?
Key findings
- Privatizing base layers (e.g., early convolutional blocks) significantly improves performance even in label shift non-iID scenarios, challenging the assumption that only label-specific layers benefit from privatization.
- The Shakespeare benchmark showed no performance gain from any privatization strategy, suggesting it may not represent a severe non-iID scenario.
- Double-branch privatization (e.g., AaB) consistently outperformed single-branch approaches across all benchmarks, indicating structural benefits of shared feature extraction with private heads.
- The proposed automatic methods (AutoCS, AutoSA, AutoHS) achieved performance comparable to the best handcrafted privatization strategies, validating their effectiveness in learning optimal configurations.
- Coefficients in the learned architectures (e.g., attention weights) revealed that shared components were often prioritized, with AutoHS and AutoSA favoring shared features in most cases.
- The interpolation trick using AaBb architecture enabled efficient search for optimal privatization patterns, reducing training cost compared to exhaustive enumeration.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.