Computing power service method, computing power service acquisition method and electronic equipment

By introducing an intermediate service platform and zero-knowledge proof mechanism into the computing power network, the model data consistency and hash value of computing power nodes is solved, and the problem of loss of equity in the point-to-point computing power network is provided, and reliable computing power services are provided and transaction guarantee.

CN119232384APending Publication Date: 2024-12-31ZTE CORP
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310784045.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-06-28
Publication Date
2024-12-31

AI Technical Summary

Technical Problem

In a point-to-point computing power network, since the task initiator and the computing power node are usually equal and distrust each other, the damage to the rights is common. For example, the computing power node does not calculate according to the regulations and the reward is not paid, the task initiation is initiated. The issue of the party's intentional dissatisfaction and refusal to pay.

Method used

Through the intermediate service platform, zero-knowledge proof and hash value verification mechanism are used to ensure that the model data trained by the computing power node is consistent with the model data used during testing, and pass hash value verification before delivery of model data to avoid loss of both parties' rights and interests .

Benefits of technology

It provides reliable computing power services, protects the rights and interests of both parties to the transaction, prevents the computing power node from failing to calculate according to regulations and the task initiator deliberately dissatisfied and refuses to pay, and improves the credibility and transparency of the transaction.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119232384A_ABST
    Figure CN119232384A_ABST
Patent Text Reader

Abstract

The invention provides a computing power service method, a computing power service acquisition method and electronic equipment, the computing power service method ensures that a prediction result is output by a first target model according to a test data set by verifying zero-knowledge proof, so that a client can test the first target model under the condition that model data is not acquired, and the test efficiency is improved. According to the computing power service method, it is avoided that a client deliberately puts forward dissatisfaction of a computing result, payment remuneration is refused under the condition that model data meeting regulations are obtained, meanwhile, the computing power service method verifies zero-knowledge proof to prove that model data used in computing power node testing is the same as model data obtained through training, and the computing power node testing efficiency is improved. And the model data is verified again before the model data is delivered, so that the inconsistency between the model data used by the computing node during testing and the model data obtained by training is avoided, the inconsistency between the model data received by the client and the model data used during testing is avoided, the rights and interests of both transaction parties in the computing power service are guaranteed, and the reliable computing power service is provided.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of machine learning technology, and in particular to a computing power service method, a computing power service acquisition method, and an electronic device. Background Art

[0002] The computing network is a computing platform based on distributed systems and blockchain technology. In the current computing network system, computing nodes usually complete the computing tasks of machine learning training, and then transmit the specific data of the trained model to the task initiator, who then tests the model to evaluate the completion of the computing task.

[0003] However, in a peer-to-peer computing network, since the task initiator and the computing node are usually equal and do not trust each other, the rights and interests of both parties to the transaction may be damaged. For example, when the computing power reward transaction occurs before the task initiator obtains the calculation result, the computing node may not perform the calculation according to regulations. When the computing power reward transaction occurs after the task initiator obtains the calculation result, the task initiator may deliberately express dissatisfaction with the calculation result and refuse to pay the reward when the computing power result meets the regulations.

[0004] Therefore, how to provide reliable algorithm services and protect the rights and interests of both parties in computing power transactions is a technical problem that needs to be solved urgently in this field. Summary of the invention

[0005] The embodiments of the present application provide a computing power service method, a computing power service acquisition method, and an electronic device, which can provide reliable algorithm services and protect the rights and interests of both parties to a computing power transaction.

[0006] In a first aspect, an embodiment of the present application provides a computing power service method, which is applied to an intermediate service platform, and the method includes:

[0007] Obtain the training data set and model description data of the model training task initiated by the client;

[0008] Generate a corresponding zero-knowledge proof circuit, encryption key and decryption key according to the model description data;

[0009] Sending the training data set, the model description data, the zero-knowledge proof circuit, and the encryption key to a computing power node, so that the computing power node obtains a first target model through training according to the training data set and the model description data, and determines a first hash value corresponding to the first target model;

[0010] Acquire a test data set of the model training task, and send the test data set to the computing power node, so that the computing power node uses the zero-knowledge proof circuit and the encryption key to process the model data of the first target model and the test data set to obtain the corresponding zero-knowledge proof, the prediction result corresponding to the test data set, and the first hash value corresponding to the first target model, wherein the zero-knowledge proof is used to prove that the prediction result is output by the first target model according to the test data set;

[0011] When the zero-knowledge proof is verified, obtaining model data of the first target model from the computing power node, wherein the zero-knowledge proof is verified by the decryption key, the test data set, the prediction result, and the first hash value;

[0012] A second Hash value is determined according to the model data, and when the first Hash value is equal to the second Hash value, the model data is sent to the client.

[0013] In a second aspect, an embodiment of the present application provides a computing power service method, which is applied to a computing power node, and the method includes:

[0014] Obtain the training data set and model description data corresponding to the model training task from the intermediate service platform;

[0015] Train the first target model according to the training data set and the model description data;

[0016] Obtaining a zero-knowledge proof circuit, an encryption key, and a test data set from the intermediate service platform;

[0017] Processing the model data of the first target model and the test data set by using the zero-knowledge proof circuit and the encryption key to obtain a corresponding zero-knowledge proof, a prediction result corresponding to the test data set, and a first hash value corresponding to the first target model, wherein the zero-knowledge proof is used to prove that the prediction result is output by the first target model according to the test data set;

[0018] The zero-knowledge proof, the prediction result and the first hash value are sent to the intermediate service platform.

[0019] In a third aspect, an embodiment of the present application provides a method for obtaining a computing power service, which is applied to a client, and the method includes:

[0020] Sending a training data set and model description data of a model training task to an intermediate service platform, so that the intermediate service platform generates a corresponding zero-knowledge proof circuit, an encryption key, and a decryption key according to the model description data; the intermediate service platform sends the training data set, the model description data, the zero-knowledge proof circuit, and the encryption key to a computing power node, so that the computing power node obtains a first target model through training according to the training data set and the model description data;

[0021] Sending a test data set of the model training task to the intermediate service platform, so that the intermediate service platform sends the test data set to the computing power node, so that the computing power node uses the zero-knowledge proof circuit and the encryption key to process the model data of the first target model and the test data set to obtain the corresponding zero-knowledge proof, the prediction result corresponding to the test data set, and the first hash value corresponding to the first target model, the zero-knowledge proof is used to prove that the prediction result is output by the first target model according to the test data set, and the zero-knowledge proof is verified by the decryption key, the test data set, the prediction result and the first hash value;

