Privacy-enhanced adaptive clustering federated learning method and system for heterogeneous resources

By adopting adaptive clustering strategies and soft clustering methods in federated learning environments, combining homomorphic encryption and bilinear aggregation signatures, the problem caused by resource heterogeneity in heterogeneous resource environments is solved, model performance is improved and user privacy is protected.

CN119692437AActive Publication Date: 2025-03-25QUAN CHENG LABORATORY
View PDF 10 Cites 0 Cited by

Patent Information

Application Number
CN202510192098.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-02-21
Publication Date
2025-03-25
Estimated Expiration
2045-02-21

AI Technical Summary

Technical Problem

In the federated learning environment of heterogeneous resources, the lagging effects and model degradation caused by resource heterogeneity, as well as the leak of user similarity during clustering.

Method used

Adaptive clustering strategy is adopted to cluster heterogeneous devices through different clustering standards to separate training efficiency and model performance. In the local training stage, clustering is based on the computing power of the device, and training efficiency is optimized; soft clustering based on gradient vector similarity is used in the model aggregation stage, allowing user models to aggregate into multiple clustering models, and using these models to update the local model. At the same time, homomorphic encryption and bilinear aggregation signatures are integrated to ensure data confidentiality and integrity.

Benefits of technology

It effectively alleviates the backward effects and model degradation caused by resource heterogeneity, improves model performance, and protects user privacy during the clustering process to prevent similarity leakage.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119692437A_ABST
    Figure CN119692437A_ABST
Patent Text Reader

Abstract

The invention relates to a privacy-enhanced adaptive clustering federated learning method and system for heterogeneous resources, and belongs to the technical field of federated learning. Comprising the following steps: (1) clustering participants based on uplink time delay; clustering the heterogeneous equipment by using different clustering standards; (2) carrying out local training in a computing power similar cluster; users are clustered according to the computing power of the equipment, and the training efficiency is optimized; (3) aggregating a security cluster model based on spectrum embedding; soft clustering based on gradient vector similarity is adopted, user models are allowed to be aggregated into multiple clustering models, and the multiple clustering models are used for updating the local model. According to the method, the privacy and confidentiality are ensured by shuffling the gradient vectors of the users in the clustering process. In addition, the method employs homomorphic encryption and bilinear aggregation signature to verify user identity and protect gradient sharing.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to a privacy-enhanced adaptive clustering federated learning method and system for heterogeneous resources, and belongs to the technical field of federated learning. Background Art

[0002] Thanks to the empowerment of big data, deep learning research has made significant progress. However, in the real world, data is often distributed among different entities (such as smart devices or organizations). Due to privacy issues and data protection regulations, it is difficult for participants to aggregate scattered data for model training. Federated Learning (FL) is an emerging machine learning paradigm that can train models on multiple devices without sharing original data. Federated Learning has been applied to multiple industries, including medical image analysis and autonomous driving.

[0003] In federated learning research, resource heterogeneity is an inevitable problem. First, the clients participating in federated learning are usually highly heterogeneous in terms of hardware, which leads to relative variations in computing speed between clients. Assuming that each client runs Round local update stochastic gradient descent (SGD) with a batch size of Therefore, for The number of local iterations for a client with local samples is , which may vary greatly between clients. The relative variation in client computation speed also exacerbates the heterogeneity of the number of local SGD iterations, especially for synchronous federated learning, which often leads to a lag effect (especially on large-scale heterogeneous devices). Asynchronous federated learning solves this problem, but more frequent communication between relatively more powerful devices and servers may cause server crashes. Another unavoidable and practical problem is data heterogeneity. In actual scenarios, the data of different participants is likely to be non-independent and identically distributed (Non-IID) or unbalanced, which greatly affects the training accuracy of the final model. Current studies have shown that adding proximal terms to the model can effectively reduce the model convergence offset caused by heterogeneous data training. However, imposing constraints on local models will lead to slower model convergence and insufficient utilization of local data. In particular, when applied to areas where there is no obvious difference in distribution, privacy models tend to show significant performance degradation.

[0004] To solve the above problems, researchers adopted a clustering-based solution based on FL. Clustering algorithms help group participants according to their characteristics or data distribution, ensuring that clients within a cluster exhibit similar resource attributes. However, clustering-based FL also has some problems:

