A model verification method, apparatus and electronic device

By receiving and verifying model proposals submitted by training nodes on the blockchain, and generating and recording blocks of verification results, the problem of untrustworthy verification results in distributed artificial intelligence model training is solved, and data privacy protection and verification results are achieved. Credibility.

CN112685792BActive Publication Date: 2024-09-20LENOVO (BEIJING) LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202011416165.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-12-04
Publication Date
2024-09-20
Estimated Expiration
2040-12-04

AI Technical Summary

Technical Problem

In blockchain technology, during the training process of distributed artificial intelligence models, the model verification process of the participants cannot guarantee the credibility of the verification results, resulting in the inability to effectively protect data privacy and ensure the reliability of the verification results of multiple participants.

Method used

By receiving endorsement proposals submitted by training nodes on the blockchain, sending the model to be verified to multiple verification nodes, receiving and verifying feedback, generating verification results, and establishing a block of verification results on the blockchain to ensure the quality and quality of the model. Transparency and immutability of verification results.

Benefits of technology

It realizes distributed verification of the model to be verified, protects the data privacy of each participant, while ensuring the credibility and non-tamperability of the verification results, ensuring the reliability of multi-participant verification.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112685792B
    Figure CN112685792B
Patent Text Reader

Abstract

The present application discloses a model verification method, device and electronic device. Among them, the model verification method, after receiving the first endorsement proposal submitted by the training node, sends the model to be verified corresponding to the endorsement proposal to multiple verification nodes, and receives the verification feedback of the verification node, and further obtains the verification result of the model to be verified according to the verification feedback, thereby establishing a block corresponding to the verification result on the blockchain. In this way, while realizing the distributed verification of the model to be verified and protecting the data privacy of each participant, it realizes the multi-participant verification of each model to be verified, ensuring that the verification result of each model to be verified cannot be tampered with, and fully ensuring the credibility of the verification result of the participants.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of blockchain technology, and in particular to a model verification method, device and electronic device. Background Art

[0002] Artificial intelligence model training requires the support of algorithms, computing power and data. Generally speaking, the larger the amount of data used in model training, the higher the model accuracy will be. But in fact, the data that can be used for model training is often scattered and distributed, and the data belongs to different companies or individuals. In order to protect data privacy while using more data for model training, distributed artificial intelligence model training technology came into being and developed rapidly.

[0003] As a data traceable and tamper-proof distributed ledger technology, blockchain is used in combination with distributed artificial intelligence model training technology to permanently record the model training process, providing a credible data foundation for the transparency of the entire model training process and the incentives for model training results of multiple participants. However, in this solution, the verification process of the model by each participant is carried out off-chain, and there is a problem that the credibility of the verification results of the participants cannot be guaranteed. Summary of the invention

[0004] The present application discloses a model verification method, device and electronic equipment.

[0005] According to the first aspect of the present application, a model verification method is provided, the method comprising: receiving a first endorsement proposal submitted by a training node in a blockchain; sending a model to be verified corresponding to the first endorsement proposal to multiple verification nodes in the blockchain; wherein the model to be verified is obtained by training the training node, and the multiple verification nodes are at least some of the nodes in the blockchain; receiving verification feedback for the model to be verified sent by each of the verification nodes; obtaining a verification result based on the received verification feedback, the verification result being used to characterize the quality of the model to be verified; and establishing a block corresponding to the verification result on the blockchain.

[0006] According to another embodiment of the present application, obtaining a verification result based on the received verification feedback includes: determining the number of verification feedbacks in the verification feedback that meet a first condition; and obtaining the verification result based on the number and the total number of verification feedbacks.

[0007] According to another embodiment of the present application, the verification feedback includes: the first read-write set obtained by the verification node running the verification smart contract to verify the model to be verified.

[0008] According to another embodiment of the present application, the verification feedback is obtained by the verifier verifying the model to be verified based on local data.

[0009] According to another embodiment of the present application, establishing the block corresponding to the verification result on the blockchain includes: generating a second endorsement proposal based on the verification result; sending the second endorsement proposal to multiple verification nodes in the blockchain; receiving a second read-write set obtained by running a record smart contract for the second endorsement proposal sent by each of the verification nodes; and building the block corresponding to the verification result on the blockchain based on the second read-write set.

