A clustering federated learning method for multivariate and heterogeneous data scenarios

By introducing vector quantized variational autoencoders and global feature anchors in federated learning, the problem of weakened model generalization ability and overfitting caused by multivariate heterogeneity of data is solved, and more efficient feature representation and model aggregation are achieved. Improved performance and robustness of federated learning.

CN118378722BActive Publication Date: 2024-09-24CENT SOUTH UNIV
View PDF 6 Cites 0 Cited by

Patent Information

Application Number
CN202410807736.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-06-21
Publication Date
2024-09-24
Estimated Expiration
2044-06-21

AI Technical Summary

Technical Problem

In the scenario of multiple heterogeneous data, the heterogeneity of data in federated learning leads to the weakening of model generalization ability, increased risk of over-fitting and task imbalance, which are difficult to effectively solve with existing technology.

Method used

The vector quantized variational autoencoder (VQ-VAE) is integrated into the federated learning framework to maintain feature consistency through hierarchical clustering and global feature anchor points. It combines the average aggregation of intra-cluster feature extractors and the personalized aggregation of inter-cluster classifiers to improve Model generalization performance.

Benefits of technology

Effectively compress feature representation, protect data privacy, enhance the adaptability and robustness of the model to different data distributions, ensure the consistency of cross-client model aggregation, and improve the performance of federated learning.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118378722B
    Figure CN118378722B
Patent Text Reader

Abstract

The present invention relates to the technical field of federated learning, and specifically discloses a clustering federated learning method for data multivariate heterogeneous scenarios. For the first time, a vector quantized variational autoencoder is integrated into a federated learning framework, and a vector quantized variational autoencoder is used to effectively learn and map local data distribution to a discrete feature space. Client clustering is performed by utilizing the similarity of variables in the discrete space, thereby protecting local data privacy and effectively compressing feature representation. At the same time, feature anchor points are referenced to align features in feature dictionaries of different clients, thereby ensuring that the same position of feature dictionaries of different clients is in the same feature space, thereby ensuring the consistency of cross-client aggregation, and solving the problem that traditional federated learning for data multivariate heterogeneous scenarios will weaken the generalization ability of the model on the overall data set due to the heterogeneity of the data, increase the risk of overfitting the model for specific clients, and have task imbalance.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of federated learning technology, and specifically discloses a clustering federated learning method for scenarios with diverse and heterogeneous data. Background Technology

[0002] Federated learning, as an emerging foundational technology in artificial intelligence and a distributed machine learning paradigm, is primarily used to solve the problem of data silos. Federated learning has three main components: data sources, a federated learning system, and users. In a federated learning system, data preprocessing is performed through various data sources to collaboratively build a learning model, and the output results are fed back to the users. Typically, a federated learning system includes a central server, multiple clients, and the central server stores the global control variables and global model parameters obtained during each iteration of the federated learning process.

[0003] In existing technologies, local datasets uploaded by local clients are used as data sources. However, local datasets may exhibit significant data heterogeneity, which can be categorized into three aspects:

[0004] (1) Label heterogeneity, which is manifested in the fact that the marginal distributions of different client datasets are different, but the conditional distributions are the same;

[0005] (2) Feature heterogeneity, which is manifested in the fact that different client datasets have the same marginal distribution but different conditional distributions;

[0006] (3) Data heterogeneity, which is manifested in the different data sizes of different client datasets;

[0007] When there is heterogeneity in data volume, and the marginal and conditional distributions of different client datasets are also different, it is called multivariate heterogeneity. For federated learning methods applied to multivariate heterogeneous data scenarios, data feature skew can occur due to data heterogeneity. This feature skew will cause data with the same label to be mapped to different feature spaces on different clients. Inconsistency in feature spaces will weaken the model's generalization ability on the overall dataset and increase the risk of overfitting the model to specific client data. At the same time, label skew will also lead to an imbalance in the model's learning tasks in different feature spaces.

[0008] In view of this, the inventors have provided a clustering federated learning method for diverse and heterogeneous data scenarios to address the aforementioned problems. Summary of the Invention

[0009] The purpose of this invention is to address the problems of traditional federated learning in scenarios with diverse and heterogeneous data, where the heterogeneity of the data weakens the model's generalization ability on the overall dataset, increases the risk of overfitting the model to specific clients, and causes task imbalance.

[0010] To achieve the above objectives, the basic solution of this invention provides a clustering federated learning method for multi-variable and heterogeneous data scenarios, comprising the following steps:

[0011] Step S1: Initialize model parameters w and feature vectors of the feature dictionary. Global feature anchor vector And i takes values ​​from 1 to K, where K represents the total number of vectors in the feature dictionary;

[0012] Step S2: At the beginning of each iteration, the central server broadcasts the current model parameter information w to all clients. g The feature vectors of the current feature dictionary The current global feature anchor vector After receiving the data, the client begins local training and initializes the iteration round t=1.

[0013] Step S3: Each client m optimizes the loss function L using its local dataset. local Perform local training and upload the updated feature vectors. and model parameters w m To the central server, M represents the total number of clients m;

[0014] Step S4: Perform client clustering. The central server calculates the change in the feature vector of each client's feature dictionary and uses hierarchical clustering to divide the client into clusters based on the change in the feature vector of each client, resulting in several different model parameter clusters.

[0015] Step S5: The central server performs aggregation of model parameter clusters, including average aggregation of intra-cluster feature extractors, personalized aggregation of inter-cluster classifiers, and updating of feature vectors and global feature anchors;

[0016] Step S6: Repeat steps S2 to S5 until the model converges.

[0017] Furthermore, in step S1, when initializing the model parameters, the architecture of the model parameters includes the architecture of the feature extractor module, the architecture of the vector quantization variational autoencoder module, and the architecture of the classifier module.

[0018] Furthermore, in step S1, the model parameters of the feature extractor are set as follows: The model parameters of the vector quantization variational autoencoder module are defined as follows: The model parameters of the classifier module are set as follows: The expression for the initialized model parameters is: .

[0019] Furthermore, in step S3, the optimized loss function is composed of the classification loss L cls VQ-VAE loss L vq-vae Feature alignment loss L anchor The optimized loss function is expressed as L. local =L cls+ αL vq-vae+ βL anchor ,

[0020] In the formula, α and β both represent hyperparameters used to balance the effects of each loss component.

[0021] Furthermore, the classification loss ,

[0022] In the formula, M represents the total number of sample categories, c represents the number of sample categories, and y i.c This represents a binary indicator, which is 1 when the sample class is c and 0 when the sample class is not c; p i,c This represents the probability that the model predicts a sample belongs to class c.

[0023] Furthermore, the VQ-VAE loss ,

[0024] In the formula, and To balance the weighting factors of different loss terms;

[0025] In the formula, L recon The reconstruction loss is expressed as: ,in This indicates that the feature extractor outputs feature values, z. vq This represents the eigenvalues ​​reconstructed through VQ-VAE;

[0026] In the formula, L quant The quantization loss is expressed as: ,in This refers to the encoder of VQ-VAE. q(z) represents the encoder's output value. enc ) indicates selecting from the feature dictionary that matches z enc The most similar eigenvector, sg[·] denotes the operation to stop the gradient;

[0027] In the formula, L codebook The codebook loss is expressed as: This is used to ensure that the codebook vector matches the encoder output.

[0028] Furthermore, the feature alignment loss ,

[0029] In the formula, This represents the i-th vector in the feature dictionary of client m in the t-th iteration. This represents the corresponding i-th global feature anchor point. Let represent the L2 norm, and k represent the total number of vectors in the feature dictionary. is a hyperparameter and represents the threshold value.

[0030] Furthermore, step S4 includes:

[0031] Step S401: Define the set of iteratively updated feature vectors for each client, and treat each client as an independent cluster to establish a cluster set;

[0032] Step S402: Calculate the similarity of the updated feature vector sets between any two independent clusters and build a similarity matrix;

[0033] Step S403: Merge the two independent clusters with the highest similarity in the similarity matrix into a new independent cluster and update the cluster set;

[0034] Step S404: Repeat steps S402 to S403 until the number of remaining clusters reaches the expected number of clusters, so as to obtain the expected number of model parameter clusters.

[0035] The principle and effect of this solution are as follows:

[0036] 1. Compared with the prior art, this invention is the first to integrate vector quantization variational autoencoder into the federated learning framework. The vector quantization variational autoencoder effectively learns and maps the local data distribution to a discrete feature space. By using the similarity of the variables in this discrete space to perform client clustering, local data privacy is protected and feature representation is effectively compressed.

[0037] 2. Compared with the prior art, the present invention refines the clustering results step by step through an iterative clustering strategy and introduces global feature anchors to maintain the consistency of updates for different clients in the same feature space. This step internalizes the parameter deviations caused by data heterogeneity into the discrete feature space, more accurately captures the local data feature distribution, and provides a more accurate reference for the clustering strategy.

