Federal learning privacy protection system and method based on blockchain without committee
Through the encryption mechanism of blockchain smart contracts and derived communication keys, committee-free federated learning is realized, solving the problems of high cost and insufficient privacy protection caused by semi-trusted centralized coordinators, and improving the convergence of the model. and accuracy, ensuring the privacy of local data.
Patent Information
- Application Number
- CN202410561260.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-08
- Publication Date
- 2024-08-30
AI Technical Summary
In existing blockchain federated learning, there are problems such as high additional communication and computing costs caused by a semi-trusted centralized coordinator, interference in model training, and insufficient privacy protection.
Adopting a committee-free federated learning privacy protection system based on blockchain, tasks are issued through blockchain smart contracts. Participants use derived communication keys to encrypt local model parameters and upload them to the chain. The task issuer uses quality strategies to aggregate model parameters, avoiding the need for multiple parties to Computation and secret sharing methods simplify the federated learning architecture.
It reduces communication and computing costs, improves model convergence and accuracy, effectively protects local data privacy, simplifies the organizational structure of federated learning, and avoids the risk of data visibility and model parameters being reversely inferred.
Smart Images

Figure CN118568783A
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of blockchain, and in particular to a blockchain-based committee-free federated learning privacy protection system and method. Background Art
[0002] With the popularization and rapid development of blockchain technology, the application scenarios of blockchain technology are increasing. At the same time, due to the diversification of application requirements, improving and enhancing blockchain to meet the diverse needs of scenarios has become the main driving force for research and invention. Due to the decentralized, tamper-proof characteristics, asymmetric encryption and consensus mechanism of blockchain, blockchain has become an important source of privacy protection and encrypted communication mechanisms that can be developed and utilized.
[0003] With new advances in artificial intelligence, the emergence of new technologies such as neural networks, reinforcement learning, big data training, and large models, machine learning has been widely used. In the model training stage of medical image recognition, the AI program will give a disease label, such as tuberculosis or pneumonia, based on millions of X-ray images. However, these images may be distributed in several hospitals and will not be gathered together during the training phase, and institutions are reluctant to share data sets. In order to solve this problem called "data islands" and to protect the privacy of local data, a new distributed machine learning framework, federated learning, was created. The training process of the classic federated learning framework includes several steps:
[0004] (1) The coordinator establishes a basic model and informs all participants of the basic structure and parameters of the model;
[0005] (2) Each participant uses local data to train the model and returns the results to the coordinator;
[0006] (3) The coordinator aggregates the models of all participants and builds a more accurate global model to improve the precision or accuracy of the model. Federated learning allows participants to jointly model without sharing data, which can technically solve the data island problem and achieve AI collaboration.
[0007] Federated learning is an important means of distributed learning. Through the intervention of a semi-trusted coordinator, the committee, the communication and negotiation process between each participant and the task publisher is effectively organized, so that each participant can use local data to train a local model at the edge, ensuring the privacy of local data of each participant. At the same time, the committee assists in model aggregation to obtain the final global convergence model. However, there may be malicious participants among the participants, trying to obtain global model parameters by sending low-quality data, or to achieve the same goal by sending cheating data to save local computing resources, or to obtain local model parameters trained by other participants, or to reversely infer the distribution composition of local data of other participants. Therefore, privacy protection in federated learning not only needs to protect the originality of local data, but also needs to protect the parameters and gradient values obtained by local data training, and protect the obtained global model parameters from being obtained without work. At present, many methods for protecting data privacy have been proposed.
[0008] The method of protecting data privacy in federated learning is mainly based on the privacy protection method of blockchain. According to different encryption methods, it is mainly divided into methods based on differential privacy (DP), homomorphic encryption (HE), multi-party computing (MPC) and secret sharing. The method based on multi-party computing protects the interactive data between the participants, and the original data is not added with noise, which has high security, but this method will generate a lot of additional communication and computing costs. The method based on homomorphic encryption protects the interactive data between the participants and the coordinator, thereby providing security for the semi-trusted centralized coordinator, and the amount of calculation is reduced compared with the multi-party computing method. The method based on differential privacy mainly protects privacy by adding noise to the original data or model parameters. The data set that meets differential privacy can resist any analysis of private data. Differential privacy provides statistical privacy guarantees for individual records, so that the data cannot be restored to protect the privacy of the data owner, but adding noise will affect the final model convergence, thereby reducing the model accuracy. Based on the secret sharing approach, by adding individual secrets to the original data or model parameters to obfuscate the submitted data or parameters, the publisher can use all secrets to remove the noise formed by multiple individual secrets to generate a global model.
[0009] It can be seen that the semi-trusted centralized coordinator is an important component of the previous privacy protection methods of blockchain-based federated learning. A large amount of additional communication and computing costs are also an important technical issue that needs to be avoided. Whether the model training can be carried out without interference is another important technical issue. How to effectively use the blockchain's own asymmetric encryption and decryption mechanism, consensus mechanism, and smart contract mechanism to simplify the organizational structure and process of federated learning in order to carry out federated learning more effectively is also an important technical issue. Summary of the invention
[0010] The purpose of the present invention is to overcome the shortcomings of the prior art and propose a blockchain-based committee-free federated learning privacy protection system and method, which no longer requires a semi-trusted centralized coordinator-the committee, simplifies the components and communication process of federated learning; does not use multi-party computing, avoids a large amount of additional communication and computing costs; and no longer adds noise to the training of local model parameters, which helps to improve the convergence and model accuracy during model training, and does not use the key center used to generate shared secrets in the secret sharing method, which simplifies the organizational structure of federated learning.
[0011] The present invention solves the technical problem by adopting the following technical solutions:
[0012] The blockchain-based committee-free federated learning privacy protection system includes a task publishing module, a task receiving module, a parameter acquisition and local model training module, a local model parameter chain module, a model aggregation and global parameter chain module, and a local model update and iteration module. Among them, the task publishing module, the task receiving module, the parameter acquisition and local model training module, the local model parameter chain module, the model aggregation and global parameter chain module, and the local model update and iteration module are connected to the blockchain in sequence. The task publishing module is used to publish transactions for learning task requirements through blockchain smart contracts. The task receiving module is used to enable task learning participants to become employed participants after accepting task requirements. The parameter acquisition and local model training module The training module is used to train the model at the edge based on the local data used by the participants to generate new local model parameters. The local model parameter chain module is used to encrypt the local model parameters on the chain using the derived communication key according to the participants. The model aggregation and global parameter chain module is used by the task publisher to extract the local model parameters submitted by each participant, aggregate them using the quality strategy to obtain the comprehensive model, generate rewards and new comprehensive model parameters using quality judgment, and encrypt them on the chain using the derived key. The local model update and iteration module is used by the participants to use the identity to retrieve the block chain to obtain updated comprehensive model parameters and rewards, and start the next round of iteration until the comprehensive model obtained by the task publisher converges to a specific accuracy value or reaches the maximum number of iterations.
[0013] A protection method for a blockchain-based committee-free federated learning privacy protection system includes the following steps:
[0014] Step 1: The task publishing module publishes the learning task requirements through the blockchain smart contract;
[0015] Step 2: The task receiving module enables the task learning participants to accept the task requirements and become employed participants;
[0016] Step 3: The parameter acquisition and local model training module generates new local model parameters based on the model training performed at the edge using local data by the participants;
[0017] Step 4: The local model parameter uploading module encrypts the local model parameters on the chain using the derived communication key according to the participants;
[0018] Step 5: The model aggregation and global parameter chain module is used by the task publisher to extract the local model parameters submitted by each participant, aggregate them using the quality strategy to obtain a comprehensive model, generate rewards and new comprehensive model parameters using quality judgment, and encrypt them on the chain using the derived key;
[0019] Step 6: The local model update and iteration module is used by participants to use their identity to retrieve the blockchain to obtain updated comprehensive model parameters and rewards, and start the next round of iteration until the comprehensive model obtained by the task publisher converges to a specific accuracy value or reaches the maximum number of iterations.
[0020] Moreover, the specific implementation method of step 1 is:
[0021] Step 1.1: The task publisher explains the requirements and initial parameters of the learning model and data set, specifies the effectiveness metric of the learning iteration, and specifies the maximum number of iterations of the global model parameters.
[0022] Step 1.2: The task publisher explains the reward value for each iteration, distributes it to the participant account in the form of a transaction, and explains the penalty measures for uploading illegal local parameters;
[0023] Step 1.3: The task publisher submits the instructions in steps 1.1 and 1.2 to the blockchain;
[0024] Step 1.4: After receiving the blockchain user's employment request, if it is decided to accept the user as a learning participant, a pair of keys will be issued to the employed user as subsequent communication keys, with the user's identity and the assigned participant ID written in, and encrypted with its public key;
[0025] Step 1.5, upload the encrypted content and user identity in step 1.4, and the assigned participant identity to the blockchain;
[0026] Step 1.6: The publisher generates a smart contract for the task and uploads it to the blockchain.
[0027] Moreover, the specific implementation method of step 2 is:
[0028] Step 2.1: Blockchain users search for blockchain transactions using task keywords to obtain task requirements. After confirming that local data can be used to train the global model, they agree to the effective value measurement, reward and punishment measures, global maximum number of iterations, learning model, and initial parameter content proposed by the task publisher.
[0029] Step 2.2: The participant submits the user identity and consent information to the blockchain in the form of a transaction. After a period of time, the user searches the blockchain transaction with specific keywords and finds that the task publisher has agreed to become the employee.
[0030] Step 2.3, the participant extracts the corresponding communication key and the assigned participant identification from the agreed transaction. When extracting, the participant needs to use his own private key to decrypt the encrypted information. When the keyword is retrieved, the participant needs to check whether the transaction contains his own identity information;
[0031] Step 2.4: Participants start polling and retrieving the blockchain, waiting for the publisher's next action.
[0032] Moreover, the specific implementation method of step 3 is: each participant uses the initial model and initial parameters to train and learn the local model using local data to obtain local model parameters. The participants need to use local computing resources for intensive calculations and converge to a specific local accuracy or effectiveness measure after a certain number of local iterations.
[0033] Moreover, the specific implementation method of step 4 is: each participant uses the derived participant identifier and the public key in the derived communication key to encrypt the learned local model parameters, and uploads them to the block chain using blockchain transactions.
[0034] Moreover, the specific implementation method of step 5 is: the task publisher extracts the local model parameters of this round, synchronously waits for the collection of transactions, evaluates each transaction, uses the quality strategy to aggregate to obtain the comprehensive model, generates rewards and new comprehensive model parameters, encrypts the comprehensive model parameters sent to each participant, and uploads them in the form of transactions.
[0035] Moreover, the specific implementation method of step 6 is: the participant obtains updated parameters and rewards, enters the next round of iteration, or appeals and exits the learning iteration process. If the task publisher attaches a termination instruction, the learning process is terminated.
[0036] The advantages and positive effects of the present invention are:
[0037] The present invention utilizes the anti-tampering, distributed, and high-security characteristics of blockchain to design a blockchain-based federated learning privacy protection and communication mechanism. It utilizes the consensus mechanism and smart contracts of the blockchain itself to derive a series of communication keys from the task publisher, streamlines the task coordinator, and uses asymmetric encryption communication of the derived series of communication keys to ensure that the data between the participants and the local model parameters are invisible to each other, effectively protecting the privacy of local data by uploading the training parameters of each participant and the task publisher's update of the global model to the chain. For low-quality local model parameters and cheating local model parameters, a penalty strategy is used to generate zero rewards and stop updating comprehensive model parameters, so as to require participants to provide real local parameters obtained by local data learning and training based on the original model parameters. On this basis, the streamlined committee-free federated learning architecture and method can be used for data privacy protection application devices and systems in various distributed machine learning and AI collaboration, such as medical image recognition, big data AI precise classification of blood-related diseases, etc. BRIEF DESCRIPTION OF THE DRAWINGS
[0038] Figure 1 This is a block diagram of the blockchain-based committee-free federated learning privacy protection system of the present invention;
[0039] Figure 2 Issue a process flow chart for the task of the present invention;
[0040] Figure 3 A flowchart of the task acceptance process for the present invention;
[0041] Figure 4 This is a flow chart of the model aggregation and global parameter chain processing of the present invention;
[0042] Figure 5 This is a flow chart of the local model update and iteration process of the present invention; DETAILED DESCRIPTION
[0043] The present invention is further described in detail below with reference to the accompanying drawings.
[0044] A blockchain-based committee-free federated learning privacy protection system, such as Figure 1As shown, it includes a task publishing module, a task receiving module, a parameter acquisition and local model training module, a local model parameter chain module, a model aggregation and global parameter chain module and a local model update and iteration module, wherein the task publishing module, the task receiving module, the parameter acquisition and local model training module, the local model parameter chain module, the model aggregation and global parameter chain module and the local model update and iteration module are sequentially connected to the blockchain, the task publishing module is used to publish the learning task requirements through the blockchain smart contract, the task receiving module is used to enable the task learning participants to accept the task requirements and become hired participants, the parameter acquisition and local model training module is used to collect data according to the participants The participants use local data to train the model at the edge and generate new local model parameters. The local model parameter chain module is used to encrypt the local model parameters on the chain using the derived communication key according to the participants. The model aggregation and global parameter chain module is used by the task publisher to extract the local model parameters submitted by each participant, aggregate them using the quality strategy to obtain the comprehensive model, use quality judgment to generate rewards and new comprehensive model parameters, and encrypt them on the chain using the derived key. The local model update and iteration module is used by participants to use identity identifiers to retrieve the block chain to obtain updated comprehensive model parameters and rewards, and start the next round of iteration until the comprehensive model obtained by the task publisher converges to a specific accuracy value or reaches the maximum number of iterations.
[0045] A protection method for a blockchain-based committee-free federated learning privacy protection system includes the following steps:
[0046] Step 1: The task publishing module will learn the task requirements and publish transactions through blockchain smart contracts.
[0047] like Figure 2 As shown, the specific implementation method of step 1 is:
[0048] Step 1.1: The task publisher explains the requirements and initial parameters of the learning model and data set, specifies the effectiveness metric of the learning iteration, and specifies the maximum number of iterations of the global model parameters.
[0049] Step 1.2: The task publisher explains the reward value for each iteration, distributes it to the participant's account in the form of a transaction, and explains the penalty measures for uploading illegal local parameters;
[0050] Step 1.3: The task publisher submits the instructions in steps 1.1 and 1.2 to the blockchain;
[0051] Step 1.4: After receiving the blockchain user's employment request, if it is decided to accept the user as a learning participant, a pair of keys will be issued to the employed user as subsequent communication keys, with the user's identity and the assigned participant ID written in, and encrypted with its public key; the communication key is the task publisher's own key, using a path specific to the employed person, and a pair of child keys are derived through the BIP32 protocol, which are in a tree-like hierarchical relationship with the original key; in the derivation and hierarchical management of keys, the parent public key is made public and the child private key is distributed. In order to prevent the parent private key from being at risk, a "hardened" key derivation method is used. The derivation of keys is automatically managed and generated by the smart contract of the blockchain, and the key center is no longer used, which simplifies the organizational structure and has security and credibility.
[0052] Step 1.5, upload the encrypted content and user identity in step 1.4, and the assigned participant identity to the blockchain;
[0053] Step 1.6: The publisher generates a smart contract for the task and uploads it to the blockchain.
[0054] Step 2: The task receiving module enables the task learning participants to accept the task requirements and become employed participants.
[0055] like Figure 3 As shown, the specific implementation method of step 2 is:
[0056] Step 2.1: Blockchain users search for blockchain transactions using task keywords to obtain task requirements. After confirming that local data can be used to train the global model, they agree to the effective value measurement, reward and punishment measures, global maximum number of iterations, learning model, and initial parameter content proposed by the task publisher.
[0057] Step 2.2: The participant submits the user identity and consent information to the blockchain in the form of a transaction. After a period of time, the user searches the blockchain transaction with specific keywords and finds that the task publisher has agreed to become the employee.
[0058] Step 2.3, the participant extracts the corresponding communication key and the assigned participant identification from the agreed transaction. When extracting, the participant needs to use his own private key to decrypt the encrypted information. When the keyword is retrieved, the participant needs to check whether the transaction contains his own identity information;
[0059] Step 2.4: Participants start polling and retrieving the blockchain, waiting for the publisher's next action.
[0060] Step 3: The parameter acquisition and local model training module generates new local model parameters based on the model training performed at the edge by the participants using local data.
[0061] Each participant uses the initial model and initial parameters and local data to train and learn the local model to obtain local model parameters. The participants need to use local computing resources for intensive calculations and converge to a specific local accuracy or effectiveness measure after a certain number of local iterations.
[0062] Step 4: The local model parameter chain-up module encrypts the local model parameters using the derived communication key based on the participants and chains them up.
[0063] Each participant uses the derived participant identifier and the public key in the derived communication key to encrypt the learned local model parameters, and uploads them to the block chain using blockchain transactions. The transaction content includes specific keywords, indicating that the transaction is the local model parameters learned by the participant, as well as the participant identifier, the encrypted local model parameters, the number of rounds of the current iteration, and the HASH value information of the model parameters provided by the last task publisher.
[0064] Step 5: The model aggregation and global parameter chain module is used by the task publisher to extract the local model parameters submitted by each participant, use the quality strategy to aggregate the comprehensive model, use quality judgment to generate rewards and new comprehensive model parameters, and use the derived key to encrypt and chain them.
[0065] The task publisher extracts the local model parameters of this round, synchronously waits for the collection of transactions, evaluates each transaction, aggregates the comprehensive model using the quality strategy, generates rewards and new comprehensive model parameters, encrypts the comprehensive model parameters sent to each participant, and uploads them in the form of transactions, such as Figure 4 As shown, the specific implementation method of step 5 is:
[0066] Step 5.1: After waiting for a period of time, the task publisher collects all the transactions of the participants, or after a specific waiting time, collects the transactions of the largest number of participants;
[0067] Step 5.2: The task publisher uses the consensus mechanism to extract the local model parameters submitted by each participant from the block chain transaction after a period of synchronization waiting. The task publisher can use polling to search the block chain with specific keywords at reasonable time intervals to find specific transactions.
[0068] Step 5.3: After judging the quality of the local model parameters in each transaction, the quality strategy is used to aggregate and obtain a comprehensive model; wherein the quality judgment includes but is not limited to the model's accuracy, recall rate, precision and other effectiveness metrics; the quality strategy includes but is not limited to using the values judged by the quality to perform weighted averaging and geometric scaling of the local model parameters of a specific transaction;
[0069] Step 5.4: The task publisher generates rewards and new comprehensive model parameters using quality judgment, and uses a penalty strategy to generate zero rewards and stop updating comprehensive model parameters for low-quality parameters and cheating parameters, so as to require participants to provide real local parameters obtained by local data learning and training based on the original model parameters. The stop action refers to the task publisher repeating the comprehensive model parameters issued to the participant last time;
[0070] Step 5.5, the task publisher uses the public key in the derived communication key of each participant to encrypt the comprehensive model parameters sent to each participant, and uploads the participant identity in the form of a transaction and the updated comprehensive model parameters of each participant encrypted with the participant communication key. Since each participant uses the assigned participant identity and derived communication key to perform on-chain operations, the possibility of continuous tracking using the original identity can be avoided in the public chain environment.
[0071] Step 6: The local model update and iteration module is used by participants to use their identity to retrieve the blockchain to obtain updated comprehensive model parameters and rewards, and start the next round of iteration until the comprehensive model obtained by the task publisher converges to a specific accuracy value or reaches the maximum number of iterations.
[0072] Participants obtain updated parameters and rewards, enter the next iteration, or appeal and exit the learning iteration process. If the task publisher attaches a termination instruction, the learning process terminates. Figure 5 As shown, step 6 includes the following steps:
[0073] Step 6.1, the participant searches the blockchain with specific keywords, and uses the identity to decrypt the retrieved blockchain transaction using the derived communication key, and obtains the updated comprehensive model parameters and rewards passed to him by the task publisher;
[0074] Step 6.2: The participant checks the termination instructions given by the task publisher. When the task publisher obtains the convergence accuracy value or reaches the maximum number of iterations, the task publisher will give the termination instructions in the encrypted transaction model parameters;
[0075] Step 6.3, start the next round of iteration until the comprehensive model obtained by the task publisher converges to a specific accuracy value or reaches the maximum number of iterations. If the participant is dissatisfied with the task reward or punishment value, or believes that the task publisher has imposed an inappropriate punishment, he or she can upload the local learning effective measurement value as a complaint evidence to the smart contract, and can exit the learning iteration process at any time;
[0076] Step 6.4: After the termination condition is reached, the task publisher and the participant terminate the learning task at the same time.
[0077] The present invention utilizes the anti-tampering, distributed, and high-security characteristics of blockchain to design a blockchain-based federated learning privacy protection and communication mechanism. The task publisher publishes a task requirement transaction through a blockchain smart contract, which includes learning an initial model and initial parameters. After accepting the task requirement, the task learning participant becomes an employed participant, accepts the initial model and initial parameters provided by the task publisher, and simultaneously accepts the participant identification and derived communication key provided by the task publisher. By using the initial model and initial parameters, the local model is trained and learned using local data to obtain local model parameters, and then the learned local model parameters are encrypted using the public key in the derived participant identification and the derived communication key, and uploaded to the block chain using blockchain transactions. The task publisher utilizes a consensus mechanism to extract the local model parameters submitted by each participant from the block chain transaction after a period of synchronous waiting, and after judging the parameter quality, a comprehensive model is obtained by using a quality strategy aggregation. The task publisher generates rewards and new comprehensive model parameters using quality judgment, and uses a penalty strategy to generate zero rewards and stop updating comprehensive model parameters for low-quality parameters and cheating parameters, so as to require the participants to provide local data learning training on the basis of the original model parameters. The task publisher uses the public key in the derived communication key to encrypt the comprehensive model parameters sent to each participant, and uploads the participant identity and the encrypted updated comprehensive model parameters of each participant in the form of a transaction; the task learning participant uses the identity to retrieve the block chain to obtain the updated comprehensive model parameters and rewards, and starts the next round of iteration until the comprehensive model obtained by the task publisher converges to a specific accuracy value or reaches the maximum number of iterations; by encrypting the model parameters and initial model uploaded in the block chain using the task publisher's derived communication key between the task publisher and the task learning participant, the privacy of the comprehensive model and the learned local parameters is protected, and the possibility of transactions being tracked in the public chain environment is avoided; blockchain smart contracts are used to publish task requirements and accept tasks, and learning results, updates and rewards are submitted by uploading blocks. The blockchain consensus mechanism is used for communication, and a semi-trusted central coordinator, the committee, is no longer needed, which simplifies the components and communication process of federated learning, avoids a large amount of additional communication and computing costs by not using multi-party computing, and no noise is added to the training local model parameters, which helps to improve the convergence and accuracy of the model.
[0078] It should be emphasized that the embodiments described in the present invention are illustrative rather than restrictive. Therefore, the present invention includes but is not limited to the embodiments described in the specific implementation manner. Any other implementation manners derived by those skilled in the art based on the technical solution of the present invention also fall within the scope of protection of the present invention.
Claims
1. A blockchain-based committee-free federated learning privacy protection system, characterized by: The system comprises a task publishing module, a task receiving module, a parameter acquisition and local model training module, a local model parameter chain module, a model aggregation and global parameter chain module and a local model update and iteration module, wherein the task publishing module, the task receiving module, the parameter acquisition and local model training module, the local model parameter chain module, the model aggregation and global parameter chain module and the local model update and iteration module are sequentially connected to the blockchain, the task publishing module is used to publish transactions for learning task requirements through blockchain smart contracts, the task receiving module is used to enable task learning participants to become employed participants after accepting task requirements, and the parameter acquisition and local model training module is used to collect data according to the interests of participants. Use local data to train the model at the edge to generate new local model parameters. The local model parameter chain module is used to encrypt the local model parameters on the chain using the derived communication key according to the participants. The model aggregation and global parameter chain module is used by the task publisher to extract the local model parameters submitted by each participant, and use the quality strategy to aggregate to obtain the comprehensive model. The quality judgment is used to generate rewards and new comprehensive model parameters, which are encrypted and chained using the derived key. The local model update and iteration module is used by participants to use identity identifiers to retrieve the block chain to obtain updated comprehensive model parameters and rewards, and start the next round of iterations until the comprehensive model obtained by the task publisher converges to a specific accuracy value or reaches the maximum number of iterations.
2. A protection method for a blockchain-based committee-free federated learning privacy protection system as claimed in claim 1, characterized in that: The following steps are involved: Step 1: The task publishing module publishes the learning task requirements through the blockchain smart contract; Step 2: The task receiving module enables the task learning participants to accept the task requirements and become employed participants; Step 3: The parameter acquisition and local model training module generates new local model parameters based on the model training performed at the edge using local data by the participants; Step 4: The local model parameter uploading module encrypts the local model parameters on the chain using the derived communication key according to the participants; Step 5: The model aggregation and global parameter chain module is used by the task publisher to extract the local model parameters submitted by each participant, aggregate them using the quality strategy to obtain a comprehensive model, generate rewards and new comprehensive model parameters using quality judgment, and encrypt them on the chain using the derived key; Step 6: The local model update and iteration module is used by participants to use their identity to retrieve the blockchain to obtain updated comprehensive model parameters and rewards, and start the next round of iteration until the comprehensive model obtained by the task publisher converges to a specific accuracy value or reaches the maximum number of iterations.
3. The protection method of the blockchain-based committee-free federated learning privacy protection system according to claim 2 is characterized in that: The specific implementation method of step 1 is: Step 1.1: The task publisher explains the requirements and initial parameters of the learning model and data set, specifies the effectiveness metric of the learning iteration, and specifies the maximum number of iterations of the global model parameters. Step 1.2: The task publisher explains the reward value for each iteration, distributes it to the participant account in the form of a transaction, and explains the penalty measures for uploading illegal local parameters; Step 1.3: The task publisher submits the instructions in steps 1.1 and 1.2 to the blockchain; Step 1.4: After receiving the blockchain user's employment request, if it is decided to accept the user as a learning participant, a pair of keys will be issued to the employed user as subsequent communication keys, with the user's identity and the assigned participant ID written in, and encrypted with its public key; Step 1.5, upload the encrypted content and user identity in step 1.4, and the assigned participant identity to the blockchain; Step 1.6: The publisher generates a smart contract for the task and uploads it to the blockchain.
4. The protection method of the blockchain-based committee-free federated learning privacy protection system according to claim 2 is characterized in that: The specific implementation method of step 2 is: Step 2.1: Blockchain users search for blockchain transactions using task keywords to obtain task requirements. After confirming that local data can be used to train the global model, they agree to the effective value measurement, reward and punishment measures, global maximum number of iterations, learning model, and initial parameter content proposed by the task publisher. Step 2.2: The participant submits the user identity and consent information to the blockchain in the form of a transaction. After a period of time, the user searches the blockchain transaction with specific keywords and finds that the task publisher has agreed to become the employee. Step 2.3, the participant extracts the corresponding communication key and the assigned participant identification from the agreed transaction. When extracting, the participant needs to use his own private key to decrypt the encrypted information. When the keyword is retrieved, the participant needs to check whether the transaction contains his own identity information; Step 2.4: Participants start polling and retrieving the blockchain, waiting for the publisher's next action.
5. The protection method of the blockchain-based committee-free federated learning privacy protection system according to claim 2 is characterized in that: The specific implementation method of step 3 is: each participant uses the initial model and initial parameters to train and learn the local model using local data to obtain local model parameters. The participant needs to use local computing resources for intensive computing and converge to a specific local accuracy or effectiveness measurement value after a certain number of local iterations.
6. The protection method of the blockchain-based committee-free federated learning privacy protection system according to claim 2, characterized in that: The specific implementation method of step 4 is: each participant uses the derived participant identifier and the public key in the derived communication key to encrypt the learned local model parameters, and uploads them to the block chain using blockchain transactions.
7. The protection method of the blockchain-based committee-free federated learning privacy protection system according to claim 2 is characterized in that: The specific implementation method of step 5 is as follows: the task publisher extracts the local model parameters of this round, synchronously waits for the collection of transactions, evaluates each transaction, uses the quality strategy to aggregate to obtain the comprehensive model, generates rewards and new comprehensive model parameters, encrypts the comprehensive model parameters sent to each participant, and uploads them in the form of transactions.
8. The protection method of the blockchain-based committee-free federated learning privacy protection system according to claim 2 is characterized in that: The specific implementation method of step 6 is: the participant obtains updated parameters and rewards, enters the next round of iteration, or appeals and exits the learning iteration process. If the task publisher attaches a termination instruction, the learning process is terminated.
Citation Information
Cited By
Multi-party trusted cooperation method and system based on DAG block chain and federal learning
CN120880737A
Big data platform system and processing method for co-construction and sharing of telecommunication infrastructure
CN121357242A