[0010] According to another embodiment of the present application, constructing a block corresponding to the verification result on the blockchain according to the second read-write set includes: generating an endorsement request corresponding to the verification result according to the second read-write set; sending the endorsement request to multiple organization nodes of the blockchain, so as to update the blockchain data corresponding to the organization node through each of the organization nodes; wherein the organization nodes include at least the training node and multiple verification nodes.

[0011] According to another embodiment of the present application, the method includes: determining whether the model to be verified meets the second condition based on the verification result; and when it is determined that the model to be verified meets the second condition, determining that the model training task is completed.

[0012] According to another embodiment of the present application, judging whether the model to be verified meets the second condition based on the verification result includes: determining whether a parameter in the verification result used to characterize the quality of the model to be verified reaches a set threshold.

[0013] According to a second aspect of the present application, a model verification device is disclosed, which includes: a first receiving module, used to receive a first endorsement proposal submitted by a training node in a blockchain; an endorsement module, used to send a model to be verified corresponding to the first endorsement proposal to multiple verification nodes in the blockchain; wherein the model to be verified is obtained by training the training node, and the multiple verification nodes are at least some of the nodes in the blockchain; a second receiving module, used to receive verification feedback for the model to be verified sent by each of the verification nodes; a verification result determination module, used to obtain a verification result based on the received verification feedback, and the verification result is used to characterize the quality of the model to be verified; a block construction module, used to establish a block corresponding to the verification result on the blockchain.

[0014] According to the third aspect of the present application, an electronic device is disclosed, which includes at least one processor, and at least one memory and a bus connected to the processor; wherein the processor and the memory communicate with each other through the bus; and the processor is used to call program instructions in the memory to execute the above-mentioned model verification method.

[0015] The above model verification method, after receiving the first endorsement proposal submitted by the training node, sends the model to be verified corresponding to the endorsement proposal to multiple verification nodes, receives the verification feedback from the verification nodes, and further obtains the verification result of the model to be verified based on the verification feedback, thereby establishing a block corresponding to the verification result on the blockchain. In this way, while realizing the distributed verification of the model to be verified and protecting the data privacy of each participant, it realizes the multi-participant verification of each model to be verified, ensuring that the verification result of each model to be verified cannot be tampered with, and fully guarantees the credibility of the verification results of the participants.

[0016] It should be understood that the teachings of the present application are not required to achieve all of the beneficial effects described above, but specific technical solutions can achieve specific technical effects, and other embodiments of the present application can also achieve beneficial effects not mentioned above. BRIEF DESCRIPTION OF THE DRAWINGS

[0017] By reading the detailed description below with reference to the accompanying drawings, the above and other purposes, features and advantages of the exemplary embodiments of the present application will become readily understood. In the accompanying drawings, several embodiments of the present application are shown in an exemplary and non-limiting manner, wherein:

[0018] In the drawings, the same or corresponding reference numerals represent the same or corresponding parts.

[0019] Figure 1 A schematic diagram of the implementation process of the model verification method of the embodiment of the present application is shown;

[0020] Figure 2 A schematic diagram of the structure of the model verification device according to an embodiment of the present application is shown;

[0021] Figure 3 A schematic diagram of the structure of an electronic device according to an embodiment of the present application is shown. DETAILED DESCRIPTION

[0022] The principles and spirit of the present application will be described below with reference to several exemplary embodiments. It should be understood that these embodiments are provided only to enable those skilled in the art to better understand and implement the present application, and are not intended to limit the scope of the present application in any way. On the contrary, these embodiments are provided to make the present application more thorough and complete, and to fully convey the scope of the present application to those skilled in the art.

[0023] The technical solution of the present application is further described in detail below with reference to the accompanying drawings and specific embodiments.

[0024] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "example", "specific example", or "some examples" etc. means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present application. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or more embodiments or examples in a suitable manner. In addition, those skilled in the art may combine and combine the different embodiments or examples described in this specification and the features of the different embodiments or examples, unless they are contradictory.

