Manuscript Offprint
arXiv:2610.01638FedSAP: Federated Learning with Structured Adaptive Partitioning for Multi-Domain Heterogeneous Edge Devices
Abstract
Federated learning (FL) on heterogeneous edge devices must jointly accommodate unequal resource budgets and domain-shifted local data. Existing resource-adaptive methods decide how much of a model each client trains but not where retained capacity should reside or how it should be shared, whereas federated domain-generalization methods usually assume a shared full architecture. Uniform compression can therefore discard high-utility channels, and a single aggregation path can mix transferable features with domain-sensitive updates. We propose FedSAP, a domain-aware heterogeneous FL framework that casts structured pruning as budget-constrained tri-state channel allocation. FedSAP converts each keep ratio into non-uniform layer budgets, assigns stable channels to a Global pool, useful domain-sensitive channels to pseudo-domain-specific Private pools, and low-utility channels to a Dropped state. This partition lets broadly useful features benefit from cross-client pooling while isolating domain-sensitive updates from incompatible clients. Domain-Guided Assignment infers pseudo-domains from shallow-gradient similarity, while Type-Matched Aggregation restricts each channel to its intended sharing scope. Across three random seeds, FedSAP reaches 76.00% and 72.67% mean global accuracy on Digits and Office-Caltech, exceeding the strongest baseline by 1.70 and 4.92 percentage points while supporting client pruning ratios of up to 80% across heterogeneous clients.
Introduction
Federated learning (FL) trains a shared model across edge devices without centralizing their raw data (McMahan et al. 2017; Huang et al. 2024). Real deployments, however, couple two forms of heterogeneity (Yue et al. 2026; Ye et al. 2023). Devices differ in computation, memory, and energy budgets (Ilhan, Su, and Liu 2023), so a model that fits a server-grade client may be infeasible on a low-end device (Yang et al. 2026). Their data also arise from different environments (Li et al. 2025): digit images vary from grayscale handwriting to street-view crops and synthetic renderings, while object images vary in camera, background, resolution, and style (Figure 1). Consequently, local updates encode both task knowledge and domain bias; indiscriminate aggregation can transfer the former while amplifying the latter.
The two problems cannot be solved independently. Resource-adaptive FL assigns smaller subnetworks to weak devices (Bouacida et al. 2021; Diao, Ding, and Tarokh 2021; Jiang et al. 2022b), but efficiency-oriented pruning does not identify which retained features should transfer across domains. Federated domain-generalization methods improve robustness to distribution shifts (Caldarola, Caputo, and Ciccone 2022; Huang et al. 2023; Pourpanah et al. 2025), but usually require every client to train the same full model. DapperFL (Jia et al. 2024) connects these settings through model-fusion pruning and domain-adaptive regularization, enabling differently compressed clients under domain shift. Yet a compression ratio specifies only how much capacity remains; it does not specify where that capacity should reside or with whom each retained feature should be shared.
This missing allocation decision creates three concrete failure modes. A uniform layer policy can spend scarce capacity on low-utility layers; a single aggregation path can overwrite domain-sensitive channels with incompatible updates; and shape reconstruction can align tensors without determining which clients should share those channels. Addressing coupled heterogeneity therefore requires a joint decision over layer budget, channel role, and sharing scope.
We therefore propose FedSAP (Federated learning with Structured Adaptive Partitioning), a domain-aware pruning framework that turns a fixed client budget into a structured allocation across layers and sharing roles. FedSAP first assigns more active channels to layers with higher estimated utility. It then partitions channels into three states: stable and useful channels are Global, useful but domain-sensitive channels are Private, and low-utility channels are Dropped. Domain-Guided Assignment (DGA) infers pseudo-domain groups from shallow-gradient similarity, and Type-Matched Aggregation shares Global channels across all clients while restricting Private-channel aggregation to the corresponding pseudo-domain group. Under client pruning ratios from 0% to 80%, FedSAP improves mean global accuracy on both evaluated benchmarks. The gain is an aggregate trade-off rather than uniform dominance: some individual domains decline, a point we quantify in the Main Results subsection and analyze further in the supplementary material.

(a) Digits