[0038] 3. Compared with the prior art, the present invention regards both vector quantization variational autoencoder and federated learning as a multi-task learning framework. Each model parameter cluster is regarded as an independent learning task. The knowledge sharing strategy between clusters aims to enhance the generalization ability of the model within the cluster. In addition, feature extractors and classifiers are integrated into the model structure, and the average aggregation of intra-cluster feature extractors and the personalized aggregation strategy of inter-cluster classifier weights are adopted to effectively improve the generalization performance of intra-cluster models.

[0039] 4. Compared with existing technologies, this invention uses feature anchors to align features in the feature dictionaries of different clients in each training round. This ensures that the same position in the feature dictionaries of different clients is in the same feature space, thereby ensuring the consistency of cross-client aggregation. Even with heterogeneous data distributions among clients, it ensures that the feature vectors in the feature dictionaries of each client are updated within the same latent space. This achieves effective cross-client model aggregation and collaborative learning, improves the performance of federated learning models, and enhances the model's adaptability and robustness to different data distributions. Furthermore, by introducing the concept of global feature anchors, the offset during feature vector updates is used to maintain feature alignment among clients in the same latent space, ensuring the consistency of feature vectors in the feature dictionaries of different clients and achieving effective model aggregation. Attached Figure Description

[0040] To more clearly illustrate the technical solutions in the embodiments of this application, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0041] Figure 1 A flowchart of a clustering federated learning method for multi-variable and heterogeneous data scenarios proposed in this application is shown. Detailed Implementation

[0042] To further illustrate the technical means and effects of the present invention in achieving its intended purpose, the following detailed description of the specific implementation methods, structures, features, and effects of the present invention, in conjunction with the accompanying drawings and preferred embodiments, is provided below.

[0043] A clustering federated learning method for diverse and heterogeneous data scenarios, implementing, for example... Figure 1 As shown:

[0044] Includes the following steps:

[0045] Step S1: Perform parameter initialization. This includes initializing the model parameters w and the feature vectors of the feature dictionary. Initialize the global feature anchor vector And i takes values ​​from 1 to K, where K represents the total number of vectors in the feature dictionary.

[0046] Specifically, when initializing model parameters, the architecture of the model parameters can be divided into the following three main modules:

[0047] (1) Feature Extractor Module: This module extracts features from the client's original input data using a traditional convolutional neural network structure. The feature extractor parameters are defined as follows: Let the original input data be represented as x, and let the useful features extracted from the original input data be represented as z, providing input for subsequent feature learning and classification decisions. The expression is as follows: .

[0048] (2) Vector Quantization Variational Autoencoder Module: Also known as the VQ-VAE module, the VQ-VAE module is used as the core part of the model and is represented as... The VQ-VAE module receives the output z from the feature extractor as input, and learns a discretized representation of the input data through an encoder-decoder architecture, the expression of which is as follows: ,

[0049] Among them, z vq This represents the residual encoding.

[0050] (3) Classifier module: Set the model parameters of the classifier module as follows The input values ​​are the output z of the feature extractor and the output z of the decoder of the VQ-VAE module. vq The combined values ​​are used to make the final classification decision using a multilayer perceptron structure, and a predicted label space is generated, which consists of the set of predicted classification results. The mathematical expression of the predicted classification results is as follows: ,

[0051] Among them, y predict This indicates the predicted classification result. This represents the classifier parameters.

[0052] Finally, the expression for the initialized model parameters is: The feature vectors of the initialized feature dictionary are represented as follows: And set the initialized global feature anchor vector as .

[0053] Step S2: Broadcast model parameters. At the beginning of each iteration, the central server broadcasts the current model parameter information w to all clients. g The feature vectors of the current feature dictionary The current global feature anchor vector Furthermore, in this embodiment, in the initial iteration round, let .

[0054] Where the initial iteration round t=1; This represents the feature extractor parameters for the g-th cluster in the (t-1)-th round. This shows the classifier parameters for the g-th cluster in the (t-1)-th round. The client begins local training after receiving information broadcast by the central server.

[0055] Step S3: Perform local training and parameter upload on the client side. Each client m optimizes the loss function L using its local dataset. local Perform local training and upload the updated feature vectors. and model parameters To the central server.

[0056] Specifically, the optimized loss function L local It consists of the following three main parts:

[0057] (1) Classification loss L cls Given a sample and its label y, the cross-entropy loss function is used, defined as follows: ,