[0025] In addition, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Therefore, a feature defined as "first" or "second" may explicitly or implicitly include at least one of the features. In the description of this application, the meaning of "plurality" is two or more, unless otherwise clearly and specifically defined.

[0026] Figure 1 The implementation process of the information processing method disclosed in this application is shown. Figure 1 The method at least includes the following operation flow: operation 101, receiving a first endorsement proposal submitted by a training node in a blockchain; operation 102, sending a model to be verified corresponding to the first endorsement proposal to multiple verification nodes in the blockchain; wherein the model to be verified is obtained by training the training node, and the multiple verification nodes are at least part of the nodes in the blockchain; operation 103, receiving verification feedback for the model to be verified sent by each verification node; operation 104, obtaining a verification result according to the received verification feedback, and the verification result is used to characterize the quality of the model to be verified; operation 105, establishing a block corresponding to the verification result on the blockchain.

[0027] In operation 101, a first endorsement proposal submitted by a training node in a blockchain is received.

[0028] In this embodiment of the present application, first, based on the training requirements of the artificial intelligence model, a Hyper ledger Fabric (open source blockchain distributed ledger) blockchain network with multiple participants is constructed. Each participant in the blockchain can be used as a trainer to train the artificial intelligence model, and each participant can also be used as a verifier to verify the artificial intelligence model trained by other participants. A verification smart contract for verifying the model to be verified and a recording smart contract for recording the model verification results are deployed on the organization node of each participant in the blockchain. When any participant acts as a trainer, its organization node can be called a training node, and the training node can submit a transaction endorsement proposal through the blockchain client. When any node acts as a verifier, its organization node can be called a verification node.

[0029] For example, a participant in the blockchain uses local data to train a model and obtains a model to be verified. Through the blockchain client, the send Transaction Proposal() method is called to submit an endorsement proposal for the model to be verified. The blockchain client can receive the endorsement proposal corresponding to the model to be verified submitted by the training node.

[0030] In operation 102, the model to be verified corresponding to the first endorsement proposal is sent to multiple verification nodes in the blockchain; wherein the model to be verified is obtained by training the training node, and the multiple verification nodes are at least some of the nodes in the blockchain.

[0031] In this embodiment of the present application, all participants can be used as verifiers, and the first endorsement proposal can be sent to the organization nodes of all participants in the blockchain. It is also possible to use only participants other than the training party as verifiers, and send the first endorsement proposal to the verification node of the verifier. Of course, it is also possible to randomly select a set number of participants from all participants as verifiers according to actual needs, and send the first endorsement proposal to the verification node of the selected verifier. In addition, other methods of selecting verifiers can be set according to actual needs, and the first endorsement proposal can be sent to the verification node of the selected verifier. The present invention does not specifically limit this.

[0032] In operation 103, verification feedback for the model to be verified sent by each verification node is received.

[0033] In this embodiment of the present application, when each verification node receives the first endorsement proposal, it can automatically trigger the corresponding verification smart contract, simulate the execution of the verification smart contract, and perform distributed model verification on the model to be verified corresponding to the first transaction endorsement proposal. Each verification node sends verification feedback of the model to be verified to the blockchain client.

[0034] Among them, verification feedback is the result obtained by the verification node using local data to verify the model to be verified. For example: verification node A runs a smart contract and verifies the model M1 to be verified using local data, and obtains an identification accuracy of 80% for the model M1 to be verified, while the current optimal model on the blockchain has an identification accuracy of 75% for the local data of verification node A. Therefore, the identification accuracy of the local data of verification node A using the model M1 to be verified is higher than the identification accuracy of the local data of verification node A using the current optimal model on the blockchain. Therefore, the verification feedback of verification node A for the model M1 to be identified can be an identification accuracy of 80%, or an identification accuracy higher than the identification accuracy of the current optimal model on the blockchain, which can be set as needed.

[0035] In operation 104, a verification result is obtained according to the received verification feedback, and the verification result is used to characterize the quality of the model to be verified.

[0036] In this embodiment of the present application, obtaining a verification result according to the received verification feedback includes: determining the number of verification feedbacks that meet the first condition in the verification feedback; and obtaining the verification result according to the number and the total number of verification feedbacks.