[0005] (1) Clustering clients based on a single criterion. For example, when the data is not independent and identically distributed, clustering clients based solely on computing power may improve efficiency but fail to optimize model quality.

[0006] (2) Similarities between clients are leaked to the service provider, which can be further used to infer the privacy of other users.

[0007] (3) The number of clusters as a hyperparameter will affect model performance, and static configuration cannot adapt to changes in resources during training. Summary of the invention

[0008] In view of the shortcomings of the prior art, the present invention proposes a privacy-enhanced adaptive clustering federated learning method for heterogeneous resources, aiming to solve the technical problems of lagging effect and model degradation caused by resource heterogeneity in clustering federated learning and leakage of user similarity during the clustering process. The method of the present invention adopts an adaptive clustering strategy to cluster heterogeneous devices by applying different clustering criteria, separating training efficiency from model performance. Specifically, in the local training stage, users are clustered according to the computing power of the device to optimize the training efficiency. In the model aggregation stage, soft clustering based on gradient vector similarity is adopted to allow user models to be aggregated into multiple clustering models, and these multiple clustering models are used to update the local model. For privacy issues, the method of the present invention integrates homomorphic encryption and bilinear aggregate signatures to ensure the confidentiality and integrity of data.

[0009] In the present invention, the local training data stored on the user device are all non-independent and identically distributed, and there are differences in network environment and computing power between different devices. The present invention uses uplink time to quantify the difference, and the uplink time refers to the duration of the device from local training to parameter uploading. The core idea is that the impact of clustering based on a single standard on training efficiency and model performance is coupled. The sensitivity of training efficiency and model performance to different stages is different. Therefore, the effect can be decoupled by adopting different clustering standards at different stages. In order to decouple the effects discussed above, different characteristics of heterogeneous resources are integrated at each stage of FL. Before local training, the present invention clusters participants based on uplink time to minimize idle waiting time. In order to improve the overall model performance, the present invention adopts a spectral embedding method to allow user models to participate in model aggregation of multiple clusters through adaptive affinity budgets. In addition, the present invention disrupts the gradients submitted to the computing server to enhance privacy and prevent CSP from identifying the similarity of customers.

[0010] The technical solution of the present invention is: Privacy-enhanced adaptive clustering federated learning method for heterogeneous resources, including: (1) Clustering of participants based on uplink latency; clustering heterogeneous devices using different clustering criteria; (2) Local training within clusters with similar computing power: cluster users according to their device computing power to optimize training efficiency; (3) Secure cluster model aggregation based on spectral embedding: soft clustering based on gradient vector similarity is adopted to allow user models to be aggregated into multiple cluster models, and multiple cluster models are used to update the local model.

[0011] Preferably, according to the present invention, the clustering of participants based on uplink delay includes: The key generation center KGC selects security parameters , using the key generation function Generate asymmetric key pairs for the cloud service provider CSP and all users in the Paillier cryptosystem respectively and ; All users share a pair of keys ; KGC broadcast bilinear aggregate signature parameters and curve hash functions , where G1 and G2 are two prime orders on any elliptic curve. The added cyclic group of It is the elemental level The multiplicative cyclic group of Group The generator of are two points on the curve, ,and is a bilinear map; KGC uses a key generation function Generate a signing key pair for the CSP , KGC generates a signature key pair for the service server BS , KGC generates a signature key pair for each user in , is the number of participants in this round of training; BS sends initialization parameters to each participant and unique identifier , To initialize the gradient, Indicates the identity of each participant.

[0012] Preferably, according to the present invention, local training within a cluster with similar computing power includes: At the beginning of each round of training, the BS receives the uplink latency from the devices participating in the round, including the participants Time to complete local training and the communication delay with the BS ; BS first uses the K-means clustering algorithm to divide the devices into Classes: ,in, It is the class with the shortest latency. This is the class with the longest delay; every time interval , the server aggregates the local models received from all devices to complete a round of training; Select a subset of the local dataset to train the local model and get the local gradient as follows: ▽ ; in, is the local loss function, Indicates the number of rounds, represents the local learning rate; represents the model parameters uploaded by user i in round r, Similarly, ▽ is the Laplace operator; Encode the encrypted gradient vector as an integer as follows: ; in, Indicates the encoding accuracy, Indicates the encoding length; Public key encryption using CSP , as shown below: ; in, Indicates the party using the public key of the CSP for encryption Uploaded gradient refers to the encryption function in Plliar, Generate data tuples ,in, is the timestamp; calculate Digital signature , and Send to BS.

[0013] Preferably, according to the present invention, the secure cluster model aggregation based on spectrum embedding includes: BS receives encrypted gradient and the corresponding signature After that, verification is performed, and the verification equation is: ; if Failed to pass verification, The uploaded data will be rejected; if Can pass verification, BS randomly selects the blinding factor , get the ciphertext set of blinded gradients , as shown below: ; in, Represents the blinding factor encrypted using the public key of the CSP The ciphertext, then BS selects a permutation function : ; Will gather Disrupt, get ,in, , Indicates the current computational domain; BS sets the perturbed gradient vector and the corresponding signature Send to CSP; CSP decrypts the blurred gradient vector with a valid signature: ; in, is the private key of CSP, is the decryption function, represents a blurred gradient vector with a valid signature; CSP calculates the gradient vector The similarity matrix , as shown below: in, is the Gaussian radial basis function, Respectively represent the participants The fuzzy gradient vector with a valid signature is the scale parameter that determines the width of the RBF; The similarity is quantized by a Gaussian radial basis function between the perturbed gradients as follows: ; in, Respectively represent the participants The similarity of is an exponential function; CSP performs spectral clustering on the gradient vectors to obtain cluster labels, indicating the clusters they belong to; Then, the cluster label matrix is ​​calculated using the spectral embedding method ; Distance budget for The average of the distances to all clusters; if ,but Assigned to cluster , ; CSP clusters the label matrix and Send to BS; BS uses the following formula to calculate the set Unblinding: ; cluster The aggregation formula inside is: ; in, Is the current round Middle Cluster The cluster model, It is a cluster The number of participating devices; For clusters Members of The real subscript of ; BS will Distribute to clients , ; user Verify the received clustering gradient vector and decrypt the verified clustering gradient vector: ; Update the local model using the average of the verified parameters as follows: .

[0014] Preferably, according to the present invention, CSP performs spectral clustering on the gradient vector to obtain cluster labels; comprising: First, construct the degree matrix ; Then, calculate the Laplacian matrix ,right Normalized to get: ; calculate The characteristic matrix : ; in, is the number of clusters; Finally, Use K-means algorithm to cluster the sample set and get the cluster label set .

[0015] According to the preferred embodiment of the present invention, the clustering label matrix is ​​calculated by using the spectral embedding method ;include: Calculate the similarity matrix The characteristic matrix :

[0016] and standardize; For each cluster , calculate the cluster center ,in, ; Calculate the cluster label matrix , cluster label matrix The matrix elements are , express With cluster center distance.

[0017] A computer device comprises a memory and a processor, wherein the memory stores a computer program, and the processor implements the steps of a privacy-enhanced adaptive clustering federated learning method for heterogeneous resources when executing the computer program.

[0018] A computer-readable storage medium stores a computer program, which, when executed by a processor, implements the steps of a privacy-enhanced adaptive clustering federated learning method for heterogeneous resources.

[0019] Privacy-enhanced adaptive clustering federated learning system for heterogeneous resources, including: The participant clustering module is configured to: cluster participants based on uplink latency; cluster heterogeneous devices using different clustering criteria; The local training module is configured to: local training within clusters with similar computing power; clustering users according to device computing power to optimize training efficiency; The security cluster model aggregation module is configured as follows: security cluster model aggregation based on spectral embedding; using soft clustering based on gradient vector similarity to allow user models to be aggregated into multiple cluster models, and using multiple cluster models to update the local model.

[0020] The beneficial effects of the present invention are: 1. The method of the present invention clusters devices according to computing power to alleviate resource heterogeneity before local training. This solution implements spectral embedding technology in the model aggregation stage to enhance model performance.

