Highly-efficient and robust federated learning method and system based on super-dimensional calculation

By encoding, aggregating, retraining and binarizing the initial local model, a robust model is generated and globally updated, which solves the problems of insufficient robustness and low efficiency in the transmission process in federated learning, and achieves a more efficient Model transfer and classification accuracy.

CN118536620APending Publication Date: 2024-08-23SUN YAT SEN UNIV
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202410667605.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-05-28
Publication Date
2024-08-23

AI Technical Summary

Technical Problem

Existing federated learning methods based on hyperdimensional computing have problems of insufficient robustness and low communication efficiency during the transmission process. Especially when there is noise interference and data loss in the network, the model transmission accuracy will significantly decrease.

Method used

By performing sample encoding, aggregation, retraining and binarization on the initial local model, a more lightweight and robust model is generated, and the global model is aggregated and updated on the server side. The user updates the local model according to the global model until convergence is achieved. conditions, avoid local optima, and adjust model weights through edge gaps and cross-entropy losses.

Benefits of technology

It improves the robustness and communication efficiency of the model during the transmission process, reduces communication costs, avoids the decrease in accuracy caused by binarization, and ensures improvements in classification efficiency and accuracy.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118536620A
    Figure CN118536620A
Patent Text Reader

Abstract

The invention discloses a communication efficient and robust federated learning method and system based on super-dimensional calculation, and the method comprises the steps: carrying out the sample coding, and obtaining a super-dimensional vector; aggregating the super-dimensional vectors according to classification categories; carrying out retraining on the initial local model based on the super-dimensional vector, and carrying out convergence judgment; binarization is carried out on the local model; performing aggregation operation on the binarized local model to obtain a global model; updating the initial local model based on the global model; and model retraining updating is circularly carried out, and a local model is output. The system comprises a sample coding module, a local model initialization module, a retraining module, a binarization module, a global aggregation module, a local model updating module and a local model output module. By using the method, the robustness of the model in the transmission process can be improved, the communication efficiency can be improved, and meanwhile, the model is ensured to have relatively good precision performance. The method can be widely applied to the technical field of federal learning.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of federated learning technology, and in particular to a method and system for federated learning with efficient and robust communication based on hyperdimensional computing. Background Art

[0002] In recent years, the sensing and computing capabilities of mobile devices have been significantly developed. Traditional cloud-based machine learning methods require data to be concentrated in cloud servers or data centers. However, this approach has a series of problems such as significant latency and inefficient communication. For this reason, mobile edge computing has been proposed to bring intelligent computing closer to the edge where data is generated. However, traditional technologies for mobile edge networks still need to interact with the outside world, such as edge servers sharing user data, which may expose users' personal privacy information, especially in scenarios involving sensitive data. As data privacy and security issues have received increasing attention, federated learning has emerged as an emerging machine learning paradigm. Federated learning aims to train data scattered in different geographical locations, generate global models by aggregating locally trained models on servers, and does not require uploading user data, thus solving the problem of privacy leakage for users in applications. Federated learning makes it possible for all parties to jointly train more comprehensive and better generalized models, so it has attracted widespread attention in academia and industry.

[0003] Most existing technologies are based on machine learning and deep learning methods to train local models. The main limitations are high model transmission costs, unreliable networks, and limited computing resources on edge devices. Most of the well-performing federated learning methods rely on deep neural networks to train local models. Although model compression methods and discarding techniques can be used to reduce communication costs by reducing the size of the model, computationally intensive tasks are challenging for resource-constrained edge devices. In addition, the problem of inefficient model transmission during the communication process of federated learning also needs to be improved. Therefore, hyperdimensional computing has gradually become an excellent solution for solving classification tasks with its relatively higher energy efficiency, faster learning speed, and lighter model size. However, the transmission process of federated learning methods based on hyperdimensional computing training models relies on completely reliable communication conditions, which is almost impossible to guarantee in real application scenarios. If there are disturbance factors in the network, such as noise interference and data loss, and it becomes unreliable, there will be a significant loss of accuracy in transmitting floating-point models during federated communication. Summary of the invention

[0004] In order to solve the above technical problems, the purpose of the present invention is to provide a communication-efficient and robust federated learning method and system based on hyperdimensional computing, which can improve the robustness of the model during transmission and improve communication efficiency, while ensuring that the model has good accuracy performance.

[0005] The first technical solution adopted by the present invention is: a communication efficient and robust federated learning method based on hyperdimensional computing, comprising the following steps:

[0006] Obtain user local sample data based on the task scenario, perform sample encoding, and obtain a hyperdimensional vector;

[0007] Aggregate the hyperdimensional vectors according to the classification categories to obtain the initial local model;

[0008] Retraining the initial local model based on the hyperdimensional vector, and performing convergence judgment on the adjusted local model to obtain a judgment result;

[0009] Binarizing the adjusted local model based on the negative judgment result to obtain a binarized local model;

[0010] The user uploads the binarized local model to the server, and the server aggregates all the received binarized local models to obtain a global model.

[0011] The server sends the global model to all users participating in the training. The users update the initial local model based on the received global model to obtain the initial local model for the next round.

[0012] The model is retrained and updated based on the initial local model of the next round until a positive judgment result is obtained and the local model is output.

[0013] Furthermore, the step of obtaining user local sample data based on the task scenario and performing sample encoding to obtain a hyperdimensional vector specifically includes:

[0014] Obtain user local sample data based on the task scenario, extract features from the samples, and obtain sample feature vectors;

[0015] The sample feature vector is mapped to the hyperdimensional space for transformation to obtain a hyperdimensional vector.

[0016] Furthermore, the step of retraining the initial local model based on the hyperdimensional vector and performing convergence judgment on the adjusted local model to obtain a judgment result specifically includes:

[0017] Set the one-hot encoding of the label to which the hyperdimensional vector belongs to the target distance vector;

[0018] Calculate the cosine distance between each hyperdimensional vector and each class vector in the initial local model to obtain the inference distance vector;

[0019] Calculate the marginal difference between the inference distance vector and the target distance vector;

[0020] Calculate the cross entropy loss between the inference distance vector and the target distance vector;

[0021] Adjusting parameters of the initial local model based on the marginal gap between the inference distance vector and the target distance vector and the cross entropy loss to obtain an adjusted local model;

[0022] A convergence condition is preset, and it is determined whether the adjusted local model satisfies the convergence condition, and a negative judgment result or a positive judgment result is obtained.

[0023] Through this optimization step, an improved retraining mechanism is used to change the weights of training samples through edge gap and cross entropy loss, thereby adjusting the initial local model to avoid the initial local model falling into the local optimum.

[0024] Furthermore, the server sends the global model to all users participating in the training. The users update the initial local model based on the received global model to obtain the initial local model for the next round. This step specifically includes:

[0025] Calculate the local model for the next round based on the global model and the number of local samples;

[0026] Calculate the difference between the local model of the next round and the initial local model;

[0027] Calculate the update factor based on the difference between the local model of the next round and the initial local model;

[0028] The initial local model is updated based on the update factor to obtain the initial local model for the next round.

[0029] Through this optimization step, each user will update the local model according to the initial local model of the previous round and the global model received in the current round, which can effectively solve the problem of decreased accuracy caused by binarization.

[0030] Furthermore, the binary local model is expressed as follows:

[0031]

[0032] in, represents the local model after binarization; th represents the binarization threshold; c j Represents the class vector corresponding to the j-th category; j represents the category number of the class vector; N represents the total number of class vectors; σ represents the sign function.

[0033] Through this preferred step, the floating-point model is converted into a binary model, achieving a lighter and more robust model transmission.

[0034] Furthermore, the global model is expressed as follows:

[0035]