[0058] Where M represents the total number of sample categories, c represents the number of sample categories, and y i.c This represents a binary indicator, p = 1 when the sample class is c, and 0 when the sample class is not c. i,c This represents the probability that the model predicts a sample belongs to class c.

[0059] (2) Vector quantization variational autoencoder loss, VQ-VAE loss L vq-vae :L vq-vae It consists of three sub-losses: .

[0060] in, and To balance the weighting factors of different loss terms.

[0061] Among them, L recon The reconstruction loss is expressed as: ,in This indicates that the feature extractor outputs feature values, z. vq This represents the eigenvalues ​​reconstructed through VQ-VAE.

[0062] Among them, L quant The quantization loss is expressed as: In the formula This refers to the encoder of VQ-VAE. q(z) represents the encoder's output value. enc ) indicates selecting from the feature dictionary that matches z enc The most similar eigenvector, sg[·] denotes the operation to stop the gradient.

[0063] Among them, L codebook The codebook loss is expressed as: This is used to ensure that the codebook vector matches the encoder output.

[0064] (3) Feature alignment loss L anchor This is used to introduce global feature anchors, ensuring that feature vectors in each client's feature dictionary are updated in the same feature space. By regularizing the feature anchors, the update of feature vectors is guided by minimizing the distance between each client's feature vector and its corresponding current global feature anchor, thus introducing a feature anchor regularization loss function. ,

[0065] in, This represents the i-th vector in the feature dictionary of client m in the t-th iteration. This represents the corresponding i-th global feature anchor point. Let represent the L2 norm, and k represent the total number of vectors in the feature dictionary;

[0066] in, is a hyperparameter and represents the threshold. If the deviation loss of the feature vector is less than the threshold, the feature alignment loss is zero.

[0067] The loss function L is regularized using feature anchor points. anchor This ensures that during local updates, the feature vector does not deviate too far from its corresponding global feature anchor, thus achieving feature alignment across clients.

[0068] Combining classification loss, VQ-VAE loss, and feature alignment loss, the client's total loss function is expressed as: ;

[0069] Here, α and β both represent hyperparameters used to balance the effects of each loss component.

[0070] In each round of training, feature anchors are used to align features in the feature dictionaries of different clients, ensuring that the same position in the feature dictionaries of different clients is in the same feature space, thereby ensuring the consistency of cross-client aggregation.

[0071] Furthermore, through the above feature alignment strategies, even with heterogeneous data distributions among clients, it can be ensured that the feature vectors in the feature dictionary of each client are updated within the same latent space. This enables effective cross-client model aggregation and collaborative learning, improves the performance of federated learning models, and enhances the model's adaptability and robustness to different data distributions. Moreover, by introducing the concept of global feature anchors, the feature alignment of each client within the same latent space is maintained by limiting the offset during feature vector updates, ensuring consistency of feature vectors in the feature dictionaries of different clients and achieving effective model aggregation.

[0072] Step S4: Perform client clustering. The central server calculates the change in the feature vector of each client's feature dictionary and uses hierarchical clustering to divide the client into clusters based on the change in the feature vector of each client, resulting in several different model parameter clusters.

[0073] Specifically, it includes the following steps performed in sequence:

[0074] Step S401: Define the set of iteratively updated feature vectors for each client: ,

[0075] When performing iterative updates, the vector set is When no iterative updates are performed, the vector set is 0.

[0076] in, Let represent the i-th vector in the feature dictionary of client m in the t-th iteration.

[0077] Step S402: Calculate the similarity of the updated feature vector sets between any two clients m and n. ,

[0078] in, This represents the sum of squares of each element of the vector.

[0079] Step S403: Cluster the clients using a hierarchical clustering algorithm. Assume there are M clients m i Let C = m1, m2, ..., m M Divide the M clients into R clusters G = G1, G2, ..., G... R ,in ,and ,

[0080] Specifically: For each client m i Treat it as a separate cluster G g =m i Then, based on the similarity matrix between clients Repeat the following two steps:

[0081] The two clusters G with the highest similarity in the similarity matrix are found using the following formula. p and G q : ,

[0082] G is obtained through the following formula q and G q The merger is called a new cluster. ,

[0083] Then update to the cluster set: ,

[0084] Repeat the above two steps until the number of remaining clusters equals the preset number of clusters R, then stop merging. The final R clusters are the result of hierarchical clustering.

[0085] Through the clustering process described above, clients with high similarity can be grouped into the same cluster to guide the subsequent aggregation of model parameters.