[0021] 2. The present invention ensures privacy and confidentiality by shuffling the user's gradient vectors during the clustering process. In addition, the method uses homomorphic encryption and bilinear aggregate signatures to verify user identities and protect gradient sharing. BRIEF DESCRIPTION OF THE DRAWINGS

[0022] Figure 1 It is a flow chart of the privacy-enhanced adaptive clustering federated learning method for heterogeneous resources of the present invention; Figure 2 This is a comparison chart of the model performance of the method of the present invention and other algorithms under different data distributions on the MNIST dataset; Figure 3 A comparison chart of the model performance of the method of the present invention and other algorithms under different data distributions on the Fashion-MNIST dataset; Figure 4 This is a comparison chart of the model performance of the method of the present invention and other algorithms under different data distributions on the CIFAR-10 dataset; Figure 5 This is a comparison chart of the model performance of the method of the present invention and other algorithms under different data distributions on the CIFAR-100 dataset. DETAILED DESCRIPTION

[0023] The present invention will be further defined below in conjunction with the accompanying drawings and embodiments, but is not limited thereto.

[0024] Example 1 Privacy-enhanced adaptive clustering federated learning method for heterogeneous resources, including: (1) Clustering of participants based on uplink latency; clustering heterogeneous devices using different clustering criteria; (2) Local training within clusters with similar computing power: cluster users according to their device computing power to optimize training efficiency; (3) Secure cluster model aggregation based on spectral embedding: soft clustering based on gradient vector similarity is adopted to allow user models to be aggregated into multiple cluster models, and multiple cluster models are used to update the local model.

[0025] Example 2 The privacy-enhanced adaptive clustering federated learning method for heterogeneous resources described in Example 1 is different in that: like Figure 1 As shown, the participants are clustered based on the uplink delay; including: The key generation center KGC selects security parameters , using the key generation function Generate asymmetric key pairs for the cloud service provider CSP and all users in the Paillier cryptosystem respectively and ; All users share a pair of keys ; KGC broadcast bilinear aggregate signature parameters and curve hash functions , where G1 and G2 are two prime orders on any elliptic curve. The added cyclic group of It is the elemental level The multiplicative cyclic group of Group The generator of are two points on the curve, ,and is a bilinear map; KGC uses a key generation function Generate a signing key pair for the CSP , KGC generates a signature key pair for the service server BS , KGC generates a signature key pair for each user in , is the number of participants in this round of training; BS sends initialization parameters to each participant and unique identifier , To initialize the gradient, Indicates the identity of each participant.

[0026] The key generation center KGC is an independent trusted institution responsible for the generation, distribution and management of key pairs. The cloud service provider CSP uses a clustering method to organize users according to the private similarity of the gradients uploaded by the BS, thereby realizing the aggregation of the clustering model. Users represent edge devices with limited computing power and non-independent and identically distributed data, and interact specifically with the service provider to upload local gradients and receive aggregated results. The business server BS clusters devices according to computing power, confuses and shuffles the encrypted gradients, and propagates the aggregated results to users.

[0027] Local training within a cluster with similar computing power; including: At the beginning of each round of training, the BS receives the uplink latency from the devices participating in the round, including the participants Time to complete local training and the communication delay with the BS ; BS first uses the K-means clustering algorithm to divide the devices into Classes: ,in, It is the class with the shortest latency. This is the class with the longest delay; every time interval , the server aggregates the local models received from all devices to complete a round of training; Select a subset of the local dataset to train the local model and get the local gradient as follows: ▽ ; in, is the local loss function, Indicates the number of rounds, represents the local learning rate; represents the model parameters uploaded by user i in round r, Similarly, ▽ is the Laplace operator; Encode the encrypted gradient vector as an integer as follows: ; in, Indicates the encoding accuracy, Indicates the encoding length; Public key encryption using CSP , as shown below: ; in, Indicates the party using the public key of the CSP for encryption Uploaded gradient refers to the encryption function in Plliar, Generate data tuples ,in, is the timestamp; calculate Digital signature , and Send to BS.

[0028] Security cluster model aggregation based on spectral embedding; including: The privacy-enhanced spectral clustering based on similarity is implemented as Algorithm 1, as shown in Table 1.

[0029] Table 1 Algorithm 1;