[0036] Among them, C g represents the global model; U represents the number of users; Represents the binarized local model uploaded by the i-th user.

[0037] Furthermore, the adjusted local model is expressed as follows:

[0038] C'←C+γMv

[0039]

[0040] M=T-max(0,P)

[0041] P=cos(v,C)

[0042]

[0043] Where T represents the target distance vector; represents the indicator function; y i represents the label to which the hyperdimensional vector belongs; N represents the total number of label categories; P represents the inference distance vector; v represents the hyperdimensional vector; C represents the initial local model; M represents the marginal gap between the inference distance vector and the target distance vector; γ represents the cross entropy loss between the inference distance vector and the target distance vector; C' represents the adjusted local model; represents the cross entropy loss function.

[0044] Furthermore, the initial local model of the next round is expressed as follows:

[0045]

[0046] λ=max(0,Δ / th i )

[0047]

[0048] in, Represents the class vector of category j in the initial local model of user i in the next round; represents the binary global model received by user i; represents the class vector of category j in the initial local model of user i; λ represents the update factor; Δ represents the difference between the local model of the next round and the initial local model; represents the number of local samples belonging to category j on user i; th i represents the binarization threshold of user i; Represents the class vector of category j in the local model of user i in the next round.

[0049] The second technical solution adopted by the present invention is: a highly efficient and robust federated learning system based on hyperdimensional computing, comprising:

[0050] The sample encoding module obtains the user's local sample data based on the task scenario and performs sample encoding to obtain a hyperdimensional vector;

[0051] A local model initialization module is used to aggregate the hyperdimensional vectors according to the classification categories to obtain an initial local model;

[0052] A retraining module retrains the initial local model based on the hyperdimensional vector, and performs convergence judgment on the adjusted local model to obtain a judgment result;

[0053] A binarization module, binarizing the adjusted local model based on the negative judgment result to obtain a binarized local model;

[0054] Global aggregation module: the user uploads the binarized local model to the server, and the server aggregates all the received binarized local models to obtain the global model;

[0055] In the local model update module, the server sends the global model to all users participating in the training. The users update the initial local model based on the received global model to obtain the initial local model for the next round.

[0056] The local model output module retrains and updates the model based on the initial local model of the next round until a positive judgment result is obtained and the local model is output.

[0057] The beneficial effects of the method and system of the present invention are as follows: the present invention can minimize the communication cost and improve the robustness to network errors by binarizing the floating-point initial local model; at the same time, in order to solve the problem of information loss caused by binarization, the user will update the local model according to the initial local model of the previous round and the global model received in the current round, which can effectively solve the problem of accuracy reduction caused by binarization; and the existing retraining mechanism is improved, the weight of the training sample is changed by the edge gap and the cross entropy loss, and then the initial local model is adjusted to avoid the initial local model falling into the local optimum; compared with the prior art, the present invention can improve the robustness of the model in the transmission process and improve the communication efficiency, while ensuring that the model has good accuracy performance, thereby improving the classification efficiency and classification accuracy. BRIEF DESCRIPTION OF THE DRAWINGS

[0058] Figure 1 is a flowchart of the steps of the communication efficient and robust federated learning method based on hyperdimensional computing of the present invention;

[0059] Figure 2It is a structural block diagram of a communication efficient and robust federated learning system based on hyperdimensional computing of the present invention;

[0060] Figure 3 is a flow chart of the retraining steps of the communication efficient and robust federated learning method based on hyperdimensional computing of the present invention;

[0061] Figure 4 It is a flow chart of the local model update steps of the communication efficient and robust federated learning method based on hyperdimensional computing of the present invention;

[0062] Figure 5 It is a schematic diagram of the robustness effect of the communication efficient and robust federated learning method based on hyperdimensional computing of the present invention;

[0063] Figure 6 It is a comparison chart of training rounds of the communication-efficient and robust federated learning method based on hyperdimensional computing of the present invention. DETAILED DESCRIPTION

