A blockchain-based information processing method and device
Using computer models to predict the rationality of the blockchain incentive mechanism and adjust the incentive mechanism solves the problem of unreasonable incentive mechanisms in existing technologies and improves the success rate and benefits of artificial intelligence model training projects.
Patent Information
- Application Number
- CN202011058977.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-09-30
- Publication Date
- 2024-08-27
- Estimated Expiration
- 2040-09-30
AI Technical Summary
In the existing technology, the formulation of blockchain incentive mechanisms lacks objective evaluation methods, resulting in unreasonable incentive mechanisms, affecting the success or failure of artificial intelligence model training projects, and causing huge losses to initiators and participants.
By establishing a computer model, we can predict the rationality of the incentive mechanism in the blockchain, use the profit maximization function and the utility maximization function to solve the data volume, and ensure that the profit and utility of the initiator and participants are maximized, thereby adjusting the incentive mechanism.
It achieves objective evaluation and adjustment of the incentive mechanism, reduces the probability of project failure, and ensures that initiators and participants obtain higher returns from blockchain training artificial intelligence model projects.
Smart Images

Figure CN112348565B
Abstract
Description
Technical Field
[0001] The present application relates to the field of blockchain, and in particular to a blockchain-based information processing method and device. Background Art
[0002] As we all know, artificial intelligence has been developing at a rapid pace driven by information computing and network communications. However, artificial intelligence is obtained through continuous calculation and learning of artificial intelligence models based on large amounts of data, and the quality and scale of artificial intelligence model training data will directly determine the excellence of artificial intelligence.
[0003] Blockchain is an emerging information technology in recent years. In essence, blockchain can be regarded as a shared database, and the data or information stored in it has the characteristics of "unforgeable", "full traceability", "traceability", "openness and transparency", and "collective maintenance". Based on these characteristics, blockchain technology has laid a solid "trust" foundation, created a reliable "cooperation" mechanism, and has broad application prospects.
[0004] As blockchain technology continues to mature, researchers in the field of artificial intelligence are also trying to train more powerful artificial intelligence through data generated by the blockchain market. This approach combines two powerful raw resources: private machine learning, which allows training without revealing sensitive private data, and incentive mechanisms based on blockchain, which allow these systems to attract the best data and models to make them more intelligent. Among them, whether the incentive mechanism is reasonable is a key factor in the success of the entire project.
[0005] Usually these incentive mechanisms are formulated based on human experience and supervisory judgment, and there is no objective evaluation method. By the time the practical results prove that they are unreasonable, it is often too late, and may even lead to the stagnation of the entire project, causing huge losses to both the initiator and the participants.
[0006] Therefore, how to establish and implement a more objective and accurate computer model to predict whether the incentive mechanism in the blockchain is reasonable, and adjust the incentive mechanism based on the evaluation results to ensure that both the initiator and the participants can obtain higher returns, is a crucial technical issue in the related applications of training artificial intelligence models through blockchain technology. Summary of the invention
[0007] In response to the above problems, the present application creatively provides an information processing method and device based on blockchain.
[0008] According to a first aspect of an embodiment of the present application, a blockchain-based information processing method is provided, the method comprising: obtaining a first incentive mechanism to be used in a blockchain for training an artificial intelligence model, the first incentive mechanism comprising a reward currency value given by an initiator to a participant and a distribution strategy for the reward currency value; determining a profit maximization function of the initiator according to the first incentive mechanism, wherein the independent variables of the profit maximization function comprise the reward currency value, the amount of data used by the participant each time participating in training, and the dependent variable of the profit maximization function is the profit obtained by the initiator; determining a utility maximization function of each participant according to the first incentive mechanism, wherein the independent variables of the utility maximization function comprise the reward currency value, the distribution strategy and the amount of data, and the dependent variable of the utility maximization function is the utility value obtained by each participant; inputting the profit maximization function and the utility maximization function into a pre-established computer model to solve the data volume so as to maximize the profit value obtained by the initiator and the utility value obtained by each participant; judging whether the data volume has a solution according to the output of the computer model, if the data volume has a solution, determining to use the first incentive mechanism as the incentive mechanism used in the blockchain, if the data volume has no solution, resetting the reward currency value and the distribution strategy to obtain a second incentive mechanism to be used in the blockchain.
[0009] According to an implementation example of the present application, the profit maximization function of the initiator is determined according to the first incentive mechanism: the profit function of the initiator is determined according to the first incentive mechanism; the first constraint condition that maximizes the profit function is obtained; and the profit maximization function of the initiator is determined according to the profit function and the first constraint condition.
[0010] According to an implementation scheme of the present application, the profit function of the initiator is determined according to the first incentive mechanism, including: determining the model value of the artificial intelligence model and a concave function for obtaining the model value, wherein the independent variables of the concave function include the amount of data; determining a system factor for converting the concave function into a profit value; and determining the profit function of the initiator according to the reward coin value, the concave function and the system factor in the first incentive mechanism.
[0011] According to an implementation of an embodiment of the present application, the first constraint condition includes that the reward currency value is less than or equal to the reward budget value of the initiator.
[0012] According to an implementation scheme of an embodiment of the present application, the utility maximization function of each participant is determined according to a first incentive mechanism, including: determining the utility function of each participant according to the first incentive mechanism; obtaining a second constraint condition that maximizes the utility function of each participant; and determining the utility maximization function of each participant according to the utility function and the second constraint condition.
[0013] According to an implementation scheme of an embodiment of the present application, the utility function of each participant is determined according to a first incentive mechanism, including: determining a first benefit function according to the first incentive mechanism, the independent variables of the first benefit function include the reward currency value, the allocation strategy, the amount of data, the number of trainings, the success probability of creating a new block in the blockchain, and the cost of using data for training, and the dependent variable is the benefit value obtained by the participant for creating a new block; determining a second benefit function according to the first incentive mechanism, the independent variables of the second benefit function include the cost of using data for training, and the dependent variable is the benefit value obtained by each participant for only using data without creating a new block in the blockchain; determining a utility function according to the first benefit function and the second benefit function.
[0014] According to an implementation manner of an embodiment of the present application, the success probability is calculated by a success probability function, wherein the dependent variable of the success probability function includes the number of trainings, and the dependent variable of the success probability function is the success probability.
[0015] According to an implementation scheme of an embodiment of the present application, the success probability is obtained by subtracting the probability of a new block being discarded, wherein the probability of a new block being discarded is calculated based on the average time for creating a new block, the Poisson distribution, and the propagation time for propagating each new block.
[0016] According to an implementation scheme of an embodiment of the present application, the second constraint condition includes that the amount of data is less than or equal to the total amount of data owned by each participant, and the value of the utility function is greater than 0.
[0017] According to the second aspect of the embodiment of the present application, a blockchain-based information processing device includes: a first incentive mechanism acquisition module, which is used to obtain a first incentive mechanism to be used in a blockchain for training an artificial intelligence model, wherein the first incentive mechanism includes a reward currency value given by the initiator to the participant and a distribution strategy for the reward currency value; a profit maximization function determination module, which is used to determine the profit maximization function of the initiator according to the first incentive mechanism, wherein the independent variables of the profit maximization function include the reward currency value and the amount of data used by the participant each time the participant participates in the training, and the dependent variable of the profit maximization function is the profit obtained by the initiator; a utility maximization function determination module, which is used to determine the utility of each participant according to the first incentive mechanism. A maximization function, wherein the independent variables of the utility maximization function include the reward currency value, the allocation strategy and the data volume, and the dependent variable of the utility maximization function is the utility value obtained by each participant; a data volume solving module, used to input the profit maximization function and the utility maximization function into a pre-established computer model to solve the data volume so as to maximize the profit value obtained by the initiator and the utility value obtained by each participant; an incentive mechanism determination module, used to determine whether the data volume has a solution according to the output of the computer model, if the data volume has a solution, determine to use the first incentive mechanism as the incentive mechanism used in the blockchain, if the data volume has no solution, reset the reward currency value and the allocation strategy to obtain the second incentive mechanism to be used in the blockchain.
[0018] The embodiment of the present application provides a method and device for information processing based on blockchain. The method includes: first, obtaining a first incentive mechanism to be used in a blockchain for training an artificial intelligence model, including the reward currency value given by the initiator to the participant and the distribution strategy of the reward currency value; then, determining the profit maximization function of the initiator and the utility maximization function of each participant according to the first incentive mechanism; then, inputting the profit maximization function and the utility maximization function into a pre-established computer model to solve the data volume so as to maximize the profit value obtained by the initiator and the utility value obtained by each participant; then, judging whether the data volume has a solution according to the output of the computer model, if the data volume has a solution, it can be determined that the incentive mechanism is reasonable, if there is no solution, the reward currency value and the distribution strategy are reset until a reasonable incentive mechanism is found. It can be seen that the method uses a pre-established computer model to predict whether the incentive mechanism to be used is reasonable. This prediction is more accurate and objective than the subjective judgment based on human experience, and the values of various incentive factors in the incentive mechanism can be adjusted according to the prediction results, and then repeated verification is performed until an incentive mechanism with a better prediction result is found. In this way, it is ensured to the greatest extent possible that both the initiator and the participants can obtain higher returns in the project of training artificial intelligence models through blockchain, and the probability of project failure due to unreasonable incentive mechanism is greatly reduced.
[0019] 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
[0020] 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 easily understood. In the accompanying drawings, several embodiments of the present application are shown in an exemplary and non-limiting manner, wherein:
[0021] In the drawings, the same or corresponding reference numerals represent the same or corresponding parts.
[0022] Figure 1 This is a schematic diagram of an application scenario of the information processing method based on blockchain in an embodiment of the present application;
[0023] Figure 2 This is a schematic diagram of the implementation process of the information processing method based on blockchain in an embodiment of the present application;
[0024] Figure 3 This is a schematic diagram of the composition structure of the information processing device based on blockchain in an embodiment of the present application. DETAILED DESCRIPTION
[0025] In order to make the purpose, features, and advantages of the present application more obvious and easy to understand, the technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present application.
[0026] 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.
[0027] 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.
[0028] Figure 1 The following is a schematic diagram showing an application scenario of the information processing method based on blockchain in an embodiment of the present application. Figure 1 As shown, the information processing method based on blockchain in the embodiment of the present application is mainly used in the scenario of training artificial intelligence models using blockchain.
[0029] In this scenario, the community maintains a blockchain of an artificial intelligence model that solves a specific problem. If a participant trains to obtain a better model, a new block will be generated after voting by other participants. Each participant can conduct collaborative training without disclosing their own data.
[0030] In order to encourage community members to actively use their own data to participate in training, the initiator of the AI model training task will formulate an incentive mechanism, including the reward currency value given to the participants and the distribution strategy of the reward currency value, and publish it to the blockchain. Before using private data to train the AI model, each participant (for example, AI model training task participant 1, AI model training task participant 2, and AI model training task participant n) will evaluate the cost of using private data and decide how much data to use for the maximum benefit based on the reward currency value and the distribution strategy of the reward currency value in the incentive mechanism. After determining this amount of data, the AI model will be trained using this amount of private data.
[0031] The inventor of this application found that in this process, the generation of each new block is similar to a game process. The task initiator hopes to give the participants as little reward as possible, and the participants can use as much data as possible; on the contrary, the task participants hope to give participants as much reward as possible, and the participants can use as little data as possible. Therefore, in the process of project promotion, the "prisoner's dilemma" problem generated in this game process is often not well solved, that is, because the initiator and the participants, or even the distrust between the participants, leads to the loss of each other's interests and no motivation to promote the project.
[0032] Therefore, the inventor of the present application thought that if a computer model that can solve the game problem can be established to evaluate the incentive mechanism, and based on the output of the computer model, it can be predicted whether the incentive mechanism can find a balance point that can benefit both the initiator and the participant of the training task, so as to better solve the problem of the "prisoner's dilemma". If such a balance point cannot be found, the incentive mechanism is adjusted. If such a balance point can be found, the incentive mechanism is officially put into use. In this way, unreasonable incentive mechanisms can be eliminated in advance to avoid economic losses to all parties caused by the "prisoner's dilemma", effectively reduce the probability of project failure, and promote participants to actively participate in model training, and task initiators will also actively invest in the trained model.
[0033] Based on the above invention ideas, the embodiments of the present application provide a blockchain-based information processing method and device, which are applied before the initiator of the artificial intelligence model training task formulates an incentive mechanism to ensure that the incentive mechanism formulated by the initiator is a reasonable incentive mechanism.
[0034] Figure 2 The following is a schematic diagram showing the implementation process of the information processing method based on blockchain in the embodiment of the present application. Figure 2 The method includes: operation 210, obtaining a first incentive mechanism to be used in the blockchain for training the artificial intelligence model, the first incentive mechanism including the reward currency value given by the initiator to the participant and the distribution strategy of the reward currency value; operation 220, determining the profit maximization function of the initiator according to the first incentive mechanism, wherein the independent variables of the profit maximization function include the reward currency value and the amount of data used by the participant each time participating in the training, and the dependent variable of the profit maximization function is the profit obtained by the initiator; operation 230, determining the utility maximization function of each participant according to the first incentive mechanism, wherein the independent variables of the utility maximization function include Including reward currency value, allocation strategy and data volume, the dependent variable of the utility maximization function is the utility value obtained by each participant; operation 240, inputting the profit maximization function and the utility maximization function into a pre-established computer model to solve the data volume so as to maximize the profit value obtained by the initiator and the utility value obtained by each participant; operation 250, judging whether the data volume has a solution according to the output of the computer model, if the data volume has a solution, determining to use the first incentive mechanism as the incentive mechanism used in the blockchain, if the data volume has no solution, resetting the reward currency value and the allocation strategy to obtain the second incentive mechanism to be used in the blockchain.
[0035] In operation 210, the first incentive mechanism is an incentive mechanism to be used in the blockchain for training the artificial intelligence model. The earliest first incentive mechanism is often formulated based on expert advice or manual experience.
[0036] In the information processing method based on blockchain in the embodiment of the present application, this incentive mechanism is an incentive mechanism to be judged. Only after it is determined through judgment that the incentive mechanism can enable both the initiator and the participants to obtain greater profits and solve the problem of the "prisoner's dilemma", will it be officially put into use, thereby playing a predictive role and taking measures in advance to avoid possible problems and losses after implementation.
[0037] In the blockchain for training AI models, the incentive mechanism mainly refers to a mechanism for rewarding participants who use private data to train AI models and improve AI models based on training results. It mainly includes the reward currency value that can be used for rewards and the distribution strategy of the reward currency value.
[0038] Among them, the reward currency value mainly refers to a digital currency used to measure virtual assets. In the specific implementation of the blockchain, these reward currencies can be mapped as a token as an asset for transmission and authentication in the blockchain network.
[0039] The reward currency allocation strategy mainly refers to how to allocate the reward currency among the various participants who use private data to train the AI model, and reasonably allocate the reward currency value to each improvement of the AI model. Specifically, it mainly refers to the symbols, operation expressions, or combinations of symbols and expressions that can be recognized and verified by computers.
[0040] For example, some participants only use private data to verify each improvement of the AI model, but do not propose improvement suggestions for the existing model; while some participants not only use private data to verify each improvement of the AI model, but also actively propose improvement suggestions for the existing model, and broadcast the improved AI model to the blockchain network for verification, and submit the improved AI model after verification; in order to encourage more participants to participate in the improvement of the AI model, different allocation strategies can be formulated for different types of participants, and the allocation of reward coins can be more favorable to participants who have made improvements to the AI model.
[0041] In addition, once the total amount of reward coins is determined, it will not be easily changed, and these reward coins need to be reasonably allocated to each improvement. In this allocation process, it can be evenly allocated to each improvement, or it can be allocated in proportion to the degree of improvement of each improvement process.
[0042] In operation 220, the profit of the initiator mainly refers to the income obtained by the initiator through the blockchain participants using private data to train the artificial intelligence model minus the reward currency value given by the initiator to the participants. Since the private data of many participants have greatly expanded the training data available for the artificial intelligence model, the accuracy of the artificial intelligence model will also be improved accordingly. The economic benefits generated by putting the artificial intelligence model with improved accuracy into use will also be improved, which is the income of the initiator. Usually, in order to compare with the reward currency value, the income that the initiator may obtain due to the improvement of the accuracy of the artificial intelligence model will also be converted into the currency value of the measured virtual asset.
[0043] In the information processing method based on blockchain in the embodiment of the present application, the profit maximization function is mainly implemented through a computer program and according to the calculation formula specified by the implementer. Specifically, this profit maximization function can be a functional function, a script or a module in the computer program, or an expression or a combination of multiple expressions containing certain computer variables in the computer program, or any other applicable implementation method.
[0044] Generally, the improvement in the accuracy of an AI model is often closely related to the amount of data used by the participants. Therefore, the reward currency value and the amount of data used by the participants in each training session can be used as independent variables of the profit maximization function.
[0045] In operation 230, the utility of each participant mainly refers to the benefits and advantages that each participant can obtain after deducting the cost of using private data from the benefits that each participant can obtain when using private data for artificial intelligence model training. Among them, the benefits that the participant can obtain mainly refer to the reward currency value given to the participant by the initiator and the dividends that may be obtained after the artificial intelligence model is put into use, and the cost of using data mainly refers to the cost of processing data and the human, financial and time costs of using data for artificial intelligence training.
[0046] In the information processing method based on blockchain in the embodiment of the present application, the utility maximization function is mainly implemented through a computer program and according to the calculation formula specified by the implementer. Specifically, this utility maximization function can be a functional function, a script or a module in the computer program, or an expression or a combination of multiple expressions containing certain computer variables in the computer program, or any other applicable implementation method.
[0047] As mentioned above, the utility of the participants using private data for artificial intelligence models is closely related to the reward value given by the initiator, the allocation strategy formulated by the initiator, and the amount of data. Therefore, the reward value, allocation strategy, and data volume can be used as independent variables of the utility maximization function.
[0048] Operations 220 and 230 convert the profits that the initiator can obtain and the utilities that the participants can obtain into digital representations that can be recognized and calculated by computers, providing a data basis and evaluation basis for the prediction of the incentive mechanism.
[0049] In operation 240, the pre-established computer model is implemented according to certain rules or specified algorithms, and uses the powerful information processing capabilities of the computer to perform calculations to obtain analysis and prediction results of the information.
[0050] In the process of studying the use of supply chain for artificial intelligence model training, the inventor of the present application found that the relationship and behavior pattern between the initiator and the participants of the artificial intelligence model training task are very similar to the relationship and behavior pattern between the output leader and the output follower in the Stahlberg model in game theory. Therefore, in one embodiment adopted by the inventor of the present application, the computer model is implemented based on the Stahlberg model, and a good implementation effect is achieved.
[0051] Since computer models can be reused for different inputs in the same application scenario, and the output results for the same input are also repeatable when the model remains unchanged, it is more efficient and objective than manual judgment. Moreover, since computers have powerful information processing capabilities, more complex and accurate formulas can be used for calculations when modeling, which can also greatly improve the accuracy of judgment.
[0052] In operation 250, the pre-established computer model will solve the data volume that can maximize the profit value obtained by the initiator and the utility value obtained by each participant based on the profit maximization function and the utility maximization function, and output the data volume.
[0053] This amount of data is usually a point that balances the profit value obtained by the initiator and the utility value obtained by each participant, for example, the Nash equilibrium point in the Starberg model.
[0054] However, there is not always a solution to this data volume. Under various factors such as the value of the reward currency, the amount of data of the participants, and the cost of using the data, there may not be a data volume that can make both the initiator and the participants profitable. In the case of no solution to the data volume, it means that the proposed incentive mechanism is likely to cause the economic interests of the initiator or participant of the training task to be damaged, and ultimately lead to the project being unable to move forward and stagnating.
[0055] At this point, the unreasonable incentive mechanism can be abandoned early, and the reward currency value or distribution rate can be reset as the second incentive mechanism, and the above process can be repeated until a solution is obtained that maximizes the profit value obtained by the initiator and the utility value obtained by each participant. In this way, it is possible to ensure that both the initiator and the participant can obtain higher returns in the project of training artificial intelligence models through blockchain, and greatly reduce the probability of project failure due to unreasonable incentive mechanism.
[0056] In addition, if this amount of data has a solution, not only can the proposed incentive mechanism be predicted as a reasonable incentive mechanism, but the amount of data can also be used as a reference value or guidance value for the participants in the training task to decide how much private data to use.
[0057] According to an implementation example of the present application, the profit maximization function of the initiator is determined according to the first incentive mechanism: the profit function of the initiator is determined according to the first incentive mechanism; the first constraint condition that maximizes the profit function is obtained; and the profit maximization function of the initiator is determined according to the profit function and the first constraint condition.
[0058] In this embodiment, the specific representation of the profit function is not limited, and the implementer can determine it by himself based on the implementation conditions and the operating logic and operation method of the blockchain, as well as the specific content of the first incentive mechanism.
[0059] According to an implementation scheme of the present application, the profit function of the initiator is determined according to the first incentive mechanism, including: determining the model value of the artificial intelligence model and a concave function for obtaining the model value, wherein the independent variables of the concave function include the amount of data; determining a system factor for converting the concave function into a profit value; and determining the profit function of the initiator according to the reward coin value, the concave function and the system factor in the first incentive mechanism.
[0060] Among them, the model value of the artificial intelligence model mainly refers to a value that can represent the use value of the artificial intelligence model and the probability of obtaining benefits, for example, the accuracy of the artificial intelligence model. A concave function is a type of mathematical model, and in mathematics, a concave function is the opposite of a convex function. Although the model value is closely related to how much benefit the artificial intelligence model can obtain from its application, it is not equivalent to this benefit value. The system factor is a coefficient that represents the relationship between the model value and the specific benefit conversion. This coefficient, that is, the value of the system factor, is usually a value calculated based on historical statistical data.
[0061] According to an implementation of an embodiment of the present application, the first constraint condition includes that the reward currency value is less than or equal to the reward budget value of the initiator.
[0062] The reward issuance value refers to the estimated reward budget value that the initiator can issue. In the blockchain, this reward budget value is mainly specified by planning to issue reward coins.
[0063] The above implementation method is implemented by the inventor of this application based on the artificial intelligence model used by the inventor to train the blockchain, and it has been verified to be an implementation method with better results.
[0064] According to an implementation scheme of an embodiment of the present application, the utility maximization function of each participant is determined according to a first incentive mechanism, including: determining the utility function of each participant according to the first incentive mechanism; obtaining a second constraint condition that maximizes the utility function of each participant; and determining the utility maximization function of each participant according to the utility function and the second constraint condition.
[0065] In this embodiment, the specific representation of the utility function is not limited, and the implementer can determine it based on the implementation conditions and the operating logic and operation method of the blockchain, as well as the specific content of the first incentive mechanism.
[0066] According to an implementation scheme of an embodiment of the present application, the utility function of each participant is determined according to a first incentive mechanism, including: determining a first benefit function according to the first incentive mechanism, the independent variables of the first benefit function include the reward currency value, the allocation strategy, the amount of data, the number of trainings, the success probability of creating a new block in the blockchain, and the cost of using data for training, and the dependent variable is the benefit value obtained by the participant for creating a new block; determining a second benefit function according to the first incentive mechanism, the independent variables of the second benefit function include the cost of using data for training, and the dependent variable is the benefit value obtained by each participant for only using data without creating a new block in the blockchain; determining a utility function according to the first benefit function and the second benefit function.
[0067] In this embodiment, a distinction is made between participants who only use data without creating new blocks in the blockchain and participants who improve the artificial intelligence model and create new blocks on the blockchain, and different utility functions are used to incentivize more participants to improve the artificial intelligence model.
[0068] According to an implementation manner of an embodiment of the present application, the success probability is calculated by a success probability function, wherein the dependent variable of the success probability function includes the number of trainings, and the dependent variable of the success probability function is the success probability.
[0069] According to an implementation scheme of an embodiment of the present application, the success probability is obtained by subtracting the probability of a new block being discarded, wherein the probability of a new block being discarded is calculated based on the average time for creating a new block, the Poisson distribution, and the propagation time for propagating each new block.
[0070] According to an implementation scheme of an embodiment of the present application, the second constraint condition includes that the amount of data is less than or equal to the total amount of data owned by each participant, and the value of the utility function is greater than 0.
[0071] The above implementation method is implemented by the inventor of this application based on the artificial intelligence model used by the inventor to train the blockchain, and it has been verified to be an implementation method with better results.
[0072] The following takes an embodiment of the present application as an example to explain in detail the various functions used in this embodiment of the present invention and how to calculate a balance that can enable both the initiator and the participants to obtain higher benefits.
[0073] In this embodiment, the following function E is used as the profit of the task initiator:
[0074] E(R)=δh(i∈Tx_i)-R
[0075] Where T is the number of transactions in the block, x_i is the amount of data used to train the parameters in transaction i, δ>0 is the system factor, and h(·) is a concave function with respect to the amount of training data.
[0076] Accordingly, the profit maximization function of the task initiator can be expressed as:
[0077]
[0078] In this embodiment, the following utility function is used as the utility function of the participants:
[0079]
[0080] Among them, c i is the unit cost, P i is the probability that participant i successfully mines a block and reaches consensus, t i is the number of transactions of participant i (each transaction contains a parameter), T is the average number of transactions in a block, and X is the average amount of training data for each transaction in a block.
[0081] Among them, αR is the first profit function for the block creator, and the remaining (1-α)R is shared with the second profit function of the participants whose parameters are integrated by the block creator.
[0082] The process of mining blocks consists of two steps, mining and propagation. During mining, the probability P of participant i mining a block is iIt is proportional to its relative data volume and the number of transactions. However, even if a participant mines a valid block, if the participant chooses to propagate a large block, then the block may be discarded due to delays. Taking this fact into account, the probability of participant i successfully mining a block needs to be subtracted from the probability of the new block being discarded P orphan (t i ), therefore, the probability of participant i successfully mining a block can be expressed as:
[0083]
[0084] Among them, f(t i ) is the function of the comprehensive transaction. Assume that this function is linear, that is, f(t i )=κt i , κ>0 is a given delay factor.
[0085] According to the Poisson distribution of block mining time, the average value is λ, and the probability of being discarded is approximately:
[0086]
[0087] Among them, g(t i ) is the block propagation time, which is positively correlated with the block size. Assume that this function is linear, that is, g(t i )=τt i , τ>0 is a given delay factor.
[0088] Substituting the above success probability into the above utility function, the final participant utility function can be expressed as:
[0089]
[0090] In this embodiment, according to the utilities of the participants in the above example, the maximization function of the participant utility can be expressed as:
[0091]
[0092] If there is a Nash equilibrium point in the Stargberg game between the task initiator and the participant, it means that the incentive mechanism is reasonable. According to the Stargberg game theory, the only Nash equilibrium point can be found to exist in:
[0093]
[0094] It should be noted that the above embodiment is only an illustrative description and is not intended to limit the implementation method.
[0095] Furthermore, the embodiment of the present application also provides an information processing device based on blockchain. Figure 3As shown, the device 30 includes: a first incentive mechanism acquisition module 301, which is used to acquire a first incentive mechanism to be used in a blockchain for training an artificial intelligence model, wherein the first incentive mechanism includes a reward currency value given by the initiator to the participant and a distribution strategy for the reward currency value; a profit maximization function determination module 302, which is used to determine the profit maximization function of the initiator according to the first incentive mechanism, wherein the independent variables of the profit maximization function include the reward currency value and the amount of data used by the participant each time to participate in the training, and the dependent variable of the profit maximization function is the profit obtained by the initiator; a utility maximization function determination module 303, which is used to determine the utility maximization function of each participant according to the first incentive mechanism, wherein the utility The independent variables of the maximization function include the reward currency value, the allocation strategy and the data volume, and the dependent variable of the utility maximization function is the utility value obtained by each participant; the data volume solving module 304 is used to input the profit maximization function and the utility maximization function into a pre-established computer model to solve the data volume so as to maximize the profit value obtained by the initiator and the utility value obtained by each participant; the incentive mechanism determination module 305 is used to determine whether the data volume has a solution based on the output of the computer model. If the data volume has a solution, then determine to use the first incentive mechanism as the incentive mechanism used in the blockchain. If the data volume has no solution, then reset the reward currency value and the allocation strategy to obtain the second incentive mechanism to be used in the blockchain.
[0096] According to an implementation mode of an embodiment of the present application, the profit maximization function determination module 302 includes: a profit function determination submodule, used to determine the profit function of the initiator according to the first incentive mechanism; a first constraint condition acquisition submodule, used to obtain the first constraint condition that maximizes the profit function; a profit maximization function determination submodule, used to determine the profit maximization function of the initiator according to the profit function and the first constraint condition.
[0097] According to an implementation scheme of the present application, the profit function determination submodule includes: a model value and concave function determination unit, which is used to determine the model value of the artificial intelligence model and the concave function for obtaining the model value, wherein the independent variable of the concave function includes the data volume; a system factor determination unit, which is used to determine the system factor for converting the concave function into a profit value; and a profit function determination unit, which is used to determine the profit function of the initiator based on the reward currency value, the concave function and the system factor in the first incentive mechanism.
[0098] According to an implementation mode of an embodiment of the present application, the utility maximization function determination module 303 includes: a utility function determination submodule, which is used to determine the utility function of each participant according to the first incentive mechanism; a second constraint condition acquisition submodule, which is used to obtain the second constraint condition that maximizes the utility function of each participant; and a utility maximization function determination submodule, which is used to determine the utility maximization function of each participant according to the utility function and the second constraint condition.
[0099] According to an implementation manner of an embodiment of the present application, the utility function determination submodule includes: a first benefit function determination unit, which is used to determine the first benefit function according to the first incentive mechanism, the independent variables of the first benefit function include the reward currency value, the allocation strategy, the amount of data, the number of training times, the success probability of creating a new block in the blockchain and the cost of using data for training, and the dependent variable is the benefit value obtained by the participant for creating a new block; a second benefit function determination unit, which is used to determine the second benefit function according to the first incentive mechanism, the independent variables of the second benefit function include the cost of using data for training, and the dependent variable is the benefit value obtained by each participant for only using data without creating a new block in the blockchain; a utility function determination unit, which is used to determine the utility function according to the first benefit function and the second benefit function.
[0100] According to an implementation scheme of the present application, the first profit function determination unit includes a success probability calculation subunit, which is specifically used to obtain the success probability through calculation of a success probability function, wherein the dependent variable of the success probability function includes the number of trainings, and the dependent variable of the success probability function is the success probability.
[0101] According to an implementation manner of an embodiment of the present application, the success probability calculation subunit is specifically used to subtract the probability of a new block being discarded to obtain the success probability, wherein the probability of a new block being discarded is calculated based on the average time for creating a new block, the Poisson distribution, and the propagation time for propagating each new block.
[0102] It should be pointed out here that the above description of the information processing device embodiment based on blockchain is similar to the description of the aforementioned method embodiment, and has similar beneficial effects as the aforementioned method embodiment, so it will not be repeated. For the technical details that have not been disclosed in the description of the information processing device embodiment based on blockchain in this application, please refer to the description of the aforementioned method embodiment of this application for understanding, and in order to save space, it will not be repeated.
[0103] 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.
[0104] 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 device, 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.
[0105] 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.
[0106] 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.
[0107] 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 medium, read-only memory (ROM), disk or optical disk, etc. Various media that can store program codes.
[0108] 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 be essentially or partly reflected in the form of a software product that contributes to the prior art. The computer software product is stored in a storage medium, including several instructions to enable a computer device (which can be a personal computer, server, or 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 media, ROM, magnetic disks or optical disks.
[0109] 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 blockchain-based information processing method, the method comprising: Obtaining a first incentive mechanism to be used in a blockchain for training an artificial intelligence model, wherein the first incentive mechanism includes a reward currency value given by an initiator to a participant and a distribution strategy for the reward currency value; Determine the profit maximization function of the initiator according to the first incentive mechanism, wherein the independent variables of the profit maximization function include the reward currency value and the amount of data used by the participant in each training, and the dependent variable of the profit maximization function is the profit obtained by the initiator; Determine a utility maximization function for each participant according to the first incentive mechanism, wherein the independent variables of the utility maximization function include the reward currency value, the allocation strategy and the data volume, and the dependent variable of the utility maximization function is the utility value obtained by each participant; Inputting the profit maximization function and the utility maximization function into a pre-established computer model to solve the data volume to maximize the profit value obtained by the initiator and the utility value obtained by each participant; Based on the output of the computer model, determine whether the data volume has a solution. If the data volume has a solution, determine to use the first incentive mechanism as the incentive mechanism used in the blockchain. If the data volume has no solution, reset the reward coin value and the allocation strategy to obtain the second incentive mechanism to be used in the blockchain.
2. The method according to claim 1, wherein the profit maximization function of the initiator is determined according to the first incentive mechanism: Determining a profit function of the initiator according to the first incentive mechanism; Obtaining a first constraint condition that maximizes the profit function; The profit maximization function of the initiator is determined according to the profit function and the first constraint condition.
3. The method according to claim 2, wherein determining the profit function of the initiator according to the first incentive mechanism comprises: Determining a model value of the artificial intelligence model and obtaining a concave function of the model value, wherein the independent variable of the concave function includes the data amount; determining a system factor for converting the concave function into a benefit value; The profit function of the initiator is determined according to the reward currency value in the first incentive mechanism, the concave function and the system factor. 4 . The method according to claim 2 , wherein the first constraint condition includes that the reward currency value is less than or equal to the reward budget value of the initiator.
5. The method according to claim 1, wherein determining the utility maximization function of each participant according to the first incentive mechanism comprises: Determining a utility function of each participant according to the first incentive mechanism; Obtaining a second constraint condition that maximizes the utility function of each participant; The utility maximization function of each participant is determined according to the utility function and the second constraint condition.
6. The method according to claim 5, wherein determining the utility function of each participant according to the first incentive mechanism comprises: Determine a first profit function according to the first incentive mechanism, the independent variables of the first profit function include the reward currency value, the allocation strategy, the data volume, the number of training times, the success probability of creating a new block in the blockchain, and the cost of using data for training, and the dependent variable is the profit value obtained by the participant from creating a new block; Determine a second revenue function according to the first incentive mechanism, wherein the independent variable of the second revenue function includes the cost of using the data for training, and the dependent variable is the revenue value obtained by each participant by only using the data without creating a new block in the blockchain; The utility function is determined according to the first benefit function and the second benefit function.
7. The method according to claim 6, wherein the success probability is calculated by a success probability function, wherein: The dependent variable of the success probability function includes the number of trainings, and the dependent variable of the success probability function is the success probability.
8. The method according to claim 7, wherein the success probability is obtained by subtracting the probability that the new block is discarded, wherein: The probability of the new block being discarded is calculated based on the average time of creating the new block, Poisson distribution, and the propagation time of propagating each new block.
9. According to the method of claim 5, the second constraint condition includes that the amount of data is less than or equal to the total amount of data owned by each participant, and the value of the utility function is greater than 0.
10. An information processing device based on blockchain, the device comprising: A first incentive mechanism acquisition module, used to acquire a first incentive mechanism to be used in the blockchain for training the artificial intelligence model, wherein the first incentive mechanism includes a reward currency value given by the initiator to the participant and a distribution strategy for the reward currency value; A profit maximization function determination module, used to determine the profit maximization function of the initiator according to the first incentive mechanism, wherein the independent variables of the profit maximization function include the reward currency value and the amount of data used by the participant each time participating in the training, and the dependent variable of the profit maximization function is the profit obtained by the initiator; A utility maximization function determination module, used to determine the utility maximization function of each participant according to the first incentive mechanism, wherein the independent variables of the utility maximization function include the reward currency value, the allocation strategy and the data volume, and the dependent variable of the utility maximization function is the utility value obtained by each participant; A data volume solving module, used for inputting the profit maximization function and the utility maximization function into a pre-established computer model to solve the data volume so as to maximize the profit value obtained by the initiator and the utility value obtained by each participant; The incentive mechanism determination module is used to determine whether the data volume has a solution based on the output of the computer model. If the data volume has a solution, determine to use the first incentive mechanism as the incentive mechanism used in the blockchain. If the data volume has no solution, reset the reward currency value and the allocation strategy to obtain a second incentive mechanism to be used in the blockchain.