[0030] BS receives encrypted gradient and the corresponding signature After that, verification is performed, and the verification equation is: ; if Failed to pass verification, The uploaded data will be rejected; if Can pass verification, BS randomly selects the blinding factor , get the ciphertext set of blinded gradients , as shown below: ; in, Represents the blinding factor encrypted using the public key of the CSP The ciphertext, then BS selects a permutation function : ; Will gather Disrupt, get ,in, , Indicates the current computational domain; BS sets the perturbed gradient vector and the corresponding signature Send to CSP; CSP decrypts the blurred gradient vector with a valid signature: ; in, is the private key of CSP, is the decryption function, represents a blurred gradient vector with a valid signature; CSP calculates the gradient vector The similarity matrix , as shown below: in, is the Gaussian radial basis function, Respectively represent the participants The fuzzy gradient vector with a valid signature is the scale parameter that determines the width of the RBF; The similarity is quantified by a Gaussian radial basis function (RBF) between the perturbed gradients as follows: ; in, Respectively represent the participants The similarity of is an exponential function; CSP performs spectral clustering on the gradient vectors to obtain cluster labels, indicating the cluster they belong to (Lines 2-8 in Algorithm 1); Then, the cluster label matrix is ​​calculated using the spectral embedding method ; In order for the gradient vector to participate in the model aggregation of multiple clusters, Distance budget for The average of the distances to all clusters; if ,but Assigned to cluster , ; CSP clusters the label matrix and Send to BS; BS uses the following formula to calculate the set Unblinding: ; In this phase, the same weight is assumed according to the number of samples of each device to avoid weight errors. BS aggregates the local models within the perturbed clusters in the similarity-based privacy-enhanced spectral clustering algorithm 2. Cluster The aggregation formula inside is:

[0031] ; in, Is the current round Middle Cluster The cluster model, It is a cluster The number of participating devices; In order to correctly distribute the aggregate gradients, BS needs to recover the subscripts of the cluster labels. Members of The real subscript of ; BS will Distribute to clients , ;

[0032] user Verify the received clustering gradient vector and decrypt the verified clustering gradient vector: ; Update the local model using the average of the verified parameters as follows: .

[0033] CSP performs spectral clustering on the gradient vectors to obtain cluster labels; including: First, construct the degree matrix ; Then, calculate the Laplacian matrix ,right Normalized to get: ; calculate The characteristic matrix : ; in, is the number of clusters; Finally, Use K-means algorithm to cluster the sample set and get the cluster label set .

[0034] Calculate the cluster label matrix using spectral embedding method ;include: Calculate the similarity matrix The characteristic matrix : ; and standardize; For each cluster , calculate the cluster center ,in, ; Calculate the cluster label matrix , cluster label matrix The matrix elements are , express With cluster center distance.

[0035] The scheme of the present invention is evaluated using the datasets MNIST, Fashion-MNIST, CIFAR-10 and CIFAR100. MNIST, CIFAR10 and Fashion-MNIST all contain 10 categories for classification. CIFAR-100 is expanded to 100 categories based on CIFAR-10, and each category has 600 color images. Dirichlet distribution (denoted as ) to simulate the non-independent and identically distributed situation between the client local data sets, and the smaller Indicates greater heterogeneity.

[0036] To evaluate the effect of the number of clusters on model accuracy and convergence speed, experiments were conducted on the MNIST and CIFAR10 datasets. Figure 2 This is a comparison chart of the model performance of the method of the present invention and other algorithms under different data distributions on the MNIST dataset; Figure 3 A comparison chart of the model performance of the method of the present invention and other algorithms under different data distributions on the Fashion-MNIST dataset; Figure 4 This is a comparison chart of the model performance of the method of the present invention and other algorithms under different data distributions on the CIFAR-10 dataset; Figure 5This is a comparison chart of the model performance of the method of the present invention and other algorithms under different data distributions on the CIFAR-100 dataset. Under the setting of , the effect of changing the number of clusters on the model accuracy. It can be seen that when When constant, the final model accuracy increases as The increase first increases and then decreases. The highest accuracy is achieved when the number of clusters is too small. If the number of clusters is too small, the heterogeneity is reduced. The values ​​within each cluster remain high, resulting in a decrease in model accuracy. Conversely, if the number of clusters is too large, the number of devices within each cluster is insufficient. This reduces the amount of device-specific data available for parameter updates, affecting the final training accuracy. and When is varied simultaneously, the final model accuracy shows a similar trend. The increase in will result in fewer gradient updates in a single cycle, thus reducing the In addition, the increase It can improve the communication efficiency of devices and thus improve the model accuracy. When fixed, The change of does not significantly affect the accuracy of the final model, which is consistent with the theoretical analysis.