[0037] For example, after receiving verification feedback sent by multiple verification nodes, the blockchain client first determines the number of verification feedbacks that meet the first condition in the received verification feedback. If the verification feedback is a model result or a model accuracy value, the first condition may be that the model accuracy value is greater than a set accuracy threshold. The set accuracy threshold may be a certain value, such as 80%, 85% or 90%, etc. The set accuracy threshold may also be the model accuracy value of the current optimal model on the blockchain.

[0038] When the number of verification feedbacks satisfying the first condition is greater than the set number, the quality of the model to be verified is determined to be good. The set number can be a certain value, such as 20, 30 or 50. The set number can also be a value determined according to the total number of verification feedbacks. For example, when the total number of verification feedbacks is 100 and 80% of the verification feedbacks satisfy the first condition, the quality of the model to be verified is determined to be good, and the set number is 80.

[0039] Of course, other methods can also be used to obtain the verification result based on the received verification feedback, for example: first determine a first ratio of the total number of verification feedbacks to the total number of participants, and divide the ratio into several intervals, for example: [0, 0.5] [0.5, 0.7] [0.7, 0.8] [0.8-1]; determine a second ratio of the number of verification feedbacks that meet the first condition in the verification feedback to the total number of verification feedbacks received; when the first ratio is in the interval [0, 0.5] and the second ratio is greater than 98%, it is determined that the quality of the model to be verified is good; when the first ratio is in the interval [0.5, 0.7] and the second ratio is greater than 90%, it is determined that the quality of the model to be verified is good; when the first ratio is in the interval [0.7, 0.8] and the second ratio is greater than 80%, it is determined that the quality of the model to be verified is good; when the first ratio is in the interval [0.8-1] and the second ratio is greater than 75%, it is determined that the quality of the model to be verified is good. In actual application, other appropriate methods may be used to determine the verification result of the model to be verified, for example, the verification feedback received from each verification party is a model accuracy value, and the verification result is a weighted average of the values ​​of each verification feedback. This application does not make specific restrictions on this.

[0040] In operation 105, a block corresponding to the verification result is created on the blockchain.

[0041] In this embodiment of the present invention, a new endorsement proposal is generated based on the verification result, and the endorsement proposal is sent to the organization nodes of the participants in the blockchain, including the training node and multiple verification nodes, so as to record the verification result in the organization nodes of each participant.

[0042] According to another embodiment of the present application, the verification feedback includes a first read-write set obtained by the verification node running the verification smart contract to verify the model to be verified. The verification feedback is obtained by the verifier verifying the model to be verified based on local data.

[0043] In this embodiment of the present application, when the verification node receives the first endorsement proposal, it simulates the execution of the verification smart contract to perform distributed verification on the model to be verified, and sends the first read-write set generated by the simulated execution of the smart contract to the blockchain client.

[0044] For example, when verification node B receives the first endorsement proposal, it verifies the model to be verified M2 corresponding to the first endorsement proposal. The generated read-write set may include reading the model to be verified M2 received by verification node B and the training node of the model to be verified M2, and simulating the operation of the model to be verified M2 according to the local data of verification node B to generate verification records. The read data and the corresponding verification records generated are collectively referred to as the first read-write set.

[0045] According to another embodiment of the present application, a block corresponding to the verification result is established on the blockchain, including: generating a second endorsement proposal based on the verification result; sending the second endorsement proposal to multiple verification nodes in the blockchain; receiving a second read-write set obtained by running a record smart contract for the second endorsement proposal sent by each verification node; and building a block corresponding to the verification result on the blockchain based on the second read-write set.

[0046] In this embodiment of the present application, the blockchain client generates a new endorsement proposal based on the verification result, calls the sendTransactionProposal() method, and sends the new transaction endorsement proposal to the organization nodes of each participant, including the training node and multiple organization nodes. After each participant receives the new endorsement proposal, it runs the record smart contract, confirms the endorsement proposal containing the verification result, generates a second read-write set, and feeds the read-write set back to the blockchain client. Among them, the second read-write set may include records such as the model to be verified, the training node of the model to be verified, the verification node participating in the verification, the verification feedback of each verification node on the model to be verified, and the verification result of the model to be verified, and confirms whether the new endorsement proposal containing the verification result has an abnormality to generate a confirmation record, and feeds the confirmation record back to the blockchain client. The data read by the verification node B and the corresponding confirmation record generated are collectively referred to as the second read-write set. According to the second read-write set, a block corresponding to the verification result is constructed on the blockchain.