[0022] Receive the model data of the first target model obtained by the intermediate service platform from the computing power node when the zero-knowledge proof is verified, and the second hash value of the received model data is equal to the first hash value.

[0023] In a fourth aspect, an embodiment of the present application provides an electronic device, including:

[0024] one or more processors;

[0025] A memory having one or more programs stored thereon, wherein when the one or more programs are executed by the one or more processors, the one or more processors implement the computing power service method as described in the first aspect, or the computing power service method as described in the second aspect, or the computing power service acquisition method as described in the third aspect.

[0026] In a fifth aspect, an embodiment of the present application provides a computer-readable storage medium having a computer program stored thereon. When the computer program is executed by a processor, the computing power service method as described in the first aspect, or the computing power service method as described in the second aspect, or the computing power service acquisition method as described in the third aspect is implemented.

[0027] The embodiments of the present application provide a computing power service method, a computing power service acquisition method, and an electronic device. On the one hand, the intermediate service platform generates a corresponding zero-knowledge proof circuit, an encryption key, and a decryption key according to the model description data. After the computing power platform trains to obtain the first target model, it generates a zero-knowledge proof, a prediction result corresponding to the test data set, and a first hash value corresponding to the first target model according to the first target model, a test data set, an encryption key, and a zero-knowledge proof circuit. By verifying the zero-knowledge proof to ensure that the prediction result is output by the first target model according to the test data set, the client can test the first target model without knowing the model data. The computing power node completes the model training task. After that, there is no need to transmit the trained model data of the first target model to the client, so as to avoid the client deliberately expressing dissatisfaction with the calculation results and refusing to pay the remuneration when obtaining model data that meets the requirements; on the other hand, by verifying the zero-knowledge proof to prove that the model data used in the computing power node test is the same as the model data obtained in training, and before delivering the model data to the client, the intermediate service platform verifies the model data again through the hash value to avoid the inconsistency between the model data used by the computing node in the test and the model data obtained in the training, and the inconsistency between the model data received by the client and the model data used in the test, so as to protect the rights and interests of both parties in the transaction in the computing power service and provide reliable computing power services. BRIEF DESCRIPTION OF THE DRAWINGS

[0028] The accompanying drawings are used to provide further understanding of the technical solution of the present application and constitute a part of the specification. Together with the embodiments of the present application, they are used to explain the technical solution of the present application and do not constitute a limitation on the technical solution of the present application.

[0029] Figure 1 This is an architecture diagram of an intermediate service platform and computing power nodes provided by an embodiment of the present application;

[0030] Figure 2 It is a deployment structure diagram of a computing service provided by an embodiment of the present application;

[0031] Figure 3 It is a flowchart of a computing power service method provided by an embodiment of the present application;

[0032] Figure 4 yes Figure 3 Schematic diagram of the sub-step flow chart of step S350;

[0033] Figure 5 yes Figure 3 Schematic diagram of the sub-step flow chart of step S320;

[0034] Figure 6 It is a flowchart of a computing power service method provided by an embodiment of the present application;

[0035] Figure 7 It is a flowchart of a computing power service method provided by an embodiment of the present application;

[0036] Figure 8 It is a flowchart of a method for obtaining computing power services provided by an embodiment of the present application;

[0037] Fig. 9 It is a flowchart of a method for obtaining computing power services provided by an embodiment of the present application;

[0038] Fig.10 It is a schematic diagram of a flow chart of model prediction provided by an embodiment of the present application;

[0039] Fig.11 This is a flow chart of a computing power network system providing computing power services according to an embodiment of the present application;

[0040] Fig.12 It is a structural schematic diagram of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0041] In order to enable technicians in this field to better understand the technical solution of the present application, the computing power service method, computing power service acquisition method, electronic device, and computer-readable storage medium provided by the present application are described in detail below in conjunction with the accompanying drawings.

[0042] The exemplary embodiments will be described more fully below with reference to the accompanying drawings, but the described exemplary embodiments may be embodied in different forms and should not be construed as being limited to the embodiments set forth herein. On the contrary, the purpose of providing these embodiments is to make this application thorough and complete and to enable those skilled in the art to fully understand the scope of this application.

[0043] As used herein, the term "and / or" includes any and all combinations of one or more of the associated listed items.

[0044] The terms used herein are only used to describe specific embodiments and are not intended to limit the present application. As used herein, the singular forms "a", "an" and "the" are also intended to include the plural forms, unless the context clearly indicates otherwise. It will also be understood that when the terms "comprising" and / or "made of" are used in this specification, the presence of features, wholes, steps, operations, elements and / or components is specified, but the presence or addition of one or more other features, wholes, steps, operations, elements, components and / or groups thereof is not excluded.

[0045] In the following description, reference is made to “some embodiments”, which describe a subset of all possible embodiments, but it will be understood that “some embodiments” may be the same subset or different subsets of all possible embodiments and may be combined with each other without conflict.

[0046] Unless otherwise defined, all terms (including technical and scientific terms) used herein have the same meaning as those commonly understood by those of ordinary skill in the art. It will also be understood that terms such as those defined in common dictionaries should be interpreted as having a meaning consistent with their meaning in the context of the relevant art and the present application, and will not be interpreted as having an idealized or excessive formal meaning, unless clearly defined in the present application examples.

[0047] The computing network is a computing platform based on distributed systems and blockchain technology. In the current computing network system, computing nodes usually complete the computing tasks of machine learning training, and then transmit the specific data of the trained model to the task initiator, who then tests the model to evaluate the completion of the computing task.

[0048] However, in a peer-to-peer computing network, since the task initiator and the computing node are usually equal and do not trust each other, the rights and interests of both parties to the transaction may be damaged. For example, when the computing power reward transaction occurs before the task initiator obtains the calculation result, the computing node may not perform the calculation according to regulations. When the computing power reward transaction occurs after the task initiator obtains the calculation result, the task initiator may deliberately express dissatisfaction with the calculation result and refuse to pay the reward when the computing power result meets the regulations.