[0037] A multi-layer perceptron architecture with 2 hidden layers is used for MNIST and Fashion-MNIST. The number of neurons in the layers is 200 and 100, respectively. For CIFAR-10 and CIFAR-100, a convolutional neural network model consisting of two 5 × 5 convolutional layers, each followed by two 2 × 2 pooling layers, a fully connected layer of 512 units activated by ReLu, and a softmax layer is used.

[0038] To simulate the heterogeneity of devices among users, we first set the maximum number of local training rounds. For each user, from Random selection within range A number is used to simulate the client device uplink time, recorded as Then, the number of local training rounds for each user is calculated as In the present invention, the setting , Distributed in The learning rate for different data sets is different. The learning rate on MNIST is , and the learning rate η on CIFAR is 0.001. The simulation has 100 users participating in the federated learning training.

[0039] Example 3 A computer device includes a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, the steps of the privacy-enhanced adaptive clustering federated learning method for heterogeneous resources described in Example 1 or 2 are implemented.

[0040] Example 4 A computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the steps of the privacy-enhanced adaptive clustering federated learning method for heterogeneous resources described in Example 1 or 2.

[0041] Example 5 Privacy-enhanced adaptive clustering federated learning system for heterogeneous resources, including: The participant clustering module is configured to: cluster participants based on uplink latency; cluster heterogeneous devices using different clustering criteria; The local training module is configured to: local training within clusters with similar computing power; clustering users according to device computing power to optimize training efficiency; The security cluster model aggregation module is configured as follows: security cluster model aggregation based on spectral embedding; using soft clustering based on gradient vector similarity to allow user models to be aggregated into multiple cluster models, and using multiple cluster models to update the local model.

Claims

1. A privacy-enhanced adaptive clustering federated learning method for heterogeneous resources, characterized in that: include: (1) Clustering of participants based on uplink latency; clustering heterogeneous devices using different clustering criteria; (2) Local training within clusters with similar computing power; Cluster users according to device computing power to optimize training efficiency; (3) Security cluster model aggregation based on spectral embedding; Soft clustering based on gradient vector similarity is adopted to allow user models to be aggregated into multiple cluster models, and multiple cluster models are used to update the local model.

2. The privacy-enhanced adaptive clustering federated learning method for heterogeneous resources according to claim 1, characterized in that: Participant clustering based on uplink latency; including: The key generation center KGC selects security parameters , using the key generation function Generate asymmetric key pairs for the cloud service provider CSP and all users in the Paillier cryptosystem respectively and ; All users share a pair of keys ; KGC broadcast bilinear aggregate signature parameters and curve hash functions , where G1 and G2 are two prime orders on any elliptic curve. The added cyclic group of It is the elemental level The multiplicative cyclic group of Group The generator of are two points on the curve, ,and is a bilinear map; KGC uses a key generation function Generate a signing key pair for the CSP , KGC generates a signature key pair for the service server BS , KGC generates a signature key pair for each user in , is the number of participants in this round of training; BS sends initialization parameters to each participant and unique identifier , To initialize the gradient, Indicates the identity of each participant.

3. The privacy-enhanced adaptive clustering federated learning method for heterogeneous resources according to claim 1, characterized in that: Local training within a cluster with similar computing power; including: At the beginning of each round of training, the BS receives the uplink latency from the devices participating in the round, including the participants Time to complete local training and the communication delay with the BS ; BS first uses the K-means clustering algorithm to divide the devices into Classes: ,in, It is the class with the shortest latency. This is the class with the longest delay; every time interval , the server aggregates the local models received from all devices to complete a round of training; Select a subset of the local dataset to train the local model and get the local gradient as follows: ▽ ; in, is the local loss function, Indicates the number of rounds, represents the local learning rate; represents the model parameters uploaded by user i in round r, Similarly, ▽ is the Laplace operator; Encode the encrypted gradient vector as an integer as follows: ; in, Indicates the encoding accuracy, Indicates the encoding length; Using CSP's public key encryption , as shown below: ; in, Indicates the party using the public key of the CSP for encryption Uploaded gradient refers to the encryption function in Plliar, Generate data tuples ,in, is the timestamp; calculate Digital signature , and Send to BS.

