Operation evaluation method and device of privacy computing algorithm, equipment and storage medium
Through fine-tuning training based on pre-trained large language models, a service model for privacy computing algorithm operation evaluation is constructed, which solves the problem of algorithm operation evaluation in private computing scenarios and achieves accurate evaluation of privacy computing algorithms on different devices.
Patent Information
- Application Number
- CN202410383065.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-03-29
- Publication Date
- 2024-08-27
- Estimated Expiration
- 2044-03-29
AI Technical Summary
In privacy computing scenarios, it is difficult to evaluate the operation of privacy computing algorithms. Especially in multi-party cooperation, the original data is encrypted and the internal logic is invisible, making it difficult to judge whether the algorithm operates as agreed and whether there is malicious data collision.
Fine-tuning training based on pre-trained large language models is used to build a service model for privacy computing algorithm operation evaluation. The training samples include algorithm operation information and device configuration information to predict the operation of the algorithm on specific devices.
It reduces the difficulty of evaluating the operation of privacy computing algorithms, improves the accuracy and diversity of evaluation, can effectively predict the operation of algorithms on different devices, and ensures the accuracy of evaluation results.
Smart Images

Figure CN118550813A
Abstract
Description
Technical Field
[0001] One or more embodiments of the present application relate to the field of artificial intelligence technology, and in particular, to a method, apparatus, device, and storage medium for evaluating the operation of a privacy computing algorithm. Background Art
[0002] Privacy computing is a technology that protects data privacy, and its purpose is to protect data privacy during the computing process. It can perform data analysis and calculations without exposing the original data. Privacy computing usually includes data encryption, privacy protection protocols, anonymization technology, secure multi-party computing and other parts. Among them, data encryption refers to the encryption of data using various encryption algorithms. Privacy protection protocols refer to ensuring the privacy and security of data through protocols such as differential privacy and homomorphic encryption. Anonymization technology refers to separating data from personal identity by anonymizing data. Secure multi-party computing refers to multiple data providers performing calculations without disclosing their private data.
[0003] In the scenario of privacy computing, we often face multi-party cooperation. In the privacy computing algorithm implemented through multi-party cooperation, the original data does not leave the domain, but is encrypted in various ways, and is calculated based on the ciphertext data. At the same time, various protocols are used, and interactions are performed based on the ciphertext data. These data processing processes are all black boxes, that is, the input and output are known, but the internal operation logic is invisible to the user. Therefore, whether the privacy computing algorithm is running in the agreed manner, whether the data is maliciously increased in large quantities during the operation of the privacy computing algorithm to collide with the data of the partners, these issues are usually difficult to analyze and judge. In this case, how to evaluate the operation of the privacy computing algorithm has become an urgent problem to be solved. Summary of the invention
[0004] One or more embodiments of the present application provide the following technical solutions:
[0005] The present application provides a model construction method based on pre-training, the method comprising:
[0006] Constructing a training sample; wherein the training sample includes algorithm operation information corresponding to a preset privacy computing algorithm and device configuration information of a device for running the privacy computing algorithm; the training sample is annotated with the operation status of the privacy computing algorithm on the device;
[0007] Based on the training samples, supervised fine-tuning training is performed on the basic model of the large language model to obtain a service model of the large language model; wherein the service model of the large language model is used to predict the operation status of the privacy computing algorithm on the device based on the algorithm operation information corresponding to the privacy computing algorithm to be evaluated and the device configuration information of the device used to run the privacy computing algorithm.
[0008] The present application also provides a method for evaluating the operation of a privacy computing algorithm, the method comprising:
[0009] Obtaining algorithm operation information corresponding to the privacy computing algorithm to be evaluated, and device configuration information of a device used to run the privacy computing algorithm;
[0010] Input the algorithm operation information and the device configuration information into the service model of the large language model, so that the service model of the large language model predicts the operation status of the privacy computing algorithm on the device based on the algorithm operation information and the device configuration information; wherein the service model of the large language model is a model obtained by supervised fine-tuning training of the basic model of the large language model based on training samples; the training samples include the algorithm operation information corresponding to the preset privacy computing algorithm, and the device configuration information of the device for running the privacy computing algorithm; the training samples are annotated with the operation status of the privacy computing algorithm on the device;
[0011] Obtain the running status of the privacy computing algorithm on the device predicted by the service model of the large language model, and output the running status.
[0012] The present application also provides a model construction device based on pre-training, the device comprising:
[0013] A construction module is used to construct a training sample; wherein the training sample includes algorithm operation information corresponding to a preset privacy computing algorithm and device configuration information of a device for running the privacy computing algorithm; the training sample is annotated with the operation status of the privacy computing algorithm on the device;
[0014] A training module performs supervised fine-tuning training on a basic model of a large language model based on the training samples to obtain a service model of the large language model; wherein the service model of the large language model is used to predict the operation of the privacy computing algorithm on the device based on the algorithm operation information corresponding to the privacy computing algorithm to be evaluated and the device configuration information of the device used to run the privacy computing algorithm.
[0015] The present application also provides a device for evaluating the operation of a privacy computing algorithm, the device comprising:
[0016] An acquisition module is used to acquire algorithm operation information corresponding to the privacy computing algorithm to be evaluated, and device configuration information of a device used to run the privacy computing algorithm;
[0017] A prediction module inputs the algorithm operation information and the device configuration information into a service model of a large language model, so that the service model of the large language model predicts the operation status of the privacy computing algorithm on the device based on the algorithm operation information and the device configuration information; wherein the service model of the large language model is a model obtained by performing supervised fine-tuning training on a basic model of the large language model based on training samples; the training samples include algorithm operation information corresponding to a preset privacy computing algorithm, and device configuration information of a device for running the privacy computing algorithm; the training samples are annotated with the operation status of the privacy computing algorithm on the device;
[0018] The output module obtains the running status of the privacy computing algorithm on the device predicted by the service model of the large language model, and outputs the running status.
[0019] The present application also provides an electronic device, comprising:
[0020] processor;
[0021] a memory for storing processor-executable instructions;
[0022] The processor implements the steps of any of the above methods by running the executable instructions.
[0023] The present application also provides a computer-readable storage medium having computer instructions stored thereon, which implement the steps of any of the above methods when executed by a processor.
[0024] In the above technical solution, the service model of the large language model for operation evaluation of the privacy computing algorithm obtained through fine-tuning training can be used to input the algorithm operation information corresponding to the privacy computing algorithm to be evaluated and the device configuration information of the device used to run the privacy computing algorithm into the service model of the large language model, so that the service model of the large language model predicts the operation of the privacy computing algorithm on the device based on the algorithm operation information and the device configuration information, and outputs the operation predicted by the service model of the large language model. In this way, since the service model of the large language model for operation evaluation of the privacy computing algorithm obtained through fine-tuning training can be directly used to evaluate the operation of the privacy computing algorithm to be evaluated, the difficulty of evaluating the operation of the privacy computing algorithm can be reduced, and the accuracy and diversity of the results of the operation evaluation of the privacy computing algorithm can be guaranteed. BRIEF DESCRIPTION OF THE DRAWINGS
[0025] The following is a description of the accompanying drawings required for use in describing the exemplary embodiments, wherein:
[0026] Figure 1 It is a flowchart of a model construction method based on pre-training shown in an exemplary embodiment of the present application.
[0027] Figure 2 It is a flowchart of an operation evaluation method of a privacy computing algorithm shown in an exemplary embodiment of the present application.
[0028] Figure 3 It is a structural schematic diagram of a device shown in an exemplary embodiment of the present application.
[0029] Figure 4 It is a block diagram of a model building device based on pre-training shown in an exemplary embodiment of the present application.
[0030] Figure 5 It is a block diagram of an operation evaluation device of a privacy computing algorithm shown in an exemplary embodiment of the present application. DETAILED DESCRIPTION
[0031] Here, exemplary embodiments will be described in detail, and examples thereof are shown in the accompanying drawings. When the following description relates to the accompanying drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with one or more embodiments of the present application. On the contrary, they are only examples consistent with some aspects of one or more embodiments of the present application.
[0032] It should be noted that in other embodiments, the steps of the corresponding method are not necessarily performed in the order shown and described in this application. In some other embodiments, the steps included in the method may be more or less than those described in this application. In addition, a single step described in this application may be decomposed into multiple steps for description in other embodiments; and multiple steps described in this application may also be combined into a single step for description in other embodiments.
[0033] In the scenario of privacy computing, we often face multi-party cooperation. In the privacy computing algorithm implemented through multi-party cooperation, the original data does not leave the domain, but is encrypted in various ways, and is calculated based on the ciphertext data. At the same time, various protocols are used, and interactions are performed based on the ciphertext data. These data processing processes are all black boxes, that is, the input and output are known, but the internal operation logic is invisible to the user. Therefore, whether the privacy computing algorithm is running in the agreed manner, whether the data is maliciously increased in large quantities during the operation of the privacy computing algorithm to collide with the data of the partners, these problems are usually difficult to analyze and judge, which makes it more difficult to evaluate the operation of the privacy computing algorithm.
[0034] In addition, privacy computing scenarios are diverse, and the implementation of privacy computing algorithms is also highly diverse. The combination becomes extremely complex, resulting in multiple possibilities for the internal operation logic of privacy computing algorithms. Take the Private Set Intersection (PSI) algorithm as an example, there are hundreds of possible internal operation logics. Coupled with the changes in data scale and hardware environment, it becomes more difficult to evaluate the operation of privacy computing algorithms.
[0035] The present application provides a technical solution for the operation evaluation of privacy computing algorithms. Specifically, the technical solution provided by the present application uses large language models (LLMs) to complete the operation evaluation of privacy computing algorithms.
[0036] A large language model is a deep learning model trained with a large amount of text data. It can be used to generate natural language text or understand the meaning of language text. Large language models can handle a variety of natural language tasks, such as text classification, question answering, and dialogue, and are an important path to artificial intelligence.
[0037] Large language models usually use the Transformer architecture, that is, large language models are usually deep learning models based on the Transformer architecture. Deep learning models based on the Transformer architecture are a type of neural network model that uses the Transformer architecture. This model performs well in fields such as natural language processing.
[0038] Transformer is a neural network model used for sequence-to-sequence modeling. Transformer does not need to rely on recursive structures and can parallelize training and reasoning, speeding up model processing.
[0039] In deep learning models based on the Transformer architecture, a multi-layer Transformer encoder is usually used to extract features from the input sequence, and a Transformer decoder is used to convert these features into an output sequence. At the same time, these models also usually use a self-attention mechanism to capture long-distance dependencies in the input sequence, as well as residual connections and regularization methods to accelerate training and improve model performance.
[0040] A pre-trained model is a language model that is pre-trained on large-scale unlabeled text data. A pre-trained model is general and is not designed or optimized for a specific task. In order to adapt the pre-trained model to a specific task, fine-tuning operations need to be performed to improve the performance of the model on specific tasks. A large language model is a model that is further fine-tuned based on the pre-trained model and is supervised by labeled text data.
[0041] That is, the training process of a large language model can usually be divided into two stages: pre-training and fine-tuning. In the pre-training stage, unsupervised learning (e.g., self-supervised learning) can be used to perform pre-training on public data sets (e.g., online encyclopedias, online articles, books, etc.); the model will try to predict the missing part or the next word based on the context to learn the intrinsic structure of the language such as semantics and syntax and the intrinsic laws of the language; optimization algorithms such as gradient descent can be used to continuously adjust the model parameters to gradually improve the performance of the model on the pre-training task. In the fine-tuning stage, the corresponding supervised learning tasks (e.g., text classification, named entity recognition, question-answering system, etc.) can be selected according to the specific application scenarios and task requirements, and task-specific data sets can be prepared; the pre-trained model can be used as the starting point for fine-tuning, and supervised learning can be used to train on task-specific data sets; optimization algorithms such as gradient descent can be used to adjust the model parameters according to the labels of the data sets, so that the model gradually adapts to the requirements of specific tasks and data sets. Pre-training and fine-tuning are complementary processes. Pre-training enables the model to have broad language understanding capabilities, while fine-tuning makes the model more professional and accurate in specific tasks.
[0042] Usually, the pre-trained big language model is called the base model of the big language model, and the fine-tuned big language model is called the serving model of the big language.
[0043] In the technical solution provided by this application, in order to use a large language model to complete the operation evaluation of the privacy computing algorithm, a supervised learning method can be used for the basic model of the large language model to perform fine-tuning training on a task-specific data set for the operation evaluation of the privacy computing algorithm, and a service model of the large language model that can be used for the operation evaluation of the privacy computing algorithm is obtained. In this way, the service model of the large language model can be used later to complete the operation evaluation of the privacy computing algorithm.
[0044] The technical solution provided in this application is described in detail below from two aspects: obtaining a service model of a large language model for operation evaluation of a privacy computing algorithm, and using the service model of a large language model to complete the operation evaluation of a privacy computing algorithm.
[0045] Please refer to Figure 1 , Figure 1 It is a flowchart of a model construction method based on pre-training shown in an exemplary embodiment of the present application.
[0046] In this embodiment, the basic model of the large language model constructed through pre-training can be directly used, and the service model of the large language model used for the operation evaluation of the privacy computing algorithm can be constructed by further fine-tuning the basic model of the large language model.
[0047] Specifically, the operation evaluation task of the privacy computing algorithm can be used as a supervised learning task during fine-tuning training, and a data set specific to the operation evaluation task of the privacy computing algorithm can be prepared; the basic model of the large language model is used as the starting point for fine-tuning, and supervised learning is used to train it on the data set specific to the operation evaluation task of the privacy computing algorithm; optimization algorithms such as gradient descent can be used to adjust the model parameters according to the label of the data set, so that the model gradually adapts to the requirements of specific tasks and data sets, thereby obtaining a service model of the large language model used for the operation evaluation of the privacy computing algorithm.
[0048] In some embodiments, the above-mentioned model construction method based on pre-training can be applied to a server. The server can be a server including an independent physical host, or a server cluster composed of multiple independent physical hosts; or the server can be a virtual server, cloud server, etc. hosted by a host cluster. Alternatively, the above-mentioned model construction method based on pre-training can be applied to electronic devices with certain computing capabilities, such as desktop computers, laptops, PDAs, tablet devices, etc.
[0049] like Figure 1 As shown, the above-mentioned pre-training-based model construction method may include the following steps:
[0050] Step 102: Construct a training sample; wherein the training sample includes algorithm operation information corresponding to a preset privacy computing algorithm and device configuration information of a device used to run the privacy computing algorithm; the training sample is annotated with the operation status of the privacy computing algorithm on the device.
[0051] In this embodiment, training samples specific to the operation evaluation task of the privacy computing algorithm can be constructed as the prepared data set specific to the operation evaluation task of the privacy computing algorithm.
[0052] For any constructed training sample, the training sample may include algorithm running information corresponding to a preset privacy computing algorithm and device configuration information of a device used to run the privacy computing algorithm; and the training sample may be annotated with the running status of the privacy computing algorithm on the device as a label of the training sample.
[0053] Step 104: Based on the training samples, supervised fine-tuning training is performed on the basic model of the large language model to obtain a service model of the large language model; wherein the service model of the large language model is used to predict the operation status of the privacy computing algorithm on the device based on the algorithm operation information corresponding to the privacy computing algorithm to be evaluated and the device configuration information of the device for running the privacy computing algorithm.
[0054] In this embodiment, after constructing the above-mentioned training samples, the basic model of the large language model constructed through pre-training can be further fine-tuned based on the training samples to obtain a service model of the large language model for operation evaluation of the privacy computing algorithm.
[0055] Because the content of the above training samples is the algorithm operation information corresponding to the privacy computing algorithm and the device configuration information of the device used to run the privacy computing algorithm, and the label is the operation status of the privacy computing algorithm on the device, the service model of the above large language model can be used to predict the operation status of the privacy computing algorithm on the device based on the algorithm operation information corresponding to the privacy computing algorithm to be evaluated and the device configuration information of the device used to run the privacy computing algorithm. That is, when the service model of the large language model is used later, the algorithm operation information corresponding to the privacy computing algorithm to be evaluated and the device configuration information of the device used to run the privacy computing algorithm can be used as input, and the output is the predicted operation status of the privacy computing algorithm on the device.
[0056] In some embodiments, the algorithm operation information may include one or more combinations of the following: algorithm protocol, algorithm description, and data size of data used for calculation during algorithm operation. For example, the algorithm protocol may be ECDH (Elliptic Curve Diffie-Hellman) FourQ curve; the algorithm description may be: the data size of the primary encryption result is 32 bytes, the secondary encryption result is truncated into data fragments with a data size of 10 bytes, and the party that takes the result needs to obtain the secondary ciphertext of both parties and perform intersection calculations, the CPU performance during primary and secondary encryption is that 50,000 calculation operations can be performed per second, and parties A and B can calculate in parallel, and party A takes the result; the data size of data used for calculation during algorithm operation may be 100 million data records, or may be 100 million rows and 1 column of data, and the data size of each row of data is 64 bytes.
[0057] The above device configuration information may include one or more combinations of the following: device computing power, device data transmission capability, wherein the device computing power may be the CPU frequency and the number of CPU cores of the device; the device data transmission capability may be the bandwidth of the device.
[0058] The above-mentioned running conditions may include: the algorithm running time is consuming.
[0059] In this case, the service model of the above-mentioned large language model can predict the time taken when the privacy computing algorithm runs on the device based on the algorithm running information corresponding to the privacy computing algorithm to be evaluated and the device configuration information of the device used to run the privacy computing algorithm.
[0060] It should be noted that if the privacy computing algorithm contains multiple stages (for example: a primary encryption stage, a secondary encryption stage, etc.), then the service model of the above-mentioned large language model can be based on the algorithm running information corresponding to the privacy computing algorithm to be evaluated, and the device configuration information of the device used to run the privacy computing algorithm. It predicts the time taken for each stage when the privacy computing algorithm is running on the device.
[0061] In some embodiments, the algorithm operation information may include one or more combinations of the following: algorithm protocol, algorithm description, data size of data used for calculation during algorithm operation, and operation log generated during algorithm operation.
[0062] The above-mentioned device configuration information may include one or more combinations of the following: device computing power, and device data transmission capability.
[0063] The above-mentioned operation status may include: indicating whether the calculation behavior during the operation of the algorithm meets the expected diagnosis result.
[0064] In this case, the service model of the above-mentioned large language model can predict whether the computing behavior during the operation of the privacy computing algorithm meets expectations based on the algorithm operation information corresponding to the privacy computing algorithm to be evaluated and the device configuration information of the device used to run the privacy computing algorithm, and output a diagnostic result indicating whether the computing behavior during the operation of the privacy computing algorithm meets expectations.
[0065] Specifically, in some embodiments, the service model of the above-mentioned large language model can predict the time taken for the privacy computing algorithm to run on the device based on the algorithm protocol, algorithm description and data scale of the data used for calculation during the algorithm operation corresponding to the privacy computing algorithm to be evaluated, as well as the device configuration information of the device used to run the privacy computing algorithm.
[0066] Furthermore, the service model of the above-mentioned large language model can use the operation log generated during the operation of the algorithm corresponding to the privacy computing algorithm to be evaluated, and compare the algorithm operation time recorded in the operation log with the predicted time when the privacy computing algorithm is running on the device to determine whether the computing behavior during the operation of the privacy computing algorithm meets expectations, and generate a diagnostic result indicating whether the computing behavior during the operation of the privacy computing algorithm meets expectations.
[0067] For example, if a privacy computing algorithm is not suitable for using cache, but cache is used during the operation of the privacy computing algorithm, the CPU computing time will be greatly reduced. In this way, if the algorithm running time recorded in the running log generated during the operation of the algorithm corresponding to the privacy computing algorithm is much less than the predicted time when the privacy computing algorithm is running on the device, it can be determined that the computing behavior during the operation of the privacy computing algorithm does not meet expectations, and thus a diagnostic result indicating that the computing behavior during the operation of the privacy computing algorithm does not meet expectations can be generated.
[0068] If the privacy computing algorithm includes multiple stages, the service model of the large language model can predict the time taken for each stage of the privacy computing algorithm when it is running on the device based on the algorithm running information corresponding to the privacy computing algorithm to be evaluated and the device configuration information of the device used to run the privacy computing algorithm. In this case, the service model of the large language model can compare the algorithm running time of each stage recorded in the running log generated during the algorithm running process corresponding to the privacy computing algorithm to be evaluated with the predicted time taken for each stage when the privacy computing algorithm is running on the device, so as to determine whether the computational behavior of each stage during the running process of the privacy computing algorithm meets expectations, and generate a diagnostic result indicating whether the computational behavior of each stage during the running process of the privacy computing algorithm meets expectations.
[0069] In other embodiments, the service model of the above-mentioned large language model can predict the traffic when the privacy computing algorithm is running on the device based on the algorithm protocol, algorithm description and data scale of the data used for calculation during the algorithm operation corresponding to the privacy computing algorithm to be evaluated, as well as the device configuration information of the device used to run the privacy computing algorithm.
[0070] Furthermore, the service model of the above-mentioned large language model can utilize the operation log generated during the operation of the algorithm corresponding to the privacy computing algorithm to be evaluated, and compare the traffic recorded in the operation log with the predicted traffic when the privacy computing algorithm is running on the device to determine whether the computing behavior during the operation of the privacy computing algorithm meets expectations, and generate a diagnostic result indicating whether the computing behavior during the operation of the privacy computing algorithm meets expectations.
[0071] For example, if the security strength of a certain privacy computing algorithm requires that the data size of the ciphertext data is at least 10 bytes, that is, the predicted traffic volume when the privacy computing algorithm is running on the device is no less than 10 bytes, but the traffic volume recorded in the operation log generated during the operation of the algorithm corresponding to the privacy computing algorithm is less than 10 bytes, then it can be determined that the computational behavior during the operation of the privacy computing algorithm does not meet expectations, and thus a diagnostic result can be generated indicating that the computational behavior during the operation of the privacy computing algorithm does not meet expectations.
[0072] Alternatively, if the traffic recorded in the running log generated during the operation of an algorithm corresponding to a certain privacy computing algorithm far exceeds the predicted traffic when the privacy computing algorithm is running on the device, it can be determined that the computing behavior during the operation of the privacy computing algorithm does not meet expectations, and thus a diagnostic result can be generated indicating that the computing behavior during the operation of the privacy computing algorithm does not meet expectations.
[0073] If the privacy computing algorithm includes multiple stages, the service model of the large language model can predict the traffic of each stage when the privacy computing algorithm is running on the device based on the algorithm operation information corresponding to the privacy computing algorithm to be evaluated and the device configuration information of the device used to run the privacy computing algorithm. In this case, the service model of the large language model can compare the traffic of each stage recorded in the operation log generated during the operation of the algorithm corresponding to the privacy computing algorithm to be evaluated with the predicted traffic of each stage when the privacy computing algorithm is running on the device, so as to determine whether the computational behavior of each stage during the operation of the privacy computing algorithm meets expectations, and generate a diagnostic result indicating whether the computational behavior of each stage during the operation of the privacy computing algorithm meets expectations.
[0074] In some embodiments, the privacy computing algorithm may be a secure multi-party computing algorithm that performs privacy computing on data in encrypted form held by multiple data providers.
[0075] In the above technical solution, by taking the operation evaluation task of the privacy computing algorithm as a supervised learning task during fine-tuning training, a specific training sample for the operation evaluation task of the privacy computing algorithm is constructed, wherein the training sample includes the algorithm operation information corresponding to the preset privacy computing algorithm, and the device configuration information of the device used to run the privacy computing algorithm, and is marked with the operation status of the privacy computing algorithm on the device. Based on the constructed training samples, the basic model of the large language model is fine-tuned in a supervised manner, and the service model of the large language model used for the operation evaluation of the privacy computing algorithm can be obtained, so that the service model of the large language model can be directly used in the subsequent evaluation of the operation of the privacy computing algorithm.
[0076] Please refer to Figure 2 , Figure 2 It is a flowchart of an operation evaluation method of a privacy computing algorithm shown in an exemplary embodiment of the present application.
[0077] In this embodiment, it is possible to directly use Figure 1 The illustrated embodiment constructs a service model of a large language model for operation evaluation of a privacy computing algorithm, and evaluates the operation of the privacy computing algorithm.
[0078] In some embodiments, the above-mentioned model construction method based on pre-training can be applied to a server. The server can be a server including an independent physical host, or a server cluster composed of multiple independent physical hosts; or the server can be a virtual server, cloud server, etc. hosted by a host cluster. Alternatively, the above-mentioned model construction method based on pre-training can be applied to electronic devices with certain computing capabilities, such as desktop computers, laptops, PDAs, tablet devices, etc.
[0079] like Figure 2 As shown, the above-mentioned pre-training-based model construction method may include the following steps:
[0080] Step 202: Obtain algorithm running information corresponding to the privacy computing algorithm to be evaluated, and device configuration information of a device used to run the privacy computing algorithm.
[0081] In this embodiment, for the privacy computing algorithm to be evaluated, in order to evaluate the operation of the privacy computing algorithm, the algorithm operation information corresponding to the privacy computing algorithm and the device configuration information of the device used to run the privacy computing algorithm can be first obtained.
[0082] Step 204: Input the algorithm operation information and the device configuration information into the service model of the large language model, so that the service model of the large language model predicts the operation status of the privacy computing algorithm on the device based on the algorithm operation information and the device configuration information; wherein the service model of the large language model is a model obtained by supervised fine-tuning training of the basic model of the large language model based on training samples; the training samples include the algorithm operation information corresponding to the preset privacy computing algorithm, and the device configuration information of the device used to run the privacy computing algorithm; the training samples are marked with the operation status of the privacy computing algorithm on the device.
[0083] In this embodiment, the algorithm running information corresponding to the above-mentioned privacy computing algorithm and the device configuration information of the device used to run the privacy computing algorithm can be input into the service model of the above-mentioned large language model, so that the service model of the large language model can predict the running status of the privacy computing algorithm on the device based on the algorithm running information and the device configuration information.
[0084] The process of obtaining the service model of the large language model may refer to the service model of the large language model, which will not be described in detail in this embodiment.
[0085] Step 206: Obtain the running status of the privacy computing algorithm on the device predicted by the service model of the large language model, and output the running status.
[0086] In this embodiment, the output of the service model of the large language model is the running status of the privacy computing algorithm on the device predicted by the service model of the large language model. In this case, the running status of the privacy computing algorithm on the device predicted by the service model of the large language model can be obtained, and the obtained running status can be output. For example, the obtained running status can be output through a user-interactive interface for the user to view.
[0087] In some embodiments, the algorithm operation information may include one or more combinations of the following: algorithm protocol, algorithm description, and data size of data used for calculation during algorithm operation. For example, the algorithm protocol may be ECDH (Elliptic Curve Diffie-Hellman) FourQ curve; the algorithm description may be: the data size of the primary encryption result is 32 bytes, the secondary encryption result is truncated into data fragments with a data size of 10 bytes, and the party that takes the result needs to obtain the secondary ciphertext of both parties and perform intersection calculations, the CPU performance during primary and secondary encryption is that 50,000 calculation operations can be performed per second, and parties A and B can calculate in parallel, and party A takes the result; the data size of data used for calculation during algorithm operation may be 100 million data records, or may be 100 million rows and 1 column of data, and the data size of each row of data is 64 bytes.
[0088] The above device configuration information may include one or more combinations of the following: device computing power, device data transmission capability, wherein the device computing power may be the CPU frequency and the number of CPU cores of the device; the device data transmission capability may be the bandwidth of the device.
[0089] The above-mentioned running conditions may include: the algorithm running time is consuming.
[0090] In this case, the service model of the above-mentioned large language model can predict the time taken when the privacy computing algorithm runs on the device based on the algorithm running information corresponding to the privacy computing algorithm to be evaluated and the device configuration information of the device used to run the privacy computing algorithm.
[0091] It should be noted that if the privacy computing algorithm contains multiple stages (for example: a primary encryption stage, a secondary encryption stage, etc.), then the service model of the above-mentioned large language model can be based on the algorithm running information corresponding to the privacy computing algorithm to be evaluated, and the device configuration information of the device used to run the privacy computing algorithm. It predicts the time taken for each stage when the privacy computing algorithm is running on the device.
[0092] In some embodiments, the algorithm operation information may include one or more combinations of the following: algorithm protocol, algorithm description, data size of data used for calculation during algorithm operation, and operation log generated during algorithm operation.
[0093] The above-mentioned device configuration information may include one or more combinations of the following: device computing power, and device data transmission capability.
[0094] The above-mentioned operation status may include: indicating whether the calculation behavior during the operation of the algorithm meets the expected diagnosis result.
[0095] In this case, the service model of the above-mentioned large language model can predict whether the computing behavior during the operation of the privacy computing algorithm meets expectations based on the algorithm operation information corresponding to the privacy computing algorithm to be evaluated and the device configuration information of the device used to run the privacy computing algorithm, and output a diagnostic result indicating whether the computing behavior during the operation of the privacy computing algorithm meets expectations.
[0096] Specifically, in some embodiments, the service model of the above-mentioned large language model can predict the time taken for the privacy computing algorithm to run on the device based on the algorithm protocol, algorithm description and data scale of the data used for calculation during the algorithm operation corresponding to the privacy computing algorithm to be evaluated, as well as the device configuration information of the device used to run the privacy computing algorithm.
[0097] Furthermore, the service model of the above-mentioned large language model can use the operation log generated during the operation of the algorithm corresponding to the privacy computing algorithm to be evaluated, and compare the algorithm operation time recorded in the operation log with the predicted time when the privacy computing algorithm is running on the device to determine whether the computing behavior during the operation of the privacy computing algorithm meets expectations, and generate a diagnostic result indicating whether the computing behavior during the operation of the privacy computing algorithm meets expectations.
[0098] For example, if a privacy computing algorithm is not suitable for using cache, but cache is used during the operation of the privacy computing algorithm, the CPU computing time will be greatly reduced. In this way, if the algorithm running time recorded in the running log generated during the operation of the algorithm corresponding to the privacy computing algorithm is much less than the predicted time when the privacy computing algorithm is running on the device, it can be determined that the computing behavior during the operation of the privacy computing algorithm does not meet expectations, and thus a diagnostic result indicating that the computing behavior during the operation of the privacy computing algorithm does not meet expectations can be generated.
[0099] If the privacy computing algorithm includes multiple stages, the service model of the large language model can predict the time taken for each stage of the privacy computing algorithm when it is running on the device based on the algorithm running information corresponding to the privacy computing algorithm to be evaluated and the device configuration information of the device used to run the privacy computing algorithm. In this case, the service model of the large language model can compare the algorithm running time of each stage recorded in the running log generated during the algorithm running process corresponding to the privacy computing algorithm to be evaluated with the predicted time taken for each stage when the privacy computing algorithm is running on the device, so as to determine whether the computational behavior of each stage during the running process of the privacy computing algorithm meets expectations, and generate a diagnostic result indicating whether the computational behavior of each stage during the running process of the privacy computing algorithm meets expectations.
[0100] In other embodiments, the service model of the above-mentioned large language model can predict the traffic when the privacy computing algorithm is running on the device based on the algorithm protocol, algorithm description and data scale of the data used for calculation during the algorithm operation corresponding to the privacy computing algorithm to be evaluated, as well as the device configuration information of the device used to run the privacy computing algorithm.
[0101] Furthermore, the service model of the above-mentioned large language model can utilize the operation log generated during the operation of the algorithm corresponding to the privacy computing algorithm to be evaluated, and compare the traffic recorded in the operation log with the predicted traffic when the privacy computing algorithm is running on the device to determine whether the computing behavior during the operation of the privacy computing algorithm meets expectations, and generate a diagnostic result indicating whether the computing behavior during the operation of the privacy computing algorithm meets expectations.
[0102] For example, if the security strength of a certain privacy computing algorithm requires that the data size of the ciphertext data is at least 10 bytes, that is, the predicted traffic volume when the privacy computing algorithm is running on the device is no less than 10 bytes, but the traffic volume recorded in the operation log generated during the operation of the algorithm corresponding to the privacy computing algorithm is less than 10 bytes, then it can be determined that the computational behavior during the operation of the privacy computing algorithm does not meet expectations, and thus a diagnostic result can be generated indicating that the computational behavior during the operation of the privacy computing algorithm does not meet expectations.
[0103] Alternatively, if the traffic recorded in the running log generated during the operation of an algorithm corresponding to a certain privacy computing algorithm far exceeds the predicted traffic when the privacy computing algorithm is running on the device, it can be determined that the computing behavior during the operation of the privacy computing algorithm does not meet expectations, and thus a diagnostic result can be generated indicating that the computing behavior during the operation of the privacy computing algorithm does not meet expectations.
[0104] If the privacy computing algorithm includes multiple stages, the service model of the large language model can predict the traffic of each stage when the privacy computing algorithm is running on the device based on the algorithm operation information corresponding to the privacy computing algorithm to be evaluated and the device configuration information of the device used to run the privacy computing algorithm. In this case, the service model of the large language model can compare the traffic of each stage recorded in the operation log generated during the operation of the algorithm corresponding to the privacy computing algorithm to be evaluated with the predicted traffic of each stage when the privacy computing algorithm is running on the device, so as to determine whether the computational behavior of each stage during the operation of the privacy computing algorithm meets expectations, and generate a diagnostic result indicating whether the computational behavior of each stage during the operation of the privacy computing algorithm meets expectations.
[0105] In some embodiments, the privacy computing algorithm may be a secure multi-party computing algorithm that performs privacy computing on data in encrypted form held by multiple data providers.
[0106] For example, assuming that the data providers of a privacy computing algorithm include A and B, the number of CPU cores of the computing devices of A and B is 8, the bandwidth of the computing devices of A and B is 100M, and the data scale of the data provided by A and B for calculation during the operation of the privacy computing algorithm is 100 million data records; and assuming that the algorithm protocol of the privacy computing algorithm is the ECDH FourQ curve, the algorithm description of the privacy computing algorithm includes: the data size of the first encryption result is 32 bytes, and the second encryption result is truncated into a data fragment with a data size of 10 bytes. The party that gets the result needs to obtain the second ciphertext of both parties and perform intersection calculation. The CPU performance during the first and second encryption is 50,000 computing operations per second. A and B can calculate in parallel, and A gets the result.
[0107] In this case, the algorithm running time of the privacy computing algorithm predicted by the service model of the large language model when running on the device can be determined by following the steps below:
[0108] First, A and B each perform encryption once, which is executed concurrently by the 8 cores of the CPU. The time consumed in this stage is: 100 million (data records) ÷ 50,000 (computing operations) ÷ 8 (number of cores) = 250 seconds.
[0109] Then, A and B send each other the full amount of ciphertext data. The time consumed in this stage is: 100 million (data records) × 32 (bytes) ÷ 1024 ÷ 1024 ÷ 100 (M bandwidth) × 8 = 244 seconds.
[0110] Then, A and B perform secondary encryption on each other's primary ciphertext data, which is executed concurrently by the 8 cores of the CPU. The time taken for this stage is: 100 million (data records) ÷ 50,000 (computing operations) ÷ 8 (number of cores) = 250 seconds.
[0111] Finally, B sends the full amount of A's secondary ciphertext data to A. The time consumed in this stage is: 100 million (data records) × 10 (bytes) ÷ 1024 ÷ 1024 ÷ 100 (M bandwidth) × 8 = 76 seconds.
[0112] The theoretical time of the above privacy computing algorithm is: 250 seconds + 244 seconds + 250 seconds + 76 seconds = 820 seconds.
[0113] Combined with the empirical values of the time required for operations such as data reading, intersection calculation, and file writing, we can fully estimate the algorithm running time when the above-mentioned privacy computing algorithm is running on the above-mentioned devices.
[0114] In the above technical solution, the service model of the large language model for operation evaluation of the privacy computing algorithm obtained through fine-tuning training can be used to input the algorithm operation information corresponding to the privacy computing algorithm to be evaluated and the device configuration information of the device used to run the privacy computing algorithm into the service model of the large language model, so that the service model of the large language model predicts the operation of the privacy computing algorithm on the device based on the algorithm operation information and the device configuration information, and outputs the operation predicted by the service model of the large language model. In this way, since the service model of the large language model for operation evaluation of the privacy computing algorithm obtained through fine-tuning training can be directly used to evaluate the operation of the privacy computing algorithm to be evaluated, the difficulty of evaluating the operation of the privacy computing algorithm can be reduced, and the accuracy and diversity of the results of the operation evaluation of the privacy computing algorithm can be guaranteed.
[0115] Corresponding to the aforementioned method embodiments, the present application also provides device embodiments.
[0116] Please refer to Figure 3 , Figure 3 It is a structural diagram of a device shown in an exemplary embodiment of the present application. At the hardware level, the device includes a processor 302, an internal bus 304, a network interface 306, a memory 308 and a non-volatile memory 310, and of course may also include other required hardware. One or more embodiments of the present application can be implemented based on software, such as the processor 302 reading the corresponding computer program from the non-volatile memory 310 into the memory 308 and then running it. Of course, in addition to the software implementation, one or more embodiments of the present application do not exclude other implementations, such as logic devices or a combination of software and hardware, etc., that is to say, the execution subject of the following processing flow is not limited to each logic module, but can also be hardware or logic devices.
[0117] Please refer to Figure 4 , Figure 4 It is a block diagram of a model building device based on pre-training shown in an exemplary embodiment of the present application.
[0118] The above-mentioned pre-trained model construction device can be applied to Figure 3 The device shown is used to implement the technical solution of the present application. The device includes:
[0119] A construction module 402 is used to construct a training sample; wherein the training sample includes algorithm operation information corresponding to a preset privacy computing algorithm and device configuration information of a device for running the privacy computing algorithm; the training sample is annotated with the operation status of the privacy computing algorithm on the device;
[0120] The training module 404 performs supervised fine-tuning training on the basic model of the large language model based on the training samples to obtain a service model of the large language model; wherein the service model of the large language model is used to predict the operation status of the privacy computing algorithm on the device based on the algorithm operation information corresponding to the privacy computing algorithm to be evaluated and the device configuration information of the device used to run the privacy computing algorithm.
[0121] Optionally, the algorithm operation information includes: algorithm protocol, algorithm description, and data size of data used for calculation during algorithm operation; the device configuration information includes: device computing power and device data transmission capability; the operation status includes: algorithm operation time.
[0122] Optionally, the algorithm operation information includes: algorithm protocol, algorithm description, data size of data used for calculation during algorithm operation, and operation log generated during algorithm operation; the device configuration information includes: device computing power, device data transmission capability; the operation status includes: indicating whether the calculation behavior during algorithm operation meets the expected diagnostic results.
[0123] Optionally, the privacy computing algorithm is a secure multi-party computing algorithm that performs privacy computing based on data in encrypted form held by multiple data providers.
[0124] Please refer to Figure 5 , Figure 5 It is a block diagram of an operation evaluation device of a privacy computing algorithm shown in an exemplary embodiment of the present application.
[0125] The operation evaluation device of the above privacy computing algorithm can be applied to Figure 3 The device shown is used to implement the technical solution of the present application. The device includes:
[0126] An acquisition module 502 is configured to acquire algorithm operation information corresponding to the privacy computing algorithm to be evaluated, and device configuration information of a device used to run the privacy computing algorithm;
[0127] The prediction module 504 inputs the algorithm operation information and the device configuration information into the service model of the large language model, so that the service model of the large language model predicts the operation status of the privacy computing algorithm on the device based on the algorithm operation information and the device configuration information; wherein the service model of the large language model is a model obtained by performing supervised fine-tuning training on the basic model of the large language model based on training samples; the training samples include the algorithm operation information corresponding to the preset privacy computing algorithm, and the device configuration information of the device for running the privacy computing algorithm; the training samples are annotated with the operation status of the privacy computing algorithm on the device;
[0128] The output module 506 obtains the running status of the privacy computing algorithm on the device predicted by the service model of the large language model, and outputs the running status.
[0129] Optionally, the algorithm operation information includes: algorithm protocol, algorithm description, and data size of data used for calculation during algorithm operation; the device configuration information includes: device computing power and device data transmission capability; the operation status includes: algorithm operation time.
[0130] Optionally, the algorithm operation information includes: algorithm protocol, algorithm description, data size of data used for calculation during algorithm operation, and operation log generated during algorithm operation; the device configuration information includes: device computing power, device data transmission capability; the operation status includes: indicating whether the calculation behavior during algorithm operation meets the expected diagnostic results.
[0131] Optionally, predicting the running status of the privacy computing algorithm on the device based on the algorithm running information and the device configuration information includes:
[0132] Based on the algorithm protocol, the algorithm description, the data scale of the data used for calculation during the algorithm operation, and the device configuration information, predict the algorithm operation time of the privacy computing algorithm on the device;
[0133] The algorithm running time recorded in the running log generated during the algorithm running process is compared with the predicted algorithm running time to determine whether the computing behavior during the algorithm running process meets expectations, and generate a diagnostic result indicating whether the computing behavior during the algorithm running process meets expectations.
[0134] Optionally, predicting the running status of the privacy computing algorithm on the device based on the algorithm running information and the device configuration information includes:
[0135] Based on the algorithm protocol, the algorithm description, the data scale of the data used for calculation during the operation of the algorithm, and the device configuration information, predict the traffic of the privacy computing algorithm when it is running on the device;
[0136] The flow recorded in the operation log generated during the operation of the algorithm is compared with the predicted flow to determine whether the calculation behavior during the operation of the algorithm meets expectations, and generate a diagnostic result indicating whether the calculation behavior during the operation of the algorithm meets expectations.
[0137] Optionally, the privacy computing algorithm is a secure multi-party computing algorithm that performs privacy computing based on data in encrypted form held by multiple data providers.
[0138] For the device embodiment, it basically corresponds to the method embodiment, so the relevant parts can refer to the partial description of the method embodiment. The device embodiment described above is only schematic, wherein the modules described as separate components may or may not be physically separated, and the components displayed as modules may or may not be physical modules, that is, they may be located in one place, or they may be distributed on multiple network modules. Some or all of the modules may be selected according to actual needs to achieve the purpose of the technical solution of the present application.
[0139] The systems, devices, modules or units described in the above embodiments may be implemented by computer chips or entities, or by products with certain functions. A typical implementation device is a computer, which may be in the form of a personal computer, a laptop computer, a cellular phone, a camera phone, a smart phone, a personal digital assistant, a media player, a navigation device, an email transceiver, a game console, a tablet computer, a wearable device or a combination of any of these devices.
[0140] In a typical configuration, a computer includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.
[0141] The memory may include non-permanent storage in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. The memory is an example of a computer-readable medium.
[0142] Computer-readable media include permanent and non-permanent, removable and non-removable media that can store information by any method or technology. Information can be computer-readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, read-only compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, disk storage, quantum memory, graphene-based storage media or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer-readable media does not include temporary computer-readable media (transitory media), such as modulated data signals and carrier waves.
[0143] It should be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity 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, commodity or device. In the absence of further restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.
[0144] The above specific embodiments of the present application are described. Other embodiments are within the scope of the present application. In some cases, the actions or steps recorded in the present application can be performed in an order different from that in the embodiments and still achieve the desired results. In addition, the process depicted in the accompanying drawings does not necessarily require the specific order or continuous order shown to achieve the desired results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.
[0145] The terms used in one or more embodiments of the present application are only for the purpose of describing specific embodiments, and are not intended to limit one or more embodiments of the present application. The singular forms of "a", "said" and "the" are also intended to include plural forms, unless the context clearly indicates other meanings. The term "and / or" refers to and includes any or all possible combinations of one or more associated listed items.
[0146] The description of the terms "one embodiment", "some embodiments", "example", "specific example" or "an implementation method" etc. used in one or more embodiments of the present application means that the specific features or characteristics described in conjunction with the embodiment are included in at least one embodiment of the present application. The schematic description of these terms is not necessarily for the same embodiment. Moreover, the specific features or characteristics described can be combined in a suitable manner in one or more embodiments of the present application. In addition, different embodiments and specific features or characteristics in different embodiments can be combined without contradicting each other.
[0147] It should be understood that, although the terms first, second, third, etc. may be used to describe various information in one or more embodiments of the present application, these information should not be limited to these terms. These terms are only used to distinguish the same type of information from each other. For example, without departing from the scope of one or more embodiments of the present application, the first information may also be referred to as the second information, and similarly, the second information may also be referred to as the first information. Depending on the context, the word "if" as used herein may be interpreted as "at the time of" or "when" or "in response to determination".
[0148] The above description is merely a preferred embodiment of one or more embodiments of the present application and is not intended to limit one or more embodiments of the present application. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of one or more embodiments of the present application shall be included in the scope of protection of one or more embodiments of the present application.
[0149] The user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with the relevant laws, regulations and standards of relevant countries and regions, and provide corresponding operation entrances for users to choose to authorize or refuse.
Claims
1. A model construction method based on pre-training, the method comprising: Constructing a training sample; wherein the training sample includes algorithm operation information corresponding to a preset privacy computing algorithm and device configuration information of a device for running the privacy computing algorithm; the training sample is annotated with the operation status of the privacy computing algorithm on the device; Based on the training samples, supervised fine-tuning training is performed on the basic model of the large language model to obtain a service model of the large language model; wherein the service model of the large language model is used to predict the operation status of the privacy computing algorithm on the device based on the algorithm operation information corresponding to the privacy computing algorithm to be evaluated and the device configuration information of the device used to run the privacy computing algorithm.
2. The method according to claim 1, wherein the algorithm operation information comprises: Algorithm protocol, algorithm description, and the data size of the data used for calculation during the algorithm operation; The device configuration information includes: device computing power and device data transmission capability; the operation status includes: algorithm operation time consumption.
3. The method according to claim 1, wherein the algorithm operation information comprises: Algorithm protocol, algorithm description, data size of the data used for calculation during the algorithm operation, and operation logs generated during the algorithm operation; The device configuration information includes: device computing power and device data transmission capability; the operation status includes: indicating whether the computing behavior during the algorithm operation meets the expected diagnostic results.
4. According to the method described in claim 1, the privacy computing algorithm is a secure multi-party computing algorithm that performs privacy computing based on data in encrypted form held by multiple data providers.
5. A method for evaluating the operation of a privacy computing algorithm, the method comprising: Obtaining algorithm operation information corresponding to the privacy computing algorithm to be evaluated, and device configuration information of a device used to run the privacy computing algorithm; Input the algorithm operation information and the device configuration information into the service model of the large language model, so that the service model of the large language model predicts the operation status of the privacy computing algorithm on the device based on the algorithm operation information and the device configuration information; wherein the service model of the large language model is a model obtained by supervised fine-tuning training of the basic model of the large language model based on training samples; the training samples include the algorithm operation information corresponding to the preset privacy computing algorithm, and the device configuration information of the device for running the privacy computing algorithm; the training samples are annotated with the operation status of the privacy computing algorithm on the device; Obtain the running status of the privacy computing algorithm on the device predicted by the service model of the large language model, and output the running status.
6. The method according to claim 5, wherein the algorithm operation information comprises: Algorithm protocol, algorithm description, and the data size of the data used for calculation during the algorithm operation; The device configuration information includes: device computing power and device data transmission capability; the operation status includes: algorithm operation time consumption.
7. The method according to claim 5, wherein the algorithm operation information comprises: Algorithm protocol, algorithm description, data size of the data used for calculation during the algorithm operation, and operation logs generated during the algorithm operation; The device configuration information includes: device computing power and device data transmission capability; the operation status includes: indicating whether the computing behavior during the algorithm operation meets the expected diagnostic results.
8. The method according to claim 7, wherein the step of predicting the operation of the privacy computing algorithm on the device based on the algorithm operation information and the device configuration information comprises: Based on the algorithm protocol, the algorithm description, the data scale of the data used for calculation during the algorithm operation, and the device configuration information, predict the algorithm operation time of the privacy computing algorithm on the device; The algorithm running time recorded in the running log generated during the algorithm running process is compared with the predicted algorithm running time to determine whether the computing behavior during the algorithm running process meets expectations, and generate a diagnostic result indicating whether the computing behavior during the algorithm running process meets expectations.
9. The method according to claim 7, wherein the step of predicting the operation of the privacy computing algorithm on the device based on the algorithm operation information and the device configuration information comprises: Based on the algorithm protocol, the algorithm description, the data scale of the data used for calculation during the operation of the algorithm, and the device configuration information, predict the traffic of the privacy computing algorithm when it is running on the device; The flow recorded in the operation log generated during the operation of the algorithm is compared with the predicted flow to determine whether the calculation behavior during the operation of the algorithm meets expectations, and generate a diagnostic result indicating whether the calculation behavior during the operation of the algorithm meets expectations.
10. According to the method of claim 5, the privacy computing algorithm is a secure multi-party computing algorithm that performs privacy computing based on data in encrypted form held by multiple data providers.
11. A model construction device based on pre-training, the device comprising: A construction module is used to construct a training sample; wherein the training sample includes algorithm operation information corresponding to a preset privacy computing algorithm and device configuration information of a device for running the privacy computing algorithm; the training sample is annotated with the operation status of the privacy computing algorithm on the device; A training module performs supervised fine-tuning training on a basic model of a large language model based on the training samples to obtain a service model of the large language model; wherein the service model of the large language model is used to predict the operation of the privacy computing algorithm on the device based on the algorithm operation information corresponding to the privacy computing algorithm to be evaluated and the device configuration information of the device for running the privacy computing algorithm.
12. A device for evaluating the operation of a privacy computing algorithm, the device comprising: An acquisition module is used to acquire algorithm operation information corresponding to the privacy computing algorithm to be evaluated, and device configuration information of a device used to run the privacy computing algorithm; A prediction module inputs the algorithm operation information and the device configuration information into a service model of a large language model, so that the service model of the large language model predicts the operation status of the privacy computing algorithm on the device based on the algorithm operation information and the device configuration information; wherein the service model of the large language model is a model obtained by performing supervised fine-tuning training on a basic model of the large language model based on training samples; the training samples include algorithm operation information corresponding to a preset privacy computing algorithm, and device configuration information of a device for running the privacy computing algorithm; the training samples are annotated with the operation status of the privacy computing algorithm on the device; The output module obtains the running status of the privacy computing algorithm on the device predicted by the service model of the large language model, and outputs the running status.
13. An electronic device comprising: processor; a memory for storing processor-executable instructions; The processor implements the method according to any one of claims 1 to 10 by running the executable instructions.
14. A computer-readable storage medium having computer instructions stored thereon, wherein the instructions are executed by a processor to implement the method according to any one of claims 1 to 10.
Citation Information
Patent Citations
Machine learning method and related device
CN111062495A
Model construction method, device and equipment based on privacy protection
CN113221717A
Modeling evaluation method and system for complex equipment operation
CN113919230A
Model ownership detection method and device, equipment and storage medium
CN116578950A
Performance data prediction method, performance data prediction device, electronic equipment and medium
CN116611476A