[0047] According to another embodiment of the present application, according to the second read-write set, a block corresponding to the verification result is constructed on the blockchain, including: according to the second read-write set, generating an endorsement request corresponding to the verification result; sending the endorsement request to multiple organization nodes of the blockchain, so as to update the blockchain data corresponding to the organization node through each organization node; wherein the organization node includes at least a training node and multiple verification nodes.

[0048] In this embodiment of the present application, the blockchain client calls the send Transaction() method to package the received second read-write set into a blockchain transaction and submit it to the sorting node of the blockchain. The sorting node packages the blockchain transaction into a block and sends the block to the organization node of each participant to record the block in Hyperledger Fabric.

[0049] According to another embodiment of the present application, the present application also determines whether the model to be verified meets the second condition based on the verification result; when it is determined that the model to be verified meets the second condition, the model training task is determined to be completed.

[0050] In this embodiment of the present application, in order to continuously optimize the artificial intelligence model trained based on the blockchain, the upload operations 101 to 105 can be executed cyclically until the accuracy of the trained artificial intelligence model reaches the expected accuracy value, and the model training task is terminated. Here, the expected accuracy value can be determined when the task initiator of the blockchain-based model training initiates the task, or it can be temporarily set during the model training process according to the situation of the model trained by each participant.

[0051] In this embodiment of the present application, the second condition may be that the model accuracy of the model to be verified reaches the convergence threshold. The convergence threshold may be a determined value, such as 85%, 90% or 95%. The convergence threshold may also be a value accurately determined based on the current optimal model on the blockchain. For example, the model accuracy of the current optimal model on the blockchain is F1, and the convergence threshold may be 1.5*F1. For example: the verification result of the model to be verified M3 corresponding to the first endorsement proposal submitted by the training node C received by the blockchain is 90% of the model accuracy, and the model accuracy of the current optimal model on the blockchain is 55%, 1.5*55%=82.5%. Since 90%>82.5%, the verification result of the model to be verified M3 corresponding to the first endorsement proposal submitted by the training node C received by the blockchain satisfies the second condition, and it is determined that the model training task is completed, and the final artificial intelligence model is the model corresponding to the first endorsement proposal submitted by the training node C.

[0052] According to another embodiment of the present application, judging whether the model to be verified meets the second condition based on the verification result includes: determining whether a parameter in the verification result used to characterize the quality of the model to be verified reaches a set threshold.

[0053] For example, the model to be verified is a speech recognition model, the parameter recognition rate used to characterize the quality of the model to be verified in the verification result is 75%, and the set threshold is 80%, which indicates that the parameter used to characterize the quality of the model to be verified in the verification result does not reach the set threshold.

[0054] If the recognition accuracy reaches 80% or even higher, the model to be verified is considered to meet the second condition, and the model training can be terminated at this time.

[0055] The above model verification method, after receiving the first endorsement proposal submitted by the training node, sends the model to be verified corresponding to the endorsement proposal to multiple verification nodes, receives the verification feedback from the verification nodes, and further obtains the verification result of the model to be verified based on the verification feedback, thereby establishing a block corresponding to the verification result on the blockchain. In this way, while realizing the distributed verification of the model to be verified and protecting the data privacy of each participant, it realizes the multi-participant verification of each model to be verified, ensuring that the verification result of each model to be verified cannot be tampered with, and fully guarantees the credibility of the verification results of the participants.