[0064] The present invention is further described in detail below in conjunction with the accompanying drawings and specific embodiments. The step numbers in the following embodiments are only provided for the convenience of explanation and description, and the order between the steps is not limited in any way. The execution order of each step in the embodiment can be adaptively adjusted according to the understanding of those skilled in the art.

[0065] Reference Figure 1 The present invention provides a communication efficient and robust federated learning method based on hyperdimensional computing, the method comprising the following steps:

[0066] S1. Obtain user local sample data based on the task scenario, and perform sample encoding to obtain a hyperdimensional vector;

[0067] Specifically, human behavior sample data is obtained according to the human behavior recognition task. The sample data of the specific embodiment of the present invention mainly comes from the UCI-HAR dataset and the MobiAct dataset. Then, the sample is feature extracted to obtain a sample feature vector. Then, the sample feature vector is mapped to a hyperdimensional space for conversion, that is, an original sample feature vector x with a dimension of X is encoded into a hyperdimensional vector v with a dimension of D. The encoding process is as follows:

[0068] v=σ(x×E)

[0069] Where v represents the hyperdimensional vector; x represents the sample feature vector; E∈{-1,1} X×D represents a randomly generated second-order matrix; σ represents a sign function.

[0070] S2, aggregate the hyperdimensional vectors according to the classification categories to obtain the initial local model;

[0071] Specifically, the initial local model of the specific embodiment of the present invention is an initial human behavior recognition model, which is a hyperdimensional model, consisting of a group of class vectors, each class vector represents a category, and in the specific embodiment of the present invention, each class vector represents a behavior action type, such as waving, riding, running, jumping, etc. The initial local model of the specific embodiment of the present invention is obtained by aggregating all hyperdimensional training samples (hyperdimensional vectors) of the same category and summing them together, and contains a total of N categories, and its expression is as follows:

[0072] C={c j , j = 1, ..., N}

[0073] Where C represents the initial local model; c j Represents the class vector corresponding to the j-th category.

[0074] S3, retraining the initial local model based on the hyperdimensional vector, and performing convergence judgment on the adjusted local model to obtain a judgment result;

[0075] S3.1. Set the one-hot encoding of the label to which the hyperdimensional vector belongs to be the target distance vector;

[0076] Specifically, the target distance vector is expressed as follows:

[0077]

[0078] Among them, y i Indicates the label to which the hyperdimensional vector belongs; N indicates the total number of label categories; Represents the indicator function.

[0079] S3.2. Calculate the cosine distance between each hyperdimensional vector and each class vector in the initial local model to obtain an inference distance vector; specifically, the inference distance vector is expressed as follows:

[0080] P=cos(v,C)

[0081] Among them, v represents the hyperdimensional vector; C represents the initial local model.

[0082] S3.3, calculating the marginal difference between the inference distance vector and the target distance vector;

[0083] Specifically, the marginal difference between the inference distance vector and the target distance vector is expressed as follows:

[0084] M=T-max(0,P)

[0085] Where T represents the target distance vector; P represents the reasoning distance vector.

[0086] S3.4, calculate the cross entropy loss between the inference distance vector and the target distance vector;

[0087] Specifically, the cross entropy loss between the inference distance vector and the target distance vector is expressed as follows:

[0088]

[0089] Where T represents the target distance vector; P represents the reasoning distance vector; represents the cross entropy loss function.

[0090] S3.5, adjusting parameters of the initial local model based on the marginal gap between the inference distance vector and the target distance vector and the cross entropy loss to obtain an adjusted local model;

[0091] The adjusted local model is expressed as follows:

[0092] C'←C+γMv

[0093] Where C' represents the adjusted local model; γ represents the cross entropy loss between the inference distance vector and the target distance vector; M represents the marginal gap between the inference distance vector and the target distance vector.