[0086] Furthermore, the highly abstract and compressed representation of each vector makes sharing model knowledge across clients more efficient and accurate, avoiding the limitations of relying solely on local training results. Compared to data distribution representation methods based on the channel sparsity of neural networks, it provides richer information and more accurate data feature representation.

[0087] Step S5: Perform parameter aggregation, including:

[0088] (1) Intra-cluster feature extractor average aggregation: The central server aggregates the parameters of client feature extractors within the same cluster. and classifier parameters Perform average polymerization;

[0089] Specifically, for the average aggregation of feature extractor parameters within a cluster, taking clients within the same cluster as an example, the parameters of their feature extractors are averaged and aggregated according to the following formula: ,

[0090] in, This represents the parameters of the cluster-based feature extractor after aggregation. N represents the feature extractor parameters for client m. g This indicates the number of clients within the cluster.

[0091] (2) Personalized aggregation of classifiers between clusters: By adjusting the classifier parameters between different clusters to adapt to the specific needs of each client, and based on the similarity of the cluster classifiers... Perform personalized aggregation.

[0092] Specifically, by introducing differentiated weights between clusters to adapt to the specific needs of each client, the cluster classifier aggregates according to the following formula: ,

[0093] in, This represents the classifier parameters for the g-th cluster after personalized aggregation. The inter-cluster differential weights are calculated based on relevance. Used to adjust the contribution of parameters between different groups. Calculate using the following formula: ,

[0094] in, and represents the classifier parameters of the j-th cluster and the g-th cluster after average aggregation, respectively.

[0095] (3) Feature vector and global feature anchor update: The central server aggregates the feature vectors of all client feature dictionaries and updates the global feature anchor vector to ensure the consistency and accuracy of the update.

[0096] Specifically, after training is completed on the client side, the feature vectors in the feature dictionary are updated by direct averaging and aggregation according to the following formula: ,

[0097] in, Let represent the value of the i-th feature vector of the m-th client in the t-th iteration, where M is the total number of clients participating in the aggregation.

[0098] Furthermore, in this embodiment, a momentum-based update strategy is used to optimize the update of global feature anchor points. The update strategy is performed according to the following formula: , ,

[0099] in, This represents the momentum deviation of the i-th feature anchor point. This represents the feature anchor value from the previous iteration. This represents the feature anchor value of the next iteration. Indicating learning efficiency, in Control the update speed of global feature anchor points.

[0100] Step S6: Repeat steps S2 to S5 until the model converges.

[0101] This invention is the first to integrate a vector quantization variational autoencoder into a federated learning framework. The vector quantization variational autoencoder effectively learns and maps the local data distribution to a discrete feature space. By utilizing the similarity of variables in this discrete space to perform client-side clustering, local data privacy is protected while feature representation is effectively compressed.

[0102] Furthermore, by iteratively refining the clustering results through a clustering strategy and introducing global feature anchors to maintain consistency in updates across different clients within the same feature space, this step internalizes the parameter biases caused by data heterogeneity into the discrete feature space, more accurately capturing the local data feature distribution and providing a more precise reference for the clustering strategy.

[0103] This invention also uses feature anchors in each training round to align features in the feature dictionaries of different clients, ensuring that the same position in the feature dictionaries of different clients is in the same feature space. This ensures consistency in cross-client aggregation, even with heterogeneous data distributions among clients. It guarantees that the feature vectors in the feature dictionaries of each client are updated within the same latent space, thereby achieving effective cross-client model aggregation and collaborative learning, improving the performance of federated learning models, and enhancing the model's adaptability and robustness to different data distributions. Furthermore, by introducing the concept of global feature anchors, the feature alignment of each client in the same latent space is maintained by limiting the offset when updating feature vectors, thus preserving the consistency of feature vectors in the feature dictionaries of different clients and achieving effective model aggregation.

[0104] The above description is merely a preferred embodiment of the present invention and is not intended to limit the present invention in any way. Although the present invention has been disclosed above with reference to preferred embodiments, it is not intended to limit the present invention. Any person skilled in the art can make some modifications or alterations to the above-disclosed technical content to create equivalent embodiments without departing from the scope of the present invention. Any simple modifications, equivalent changes and alterations made to the above embodiments based on the technical essence of the present invention without departing from the scope of the present invention shall still fall within the scope of the present invention.

Claims