(b) Office-Caltech
Figure 1: Representative domain shifts. Digits spans handwritten, street-view, and synthetic domains; Office-Caltech spans different backgrounds, viewpoints, resolutions, and camera conditions.
• We formulate resource adaptation under domain shift as a joint allocation problem: a client-level budget must determine both where capacity is retained and how each retained channel is shared.
• FedSAP combines adaptive layer-wise budgets with tri-state channel partitioning, assigning channels to Global, Private, or Dropped states according to utility, cross-domain stability, and client constraints.
• DGA and Type-Matched Aggregation align each active channel with an estimated sharing scope. Experiments over three seeds show higher global mean accuracy under heterogeneous compression and report the domain-level trade-offs. The supplement provides budget–aggregation and domain-wise budget experiments, full sensitivity results, conditional theory, and privacy analysis.
FL under domain shift. Domain generalization aims to learn representations transferable to unseen domains. In FL, this problem is even harder because source domains are distributed across clients, and raw data cannot be centralized. Existing federated domain generalization methods mainly use representation regularization, prototype alignment, contrastive learning, or gradient-based aggregation. FedSR (Caldarola, Caputo, and Ciccone 2022) regularizes latent representations to reduce domain-sensitive variation, and FPL (Huang et al. 2023) aligns class-level semantics through prototypes. FedDAR (Zhong et al. 2023) learns a shared encoder with domain-wise prediction heads, while recent methods such as FedOMG (Nguyen et al. 2025) and FedGaLA (Pourpanah et al. 2025) exploit gradient signals to improve domain robustness without server-side data. Although these methods address domain shifts, they are developed under an architecture-homogeneous full-model setting, assuming that all clients train the same backbone with identical capacity. This limits their applicability to model-size heterogeneous edge systems, where weak clients may only support compact subnetworks. Our work instead studies domain robustness under client-specific pruning budgets.
Federated pruning with domain-aware aggregation. Model pruning is widely used in FL to reduce computation and communication costs. FedDrop (Bouacida et al. 2021), PruneFL (Jiang et al. 2022a), and FedMP (Jiang et al. 2022b) generate compact models under client resource constraints, but mainly treat pruning as a compression problem. They do not explicitly decide whether the retained capacity should support globally transferable or domain-specific knowledge. DapperFL (Jia et al. 2024) is the closest work to our setting. It combines Model Fusion Pruning with Domain Adaptive Regularization and reconstructs heterogeneous pruned models before aggregation, so clients with different pruning ratios can participate under domain shifts. However, its pruning ratio mainly controls how much capacity each client retains, rather than where this limited capacity should be placed across layers. As a result, layers with different utility may still be compressed under a similar budget pattern. In addition, all retained channels follow the same aggregation path after reconstruction, although some channels may encode globally transferable features while others capture domain-sensitive patterns. This makes it difficult to preserve both local specialization and global transfer simultaneously. CA-HFP (Hu et al. 2026) uses curvature-aware scores and model reconstruction to stabilize heterogeneous pruning, but its focus is on pruning robustness under statistical heterogeneity. It does not explicitly model pseudo-domains or as-sign retained channels to domain-aware aggregation paths. In contrast, FedSAP allocates active channels non-uniformly across layers, assigns them to Global or Private aggregation paths, and Drops low-utility channels to satisfy each client's capacity constraint during local training.
Methodology
Problem Formulation and Overview
We consider a federated learning system with N clients. Each client i owns a private dataset sampled from an unknown local distribution. The global objective is
where W denotes the global model and is the empirical loss on client . We study a practical edge setting where clients differ in both system capacity and data domain. Following the heterogeneous device protocol in prior work (Jia et al. 2024), each client is assigned a pruning ratio according to its resource budget. The corresponding target keep ratio is . Figure 2 contrasts conventional structured pruning with FedSAP under this client-level budget. Conventional pruning keeps one retained channel set, whereas FedSAP separates layer-wise capacity allocation from channel aggregation roles, allowing globally transferable and domain-sensitive channels to follow different paths.
As illustrated in Figure 3, FedSAP treats as a client-level capacity budget rather than a fixed pruning rule for every layer. For a model with convolutional layers, let be the number of output channels in layer . FedSAP first converts the client-level budget into adaptive layer-wise keep ratios , which satisfy the global budget constraint
Thus, different layers can receive different active-channel budgets under the same client-level compression ratio. Layers with higher estimated utility can retain more channels, whereas less useful layers can undergo more pruning.
Within each layer, FedSAP assigns every channel to a Global, Private, or Dropped state according to its utility and intended sharing scope during training:
Here, G denotes a Global channel shared across all clients, P denotes a Private channel shared only within a pseudo-domain group, and D denotes a Dropped channel that remains inactive under the client budget. The active channels, i.e., those assigned to G or P, must respect the layer-wise budget . This formulation poses two questions simultaneously: 1) where should the limited channel capacity be allocated across layers; and 2) how should each active channel be shared among clients?
FedSAP answers these questions through three coupled operations. Domain-Guided Assignment estimates pseudo-domain groups from first-layer gradient similarity without domain labels. Selective Global Protection assigns stable important channels to the Global pool and important domain-sensitive channels to Private pools. Type-matched aggregation then averages Global channels across all clients and Private channels only within the corresponding pseudo-domain group. This turns a fixed client pruning ratio into layer-adaptive, role-aware channel allocation under heterogeneous domain shifts and resource constraints.
Domain-Guided Assignment
Motivated by recent studies showing that gradient information reflects domain shift and can guide federated domain adaptation or generalization (Jiang, Zhang, and Koyejo 2023; Pourpanah et al. 2025), FedSAP uses layer gradient similarity as a lightweight signal for pseudo-domain discovery. At Domain-Guided Assignment (DGA) update rounds, after local training, each client reports the gradient of the first convolutional layer, denoted by , to the server. The server computes the pairwise cosine similarity
The similarity matrix defines pseudo-domain groups . The pseudo-domain grouping is updated every communication rounds to limit communication and reduce assignment changes caused by noisy early gradients. We use the first-layer gradient as a deliberately lightweight proxy because it responds strongly to texture, background, color, and stroke statistics. This choice is conditional rather than universal: it is most appropriate when domain identity is expressed through low-level appearance and can fail when domains are defined mainly by high-level semantics. The Limitations section and the supplementary material state this boundary explicitly.
Adaptive Layer Budget and Selective Global Protection
A client-level pruning ratio specifies how much capacity a client can retain, but it does not determine where this capacity should be preserved. This is important because different layers do not contribute equally after pruning: some layers contain features that are broadly useful across clients, whereas others can absorb more compression with less impact on the final prediction. FedSAP therefore treats each client's pruning ratio as a total-capacity budget, rather than as a fixed layer-wise pruning rule. For client i, the pruning ratio gives the target keep ratio . Instead of applying the same to every layer, FedSAP allocates this budget across layers according to estimated utility.
For each channel, FedSAP defines a general utility from two signals: the activation magnitude, which reflects how frequently the channel responds to local samples, and the gradient magnitude of the corresponding channel weights,

Figure 2: Conventional pruning versus FedSAP on ResNet10. Conventional pruning keeps one channel set, whereas FedSAP distributes the client budget across layers and assigns channels to Global or Private type-matched paths.
Domain-guided assignment