[0094] Since the absolute value of cosine similarity is no more than 1 and no less than 0, the edge gap M is always greater than 0 for the correct category and less than 0 for the wrong category, that is, each hyperdimensional vector participating in the training always makes positive adjustments to the class vector corresponding to the correct category and negative adjustments to the class vector corresponding to the wrong category. Moreover, the greater the gap between the current reasoning distance and the target distance, the greater the corresponding weight, which can speed up the convergence speed.

[0095] S3.6. Preset a convergence condition, and determine whether the adjusted local model meets the convergence condition, and obtain a negative judgment result or a positive judgment result.

[0096] Specifically, the preset convergence condition of the specific embodiment of the present invention is that the training rounds reach 20 rounds. When the adjusted local model training rounds exceed 20 times, a positive judgment result is obtained; when the adjusted local model training rounds are less than 20 times, a negative judgment result is obtained.

[0097] S4, binarizing the adjusted local model based on the negative judgment result to obtain a binarized local model;

[0098] Specifically, the binary local model is expressed as follows:

[0099]

[0100] in, represents the local model after binarization; th represents the binarization threshold; c j Represents the class vector corresponding to the j-th category; j represents the category number of the class vector; N represents the total number of class vectors; σ represents the sign function.

[0101] S5. The user uploads the binarized local model to the server, and the server aggregates all the received binarized local models to obtain a global model.

[0102] Specifically, the local model of each user i after binarization is Upload to the server. After receiving the binarized local models uploaded by all users, the server performs an aggregation operation on them. The expression of this operation is as follows:

[0103]

[0104] Among them, C g represents the global model; U represents the number of users; Represents the binarized local model uploaded by the i-th user.

[0105] S6. The server sends the global model to all users participating in the training. The users update the initial local model based on the received global model to obtain the initial local model for the next round.

[0106] S6.1. Calculate the local model for the next round based on the global model and the number of local samples;

[0107] Specifically, the server will global model C g It is sent to all users participating in the training. After the user receives the global model, since the global model is a binary model, it needs to be restored based on the number of local samples to obtain the local model of the next round. The local model of the next round is expressed as represents the number of local samples belonging to category j on user i, represents the binarized global model received by user i.

[0108] S6.2, calculating the difference between the local model of the next round and the initial local model;

[0109] Specifically, the degree of difference is expressed as follows:

[0110]

[0111] in, Represents the class vector of category j in the local model of user i in the next round; represents the class vector of category j in the initial local model of user i.

[0112] S6.3, calculating an update factor based on the difference between the local model of the next round and the initial local model;

[0113] Specifically, the update factor is expressed as follows:

[0114] λ=max(0,Δ / th i )

[0115] Among them, λ represents the update factor; Δ represents the difference between the local model of the next round and the initial local model; th i represents the binarization threshold of user i.

[0116] S6.4. Update the initial local model based on the update factor to obtain the initial local model for the next round.

[0117] Specifically, the initial local model of the next round is expressed as follows:

[0118]

[0119] in, Represents the class vector of category j in the initial local model of user i in the next round.

[0120] S7. Retrain and update the model based on the initial local model of the next round until a positive judgment result is obtained, and output the local model.

[0121] In order to verify the actual effect of the present invention, comparative training was carried out with the prior art. The method of the present invention is represented by CoR-FHD, and the comparative method includes FedAvg and FedHD; wherein, FedAvg references Mcmahan HB, Moore E, Ramage D, et al. Communication-Efficient Learning of Deep Networks from Decentralized Data[J].2016.DOI:10.48550 / arXiv.1602.05629; FedHD references Zhao Q, Lee K, Liu J, et al. FedHD: federated learning with hyperdimensional computing[C] / / the 28th Annual International Conference on Mobile Computing And Networking.ACM,2022.DOI:10.1145 / 3495243.3558757.

[0122] Reference Figure 5 , Figure 5 (a) Experimental results of the three methods considering network packet loss; Figure 5 (b) is the experimental result of the three methods considering the presence of channel noise. It can be seen that the classification accuracy of the method proposed in the present invention is maintained at a high and stable level in the case of network packet loss and in the presence of channel noise, and it can have good robustness under unstable communication conditions.