[0049] Therefore, how to provide reliable algorithm services and protect the rights and interests of both parties in computing power transactions is a technical problem that needs to be solved urgently in this field.

[0050] Based on this, the embodiments of the present application provide a computing power service method, a computing power service acquisition method and an electronic device, which can provide reliable algorithm services and protect the rights and interests of both parties to the computing power transaction.

[0051] Before introducing the technical solution of the embodiment of the present application, the application scenario of the embodiment of the present application is first exemplified. Figure 1 , Figure 1 is an architecture diagram of an intermediate service platform and computing nodes provided by an embodiment of the present application, wherein, Figure 1 As shown in the figure, the intermediate service platform includes the application layer, the management layer and the support layer. The application layer is responsible for computing power registration, computing power trading, computing power matching and computing power verification, while the management layer is responsible for task management, task scheduling, resource management and model management. The support layer includes blockchain engine and zero-knowledge engine. The computing power node includes the access layer, the device layer and the resource layer. The access layer includes the proxy gateway, the device layer includes machine learning, zero-knowledge proof and other contents, and the resource layer includes data resources, computing power resources, operator resources and other contents. Please refer to Figure 2 , Figure 2This is a diagram of the computing service deployment structure provided by an embodiment of the present application, such as Figure 2 As shown in the figure, in the computing service deployment, the intermediate service platform is responsible for part of the computing content in the computing service and manages and coordinates each computing node. Each computing node accepts the management and coordination of the intermediate service platform through the proxy gateway, and completes the computing task through device management, computing equipment, resource access and resource coordination.

[0052] See also Figure 3 , Figure 3 is a flow chart of a computing power service method provided by an embodiment of the present application. The computing power service method is applied to an intermediate service platform, such as Figure 3 As shown, the computing power service method provided in the embodiment of the present application includes but is not limited to steps S310 to S360, and steps S310 to S360 are described below.

[0053] Step S310, obtaining the training data set and model description data of the model training task initiated by the client.

[0054] In a specific embodiment, the model description data is Keras code. Keras is an advanced neural network application programming interface (Application Programming Interface, API). By calling the API, the client can build various deep learning models, including fully connected, convolutional, recurrent and hybrid models.

[0055] Step S320, generating corresponding zero-knowledge proof circuit, encryption key and decryption key according to the model description data.

[0056] It is understandable that zero-knowledge proof is used to prove the correctness of a claim without revealing any information other than the correctness of the claim. Zero-knowledge proof circuit refers to a zero-knowledge proof circuit file used to describe the functional relationship of the model. In the embodiment of the present application, the discussion of zero-knowledge proof is that the computing power node has a model Test Dataset The prediction results obtained by the model are The hash result of the model is g, and the computing power node proves this statement to the client (i.e. the task initiator), but does not expose the model. The specific value of .

[0057] It should be noted that the encryption key is used in the generation process of zero-knowledge proof, and the decryption key is used in the verification process of zero-knowledge proof. The specific process and function can be reflected in the subsequent steps.

[0058] In some embodiments, see Figure 5 , Figure 5 Shows Figure 3The sub-step flow chart of step S320 is as follows: Figure 5 As shown, the corresponding zero-knowledge proof circuit, encryption key and decryption key are generated according to the model description data, including but not limited to steps S510 to S540.

[0059] Step S510, determining a model network structure according to the model description data, where the model network structure includes a plurality of model components.

[0060] Step S520, generating a zero-knowledge proof circuit according to multiple model components.

[0061] Step S530, compile according to the zero-knowledge proof circuit to obtain a constraint system.

[0062] Step S540: Generate an encryption key and a decryption key according to the constraint system.

[0063] It should be understood that the model network structure including multiple model components is determined according to the model description data, and the model components are calculation functions including operations such as pooling, activation functions, and intermediate layers. Then, the multiple model components are converted into a zero-knowledge proof circuit including two parts. The first part of the zero-knowledge proof circuit is Among them, function F is the calculation function of the prediction process of the model, is the model input, i.e. the test data set, is the model data, i.e. weights and biases, is the model output, i.e., the prediction result of the test data set; the second part of the zero-knowledge proof circuit is Among them, function H is a hash function, and h is the hash result of the model data.

[0064] In a specific embodiment, the model description data is keras code, and the intermediate service platform can export the H5 model according to the keras code uploaded by the client, wherein H5 refers to Hierarchical Data Format 5, a data file format for storing large-scale scientific data sets. Since keras can define the model network structure and obtain the model network structure including an input layer, an output layer, and the number of neurons in the intermediate layer, etc., this information is stored in the H5 model. The intermediate service platform can determine the model network structure by parsing the structural parameters of the H5 model.

[0065] It should be understood that after the intermediate service platform converts the model component into a zero-knowledge proof circuit, it compiles the zero-knowledge proof circuit to obtain a constraint system, namely, a rank-one constraint system for describing a set of linear constraints. The rank-one constraint system is a formal language, including a set of variables, a set of constraints, and a set of public parameters, wherein the variables are unknowns, namely, solutions, the constraints are restrictions on the variables, and the public parameters are public values ​​used in the process of proving and verifying the zero-knowledge proof. The public parameters include the public input and public output of the zero-knowledge proof circuit, namely, the test data set, the prediction results of the test data set, and the hash results of the model data.

[0066] It can be understood that after the zero-knowledge proof circuit is compiled to obtain the constraint system, the constraint system of the zero-knowledge proof circuit is initialized with trust to obtain the encryption key and the decryption key.

[0067] Step S330, sending the training data set, model description data, zero-knowledge proof circuit, and encryption key to the computing power node, so that the computing power node obtains the first target model through training according to the training data set and model description data.

[0068] It should be understood that the intermediate service platform sends the training data set, model description data, and zero-knowledge proof circuit and encryption key obtained by processing the model description data uploaded by the client to the computing power node. After receiving the training data set, model description data, zero-knowledge proof circuit and encryption key, the computing power node trains according to the training data set and model description data to obtain the first target model.

[0069] Step S340, obtain a test data set for the model training task, and send the test data set to the computing power node, so that the computing power node uses the zero-knowledge proof circuit and the encryption key to process the model data and the test data set of the first target model to obtain the corresponding zero-knowledge proof, the prediction result corresponding to the test data set, and the first hash value corresponding to the first target model. The zero-knowledge proof is used to prove that the prediction result is output by the first target model according to the test data set.