4. The privacy-enhanced adaptive clustering federated learning method for heterogeneous resources according to claim 1, characterized in that: Security cluster model aggregation based on spectral embedding; including: BS receives encrypted gradient and the corresponding signature After that, verification is performed, and the verification equation is: ; if Failed to pass verification, The uploaded data will be rejected; if Can pass verification, BS randomly selects blinding factor , get the ciphertext set of blinded gradients , as shown below: ; in, Represents the blinding factor encrypted using the public key of the CSP The ciphertext, then BS selects a permutation function : ; Will gather Disrupt, get ,in, , Indicates the current computational domain; BS sets the perturbed gradient vector and the corresponding signature Send to CSP; CSP decrypts the blurred gradient vector with a valid signature: ; in, is the private key of CSP, is the decryption function, represents a blurred gradient vector with a valid signature; CSP calculates the gradient vector The similarity matrix , as shown below: in, is the Gaussian radial basis function, Respectively represent the participants The fuzzy gradient vector with a valid signature is the scale parameter that determines the width of the RBF; The similarity is quantized by a Gaussian radial basis function between the perturbed gradients as follows: ; in, Respectively represent the participants The similarity of is an exponential function; CSP performs spectral clustering on the gradient vectors to obtain cluster labels, indicating the clusters they belong to; Then, the cluster label matrix is ​​calculated using the spectral embedding method ; Distance budget for The average of the distances to all clusters; if ,but Assigned to cluster , ; CSP clusters the label matrix and Send to BS; BS uses the following formula to calculate the set Unblinding: ; cluster The aggregation formula inside is: ; in, Is the current round Middle Cluster The cluster model, It is a cluster The number of participating devices; For clusters Members of The real subscript of ; BS will Distribute to clients , ; user Verify the received clustering gradient vector and decrypt the verified clustering gradient vector: ; Update the local model using the average of the verified parameters as follows: 。 5. The privacy-enhanced adaptive clustering federated learning method for heterogeneous resources according to claim 1, characterized in that: CSP performs spectral clustering on the gradient vectors to obtain cluster labels; including: First, construct the degree matrix ; Then, calculate the Laplacian matrix ,right Normalized to get: ; calculate The characteristic matrix : ; in, is the number of clusters; Finally, Use K-means algorithm to cluster the sample set and get the cluster label set .

6. The privacy-enhanced adaptive clustering federated learning method for heterogeneous resources according to claim 5, characterized in that: Calculate the cluster label matrix using spectral embedding method ;include: Calculate the similarity matrix The characteristic matrix : ; and standardize; For each cluster , calculate the cluster center ,in, ; Calculate the cluster label matrix , cluster label matrix The matrix elements are , express With cluster center distance.

7. Privacy-enhanced adaptive clustering federated learning system for heterogeneous resources, characterized by: include: The participant clustering module is configured to: cluster participants based on uplink latency; cluster heterogeneous devices using different clustering criteria; The local training module is configured as follows: local training within clusters with similar computing power; Cluster users according to device computing power to optimize training efficiency; The security cluster model aggregation module is configured to: aggregate security cluster models based on spectrum embedding; Soft clustering based on gradient vector similarity is adopted to allow user models to be aggregated into multiple cluster models, and multiple cluster models are used to update the local model.

Citation Information

Patent Citations

  • Clustering federal multi-task learning method and device for Internet of Things

    CN115293358A

  • Personalized federal learning method, device and equipment based on client clustering

    CN116258164A

  • Robust federated learning abnormal client detection method based on spectral clustering

    CN116862023A

  • Federal learning method and device based on reasoning similarity and soft clustering

    CN117422151A

  • Data-driven cognitive computing-oriented privacy protection federated learning method and system

    CN117521785A