Programmable data processing method and system based on trusted execution environment
By creating a virtual container of a trusted execution environment on the task execution side for model training, the problem of balancing performance and security and high coordination costs in private computing is solved, ensuring data privacy and security and improving model training efficiency. .
Patent Information
- Application Number
- CN202311028439.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-08-14
- Publication Date
- 2024-09-03
- Estimated Expiration
- 2043-08-14
AI Technical Summary
Existing privacy computing technology has problems with balancing performance and security, high coordination costs, and difficulty in implementing technology applications. Especially in multi-party secure computing and federated learning, there are computing and network IO performance bottlenecks, high coordination costs, and incorrect data protection thresholds. Waiting questions.
Adopting a programmable data processing method based on a trusted execution environment, creating virtual containers for model training on the task execution side to ensure data privacy and security, and using the trusted execution environment management side for data encryption and identity authentication to reduce data Complexity of interactions between providers, improving model visibility and engagement for users.
It realizes model training in the trusted execution environment of the task executor, ensures the privacy and security of the sample data set, reduces communication and computing overhead, reduces the coordination cost between data providers, and improves the efficiency of model training. Efficiency and user engagement.
Smart Images

Figure CN116992458B
Abstract
Description
Technical Field
[0001] The embodiments of this specification relate to the field of privacy computing technology, and in particular to a programmable data processing method based on a trusted execution environment. Background Art
[0002] With the development of the Internet and artificial intelligence, machine learning has been applied in many fields, such as risk assessment, speech recognition, natural language processing, etc. To train the model through machine learning, a large amount of sample data is required. These sample data usually come from different companies or users, and usually involve private data. Therefore, it is necessary to ensure that private data is not leaked maliciously during the model training process. When using private data from multiple data providers for training, it is also necessary to ensure that the private data of any party will not be obtained by other parties. Therefore, there is an urgent need for a machine learning method that can ensure the security of private data of multiple parties. Summary of the invention
[0003] In view of this, an embodiment of this specification provides a programmable data processing method based on a trusted execution environment. One or more embodiments of this specification also relate to a programmable data processing device based on a trusted execution environment, a programmable data processing system based on a trusted execution environment, a computing device, a computer-readable storage medium, and a computer program to solve the technical defects existing in the prior art.
[0004] According to a first aspect of an embodiment of this specification, a programmable data processing method based on a trusted execution environment is provided, which is applied to a task executor, including:
[0005] In response to a task execution request sent by a task initiator, creating a virtual container corresponding to the task execution request, wherein the virtual container belongs to a trusted execution environment;
[0006] Determine at least one data provider according to the task execution request, obtain a sample data set corresponding to the at least one data provider and load the sample data set into the virtual container;
[0007] Receiving the model processing information sent by the task initiator, and determining the initial task model and the model training strategy corresponding to the initial task model based on the model processing information by loading the virtual container of the sample data set;
[0008] The initial task model is trained in the virtual container loaded with the sample data set according to the model training strategy, and the task execution result is fed back to the task initiator according to the training result.
[0009] According to a second aspect of an embodiment of this specification, there is provided a programmable data processing system based on a trusted execution environment, the system comprising a task initiator and a task executor;
[0010] The task initiator generates and sends a task execution request to the task executor;
[0011] The task executor, in response to the task execution request, creates a virtual container corresponding to the task execution request, wherein the virtual container belongs to a trusted execution environment; determines at least one data provider according to the task execution request, obtains a sample data set corresponding to the at least one data provider and loads it into the virtual container; receives model processing information sent by the task initiator, determines an initial task model and a model training strategy corresponding to the initial task model based on the model processing information by loading the virtual container of the sample data set; trains the initial task model in the virtual container of the sample data set according to the model training strategy, and feeds back the task execution result to the task initiator according to the training result;
[0012] The task initiator generates a local task model according to the task execution result.
[0013] According to a third aspect of an embodiment of this specification, a programmable data processing device based on a trusted execution environment is provided, which is applied to a task executor, including:
[0014] A creation module, configured to create a virtual container corresponding to a task execution request sent by a task initiator in response to the task execution request, wherein the virtual container belongs to a trusted execution environment;
[0015] an acquisition module, configured to determine at least one data provider according to the task execution request, acquire a sample data set corresponding to the at least one data provider, and load the sample data set into the virtual container;
[0016] A determination module is configured to receive the model processing information sent by the task initiator, and determine the initial task model and the model training strategy corresponding to the initial task model based on the model processing information by loading the virtual container of the sample data set;
[0017] The training module is configured to train the initial task model in the virtual container loaded with the sample data set according to the model training strategy, and feed back the task execution result to the task initiator according to the training result.
[0018] According to a fourth aspect of an embodiment of this specification, a computing device is provided, including:
[0019] Memory and processor;
[0020] The memory is used to store computer executable instructions, and the processor is used to execute the computer executable instructions. When the computer executable instructions are executed by the processor, the steps of the programmable data processing method based on the trusted execution environment are implemented.
[0021] According to a fifth aspect of the embodiments of this specification, a computer-readable storage medium is provided, which stores computer-executable instructions, and when the instructions are executed by a processor, the steps of the programmable data processing method based on a trusted execution environment are implemented.
[0022] According to a sixth aspect of the embodiments of this specification, a computer program is provided, wherein when the computer program is executed in a computer, the computer is caused to execute the steps of the above-mentioned programmable data processing method based on a trusted execution environment.
[0023] The present specification provides a programmable data processing method based on a trusted execution environment, which is applied to a task executor, comprising: in response to a task execution request sent by a task initiator, creating a virtual container corresponding to the task execution request, wherein the virtual container belongs to the trusted execution environment; determining at least one data provider according to the task execution request, obtaining a sample data set corresponding to the at least one data provider and loading it into the virtual container; receiving model processing information sent by the task initiator, and determining an initial task model and a model training strategy corresponding to the initial task model based on the model processing information by loading the virtual container of the sample data set; training the initial task model in the virtual container of the sample data set according to the model training strategy, and feeding back the task execution result to the task initiator according to the training result.
[0024] An embodiment of the present specification implements a task executor providing a trusted execution environment by creating a virtual container corresponding to a task execution request, and loading a sample data set required in the task execution request into the virtual container. The virtual container loaded with the sample data set determines an initial task model and a model training strategy corresponding to the initial task model based on model processing information, and then trains the initial task model in the virtual container according to the model training strategy, so that the model training calculation is performed in the trusted execution environment of the task executor, thereby ensuring the privacy and security of the sample data set. BRIEF DESCRIPTION OF THE DRAWINGS
[0025] Figure 1 It is a scenario diagram of a programmable data processing method based on a trusted execution environment provided by an embodiment of this specification;
[0026] Figure 2 is a flowchart of a programmable data processing method based on a trusted execution environment provided by an embodiment of this specification;
[0027] Figure 3 is a processing flow chart of a programmable data processing method based on a trusted execution environment provided by an embodiment of this specification;
[0028] Figure 4 It is a structural diagram of a programmable data processing device based on a trusted execution environment provided by an embodiment of this specification;
[0029] Figure 5 It is a flowchart of a programmable data processing system based on a trusted execution environment provided by an embodiment of this specification;
[0030] Figure 6 It is a structural block diagram of a computing device provided by an embodiment of this specification. DETAILED DESCRIPTION
[0031] Many specific details are described in the following description to facilitate a full understanding of this specification. However, this specification can be implemented in many other ways than those described herein, and those skilled in the art can make similar generalizations without violating the connotation of this specification, so this specification is not limited to the specific implementation disclosed below.
[0032] The terms used in one or more embodiments of this specification are only for the purpose of describing specific embodiments, and are not intended to limit one or more embodiments of this specification. The singular forms of "a", "said" and "the" used in one or more embodiments of this specification and the appended claims are also intended to include plural forms, unless the context clearly indicates other meanings. It should also be understood that the term "and / or" used in one or more embodiments of this specification refers to and includes any or all possible combinations of one or more associated listed items.
[0033] It should be understood that although the terms first, second, etc. may be used to describe various information in one or more embodiments of this specification, this 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 this specification, the first may also be referred to as the second, and similarly, the second may also be referred to as the first. Depending on the context, the word "if" as used herein may be interpreted as "at the time of" or "when" or "in response to determining".
[0034] In addition, it should be noted that 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 one or more embodiments of this specification 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 the relevant countries and regions, and provide corresponding operation entrances for users to choose to authorize or refuse.
[0035] First, the terms involved in one or more embodiments of this specification are explained.
[0036] Trusted Execution Environment: TEE is often used to implement user privacy protection. TEE can be roughly considered as a black box in hardware. The code and data operating system layer executed in TEE cannot be peeped, and only the pre-defined interfaces in the code can operate them. The trusted execution environment involved in the embodiments of this specification can provide a secure execution environment for software. TEE is a trusted execution environment based on the security extension of CPU hardware and is completely isolated from the outside.
[0037] At present, the main applications of privacy computing are federated learning and multi-party secure computing. However, this type of product has the following problems in design and practical application:
[0038] 1. Performance and security cannot be taken into account at the same time. This is mainly reflected in the application models based on multi-party secure computing and federated learning. Multi-party secure computing has high security but has performance bottlenecks in computing and network IO (input, output); federated learning has higher performance but lower security.
[0039] 2. High coordination cost. This is mainly reflected in the fact that the interaction between the nodes of each participant in multi-party secure computing or federated learning is similar to the P2P (peer-to-peer) network of the blockchain. The nodes of each participant are independent of each other, which leads to higher coordination and debugging costs when problems occur in the system. At the same time, the upgrade of any party’s system may also lead to inconsistency with the agreement of other participants, causing the computational learning task to fail.
[0040] 3. It is difficult to implement technology applications. This is mainly reflected in the unequal attitudes of various demand parties towards data protection. Some companies often have high requirements for their own data protection, but hope that the other party can lower the threshold for data use. At the same time, technical personnel are required to have a certain professional knowledge background in understanding privacy computing technology. In the absence of technical knowledge, negotiations and application implementation between companies will be hindered. Secondly, the self-service configurability of algorithm modules built based on multi-party secure computing and federated learning is relatively low. Most manufacturers tend to pre-assemble functions into scenario modules and open them to users. Once the results of the model or component deviate significantly from the business, it will be difficult to analyze the cause.
[0041] Based on this, in this specification, a programmable data processing method based on a trusted execution environment is provided to solve the above-mentioned problem. This specification also involves a programmable data processing apparatus based on a trusted execution environment, a programmable data processing system based on a trusted execution environment, a computing device, and a computer-readable storage medium, which are described in detail one by one in the following embodiments.
[0042] See also Figure 1 , Figure 1 A scenario diagram of a programmable data processing method based on a trusted execution environment provided according to an embodiment of this specification is shown, wherein the task initiator is a user side with machine learning requirements in a privacy computing scenario, the task executor is an intermediary that provides a trusted execution environment in the privacy computing scenario, and the data provider is a user side that provides machine learning training data in the privacy computing scenario. Figure 1In the process of machine learning, when the task initiator wants to use the data of other data providers for machine learning, it can submit a task execution request to the task executor. After receiving the task execution request, the task executor will create a virtual container for executing the task. The virtual container belongs to a trusted execution environment, thereby ensuring the data security and privacy of the task. Based on the task execution request, the data providers participating in this task are determined, and the sample data provided by each data provider are obtained and fused to generate a sample data set. The sample data set is used for machine model training in this machine learning task. The model processing information submitted by the task initiator is received. The model processing information is the modeling code written by the user for this task. The virtual container can determine the initial task model and the model training strategy corresponding to the initial task model based on the model processing information. Then the virtual container can use the sample data set to train the initial task model according to the model training strategy. After training, a model that meets the user's expected needs is obtained, and the task execution result is returned to the task initiator. The programmable data processing method based on a trusted execution environment provided in the embodiments of this specification can not only reduce communication and computing overheads, but also ensure the privacy and security of task data by centralizing calculations such as model training and learning in the virtual container of the task initiator. In addition, since users can perform modeling through interactive programming, the visibility of the model to users and the degree of user participation in the machine learning process can also be improved.
[0043] See also Figure 2 , Figure 2 A flowchart of a programmable data processing method based on a trusted execution environment provided according to an embodiment of the present specification is shown, which specifically includes the following steps.
[0044] Step 202: In response to a task execution request sent by a task initiator, a virtual container corresponding to the task execution request is created, wherein the virtual container belongs to a trusted execution environment.
[0045] The task initiator can be understood as the user side with machine learning requirements in the privacy computing scenario, and the task executor can be understood as the intermediary that provides a trusted execution environment in the privacy computing scenario. The task execution request can be understood as the request from the task initiator to the task executor to execute the task when there is a machine learning requirement. The virtual container can be understood as the virtual environment built by the task executor for the task execution request, and the model training and machine learning tasks corresponding to the task execution request are completed through the applications deployed in the virtual container.
[0046] In actual applications, the task initiator deploys a privacy computing client, and sends a task execution request to the task executor through the privacy computing client, in order to execute the model training task used in a certain business. The task executor deploys a trusted execution environment management terminal, which receives and responds to the task execution request through the trusted execution environment management terminal, thereby cooperating with the task executor to complete the model training task. In specific implementation, the virtual container is a confidential container. The virtual container is based on secure virtualization technology. When writing data to the memory, it will be automatically encrypted by the CPU (Central Processing Unit) hardware, and automatically decrypted by the hardware when reading the memory. At the same time, each virtual container uses different keys to encrypt data, thereby ensuring resource isolation and key independence between different virtual containers, so that the encrypted data in the virtual container will not be decrypted and obtained by other virtual containers, ensuring the privacy and security of the data in the virtual container, and playing the role of a trusted execution environment.
[0047] In a specific embodiment of this specification, the task initiator is Bank A, which expects to train a recommendation model for predicting the user's loan amount. However, in order to improve the recommendation effect of the recommendation model, in addition to using the bank's user data for training, it can also seek cooperative data from other data providers to participate in the training, such as jointly training the model with user data from other banks. At this time, in order to ensure the privacy and security of the user data of both parties, the task of joint learning can be executed by a task executor who has the conditions to provide a trusted execution environment. Bank A will send a task execution request for the recommendation model training task to the task executor. After receiving the request, the task executor will create a virtual container for executing the task. The virtual container belongs to the trusted execution environment, thereby ensuring the privacy and security of the data of both parties.
[0048] Furthermore, in order to enable the task initiator to use the trusted execution environment of the task executor for model training, the task initiator needs to register with the task executor in advance. The specific method also includes: in response to the registration request sent by the task initiator, establishing a target transmission channel corresponding to the task initiator; and returning the registration result corresponding to the registration request through the target transmission channel.
[0049] Among them, the registration request can be understood as a request for the task initiator to register with the task executor. Since the task initiator needs to perform privacy computing through the trusted execution environment of the task executor, the task initiator needs to register with the task executor in advance. During the registration process, the task initiator can publish its local cooperation data. The target transmission channel can be understood as a channel for communication between the task initiator and the task executor. After the task initiator registers with the task executor, a target transmission channel will be established between the two parties. In specific implementation, the target transmission channel is a dedicated network channel, which can improve the trust between the two parties and prevent third parties from obtaining the communication data between the two parties, thereby improving data privacy and security.
[0050] In actual applications, the TEE management terminal, as a centralized trusted execution environment provider, opens a registration interface to the outside world. Data providers who expect to publish shared data sets and demanders who want to seek cooperative data can register on the TEE management terminal. After registration, the TEE management terminal will return the registration result through the corresponding dedicated network channel.
[0051] In a specific embodiment of the present specification, citing the above example, Bank A sends a registration request to the TEE management end (task executor), and the TEE management end responds to the registration request to establish a dedicated network transmission channel between it and Bank A, and returns the registration result corresponding to the registration request through the dedicated network transmission channel.
[0052] Based on this, by registering with the task executor, any data provider can use the trusted execution environment of the task executor to perform multi-party privacy computing, which can improve the model learning effect while ensuring data privacy and security.
[0053] Furthermore, in order to prevent the local data provided by the task initiator from being maliciously obtained, resulting in data leakage of the task initiator, the data can also be encrypted based on an encryption algorithm. The specific method also includes: responding to the task execution request sent by the task initiator, determining the encryption public key corresponding to the task initiator and generating a symmetric key corresponding to the task execution request.
[0054] The encryption public key can be understood as the public key in the key pair generated by the task initiator, and the symmetric key can be understood as the session key corresponding to a single task generated by negotiation between the task initiator and the task executor. In specific implementation, the symmetric key will be used to encrypt the data transmitted between the two parties, and the symmetric key will be pre-encrypted with the encryption public key. Therefore, the interactive data between the task executor and the task initiator includes at least the symmetric key encrypted by the encryption public key and the transmission data encrypted by the symmetric key.
[0055] In actual applications, before each task is executed, the task initiator and the task executor will generate a symmetric key for encrypting the transmitted data through key negotiation, such as the AES protocol (Advanced Encryption Standard), CBC mode (Cipher Block Chaining), PKCS5 padding (The Public-Key Cryptography Standards), and a length of 256 bits.
[0056] In a specific embodiment of the present specification, citing the above example, during the registration process with the TEE management end, Bank A will generate a key pair and hand over the encrypted public key in the key pair to the TEE management end. After Bank A sends a task execution request, the two parties will generate a symmetric key corresponding to this task through key negotiation.
[0057] Based on this, the privacy and security of data in the privacy computing process can be further guaranteed by encrypting public keys and symmetric keys.
[0058] Furthermore, before the task executor responds to the task execution request sent by the task initiator, the task executor and the task initiator will perform identity authentication on each other to avoid data leakage. Specifically, before responding to the task execution request sent by the task initiator, the method also includes: receiving the identity authentication request sent by the task initiator, and determining the initiator identity information corresponding to the task initiator; sending the executor identity information to the task initiator, wherein the executor identity information is used by the task initiator to authenticate the task executor; authenticating the task initiator based on the initiator identity information, and if the authentication is passed, responding to the task execution request sent by the task initiator, and creating a virtual container corresponding to the task execution request.
[0059] Among them, the identity authentication request can be understood as the task initiator's request for identity authentication of the task executor, the initiator's identity information can be understood as the information used to verify the identity of the task initiator, the initiator's identity information can be the identification information of the privacy computing client deployed by the task initiator, the executor's identity information can be understood as the information for the user to verify the identity of the task executor, and the executor's identity information can be the authentication report information of the trusted execution environment of the task executor. When the task initiator verifies the identity of the task executor based on the executor's identity information, it will send a task execution request to the task executor; after the task executor verifies the identity of the task initiator based on the initiator's identity information, it will continue to execute the task in response to the task execution request.
[0060] In practical applications, in order to prevent a third party from obtaining the local data of the task initiator or the data of other data providers in the task executor, the task initiator and the task executor need to perform identity authentication before each task is executed. In specific implementation, since both the TEE management end and the data provider deploy privacy computing applications, the privacy computing service provider will regularly provide and update the image file. The TEE management end can compare the registration information corresponding to the task initiator with the identity information of the initiator. If the comparison is consistent, the identity authentication is passed. The task initiator can obtain the identity information of the executor sent by the TEE management end. The identity information of the executor can be the authentication report information of the virtual container. The authentication report information can include the measurement value, version number, owner and other information of the virtual machine. The legitimacy of the data is confirmed by the report signature. The legitimacy of the virtual container identity can be confirmed by checking the measurement value and other information. Therefore, the task initiator can check the authentication report to confirm the legitimacy of the operating environment, thereby completing the identity authentication of the TEE management end, i.e. the task executor.
[0061] Based on this, through mutual identity authentication between the task initiator and the task executor, the trust between the two parties is improved, and the security of the data involved in the subsequent execution of the task can also be guaranteed.
[0062] Furthermore, in order to prevent the training data of the model training from being obtained by a third party, thereby causing data leakage of the participants, it is necessary to execute the task in a trusted execution environment, and specifically respond to the task execution request sent by the task initiator, and create a virtual container corresponding to the task execution request, including: responding to the task execution request sent by the task initiator, determining the task resource information of the task execution request; scheduling virtual resources according to the task resource information, and using the virtual resources to create a virtual container corresponding to the task execution request.
[0063] Among them, task resource information can be understood as the amount of virtual resources required to execute the task corresponding to the task execution request, such as 1 core of CPU and 4G memory are required to execute task A. Virtual resources can be understood as virtual resources in the device. Virtual resources are scheduled and used to create virtual containers, that is, some resources are allocated to virtual containers to execute corresponding tasks. After the task is executed, the virtual resources will be released.
[0064] In a specific embodiment of the present specification, citing the above example, the TEE management end responds to a task execution request sent by Bank A for a recommendation model training task for predicting a user's loan amount, determines that the task resource information corresponding to the task execution request is 2 cores and 4G memory, and the TEE management end schedules this part of the resources and creates a virtual container.
[0065] Step 204: Determine at least one data provider according to the task execution request, obtain a sample data set corresponding to the at least one data provider, and load the sample data set into the virtual container.
[0066] Among them, the data provider can be understood as the party that provides sample data in this model training task. In order to improve the model training effect, model training can be carried out by introducing data provided by multiple parties. Therefore, multiple data providers can be determined according to the task execution request of the task initiator. Subsequently, the sample data provided by each data provider are obtained separately and fused to generate a sample data set. The model is trained using the sample data set to obtain a model with better prediction effect.
[0067] In actual applications, the task initiator can provide local sample data, and as a data provider, add its own sample data to the sample data set. Therefore, the data providers may include the task initiator and other users who provide data, or only other users who provide data. The data provider can be determined based on the actual training task. It should be noted that the data provider is determined based on the task execution request, so the task initiator has already determined the data provider when generating the task execution request, so the task executor can determine the data provider of this task based on the task execution request, and then obtain data from the data provider.
[0068] In a specific embodiment of the present specification, citing the above example, the TEE management end, i.e., the task executor, determines the data provider as Bank A which is the task initiator, and Bank B which provides the data based on the task execution request, respectively obtains the sample data corresponding to each data provider and combines them into a sample data set, and loads the sample data set into a virtual container so that subsequent virtual containers can execute training tasks based on the sample data set.
[0069] Furthermore, in order to avoid the inability to train the expected model normally due to incorrect determination of the data provider, it is necessary to determine the data provider based on the data source in the task execution request. Specifically, at least one data provider is determined according to the task execution request, including: determining the data source information carried in the task execution request; and determining at least one data provider according to the data source information.
[0070] Among them, the data source information can be understood as the source information of the data, which may include the identity information of the data provider, data identification information, etc. The data provider and the sample data that need to participate in the model training can be determined through the data source information.
[0071] In a specific embodiment of the present specification, citing the above example, the TEE management end parses the task execution request and obtains the data source information carried in the task execution request. The data source information is "Bank A: user billing data, Bank B: user billing data". Through the data source information, it can be determined that the data providers are Bank A and Bank B.
[0072] Based on this, the data provider and the data provided by the data provider can be accurately determined through the data source information carried in the task execution request, so that the acquired data can be applied to subsequent model training to improve the model training effect.
[0073] Furthermore, in order to ensure the model training effect, after determining the data provider, it is necessary to pull the corresponding sample data from the data provider and load it into the virtual container. Specifically, obtaining the sample data set corresponding to at least one data provider and loading it into the virtual container includes: sending a data acquisition request to the at least one data provider based on the data source information; receiving at least one sample data returned by the at least one data provider in response to the data acquisition request; generating a sample data set based on the at least one sample data and loading it into the virtual container corresponding to the task execution request.
[0074] Among them, the data acquisition request can be understood as a request from the task executor to pull data from the data provider. The data acquisition request may include information such as data identification and data volume. After the data provider receives the data acquisition request sent by the task initiator, it can determine the data that the task initiator needs to pull based on the relevant information carried in the data acquisition request, and then return sample data to the task initiator. Sample data is the data provided by each data provider. Since there may be multiple data providers, and each data provider has its own sample data, the task executor may receive multiple sample data. In order to facilitate model training, multiple sample data can be fused to generate a sample data set, and the sample data set is loaded into the virtual container so that the virtual container can use the sample data set to perform training tasks.
[0075] In actual applications, when the task executor sends a data acquisition request to the data provider based on the data source information, the data provider will authenticate the identity of the task executor and determine whether the execution environment of the task executor is legal. If the data provider passes the identity authentication of the task executor, the data provider will return the sample data corresponding to the data acquisition request to the task executor. After receiving the sample data returned by multiple data providers, the task executor will fuse all the sample data to generate a sample data set, and load it into the virtual container so that the virtual container can use the sample data set to perform the model training task.
[0076] In a specific embodiment of the present specification, citing the above example, data acquisition requests are sent to Bank A and Bank B respectively based on the data source information to obtain the user bill data corresponding to each bank. After receiving the data returned by the two banks, data fusion is performed to generate a sample data set, and the generated sample data set is loaded into the virtual container.
[0077] Based on this, the task executor generates data acquisition requests corresponding to different data providers through the data source information, and pulls the sample data corresponding to each data provider based on the data acquisition request, thereby ensuring the integrity of the data required for the task, avoiding the subsequent inability to perform training tasks normally, and improving training efficiency.
[0078] Furthermore, in order to be able to carry out model training normally, it is necessary to fuse multiple sample data and generate a sample data set, and use the fused sample data in the sample data set to carry out model training. Specifically, the sample data set is generated based on the at least one sample data, including: obtaining the data identifier of each sample sub-data in the at least one sample data; fusing the at least one sample data according to each data identifier, and generating a sample data set according to the fusion result.
[0079] The sample sub-data can be understood as each sub-data in the sample data. For example, if the sample data is 100 pieces of user billing data, one piece of user billing data is the sample sub-data of the sample data. The data identifier of the sample sub-data can be understood as the unique identification information corresponding to each sample sub-data. The sample data involved in different training tasks are also different, so the data identifiers of the sample sub-data of the sample data in different training tasks are different. By fusing multiple sample data according to the data identifier, multiple sample data can be fused according to the data identifier, thereby generating a sample data set composed of sample data corresponding to multiple data providers.
[0080] In specific implementation, since the task initiator hopes to improve the model training effect through the data provided by other data providers, the attribute information of the sample data provided by other data providers may be different from the data provided by the task initiator. For example, the task initiator hopes to train a model that can predict user behavior habits. The data provided by the task initiator is the user's shopping record data, and the data provided by other data providers is the user's favorite product information. When the sample data provided by both parties are merged, it is necessary to determine the data identifier of each sample sub-data. The data identifier can be a user identifier such as a user account, a user's unique name, etc. The shopping record data and the favorite product information of the same user are combined through the user identifier, thereby realizing the fusion of multiple sample data to generate a sample data set.
[0081] In a specific embodiment of the present specification, citing the above example, after obtaining the sample data provided by Bank A and Bank B respectively, the data identifier of each sample sub-data in each sample data is determined, that is, the identity account information of each user, and data fusion is performed according to the identity account information of each user. The data provided by the two banks are fused according to the rules of the same user, thereby generating a sample data set composed of the two sample data.
[0082] Based on this, after generating a sample data set by performing data fusion according to the data identifier of the sample sub-data, the virtual container can use the sample data set for model training, thereby improving the model training effect and obtaining a prediction model that better meets user expectations.
[0083] Step 206: Receive the model processing information sent by the task initiator, and determine the initial task model and the model training strategy corresponding to the initial task model based on the model processing information by loading the virtual container of the sample data set.
[0084] Among them, the model processing information can be understood as the information submitted by the task initiator for model training processing in the model training task. The model processing information may include model construction information, model training information, etc. The initial task model and the model training strategy corresponding to the initial task model can be constructed through the model processing information. The initial task model can be understood as the model constructed according to the instructions of the task initiator. The model is the initial model before training. The model training strategy can be understood as the training strategy formulated for the initial task model. The model training strategy may include model training target parameters, model training rounds and other information. By training the initial task model according to the model training strategy, a prediction model that meets user expectations can be obtained.
[0085] In specific implementation, the model processing information is the executable code block edited and submitted by the user through the interactive development window. After receiving the executable code submitted by the user, the virtual container can analyze and execute the executable code to build an initial task model and determine the model training strategy corresponding to the initial task model.
[0086] In a specific embodiment of the present specification, citing the above example, the model processing information, i.e., the model code, submitted by Bank A is received, the model code is analyzed and executed through a virtual container, the initial task model of this model training task is constructed, and the model training strategy for training the initial task model in this model training task is determined.
[0087] Furthermore, in order to provide users with the application capabilities of interactive model programming and enhance the visibility and autonomy of the model to users, it is necessary to provide users with a model building address, which can specifically receive the model processing information sent by the task initiator, including: sending the model building address corresponding to the virtual container to the task initiator, wherein the model building address is used to enable the task initiator to determine the processing interface of the model processing information; receiving the model processing information returned by the task initiator based on the model building address.
[0088] The model building address can be understood as the URL address (Uniform Resource Locator) of the machine learning server in the virtual container. By calling back the model building address to the privacy computing client of the task initiator, the privacy computing client can be redirected to the URL address and open the interactive development window, so that the task initiator can perform model programming through the interactive development window. Therefore, the role of the model building address is to provide the task initiator with a processing interface for model programming, through which the task initiator can submit the written model code to the task executor.
[0089] In specific implementation, a machine learning server is deployed in the virtual container to execute the model code submitted by the task initiator to achieve the training task. Through the online interactive programming window, the task initiator can independently build the initial training model and formulate corresponding training strategies, thereby improving the user's sense of participation in model training.
[0090] In a specific embodiment of the present specification, the TEE manager sends the model building address, i.e., the URL address, of the machine learning server in the virtual container to Bank A. Bank A redirects to the URL through the privacy computing client, writes code through the interactive development window, and returns it to the virtual container.
[0091] Based on this, by providing users with an online programming processing interface, the visibility and autonomy of the model to users can be effectively improved, and users' sense of participation in model training can be enhanced.
[0092] Furthermore, in order to avoid data privacy and security issues caused by users submitting unauthorized and illegal code, it is necessary to detect violations of the model code submitted by the user. Specifically, the initial task model and the model training strategy corresponding to the initial task model are determined based on the model processing information by loading the virtual container of the sample data set, including: detecting the model processing information according to preset information detection rules by loading the virtual container of the sample data set; constructing the initial task model according to the detection results, and generating the model training strategy corresponding to the initial task model.
[0093] Among them, the preset information detection rules can be understood as rules used to detect whether there is any illegal information in the model processing information. By detecting the model processing information according to the preset information detection rules, it can be detected whether there is any illegal information in the model processing information, thereby preventing the task initiator from unauthorizedly obtaining the privacy data of other data providers.
[0094] In actual applications, a detection component can be deployed in the virtual container. The detection component will perform compliance detection on the model code submitted by the user, shield the code logic that endangers privacy, and submit the filtered model code to the machine learning server for execution. In specific implementation, when the detection component detects that there are illegal codes in the model code submitted by the user, it can also directly return the violation information to the task initiator, so that the task initiator can adjust the illegal code and resubmit it. The specific corresponding strategy after detection can be formulated according to actual needs.
[0095] In a specific embodiment of the present specification, citing the above example, the model code submitted by Bank A is received, and the model code is detected by the detection component in the virtual container according to the preset information detection rules. If the detection result is that there is no illegal code in the model code, the model code can be forwarded to the machine learning server, and the model code is executed by the machine learning server, thereby realizing the training task of the initial task model.
[0096] Step 208: The initial task model is trained in the virtual container loaded with the sample data set according to the model training strategy, and the task execution result is fed back to the task initiator according to the training result.
[0097] Among them, the training result can be understood as the training result obtained after training the initial task model. The training result may include a task model that meets the training conditions, as well as data such as evaluation parameters associated with the task model. The task execution result can be understood as the execution result of the training task returned to the task initiator. The task execution result may include evaluation parameters, model parameters and other data obtained for the task model that meets the training conditions. By feeding back the task execution result to the task initiator, the task initiator can obtain the task model generated by privacy computing and achieve the user's expected prediction model training purpose.
[0098] In a specific embodiment of the present specification, the initial task model is trained according to the model training strategy by the machine learning server in the virtual container. After the training, a prediction task model of the user loan amount that meets the training conditions is obtained, and the relevant model parameters of the prediction task model are returned to Bank A.
[0099] Furthermore, in order to prevent the private data of the task initiator from being maliciously obtained by a third party during the model training process, the interactive data between the task initiator and the task executor can be encrypted by an encryption algorithm, and the task execution result is fed back to the task initiator based on the training result, including: encrypting the training result with the symmetric key to obtain an encrypted training result, and encrypting the symmetric key with the encrypted public key to obtain an encrypted symmetric key; generating a task execution result based on the encrypted training result and the encrypted symmetric key and feeding it back to the task initiator.
[0100] Among them, the symmetric key is the encryption key generated by negotiation between the two parties in this training task. The training results are encrypted with the symmetric key to obtain the encrypted training results. In order for the task initiator to decrypt the encrypted training results, the symmetric key also needs to be synchronized to the task initiator. In order to ensure that the symmetric key is not obtained by other parties, thereby causing the privacy data of the training results to be leaked, the symmetric key needs to be encrypted with the encrypted public key to obtain the encrypted symmetric key, thereby ensuring that the interaction data between the task initiator and the task executor will not be obtained by a third party, thereby ensuring the privacy and security of the data.
[0101] In a specific embodiment of the present specification, the virtual container uses a symmetric key to encrypt the model training result to obtain an encrypted training result, and uses an encrypted public key to encrypt the symmetric key to obtain an encrypted symmetric key, and combines the encrypted training result with the encrypted symmetric key to generate a task execution result and returns it to the privacy computing client of Bank A, so that Bank A can use the decryption private key it holds to decrypt the encrypted symmetric key to obtain the symmetric key, and then use the symmetric key to decrypt the encrypted training result to obtain the training result, thereby achieving privacy protection of the interactive data between the two parties.
[0102] A programmable data processing method based on a trusted execution environment is provided in this specification and is applied to a task executor, comprising: responding to a task execution request sent by a task initiator, creating a virtual container corresponding to the task execution request, wherein the virtual container belongs to the trusted execution environment; determining at least one data provider according to the task execution request, obtaining a sample data set corresponding to the at least one data provider and loading it into the virtual container; receiving model processing information sent by the task initiator, and determining an initial task model and a model training strategy corresponding to the initial task model based on the model processing information by loading the virtual container of the sample data set; training the initial task model in the virtual container of the sample data set according to the model training strategy, and feeding back the task execution result to the task initiator according to the training result. The task executor provides a trusted execution environment by creating a virtual container corresponding to the task execution request, and loads the sample data set required in the task execution request into the virtual container. The virtual container loaded with the sample data set determines the initial task model and the model training strategy corresponding to the initial task model based on the model processing information, and then trains the initial task model in the virtual container according to the model training strategy, so that the model training calculation is performed in the trusted execution environment of the task executor, ensuring the privacy and security of the sample data set.
[0103] The following combination Figure 3 Taking the application of the programmable data processing method based on a trusted execution environment provided in this specification in the user preference prediction model training task as an example, the programmable data processing method based on a trusted execution environment is further described. Figure 3 A processing flow chart of a programmable data processing method based on a trusted execution environment provided by an embodiment of the present specification is shown, which specifically includes the following steps.
[0104] Step 302: In response to the registration request sent by the task initiator, a target transmission channel corresponding to the task initiator is established, and a registration result corresponding to the registration request is returned through the target transmission channel.
[0105] In one feasible method, the task initiator is shopping platform A, which sends a registration request to the TEE manager. After the TEE manager responds to the registration request, it establishes a target transmission channel between the two parties and returns the successful registration result to the privacy computing client of shopping platform A through the target transmission channel.
[0106] Step 304: In response to the task execution request sent by the task initiator, determine the task resource information of the task execution request; schedule virtual resources according to the task resource information, and use the virtual resources to create a virtual container corresponding to the task execution request.
[0107] In one feasible method, the task initiator prepares to train a product recommendation model that can predict and recommend products to users, builds a model training task for the product recommendation model, and sends a task execution request for the task to the TEE management end. After receiving the task execution request, the TEE management end determines that the task resource information of the task is 2 cores and 4G memory, and calls the corresponding virtual resources to create a virtual container, which is used to execute the model training task.
[0108] Step 306: Determine the data source information carried in the task execution request, and determine at least one data provider according to the data source information.
[0109] In one feasible method, the data source information carried in the task execution request is determined, the data source information includes the user historical purchase behavior data of shopping platform A and the user historical purchase behavior data of shopping platform B, and the data providers are determined to be shopping platform A and shopping platform B through the data source information.
[0110] Step 308: Send a data acquisition request to at least one data provider based on the data source information, and receive at least one sample data returned by at least one data provider in response to the data acquisition request.
[0111] In one feasible method, the TEE management end sends data acquisition requests to shopping platform A and shopping platform B respectively through a virtual container, and obtains that the sample data provided by shopping platform A is the historical purchase behavior data of users of shopping platform A, and the sample data provided by shopping platform B is the historical purchase behavior data of users of shopping platform B.
[0112] Step 310: Generate a sample data set according to at least one sample data and load it into a virtual container corresponding to the task execution request.
[0113] In one achievable method, a data identifier of each sample sub-data in at least one sample data is obtained, at least one sample data is fused according to each data identifier, and a sample data set is generated according to the fusion result, including determining the user identifier according to the user's historical purchase behavior data obtained from shopping platform A and shopping platform B respectively, and combining the historical purchase behavior data of the same user on the two shopping platforms based on the user identifier, thereby fusing the sample data provided by the two shopping platforms to generate a sample data set, and loading it into the machine learning server of the virtual container.
[0114] Step 312: Send the model building address corresponding to the virtual container to the task initiator, wherein the model building address is used to enable the task initiator to determine the processing interface of the model processing information and receive the model processing information returned by the task initiator based on the model building address.
[0115] In one feasible method, the URL address of the machine learning server is called back to the privacy computing client of shopping platform A. The privacy computing client can redirect to the URL address and edit the model code through the interactive development window and return it to the virtual container of the TEE management end.
[0116] Step 314: by loading the virtual container of the sample data set, the model processing information is detected according to the preset information detection rules, the initial task model is constructed according to the detection results, and the model training strategy corresponding to the initial task model is generated.
[0117] In one feasible method, the model code is checked for compliance through the detection component in the virtual container according to the preset information detection rules. After the detection, the filtered model code is obtained and submitted to the machine learning server for execution, thereby constructing the initial task model and the model training strategy corresponding to the initial task model.
[0118] Step 316: Train the initial task model in the virtual container loaded with the sample data set according to the model training strategy, and feedback the task execution result to the task initiator based on the training result.
[0119] In one feasible method, the initial task model is trained according to the model training strategy through the machine learning server deployed in the virtual container to obtain a product recommendation model that meets the training conditions, and the evaluation parameters, model parameters and other information of the product recommendation model are encrypted using a symmetric key, and the encrypted public key is used to encrypt the symmetric key. The encrypted training result and the encrypted symmetric key are combined to generate a task execution result, which is returned to the A shopping platform, thereby completing the model training task of the product recommendation model.
[0120] The present specification provides a programmable data processing method based on a trusted execution environment, which enables a task executor to provide a trusted execution environment by creating a virtual container corresponding to a task execution request, and load a sample data set required in the task execution request into the virtual container. The virtual container loaded with the sample data set determines the initial task model and the model training strategy corresponding to the initial task model based on model processing information, and then trains the initial task model in the virtual container according to the model training strategy, so that the model training calculation is performed in the trusted execution environment of the task executor, thereby ensuring the privacy and security of the sample data set.
[0121] Corresponding to the above method embodiment, this specification also provides an embodiment of a programmable data processing device based on a trusted execution environment, Figure 4 FIG. 1 shows a schematic diagram of a programmable data processing device based on a trusted execution environment provided by an embodiment of the present specification. Figure 4As shown, the device comprises:
[0122] The creation module 402 is configured to create a virtual container corresponding to the task execution request in response to the task execution request sent by the task initiator, wherein the virtual container belongs to a trusted execution environment;
[0123] An acquisition module 404 is configured to determine at least one data provider according to the task execution request, acquire a sample data set corresponding to the at least one data provider, and load the sample data set into the virtual container;
[0124] The determination module 406 is configured to receive the model processing information sent by the task initiator, and determine the initial task model and the model training strategy corresponding to the initial task model based on the model processing information by loading the virtual container of the sample data set;
[0125] The training module 408 is configured to train the initial task model in the virtual container loaded with the sample data set according to the model training strategy, and feed back the task execution result to the task initiator according to the training result.
[0126] Optionally, the creation module 402 is further configured to determine task resource information of the task execution request in response to the task execution request sent by the task initiator; schedule virtual resources according to the task resource information, and use the virtual resources to create a virtual container corresponding to the task execution request.
[0127] Optionally, the acquisition module 404 is further configured to determine data source information carried in the task execution request; and determine at least one data provider according to the data source information.
[0128] Optionally, the acquisition module 404 is further configured to send a data acquisition request to the at least one data provider based on the data source information; receive at least one sample data returned by the at least one data provider in response to the data acquisition request; generate a sample data set based on the at least one sample data and load it into the virtual container corresponding to the task execution request.
[0129] Optionally, the acquisition module 404 is further configured to acquire a data identifier of each sample sub-data in the at least one sample data; fuse the at least one sample data according to each data identifier, and generate a sample data set according to the fusion result.
[0130] Optionally, the determination module 406 is further configured to send the model building address corresponding to the virtual container to the task initiator, wherein the model building address is used to enable the task initiator to determine the processing interface of the model processing information; and receive the model processing information returned by the task initiator based on the model building address.
[0131] Optionally, the determination module 406 is further configured to detect the model processing information according to preset information detection rules by loading the virtual container of the sample data set; construct an initial task model according to the detection results, and generate a model training strategy corresponding to the initial task model.
[0132] Optionally, the device also includes a verification module, configured to receive an identity authentication request sent by the task initiator, determine the initiator identity information corresponding to the task initiator; send the executor identity information to the task initiator, wherein the executor identity information is used by the task initiator to authenticate the task executor; authenticate the task initiator based on the initiator identity information, and if the verification is successful, execute the step of responding to the task execution request sent by the task initiator and creating a virtual container corresponding to the task execution request.
[0133] Optionally, the device further includes a registration module configured to establish a target transmission channel corresponding to the task initiator in response to a registration request sent by the task initiator; and return a registration result corresponding to the registration request through the target transmission channel.
[0134] Optionally, the device also includes an encryption module, which is configured to feedback the task execution result to the task initiator based on the training result, including: encrypting the training result using the symmetric key to obtain an encrypted training result, and encrypting the symmetric key using the encryption public key to obtain an encrypted symmetric key; generating a task execution result based on the encrypted training result and the encrypted symmetric key and feeding it back to the task initiator.
[0135] A programmable data processing device based on a trusted execution environment provided in this specification is applied to a task executor, comprising: a creation module, configured to create a virtual container corresponding to a task execution request sent by a task initiator in response to the task execution request, wherein the virtual container belongs to the trusted execution environment; an acquisition module, configured to determine at least one data provider according to the task execution request, obtain a sample data set corresponding to the at least one data provider and load it into the virtual container; a determination module, configured to receive model processing information sent by the task initiator, and determine an initial task model and a model training strategy corresponding to the initial task model based on the model processing information by loading the virtual container of the sample data set; a training module, configured to train the initial task model in the virtual container of the sample data set according to the model training strategy, and feedback the task execution result to the task initiator according to the training result. The task executor provides a trusted execution environment by creating a virtual container corresponding to the task execution request, and loads the sample data set required in the task execution request into the virtual container. The virtual container loaded with the sample data set determines the initial task model and the model training strategy corresponding to the initial task model based on the model processing information, and then trains the initial task model in the virtual container according to the model training strategy, so that the model training calculation is performed in the trusted execution environment of the task executor, ensuring the privacy and security of the sample data set.
[0136] The above is a schematic scheme of a programmable data processing device based on a trusted execution environment of this embodiment. It should be noted that the technical scheme of the programmable data processing device based on a trusted execution environment and the technical scheme of the programmable data processing method based on a trusted execution environment belong to the same concept, and the details of the technical scheme of the programmable data processing device based on a trusted execution environment that are not described in detail can all be referred to the description of the technical scheme of the programmable data processing method based on a trusted execution environment.
[0137] Corresponding to the above method embodiment, this specification also provides a programmable data processing system embodiment based on a trusted execution environment, Figure 5 FIG. 1 is a flow chart of a programmable data processing system based on a trusted execution environment provided by an embodiment of the present specification. Figure 5 As shown, the system includes a task initiator 502 and a task executor 504;
[0138] The task initiator 502 generates and sends a task execution request to the task executor;
[0139] In one achievable manner, the task initiator generates a task execution request and sends the task execution request to the task executor.
[0140] The task executor 504, in response to the task execution request, creates a virtual container corresponding to the task execution request, wherein the virtual container belongs to a trusted execution environment; determines at least one data provider according to the task execution request, obtains a sample data set corresponding to the at least one data provider and loads it into the virtual container; receives model processing information sent by the task initiator, determines an initial task model and a model training strategy corresponding to the initial task model based on the model processing information by loading the virtual container of the sample data set; trains the initial task model in the virtual container of the sample data set according to the model training strategy, and feeds back the task execution result to the task initiator according to the training result.
[0141] The task initiator 502 generates a local task model according to the task execution result.
[0142] In one achievable manner, after receiving the task execution result, the task initiator may generate a local task model locally based on the content included in the task execution result, and put the local task model into the project for implementation.
[0143] Optionally, the system further includes a task collaborator, wherein the task collaborator is a data provider;
[0144] The task collaborator, in response to a data acquisition request sent by the task executor, determines the executor identity information corresponding to the task executor, authenticates the task executor based on the executor identity information, and sends sample data to the task executor if the authentication is successful, wherein the sample data is used to generate the sample data set.
[0145] In one feasible method, the task collaborator is the data provider who provides data in this model training task. After the task executor determines the data provider, it will send a data acquisition request to the task collaborator so that the task collaborator will send the local sample data to the task executor for model training. Before sending the sample data to the task executor, the task collaborator will authenticate the identity of the task executor, that is, verify the environmental legitimacy of the virtual container, determine the executor identity information of the task executor, that is, the authentication report information of the virtual container, verify the legitimacy of the virtual container based on the authentication report information, and send the local sample data to the task executor if the verification is passed.
[0146] Optionally, the sample data is encrypted using a collaborative encryption private key to obtain encrypted sample data, and the encrypted sample data is sent to the task executor; the task executor decrypts the encrypted sample data using the collaborative encryption public key corresponding to the task collaborator to obtain the sample data.
[0147] In one feasible method, in order to ensure the security of the interactive data between the task collaborator and the task executor, the data between the two parties can also be encrypted. The task collaborator will use the collaborative encryption public key to encrypt the sample data. After the task executor receives the encrypted sample data, it will decrypt the encrypted sample data based on the collaborative encryption public key to obtain the sample data.
[0148] The present specification provides a programmable data processing system based on a trusted execution environment, the system comprising a task initiator and a task executor; the task initiator generates and sends a task execution request to the task executor; the task executor creates a virtual container corresponding to the task execution request in response to the task execution request, wherein the virtual container belongs to the trusted execution environment; at least one data provider is determined according to the task execution request, a sample data set corresponding to the at least one data provider is obtained and loaded into the virtual container; model processing information sent by the task initiator is received, and an initial task model and a model training strategy corresponding to the initial task model are determined based on the model processing information by loading the virtual container of the sample data set; the initial task model is trained in the virtual container of the sample data set according to the model training strategy, and the task execution result is fed back to the task initiator according to the training result; the task initiator generates a local task model according to the task execution result. The task executor provides a trusted execution environment by creating a virtual container corresponding to the task execution request, and loads the sample data set required in the task execution request into the virtual container. The virtual container loaded with the sample data set determines the initial task model and the model training strategy corresponding to the initial task model based on the model processing information, and then trains the initial task model in the virtual container according to the model training strategy, so that the model training calculation is performed in the trusted execution environment of the task executor, ensuring the privacy and security of the sample data set.
[0149] The above is a schematic scheme of a programmable data processing system based on a trusted execution environment of this embodiment. It should be noted that the technical scheme of the programmable data processing system based on a trusted execution environment and the technical scheme of the programmable data processing method based on a trusted execution environment belong to the same concept, and the details of the technical scheme of the programmable data processing system based on a trusted execution environment that are not described in detail can all be referred to the description of the technical scheme of the programmable data processing method based on a trusted execution environment.
[0150] Figure 6 The block diagram of a computing device 600 according to an embodiment of the present specification is shown. The components of the computing device 600 include but are not limited to a memory 610 and a processor 620. The processor 620 is connected to the memory 610 via a bus 630, and the database 650 is used to store data.
[0151] The computing device 600 also includes an access device 640, which enables the computing device 600 to communicate via one or more networks 660. Examples of these networks include a public switched telephone network (PSTN), a local area network (LAN), a wide area network (WAN), a personal area network (PAN), or a combination of communication networks such as the Internet. The access device 640 may include one or more of any type of network interface (e.g., a network interface card (NIC)) of wired or wireless, such as an IEEE 802.11 wireless local area network (WLAN) wireless interface, a world-wide interoperability for microwave access (Wi-MAX) interface, an Ethernet interface, a universal serial bus (USB) interface, a cellular network interface, a Bluetooth interface, and a near field communication (NFC).
[0152] In one embodiment of the present specification, the above components of the computing device 600 and Figure 6 Other components not shown in the figure may also be connected to each other, for example, via a bus. It should be understood that Figure 6 The computing device structure block diagram shown is only for the purpose of illustration, and is not intended to limit the scope of this specification. Those skilled in the art can add or replace other components as needed.
[0153] The computing device 600 may be any type of stationary or mobile computing device, including a mobile computer or mobile computing device (e.g., a tablet computer, a personal digital assistant, a laptop computer, a notebook computer, a netbook, etc.), a mobile phone (e.g., a smart phone), a wearable computing device (e.g., a smart watch, smart glasses, etc.), or other types of mobile devices, or a stationary computing device such as a desktop computer or a personal computer (PC). The computing device 600 may also be a mobile or stationary server.
[0154] The processor 620 is used to execute the following computer executable instructions, which, when executed by the processor, implement the steps of the above-mentioned programmable data processing method based on a trusted execution environment.
[0155] The above is a schematic scheme of a computing device of this embodiment. It should be noted that the technical scheme of the computing device and the technical scheme of the programmable data processing method based on a trusted execution environment are of the same concept, and the details not described in detail in the technical scheme of the computing device can be found in the description of the technical scheme of the programmable data processing method based on a trusted execution environment.
[0156] An embodiment of the present specification further provides a computer-readable storage medium storing computer-executable instructions, which, when executed by a processor, implement the steps of the above-mentioned programmable data processing method based on a trusted execution environment.
[0157] The above is a schematic scheme of a computer-readable storage medium of this embodiment. It should be noted that the technical scheme of the storage medium and the technical scheme of the programmable data processing method based on a trusted execution environment belong to the same concept, and the details not described in detail in the technical scheme of the storage medium can be found in the description of the technical scheme of the programmable data processing method based on a trusted execution environment.
[0158] An embodiment of the present specification further provides a computer program, wherein when the computer program is executed in a computer, the computer is caused to execute the steps of the above-mentioned programmable data processing method based on a trusted execution environment.
[0159] The above is a schematic scheme of a computer program of this embodiment. It should be noted that the technical scheme of the computer program and the technical scheme of the programmable data processing method based on a trusted execution environment are of the same concept, and the details not described in detail in the technical scheme of the computer program can be found in the description of the technical scheme of the programmable data processing method based on a trusted execution environment.
[0160] The above is a description of a specific embodiment of the specification. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps recorded in the claims can be performed in an order different from that in the embodiments and still achieve the desired results. In addition, the processes depicted in the drawings do 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.
[0161] The computer instructions include computer program codes, which may be in source code form, object code form, executable files or some intermediate forms, etc. The computer-readable medium may include: any entity or device capable of carrying the computer program code, recording medium, USB flash drive, mobile hard disk, magnetic disk, optical disk, computer memory, read-only memory (ROM), random access memory (RAM), electric carrier signal, telecommunication signal and software distribution medium, etc. It should be noted that the content contained in the computer-readable medium may be appropriately increased or decreased according to the requirements of patent practice. For example, in some regions, according to patent practice, computer-readable media do not include electric carrier signals and telecommunication signals.
[0162] It should be noted that, for the above-mentioned method embodiments, for the sake of simplicity of description, they are all expressed as a series of action combinations, but those skilled in the art should be aware that the embodiments of this specification are not limited by the order of the actions described, because according to the embodiments of this specification, some steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required by the embodiments of this specification.
[0163] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0164] The preferred embodiments of this specification disclosed above are only used to help explain this specification. The optional embodiments do not describe all the details in detail, nor do they limit the invention to only the specific implementation methods described. Obviously, many modifications and changes can be made according to the content of the embodiments of this specification. This specification selects and specifically describes these embodiments in order to better explain the principles and practical applications of the embodiments of this specification, so that technicians in the relevant technical field can well understand and use this specification. This specification is only limited by the claims and their full scope and equivalents.
Claims
1. A programmable data processing method based on a trusted execution environment, characterized in that: Applicable to task executors, including: In response to a task execution request sent by a task initiator, a virtual container corresponding to the task execution request is created, wherein the virtual container belongs to a trusted execution environment, is a virtual environment created according to virtual resources corresponding to the task execution request, and an application for executing the task corresponding to the task execution request is deployed in the virtual container; Determine at least one data provider according to the task execution request, obtain a sample data set corresponding to the at least one data provider and load the sample data set into the virtual container; Receive the model processing information sent by the task initiator, and determine the initial task model and the model training strategy corresponding to the initial task model based on the model processing information by loading the virtual container of the sample data set, wherein the model processing information includes an executable code block, and the initial task model and the model training strategy are obtained by analyzing and executing the executable code block by the virtual container, and the determining the initial task model and the model training strategy corresponding to the initial task model based on the model processing information by loading the virtual container of the sample data set includes performing compliance detection on the code corresponding to the model processing information according to preset information detection rules by loading the virtual container of the sample data set, constructing the initial task model according to the detection result, and generating the model training strategy corresponding to the initial task model; The initial task model is trained in the virtual container loaded with the sample data set according to the model training strategy, and the task execution result is fed back to the task initiator according to the training result.
2. The method according to claim 1, characterized in that In response to a task execution request sent by a task initiator, creating a virtual container corresponding to the task execution request includes: In response to a task execution request sent by a task initiator, determining task resource information of the task execution request; Virtual resources are scheduled according to the task resource information, and virtual containers corresponding to the task execution request are created using the virtual resources.
3. The method according to claim 1, characterized in that Determining at least one data provider according to the task execution request includes: Determining data source information carried in the task execution request; At least one data provider is determined according to the data source information.
4. The method according to claim 3, characterized in that Acquiring a sample data set corresponding to the at least one data provider and loading the sample data set into the virtual container includes: Sending a data acquisition request to the at least one data provider based on the data source information; receiving at least one sample data returned by the at least one data provider in response to the data acquisition request; A sample data set is generated according to the at least one sample data and loaded into a virtual container corresponding to the task execution request.
5. The method according to claim 4, characterized in that Generating a sample data set according to the at least one sample data comprises: Acquire a data identifier of each sample sub-data in the at least one sample data; The at least one sample data is fused according to each data identifier, and a sample data set is generated according to the fusion result.
6. The method according to claim 1, characterized in that Receiving model processing information sent by the task initiator, including: Sending a model building address corresponding to the virtual container to the task initiator, wherein the model building address is used to enable the task initiator to determine a processing interface for model processing information; The model processing information returned by the task initiator based on the model building address is received.
7. The method according to claim 1, characterized in that Before responding to the task execution request sent by the task initiator, the method further includes: Receiving an identity authentication request sent by the task initiator, and determining the initiator identity information corresponding to the task initiator; Sending the executor identity information to the task initiator, wherein the executor identity information is used by the task initiator to authenticate the identity of the task executor; The task initiator is authenticated based on the initiator identity information, and if the authentication is passed, a step of creating a virtual container corresponding to the task execution request in response to the task execution request sent by the task initiator is performed.
8. The method according to claim 1, characterized in that The method further comprises: In response to the registration request sent by the task initiator, establishing a target transmission channel corresponding to the task initiator; The registration result corresponding to the registration request is returned through the target transmission channel.
9. The method according to claim 1, characterized in that: The method further comprises: In response to a task execution request sent by a task initiator, determining an encryption public key corresponding to the task initiator and generating a symmetric key corresponding to the task execution request; Feedback the task execution results to the task initiator according to the training results, including: Encrypting the training result by using the symmetric key to obtain an encrypted training result, and encrypting the symmetric key by using the encrypted public key to obtain an encrypted symmetric key; A task execution result is generated according to the encryption training result and the encryption symmetric key and fed back to the task initiator.
10. A programmable data processing system based on a trusted execution environment, characterized in that: The system includes a task initiator and a task executor; The task initiator generates and sends a task execution request to the task executor; The task executor, in response to the task execution request, creates a virtual container corresponding to the task execution request, wherein the virtual container belongs to a trusted execution environment, is a virtual environment created according to the virtual resources corresponding to the task execution request, and an application for executing the task corresponding to the task execution request is deployed in the virtual container; determines at least one data provider according to the task execution request, obtains a sample data set corresponding to the at least one data provider and loads it into the virtual container; receives model processing information sent by the task initiator, determines an initial task model and a model training strategy corresponding to the initial task model based on the model processing information by loading the virtual container of the sample data set, wherein the model processing information The method comprises an executable code block, wherein the initial task model and the model training strategy are obtained by analyzing and executing the executable code block by the virtual container, and determining the initial task model and the model training strategy corresponding to the initial task model based on the model processing information by loading the virtual container of the sample data set comprises: performing compliance detection on the code corresponding to the model processing information according to preset information detection rules by loading the virtual container of the sample data set, constructing the initial task model according to the detection result, and generating the model training strategy corresponding to the initial task model; training the initial task model in the virtual container of the sample data set according to the model training strategy, and feeding back the task execution result to the task initiator according to the training result; The task initiator generates a local task model according to the task execution result.
11. The system according to claim 10, characterized in that The system further includes a task collaborator, wherein the task collaborator belongs to a data provider; The task collaborator, in response to a data acquisition request sent by the task executor, determines the executor identity information corresponding to the task executor, authenticates the task executor based on the executor identity information, and sends sample data to the task executor if the authentication is successful, wherein the sample data is used to generate the sample data set.
12. The system according to claim 11, characterized in that The task collaborator encrypts the sample data using a collaborative encryption private key to obtain encrypted sample data, and sends the encrypted sample data to the task executor; The task executor uses the collaborative encryption public key corresponding to the task collaborator to decrypt the encrypted sample data to obtain the sample data.
13. A computing device, characterized in that: include: Memory and processor; The memory is used to store computer-executable instructions, and the processor is used to execute the computer-executable instructions. When the computer-executable instructions are executed by the processor, the steps of the programmable data processing method based on a trusted execution environment as described in any one of claims 1 to 9 are implemented.
14. A computer-readable storage medium, characterized in that: It stores computer executable instructions, which, when executed by a processor, implement the steps of the programmable data processing method based on a trusted execution environment as described in any one of claims 1 to 9.
Citation Information
Patent Citations
Container-based data sandbox operation result safe output method and device
CN110826053A
Data processing method, system and platform, equipment and machine readable medium
CN111310208A
Machine learning engine service system, model training method and configuration method
CN113505895A
Model training method and device
CN113569987A
Machine learning (ML) infrastructure techniques
CN114586048A