[0070] It can be understood that after the computing power node obtains the first target model based on the training data set and the model description data, the client can request to test the first target model to evaluate the quality of the model. The intermediate service platform obtains the test data set of the model training task uploaded by the client and sends the test data set to the computing power node. The computing power node uses the zero-knowledge proof circuit and the encryption key to process the model data and the test data set of the first target model to obtain the corresponding zero-knowledge proof and public output data. The public output data includes the prediction result corresponding to the test data set and the first hash value corresponding to the first target model. The zero-knowledge proof can be used to prove that the prediction result is output by the first target model based on the test data set, and the model data used in the test is consistent with the model data obtained through training.

[0071] In a specific embodiment, the intermediate service platform compiles the constraint system according to the zero-knowledge proof circuit, and performs trusted initialization on the constraint system to obtain the corresponding encryption key and decryption key. The intermediate service platform sends the constraint system and encryption key corresponding to the zero-knowledge proof circuit to the computing power node, and the computing power node obtains the constraint system and encryption key sent by the intermediate service platform. According to the zero-knowledge proof protocol, the input data for generating the proof includes two parts: private input data and public input data, wherein the private input data is the model data of the first target model obtained by training, and the public input data is the test data set. The constraint system and the encryption key can be combined to obtain the certification file and the public output data, wherein the public output data includes the prediction result of the test data set and the first hash value of the first target model. In other words, the computing power platform inputs the first target model, the prediction result and the encryption key into the zero-knowledge proof circuit to obtain the corresponding zero-knowledge proof and the first hash value, and the zero-knowledge proof is used to prove that the prediction result is output by the first target model according to the test data set, and the first hash value can be used to verify whether the model data used by the computing power node during the test is consistent with the model data obtained by training.

[0072] In a specific embodiment, the training data set, the model description data, the zero-knowledge proof circuit, and the encryption key are sent to the computing power node, so that the computing power node obtains the first target model through training according to the training data set and the model description data, and further includes:

[0073] The training data set, model description data, zero-knowledge proof circuit, and encryption key are sent to the computing power node, so that the computing power node obtains the first target model according to the training data set and the model description data, and the computing power node determines the third hash value corresponding to the first target model.

[0074] Obtain the third hash value from the computing power node, and upload the third hash value to the blockchain.

[0075] It is understandable that after the computing node obtains the first target model through training according to the training data set and the model description data, it performs a hash operation on the model data of the first target model to obtain the third hash value corresponding to the first target model, and the computing node sends the third hash value to the intermediate service platform, which then uploads the third hash value to the blockchain. As the verifier of the zero-knowledge proof, the smart contract can be called on the blockchain to verify whether the model data used by the computing node during the test is consistent with the model data obtained through the training through the hash value of the model data, that is, when the first hash value is equal to the third hash value, it indicates that the model data used by the computing node during the test is consistent with the model data obtained through the training.

[0076] Step S350, when the zero-knowledge proof is verified, the model data of the first target model is obtained from the computing power node, wherein the zero-knowledge proof is verified by the decryption key, the test data set, the prediction result and the first hash value.

[0077] It should be understood that, according to the above discussion of zero-knowledge proof, the zero-knowledge proof can prove to the client through verification that the computing power node is able to prove to the client that the prediction result is obtained by predicting the test data set using the first target model trained by the computing power node, and that the model data used in the test is consistent with the trained model data. The client can make predictions on the first target model without knowing the model data, thereby testing the performance of the first target model. This can avoid the situation where the client deliberately expresses dissatisfaction with the calculation results and refuses to support remuneration after obtaining model data that meets the requirements.

[0078] In some embodiments, at least one of the intermediate service platform and the client acts as a verifier of the zero-knowledge proof and verifies the zero-knowledge proof based on the decryption key, the test data set, the prediction result and the first hash value.

[0079] It is understandable that both the intermediate service platform and the client can verify the zero-knowledge proof as the verifier of the zero-knowledge proof. When the intermediate service platform acts as the verifier of the zero-knowledge proof, the intermediate service platform receives the zero-knowledge proof, the prediction result and the first hash value sent by the computing power node, and verifies the zero-knowledge proof according to the decryption key, the test data set, the prediction result and the first hash value. When the verification result is a verification pass result, the intermediate service platform obtains the model data of the first target model from the computing power node; when the client acts as the verifier of the zero-knowledge proof, the intermediate service platform sends the zero-knowledge proof, the decryption key, the test data set, the prediction result and the first hash value to the client, so that the client verifies the zero-knowledge proof according to the decryption key, the test data set, the prediction result and the first hash value, and then the intermediate service platform receives the verification result sent by the client. When the verification result is a verification pass result, the intermediate service platform obtains the model data of the first target model from the computing power node.

[0080] It should be understood that the zero-knowledge proof is generated by the computing power node based on the first target model, the prediction result and the encryption key, and the verifier verifies the zero-knowledge proof based on the decryption key, the test data set, the prediction result and the first hash value to determine that the preset result is obtained by predicting the test data set by the first target model trained by the computing node, and that the model data used in the test is consistent with the model data obtained through training, so that the computing power node can allow the client to test the first target model without uploading the model data of the first target model.

[0081] In a specific embodiment, the intermediate service platform compiles the constraint system according to the zero-knowledge proof circuit, and performs trusted initialization on the constraint system to obtain the corresponding encryption key and decryption key. The verifier of the zero-knowledge proof verifies the zero-knowledge proof according to the zero-knowledge proof protocol. The input of the verification process includes a public value and a certification document obtained by the computing power node in combination with the constraint system and the encryption key, wherein the public value includes a test training data set, a prediction result of the test data set, and a hash value of the first target model. The verification result of the zero-knowledge proof can be obtained by combining the constraint system and the decryption key, that is, the verification passed or failed.

[0082] In some embodiments, the test data set includes multiple test samples and sample labels corresponding to each test sample, and there are multiple prediction results, each of which corresponds to a test sample. Figure 4 , Figure 4 Shows Figure 3 The sub-step flow chart of step S350 is as follows: Figure 4 As shown, when the zero-knowledge proof passes the verification, the model data of the first target model is obtained from the computing power node, including but not limited to steps S410 to S430.