[0123] The model sizes of the three methods are shown in Table 1. It can be found that the single-round transmission model size of the method of the present invention is significantly smaller than the single-round transmission model size of the comparative example. The method of the present invention has the advantage of a lighter model size.

[0124] Table 1 Single-round transmission model size comparison

[0125]

[0126] Reference Figure 6 , Figure 6 The diagram is a schematic diagram of the rounds required for the three methods to reach convergence using the UCI-HAR dataset for training. It can be found that the method of the present invention requires fewer rounds to reach convergence, which verifies the superiority of the method in terms of communication efficiency.

[0127] Reference Figure 2 The present invention provides a communication efficient and robust federated learning system based on hyperdimensional computing, comprising:

[0128] The sample encoding module obtains the user's local sample data based on the task scenario and performs sample encoding to obtain a hyperdimensional vector;

[0129] A local model initialization module is used to aggregate the hyperdimensional vectors according to the classification categories to obtain an initial local model;

[0130] A retraining module retrains the initial local model based on the hyperdimensional vector, and performs convergence judgment on the adjusted local model to obtain a judgment result;

[0131] A binarization module, binarizing the adjusted local model based on the negative judgment result to obtain a binarized local model;

[0132] Global aggregation module: the user uploads the binarized local model to the server, and the server aggregates all the received binarized local models to obtain the global model;

[0133] In the local model update module, the server sends the global model to all users participating in the training. The users update the initial local model based on the received global model to obtain the initial local model for the next round.

[0134] The local model output module retrains and updates the model based on the initial local model of the next round until a positive judgment result is obtained and the local model is output.

[0135] The contents of the above method embodiments are all applicable to the present system embodiments. The functions specifically implemented by the present system embodiments are the same as those of the above method embodiments, and the beneficial effects achieved are also the same as those achieved by the above method embodiments.

[0136] The above is a specific description of the preferred implementation of the present invention, but the invention is not limited to the embodiments. Those skilled in the art may make various equivalent modifications or substitutions without violating the spirit of the present invention. These equivalent modifications or substitutions are all included in the scope defined by the claims of this application.

Claims

1. A communication-efficient and robust federated learning method based on hyperdimensional computing, characterized in that: The following steps are involved: Obtain user local sample data based on the task scenario, perform sample encoding, and obtain a hyperdimensional vector; Aggregate the hyperdimensional vectors according to the classification categories to obtain the initial local model; Retraining the initial local model based on the hyperdimensional vector, and performing convergence judgment on the adjusted local model to obtain a judgment result; Binarizing the adjusted local model based on the negative judgment result to obtain a binarized local model; The user uploads the binarized local model to the server, and the server aggregates all the received binarized local models to obtain a global model. The server sends the global model to all users participating in the training. The users update the initial local model based on the received global model to obtain the initial local model for the next round. The model is retrained and updated based on the initial local model of the next round until a positive judgment result is obtained and the local model is output.

2. The communication efficient and robust federated learning method based on hyperdimensional computing according to claim 1, characterized in that: The step of obtaining user local sample data based on the task scenario and performing sample encoding to obtain a hyperdimensional vector specifically includes: Obtain user local sample data based on the task scenario, extract features from the samples, and obtain sample feature vectors; The sample feature vector is mapped to the hyperdimensional space for transformation to obtain a hyperdimensional vector.

3. The communication efficient and robust federated learning method based on hyperdimensional computing according to claim 1, characterized in that: The step of retraining the initial local model based on the hyperdimensional vector and performing convergence judgment on the adjusted local model to obtain a judgment result specifically includes: Set the one-hot encoding of the label to which the hyperdimensional vector belongs to the target distance vector; Calculate the cosine distance between each hyperdimensional vector and each class vector in the initial local model to obtain the inference distance vector; Calculate the marginal difference between the inference distance vector and the target distance vector; Calculate the cross entropy loss between the inference distance vector and the target distance vector; Adjusting parameters of the initial local model based on the marginal gap between the inference distance vector and the target distance vector and the cross entropy loss to obtain an adjusted local model; A convergence condition is preset, and it is determined whether the adjusted local model satisfies the convergence condition, and a negative judgment result or a positive judgment result is obtained.