1. A clustering federated learning method for multivariate and heterogeneous data scenarios, characterized by: The steps include: Step S1: Initialize the model parameters w and the feature vector of the feature dictionary , global feature anchor vector , and the value of i ranges from 1 to K, where K represents the total number of vectors in the feature dictionary; When initializing the model parameters, the architecture of the model parameters includes the architecture of the feature extractor module, the architecture of the vector quantized variational autoencoder module, and the architecture of the classifier module; And set the model parameters of the feature extractor to be expressed as , the model parameters of the vector quantized variational autoencoder module are set as , the model parameters of the classifier module are set as , the expression of the model parameters after initialization is: ; Step S2: At the beginning of each iteration, the central server broadcasts the current model parameter information w to all clients. g , the feature vector of the current feature dictionary , the current global feature anchor vector After receiving the data, the client starts local training and initializes the iteration round t=1; In the initial iteration round, let ; Among them, the initialization iteration round t=1; represents the feature extractor parameters of the g-th cluster in the t-1th round, shows the classifier parameters of the g-th cluster in the t-1th round; Step S3: Each client m optimizes the loss function L using the local dataset local Perform local training and upload the updated feature vector and model parameters w m to the central server, M represents the total number of clients m; Among them, the model parameters ; Step S4: Perform client clustering, where the central server calculates the change in the feature vector of the feature dictionary of each client, and uses a hierarchical clustering method to perform clustering based on the change in the feature vector of each client, to obtain a number of different model parameter clusters; Step S5: The central server performs aggregation between model parameter clusters, including average aggregation of feature extractors within a cluster, personalized aggregation of classifiers between clusters, and update of feature vectors and global feature anchors; Among them, the personalized aggregation of inter-cluster classifiers is to adjust the classifier parameters between different clusters to adapt to the specific needs of each client, and to perform aggregation based on the similarity of the inter-cluster classifiers; Step S6: Repeat steps S2 to S5 until the model converges.

2. According to claim 1, a clustering federated learning method for multivariate and heterogeneous data scenarios is characterized in that: In step S3, the optimized loss function is composed of the classification loss L cls 、VQ-VAE loss L vq-vae and feature alignment loss L anchor The expression of the optimized loss function is L local =L cls+ αL vq-vae+ βL anchor , In the formula, α and β are hyperparameters used to balance the impact of each loss part.

3. According to claim 2, a clustering federated learning method for multivariate and heterogeneous data scenarios is characterized in that: The classification loss , In the formula, M represents the total number of clients m, c represents the sample category, and y i.c represents a binary indicator, which is 1 when the sample category is c and 0 when the sample category is not c. i,c Represents the probability that the model predicts that the sample belongs to category c.

4. According to claim 2, a clustering federated learning method for multivariate and heterogeneous data scenarios is characterized in that: The VQ-VAE loss , In the formula, and To balance the weight factors of different loss terms; Where, L recon Represents the reconstruction loss, expressed as: ,in represents the feature extractor output feature value, z vq represents the eigenvalue reconstructed by VQ-VAE; Where, L quant Represents the quantization loss, and the expression is: ,in represents the encoder of VQ-VAE, represents the output value of the encoder, q(z enc ) means selecting from the feature dictionary enc The most similar eigenvector, sg[·] represents the operation of stopping the gradient; Where, L codebook Represents the codebook loss, and the expression is: , which is used to ensure that the codebook vector matches the encoder output.

5. According to claim 2, a clustering federated learning method for multivariate and heterogeneous data scenarios is characterized in that: The feature alignment loss , In the formula, represents the i-th vector in the feature dictionary of client m in the t-th iteration, represents the corresponding i-th global feature anchor point, represents the two-norm, k represents the total number of vectors in the feature dictionary, is a hyperparameter and represents the threshold value.

6. The clustering federated learning method for multivariate and heterogeneous data scenarios according to claim 2, characterized in that: The step S4 comprises: Step S401: defining a set of iteratively updated feature vectors of each client, and treating each client as an independent cluster to establish a cluster set; Step S402: Calculate the similarity of the updated feature vector sets between any two independent clusters and establish a similarity matrix; Step S403: merging the two independent clusters with the highest similarity in the similarity matrix into a new independent cluster and updating the cluster set; Step S404: Repeat step S402 to step S403 until the number of remaining clusters reaches the expected number of clusters, so as to obtain the expected number of model parameter clusters.

Citation Information

Patent Citations

  • Federal learning method based on machine isomerism

    CN112990488A

  • Method and apparatus for federated learning

    CN114091682A

  • Federal spectrum clustering method and device and electronic equipment

    CN116127340A

  • Deep clustering longitudinal federated learning method based on variational auto-encoder

    CN116822576A

  • Personalized federal learning method and system for data heterogeneity and storage medium

    CN116933866A