[0083] Step S410: receiving a prediction accuracy threshold of a model training task from a client.

[0084] Step S420, determining the prediction accuracy according to each prediction result and the sample label corresponding to the prediction result.

[0085] Step S430, when the prediction accuracy is greater than or equal to the prediction accuracy threshold and the verification result is a verification pass result, the model data of the first target model is obtained from the computing power node.

[0086] It should be understood that for each test sample in the test data set, the relationship between the prediction accuracy of the first target model and the prediction accuracy threshold is determined based on the sample label corresponding to the test sample and the prediction accuracy threshold of the model training task uploaded by the client. When the prediction accuracy is greater than or equal to the prediction accuracy threshold, and when the verification result is a verification pass result, it indicates that the prediction result is obtained by predicting the test data set using the first target model trained by the computing power node, and the model data used during the test is consistent with the model data obtained during training, and the first target model meets the accuracy requirements. Therefore, the intermediate service platform can obtain the model data of the first target model from the computing power node to deliver the calculation results to the client.

[0087] In a specific embodiment, the algorithm service method further includes:

[0088] When the prediction accuracy is less than the prediction accuracy threshold or the verification result is that the verification fails, a retraining instruction is sent to the computing power node, so that the computing power node retrains the first target model based on the training data set and the model description data according to the retraining instruction.

[0089] It can be understood that the prediction accuracy is less than the prediction accuracy threshold, which indicates that the performance of the first target model has not met the requirements of the task initiator, and the zero-knowledge proof has not passed the verification, which indicates that the computing power node cannot prove to the client that the prediction result is obtained by predicting the test data set by the first target model trained by the computing power node, or that the model data used in the test is consistent with the model data obtained by training. The above two situations require the computing power node to retrain the model and re-perform the prediction and proof process until the prediction accuracy is greater than or equal to the prediction accuracy threshold and the zero-knowledge proof passes the verification.

[0090] In some embodiments, the computing power service method further includes: uploading at least one of the first hash value, the test data set, and the prediction accuracy to the blockchain.

[0091] It can be understood that for the first hash value, after the computing node trains the first target model, the intermediate service platform can obtain the first hash value corresponding to the first target model from the computing node and upload the first hash value to the blockchain for evidence storage. The hash operation can avoid exposing the model data of the first target model and ensure the security of the first target model. By uploading the first hash value to the blockchain for evidence storage, it can be ensured that the hash value of the current model data of the first target model cannot be tampered with, so that subsequent model data cannot be arbitrarily changed, thereby protecting the rights and interests of both parties to the computing power transaction; for the test data set, the intermediate service platform can, after receiving the test data set of the model training task sent by the client , the test data set is uploaded to the blockchain for archiving to prevent the test data set from being tampered with, and the computing power node is prevented from tampering with the test data set so that the first target model that does not meet the requirements can obtain the prediction result that meets the requirements of the task initiator, so that the test process of the first target model is reliable and trustworthy; for the prediction accuracy threshold, the intermediate service platform can upload the prediction accuracy threshold to the blockchain for archiving after receiving the prediction accuracy threshold of the model training task uploaded by the client, so as to prevent the prediction accuracy threshold from being tampered with, and the computing power node is prevented from tampering with the prediction accuracy threshold so that the first target model that does not meet the requirements can pass the model test initiated by the client, so that the test process of the first target model is reliable and trustworthy.

[0092] Step S360: determine the second hash value according to the model data, and send the model data to the client when the first hash value is equal to the second hash value.

[0093] It can be understood that before the computing power node delivers the calculation results to the client, the intermediate service platform determines the corresponding second hash value based on the model data sent by the computing node, and compares the first hash value and the second hash value. When the first hash value and the second hash value are equal, it indicates that the model data submitted by the computing power node is consistent with the model data used during the test, thereby avoiding the inconsistency between the model data received by the client and the model data used during the test.

[0094] In a specific embodiment, the algorithm service method further includes:

[0095] When the first hash value and the second hash value are not equal, a retraining instruction is sent to the computing power node.

[0096] It can be understood that when the first hash value and the second hash value are not equal, it represents that the model data submitted by the computing power node is inconsistent with the model data used during the test. By sending a retraining instruction to the computing power node, the computing power node is required to retrain the model and re-perform the prediction and proof process until the first hash value and the second hash value are equal.

[0097] The following is a specific example to illustrate the zero-knowledge proof process of model prediction in the algorithm service method.

[0098] See also Fig.10 , Fig.10 A schematic diagram of a model prediction process provided by an embodiment of the present application is shown. Fig.10 As shown, the intermediate service platform, as a computing power network platform, generates a zero-knowledge proof circuit for model prediction based on the model description data uploaded by the client as the task initiator, and then compiles the zero-knowledge proof circuit to obtain a rank-one constraint system, and performs trusted initialization on the rank-one constraint system to obtain encryption keys and decryption keys. The encryption key is used in the generation process of zero-knowledge proof, and the decryption key is used in the verification process of zero-knowledge proof. The computing power node obtains the constraint system and encryption key sent by the intermediate service platform, and according to the zero-knowledge proof protocol, takes the model data and test data set of the first target model as the input for generating proof, and combines the constraint system and encryption key to obtain the prediction results of the proof file and the test data set and the hash value of the first target model. The client, as the task initiator and also as the verifier of this zero-knowledge proof, obtains the constraint system and decryption key sent by the intermediate service platform, and according to the zero-knowledge proof protocol, takes the proof file, test data set, the prediction results of the test data set and the hash value of the first target model as the input for verifying proof, and combines the constraint system and decryption key to obtain the verification result of zero-knowledge proof.

[0099] The embodiment of the present application provides a computing power service method. On the one hand, the intermediate service platform generates a corresponding zero-knowledge proof circuit, an encryption key and a decryption key according to the model description data. After the computing power platform obtains the first target model through training, the computing power platform generates a zero-knowledge proof, a prediction result corresponding to the test data set and a first hash value corresponding to the first target model according to the first target model, a test data set, an encryption key and a zero-knowledge proof circuit. By verifying the zero-knowledge proof to ensure that the prediction result is output by the first target model according to the test data set, the client can test the first target model without knowing the model data. After completing the model training task, the computing power node does not need to transmit the model data of the trained first target model to the client, so as to avoid the client deliberately expressing dissatisfaction with the calculation result and refusing to pay the remuneration when obtaining the model data that meets the regulations. On the other hand, by verifying the zero-knowledge proof to prove that the model data used by the computing power node during the test is the same as the model data obtained through training, and before delivering the model data to the client, the intermediate service platform verifies the model data again through the hash value, so as to avoid the model data used by the computing node during the test being inconsistent with the model data obtained through training, and the model data received by the client being inconsistent with the model data used during the test, so as to protect the rights and interests of both parties to the transaction in the computing power service and provide reliable computing power services.