4. The communication efficient and robust federated learning method based on hyperdimensional computing according to claim 1, characterized in that: The server sends the global model to all users participating in the training, and the users update the initial local model based on the received global model to obtain the initial local model for the next round. This step specifically includes: Calculate the local model for the next round based on the global model and the number of local samples; Calculate the difference between the local model of the next round and the initial local model; Calculate the update factor based on the difference between the local model of the next round and the initial local model; The initial local model is updated based on the update factor to obtain the initial local model for the next round.

5. The communication efficient and robust federated learning method based on hyperdimensional computing according to claim 1, characterized in that: The binary local model is expressed as follows: in, represents the local model after binarization; th represents the binarization threshold; c j Represents the class vector corresponding to the j-th category; j represents the category number of the class vector; N represents the total number of class vectors; σ represents the sign function.

6. The communication efficient and robust federated learning method based on hyperdimensional computing according to claim 1, characterized in that: The global model is expressed as follows: Among them, C g represents the global model; U represents the number of users; Represents the binarized local model uploaded by the i-th user.

7. The communication efficient and robust federated learning method based on hyperdimensional computing according to claim 3, characterized in that: The adjusted local model is expressed as follows: C'←C+γMv M=T-max(0,P) P=cos(v,C) Where T represents the target distance vector; represents the indicator function; y i represents the label to which the hyperdimensional vector belongs; N represents the total number of label categories; P represents the inference distance vector; v represents the hyperdimensional vector; C represents the initial local model; M represents the marginal gap between the inference distance vector and the target distance vector; γ represents the cross entropy loss between the inference distance vector and the target distance vector; C' represents the adjusted local model; represents the cross entropy loss function.

8. The communication efficient and robust federated learning method based on hyperdimensional computing according to claim 4, characterized in that: The initial local model of the next round is expressed as follows: λ=max(0,Δ / th i ) in, Represents the class vector of category j in the initial local model of user i in the next round; represents the binary global model received by user i; represents the class vector of category j in the initial local model of user i; λ represents the update factor; Δ represents the difference between the local model of the next round and the initial local model; represents the number of local samples belonging to category j on user i; th i represents the binarization threshold of user i; Represents the class vector of category j in the local model of user i in the next round.

9. A communication-efficient and robust federated learning system based on hyperdimensional computing, characterized in that: include: The sample encoding module obtains the user's local sample data based on the task scenario and performs sample encoding to obtain a hyperdimensional vector; A local model initialization module is used to aggregate the hyperdimensional vectors according to the classification categories to obtain an initial local model; A retraining module retrains the initial local model based on the hyperdimensional vector, and performs convergence judgment on the adjusted local model to obtain a judgment result; A binarization module, binarizing the adjusted local model based on the negative judgment result to obtain a binarized local model; Global aggregation module: the user uploads the binarized local model to the server, and the server aggregates all the received binarized local models to obtain the global model; In the local model update module, the server sends the global model to all users participating in the training. The users update the initial local model based on the received global model to obtain the initial local model for the next round. The local model output module retrains and updates the model based on the initial local model of the next round until a positive judgment result is obtained and the local model is output.

Citation Information

Patent Citations

  • Federal learning-based neural network collaborative filtering recommendation method

    CN114510646A

  • Personalized federal learning method based on adaptive local aggregation

    CN115481755A

  • Communication efficient federated learning method based on model parameter differentiation discarding

    CN116468129A

  • Wood surface defect self-learning method and device based on cloud-edge collaboration

    CN117350962A