[0056] Furthermore, this embodiment of the present application also provides a model verification device, such as Figure 2 As shown, the device 20 includes: a first receiving module 201, used to receive a first endorsement proposal submitted by a training node in the blockchain; an endorsement module 202, used to send the model to be verified corresponding to the first endorsement proposal to multiple verification nodes in the blockchain; wherein the model to be verified is obtained by training the training node, and the multiple verification nodes are at least part of the nodes in the blockchain; a second receiving module 203, used to receive verification feedback for the model to be verified sent by each verification node; a verification result determination module 204, used to obtain a verification result according to the received verification feedback, and the verification result is used to characterize the quality of the model to be verified; a block construction module 205, used to establish a block corresponding to the verification result on the blockchain.

[0057] According to another embodiment of the present application, the verification result determination module 204 includes: determining the number of verification feedbacks satisfying the first condition in the verification feedbacks; and obtaining the verification result according to the number and the total number of verification feedbacks.

[0058] According to another embodiment of the present application, the verification feedback includes: the verification node runs the verification smart contract to verify the model to be verified and obtains a first read-write set.

[0059] According to another embodiment of the present application, the verification feedback is obtained by the verifier verifying the model to be verified based on local data.

[0060] According to another embodiment of the present application, the block construction module 205 includes: a proposal generation submodule, which is used to generate a second endorsement proposal according to the verification result; a sending submodule, which is used to send the second endorsement proposal to multiple verification nodes in the blockchain; a verification receiving submodule, which is used to receive the second read-write set obtained by each verification node for running the record smart contract for the second endorsement proposal; and a construction submodule, which is used to construct a block corresponding to the verification result on the blockchain according to the second read-write set.

[0061] According to another embodiment of the present application, the construction submodule constructs a block corresponding to the verification result on the blockchain according to the second read-write set, including: generating an endorsement request corresponding to the verification result according to the second read-write set; sending the endorsement request to multiple organization nodes of the blockchain, so as to update the blockchain data corresponding to the organization node through each organization node; wherein the organization node includes at least a training node and multiple verification nodes.

[0062] According to another embodiment of the present application, the method includes: a result determination module, used to determine whether the model to be verified meets the second condition based on the verification result; and a task determination module, used to determine that the model training task is completed when it is determined that the model to be verified meets the second condition.

[0063] According to another embodiment of the present application, the result determination module determines whether the model to be verified meets the second condition based on the verification result, including: determining whether the parameter used to characterize the quality of the model to be verified in the verification result reaches a set threshold.

[0064] Furthermore, this embodiment of the present application also discloses an electronic device 3, such as Figure 3 As shown, the electronic device 30 includes at least one processor 301, and at least one memory 302 and a bus 303 connected to the processor 301; wherein the processor 301 and the memory 302 communicate with each other through the bus 303; the processor 301 is used to call the program instructions in the memory 302 to execute the above-mentioned model verification method.

[0065] It should be noted that: the above description of the embodiment of the model verification device is different from the above description of the embodiment of the model verification device. Figure 1 The description of the method embodiment shown is similar, with the same Figure 1 The method embodiment shown in the figure has similar beneficial effects, so it will not be repeated here. For technical details not disclosed in the embodiment of the model verification device of this application, please refer to the aforementioned Figure 1 The description of the method embodiment shown in the figure can be understood, and in order to save space, it will not be repeated.

[0066] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the existence of other identical elements in the process, method, article or device including the element.

[0067] In the several embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. The device embodiments described above are only schematic. For example, the division of units is only a logical function division. There may be other division methods in actual implementation, such as: multiple units or components can be combined, or can be integrated into another system, or some features can be ignored or not executed. In addition, the coupling, direct coupling, or communication connection between the components shown or discussed can be through some interfaces, and the indirect coupling or communication connection of devices or units can be electrical, mechanical or other forms.

[0068] The units described above as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units; they may be located in one place or distributed on multiple network units; some or all of the units may be selected according to actual needs to achieve the purpose of the present embodiment.

[0069] In addition, all functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may be a separate unit, or two or more units may be integrated into one unit; the above-mentioned integrated units may be implemented in the form of hardware or in the form of hardware plus software functional units.

[0070] A person skilled in the art can understand that all or part of the steps of implementing the above method embodiment can be completed by hardware related to program instructions, and the aforementioned program can be stored in a computer-readable storage medium. When the program is executed, it executes the steps of the above method embodiment; and the aforementioned storage medium includes: mobile storage devices, read-only memories (ROM), magnetic disks or optical disks, etc., various media that can store program codes.