[0100] See also Figure 6 , Figure 6 is a flow chart of a computing power service method provided by an embodiment of the present application. The computing power service method is applied to computing power nodes, such as Figure 6 As shown, the computing power service method provided in the embodiment of the present application includes but is not limited to steps S610 to S650.

[0101] Step S610, obtaining a training data set and model description data corresponding to the model training task from the intermediate service platform;

[0102] Step S620, training a first target model according to the training data set and the model description data;

[0103] Step S630, obtaining a zero-knowledge proof circuit, an encryption key, and a test data set from an intermediate service platform;

[0104] Step S640, using a zero-knowledge proof circuit and an encryption key to process the model data and the test data set of the first target model to obtain a corresponding zero-knowledge proof, a prediction result corresponding to the test data set, and a first hash value corresponding to the first target model, wherein the zero-knowledge proof is used to prove that the prediction result is output by the first target model according to the test data set;

[0105] Step S650, sending the zero-knowledge proof, the prediction result and the first hash value to the intermediate service platform.

[0106] It should be understood that the computing power service method applied to a computing power node provided in an embodiment of the present application, for detailed descriptions of the specific steps, processes, effects, etc., please refer to the relevant descriptions in the computing power service method applied to an intermediate service platform provided in the above embodiment, which will not be repeated here.

[0107] In some embodiments, see Figure 7 , Figure 7 It is a flowchart of a computing power service method provided by an embodiment of the present application. Figure 7 As shown, after the zero-knowledge proof, the prediction result and the first hash value are sent to the intermediate service platform, the computing power service method also includes step S710 and step S720.

[0108] Step S710: receiving a retraining instruction sent by the intermediate service platform.

[0109] Step S720: retrain the first target model based on the training data set and the model description data according to the retraining instruction.

[0110] It can be understood that after the zero-knowledge proof, the prediction result and the first hash value are sent to the intermediate service platform, the intermediate service platform determines the prediction accuracy based on the prediction result and the sample label corresponding to the prediction result. If the prediction accuracy is less than the prediction accuracy threshold, or the zero-knowledge proof fails the verification, the intermediate service platform will send a retraining instruction to the computing power node. After the computing node receives the retraining instruction sent by the intermediate service platform, it will retrain the first target model based on the training data set and the model description data according to the retraining instruction.

[0111] See also Figure 8 , Figure 8 1 is a flow chart of a method for obtaining computing power services provided by an embodiment of the present application. The computing power service obtaining method is applied to a client, such as Figure 8 As shown, the computing power service acquisition method provided in the embodiment of the present application includes but is not limited to steps S810 to S830.

[0112] Step S810, sending the training data set and model description data of the model training task to the intermediate service platform, so that the intermediate service platform generates the corresponding zero-knowledge proof circuit, encryption key and decryption key according to the model description data, and the intermediate service platform sends the training data set, model description data, zero-knowledge proof circuit, and encryption key to the computing power node, so that the computing power node obtains the first target model through training according to the training data set and model description data.

[0113] Step S820, sending the test data set of the model training task to the intermediate service platform, so that the intermediate service platform sends the test data set to the computing power node, so that the computing power node uses the zero-knowledge proof circuit and the encryption key to process the model data and the test data set of the first target model to obtain the corresponding zero-knowledge proof, the prediction result corresponding to the test data set and the first hash value corresponding to the first target model. The zero-knowledge proof is used to prove that the prediction result is output by the first target model according to the test data set, and the zero-knowledge proof is verified by the decryption key, the test data set, the prediction result and the first hash value.

[0114] Step S830, receiving the model data of the first target model obtained by the intermediate service platform from the computing power node when the zero-knowledge proof is verified, and the second hash value of the received model data is equal to the first hash value.

[0115] It should be understood that the embodiment of the present application provides a method for obtaining computing power services applied to a client. For detailed descriptions of the specific steps, processes, effects, etc., please refer to the relevant descriptions in the computing power service method applied to an intermediate service platform provided in the above embodiment, which will not be repeated here.

[0116] In one embodiment, the computing power service acquisition method also includes: sending a prediction accuracy threshold of the model training task to the intermediate service platform, and the intermediate service platform obtains the model data of the first target model from the computing power node when the prediction accuracy is greater than or equal to the prediction accuracy threshold and the zero-knowledge proof passes verification.

[0117] It can be understood that after the computing power node is trained to obtain the first target model, the client sends the prediction accuracy threshold of the model training task to the intermediate service platform, so that the intermediate service platform determines the prediction accuracy based on the prediction result and the sample label corresponding to the prediction result, and further judges the relationship between the prediction accuracy and the prediction accuracy threshold, so that the intermediate service platform obtains the model data of the first target model from the computing power node when the prediction accuracy is greater than or equal to the prediction accuracy threshold and the zero-knowledge proof passes the verification, thereby ensuring that the client can obtain the model data of the first target model that satisfies the prediction accuracy greater than or equal to the prediction accuracy threshold.

[0118] In one embodiment, see Fig. 9 , Fig. 9 A schematic diagram of a method for obtaining computing power services provided by an embodiment of the present application is shown. Fig. 9 As shown, the computing power service acquisition method also includes step S910 and step S920.

[0119] Step S910, receiving the zero-knowledge proof, decryption key, test data set, prediction result and first hash value sent by the intermediate service platform.

[0120] Step S910, verify the zero-knowledge proof according to the decryption key, the test data set, the prediction result and the first hash value, and send the verification result to the intermediate service platform. When the verification result is a passed result, the intermediate service platform obtains the model data of the first target model from the computing power node.