Type-matched aggregation
Budget-aware adaptive layer allocation + tri-state channel partitioning
Private channels
Figure 3: Overview of FedSAP: the server discovers pseudo-domain groups, allocates client-level budgets across layers, assigns channels to Global, Private, or Dropped states, and aggregates channels through matched sharing scopes.
which reflects how strongly the channel contributes to local optimization. The two normalized scores are combined as
In the reported implementation, and , so utility combines the normalized activation and gradient magnitudes with equal weight. The server averages channel utilities across clients to obtain layer-level importance scores. Layers with higher utility receive larger active-channel budgets, while lower-utility layers receive smaller ones. The resulting keep ratios are normalized to satisfy Eq. (2). FedSAP uses a softmax temperature of 1.0 over layer utilities. Before budget normalization, the per-layer keep ratio is clipped between and .
After deciding how many channels each layer can keep, FedSAP determines how the active channels should be shared across clients. This step, called Selective Global Protection, separates retained channels into Global and Private roles. The key criterion is cross-domain stability. For each pseudo-domain group, the server aggregates the mean activation magnitude of each channel and compares its behavior across groups. We measure the dispersion of channel c in layer as
where is the average activation magnitude of this channel in pseudo-domain group . Small dispersion indicates similar cross-domain behavior and favors Global sharing; large dispersion indicates domain sensitivity and favors Private preservation. FedSAP smooths these scores with an exponential moving average before role assignment.
For each client and layer, FedSAP first selects the top channels by utility score and marks the rest as Dropped. Among active channels, those with stable cross-domain behavior are assigned to the Global pool, while domain-sensitive channels are assigned to the Private pool. We also enforce a target global-channel ratio to prevent useful shared features from being overly fragmented into private pools, especially in early rounds with noisy domain estimates.
During local optimization, each client trains its masked model with the standard classification loss and a lightweight representation regularizer:
Here, is a local mini-batch, denotes the encoder output, and controls the regularization strength. We set in all reported experiments.
Type-Matched Aggregation and Training Procedure
After local training, clients upload masked model updates and channel statistics. Since clients may keep different channel subsets and assign active channels to different roles, FedSAP performs type-matched aggregation rather than direct FedAvg (McMahan et al. 2017). Global channels are aggregated across all clients that keep them as Global, while Private channels are aggregated only within the corresponding pseudo-domain group; Dropped channels remain inactive. The aggregation rule is:
where contains clients that keep channel as Global, and contains clients in pseudo-domain group that keep this channel as Private. The weights and are normalized by data size within each aggregation set.
Before the next communication round, the server constructs each client-specific model by combining globally shared parameters with the Private parameters assigned to its pseudo-domain group as follows:
This construction ensures that all clients receive shared cross-domain knowledge through Global channels, while domain-sensitive knowledge is preserved within pseudodomain groups through Private channels. Compared with reconstructing all pruned models into a single aggregation path, type-matched aggregation avoids mixing channel updates with incompatible roles.
Experiments
Experimental Setup
Datasets. We evaluate FedSAP on two standard multi-domain benchmarks. The first is Digits, which contains four digit-recognition domains: MNIST (LeCun et al. 1998), USPS (Hull 1994), SVHN (Netzer et al. 2011), and synthetic digits. Following the protocol of DapperFL (Jia et al. 2024), we distribute 10 clients across the four domains and use 1%
Algorithm 1 Federated learning with Structured Adaptive Partitioning (FedSAP)
Require: Initial model , clients , rounds , local epochs , pruning ratios , DGA period
Ensure: Global parameters and private parameters
1: Set and initialize active channels as Global.
2: for to do
3: Server broadcasts client-specific models and tri-state masks.
4: for each client in parallel do
5: Train the masked model for epochs using Eq. (7).
6: Upload model updates, first-layer gradient , utilities in Eq. (5), and activation statistics.
7: end for
8: if then
9: Compute by Eq. (4) and infer pseudo-domain groups .
10: end if
11: Aggregate utilities into layer-level importance scores.
12: for each client do
13: Convert into and normalize them by Eq. (2).
14: Select top channels as active; mark the rest as Dropped.
15: Compute dispersion by Eq. (6) and assign active channels to Global or Private.
16: Update the tri-state mask in Eq. (3) with target global ratio .
17: end for
18: Perform type-matched aggregation by Eq. (8).
19: Construct client-specific models by Eq. (9).
20: end for
21: return and
of the local data for each client. The second benchmark is Office-Caltech, which contains four object-recognition domains: Caltech (Griffin, Holub, and Perona 2007), Amazon, Webcam, and DSLR (Saenko et al. 2010). We use 20% of each client's local data, following the same protocol. Representative domain examples are shown in Figure 1. They show that the benchmarks exhibit visible style and acquisition shifts across domains, which aligns with the coupled heterogeneity setting studied in this work.
Models and heterogeneous clients. We use ResNet10 for Digits and ResNet18 for Office-Caltech. Following prior heterogeneous FL settings (Diao, Ding, and Tarokh 2021; Jia et al. 2024), we divide 10 clients among five capability levels with pruning ratios .
Baselines. We compare FedSAP with three groups of methods. The first group comprises standard FL methods, such as FedAvg (McMahan et al. 2017) and FedProx (Li et al. 2020). The second group includes federated domain-generalization methods, MOON (Li, He, and Song
| FL frameworks | System Heter. | Digits | Office-Caltech | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| MNIST | USPS | SVHN | SYN | Global Acc. | Caltech | Amazon | Webcam | DSLR | Global Acc. | ||
| FedAvg (McMahan et al. 2017) | ✕ | 95.89 | 86.84 | 78.39 | 33.63 | 71.81 | 66.07 | 76.84 | 65.52 | 56.67 | 64.54 |
| MOON (Li, He, and Song 2021) | ✕ | 93.03 | 78.38 | 84.45 | 25.97 | 69.44 | 65.62 | 75.79 | 72.41 | 53.33 | 61.86 |
| FedSR (Caldarola, Caputo, and Ciccone 2022) | ✕ | 96.77 | 86.15 | 81.48 | 31.64 | 73.89 | 62.95 | 78.95 | 75.86 | 50.00 | 65.47 |
| FPL (Huang et al. 2023) | ✕ | 95.54 | 87.69 | 83.74 | 34.73 | 74.17 | 63.84 | 82.63 | 65.52 | 60.00 | 65.45 |
| FedSPU (Niu, Dong, and Qin 2025) | ✕ | 96.53 | 85.23 | 77.99 | 39.00 | 73.44 | 66.07 | 73.68 | 53.45 | 46.67 | 59.68 |
| FedDrop (Bouacida et al. 2021) | ✓ | 89.48 | 82.51 | 72.98 | 29.35 | 66.85 | 66.07 | 79.47 | 56.90 | 53.33 | 60.58 |
| FedProx (Li et al. 2020) | ✓ | 96.68 | 83.96 | 76.69 | 30.95 | 70.74 | 61.61 | 71.05 | 68.97 | 46.67 | 62.08 |
| FedMP (Jiang et al. 2022b) | ✓ | 94.16 | 85.30 | 81.37 | 35.12 | 72.29 | 65.62 | 75.79 | 56.90 | 66.67 | 62.34 |
| NeFL (Kang et al. 2025) | ✓ | 84.98 | 88.49 | 78.41 | 36.02 | 67.64 | 54.91 | 71.05 | 77.59 | 66.67 | 62.26 |
| DapperFL (Jia et al. 2024) | ✓ | 96.25 | 86.30 | 82.45 | 37.26 | 74.30 | 64.73 | 81.58 | 74.14 | 66.67 | 67.75 |
| FedSAP (Ours) | ✓ | 96.83 | 90.23 | 76.51 | 43.85 | 76.00 | 75.45 | 79.47 | 70.69 | 73.33 | 72.67 |
Table 1: Mean model accuracy (%) over three random seeds on Digits and Office-Caltech. FedSAP uses , , and . Per-domain entries are best-so-far accuracies and may be attained at different communication rounds; Global Acc. is the best-so-far unweighted mean of domain accuracies evaluated at the same round, so it need not equal the mean of the per-domain columns.

Figure 4: Component ablation of FedSAP on Digits under the selected adaptive configuration. Removing DGA, SGP, or both degrades accuracy, showing the complementary benefits of pseudo-domain grouping and stable global-channel protection.

Figure 5: One-factor hyperparameter sensitivity of FedSAP on Digits under the fixed-mask, uniform-budget reference setting. The coordinate-wise best values are transferred to the final adaptive configuration.
2021), FedSR (Caldarola, Caputo, and Ciccone 2022), and FPL (Huang et al. 2023). The third group includes heterogeneous or pruning-based FL methods, FedDrop (Bouacida et al. 2021), FedMP (Jiang et al. 2022b), NeFL (Kang et al. 2025), and DapperFL (Jia et al. 2024).
Training and evaluation. We train for 100 communication rounds with batch size 64 and SGD at learning rate 0.01. FedSAP updates pseudo-domain groups every five rounds and uses , , and . Every Table 1 entry averages three independent seeds. Following DapperFL (Jia et al. 2024), we report per-domain Top-1 accuracy and global accuracy: each domain column is the best-so-far accuracy of that domain, whereas Global Acc. is the best-so-far unweighted mean of the domain accuracies evaluated at the same round. Per-domain bests may occur at different rounds, so their mean need not equal the reported Global Acc.; this mean does not imply per-domain dominance. The supplementary Implementation Details section reports the complete configuration.
Main Results
Superior global accuracy under system heterogeneity and domain shifts. Table 1 compares methods under heterogeneous device capacities, with client pruning ratios ranging from 0% to 80%. Averaged over three random seeds, FedSAP obtains the highest global accuracy on both benchmarks. It reaches 76.00% on Digits, 1.70 percentage points above DapperFL, and 72.67% on Office-Caltech, a 4.92-point gain. All gains are absolute points. The central result is that FedSAP improves average accuracy under aggressive heterogeneous compression and domain shift.
Cross-domain gains and trade-offs. The global improvement is not uniform across domains. Relative to DapperFL, FedSAP gains 6.59 points on SYN, 10.72 on Caltech, and 6.66 on DSLR, but loses 5.94 on SVHN, 2.11 on Amazon, and 3.45 on Webcam. Other baselines also exceed FedSAP on some individual domains; for example, FPL is 7.23 points higher on SVHN, and NeFL is 6.90 points higher on Webcam. This trade-off is expected because a fixed compression budget forces capacity to be redistributed: protecting channels that improve transfer or specialization for one group can reduce the capacity available to another. FedSAP optimizes the reported cross-domain mean rather than worst-domain accuracy, so the main claim is improved global performance at heterogeneous compression rates—not per-domain dominance. The supplementary domain-wise budget experiment further shows that adaptive allocation helps most on SYN, the most budget-sensitive Digits domain.
Layer-adaptive and role-aware pruning as a better design choice. The gains in the global mean support a more structured view of pruning than client-level compression alone. Under the same budget, globally stable channels reduce estimation variance by pooling data, Private channels reduce cross-domain bias by restricting aggregation, and Dropped channels satisfy the resource constraint. The supplementary Conditional Analysis formalizes this bias-variance-compression interpretation, derives the role-selection condition, and states its assumptions and failure modes without asserting a universal neural-network guarantee.
Ablation Studies
Complementary benefits of DGA and SGP in channel-role aggregation. We evaluate Domain-Guided Assignment (DGA) and Selective Global Protection (SGP) on Digits under the selected adaptive configuration. As shown in Figure 4, the complete FedSAP configuration reaches the best average accuracy of . Removing DGA or SGP yields and , respectively; removing both modules reduces the average further to . This suggests that the two modules address complementary aspects of channel-role allocation: DGA determines which clients should share Private channels, whereas SGP identifies which channels should remain globally shared. Their domain-wise effects vary: removing SGP slightly improves SVHN but lowers the source-domain average, so FedSAP favors a balanced multi-domain solution over single-domain optimization.
Low sensitivity to channel-role hyperparameter choices. We study three channel-role hyperparameters on Digits: the target global-channel ratio , dispersion threshold , and EMA coefficient . We vary one at a time while fixing the others. Figure 5 shows competitive accuracy across broad ranges. The best settings are , , and . They favor a large Global pool, strict stability filtering, and moderate temporal smoothing. We use this coordinate-wise selected combination in the main configuration. The supplementary sensitivity table reports every evaluated value and its global accuracy.
| Gradient source | Acc. (%) | Δ from Conv1 |
|---|---|---|
| Conv1 | 75.54 | - |
| Layer1 | 75.76 | +0.22 |
| Layer2 | 75.68 | +0.14 |
| Layer3 | 75.11 | -0.43 |
Table 2: Sensitivity to the DGA gradient source under the fixed-mask reference setting on Digits.
Sensitivity to the gradient source on appearance-driven domains. We examine how the DGA proxy changes with the layer used for gradient similarity. This diagnostic uses the fixed-mask reference setting, whose complete model obtains 75.54% global accuracy on Digits, and isolates the gradient source rather than comparing against the final dynamic-mask configuration. Table 2 shows comparable results for Conv1, Layer1, and Layer2. Layer1 is highest, while Conv1 offers the smallest payload. Thus, this result supports shallow gradients only for appearance-driven domains.
Conclusion
FedSAP reframes heterogeneous federated pruning as a joint decision over layer capacity and sharing scope. Its Global, Private, and Dropped states respectively pool transferable evidence, preserve pseudo-domain specialization, and meet client budgets. Across three seeds, this allocation improves the global mean on Digits and Office-Caltech under client pruning ratios up to 80%, although it does not dominate every domain. These results support role-aware capacity allocation while leaving important boundaries for future study.
Limitations First, DGA is a heuristic proxy for latent domains, not a domain-identification guarantee. First-layer gradients are well matched to shifts in texture, color, background, or stroke, but may not separate domains defined by high-level semantics, label mechanisms, or long-range context. Second, transmitting per-client shallow gradients and channel statistics introduces privacy exposure beyond ordinary model updates: an honest-but-curious server may infer domain identity, class proportions, or sample attributes, and gradient inversion is possible in some regimes. FedSAP currently provides no formal privacy guarantee; secure aggregation, clipping with noise, statistic quantization, and attack-based privacy audits are necessary extensions. Third, the tri-state interpretation relies on estimated utility, channel stability, and sufficiently accurate pseudo-domain groups. Incorrect assignments can replace useful global transfer with private estimation noise, or mix incompatible private updates. Finally, our evidence is limited to two vision benchmarks and ResNet-style backbones. The reported global mean can also hide worst-domain regressions, as Table 1 shows. Evaluation on semantic domain shifts, larger architectures, partial participation, imbalanced domains, and worst-domain or fairness-aware objectives is therefore needed. The supplementary Pseudo-Domain Error analysis bounds grouping error under stated assumptions, while Privacy Risk of Uploaded Signals discusses leakage channels, compatible defenses, and attack-based auditing requirements.
References
Alam, S.; Liu, L.; Yan, M.; and Zhang, M. 2022. FedRolex: Model-heterogeneous federated learning with rolling sub-model extraction. Advances in Neural Information Processing Systems, 35: 29677–29690.
Bouacida, N.; Hou, J.; Zang, H.; and Liu, X. 2021. Adaptive Federated Dropout: Improving Communication Efficiency and Generalization for Federated Learning. In IEEE INFOCOM 2021–IEEE Conference on Computer Communications Workshops (INFOCOM WKSHPS), 1–6. IEEE.
Caldarola, D.; Caputo, B.; and Ciccone, M. 2022. Improving generalization in federated learning by seeking flat minima. In European Conference on Computer Vision, 654–672. Springer.
Chen, D.; Yao, L.; Gao, D.; Ding, B.; and Li, Y. 2023. Efficient personalized federated learning via sparse model-adaptation. In International Conference on Machine Learning, 5234–5256. PMLR.
Diao, E.; Ding, J.; and Tarokh, V. 2021. HeteroFL: Computation and Communication Efficient Federated Learning for Heterogeneous Clients. In International Conference on Learning Representations.
Geiping, J.; Bauermeister, H.; Dröge, H.; and Moeller, M. 2020. Inverting Gradients—How Easy Is It to Break Privacy in Federated Learning? In Advances in Neural Information Processing Systems, volume 33, 16937–16947. Curran Associates, Inc.
Griffin, G.; Holub, A.; and Perona, P. 2007. Caltech-256 object category dataset. Technical Report CNS-TR-2007-001, California Institute of Technology.
Horvath, S.; Laskaridis, S.; Almeida, M.; Leontiadis, I.; Venieris, S.; and Lane, N. 2021. FjORD: Fair and accurate federated learning under heterogeneous targets with ordered dropout. Advances in Neural Information Processing Systems, 34: 12876–12889.
Hu, G.; Teng, Y.; Wu, P.; and Ma, S. 2026. CA-HFP: Curvature-Aware Heterogeneous Federated Pruning with Model Reconstruction. arXiv preprint arXiv:2603.12591.
Huang, W.; Ye, M.; Shi, Z.; Li, H.; and Du, B. 2023. Rethinking federated learning with domain shift: A prototype view. In 2023 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), 16312–16322. IEEE.
Huang, W.; Ye, M.; Shi, Z.; Wan, G.; Li, H.; Du, B.; and Yang, Q. 2024. Federated learning for generalization, robustness, fairness: A survey and benchmark. IEEE Transactions on Pattern Analysis and Machine Intelligence, 46(12): 9387–9406.
Hull, J. J. 1994. A database for handwritten text recognition research. IEEE Transactions on pattern analysis and machine intelligence, 16(5): 550–554.
Ilhan, F.; Su, G.; and Liu, L. 2023. Scalefl: Resource-adaptive federated learning with heterogeneous clients. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, 24532–24541.
Jia, Y.; Zhang, X.; Hu, H.; Choo, K.-K. R.; Qi, L.; Xu, X.; Beheshti, A.; and Dou, W. 2024. DapperFL: Domain
adaptive federated learning with model fusion pruning for edge devices. Advances in Neural Information Processing Systems, 37: 13099–13123.
Jiang, E.; Zhang, Y. J.; and Koyejo, S. 2023. Principled federated domain adaptation: Gradient projection and auto-weighting. arXiv preprint arXiv:2302.05049.
Jiang, Y.; Wang, S.; Valls, V.; Ko, B. J.; Lee, W.-H.; Leung, K. K.; and Tassiulas, L. 2022a. Model pruning enables efficient federated learning on edge devices. IEEE Transactions on Neural Networks and Learning Systems, 34(12): 10374–10386.
Jiang, Z.; Xu, Y.; Xu, H.; Wang, Z.; Qiao, C.; and Zhao, Y. 2022b. FedMP: Federated Learning through Adaptive Model Pruning in Heterogeneous Edge Computing. In 2022 IEEE 38th International Conference on Data Engineering (ICDE), 767–779. IEEE.
Kang, H.; Cha, S.; Shin, J.; Lee, J.; and Kang, J. 2025. NeFL: Nested Model Scaling for Federated Learning With System Heterogeneous Clients. IEEE Transactions on Mobile Computing, 24(8): 6734–6746.
LeCun, Y.; Bottou, L.; Bengio, Y.; and Haffner, P. 1998. Gradient-based learning applied to document recognition. Proceedings of the IEEE, 86(11): 2278–2324.
Li, Q.; He, B.; and Song, D. 2021. Model-contrastive federated learning. In Proceedings of the IEEE/CVF conference on computer vision and pattern recognition, 10713–10722.
Li, T.; Sahu, A. K.; Zaheer, M.; Sanjabi, M.; Talwalkar, A.; and Smith, V. 2020. Federated optimization in heterogeneous networks. Proceedings of Machine learning and systems, 2: 429–450.
Li, Y.; Wang, X.; Zeng, R.; Kumar Donta, P.; Murturi, I.; Huang, M.; and Dustdar, S. 2025. Federated Domain Generalization: A Survey. Proceedings of the IEEE, 113(4): 370–410.
McMahan, B.; Moore, E.; Ramage, D.; Hampson, S.; and y Arcas, B. A. 2017. Communication-efficient learning of deep networks from decentralized data. In Artificial intelligence and statistics, 1273–1282. Pmlr.
Netzer, Y.; Wang, T.; Coates, A.; Bissacco, A.; Wu, B.; Ng, A. Y.; et al. 2011. Reading digits in natural images with unsupervised feature learning. In NIPS workshop on deep learning and unsupervised feature learning.
Nguyen, T. B.; Nguyen, D. M.; Park, J.; Pham, V. Q.; and Hwang, W.-J. 2025. Federated Domain Generalization with Data-free On-server Matching Gradient. In The Thirteenth International Conference on Learning Representations.
Niu, Z.; Dong, H.; and Qin, A. K. 2025. FedSPU: Personalized federated learning for resource-constrained devices with stochastic parameter update. Proceedings of the AAAI Conference on Artificial Intelligence, 39(18): 19721–19729.
Pourpanah, F.; Molahasani, M.; Soltany, M.; Greenspan, M.; and Etemad, A. 2025. Federated unsupervised domain generalization using global and local alignment of gradients. Proceedings of the AAAI Conference on Artificial Intelligence, 39(19): 19948–19958.
Saenko, K.; Kulis, B.; Fritz, M.; and Darrell, T. 2010. Adapting visual category models to new domains. In European Conference on Computer Vision, 213–226. Springer.
Wu, F.; Wang, X.; Wang, Y.; Liu, T.; Su, L.; and Gao, J. 2024. Fiarse: Model-heterogeneous federated learning via importance-aware submodel extraction. Advances in Neural Information Processing Systems, 37: 115615–115651.
Yang, Q.; Chen, L.; Xue, M.; and Li, S. 2026. Tackling Resource-Constrained and Data-Heterogeneity in Federated Learning with Double-Weight Sparse Pack. arXiv preprint arXiv:2601.01840.
Ye, M.; Fang, X.; Du, B.; Yuen, P. C.; and Tao, D. 2023. Heterogeneous federated learning: State-of-the-art and research challenges. ACM Computing Surveys, 56(3): 1–44.
Yi, K.; Gazagnadou, N.; Richtárik, P.; and Lyu, L. 2024. FedP3: Federated Personalized and Privacy-friendly Network Pruning under Model Heterogeneity. In International Conference on Learning Representations.
Yue, W.; Lai, T.; Mao, Q.; Li, Q.; and Camacho, D. 2026. A Review of Federated Learning Under Data Heterogeneity. Expert Systems, 43(6): e70271.
Zhong, A.; He, H.; Ren, Z.; Li, N.; and Li, Q. 2023. Fed-DAR: Federated Domain-Aware Representation Learning. In International Conference on Learning Representations.
Zhu, L.; Liu, Z.; and Han, S. 2019. Deep Leakage from Gradients. In Advances in Neural Information Processing Systems, volume 32. Curran Associates, Inc.
Supplementary Material
A Comparison Frameworks
We briefly introduce the comparison frameworks used in our experiments.
FedAvg (McMahan et al. 2017) is the standard federated learning baseline. Each client performs local training and uploads its model update to the server, which then computes a data-size-weighted average to update the global model.
FedProx (Li et al. 2020) extends FedAvg by adding a proximal regularization term to the local objective. The proximal term constrains local models from drifting too far away from the global model, which is useful under statistical heterogeneity.
MOON (Li, He, and Song 2021) uses model-contrastive learning to reduce representation drift between local and global models. It encourages the current local model to stay close to the global model representation while moving away from previous local representations.
FedSR (Caldarola, Caputo, and Ciccone 2022) improves federated domain generalization by regularizing latent representations. It penalizes domain-sensitive variations in feature representations and encourages robust features across source domains.
FPL (Huang et al. 2023) introduces prototype-based learning for federated domain generalization. It aligns class-level semantic prototypes across clients and improves generalization under domain shifts.
FedDrop (Bouacida et al. 2021) reduces local computation and communication cost by training selected subsets of the global model on resource-constrained clients. It is the Adaptive Federated Dropout baseline used in our comparison.
FedMP (Jiang et al. 2022b) uses adaptive model pruning to support heterogeneous edge clients. It adjusts local model footprints according to client resource constraints.
NeFL (Kang et al. 2025) scales nested subnetworks in both depth and width, allowing clients with different resource budgets to participate in FL. It is a representative heterogeneous FL method based on nested model scaling.
DapperFL (Jia et al. 2024) is the closest baseline to our setting. It combines Model Fusion Pruning with Domain Adaptive Regularization and reconstructs heterogeneous pruned models before aggregation. It supports clients with different pruning ratios under domain shifts, but does not explicitly allocate channel capacity across layers or separate retained channels by sharing role.
FedSPU (Niu, Dong, and Qin 2025) is a personalized federated learning method for resource-constrained devices. Instead of training a smaller submodel through dropout-based pruning, FedSPU keeps the full model architecture and randomly freezes a subset of neurons during local training. We include it as an additional resource-constrained FL baseline. Since FedSPU is not designed for federated domain generalization, we evaluate it under the same multi-domain client split and report its global accuracy for comparison.
B FedSAP Settings
We use two FedSAP configurations in the experiments. Both follow the same heterogeneous-device protocol, where clients are assigned pruning ratios from . The main configuration uses adaptive layer budgets, dynamic masks, and the coordinate-wise selected channel-role parameters. The diagnostic reference uses uniform layer budgets, fixes masks after warm-up, and anchors the one-factor sweeps at their original values.
Main adaptive configuration. The main comparison results use the selected adaptive configuration with dynamic masks. This setting enables adaptive layer-wise budget allocation, where the client-level keep ratio is distributed nonuniformly across layers according to layer utility while preserving the overall client-level compression target. Based on the sensitivity study, we use , , and . The tri-state masks are updated throughout training, which allows channel roles to adapt as local models evolve. This is the configuration used for the main FedSAP results.
Fixed-mask reference configuration. For diagnostic analyses, we retain the fixed-mask uniform-budget reference configuration used by the original one-factor sweeps. It uses , , and , and fixes the tri-state masks after warm-up. This reference obtains 75.54% global accuracy on Digits. It isolates individual hyperparameters and should not be confused with the final dynamic-mask, adaptive-budget FedSAP configuration, which uses the coordinate-wise selected values and reaches 76.00%.
C Implementation Details
Compute resources. All experiments were conducted on a GPU server with two custom-modified NVIDIA RTX 4090 GPUs, each upgraded to 48GB memory. The server has a 24-core QEMU virtual CPU and 62GB system memory. The software environment uses Ubuntu 22.04 with CUDA 12.1, cuDNN 8, Python 3.12, and PyTorch 2.3.0. Each experimental run uses simulated federated clients on the same server. FedSAP introduces additional computation from DGA updates, channel-statistic collection, mask updates, and type-matched aggregation; the overhead is analyzed in Appendix G.
Datasets and splits. We evaluate all methods on Digits and Office-Caltech. Digits contains four domains: MNIST, USPS, SVHN, and SYN. Following DapperFL (Jia et al. 2024), we distribute 10 clients across the four domains and use 1% of each client's domain data as its local training set. Office-Caltech contains four domains: Caltech, Amazon, Webcam, and DSLR. Under the same multi-domain federated protocol, we use 20% of each client's domain data as its local training set. Evaluation is performed on held-out domain data that are not used during federated training.
Network architectures. For Digits, we use a ResNet10 variant with four residual stages. For Office-Caltech, we use ResNet18. Both networks include batch normalization and ReLU activations. The classifier dimension is adjusted according to the number of classes in each benchmark.
Federated training protocol. Unless otherwise specified,
| Configuration item | Main adaptive | Fixed-mask reference |
|---|---|---|
| Layer-budget rule | adaptive_layer_budget=1 | adaptive_layer_budget=0 |
| Layer-wise budget pattern | Importance-adaptive | Uniform |
| 0.9 | 0.9 | |
| 0.05 | 0.1 | |
| 0.5 | 0.3 | |
| Utility weights () | (0.5, 0.5) | (0.5, 0.5) |
| Budget temperature | 1.0 | N/A |
| Budget clipping | N/A | |
| Regularization weight | 0.01 | 0.01 |
| Mask update | Dynamic | Fixed after warm-up |
| Tri-state partitioning | enabled | enabled |
| DGA | enabled | enabled |
| SGP | enabled | enabled |
| Warm-up rounds | 10 | 10 |
| Reassignment period | 5 | 5 |
| Local epochs | 10 | 10 |
| Batch size | 64 | 64 |
Table 3: FedSAP hyperparameter settings used in the main comparison and diagnostic analyses.
we use 10 clients with full client participation. Each client trains locally for 10 epochs per communication round with a batch size of 64. We use SGD with momentum 0.9 and weight decay . The pruning ratios are assigned cyclically from to simulate heterogeneous device capacities. A pruning ratio of corresponds to a target keep ratio . Main-table entries are arithmetic means over three independent random-seed runs; no single-run result is reported as the main comparison.
Domain-Guided Assignment (DGA). DGA computes client similarity using the gradient of the first convolutional layer. Each client uploads this gradient after local training, and the server computes pairwise cosine similarity . We threshold with and take connected components to obtain pseudo-domain groups. Agglomerative clustering on the distance is an alternative implementation. We denote the group assignment of client by and update the grouping every communication rounds.
Adaptive layer budget allocation. For each client, FedSAP converts the client-level keep ratio into layer-wise keep ratios. The layer budget is determined by global layer utility, which is computed from channel-wise activation-magnitude and gradient-magnitude statistics aggregated across clients. We set and use a softmax temperature of 1.0. Before enforcing the channel-weighted budget constraint, each layer keep ratio is clipped to . The final normalization preserves the client-level keep ratio .
Selective Global Protection (SGP) assigns active channels to Global or Private states according to channel importance and cross-domain activation stability. In the selected adaptive configuration, we use , , and . Here, controls the target proportion of Global channels among active channels, is the disper- sion threshold for distinguishing stable and domain-sensitive channels, and is the EMA coefficient used to smooth channel statistics.
Type-Matched Aggregation. During aggregation, Global channels are aggregated across all clients, while Private channels are aggregated only within their corresponding pseudo-domain groups. Dropped channels are not aggregated. This prevents domain-invariant and domain-specific channels from being forced into the same aggregation path.
D Extended Ablation and Hyperparameter Sensitivity
Interaction between layer budgeting and aggregation. Table 5 separates the effect of the layer-budget rule from the effect of tri-state type-matched aggregation. The adaptive budget improves both aggregation variants, while tri-state aggregation provides an additional gain under either budget rule.
Where adaptive budgeting helps. Table 6 gives the corresponding domain-level comparison. The improvement is small on the nearly saturated MNIST and USPS domains, moderate on SVHN, and largest on SYN. This pattern is consistent with the interpretation that the hardest domain is most sensitive to where the limited channel budget is placed.
Hyperparameter sensitivity. Table 7 reports the full numerical results of the one-factor sensitivity study on Digits. The diagnostic holds a uniform layer budget and fixed masks while varying one channel-role hyperparameter at a time around . The coordinate-wise best values are 0.9, 0.05, and 0.5, respectively; we transfer this combination to the final dynamic-mask, adaptive-budget configuration reported in the main table.
| Type | Hyperparameter | Value |
| FL training | Number of clients | 10 |
| Client participation rate | 100% | |
| Communication rounds | 100 | |
| Local epochs | 10 | |
| Optimization | Batch size | 64 |
| Optimizer | SGD | |
| Momentum | 0.9 | |
| Weight decay | ||
| System heterogeneity | Pruning ratios | |
| Target keep ratio | ||
| Client assignment | cyclic over pruning ratios | |
| DGA | Similarity threshold | 0.5 |
| Reclustering interval | 5 | |
| Adaptive layer budget | Utility weights () | (0.5, 0.5) |
| Softmax temperature | 1.0 | |
| Lower clipping bound | ||
| Upper clipping bound | ||
| Optional regularizer | Representation weight | 0.01 |
Table 4: General training hyperparameters used in our experiments. FedSAP-specific configuration differences are shown in Table 3.
| Aggregation path | Uniform layer budget (adaptive_layer_budget=0) | Adaptive layer budget (adaptive_layer_budget=1) |
|---|---|---|
| Single path (w/o Tri-State) | 73.5 | 74.08 |
| Tri-state type-matched (FedSAP) | 75.2 | 76.00 |
Table 5: Global accuracy (%) on Digits under the combination of aggregation path and layer-budget rule. Entries are best-so-far global accuracies over training rounds, averaged over three seeds.
E Conditional Analysis of Tri-State Allocation
E.1 A Bias–Variance–Compression View
The purpose of this analysis is to explain when the three states are preferable, rather than to claim a distribution-free guarantee for a non-convex neural network. Consider one channel and latent domains. Let be the evaluation weight of domain , let denote its population-optimal channel parameter, and approximate the domain risk locally by
This separable quadratic model isolates two costs that are otherwise entangled in deep networks: bias from sharing a domain-sensitive channel and variance from estimating separate channel parameters with fewer samples.
For a Global channel, the population minimizer is , and its excess approximation error is
Let be the parameter estimated for the pseudo-domain group assigned to domain . A Private channel instead has
Perfect grouping makes when one parameter is maintained for each latent domain, whereas merging incompatible domains makes this term positive. Denote the estimation variances of pooled and group-restricted estimates by and . Pooling typically gives because it uses more samples, while Private estimation can have lower sharing bias.
Proposition 1 (conditional role choice). Under the separable quadratic approximation in Eq. (10), unbiased parameter estimates, and an additive active-channel budget, the risk-minimizing role for an active channel is Global when
and Private otherwise. A channel is Dropped when its best attainable reduction in , , is smaller than the reduction offered by other channels competing for the same budget.
Justification. For either active role, the expected excess risk decomposes into approximation bias plus estimation vari-
| Domain | Uniform budget + tri-state | Complete FedSAP | Difference pattern |
|---|---|---|---|
| MNIST | 96.5 | 96.83 | Small (near saturation) |
| USPS | 89.5 | 90.23 | Small |
| SVHN | 75.0 | 76.51 | Moderate |
| SYN | 42.0 | 43.85 | Largest (most budget-sensitive) |
Table 6: Domain-level accuracy (%) for uniform-budget tri-state aggregation and the complete adaptive-budget FedSAP configuration. Each entry is the best-so-far accuracy of the corresponding domain, which may be attained at a different communication round; the unweighted mean of the domain entries therefore need not equal the synchronized global accuracy in Table 5.
| Hyperparameter | Value | Global accuracy (%) |
|---|---|---|
| 0.5 | 73.71 | |
| 0.6 | 73.15 | |
| 0.7 | 73.96 | |
| 0.8 | 74.91 | |
| 0.9 | 75.54 | |
| 0.95 | 75.08 | |
| 0.05 | 75.89 | |
| 0.1 | 75.54 | |
| 0.2 | 74.84 | |
| 0.3 | 74.86 | |
| 0.5 | 74.76 | |
| 0.3 | 75.54 | |
| 0.5 | 75.78 | |
| 0.7 | 74.34 | |
| 0.9 | 75.23 |
Table 7: Hyperparameter sensitivity on Digits under the fixed-mask reference setting.
ance. Subtracting the Global and Private risks yields Eq. (13). With a cardinality budget and separable channel contributions, selecting active channels by their marginal risk reduction gives the Dropped set. Thus, the three states implement a conditional bias–variance–compression decision: Global channels trade a small sharing bias for lower variance, Private channels accept higher estimation variance to avoid cross-domain bias, and Dropped channels sacrifice low marginal utility to satisfy the resource constraint.
FedSAP operationalizes terms that are not observable in practice. Cross-group activation dispersion proxies for , activation/gradient utility proxies for the cost of dropping a channel, and prevents noisy estimates from assigning too many channels to small Private groups. The proposition explains the mechanism only to the extent that these proxies preserve the relevant ordering. It does not prove that the learned neural-network masks are globally optimal.
E.2 Pseudo-Domain Error and the Boundary of DGA
The preceding benefit depends on the quality of . If the per-channel risk is -Lipschitz in its parameter and the diameter of candidate group parameters is at most , assigning an fraction of domain mass to an incompatible Private group adds at most to the weighted channel risk. This bound makes the failure mode explicit: a noisy grouping can erase the bias reduction that justified the Private state. Repeated grouping and exponential smoothing improve temporal stability, but they do not remove systematic proxy error.
First-layer gradients are plausible domain signals when the shift changes local image statistics. Texture, color, background, illumination, and stroke style directly affect early filters, which matches Digits and much of Office-Caltech. A semantically defined domain can violate this premise. For example, two domains may share the same low-level appearance but differ in object co-occurrence, label semantics, scene context, or the conditional distribution . Their first-layer gradients can be similar even when later representations or classifier gradients differ. Conversely, a nuisance appearance change can split clients that should share semantic features. The shallow-layer ablation in the main paper establishes robustness only for the evaluated appearance-driven benchmarks; it does not validate DGA for high-level semantic domains. Multi-layer similarity, representation prototypes, or uncertainty-aware soft grouping are appropriate extensions for that setting.
E.3 What the Analysis Does and Does Not Establish
The analysis supplies a mechanism-level explanation for im-proved average accuracy under domain shift: channel-wise sharing can reduce variance where domains agree, restrict negative transfer where they disagree, and allocate the remaining budget to channels with the largest estimated utility. It also predicts the observed trade-off. Because the active-channel budget is fixed, improving the weighted mean can reallocate capacity away from a particular domain, and pseudodomain error can amplify that loss. Accordingly, FedSAP targets the global mean used by the evaluation protocol; it offers neither a monotonic improvement for every domain nor a worst-domain guarantee.
F Privacy Risk of Uploaded Signals
FedSAP avoids transmitting raw examples, but this fact alone does not establish privacy. DGA exposes a client-indexed first-layer gradient, and SGP exposes client- or group-level activation and channel-utility statistics. Prior work shows that gradients can support reconstruction attacks (Zhu, Liu, and Han 2019; Geiping et al. 2020). In FedSAP, even when exact reconstruction is unsuccessful, an honest-but-curious server could use repeated shallow gradients to infer visual domain identity or coarse sample attributes. Channel activation means and gradient magnitudes may also reveal class imbalance, feature prevalence, or changes in a client's local population. Pseudo-domain membership itself is sensitive metadata in applications where a domain corresponds to a hospital, sensor, region, or demographic group.
The current protocol assumes a trusted server for these auxiliary signals and provides no differential-privacy, cryptographic, or empirical attack-resistance guarantee. Its privacy claim must therefore remain limited to avoiding direct raw-data transfer. The risk depends on batch size, local-epoch aggregation, the dimensionality and precision of the transmitted signal, the server's prior knowledge, and whether signals are observable per client or only after aggregation; communication size is not a proxy for privacy.
Several defenses are compatible with FedSAP but change its utility. Secure aggregation within candidate groups can hide individual statistics but requires a preliminary grouping mechanism. Gradient clipping and calibrated noise can provide differential privacy, although noise can corrupt cosine similarity and destabilize DGA. Quantization, random projection, infrequent updates, and transmitting similarity sketches rather than raw gradients can reduce exposure without constituting a formal guarantee. A complete deployment study should report domain/class inference and gradient-inversion attacks, privacy–utility curves, and the effect of each defense on grouping accuracy and worst-domain performance.
G Computation and Communication Overhead
FedSAP introduces additional operations for DGA, channel-statistic collection, mask update, and type-matched aggregation. We analyze their overhead relative to standard FedAvg under the Digits setting.
Computation overhead. The dominant cost still comes from local training. For ResNet10 on inputs, let F denote the FLOPs of one forward pass. With 10 clients, 10 local epochs, about 30 mini-batches per epoch, and batch size 64, the per-round local training cost is approximately
where the factor 3 approximates forward and backward computation. DGA requires an additional gradient-based pass only every reassignment period. Since reassignment is performed every five rounds, its amortized overhead remains small compared with the full local training cost. In our estimate, the total additional computation of FedSAP is about 3%–5% over FedAvg.
Server-side aggregation overhead. Type-matched aggregation adds lightweight mask-based indexing and separate averaging for Global and Private channels. This affects aggregation rather than local model training. Since aggregation is much cheaper than repeated local forward-backward passes, its contribution to the total computation is minor.
Communication overhead. FedSAP does not upload raw data or full additional models. Its extra payload consists of first-layer gradients for DGA, channel-level statistics, and tri-state masks. The gradient is transmitted only at DGA rounds, and the remaining statistics scale with the number of channels rather than parameters. For ResNet10, masks and channel statistics contain on the order of values, whereas a model update contains millions of parameters. The resulting byte overhead is therefore small relative to standard model-update transmission. This size comparison is not a privacy guarantee; Appendix F analyzes the information that these signals may expose.
H Additional Results
Training curves. Figure 6 compares three FedSAP configuration variants used during development: a default setting, a tuned setting, and the tuned setting without DGA. Panel (a) reports round-wise mean accuracy, whereas Panel (b) reports the best-so-far accuracy up to each communication round. This is a configuration diagnostic rather than a comparison with external baselines. Per-domain accuracy curves. Figure 7 shows the domain-wise accuracy curves. The curves expose the same trade-off as the final accuracies: FedSAP improves several visually distinct domains and the cross-domain mean, but does not uniformly improve every domain.
Representation visualization. Figures 8 and 9 show t-SNE visualizations of the learned representations. Global-channel representations show stronger overlap across domains, while Private-channel representations preserve clearer domain-specific structure. This supports the design motivation of role-aware channel allocation.
| Component | FedAvg | FedSAP overhead |
|---|---|---|
| Local training | 100% | 0% additional |
| Type-matched aggregation | 100% | about 1% |
| Mask update | - | < 0.1% |
| DGA update | - | about 3%-5% amortized |
| Evaluation | 100% | 0% additional |
| Communication | 100% | small channel-level payload |
Table 8: Qualitative comparison of additional overhead relative to FedAvg.

Figure 6: Round-wise and best-so-far global accuracy of three FedSAP configuration variants on Digits.

Figure 7: Per-domain accuracy curves on Digits and Office-Caltech.
(a) Digits: Global (Shared)
t-SNE Dimension 2

t-SNE Dimension 1
(b) Digits: Private (Domain-Specific)
t-SNE Dimension 2

t-SNE Dimension 1
Figure 8: t-SNE visualization on Digits.
(a) Office: Global (Shared)
t-SNE Dimension 2

Caltech
Amazon
Webcam
DSLR
(b) Office: Private (Domain-Specific)

Caltech
Amazon
Webcam
DSLR
t-SNE Dimension 2

t-SNE Dimension 1



t-SNE Dimension 1

t-SNE Dimension 1
Figure 9: t-SNE visualization on Office-Caltech.