[0071] Alternatively, if the above-mentioned integrated unit of the present application is implemented in the form of a software function module and sold or used as an independent product, it can also be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the embodiment of the present application can essentially or in other words, the part that contributes to the prior art can be embodied in the form of a software product, which is stored in a storage medium and includes a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute all or part of the methods of each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as mobile storage devices, ROMs, magnetic disks, or optical disks.

[0072] The above are only specific implementations of the present application, but the protection scope of the present application is not limited thereto. Any technician familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.

Claims

1. A model verification method, the method is applied to a blockchain client, the method include: Receive the first endorsement proposal submitted by the training node in the blockchain; Sending the to-be-verified model corresponding to the first endorsement proposal to multiple verification nodes in the blockchain; wherein the to-be-verified model is obtained by training by the training node, and the multiple verification nodes are at least some of the nodes in the blockchain; Receiving verification feedback for the model to be verified sent by each of the verification nodes; Obtaining a verification result according to the received verification feedback, wherein the verification result is used to characterize the quality of the model to be verified; Establishing a block corresponding to the verification result on the blockchain; The step of establishing a block corresponding to the verification result on the blockchain includes: generating a second endorsement proposal according to the verification result; sending the second endorsement proposal to multiple verification nodes in the blockchain; receiving a second read-write set obtained by running a record smart contract for the second endorsement proposal sent by each of the verification nodes; and building a block corresponding to the verification result on the blockchain according to the second read-write set.

2. The method according to claim 1, wherein the verification result is obtained according to the received verification feedback, include: Determining the number of verification feedbacks that meet a first condition in the verification feedbacks; The verification result is obtained according to the number and the total number of the verification feedbacks.

3. The method according to claim 1, wherein the verification feedback include: The verification node runs the verification smart contract to verify the model to be verified to obtain a first read-write set.

4. According to the method of claim 1, the verification feedback is obtained by the verifier verifying the model to be verified based on local data.

5. The method according to claim 1, wherein the block corresponding to the verification result is constructed on the blockchain according to the second read-write set, include: generating an endorsement request corresponding to the verification result according to the second read-write set; The endorsement request is sent to multiple organization nodes of the blockchain, so as to update the blockchain data corresponding to the organization node through each of the organization nodes; wherein the organization node includes at least the training node and multiple verification nodes.

6. The method according to claim 1, wherein include: Determining whether the model to be verified meets a second condition according to the verification result; When it is determined that the model to be verified meets the second condition, the model training task is determined to be completed.

7. The method according to claim 6, wherein the step of determining whether the model to be verified meets a second condition based on the verification result, include: Determine whether a parameter in the verification result used to characterize the quality of the model to be verified reaches a set threshold.

8. A model verification device, the device is applied to a blockchain client, the device include: A first receiving module, used to receive a first endorsement proposal submitted by a training node in the blockchain; An endorsement module, configured to send the to-be-verified model corresponding to the first endorsement proposal to a plurality of verification nodes in the blockchain; wherein the to-be-verified model is obtained by training the training node, and the plurality of verification nodes are at least some of the nodes in the blockchain; A second receiving module is used to receive verification feedback for the model to be verified sent by each verification node; A verification result determination module, used to obtain a verification result according to the received verification feedback, wherein the verification result is used to characterize the quality of the model to be verified; A block building module, used to build a block corresponding to the verification result on the blockchain; The block construction module includes: a proposal generation submodule, used to generate a second endorsement proposal according to the verification result; a sending submodule, used to send the second endorsement proposal to multiple verification nodes in the blockchain; a verification receiving submodule, used to receive the second read-write set obtained by running the record smart contract for the second endorsement proposal sent by each of the verification nodes; and a construction submodule, used to construct a block corresponding to the verification result on the blockchain according to the second read-write set.

9. An electronic device, comprising at least one processor, and at least one memory and a bus connected to the processor; in, The processor and the memory communicate with each other via the bus; The processor is used to call the program instructions in the memory to execute the model verification method according to any one of claims 1 to 7.