[0121] It can be understood that the client receives the zero-knowledge proof, decryption key, test data set, prediction result and first hash value sent by the intermediate service platform, and verifies the zero-knowledge proof based on the decryption key, test data set, prediction result and first hash value to determine that the prediction result is output by the computing power node according to the first target model obtained through training according to the test data set, and the hash value of the first target model is the first hash value.

[0122] The following is an explanation of the process of the computing power network system in the embodiment of the present application through specific examples.

[0123] See also Fig.11 , Fig.11 FIG. 1 shows a flow chart of a computing power network system providing computing power services according to an embodiment of the present application. Fig.11 As shown, the computing network system includes a client, an intermediate service platform, and a computing node. The overall process of providing computing services by the computing network system is as follows:

[0124] Step S1010: The client uploads the training data set, model description data, and prediction accuracy threshold to the intermediate service platform.

[0125] Step S1011: The intermediate service platform generates a zero-knowledge proof circuit for model prediction calculation based on the model description data, compiles the zero-knowledge proof circuit to obtain a constraint system of the zero-knowledge proof circuit in the zero-knowledge proof, performs trusted initialization on the constraint system to obtain encryption keys and decryption keys, and stores the prediction accuracy threshold on the chain.

[0126] Step S1012: The intermediate service platform sends the model description data, training data set, zero-knowledge proof circuit of model prediction, and encryption key to the computing power node.

[0127] Step S1013: The intermediate service platform sends the decryption key to the client.

[0128] Step S1014: The computing power node performs model training according to the training data set.

[0129] Step S1015: Perform a hash operation on the trained model data and record it on the blockchain.

[0130] Step S1016: Notify the client that the computing task has been completed.

[0131] Step S1017: The client sends the test data set (test samples and sample labels) to the intermediate service platform.

[0132] Step S1018: The intermediate service platform stores the test data set on the chain.

[0133] Step S1019: The intermediate service platform sends the test data set (test sample) to the computing power node.

[0134] Step S1020: The computing node uses the trained model to predict the test data set and generates a related zero-knowledge proof. The proof content includes two parts. The first part is the prediction result obtained by calculating the trained model parameters and the value of the test data set, and the second part is the hash value obtained by performing a hash operation on the trained model data.

[0135] Step S1021: The computing power node sends the test data set, prediction results, hash value of the model data and zero-knowledge proof to the intermediate service platform.

[0136] Step S1022: The intermediate service platform calls the smart contract on the blockchain to verify the zero-knowledge proof and detects whether the accuracy of the prediction result is greater than the prediction accuracy threshold.

[0137] Step S1023: If the verification is passed in step S1022, the intermediate service platform notifies the computing power node to send the model data to the intermediate service platform.

[0138] Step S1024: If the verification fails in step S1022, the intermediate service platform requires the computing power node to retrain the model and returns to step S1014.

[0139] Step S1025: The computing power node sends the model data to the intermediate service platform.

[0140] Step S1026: The intermediate service platform calls the smart contract on the blockchain to verify the hash value of the model data.

[0141] Step S1027: If the verification is passed in step S1026, the intermediate service platform sends the model data to the client.

[0142] Step S1028: If the verification fails in step S1026, the intermediate service platform requires the computing power node to retrain the model and returns to step S1014.

[0143] Through the description of the above implementation methods, those skilled in the art can clearly understand that the method according to the above embodiment can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk), and includes a number of instructions for a terminal device (which can be a mobile phone, computer, server, or network device, etc.) to execute the methods described in each embodiment of the present application.

[0144] See also Fig.12 The present application also provides an electronic device, the electronic device 100 includes but is not limited to:

[0145] at least one processor 110;

[0146] At least one memory 120, used to store at least one program;

[0147] When at least one program is executed by at least one processor 110, the computing power service method or computing power service acquisition method described in any of the above embodiments is executed.

[0148] It should be understood that the processor 110 and the memory 120 may be connected via a bus or other means.

[0149] It should be understood that the processor 110 may be a central processing unit (CPU). The processor may also be other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field programmable gate arrays (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or the processor may be any conventional processor, etc. Alternatively, the processor 110 may be one or more integrated circuits for executing related programs to implement the technical solutions provided in the embodiments of the present application.

[0150] The memory 120 is a non-transitory computer-readable storage medium that can be used to store non-transitory software programs and non-transitory computer executable programs, such as the bandwidth adjustment method performed by the electronic device side described in any embodiment of the present application. The processor 110 implements the above-mentioned computing power service method or computing power service acquisition method by running the non-transitory software program and instructions stored in the memory 120.

[0151] The memory 120 may include a program storage area and a data storage area, wherein the program storage area may store an operating system and application programs required for at least one function; the data storage area may store and execute the above-mentioned bandwidth adjustment method. In addition, the memory 120 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other non-volatile solid-state storage device. In some embodiments, the memory 120 may optionally include a memory remotely disposed relative to the processor 110, and these remote memories may be connected to the processor 110 via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

[0152] The non-transient software programs and instructions required to implement the above-mentioned computing power service method or computing power service acquisition method are stored in the memory 120. When executed by one or more processors 110, the computing power service method or computing power service acquisition method provided by any embodiment of the present application is executed.

[0153] An embodiment of the present application also provides a computer-readable storage medium, which stores a computer program. When the computer program is executed by a processor, it implements the computing power service method or computing power service acquisition method described in any of the above embodiments.

[0154] The computer storage medium of the embodiment of the present application can adopt any combination of one or more computer-readable media. Computer-readable media can be computer-readable signal media or computer-readable storage media. Computer-readable storage media can be, for example, but not limited to, electrical, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices or devices, or any combination of the above. More specific examples (non-exhaustive) of computer-readable storage media include: electrical connections with one or more wires, portable computer disks, hard disks, random access memories (RAM), read-only memories (ROM), erasable programmable read-only memories (EPROM or flash memory), optical fibers, portable compact disk read-only memories (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination of the above. In this document, computer-readable storage media can be any tangible medium containing or storing a program, which can be used by an instruction execution system, device or device or used in combination with it.

[0155] Computer-readable signal media may include data signals propagated in baseband or as part of a carrier wave, which carry computer-readable program code. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. Computer-readable signal media may also be any computer-readable medium other than a computer-readable storage medium, which may send, propagate, or transmit a program for use by or in conjunction with an instruction execution system, apparatus, or device.

[0156] The program code embodied on the computer readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.

[0157] Computer program code for performing the operations of the present application may be written in one or more programming languages ​​or a combination thereof, including object-oriented programming languages, such as Java, Smalltalk, C++, and conventional procedural programming languages, such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., via the Internet using an Internet service provider).

[0158] An embodiment of the present application further provides a computer program product, which stores program instructions. When the program instructions are executed on a computer device, the computer device implements the bandwidth adjustment method described in any of the above embodiments.

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

Claims

1. A computing power service method, applied to an intermediate service platform, comprising: Obtain the training data set and model description data of the model training task initiated by the client; Generate a corresponding zero-knowledge proof circuit, encryption key and decryption key according to the model description data; Sending the training data set, the model description data, the zero-knowledge proof circuit, and the encryption key to a computing power node, so that the computing power node obtains a first target model through training according to the training data set and the model description data; Acquire a test data set of the model training task, and send the test data set to the computing power node, so that the computing power node uses the zero-knowledge proof circuit and the encryption key to process the model data of the first target model and the test data set to obtain the corresponding zero-knowledge proof, the prediction result corresponding to the test data set, and the first hash value corresponding to the first target model, wherein the zero-knowledge proof is used to prove that the prediction result is output by the first target model according to the test data set; When the zero-knowledge proof is verified, obtaining model data of the first target model from the computing power node, wherein the zero-knowledge proof is verified by the decryption key, the test data set, the prediction result, and the first hash value; A second Hash value is determined according to the model data, and when the first Hash value is equal to the second Hash value, the model data is sent to the client.

2. The method according to claim 1, characterized in that The test data set includes multiple test samples and sample labels corresponding to each of the test samples, and there are multiple prediction results, each of which corresponds to one of the test samples; When the zero-knowledge proof is verified, obtaining the model data of the first target model from the computing power node includes: receiving a prediction accuracy threshold of a model training task from the client; Determining prediction accuracy according to each of the prediction results and the sample labels corresponding to the prediction results; When the prediction accuracy is greater than or equal to the prediction accuracy threshold and the zero-knowledge proof passes verification, the model data of the first target model is obtained from the computing power node.

3. The method according to claim 2, characterized in that The method also includes: uploading at least one of the first hash value, the test data set, and the prediction accuracy to a blockchain.

4. The method according to claim 1, characterized in that The generating of the corresponding zero-knowledge proof circuit, encryption key and decryption key according to the model description data includes: Determine a model network structure according to the model description data, wherein the model network structure includes a plurality of model components; generating the zero-knowledge proof circuit according to the plurality of model components; Compile according to the zero-knowledge proof circuit to obtain a constraint system; The encryption key and the decryption key are generated according to the constraint system.

5. The method according to claim 1, characterized in that At least one of the intermediate service platform and the client acts as a verifier of the zero-knowledge proof and verifies the zero-knowledge proof according to the decryption key, the test data set, the prediction result and the first hash value.

6. A computing power service method, applied to a computing power node, the method comprising: Obtain the training data set and model description data corresponding to the model training task from the intermediate service platform; Train the first target model according to the training data set and the model description data; Obtaining a zero-knowledge proof circuit, an encryption key, and a test data set from the intermediate service platform; Processing the model data of the first target model and the test data set by using the zero-knowledge proof circuit and the encryption key to obtain a corresponding zero-knowledge proof, a prediction result corresponding to the test data set, and a first hash value corresponding to the first target model, wherein the zero-knowledge proof is used to prove that the prediction result is output by the first target model according to the test data set; The zero-knowledge proof, the prediction result and the first hash value are sent to the intermediate service platform.

7. The method according to claim 6, characterized in that After sending the zero-knowledge proof, the prediction result and the first hash value to the intermediate service platform, the method further includes: Receiving a retraining instruction sent by the intermediate service platform; The first target model is retrained based on the training data set and the model description data according to the retraining instruction.

8. A method for obtaining computing power services, applied to a client, the method comprising: Sending a training data set and model description data of a model training task to an intermediate service platform, so that the intermediate service platform generates a corresponding zero-knowledge proof circuit, an encryption key, and a decryption key according to the model description data; the intermediate service platform sends the training data set, the model description data, the zero-knowledge proof circuit, and the encryption key to a computing power node, so that the computing power node obtains a first target model through training according to the training data set and the model description data; Sending a test data set of the model training task to the intermediate service platform, so that the intermediate service platform sends the test data set to the computing power node, so that the computing power node uses the zero-knowledge proof circuit and the encryption key to process the model data of the first target model and the test data set to obtain the corresponding zero-knowledge proof, the prediction result corresponding to the test data set, and the first hash value corresponding to the first target model, the zero-knowledge proof is used to prove that the prediction result is output by the first target model according to the test data set, and the zero-knowledge proof is verified by the decryption key, the test data set, the prediction result and the first hash value; Receive the model data of the first target model obtained by the intermediate service platform from the computing power node when the zero-knowledge proof is verified, and the second hash value of the received model data is equal to the first hash value.

9. The method according to claim 8, characterized in that The method also includes: sending a prediction accuracy threshold of the model training task to the intermediate service platform, and the intermediate service platform obtains the model data of the first target model from the computing power node when the prediction accuracy is greater than or equal to the prediction accuracy threshold and the zero-knowledge proof passes verification.

10. The method according to claim 8, characterized in that The method further comprises: Receiving the zero-knowledge proof, the decryption key, the test data set, the prediction result, and the first hash value sent by the intermediate service platform; The zero-knowledge proof is verified according to the decryption key, the test data set, the prediction result and the first hash value, and the verification result is sent to the intermediate service platform. If the verification result is a passed verification result, the intermediate service platform obtains the model data of the first target model from the computing power node.

11. An electronic device, comprising: one or more processors; A memory having one or more programs stored thereon, when the one or more programs are executed by the one or more processors, the one or more processors implement: The computing power service method according to any one of claims 1 to 5; or The computing power service method according to any one of claims 6 to 7; or A method for obtaining computing power services as described in any one of claims 8 to 10.

12. A computer-readable storage medium having a computer program stored thereon, wherein when the program is executed by a processor, the program implements: The computing power service method according to any one of claims 1 to 5; or The computing power service method according to any one of claims 6 to 7; or A method for obtaining computing power services as described in any one of claims 8 to 10.