Decoupling General and Personalized Knowledge in Federated Learning via Additive and Low-rank Decomposition
Abstract.
To address data heterogeneity, the key strategy of Personalized Federated Learning (PFL) is to decouple general knowledge (shared among clients) and client-specific knowledge, as the latter can have a negative impact on collaboration if not removed. Existing PFL methods primarily adopt a parameter partitioning approach, where the parameters of a model are designated as one of two types: parameters shared with other clients to extract general knowledge and parameters retained locally to learn client-specific knowledge. However, as these two types of parameters are put together like a jigsaw puzzle into a single model during the training process, each parameter may simultaneously absorb both general and client-specific knowledge, thus struggling to separate the two types of knowledge effectively. In this paper, we introduce FedDecomp, a simple but effective PFL paradigm that employs parameter additive decomposition to address this issue. Instead of assigning each parameter of a model as either a shared or personalized one, FedDecomp decomposes each parameter into the sum of two parameters: a shared one and a personalized one, thus achieving a more thorough decoupling of shared and personalized knowledge compared to the parameter partitioning method. In addition, as we find that retaining local knowledge of specific clients requires much lower model capacity compared with general knowledge across all clients, we let the matrix containing personalized parameters be low rank during the training process. Moreover, a new alternating training strategy is proposed to further improve the performance. Experimental results across multiple datasets and varying degrees of data heterogeneity demonstrate that FedDecomp outperforms state-of-the-art methods up to 4.9%.
1. Introduction
††footnotetext: ∗[email protected]††footnotetext: Corresponding authorFederated learning (FL) (McMahan et al., 2016) allows clients to collaboratively train a global model without directly sharing their raw data. It has garnered widespread attention in the design of multimedia artificial intelligence systems (Che et al., 2023; Xiong et al., 2023; Zhang et al., 2023b; Lao et al., 2023). A central challenge in FL is data heterogeneity, where the data distributions across diverse clients are not independently and identically distributed (non-IID). Such disparities in data distributions hamper the training of the global model, leading to a decrease in the performance of FL (Zhang et al., 2021a; Gong et al., 2021; Li et al., 2021a).
To confront this challenge, the concept of Personalized Federated Learning (PFL) has been introduced. Within PFL studies, it is widely accepted that the knowledge learned by a client should be decoupled into two categories: the general knowledge across all clients and client-specific knowledge for this client (Wu et al., 2023; Zhang et al., 2023a; Chen and Chao, 2022). The former is used for sharing among clients to promote collaboration, while the latter is retained locally to keep personalization and reduce the impact of data heterogeneity on collaboration. This understanding prompts mainstream PFL research to propose a partition based method where each parameter in the client’s personalized model is designated as one of two types before training begins: parameter shared with other clients to extract general knowledge and parameter retained in personalization to learn client-specific knowledge. A multitude of studies have emerged. For instance, FedPer (Arivazhagan et al., 2019) focuses on personalizing the classifier, whereas FedBN (Li et al., 2021c) targets the personalization of Batch Normalization layers. FedCAC (Wu et al., 2023) proposes to select personalized parameters based on measurable metrics.
Although the aforementioned methods have achieved some success and attracted widespread attention, they still haven’t effectively separated the two types of knowledge. This is because the personalized parameters and shared parameters of a model learn from local data together as a whole, allowing each parameter to potentially absorb both general and client-specific knowledge simultaneously. This means that personalized parameters may contain some general knowledge that should be shared, and shared parameters may contain some client-specific knowledge that should be personalized. Fig. 1 is a toy example that illustrates this point intuitively. The square on the far left represents a personalized model parameter matrix containing nine parameters. The blue diagonal rectangle and the orange diagonal rectangle within each parameter represent the general knowledge and personalized knowledge contained in that parameter, respectively, with their area size indicating the amount of knowledge. It can be seen that each parameter contains both general and personalized knowledge. The partition based method divides some parameters into shared parameters (as shown by the blue squares), and the rest into personalized parameters (as shown by the orange squares). Obviously, this ”black or white” partitioning method cannot achieve knowledge decoupling within parameters, leading to some client-specific knowledge in shared parameters being shared, thereby reducing the degree of model personalization; while some shared knowledge in personalized parameters is personalized, thus reducing the level of client collaboration.
In this paper, we propose a new PFL paradigm based on parameter additive decomposition, called FedDecomp, to address the aforementioned issues. Unlike methods based on partitioning, which classify a parameter as either personalized or shared, FedDecomp decomposes each parameter into the sum of two parameters before training begins: one shared to facilitate knowledge exchange among clients and one retained locally to maintain personalization. Furthermore, we find that in PFL, general knowledge should be retained in shared parameters with high model capacity to cover all clients, while a client’s specific knowledge can be learned by personalized parameters with lower model capacity as a supplement to general knowledge. Hence, FedDecomp constrains the matrix containing personalized parameters to be low rank. This allows the personalized part to focus its learning on the most critical aspects of the local knowledge and reduce the overfitting to the local knowledge. Consequently, it helps to retain a significant portion of the general knowledge acquired from other clients, thereby enhancing generalization. Fig. 2 illustrates our proposed method. It can be seen that in our method, both the general knowledge and client-specific knowledge in each parameter can be decoupled and accordingly captured by shared and personalized parameters, achieving more efficient client collaboration and personalization.
In addition, different from the current methods which simply train personalized parameters and shared parameters simultaneously, we examine the training order of shared and personalized parameter matrices during local updates. Specifically, we propose to initially train the personalized low-rank part to mitigate the influence of non-IID data, followed by training the shared full-rank part. Our findings suggest that adopting an alternating approach, unlike concurrent training methods, yields greater benefits.
Our primary contribution in this paper can be summarized as follows:
-
•
We introduce a new method of decomposing shared and personalized parameters in PFL, namely FedDecomp. Specifically, we decompose each layer of the personalized model into the sum of a shared full-rank part to preserve general knowledge and a personalized low-rank part to preserve client-specific knowledge.
-
•
We introduce an innovative training strategy designed to optimize FedDecomp, effectively mitigating the implications of non-IID data and significantly boosting performance.
-
•
We evaluate FedDecomp across multiple datasets and under varied non-IID conditions. Our findings underscore the efficacy of the FedDecomp method we propose.
2. Related Work
PFL has emerged as a prevalent research direction to handle the non-IID problem in FL. Current PFL methods can be mainly divided into meta-learning-based methods (Fallah et al., 2020; Acar et al., 2021), fine-tuning-based methods (** et al., 2022; Chen et al., 2023), clustering-based methods (Sattler et al., 2020; Cai et al., 2023), model-regularization-based methods (T Dinh et al., 2020; Li et al., 2021b), personalized-aggregation-based methods (Huang et al., 2021; Zhang et al., 2021b), and parameter-partition-based methods. Among these methods, the parameter-partition-based method has attracted a lot of attention due to its simplicity and effectiveness.
Parameter-partition-based method. The core idea of this kind of method is to share part of the original model’s parameters while personalizing the other part. Representative works include selecting specific layers for personalization, such as FedPer (Arivazhagan et al., 2019), FedRep (Collins et al., 2021), and GPFL (Zhang et al., 2023a) proposing to personalize classifiers. FedBN (Li et al., 2021c) and MTFL (Mills et al., 2021) suggest to personalize the Batch Normalization (BN) layers. LG-FedAvg (Liang et al., 2020) and FedGH (Yi et al., 2023) propose to personalize feature extractor. Other works employ Deep Reinforcement Learning (DRL) or hypernetworks technologies to automate the selection of specific layers for personalization (Sun et al., 2021; Ma et al., 2022). Still, some other research no longer selects personalized parameters based on layers but on each individual parameter, making more fine-grained choices to personalize parameters sensitive to non-IID data (Wu et al., 2023). In recent years, some studies propose another kind of personalized parameter partitioning method. Unlike the previous method, the core idea of this method is to add additional personalized layers to the original model. For example, ChannelFed (Zheng et al., 2022) introduces a personalized attention layer to redistribute weights for different channels in a personalized manner. (Pillutla et al., 2022) proposes to add a bottleneck module for personalization after each feedforward layer.
Parameter-decomposition-based method. A few PFL works also utilize parameter decomposition techniques. For instance, Fedpara (Hyeon-Woo et al., 2022) decomposes the personalized model parameter matrix into the Hadamard product of two low-rank matrices. It has been proven that the parameter matrix after the Hadamard product still possesses a high rank, thus not sacrificing model capacity. This way, it only requires uploading the low-rank matrix with fewer parameters during training, thereby reducing communication overhead. Factorized-FL (Jeong and Hwang, 2022) decomposes the model parameter matrix into the product of a column vector and a row vector. During training, it personalizes the row vector while sharing the column vector. This is essentially a low-rank decomposition technique aimed at reducing communication overhead by only uploading the column vector. FedSLR (Huang et al., 2023), on the other hand, performs a low-rank decomposition of the parameter matrix when the server distributes the model, thus reducing the communication overhead of the downlink.
It is evident that our approach differs significantly from the current decomposition-based methods, from objectives to methodologies. The current methods mainly focus on the communication issue in PFL by reducing the amount of communication between clients and the server through low-rank decomposition of parameters. Our paper, however, focuses on the decoupling and extraction of knowledge in PFL. Through additive decomposition, it decouples the learning of general knowledge and client-specific knowledge. By constraining the personalized matrix to be low-rank, it coordinates the relationship between general and client-specific knowledge.
3. Method
3.1. Overview of FedDecomp
We first give an overview of FedDecomp. As illustrated in Fig. 3, each layer of client ’s personalized model is decomposed into the sum of a full-rank matrix and a low-rank matrix. The training process in each communication round can be summarized as follows: 1) each client freezes its full-rank matrices and updates the low-rank matrices . 2) Then, each client turns to update and freeze . After local updating, all clients upload the full-rank part to the server while kee** the low-rank part private. 3) The server receives clients’ full-rank matrices and aggregates them to generate a global model . After doing this, the server sends back to all clients. 4) Each client receives the global model and uses it to initialize the full-rank matrices.
3.2. Problem Definition of PFL
PFL, in contrast to traditional FL algorithms that train a general model for all clients, strives to develop a personalized model for each client , denoted as , specializing in capturing the unique characteristics of its local data distribution . In recent PFL research, there is a consensus that the knowledge acquired by individual clients comprises both general knowledge and client-specific knowledge. In non-IID scenarios, since different clients have distinct data distributions (i.e., ), it is difficult to extract general knowledge and thus brings challenges to client collaboration. To address this problem, PFL decouples into a shared part and a personalized part to learn general knowledge and client-specific knowledge respectively. Formally, the training objective can be formulated as
(1) |
where denotes the loss function of client and is the total number of clients. To optimize the target function in Eq. (1), recent studies have put forth various PFL methods to partition and . While these endeavors have shown promise, the question of how to further refine the decomposition of these two parameter components still presents an unresolved challenge.
3.3. Low-rank Parameter Decomposition
We observe that shared parameters responsible for extracting general knowledge benefit from a high model capacity. In contrast, personalized parameters are tasked with learning knowledge that complements the general understanding for specific local tasks (i.e., client-specific knowledge), therefore, it is sufficient to use a low-rank matrix to represent these personalized parameters. Based on this observation, we propose FedDecomp, an additive low-rank decomposition technique. Details about this method are as follows.
Additive Decomposition of Personalized Models: Assume that each personalized model has a set of weights , where is the weights for the -th layer and is the total layer number. Each weight matrix is originally full-rank. In FedDecomp, we decompose as
(2) |
where is a full-rank parameter matrix that is shared across all clients, and is a personalized low-rank parameter matrix. In the following, we employ the notation , and to denote the complete model parameter set, the full-rank parameter set, and the low-rank parameter set specific to client , respectively. Additionally, we use , , and to represent the parameter matrices for layer within client .
Next, we present the methods for imposing low-rank constraints on .
Low-rank Decomposition of Fully-Connected Layers: For fully-connected layers, the dimension of is , where and represent the input and output dimensions. We constrain through a low-rank decomposition as follows:
(3) | |||
The serves as a hyper-parameter designed to regulate the rank of within fully-connected layers. Its value falls within the range of .
Low-rank Decomposition of Convolutional Layers: In contrast to fully-connected layers, convolutional layers involve multiple kernels, resulting in dimensions. However, we can still apply a low-rank decomposition to constrain as follows:
(4) | |||
The is a hyper-parameter used to control the rank of within convolutional layers. Its value is within the range of .
During training, both and serve as trainable parameter matrices. We initialize with random Gaussian values and with zeros, which means starts as zero at the beginning of training.
The hyper-parameters and play crucial roles in controlling the rank of parameters within fully connected and convolutional layers, respectively. As the rank increases, the learning capacity of personalized parameters within the model gradually improves. However, if the rank is set too low, may struggle to effectively capture client-specific knowledge, making highly susceptible to non-IID data distributions. This, in turn, negatively impacts collaboration among clients. In contrast, if the rank is too large, may start to absorb some of the general knowledge that should be learned by , diminishing the level of collaboration among clients. For simplicity, in the FedDecomp approach, we apply the same to all convolutional layers and the same to all fully-connected layers. This simplification streamlines the model architecture and hyper-parameter tuning process.
3.4. Coordinate Training Between and
To better extract general knowledge, in contrast to the common practice where personalized and shared parameters are trained simultaneously, we find that a more effective strategy is to initially train the low-rank parameters. This alternating approach helps mitigate the impact of non-IID data before proceeding to train the full-rank parameters. Formally, in each communication round , we first optimize the low-rank parameters for epochs by
(5) |
Then optimize the full-rank parameters for epochs by
(6) |
We set , where is the total number of local update epochs in one round. These hyper-parameters play an important role in balancing the learning dynamics between two key components, and . When is set higher, it results in learning less knowledge. Consequently, the degree of knowledge sharing among clients diminishes. In contrast, if is set too low, ends up acquiring a significant amount of client-specific knowledge. This scenario increases the risk of clients sharing knowledge that is more susceptible to non-IID data. In special cases, when , the FedDecomp framework degenerates into FedAvg. Similarly, when , FedDecomp transforms into local training with low-rank parameters, without any collaborative efforts among clients.
After local updating, each client uploads to the server while kee** the private. The server computes a global model by aggregating all clients’ through
(7) |
and sends it back to clients. The detailed training process is summarized in the Algorithm 1.
To explain our intuition for proposing alternating training, we employ a toy example to illustrate the local update phase of each client’s personalized model within the parameter space. As shown in Fig. 4, the yellow and red denote the optimum points of the global model on all clients’ data (global loss minimum point) and the personalized model on the client’s data (local loss minimum point), respectively. Under the influence of non-IID, there is a big difference between global knowledge and local knowledge of clients. This makes the local minimum point far away from the global minimum point. The client’s personalized model is decomposed into the sum of a shared part and a personalized part . Since we first train the personalized part, the client-specific knowledge is mostly learned by and the shift of to the local minimum point is mainly done by . Therefore, when training , it moves less towards the local minimum point (i.e., less affected by non-IID data), so it can better extract general knowledge. In Section 4.4, we conduct an experiment to further validate this intuition.
3.5. Training Cost Analysis
In this section, we analyze the memory usage, computation cost, and communication cost of FedDecomp in each client compared to the baseline method FedAvg.
Memory usage: FedAvg needs to maintain a set of full-rank parameter set . According to Eq. (2), Eq. (3) and Eq. (4), FedDecomp needs to maintain a full-rank parameter set whose number of trainable parameters is equivalent to , and a low-rank parameter set whose number of trainable parameters is much fewer than . Therefore, the memory required by FedDecomp is slightly higher than that of FedAvg.
Computation cost: In one round, FedAvg updates for local epochs. According to Eq. (5) and Eq. (6), FedDecomp updates for epochs and update for epochs. Because has fewer trainable parameters than , the computation cost of FedDecomp is lower than that of FedAvg.
Communication cost: In one communication round, FedAvg needs to upload while FedDecomp needs to upload . As has the same number of trainable parameters as , FedDecomp has the same communication cost as FedAvg.
4. Experiments
4.1. Experiment Setup
Dataset. Our main experiments are conducted on three datasets: CIFAR-10 (Krizhevsky et al., 2010), CIFAR-100 (Krizhevsky et al., 2009), and Tiny ImageNet (Le and Yang, 2015). Experiments on larger datasets involving text modalities are included in the supplemental material. To evaluate the effectiveness of our approach in various scenarios, we adopt the Dirichlet non-IID setting, a commonly used framework in current FL research (Hsu et al., 2019; Lin et al., 2020; Wu et al., 2022). In this setup, each client’s data is generated from a Dirichlet distribution represented as . As the value of increases, the level of class imbalance in each client’s dataset gradually decreases. Consequently, the Dirichlet non-IID setting allows us to test the performance of our methods across a wide range of diverse non-IID scenarios. For a more intuitive understanding of this concept, we offer a visualization of the data partitioning in the supplemental material.
Baseline methods. To verify the efficacy of FedDecomp, we compare it with eight state-of-the-art (SOTA) methods: FedAMP (Huang et al., 2021), FedRep (Collins et al., 2021), FedBN (Li et al., 2021c), FedPer (Arivazhagan et al., 2019), FedRoD (Chen and Chao, 2022), pFedSD (** et al., 2022), pFedGate (Chen et al., 2023), and FedCAC (Wu et al., 2023). Among these methods, FedAMP forces clients with similar data distributions to learn from each other. FedBN, FedPer, FedRep, FedRoD, and FedCAC are parameter-partition-based methods that partially personalize parameters. pFedSD and pFedGate are fine-tuning-based methods, whose goal is to adapt the global model to the client’s local data. These methods cover the latest advancements in various directions of PFL.
Selection for hyper-parameters. We utilize the hyper-parameters specified in the respective papers for each SOTA method. For the FL general hyper-parameters, we set the client number , the local update epochs , the batch size , and the total communication round . Each client is assigned 500 training samples and 100 test samples with the same data distribution. We select the best mean accuracy across all clients as the performance metric. Each experiment is repeated using three seeds, and the mean and standard deviation are reported. We adopt the ResNet (He et al., 2016) network structure. Specifically, we utilize ResNet-8 for CIFAR-10 and ResNet-10 for CIFAR-100 and Tiny ImageNet. In FedDecomp, we adopt the SGD optimizer with learning rate equals 0.1.
4.2. Comparison with SOTA methods
CIFAR-10 | CIFAR-100 | Tiny Imagenet | |||||||
Methods | |||||||||
FedAvg | 60.391.46 | 60.411.36 | 60.910.72 | 34.910.86 | 32.780.23 | 33.940.39 | 21.261.28 | 20.320.91 | 17.200.54 |
Local | 81.913.09 | 60.150.86 | 52.240.41 | 47.610.96 | 22.650.51 | 18.760.63 | 24.070.62 | 8.750.30 | 6.870.28 |
FedAMP | 84.991.82 | 68.260.79 | 64.870.95 | 46.681.06 | 24.740.58 | 18.220.41 | 27.850.71 | 10.700.32 | 7.130.21 |
FedRep | 84.591.58 | 67.690.86 | 60.520.72 | 51.251.37 | 26.970.33 | 20.630.42 | 30.831.05 | 12.140.28 | 8.370.25 |
FedPer | 84.430.47 | 68.800.49 | 64.920.66 | 51.380.94 | 28.251.03 | 21.530.50 | 32.330.31 | 12.690.42 | 8.670.40 |
FedBN | 83.552.32 | 66.791.08 | 62.200.67 | 54.350.63 | 36.940.94 | 33.670.12 | 33.340.71 | 19.610.35 | 16.570.44 |
FedRoD | 86.232.12 | 72.341.77 | 68.451.94 | 60.170.48 | 39.881.18 | 36.800.56 | 41.060.77 | 25.631.11 | 22.321.13 |
pFedSD | 86.342.61 | 71.972.07 | 67.211.89 | 54.140.77 | 41.060.83 | 38.270.20 | 39.310.19 | 19.251.80 | 15.910.33 |
pFedGate | 87.251.91 | 71.981.61 | 67.850.87 | 48.540.39 | 27.470.79 | 22.980.03 | 37.590.39 | 24.090.67 | 19.690.14 |
FedCAC | 86.821.18 | 69.830.46 | 65.390.51 | 57.221.52 | 38.640.63 | 32.590.32 | 40.191.20 | 23.700.28 | 18.580.62 |
FedDecomp | 85.472.06 | 72.781.23 | 69.091.14 | 63.650.53 | 45.961.19 | 42.980.64 | 44.220.55 | 28.251.24 | 25.550.13 |
In this section, we compare our FedDecomp with several SOTA methods. To ensure a comprehensive evaluation, we consider three different non-IID degrees (i.e., ) on CIFAR-10, CIFAR-100, and Tiny Imagenet.
The results in Table 1 demonstrate that the performance of FedAMP is comparable to other SOTA methods on the CIFAR-10 dataset, but experiences a notable decline on CIFAR-100 and Tiny Imagenet. This is primarily because of its limited capacity to leverage collaboration among clients with diverse data distributions. In contrast, mainstream model partition methods such as FedRep, FedBN, FedPer, FedRoD, and FedCAC enhance collaboration among clients by personalizing parameters sensitive to non-IID data while sharing others. Among these methods, FedRoD distinguishes itself by introducing a balanced global classifier to facilitate comprehensive knowledge exchange, underscoring the potential for improvements in client collaboration within current model partition strategies. On the other hand, fine-tuning-based approaches like pFedSD and pFedGate enable all clients to collaboratively train a global model, fostering extensive knowledge exchange. However, this approach can lead to performance degradation in certain non-IID scenarios due to mutual interference during joint training.
Notably, FedDecomp significantly outperforms all baseline methods in the majority of scenarios, particularly as increases. FedDecomp achieves this by effectively decoupling general and client-specific knowledge through parameter decomposition and mitigating the impact of non-IID through alternating training of full-rank and low-rank matrices.
4.3. Ablation Studies
Effect of and . As we discuss in Section 3.3, and individually denote the ratio of the low-rank matrix’s rank to the full-rank matrix’s rank in convolutional and fully-connected layers, respectively. They are two important hyper-parameters to control the learning ability of the low-rank matrices. In this section, we evaluate the effect of and on model accuracy. We choose and from .
The experimental results are presented in Table 2. Firstly, we observe that the optimal combinations of are for CIFAR-10, for CIFAR-100, for Tiny Imagenet. This underscores the importance of setting the personalized parameter matrices to low rank. Secondly, regarding the optimal combination as the focal point, model accuracy gradually decreases as the rank increases. This occurs because, after this point, the personalized matrices gain more learning capacity and begin to acquire some of the general knowledge. As a result, collaboration among clients on the shared matrices diminishes. As the rank decreases, model accuracy also gradually declines. This is because the personalized matrices fail to capture sufficient client-specific knowledge. This aligns with our expectations. Thirdly, experimental results highlight that model accuracy is more sensitive to changes in than . This suggests that the acquisition of client-specific knowledge has a stronger correlation with the classifier than the feature extractor, consistent with prior research such as FedPer, FedRep, and FedRoD.
Dataset | 20% | 40% | 60% | 80% | 100% | |
CIFAR-10 | 84.72 2.07 | 84.97 1.74 | 84.73 2.33 | 84.80 2.03 | 84.99 2.19 | |
84.84 2.19 | 84.96 1.87 | 85.27 2.04 | 84.97 1.86 | 85.39 2.01 | ||
84.92 1.90 | 85.35 1.96 | 85.47 2.06 | 85.07 2.26 | 85.38 1.76 | ||
84.70 1.98 | 85.05 1.66 | 85.25 2.00 | 85.01 1.90 | 85.13 1.95 | ||
85.09 1.95 | 85.23 1.89 | 85.15 1.66 | 84.88 1.77 | 85.21 1.62 | ||
CIFAR-100 | 62.00 0.60 | 62.66 0.37 | 61.99 0.97 | 62.48 0.30 | 62.70 0.83 | |
61.70 0.28 | 62.49 0.77 | 62.70 0.59 | 63.65 0.53 | 62.73 0.60 | ||
61.71 0.30 | 62.88 0.33 | 62.46 0.53 | 63.12 0.38 | 63.24 0.66 | ||
60.76 0.14 | 62.54 0.56 | 62.74 0.54 | 62.15 0.38 | 62.70 0.57 | ||
59.54 0.98 | 60.97 0.35 | 61.86 0.74 | 61.96 0.55 | 62.58 0.51 | ||
Tiny Imagenet | 40.77 0.10 | 42.71 0.59 | 43.27 0.43 | 43.78 0.70 | 43.88 0.16 | |
40.14 0.36 | 42.74 0.46 | 43.82 0.46 | 44.22 0.55 | 43.72 0.24 | ||
39.39 0.26 | 42.75 0.46 | 43.44 0.43 | 43.85 0.90 | 44.16 0.48 | ||
36.90 0.30 | 41.94 0.29 | 42.75 0.49 | 43.21 0.41 | 43.28 0.36 | ||
33.90 0.91 | 40.55 0.15 | 41.75 0.81 | 42.16 0.41 | 42.75 0.31 |
![Refer to caption](x5.png)
![Refer to caption](x6.png)
![Refer to caption](x7.png)
Effect of and . In this section, we verify the effect of and on model accuracy. For simplicity, we set and only adjust the value of . We conduct experiments on three datasets under Dirichlet non-IID with and sample .
The experimental results are depicted in Fig. 5. When the , FedDecomp essentially degenerates to FedAvg, and the accuracy closely resembles the FedAvg accuracy presented in Table 1, as expected. As increases, the accuracy initially rises and then declines. When , FedDecomp degenerates to local training with low-rank parameter matrices. However, due to the constraints imposed by these low-rank matrices on the model’s learning capacity, FedDecomp performs less effectively compared to the Local as shown in Table 1.
Effect of Alternating training. As we discussed in Section 3.4, different from previous work that trains personalized and shared components simultaneously, we propose to train the personalized part first and then the global part to reduce the impact of non-IID and better extract general knowledge. To evaluate this idea, in this experiment, we compare the performance of two training methods.
The experimental results on three datasets are shown in Table 3. We can see that when the learning task is simple (e.g., a 10-classification task on CIFAR-10), the performance of alternating training and simultaneous training of two matrices is similar. As the learning task becomes increasingly difficult, the performance improvement brought about by alternating training becomes more apparent. This is because, in the case of a simple learning task, the variations in tasks among clients are relatively minor, which facilitates the extraction of general knowledge. However, as the learning task complexity increases, the differences in tasks among clients gradually expand, rendering the extraction of general knowledge more susceptible to non-IID effects. In such scenarios, the utilization of our proposed alternating training method becomes increasingly crucial.
Methods | CIFAR-10 | CIFAR-100 | Tiny |
Simultaneously | 85.451.83 | 61.181.05 | 35.370.71 |
Alternatingly | 85.472.06 | 63.650.53 | 44.220.55 |
Methods | CIFAR-10 & ResNet-8 | CIFAR-100 & ResNet-10 |
Local | 81.91 3.09 | 47.61 0.96 |
Local w/ Low-Rank | 81.97 2.62 | 47.64 0.79 |
FedAvg | 60.39 1.46 | 34.91 0.86 |
FedAvg w/ Low-Rank | 60.91 0.53 | 35.91 0.70 |
Effect of Model Capacity. In FedDecomp, we employ an additive decomposition technique on the model. In theory, this approach does not change the model’s capacity. However, in practical implementation, the decomposed model introduces low-rank matrices, thereby increasing the number of trainable parameters. This raises questions about whether the decomposed model genuinely enhances the model’s capacity and whether the observed performance improvement is primarily a result of the increased number of trainable parameters. To address these concerns, we conducted an experiment to assess the impact on model capacity.
We conduct experiments using two configurations: CIFAR-10 with the ResNet-8 model and CIFAR-100 with the ResNet-10 model. We established two controlled scenarios: 1) ‘Local’ and ‘Local w/ Low-Rank’ indicate models without and with low-rank matrices that are exclusively trained locally. 2) ‘FedAvg’ and ‘FedAvg w/ Low-Rank’ indicate models without and with low-rank matrices trained using the FedAvg algorithm. The experimental results are shown in Table 4. Notably, we observe that, in comparison to the original model, the model enhanced with low-rank matrices exhibits only minimal performance improvement. This outcome underscores that our utilization of parameter decomposition does not bring about significant alterations to the model’s capacity. Hence, the performance gains achieved by FedDecomp are not solely attributed to modifications in the model itself.
Methods | |||
FedDecomp | 63.650.53 | 45.961.19 | 42.980.64 |
FedDecomp_Reverse | 48.800.88 | 23.850.99 | 18.520.86 |
Effect of Personalize Low-rank Matrices and Sharing Full-rank Matrices. As discussed in section 3.3, the shared parameters require a high capacity to maintain general knowledge among clients, while personalized parameters only need to preserve client-specific knowledge as a supplement to the general knowledge. To validate this intuition, we evaluate ‘FedDecomp_Reverse’ which shares low-rank matrices and personalizes full-rank matrices. Other training strategy is the same as FedDecomp and the comparison results on CIFAR-100 are shown in Table 5.
We can see that the performance of ‘FedDecomp_Reverse’ is not as good as FedDecomp. Moreover, combining the results in Table 1, we can see that the performance of ‘FedDecomp_Reverse’ is similar to local training. This indicates that in ‘FedDecomp_Reverse’, the knowledge is mainly preserved in personalized parameters and the knowledge sharing among clients is very limited. This supports our intuition of personalizing low-rank matrices and sharing full-rank matrices.
4.4. The Effect of Alternating Training on Model Difference
As we discussed in Section 3.4 and Fig. 4, the primary objective of alternating training is to mitigate the impact of data heterogeneity on the shared parameters, essentially reducing the deviation of shared parameters to the local minimum point of the client. Consequently, employing alternating training should lead to a reduction in the discrepancies among shared parameters across clients during their local training phases. To validate the effectiveness of alternating training in achieving this goal, we carry out additional experiments to compare the disparities in shared parameters among clients when using alternating training as opposed to not using it. Specifically, we calculate the average model distance between and by
in each round . The results are shown in Fig. 6. It is evident from the data that, across both datasets, the utilization of alternating training significantly diminishes the differences in the shared parameters among clients. This is consistent with our intuition and analysis.
![Refer to caption](x8.png)
![Refer to caption](x9.png)
4.5. Experiments with pre-trained model
0 | 1 | 2 | 3 | 4 | |
Accuracy | 39.35 | 50.37 | 71.47 | 72.00 | 72.42 |
37.99 | 31.59 | 22.12 | 16.16 | 10.57 | |
0.00 | 26.48 | 89.68 | 98.26 | 99.63 |
In FedDecomp, we suppose that the client-specific knowledge is learned by the low-rank matrices. To validate this assumption, we initialize with pre-trained weights. In this case, the general knowledge is well extracted. If our idea holds, then the should be trained more to learn client-specific knowledge and should be trained less (i.e., should be much smaller than ).
Specifically, We initialize the with ImageNet pre-trained weights and conduct an experiment on the CIFAR-100 dataset in the Dirichlet non-IID scenario with . We calculate the by and the by . We control the value of at different levels (higher means update more often, and results in larger ), the results are summarized in the Table 6.
From the table, we can conclude that when is larger than , FedDecomp achieves better results. This indicates that with the pre-trained weights, the should be updated more often than to learn client-specific knowledge. This aligns with our expectations.
4.6. Privacy Analysis
Methods | FedAvg | FedPer | FedRoD | FedDecomp |
PSNR_Avg | 13.91 | 12.43 | 12.00 | 11.34 |
PSNR_Max | 17.11 | 19.52 | 16.99 | 13.55 |
In this section, we analyze the privacy protection capability of the FedDecomp. To this end, we adopt the Deep Leakage from Gradient (DLG) method (Zhu et al., 2019; Gei** et al., 2020) as the attack scheme. DLG is a common attack against FL, and its main idea is: 1) The attacker steals the gradients calculated by each client using local data; 2) The attacker finds the optimal input through iterative optimization, such that the gradient computed with this input is as close as possible to the actual gradient.
In our specific experimental setup, we choose the CIFAR-10 dataset with 20 clients, and the data distribution of each client follows a Dirichlet distribution with . For each algorithm, we assume that the gradients of shared parameters can be obtained by the attacker. At training rounds 10, 20, 30, 40, and 50, we attempt to recover each client’s 5 training images using the DLG method. To measure the quality of image recovery, we use the Peak Signal-to-Noise Ratio (PSNR), which is defined as , where is the target image to be recovered, is the image being optimized for recovery, and are the width and height of the image, respectively. A higher PSNR indicates that the recovered image is closer to the original image, which in turn implies weaker privacy protection by the algorithm. Table 7 shows our experimental results, including the average PSNR and the maximum PSNR of the attack results. The results show that our proposed FedDecomp method achieved lower PSNR compared to FedAvg and other personalized methods. This means that using the FedDecomp method, both on average and in the most extreme cases, better privacy protection can be achieved compared to previous methods. We believe that this is because our method can effectively decouple general knowledge from personalized knowledge and keep personalized knowledge well-preserved in the local low-rank branch. As such, it becomes difficult for the DLG method to recover the original image using only the shared part of the gradients.
5. Conclusion
In this paper, we propose a new PFL method named FedDecomp. FedDecomp decomposes each model parameter matrix into a shared full-rank matrix and a personalized low-rank matrix. To further enhance the acquisition of general knowledge, we devise a training strategy that prioritizes the training of the low-rank matrix to absorb the influence of non-IID during local training. Our extensive experimental evaluations, conducted across multiple datasets characterized by varying degrees of non-IID, unequivocally demonstrate the superior performance of our FedDecomp method when compared to SOTA methods.
References
- (1)
- Acar et al. (2021) Durmus Alp Emre Acar, Yue Zhao, Ruizhao Zhu, Ramon Matas, Matthew Mattina, Paul Whatmough, and Venkatesh Saligrama. 2021. Debiasing model updates for improving personalized federated training. In International Conference on Machine Learning. PMLR, 21–31.
- Arivazhagan et al. (2019) Manoj Ghuhan Arivazhagan, Vinay Aggarwal, Aaditya Kumar Singh, and Sunav Choudhary. 2019. Federated learning with personalization layers. arXiv preprint arXiv:1912.00818 (2019).
- Cai et al. (2023) Luxin Cai, Naiyue Chen, Yuanzhouhan Cao, Jiahuan He, and Yidong Li. 2023. FedCE: Personalized Federated Learning Method based on Clustering Ensembles. In Proceedings of the 31st ACM International Conference on Multimedia, MM 2023, Ottawa, ON, Canada, 29 October 2023- 3 November 2023. ACM, 1625–1633. https://doi.org/10.1145/3581783.3612217
- Che et al. (2023) Liwei Che, Jiaqi Wang, Yao Zhou, and Fenglong Ma. 2023. Multimodal federated learning: A survey. Sensors 23, 15 (2023), 6986.
- Chen et al. (2023) Daoyuan Chen, Liuyi Yao, Dawei Gao, Bolin Ding, and Yaliang Li. 2023. Efficient Personalized Federated Learning via Sparse Model-Adaptation. arXiv preprint arXiv:2305.02776 (2023).
- Chen and Chao (2022) Hong-You Chen and Wei-Lun Chao. 2022. On Bridging Generic and Personalized Federated Learning for Image Classification. In International Conference on Learning Representations. https://openreview.net/forum?id=I1hQbx10Kxn
- Collins et al. (2021) Liam Collins, Hamed Hassani, Aryan Mokhtari, and Sanjay Shakkottai. 2021. Exploiting shared representations for personalized federated learning. (2021), 2089–2099.
- Fallah et al. (2020) Alireza Fallah, Aryan Mokhtari, and Asuman Ozdaglar. 2020. Personalized federated learning with theoretical guarantees: A model-agnostic meta-learning approach. Advances in Neural Information Processing Systems 33 (2020), 3557–3568.
- Gei** et al. (2020) Jonas Gei**, Hartmut Bauermeister, Hannah Dröge, and Michael Moeller. 2020. Inverting gradients-how easy is it to break privacy in federated learning? Advances in Neural Information Processing Systems 33 (2020), 16937–16947.
- Gong et al. (2021) Xuan Gong, Abhishek Sharma, Srikrishna Karanam, Ziyan Wu, Terrence Chen, David Doermann, and Arun Innanje. 2021. Ensemble attention distillation for privacy-preserving federated learning. In Proceedings of the IEEE/CVF International Conference on Computer Vision. 15076–15086.
- He et al. (2016) Kaiming He, Xiangyu Zhang, Shaoqing Ren, and Jian Sun. 2016. Deep residual learning for image recognition. In Proceedings of the IEEE conference on computer vision and pattern recognition. 770–778.
- Hsu et al. (2019) Tzu-Ming Harry Hsu, Hang Qi, and Matthew Brown. 2019. Measuring the effects of non-identical data distribution for federated visual classification. arXiv preprint arXiv:1909.06335 (2019).
- Huang et al. (2023) Tiansheng Huang, Li Shen, Yan Sun, Weiwei Lin, and Dacheng Tao. 2023. Fusion of global and local knowledge for personalized federated learning. arXiv preprint arXiv:2302.11051 (2023).
- Huang et al. (2021) Yutao Huang, Lingyang Chu, Zirui Zhou, Lanjun Wang, Jiangchuan Liu, Jian Pei, and Yong Zhang. 2021. Personalized cross-silo federated learning on non-iid data. In Proceedings of the AAAI Conference on Artificial Intelligence.
- Hyeon-Woo et al. (2022) Nam Hyeon-Woo, Moon Ye-Bin, and Tae-Hyun Oh. 2022. FedPara: Low-rank Hadamard Product for Communication-Efficient Federated Learning. In International Conference on Learning Representations. https://openreview.net/forum?id=d71n4ftoCBy
- Jeong and Hwang (2022) Wonyong Jeong and Sung Ju Hwang. 2022. Factorized-fl: Personalized federated learning with parameter factorization & similarity matching. Advances in Neural Information Processing Systems 35 (2022), 35684–35695.
- ** et al. (2022) Hai **, Dongshan Bai, Dezhong Yao, Yutong Dai, Lin Gu, Chen Yu, and Lichao Sun. 2022. Personalized edge intelligence via federated self-knowledge distillation. IEEE Transactions on Parallel and Distributed Systems 34, 2 (2022), 567–580.
- Krizhevsky et al. (2009) Alex Krizhevsky, Geoffrey Hinton, et al. 2009. Learning multiple layers of features from tiny images. (2009).
- Krizhevsky et al. (2010) Alex Krizhevsky, Vinod Nair, and Geoffrey Hinton. 2010. Cifar-10 (canadian institute for advanced research). URL http://www. cs. toronto. edu/kriz/cifar. html 5 (2010).
- Lao et al. (2023) Mingrui Lao, Nan Pu, Zhun Zhong, Nicu Sebe, and Michael S. Lew. 2023. FedVQA: Personalized Federated Visual Question Answering over Heterogeneous Scenes. In Proceedings of the 31st ACM International Conference on Multimedia, MM 2023, Ottawa, ON, Canada, 29 October 2023- 3 November 2023. ACM, 7796–7807. https://doi.org/10.1145/3581783.3611958
- Le and Yang (2015) Ya Le and Xuan Yang. 2015. Tiny imagenet visual recognition challenge. CS 231N 7, 7 (2015), 3.
- Li et al. (2021a) Qinbin Li, Bingsheng He, and Dawn Song. 2021a. Model-contrastive federated learning. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition. 10713–10722.
- Li et al. (2021b) Tian Li, Shengyuan Hu, Ahmad Beirami, and Virginia Smith. 2021b. Ditto: Fair and robust federated learning through personalization. In International Conference on Machine Learning. PMLR, 6357–6368.
- Li et al. (2021c) Xiaoxiao Li, Meirui JIANG, Xiaofei Zhang, Michael Kamp, and Qi Dou. 2021c. FedBN: Federated Learning on Non-IID Features via Local Batch Normalization. In International Conference on Learning Representations. https://openreview.net/forum?id=6YEQUn0QICG
- Liang et al. (2020) Paul Pu Liang, Terrance Liu, Liu Ziyin, Nicholas B Allen, Randy P Auerbach, David Brent, Ruslan Salakhutdinov, and Louis-Philippe Morency. 2020. Think locally, act globally: Federated learning with local and global representations. arXiv preprint arXiv:2001.01523 (2020).
- Lin et al. (2020) Tao Lin, Ling**g Kong, Sebastian U Stich, and Martin Jaggi. 2020. Ensemble Distillation for Robust Model Fusion in Federated Learning. In NeurIPS.
- Ma et al. (2022) Xiaosong Ma, Jie Zhang, Song Guo, and Wenchao Xu. 2022. Layer-wised model aggregation for personalized federated learning. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition. 10092–10101.
- McMahan et al. (2016) H Brendan McMahan, Eider Moore, Daniel Ramage, and Blaise Agüera y Arcas. 2016. Federated learning of deep networks using model averaging. arXiv preprint arXiv:1602.05629 (2016).
- Mills et al. (2021) Jed Mills, Jia Hu, and Geyong Min. 2021. Multi-task federated learning for personalised deep neural networks in edge computing. IEEE Transactions on Parallel and Distributed Systems 33, 3 (2021), 630–641.
- Pillutla et al. (2022) Krishna Pillutla, Kshitiz Malik, Abdel-Rahman Mohamed, Mike Rabbat, Maziar Sanjabi, and Lin Xiao. 2022. Federated learning with partial model personalization. In International Conference on Machine Learning. PMLR, 17716–17758.
- Sattler et al. (2020) Felix Sattler, Klaus-Robert Müller, and Wojciech Samek. 2020. Clustered federated learning: Model-agnostic distributed multitask optimization under privacy constraints. IEEE Transactions on Neural Networks and Learning Systems (2020).
- Sun et al. (2021) Benyuan Sun, Hongxing Huo, Yi Yang, and Bo Bai. 2021. Partialfed: Cross-domain personalized federated learning via partial initialization. Advances in Neural Information Processing Systems 34 (2021), 23309–23320.
- T Dinh et al. (2020) Canh T Dinh, Nguyen Tran, and Josh Nguyen. 2020. Personalized federated learning with moreau envelopes. Advances in Neural Information Processing Systems 33 (2020), 21394–21405.
- Wu et al. (2023) Xinghao Wu, Xuefeng Liu, Jianwei Niu, Guogang Zhu, and Shaojie Tang. 2023. Bold but Cautious: Unlocking the Potential of Personalized Federated Learning through Cautiously Aggressive Collaboration. In Proceedings of the IEEE/CVF International Conference on Computer Vision (ICCV). 19375–19384.
- Wu et al. (2022) Xinghao Wu, Jianwei Niu, Xuefeng Liu, Tao Ren, Zhangmin Huang, and Zhetao Li. 2022. pFedGF: Enabling Personalized Federated Learning via Gradient Fusion. In 2022 IEEE International Parallel and Distributed Processing Symposium (IPDPS). IEEE, 639–649.
- Xiong et al. (2023) Baochen Xiong, Xiaoshan Yang, Yaguang Song, Yaowei Wang, and Changsheng Xu. 2023. Client-Adaptive Cross-Model Reconstruction Network for Modality-Incomplete Multimodal Federated Learning. In Proceedings of the 31st ACM International Conference on Multimedia, MM 2023, Ottawa, ON, Canada, 29 October 2023- 3 November 2023. ACM, 1241–1249. https://doi.org/10.1145/3581783.3611757
- Yi et al. (2023) Li** Yi, Gang Wang, Xiaoguang Liu, Zhuan Shi, and Han Yu. 2023. FedGH: Heterogeneous Federated Learning with Generalized Global Header. In Proceedings of the 31st ACM International Conference on Multimedia, MM 2023, Ottawa, ON, Canada, 29 October 2023- 3 November 2023. ACM, 8686–8696. https://doi.org/10.1145/3581783.3611781
- Zhang et al. (2023a) Jianqing Zhang, Yang Hua, Hao Wang, Tao Song, Zhengui Xue, Ruhui Ma, Jian Cao, and Haibing Guan. 2023a. GPFL: Simultaneously Learning Global and Personalized Feature Information for Personalized Federated Learning. In Proceedings of the IEEE/CVF International Conference on Computer Vision (ICCV). 5041–5051.
- Zhang et al. (2021a) Lin Zhang, Yong Luo, Yan Bai, Bo Du, and Ling-Yu Duan. 2021a. Federated learning for non-iid data via unified feature learning and optimization objective alignment. In Proceedings of the IEEE/CVF international conference on computer vision. 4420–4428.
- Zhang et al. (2021b) Michael Zhang, Karan Sapra, Sanja Fidler, Serena Yeung, and Jose M. Alvarez. 2021b. Personalized Federated Learning with First Order Model Optimization. In International Conference on Learning Representations. https://openreview.net/forum?id=ehJqJQk9cw
- Zhang et al. (2023b) Pengling Zhang, Huibin Yan, Wenhui Wu, and Shuoyao Wang. 2023b. Improving Federated Person Re-Identification through Feature-Aware Proximity and Aggregation. In Proceedings of the 31st ACM International Conference on Multimedia, MM 2023, Ottawa, ON, Canada, 29 October 2023- 3 November 2023. ACM, 2498–2506. https://doi.org/10.1145/3581783.3612350
- Zheng et al. (2022) Kaiyu Zheng, Xuefeng Liu, Guogang Zhu, Xinghao Wu, and Jianwei Niu. 2022. ChannelFed: Enabling Personalized Federated Learning via Localized Channel Attention. In GLOBECOM 2022 - 2022 IEEE Global Communications Conference. 2987–2992. https://doi.org/10.1109/GLOBECOM48099.2022.10000892
- Zhu et al. (2019) Ligeng Zhu, Zhijian Liu, and Song Han. 2019. Deep leakage from gradients. Advances in neural information processing systems 32 (2019).
Appendix A Partial Client participation
Datasets | 100% | 90% | 70% | 50% |
CIFAR-10 | 85.472.06 | 85.381.62 (-0.09) | 85.251.67 (-0.22) | 85.361.67 (-0.11) |
CIFAR-100 | 63.650.53 | 63.010.10 (-0.64) | 63.210.18 (-0.44) | 63.131.05 (-0.52) |
Tiny | 44.220.55 | 44.130.70 (-0.09) | 44.100.26 (-0.12) | 43.990.62 (-0.23) |
In our previous experiments, we assume all clients participate in FL training in each round. However, some clients may be offline due to reasons such as unstable communication links. This is the partial client participation problem that is common in FL. In this section, we evaluate the robustness of FedDecomp to this problem. We consider the scenarios where 90%, 70%, and 50% clients participate in each round and carry experiments on CIFAR-10, CIFAR-100, and Tiny Imagenet with .
The results are illustrated in Table 8. As we can see, in all scenarios, partial client participation does not significantly affect accuracy compared to all client participation. This is attributed to FedDecomp’s effectively separating general knowledge and client-specific knowledge, and the effect of non-IID is reduced through alternate training. Ensure that client collaboration is not significantly affected by outline clients in each round.
Appendix B Additional Experiments on Larger datasets
While the current mainstream FL work focuses on the algorithm’s performance on small image datasets, in this section, we further verify the performance of FedDecomp on larger datasets as well as other modality datasets.
Specifically, we conduct additional experiments on both a larger image dataset and a natural language processing (NLP) dataset. For the larger image dataset, we select a subset from ImageNet, consisting of 400 classes with a total of 80,000 samples. We utilize the ResNet-10 model architecture, with each client having 2,000 training samples generated following the Dirichlet distribution with . For the NLP dataset, we opt for AG_NEWS, a text 5-classification dataset with 120,000 samples. We employ the Transformer model architecture, with each client having 3,000 training samples generated following the Dirichlet distribution with . Additionally, for the Transformer model, we apply model decomposition to the weights in the self-attention modules and fully connected weights in the classifier module.
Table 9 displays the test accuracy results for these two datasets. It’s evident that FedDecomp consistently outperforms other state-of-the-art methods on both datasets.
Datesets | FedAvg | FedPer | FedRoD | FedDecomp |
AG_NEWS | 89.36 | 90.76 | 91.38 | 91.79 |
ImageNet-Subset | 18.55 | 29.37 | 32.45 | 35.67 |
Appendix C Whether FedDecomp Sacrifices Some Clients’ Accuracy
![Refer to caption](x10.png)
![Refer to caption](x11.png)
In previous experiments, we demonstrate the improvement of the averaged accuracy of all clients. In this section, we focus on the individual improvement for each client and verify whether FedDecomp sacrifices some clients’ accuracy. We plot each client’s accuracy in FedDecomp, FedAvg, and Local (i.e., each client trains the model locally without collaboration) methods in the Dirichlet non-IID scenario with . The results are shown in Fig. 7.
Notice that the accuracy of all clients in the FedDecomp method is higher than that in the FedAvg and Local methods, affirming that the use of FedDecomp does not lead to any deterioration in individual client performance.
Appendix D Visualization of Data Partitioning in Dirichlet non-IID
![Refer to caption](x12.png)
![Refer to caption](x13.png)
![Refer to caption](x14.png)
![Refer to caption](x15.png)
![Refer to caption](x16.png)
To facilitate intuitive understanding, we utilize 20 clients on the 10-classification and 50-classification datasets to visualize the data distribution of clients with different values. As shown in Figure 8, the horizontal axis represents the data class label index, and the vertical axis represents the client ID. Red dots represent the data assigned to clients. The larger the dot is, the more data the client has in this class. When is small (e.g., ), the overall data distributions of clients vary greatly. However, the variety of client data distribution is low, and it is easy to have clients with very similar data distributions. As the increases, the extent of class imbalance within each client’s dataset gradually diminishes, consequently leading to more difficult local tasks (i.e., the number of classes involved and a reduction in the number of samples available for each class). Concurrently, the dissimilarity in data distribution among different clients gradually diminishes, while the diversity in client data distribution widens. Furthermore, comparing the 10-classification dataset and the 50-classification dataset, it can be seen that under the same value, when the number of dataset classes increases, the difference of client data distribution becomes larger, and the diversity of client data distribution increases. It becomes more difficult to extract general knowledge among clients.
In summary, the Dirichlet non-IID configuration proves to be a potent approach for assessing the performance of PFL methods across a spectrum of intricate and diverse non-IID scenarios.