CN111858752A - Artificial intelligence training method and device based on block chain and storage medium - Google Patents

Artificial intelligence training method and device based on block chain and storage medium Download PDF

Info

Publication number
CN111858752A
CN111858752A CN202010624141.6A CN202010624141A CN111858752A CN 111858752 A CN111858752 A CN 111858752A CN 202010624141 A CN202010624141 A CN 202010624141A CN 111858752 A CN111858752 A CN 111858752A
Authority
CN
China
Prior art keywords
training
node
model parameters
blockchain network
accounting
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202010624141.6A
Other languages
Chinese (zh)
Inventor
路成业
王凌
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Iallchain Co Ltd
Original Assignee
Iallchain Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Iallchain Co Ltd filed Critical Iallchain Co Ltd
Priority to CN202010624141.6A priority Critical patent/CN111858752A/en
Publication of CN111858752A publication Critical patent/CN111858752A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/27Replication, distribution or synchronisation of data between databases or within a distributed database system; Distributed database system architectures therefor
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06NCOMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
    • G06N20/00Machine learning

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Data Mining & Analysis (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Computing Systems (AREA)
  • Software Systems (AREA)
  • Artificial Intelligence (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Evolutionary Computation (AREA)
  • Medical Informatics (AREA)
  • Mathematical Physics (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The embodiment of the invention provides an artificial intelligence training method and equipment based on a block chain and a storage medium. According to the embodiment of the invention, the AI training task is broadcasted in the blockchain network by the AI training task initiating node, so that the AI training nodes with computing resources in the blockchain network can adopt the computing resources to carry out model training to obtain model parameters, and further, the AI training nodes can also broadcast the model parameters to the blockchain network. That is to say, idle computing resources can be integrated through the blockchain network for model training, for example, an AI training task is issued on the blockchain network, so that nodes with computing resources or training samples in the blockchain network can jointly complete the AI training task, thereby not only saving the cost for constructing a large-scale computer cluster, but also improving the utilization rate of the computing resources.

Description

Artificial intelligence training method and device based on block chain and storage medium
Technical Field
The embodiment of the invention relates to the technical field of communication, in particular to an artificial intelligence training method and device based on a block chain and a storage medium.
Background
With the continuous development of Artificial Intelligence (AI) technology, AI technology can be applied in many fields, for example, in model training such as speech recognition and machine translation.
Typically, one AI training requires a large amount of computation. For example, one model training for speech recognition may involve floating point calculations for 20E Flops, and one model training for machine translation may involve floating point calculations for 10E Flops or even hundreds of EFlops. Often a very large computer cluster needs to be built in order to complete an AI training. The cost of building large-scale computer clusters is high.
Disclosure of Invention
The embodiment of the invention provides an artificial intelligence training method, equipment and a storage medium based on a block chain, which are used for saving the cost for constructing a large-scale computer cluster and improving the utilization rate of computing resources.
In a first aspect, an embodiment of the present invention provides an artificial intelligence training method based on a blockchain, including:
the method comprises the steps that an AI training task broadcasted by an AI training task initiating node in a blockchain network is received by an AI training node, wherein the AI training task comprises a training result detection sample and a training result rewarding scheme;
The AI training node performs model training by adopting a computing resource corresponding to the AI training node to obtain model parameters;
the AI training node broadcasts the model parameters to the blockchain network so that a billing node in the blockchain network verifies the model parameters according to the training result detection samples;
wherein the AI training node, the AI training task initiating node, and the accounting node are participating nodes in the blockchain network.
In a second aspect, an embodiment of the present invention provides an artificial intelligence training method based on a blockchain, including:
the method comprises the steps that an accounting node receives an AI training task broadcasted by an AI training task initiating node in a block chain network, wherein the AI training task comprises a training result detection sample and a training result rewarding scheme;
the accounting node receives model parameters broadcast by an AI training node in the blockchain network;
the accounting node verifies the model parameters according to the training result detection samples;
if the model parameters pass the verification, the accounting node determines reward information obtained by the AI training node according to the training result reward scheme;
The accounting node writes the reward information into a block chain account book;
wherein the AI training node, the AI training task initiating node, and the accounting node are participating nodes in the blockchain network.
In a third aspect, an embodiment of the present invention provides an AI training node, including:
a memory;
a processor;
a communication interface; and
a computer program;
wherein the computer program is stored in the memory and configured to be executed by the processor to:
receiving an AI training task broadcasted by an AI training task initiating node in a blockchain network through the communication interface, wherein the AI training task comprises a training result detection sample and a training result rewarding scheme;
performing model training by adopting computing resources corresponding to the AI training nodes to obtain model parameters;
broadcasting the model parameters to the blockchain network through the communication interface so that a billing node in the blockchain network verifies the model parameters according to the training result detection sample;
wherein the AI training node, the AI training task initiating node, and the accounting node are participating nodes in the blockchain network.
In a fourth aspect, an embodiment of the present invention provides an accounting node, including:
a memory;
a processor;
a communication interface; and
a computer program;
wherein the computer program is stored in the memory and configured to be executed by the processor to:
receiving an AI training task broadcasted by an AI training task initiating node in a blockchain network through the communication interface, wherein the AI training task comprises a training result detection sample and a training result rewarding scheme;
receiving model parameters broadcasted by an AI training node in the block chain network through the communication interface;
verifying the model parameters according to the training result detection sample;
if the model parameters pass the verification, determining reward information obtained by the AI training node according to the training result reward scheme;
writing the reward information into a block chain account book;
wherein the AI training node, the AI training task initiating node, and the accounting node are participating nodes in the blockchain network.
In a fifth aspect, an embodiment of the present invention provides a computer-readable storage medium, on which a computer program is stored, the computer program being executed by a processor to implement the method of the first aspect.
According to the artificial intelligence training method, the artificial intelligence training equipment and the artificial intelligence training storage medium based on the block chain, an AI training task is broadcasted in a block chain network through an AI training task initiating node, so that AI training nodes with computing resources in the block chain network can adopt the computing resources of the AI training nodes to carry out model training to obtain model parameters, and further, the AI training nodes can also broadcast the model parameters to the block chain network. That is to say, idle computing resources can be integrated through the blockchain network for model training, for example, an AI training task is issued on the blockchain network, so that nodes with computing resources or training samples in the blockchain network can jointly complete the AI training task, thereby not only saving the cost for constructing a large-scale computer cluster, but also improving the utilization rate of the computing resources.
Drawings
Fig. 1 is a schematic diagram of an application scenario provided in an embodiment of the present invention;
FIG. 2 is a flowchart of a block chain-based artificial intelligence training method according to an embodiment of the present invention;
FIG. 3 is a flowchart of a block chain-based artificial intelligence training method according to another embodiment of the present invention;
Fig. 4 is a schematic structural diagram of an AI training node according to an embodiment of the present invention;
fig. 5 is a schematic structural diagram of an accounting node according to an embodiment of the present invention.
With the foregoing drawings in mind, certain embodiments of the disclosure have been shown and described in more detail below. These drawings and written description are not intended to limit the scope of the disclosed concepts in any way, but rather to illustrate the concepts of the disclosure to those skilled in the art by reference to specific embodiments.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the exemplary embodiments below are not intended to represent all implementations consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present disclosure, as detailed in the appended claims.
The artificial intelligence training method based on the block chain provided by the embodiment of the invention can be applied to the communication system shown in figure 1. As shown in fig. 1, the communication system includes: the node comprises an AI training task initiating node, an AI training node and a billing node, wherein the AI training task initiating node, the AI training node and the billing node are participating nodes in a block chain network. It is understood that the description is only illustrative and does not limit the number and types of nodes in the blockchain network. The accounting node can be one or a plurality of cloud servers, the cloud servers are a server cluster, a plurality of servers are arranged, the server cluster is similar to a universal computer framework, and the cloud servers comprise processors, hard disks, memories, system buses and the like. The AI training task initiating node or the AI training node may specifically be a user terminal, for example, a smartphone, a tablet computer, a personal computer, or the like. In addition, in the present embodiment, the blockchain network is a decentralized, peer-to-peer (P2P) communication network.
The embodiment of the invention provides an artificial intelligence training method based on a block chain, and aims to solve the technical problems in the prior art.
The following describes the technical solutions of the present invention and how to solve the above technical problems with specific embodiments. The following several specific embodiments may be combined with each other, and details of the same or similar concepts or processes may not be repeated in some embodiments. Embodiments of the present invention will be described below with reference to the accompanying drawings.
Fig. 2 is a flowchart of an artificial intelligence training method based on a blockchain according to an embodiment of the present invention. The embodiment of the invention provides an artificial intelligence training method based on a block chain aiming at the technical problems in the prior art, which comprises the following specific steps:
step 201, an AI training node receives an AI training task broadcasted by an AI training task initiating node in a blockchain network, wherein the AI training task comprises a training result detection sample and a training result rewarding scheme.
As shown in fig. 1, an AI training task initiating node may broadcast an AI training task in a blockchain network, where the AI training task is used to request an AI training node in the blockchain network to train a model, so as to obtain model parameters of the model. The AI training task may specifically correspond to an intelligent contract white paper, and specifically, the AI training task initiating node may broadcast the intelligent contract white paper corresponding to the AI training task in the blockchain network. In a specific implementation manner, the AI training task initiating node may sign the intelligent contract white paper by using its own private key, and broadcast the intelligent contract white paper signed by the private key to the blockchain network.
Specifically, the intelligent contract white paper may include a training result detection sample or a link and a training result reward scheme corresponding to the training result detection sample. The training result detection sample is specifically used for verifying a training result, and the training result may be specifically a trained model parameter. The embodiment does not limit the specific form and content of the training result rewarding scheme. For example, the training outcome reward scheme may include at least one of: completing model training within a preset time after an AI training task initiating node issues the AI training task to obtain reward money of the first N AI training nodes of the model parameters; the accuracy of the model parameters obtained after model training is completed is greater than or equal to 95% of the reward amount of the AI training nodes; the correct rate of the model parameters obtained after model training is completed is greater than or equal to 90% of the reward amount of the AI training nodes; the billing rewards available to the first billing node that meets the minimum criteria. In particular, the reward amount or billing reward may be Token. In addition, the AI training task initiating node or the accounting node can lock the reward amount or the accounting reward related to the training result reward scheme.
Specifically, after the AI training task initiating node broadcasts the intelligent contract white paper corresponding to the AI training task in the blockchain network, the AI training node and the billing node may receive the intelligent contract white paper corresponding to the AI training task from the blockchain network.
Step 202, the AI training node performs model training by using the computing resource corresponding to the AI training node to obtain model parameters.
After the AI training node receives the intelligent contract white paper corresponding to the AI training task from the blockchain network, the AI training node may start a computing resource corresponding to the AI training node, where the computing resource may specifically be a Graphics Processing Unit (GPU) computing cluster. Specifically, the AI training node may perform model training according to the GPU computing cluster, and obtain trained model parameters.
Optionally, the AI training node performs model training by using the computing resource corresponding to the AI training node to obtain model parameters, including: and loading a training sample by the AI training node, and performing model training by adopting a computing resource corresponding to the AI training node to obtain the model parameters.
For example, after the AI training node receives the intelligent contract white paper corresponding to the AI training task from the blockchain network, the AI training node may load a training sample, where the training sample may be a training sample locally stored by the AI training node, or a training sample broadcasted by other nodes in the blockchain network according to the AI training task and matched with the AI training task. Further, the AI training node can start a GPU computing cluster, and long-time model training is carried out on the training sample by adopting the GPU computing cluster to obtain model parameters.
And 203, broadcasting the model parameters to the blockchain network by the AI training node so that the accounting node in the blockchain network verifies the model parameters according to the training result detection sample.
Wherein the AI training node, the AI training task initiating node, and the accounting node are participating nodes in the blockchain network.
After the AI training node performs model training to obtain model parameters, the model parameters can also be broadcast to the blockchain network. In some embodiments, if the AI training node determines that the AI training node has a model parameter corresponding to the AI training task locally when receiving the intelligent contract white paper corresponding to the AI training task, the AI training node may directly broadcast the existing model parameter to the blockchain network.
The accounting node in the blockchain network can record the information broadcast by the AI training node and the AI training task initiating node in the blockchain network, and the accounting node can obtain corresponding accounting rewards in the recording process. When the accounting node receives the model parameters broadcast by an AI training node in the blockchain network, the accounting node can verify the accuracy of the model parameters according to training result detection samples included in the intelligent contract white paper. When the accuracy of the model parameter satisfies the training result reward scheme, the AI training node may obtain the corresponding reward amount, that is, the accounting node may record the reward amount that the AI training node can obtain in the blockchain account book.
Optionally, after the AI training task initiating node issues the AI training task, the AI training task initiating node may also broadcast the expiration time in the blockchain network at any time. And when the accounting node receives the expiration time, verifying the accuracy of the model parameters according to training result detection samples included in the intelligent contract white paper. Optionally, the accounting node is not limited to verify the correctness of the model parameter according to the training result detection sample included in the intelligent contract white paper when receiving the expiration time. The accounting node can also verify the correctness of the model parameters in advance according to training result detection samples included in the intelligent contract white paper before the expiration time.
According to the embodiment of the invention, the AI training task is broadcasted in the blockchain network by the AI training task initiating node, so that the AI training nodes with computing resources in the blockchain network can adopt the computing resources to carry out model training to obtain model parameters, and further, the AI training nodes can also broadcast the model parameters to the blockchain network. That is to say, idle computing resources can be integrated through the blockchain network for model training, for example, an AI training task is issued on the blockchain network, so that nodes with computing resources or training samples in the blockchain network can jointly complete the AI training task, thereby not only saving the cost for constructing a large-scale computer cluster, but also improving the utilization rate of the computing resources.
Fig. 3 is a flowchart of an artificial intelligence training method based on a blockchain according to another embodiment of the present invention. On the basis of the foregoing embodiment, the artificial intelligence training method based on the blockchain provided in this embodiment specifically includes the following steps:
step 301, the accounting node receives an AI training task broadcasted by an AI training task initiating node in the blockchain network, wherein the AI training task comprises a training result detection sample and a training result rewarding scheme.
As shown in fig. 1, an AI training task initiating node may broadcast an AI training task in a blockchain network, where the AI training task is used to request an AI training node in the blockchain network to train a model, so as to obtain model parameters of the model. The AI training task may specifically correspond to an intelligent contract white paper, and specifically, the AI training task initiating node may broadcast the intelligent contract white paper corresponding to the AI training task in the blockchain network. In a specific implementation manner, the AI training task initiating node may sign the intelligent contract white paper by using its own private key, and broadcast the intelligent contract white paper signed by the private key to the blockchain network.
Specifically, the intelligent contract white paper may include a training result detection sample or a link and a training result reward scheme corresponding to the training result detection sample. The training result detection sample is specifically used for verifying a training result, and the training result may be specifically a trained model parameter. The embodiment does not limit the specific form and content of the training result rewarding scheme. For example, the training outcome reward scheme may include at least one of: completing model training within a preset time after an AI training task initiating node issues the AI training task to obtain reward money of the first N AI training nodes of the model parameters; the accuracy of the model parameters obtained after model training is completed is greater than or equal to 95% of the reward amount of the AI training nodes; the correct rate of the model parameters obtained after model training is completed is greater than or equal to 90% of the reward amount of the AI training nodes; the billing rewards available to the first billing node that meets the minimum criteria. In particular, the reward amount or billing reward may be Token. In addition, the AI training task initiating node or the accounting node can lock the reward amount or the accounting reward related to the training result reward scheme.
Specifically, after the AI training task initiating node broadcasts the intelligent contract white paper corresponding to the AI training task in the blockchain network, the AI training node and the billing node may receive the intelligent contract white paper corresponding to the AI training task from the blockchain network.
Step 302, the accounting node receives model parameters broadcast by an AI training node in the blockchain network.
After the AI training node receives the intelligent contract white paper corresponding to the AI training task from the blockchain network, the AI training node may start a computing resource corresponding to the AI training node, where the computing resource may specifically be a Graphics Processing Unit (GPU) computing cluster. Specifically, the AI training node may perform model training according to the GPU computing cluster, and obtain trained model parameters. Further, the AI training node may also broadcast the model parameters into the blockchain network so that accounting nodes in the blockchain network may receive the model parameters.
And step 303, the accounting node verifies the model parameters according to the training result detection samples.
The accounting node in the blockchain network can record the information broadcast by the AI training node and the AI training task initiating node in the blockchain network, and the accounting node can obtain corresponding accounting rewards in the recording process. When the accounting node receives the model parameters broadcast by an AI training node in the blockchain network, the accounting node can verify the accuracy of the model parameters according to training result detection samples included in the intelligent contract white paper. When the accuracy of the model parameter satisfies the training result reward scheme, the AI training node may obtain the corresponding reward amount, that is, the accounting node may record the reward amount that the AI training node can obtain in the blockchain account book.
Optionally, the verifying the model parameters by the accounting node according to the training result detection sample includes: and when the accounting node receives the expiration time broadcast by the AI training task initiating node in the blockchain network, the accounting node verifies the model parameters according to the training result detection sample.
For example, after an AI training task initiating node issues the AI training task, the AI training task initiating node may also broadcast an expiration time in the blockchain network at any time. And when the accounting node receives the expiration time, verifying the accuracy of the model parameters according to training result detection samples included in the intelligent contract white paper. Optionally, the accounting node is not limited to verify the correctness of the model parameter according to the training result detection sample included in the intelligent contract white paper when receiving the expiration time. The accounting node can also verify the correctness of the model parameters in advance according to training result detection samples included in the intelligent contract white paper before the expiration time.
And 304, if the model parameters pass the verification, the accounting node determines reward information obtained by the AI training node according to the training result reward scheme.
And 305, writing the reward information into a block chain account book by the accounting node.
For example, when the accuracy of the model parameters satisfies the training result reward scheme as described above, the AI training node may obtain the corresponding reward amount, i.e., the accounting node may record the reward amount that the AI training node can obtain in the blockchain account book.
Wherein the AI training node, the AI training task initiating node, and the accounting node are participating nodes in the blockchain network.
Optionally, the verifying the model parameters by the accounting node according to the training result detection sample includes: the accounting node verifies the model parameters according to the training result detection samples to obtain verification results; the method further comprises the following steps: and the accounting node sends the verification result to other accounting nodes in the block chain network so as to enable the other accounting nodes to verify the verification result.
In particular, a plurality of accounting nodes, e.g., accounting node a and accounting node B, may be included in the blockchain network. After the accounting node a verifies the model parameters broadcast by an AI training node, the corresponding verification result may also be sent to other accounting nodes, for example, accounting node B. Accounting node B may verify the verification result of accounting node a. If accounting node B determines that the validation of accounting node A is incorrect, accounting node B may regenerate the reward record based on the rate of correctness of the model parameters validated by accounting node B. If the accounting node B determines that the result of the verification by the accounting node a is correct, the accounting node B may perform the generation of the next block on this basis.
Optionally, the AI training task initiating node may not lock its Token. The Token for rewarding AI training nodes and billing nodes in the blockchain network may be blockchain self-generated. That is, the blockchain may be a commonweal blockchain. Specifically, the model parameters obtained by training the AI training node may be shared with the participating nodes in the blockchain network.
According to the embodiment of the invention, the AI training task is broadcasted in the blockchain network by the AI training task initiating node, so that the AI training nodes with computing resources in the blockchain network can adopt the computing resources to carry out model training to obtain model parameters, and further, the AI training nodes can also broadcast the model parameters to the blockchain network. That is to say, idle computing resources can be integrated through the blockchain network for model training, for example, an AI training task is issued on the blockchain network, so that nodes with computing resources or training samples in the blockchain network can jointly complete the AI training task, thereby not only saving the cost for constructing a large-scale computer cluster, but also improving the utilization rate of the computing resources.
Fig. 4 is a schematic structural diagram of an AI training node according to an embodiment of the present invention. As shown in fig. 4, the AI training node 40 may execute the processing procedure provided by the artificial intelligence training method based on the block chain, and includes: memory 41, processor 42, computer programs and communication interface 43; wherein the computer program is stored in the memory 41 and is configured to be executed by the processor 42 for: receiving an AI training task broadcasted by an AI training task initiating node in a blockchain network through the communication interface, wherein the AI training task comprises a training result detection sample and a training result rewarding scheme; performing model training by adopting computing resources corresponding to the AI training nodes to obtain model parameters; broadcasting the model parameters to the blockchain network through the communication interface so that a billing node in the blockchain network verifies the model parameters according to the training result detection sample; wherein the AI training node, the AI training task initiating node, and the accounting node are participating nodes in the blockchain network.
Optionally, the processor 42 performs model training by using the computing resource corresponding to the AI training node, and when obtaining the model parameter, is specifically configured to: and loading a training sample, and performing model training by adopting a computing resource corresponding to the AI training node to obtain the model parameters.
The AI training node in the embodiment shown in fig. 4 may be used to implement the technical solution of the above method embodiment, and the implementation principle and technical effect are similar, which are not described herein again.
Fig. 5 is a schematic structural diagram of an accounting node according to an embodiment of the present invention. The accounting node provided in the embodiment of the present invention may execute the processing flow provided in the embodiment of the artificial intelligence training method based on the block chain, as shown in fig. 5, the accounting node 50 includes: memory 51, processor 52, computer programs and communication interface 53; wherein the computer program is stored in the memory 51 and is configured to be executed by the processor 52 for: receiving an AI training task broadcasted by an AI training task initiating node in a blockchain network through the communication interface, wherein the AI training task comprises a training result detection sample and a training result rewarding scheme; receiving model parameters broadcasted by an AI training node in the block chain network through the communication interface; verifying the model parameters according to the training result detection sample; if the model parameters pass the verification, determining reward information obtained by the AI training node according to the training result reward scheme; writing the reward information into a block chain account book; wherein the AI training node, the AI training task initiating node, and the accounting node are participating nodes in the blockchain network.
Optionally, when the processor 52 verifies the model parameter according to the training result detection sample, the processor is specifically configured to: and when the expiration time broadcast by the AI training task initiating node in the blockchain network is received through the communication interface, verifying the model parameters according to the training result detection sample.
Optionally, when the processor 52 verifies the model parameter according to the training result detection sample, the processor is specifically configured to: verifying the model parameters according to the training result detection sample to obtain a verification result; the processor 52 is further configured to: and sending the verification result to other accounting nodes in the block chain network through the communication interface so as to enable the other accounting nodes to verify the verification result.
The accounting node of the embodiment shown in fig. 5 may be configured to implement the technical solution of the above method embodiment, and the implementation principle and the technical effect are similar, and are not described herein again.
In addition, an embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored, where the computer program is executed by a processor to implement the artificial intelligence training method based on a blockchain described in the foregoing embodiment.
In the embodiments provided in the present invention, it should be understood that the disclosed apparatus and method may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the units is only one logical division, and other divisions may be realized in practice, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, or in a form of hardware plus a software functional unit.
The integrated unit implemented in the form of a software functional unit may be stored in a computer readable storage medium. The software functional unit is stored in a storage medium and includes several instructions to enable a computer device (which may be a personal computer, a server, or a network device) or a processor (processor) to execute some steps of the methods according to the embodiments of the present invention. And the aforementioned storage medium includes: various media capable of storing program codes, such as a usb disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk.
It is obvious to those skilled in the art that, for convenience and simplicity of description, the foregoing division of the functional modules is merely used as an example, and in practical applications, the above function distribution may be performed by different functional modules according to needs, that is, the internal structure of the device is divided into different functional modules to perform all or part of the above described functions. For the specific working process of the device described above, reference may be made to the corresponding process in the foregoing method embodiment, which is not described herein again.
Finally, it should be noted that: the above embodiments are only used to illustrate the technical solution of the present invention, and not to limit the same; while the invention has been described in detail and with reference to the foregoing embodiments, it will be understood by those skilled in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some or all of the technical features may be equivalently replaced; and the modifications or the substitutions do not make the essence of the corresponding technical solutions depart from the scope of the technical solutions of the embodiments of the present invention.

Claims (11)

1. An artificial intelligence training method based on a block chain is characterized by comprising the following steps:
the method comprises the steps that an AI training task broadcasted by an AI training task initiating node in a blockchain network is received by an AI training node, wherein the AI training task comprises a training result detection sample and a training result rewarding scheme;
the AI training node performs model training by adopting a computing resource corresponding to the AI training node to obtain model parameters;
the AI training node broadcasts the model parameters to the blockchain network so that a billing node in the blockchain network verifies the model parameters according to the training result detection samples;
Wherein the AI training node, the AI training task initiating node, and the accounting node are participating nodes in the blockchain network.
2. The method of claim 1, wherein the AI training node performs model training using the computational resources corresponding to the AI training node to obtain model parameters, comprising:
and loading a training sample by the AI training node, and performing model training by adopting a computing resource corresponding to the AI training node to obtain the model parameters.
3. An artificial intelligence training method based on a block chain is characterized by comprising the following steps:
the method comprises the steps that an accounting node receives an AI training task broadcasted by an AI training task initiating node in a block chain network, wherein the AI training task comprises a training result detection sample and a training result rewarding scheme;
the accounting node receives model parameters broadcast by an AI training node in the blockchain network;
the accounting node verifies the model parameters according to the training result detection samples;
if the model parameters pass the verification, the accounting node determines reward information obtained by the AI training node according to the training result reward scheme;
The accounting node writes the reward information into a block chain account book;
wherein the AI training node, the AI training task initiating node, and the accounting node are participating nodes in the blockchain network.
4. The method of claim 3, wherein the billing node verifies the model parameters according to the training result detection samples, comprising:
and when the accounting node receives the expiration time broadcast by the AI training task initiating node in the blockchain network, the accounting node verifies the model parameters according to the training result detection sample.
5. The method of claim 3 or 4, wherein the verifying the model parameters by the accounting node according to the training result detection sample comprises:
the accounting node verifies the model parameters according to the training result detection samples to obtain verification results;
the method further comprises the following steps:
and the accounting node sends the verification result to other accounting nodes in the block chain network so as to enable the other accounting nodes to verify the verification result.
6. An AI training node, comprising:
A memory;
a processor;
a communication interface; and
a computer program;
wherein the computer program is stored in the memory and configured to be executed by the processor to:
receiving an AI training task broadcasted by an AI training task initiating node in a blockchain network through the communication interface, wherein the AI training task comprises a training result detection sample and a training result rewarding scheme;
performing model training by adopting computing resources corresponding to the AI training nodes to obtain model parameters;
broadcasting the model parameters to the blockchain network through the communication interface so that a billing node in the blockchain network verifies the model parameters according to the training result detection sample;
wherein the AI training node, the AI training task initiating node, and the accounting node are participating nodes in the blockchain network.
7. The AI training node of claim 6, wherein the processor performs model training using computing resources corresponding to the AI training node, and when obtaining model parameters, is specifically configured to:
and loading a training sample, and performing model training by adopting a computing resource corresponding to the AI training node to obtain the model parameters.
8. An accounting node, comprising:
a memory;
a processor;
a communication interface; and
a computer program;
wherein the computer program is stored in the memory and configured to be executed by the processor to:
receiving an AI training task broadcasted by an AI training task initiating node in a blockchain network through the communication interface, wherein the AI training task comprises a training result detection sample and a training result rewarding scheme;
receiving model parameters broadcasted by an AI training node in the block chain network through the communication interface;
verifying the model parameters according to the training result detection sample;
if the model parameters pass the verification, determining reward information obtained by the AI training node according to the training result reward scheme;
writing the reward information into a block chain account book;
wherein the AI training node, the AI training task initiating node, and the accounting node are participating nodes in the blockchain network.
9. The accounting node of claim 8, wherein the processor, when validating the model parameters according to the training result detection samples, is specifically configured to:
And when the expiration time broadcast by the AI training task initiating node in the blockchain network is received through the communication interface, verifying the model parameters according to the training result detection sample.
10. An accounting node according to claim 8 or 9, wherein the processor, when verifying the model parameters according to the training result detection samples, is specifically configured to:
verifying the model parameters according to the training result detection sample to obtain a verification result;
the processor is further configured to:
and sending the verification result to other accounting nodes in the block chain network through the communication interface so as to enable the other accounting nodes to verify the verification result.
11. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the method according to any one of claims 1-5.
CN202010624141.6A 2020-06-30 2020-06-30 Artificial intelligence training method and device based on block chain and storage medium Pending CN111858752A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010624141.6A CN111858752A (en) 2020-06-30 2020-06-30 Artificial intelligence training method and device based on block chain and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010624141.6A CN111858752A (en) 2020-06-30 2020-06-30 Artificial intelligence training method and device based on block chain and storage medium

Publications (1)

Publication Number Publication Date
CN111858752A true CN111858752A (en) 2020-10-30

Family

ID=72988972

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010624141.6A Pending CN111858752A (en) 2020-06-30 2020-06-30 Artificial intelligence training method and device based on block chain and storage medium

Country Status (1)

Country Link
CN (1) CN111858752A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113792347A (en) * 2021-08-24 2021-12-14 上海点融信息科技有限责任公司 Block chain-based federal learning method, device, equipment and storage medium
CN114244835A (en) * 2021-11-19 2022-03-25 海南火链科技有限公司 Decentralized self-adaptive collaborative training method and device based on block chain

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107864198A (en) * 2017-11-07 2018-03-30 济南浪潮高新科技投资发展有限公司 A kind of block chain common recognition method based on deep learning training mission
CN108323200A (en) * 2018-01-25 2018-07-24 深圳前海达闼云端智能科技有限公司 Data training method and device based on block chain, storage medium and block chain link points
CN110619317A (en) * 2019-09-26 2019-12-27 联想(北京)有限公司 Model training method, model training device and electronic equipment
CN111125784A (en) * 2019-12-24 2020-05-08 山东爱城市网信息技术有限公司 Artificial intelligence training model method, device and medium based on block chain

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107864198A (en) * 2017-11-07 2018-03-30 济南浪潮高新科技投资发展有限公司 A kind of block chain common recognition method based on deep learning training mission
CN108323200A (en) * 2018-01-25 2018-07-24 深圳前海达闼云端智能科技有限公司 Data training method and device based on block chain, storage medium and block chain link points
CN110619317A (en) * 2019-09-26 2019-12-27 联想(北京)有限公司 Model training method, model training device and electronic equipment
CN111125784A (en) * 2019-12-24 2020-05-08 山东爱城市网信息技术有限公司 Artificial intelligence training model method, device and medium based on block chain

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113792347A (en) * 2021-08-24 2021-12-14 上海点融信息科技有限责任公司 Block chain-based federal learning method, device, equipment and storage medium
CN113792347B (en) * 2021-08-24 2023-09-26 上海点融信息科技有限责任公司 Federal learning method, device, equipment and storage medium based on block chain
CN114244835A (en) * 2021-11-19 2022-03-25 海南火链科技有限公司 Decentralized self-adaptive collaborative training method and device based on block chain
CN114244835B (en) * 2021-11-19 2023-09-29 海南火链科技有限公司 Block chain-based decentralization self-adaptive collaborative training method and device

Similar Documents

Publication Publication Date Title
CN109102287B (en) Block chain accounting method, device, equipment and storage medium
US9934138B1 (en) Application testing on a blockchain
US10061684B2 (en) Enhanced service validation
CN108170612B (en) Automatic testing method and device and server
CN112346859B (en) Resource scheduling method and device, electronic equipment and storage medium
CN112073269B (en) Block chain network testing method, device, server and storage medium
CN109063049B (en) Account processing method, device, equipment and storage medium of block chain network
CN109583594B (en) Deep learning training method, device, equipment and readable storage medium
CN107153646B (en) Data processing method and equipment
CN111858752A (en) Artificial intelligence training method and device based on block chain and storage medium
CN107944063B (en) News recommendation method and system based on topic model and user group
CN112183668A (en) Method and device for training service models in parallel
CN109325744B (en) Payment processing method, payment processing device, payment processing medium and electronic equipment
CN113949697B (en) Data distribution method, device, electronic equipment and storage medium
CN112767135A (en) Rule engine configuration method and device, storage medium and computer equipment
CN112767133A (en) Service decision method and device, storage medium and computer equipment
CN111858753B (en) Training parameter processing method, device and storage medium based on block chain
CN107704568A (en) A kind of method and device of test data addition
CN106796587B (en) Method and system for verifying analysis results
CN111858755A (en) Processing method, node and medium for AI training task based on block chain
CN115186305B (en) Method for constructing data element model and producing data element
JP6542397B2 (en) Content testing during image production
CN115460265A (en) Interface calling method, device, equipment and medium
CN112148470B (en) Parameter synchronization method, computer device and readable storage medium
CN116402366A (en) Data contribution evaluation method and device based on joint learning

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination