Private Transfer Learning
By encrypting DNN models and executing them within a trusted execution environment, the solution addresses security concerns of unauthorized use and replication, enabling secure and controlled customization for specialized tasks.
Patent Information
- Application Number
- JP2022523266
- Authority / Receiving Office
- JP · JP
- Patent Type
- Patents
- Current Assignee / Owner
- Priority Date
- 2019-10-24
- Filing Date
- 2020-10-22
- Publication Date
- 2024-10-23
- Estimated Expiration
- 2040-10-22
AI Technical Summary
Existing deep neural network (DNN) models face security issues regarding unauthorized use and dissemination, especially when deployed for specialized tasks, as they require large amounts of training data and are vulnerable to unauthorized access and replication.
Implementing a trusted execution environment (TEE) to secure DNN models through encryption and controlled access via training and inference APIs, ensuring models are executed and customized within a secure enclave, preventing unauthorized use and propagation.
The solution provides secure and controlled use of DNN models, allowing customization for specific tasks while preventing unauthorized access and replication, maintaining model integrity and security.
Smart Images

Figure 0007572132000001 
Figure 0007572132000002 
Figure 0007572132000003
Abstract
Description
[Technical field]
[0001] The present disclosure relates to private transfer learning, and more particularly, to secure and portable DNNs for private transfer learning. [Background technology]
[0002] A deep neural network (DNN) is a machine learning architecture. A machine learning architecture is a computer system, e.g., a machine, that can learn. One thing a machine can learn is how to classify items, e.g., how to distinguish images of people from images of objects. For this, a DNN can take an image as input and output a label for that image that indicates whether the DNN classifies the image as a person or as an object. The act of machine learning, e.g., classifying objects by a DNN, is referred to herein as inference or a forward pass. In contrast, a backward pass involves training a DNN model, which is a computer program that learns to perform a given classification. Training a DNN model to be accurate can be complex and thus may rely on relatively large amounts of data to learn how to perform a general task, such as distinguishing images of people from images of objects.
[0003] Therefore, there is a need in the art to address the above-mentioned problems. Summary of the Invention
[0004] In view of multiple aspects, the present invention provides computer-implemented methods, computer program products, and systems for private transfer learning, including generating a machine learning model including a training application programming interface (API) and an inference API, encrypting the machine learning model using a pre-defined encryption mechanism, copying the encrypted machine learning model to a trusted execution environment, and executing the machine learning model in the trusted execution environment using at least one of the inference API and the training API.
[0005] In view of one aspect, the present invention provides a computer-implemented method for private transfer learning, the method including generating a machine learning model including a training application programming interface (API) and an inference API, encrypting the machine learning model using a pre-defined encryption mechanism, copying the encrypted machine learning model to a trusted execution environment, and executing the machine learning model in the trusted execution environment using the inference API.
[0006] In view of one aspect, the present invention provides a computer program product including program instructions stored on a computer readable storage medium, the computer readable storage medium not being itself a transitory signal, the program instructions being executable by a processor to cause the processor to perform a method, the method including generating a machine learning model including a training application programming interface (API) and an inference API, encrypting the machine learning model using a predefined encryption mechanism, copying the encrypted machine learning model to a trusted execution environment, and executing the machine learning model in the trusted execution environment using the training API.
[0007] In view of one aspect, the present invention provides a system comprising a computer processing circuit and a computer readable storage medium storing instructions configured, when executed by the computer processing circuit, to cause the computer processing circuit to perform a method, the method including generating a machine learning model including a training application programming interface (API) and an inference API, encrypting the machine learning model using a predefined encryption mechanism, copying the encrypted machine learning model to a trusted execution environment, executing the machine learning model in the trusted execution environment using the training API, and executing the machine learning model trained by the training API by using the inference API.
[0008] In view of one aspect, the present invention provides a system comprising a computer processing circuit, a graphics processing circuit (GPU), and a computer readable storage medium storing instructions configured, when executed by the computer processing circuit, to cause the computer processing circuit to perform a method, the method including: generating a machine learning model including a training application programming interface (API) and an inference API; encrypting the machine learning model using a predefined encryption mechanism; copying the encrypted machine learning model to a trusted execution environment; executing the machine learning model in the trusted execution environment by executing the training API on the GPU; and executing the machine learning model trained by the training API by executing the inference API on the GPU.
[0009] In view of one aspect, the present invention provides a computer-implemented method for private transfer learning, the method including generating a machine learning model including a training application programming interface (API) and an inference API, encrypting the machine learning model using a pre-defined encryption mechanism, copying the encrypted machine learning model to a trusted execution environment, and executing the machine learning model in the trusted execution environment using the training API.
[0010] In view of a further aspect of the present invention there is provided a computer program product for private transfer learning, the computer program product comprising a computer readable storage medium readable by a processing circuit and storing instructions for execution by the processing circuit for performing a method performing steps of the present invention.
[0011] Viewed from a further aspect, the present invention provides a computer program stored on a computer readable medium and loadable into an internal memory of a digital computer, the computer program comprising software code portions for performing the steps of the present invention when the computer program is run on the computer.
[0012] An embodiment of a method for private transfer learning is disclosed. The method includes generating a machine learning model including a training application programming interface (API) and an inference API. The method further includes encrypting the machine learning model using a predefined encryption mechanism. The method further includes copying the encrypted machine learning model to a trusted execution environment. The method also includes executing the machine learning model in the trusted execution environment using the inference API.
[0013] Further aspects of the present disclosure are directed to systems and computer program products having functionality similar to that discussed above with respect to the computer-implemented methods. This Summary is not intended to describe each aspect, every implementation, or every embodiment, or combination, of the present disclosure.
[0014] The drawings included in this application are incorporated in and constitute a part of this specification. They illustrate embodiments of the present disclosure and, together with the description, serve to explain the principles of the present disclosure. The drawings are merely illustrative of certain embodiments and are not intended to limit the disclosure. [Brief description of the drawings]
[0015] [Figure 1] FIG. 1 is a block diagram of a system for private transfer learning according to some embodiments of the present disclosure. [Diagram 2] FIG. 1 is a block diagram of a system for private transfer learning according to some embodiments of the present disclosure. [Diagram 3] FIG. 1 is a data flow diagram of a process for private transfer learning according to some embodiments of the present disclosure. [Figure 4] 1 is a flowchart of an example method for private transfer learning according to some embodiments of the present disclosure. [Diagram 5] FIG. 1 is a block diagram of an example classification chart digitization (CCD) manager according to some embodiments of the present disclosure. [Figure 6] FIG. 1 illustrates a cloud computing environment in accordance with some embodiments of the present disclosure. [Figure 7] FIG. 2 illustrates abstraction model layers according to some embodiments of the present invention. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0016] While the present disclosure is susceptible to various modifications and alternative forms, details thereof have been shown by way of example in the drawings and will be described in detail. It is to be understood, however, that it is not intended to limit the disclosure to the particular embodiments described. On the contrary, it is intended to cover all modifications, equivalents and alternatives falling within the scope of the present disclosure.
[0017] A DNN is a machine learning software architecture that has multiple layers between input and output. A DNN can arithmetically transform an input into an output using the input's relevant parameters and associated weights that the DNN learns to manipulate. During the training phase, a DNN can process a relatively large number of labeled inputs and learn to manipulate the weights of various parameters to transform the input into an output that matches the labels. These arithmetic modifications can represent various types of mathematical relationships, including linear and nonlinear. In this way, a DNN can generate a general DNN model.
[0018] Transfer learning is useful for deploying a general DNN model into a model that performs a more specialized task. For example, given a general DNN model that distinguishes images of people from objects, transfer learning can deploy a model that distinguishes images of baseball games from images of cricket games. Performing transfer learning can involve a relatively small amount of training data compared to the training data for the general DNN model. For example, training a general DNN model to distinguish people from objects may involve 10,000 labeled inputs. In contrast, deploying a general model into a transfer learning model that distinguishes images of baseball games from images of cricket games may involve less than 50 labeled inputs. In this way, transfer learning offers the advantage of reduced cost and resources compared to other machine learning techniques. Thus, transfer learning can build valuable DNN models that perform relatively highly specialized tasks from a relatively highly trained general DNN model. However, having such highly trained general DNN models that can be deployed to perform relatively highly specialized tasks can imply security issues regarding protecting their use against unauthorized users, thieves or other malicious actors, or a combination thereof.
[0019] A trusted execution environment can provide a secure enclave for a host computer system, allowing sensitive or controlled programs to run without unauthorized introspection (viewing) or copying. In fact, a trusted execution environment can even protect controlled programs from privileged administrators and processes on the computer hosting the trusted execution environment.
[0020] Thus, embodiments of the present disclosure can control the dissemination and use of highly trained general DNN models. In this way, embodiments can enable the use of general DNN models for inference in unmodified form and the deployment of general DNN models into transfer learning models with task-specific training. In contrast to the forward pass, the act of training a machine learning model is also referred to herein as the reverse pass. Thus, embodiments of the present disclosure can package DNN models with encryption that cannot be opened outside of a trusted execution environment. In some embodiments, the code for the architecture of the DNN, weights, and biases are packaged with two application programming interface (API) functions. One of the API functions performs inference on unlabeled inputs. Thus, the data is inputs without labels for the forward pass through the DNN. Another API function trains the general DNN model. Thus, the data is inputs with labels for the reverse pass through the general DNN.
[0021] 1 is a block diagram of a system 100 for private transfer learning according to some embodiments of the present disclosure. The system 100 includes a secure enclave 102 having a pre-trained model 104, an inference API 106-1, and training APIs 106-2. The secure enclave 102 may be a predetermined portion of a system memory of a computing device (not shown) reserved for secure operations, i.e., a trusted execution environment (TEE).
[0022] According to some embodiments, the system 100 can be used to control the dissemination and use of trained deep neural network models, i.e., pre-trained models 104. The system 100 can allow for the use of the pre-trained models 104 for inference in an unmodified form, and can allow the pre-trained models 104 to be customized through task-specific training. Moreover, the system 100 can provide these advantages while maintaining control over how the pre-trained models 104 are used and / or propagated. In the system 100, the pre-trained models 104 can be suitable for training by one or more users, and the users can provide training or refinement with private input from one or more parties.
[0023] The secure enclave 102 may include keys (not shown) that are restricted to use within the secure enclave 102. Secure operations may be performed by computer applications executing in the secure enclave 102. To secure these operations, instructions of the computer applications are encrypted with the keys and written to memory locations in the secure enclave 102. Furthermore, the instructions are read from these memory locations and decrypted with the keys prior to execution by the processor (not shown). Thus, a malicious actor, e.g., a hacker, attempting to read instructions of a secured operation from the secure enclave 102 is restricted to reading the encrypted instructions. Without the keys, the malicious actor cannot determine the actual instructions, and thus the operation may be secure.
[0024] For example, the pre-trained model 104 may be a computer application executed in the secure enclave 102. According to some embodiments, the pre-trained model 104 may be a DNN model trained to perform a general task. Additionally, the pre-trained model 104 may be encrypted before being copied to the secure enclave 102. This involves an additional level of encryption to the key encryption described above with respect to the secure enclave 102. In some embodiments, the producer of the pre-trained model may encrypt the code for the architecture, weights and biases of the pre-trained model 104 in an encrypted distribution blob using two functions, namely, the inference API 106-1 and the training API 106-2. Introduced data with labels may be input to the inference API 106-1 for a backpropagation pass through the pre-trained model 104. Introduced data without labels may be input to the training API 106-2 for a forward pass through the pre-trained model 104. In this manner, system 100 can provide deep neural networks for use with encryption that are constrained to be open inside the TEE.
[0025] By simply exposing the two APIs outside the secure enclave 102, the pre-trained model 104 can be used as intended and customized for a user's specific tasks and data sets. However, the pre-trained model 104 cannot be copied outside the secure enclave 102 for uncontrolled propagation to unlicensed users, cannot be modified beyond a pre-determined extent, and cannot be used beyond a pre-determined expiration date, after which the user may be motivated to download a new version of the pre-trained model 104.
[0026] As one skilled in the art will appreciate, deep neural networks can run more efficiently on a graphical processing unit (GPU) than on a central processing unit (CPU). However, the trusted execution environment may not include a GPU within the secure enclave 102. Thus, data may be sent outside the secure enclave 102 to the GPU for training and / or inference (in the case of a relatively large pre-trained model 104). Thus, in some embodiments, the secure enclave 102 may include one or more GPUs. Additionally, the pre-trained model 104 may be configured to prohibit operation in a virtualized GPU environment (where GPU memory may be introspected by a malicious actor outside the TEE). It may also be useful to include random shuffling of batch computations in the pre-trained model 104 to make it more difficult for a malicious actor to infer model parameters from the GPU memory.
[0027] 2 is a block diagram of a system 200 for private transfer learning according to some embodiments of the present disclosure. The system 200 includes a TEE 202 and an execution environment 204. As mentioned above, a secure enclave can be referred to as a TEE. Furthermore, the term TEE can refer to a large group of dedicated memory elements, such as the TEE 202. In the system 200, the TEE 202 includes a secure enclave 206, which can be similar to the secure enclave 102 described with respect to FIG. 1. The TEE 202 can also include additional memory elements, such as an encryption key (not shown) for the secure enclave 206.
[0028] The execution environment 204 may be a group of dedicated memory elements that store computer processor instructions. In contrast to the trusted execution environment 202 and the secure enclave 206, the execution environment 204 may be open, meaning that memory locations may be read by malicious users and the like. The execution environment 204 may include a programming environment 210, which may be a part of the execution environment 204 in which a DNN coding platform may be running. The DNN coding platform may refer to a computer software architecture in which, for example, a data scientist may build, test, and execute a model, such as the DNN model 208. Thus, the programming environment 210 may include a computer application that causes the execution of the DNN model 208 in the secure enclave 206 of the trusted execution environment 202 by invoking the forward pass (inference) API 212-1 and the reverse pass (training) API 212-2. In this specification, these APIs are individually and collectively referred to as APIs 212 as described above.
[0029] The secure enclave 206 may include a DNN model 208, which may be similar to the pre-trained model 104 described with respect to FIG. 1. Referring again to FIG. 2, the DNN model 208 may be, for example, a relatively large convolutional DNN model trained for object recognition of relatively small objects in relatively large images. Such a DNN model may be useful in hyperspectral satellite photography, where a relatively large range of the electromagnetic spectrum is captured in images of the Earth from a satellite. Thousands of GPU hours may be spent training such a model at a relatively high level of accuracy. Training such a model may also consume significant financial costs. Additionally, the architecture of the DNN model 208 may use valuable advanced proprietary technology that is not widely known and thus may imply security constraints to prevent corporate or other types of espionage.
[0030] In another example, the DNN model 208 can be a relatively large language model trained for predictive text generation. Predictive text generation refers to a technology where one key or button can represent multiple characters, such as in a numeric keypad of a mobile computing device. In this way, each selection of a key can result in a prediction of the word the user is typing. Thus, instead of typing the entire word, the user can select a predicted word based on a few key selections. Predictive text generation can also incorporate proprietary architecture techniques and can take thousands of hours to train. Such DNN models 208 can be further trained with relatively little training time to perform more complex tasks, such as question answering, grammar parsing, text summarization, and report generation, on a relatively wide variety of topics. Furthermore, the range of topics can be further broadened in certain areas through additional training. Such DNN models 208 can provide relatively large monetary value that may be weakened if the DNN model 208 is released into the public space where the DNN model 208 can be replicated without compensating the generator of the DNN model 208. Accordingly, embodiments of the present disclosure can secure the DNN model 208 to prevent such scenarios.
[0031] Because the forward path APIs 212-1 and reverse path APIs 212-2 execute within the secure enclave 206 of the trusted execution environment 202, any calls to execute these APIs 212 from the unsecured execution environment 204 are verified for the authority to cause the API call to avoid execution of the DNN model 208 by a malicious actor. Thus, the APIs include authentication and authorization based on credentials programmed into the encrypted executable of the DNN model 208. This allows for precise control of how, by whom, how much, and in what specific manner the DNN model 208 is used. Thus, the APIs 212 can include access controls that allow for the restriction of the use of the training and inference of the DNN model 208. Additionally, these access controls can provide telemetry that can provide audit and performance metrics on the DNN model 208 back to the provider of the DNN model 208. In this way, the DNN model 208 can be suitable for distribution to other parties without risk of the model being introspected (except for attacks made by governments). In some embodiments, the DNN model 208 can be licensed according to different sets of usage rights. Thus, the use of the APIs can be restricted according to these rights. For example, the use can be limited to execution of the reverse path API 212-2 or can be allowed for both APIs 212. The use can also be allowed for use for a predefined period of time.
[0032] In some embodiments, use of the DNN model 208 can also include hyperparameter tuning. With hyperparameter tuning, the forward path API 212-1 can allow the DNN model user to define a selection of parameters that configure the way the DNN model 208 learns. Hyperparameters can include optimization algorithms such as ADAM and One-Cycle, learning rate, number of epochs of training, layer locking, etc.
[0033] In some embodiments, use of the DNN model 208 may allow for the selection of two or more possible architectural variations of the DNN model 208. For example, the body of the DNN model 208 may be used with another DNN model head for multi-category or single-category classification. The body of the DNN model 208 may refer to a portion of the model logic. The model logic may be arranged in layers, with the first layer including the initial logic of the DNN model 208 and the last layer including the final logic. Thus, the head of the DNN model may refer to the last layer or the last few layers of the DNN model logic. In some embodiments, the architectural variations may involve repurposing the DNN model 208 from a generative DNN to a classifier. A generative DNN refers to a DNN model that generates labeled inputs for a classification DNN. A classification DNN refers to a DNN model that labels, e.g., classifies, inputs. In some embodiments, these and other potential architectural variations may be selectable within the forward path API 212-1 and the reverse path API 212-2.
[0034] In some embodiments, the system 200 can be integrated with existing DNN coding platforms, such as PyTorch and Tensorflow®. In this manner, the system 200 can enable the DNN model 208 to be more easily packaged into encrypted distributed blobs. Additionally, integrating the system 200 with existing DNN coding platforms can also enable data scientists to more efficiently perform inference and training on the DNN model 208 by using the same coding environment and commands that they may already be familiar with.
[0035] 3 is a data flow diagram of a process 300 for private transfer learning according to some embodiments of the present disclosure. In the process 300, a machine learning (ML) model 304 is generated using a model owner development environment 302. The model owner development environment 302 may be a private and secure computer hardware and software architecture configured to enable data scientists and software engineers to build and train machine learning models, such as the machine learning model 304. The machine learning model 304 may be one of various types of machine learning models ranging from relatively simple algorithms to DNN models, such as the DNN model 208 described with respect to FIG. 2.
[0036] Referring again to FIG. 3, the model owner may generate a crypto blob 306 from the machine learning model 304 using encryption. The crypto blob 306 may be signed and managed according to the Opal standard. The Opal standard refers to a group of security-related standards for electronic storage devices, such as disk drives. For example, these standards may define encryption methods for stored data that prevent unauthorized users from taking control of the device or viewing data stored on the device. The encryption may be provided by a public-private key infrastructure (PKI), authentication, or the like. In a PKI, a public key shared by two users may be used in conjunction with an encrypted private key to ensure that an authenticated user can access a secured file, such as the machine learning model 304. Authentication may involve the use of a public hashtag and a clearinghouse signature to verify the integrity of a computer application, such as the machine learning model 304. Authentication may be used as a workaround for potentially maliciously encoded computer instructions within a secure enclave, such as the secure enclave 206.
[0037] Referring again to FIG. 3, the model owner can store the crypto blob 306 in a cloud storage system 308 that can host a library of machine learning models encrypted as multiple crypto blobs 306. Further, to gain access to the machine learning models from this library, a customer can subscribe to selected models, such as the machine learning model 304. From the cloud storage system 308, the crypto blob 306 can be copied to a data owner development environment 310. The data owner development environment 310 can be a trusted execution environment, such as the TEE 202. The data owner development environment 310 can include a secure enclave 312 and an API 314. The secure enclave 312 can be similar to the secure enclave 206 described with respect to FIG. 2. The API 314 can be similar to the API 212 described with respect to FIG. 2. The secure enclave 312 can include the machine learning model 304 and a loader 316 that has a private key. Thus, the secure enclave 312 has the key necessary to decrypt the crypto blob 306. In an embodiment of the present disclosure, the loader 316 with the private key can decrypt the crypto blob 306, thereby generating the machine learning model 304 and the API 314. Additionally, the secure enclave 312 can encrypt the instructions of the machine learning model 304 and the API 314 with its own key (not shown) before writing these instructions to memory locations of the secure enclave 312.
[0038] Although executing in the secure enclave 312, the machine learning model 304 is still stored in encrypted memory, which is unreadable by privileged users such as administrators and root users. The secure enclave 312 also prevents memory bus probe attacks because only encrypted data is passed along the bus from the secure enclave 312. In this way, one can be sure that the machine learning model 304 cannot be misused or distributed without authorization, simply by exposing the API 314 to users.
[0039] 4 is a flowchart of an example method 400 for private transfer learning according to some embodiments of the present disclosure. At block 402, a machine learning model may be generated, such as the machine learning model 304 described with respect to FIG. 3. The machine learning model 304 may include a training application programming interface (API) and an inference API. A model owner may generate the machine learning model 304 in a model owner development environment, such as the model owner development environment 302 described with respect to FIG.
[0040] 4, at block 404, the machine learning model 304 may be encrypted using a predetermined encryption mechanism. For example, the encryption mechanism may include a public-private key infrastructure or authentication.
[0041] At block 406, the encrypted machine learning model may be copied to a trusted execution environment, such as the trusted execution environment 202 described with respect to Figure 2. The encrypted machine learning model may be a cryptographic blob, such as the cryptographic blob 306 described with respect to Figure 3.
[0042] 4, at block 408, the machine learning model can be executed in the trusted execution environment using an inference API or a training API. As described above, the inference API can be used to classify objects input to the machine learning model. Additionally, the training API can be used to further refine the training of the machine learning model for a more specific task than the general task for which the model owner trained the machine learning model.
[0043] Referring now to FIG. 5, a block diagram of a private transfer learning manager 500 is shown in accordance with some embodiments of the present disclosure. In various embodiments, the private transfer learning manager 500 is similar to the private transfer learning manager 214 and may perform the methods described in FIG. 4 and / or functions discussed in FIGS. 1-3. In some embodiments, the private transfer learning manager 500 provides instructions to a client machine for the methods and / or functions described above such that the client machine performs the methods or portions of the methods based on the instructions provided by the private transfer learning manager 500. In some embodiments, the private transfer learning manager 500 comprises software executing on hardware embedded in multiple devices.
[0044] The private transfer learning manager 500 includes memory 525, storage 530, an interconnect (e.g., a bus) 520, one or more CPUs 505 (also referred to herein as processors 505), an I / O device interface 510, an I / O device 512, and a network interface 515.
[0045] Each CPU 505 retrieves and executes programming instructions stored in memory 525 or storage 530. An interconnect 520 is used to move data, such as programming instructions, between the CPUs 505, the I / O device interface 510, the storage 530, the network interface 515, and the memory 525. The interconnect 520 may be implemented using one or more buses. In various embodiments, the CPUs 505 may be a single CPU, multiple CPUs, or a single CPU with multiple processing cores. In some embodiments, the CPUs 505 may be a digital signal processor (DSP). In some embodiments, the CPUs 505 include one or more 3D integrated circuits (3DICs) (e.g., 3D wafer level packaging (3DWLP), 3D interposer based integration, 3D stacked IC (3D-SIC), monolithic 3DIC, 3D heterogeneous integration, 3D system in package (3DSiP), and / or package-on-package (PoP) CPU configurations). Memory 525 is included generally to represent random access memory (e.g., static random access memory (SRAM), dynamic random access memory (DRAM), or Flash). Storage 530 is included generally to represent non-volatile memory, such as a hard disk drive, solid state device (SSD), removable memory card, optical storage, or flash memory device, or a combination thereof. Additionally, storage 530 may include a storage area network (SAN) device, cloud, or other device connected to the private transfer learning manager 500 via I / O device interface 510 or to the network 550 via network interface 515.
[0046] In some embodiments, memory 525 stores instructions 560. However, in various embodiments, instructions 560 are stored partially in memory 525 and partially in storage 530, or entirely in memory 525 or entirely in storage 530, or accessed over network 550 via network interface 515.
[0047] The instructions 560 may be processor-executable instructions for performing any portion or all of the method of FIG. 4 or any of the functions discussed in FIGS. 1-3 or combinations thereof.
[0048] In various embodiments, the I / O device 512 includes an interface capable of presenting information and receiving input. For example, the I / O device 512 can present information to and receive input from a listener that interacts with the private transfer learning manager 500.
[0049] The private transfer learning manager 500 is connected to a network 550 via a network interface 515. The network 550 may include a physical, wireless, cellular, or disparate network.
[0050] In some embodiments, the private transfer learning manager 500 can be a multi-user mainframe computer system, a single-user system or a server computer, or a similar device that has little or no direct user interface but receives requests from other computer systems (clients). Further, in some embodiments, the private transfer learning manager 500 can be implemented as a desktop computer, a portable computer, a laptop or notebook computer, a tablet computer, a pocket computer, a telephone, a smart phone, a network switch or router, or any other suitable type of electronic device.
[0051] It should be noted that Figure 5 is intended to depict representative major components of an exemplary private transfer learning manager 500. However, in some embodiments, the individual components may have greater or less complexity than those depicted in Figure 5, there may be components other than or in addition to those depicted in Figure 5, and the number, type, and configuration of such components may vary.
[0052] Although this disclosure includes detailed descriptions of cloud computing, implementation of the teachings described herein is not limited to cloud computing environments. Rather, embodiments of the present disclosure may be implemented in any other type of computing environment not currently known or later developed.
[0053] Cloud computing is a model of service delivery for enabling convenient, on-demand network access to a shared pool of configurable computing resources (e.g., networks, network bandwidth, servers, processing, memory, storage, applications, virtual machines, and services) that can be rapidly provisioned and released with minimal administrative effort and interaction with a service provider. This cloud model may include at least five characteristics, at least three service models, and at least four deployment models.
[0054] The characteristics are as follows: On-Demand Self-Service: Cloud consumers can unilaterally provision computing capacity, such as server time and network storage, automatically on an as-needed basis, without the need for human interaction with the service provider. Broad Network Access: Capabilities are made available over the network and accessed through standard mechanisms that facilitate use by heterogeneous thin or thick client platforms (e.g., cell phones, laptops, and PDAs). Resource Pooling: In order to serve multiple consumers using a multi-tenant model, the provider's computing resources are pooled and different physical and virtual resources are dynamically allocated and reallocated according to demand. Location independence is significant in that the consumer typically has no control or knowledge over the exact location of the resources provided, but may be able to specify the location at a higher level of abstraction (e.g. country, state or data center). Rapid Scalability: Capacity can be rapidly and elastically provisioned, in some cases automatically, to instantly scale out, and rapidly released to instantly scale in. To the consumer, the capacity available for provisioning often appears unlimited and can be purchased in any amount at any time. Measured Services: Cloud systems automatically control and optimize resource usage by leveraging metering capabilities at a level of abstraction appropriate to the type of service (e.g., storage, processing, bandwidth, active user accounts). Resource usage can be monitored, controlled, and reported, providing transparency to both providers and consumers of utilized services.
[0055] The service model is as follows: Software as a Service (SaaS): The capability offered to the consumer is the ability to use the provider's applications running on a cloud infrastructure. The applications are accessible from a variety of client devices through thin client interfaces such as web browsers (e.g., web-based email). The consumer does not manage or control the underlying cloud infrastructure, including networks, servers, operating systems, storage, or even individual application capabilities, with the possible exception of limited user-specific application configuration settings. Platform as a Service (PaaS): The ability offered to a consumer is the ability to deploy applications that the consumer has created or acquired, generated using programming languages and tools supported by the provider, onto a cloud infrastructure. The consumer does not manage or control the underlying cloud infrastructure, including networks, servers, operating systems, or storage, but does have control over the deployed applications and, in some cases, the application hosting environment configuration. Infrastructure as a Service (IaaS): The ability offered to the consumer is the ability to provision processing, storage, network, and other basic computing resources onto which the consumer can deploy and run any software, which may include operating systems and applications. The consumer does not manage or control the underlying cloud infrastructure, but does have control over the operating systems, storage, deployed applications, and in some cases, limited control over select networking components (e.g., host firewalls).
[0056] The deployment model is as follows: Private Cloud: The cloud infrastructure is operated exclusively for an organization. The cloud infrastructure may be managed by the organization or a third party and may be on-premise or off-premise. Community Cloud: The cloud infrastructure is shared by several organizations to support a particular community with shared concerns (e.g., mission, security requirements, policy, and compliance considerations). The cloud infrastructure may be managed by the organizations or a third party and may reside on-premise or off-premise. Public Cloud: The cloud infrastructure is made available to the general public or large industry organizations and is owned by an organization that sells cloud services. Hybrid Cloud: The cloud infrastructure is a composite of two or more clouds (private, community, or public) that remain a unique entity but are joined by standardized or proprietary technologies that enable data and application portability (e.g., cloud bursting for load balancing between clouds).
[0057] Cloud computing environments are service-oriented with a focus on statelessness, low coupling, modularity, and semantic interoperability. At the heart of cloud computing is an infrastructure that includes a network of interconnected nodes.
[0058] Reference is now made to FIG. 6, which illustrates a cloud computing environment 610 according to some embodiments of the present disclosure. As shown, the cloud computing environment 610 includes one or more cloud computing nodes 600. The cloud computing nodes 600 may perform the method illustrated in FIG. 4 and / or the functions discussed in FIGS. 1-3. Additionally, the cloud computing environment 600 may communicate with local computing devices used by cloud consumers, such as a personal digital assistant (PDA) or mobile phone 600A, a desktop computer 600B, a laptop computer 600C, or an automobile computer system 600N, or combinations thereof. Additionally, the cloud computing nodes 600 may communicate with each other. The cloud computing nodes 600 may also be physically or virtually grouped together in one or more networks, such as a private, community, public, or hybrid cloud, or combinations thereof, as described above (not shown). This allows the cloud computing environment 610 to offer infrastructure, platform, and / or software as a service without the cloud consumer having to maintain resources on a local computing device. It is understood that the types of computing devices 600A-N shown in Figure 6 are intended to be merely exemplary, and that the computing nodes 600 and the cloud computing environment 610 may communicate with any type of computerized device over any type of network and / or network addressable connection (e.g., using a web browser).
[0059] Referring now to Figure 7, a set of functional abstraction model layers provided by cloud computing environment 610 (Figure 6) is shown, according to some embodiments of the present disclosure. It should be understood in advance that the components, layers, and functions shown in Figure 7 are intended to be merely exemplary, and embodiments of the present disclosure are not limited thereto. As shown below, the following layers and corresponding functions are provided:
[0060] The hardware and software layer 700 includes hardware and software components. Examples of hardware components include a mainframe 702, a RISC (reduced instruction set computing) architecture based server 704, a server 706, a blade server 708, a storage device 710, and a network and networking components 712. In some embodiments, the software components include network application server software 714 and database software 716.
[0061] The virtualization layer 720 provides an abstraction layer over which the following examples of virtual entities may be provided: virtual servers 722, virtual storage 724, virtual networks including virtual private networks 726, virtual applications and operating systems 728, and virtual clients 730.
[0062] In one example, the management layer 740 may provide the functionality described below. Resource provisioning 742 provides dynamic procurement of computing and other resources utilized to execute tasks within the cloud computing environment. Metering and pricing 744 provides cost tracking as resources are utilized within the cloud computing environment and provides billing or charging for the consumption of these resources. In one example, these resources may include application software licenses. Security provides identity verification for cloud consumers and tasks as well as protection for data and other resources. User portal 746 provides consumers and system administrators with access to the cloud computing environment. Service level management 748 provides cloud computing resource allocation and management such that requested service levels are met. Service level management 748 may allocate appropriate processing power and memory to process static sensor data. Service level agreement (SLA) planning and fulfillment 750 provides pre-positioning and procurement of cloud computing resources where future requirements are anticipated according to SLAs.
[0063] The workload layer 760 provides examples of functionality for which a cloud computing environment may be utilized. Examples of workloads and functions that may be provided from this layer include mapping and navigation 762, software development and lifecycle management 764, virtual classroom instructional delivery 766, data analytics processing 768, transaction processing 770, and a private transfer learning manager 772.
[0064] The present disclosure may be a system, method, or computer program product, or combination thereof, at any possible level of technical detail of integration. The computer program product may include a computer-readable storage medium having computer-readable program instructions for causing a processor to perform aspects of the present invention.
[0065] A computer readable storage medium may be a tangible device capable of holding and storing instructions for use by an instruction execution device. A computer readable storage medium may be, for example, but not limited to, an electronic storage device, a magnetic storage device, an optical storage device, an electromagnetic storage device, a semiconductor storage device, or any suitable combination of the above. A non-exhaustive list of more specific examples of computer readable storage media includes the following: portable computer diskettes, hard disks, random access memories (RAM), read-only memories (ROM), erasable programmable read-only memories (EPROMs or flash memories), static random access memories (SRAMs), portable compact disk read-only memories (CD-ROMs), digital versatile disks (DVDs), memory sticks, floppy disks, mechanically encoded devices such as punch cards or ridge structures in grooves with instructions recorded thereon, and any suitable combination of the above. As used herein, a computer-readable storage medium should not be construed as a transitory signal per se, such as electric waves or other freely propagating electromagnetic waves, electromagnetic waves propagating through a waveguide or other transmission medium (e.g., light pulses through a fiber optic cable), or electrical signals transmitted over wires.
[0066] The computer readable program instructions described herein may be downloaded from a computer readable storage medium to the respective computing / processing device or to an external computer or storage device via a network, such as the Internet, a local area network, a wide area network, or a wireless network, or a combination thereof. The network may include copper transmission cables, optical transmission fiber, wireless transmission, routers, firewalls, switches, gateway computers, and / or edge servers. A network adapter card or network interface in each computing / processing device receives the computer readable program instructions from the network and forwards the computer readable program instructions to a computer readable storage medium within the respective computing / processing device for storage.
[0067] The computer readable program instructions for carrying out the operations of the present disclosure may be assembler instructions, instruction set architecture (ISA) instructions, machine instructions, machine dependent instructions, microcode, firmware instructions, state setting data, configuration data for an integrated circuit, or source or object code written in any combination of one or more programming languages, including object oriented programming languages such as Smalltalk®, C++, and procedural programming languages such as the “C” programming language or similar programming languages. The computer readable program instructions may be executed entirely on the user's computer as a stand-alone software package, partially on the user's computer, partially on the user's computer and partially on a remote computer, or entirely on a computer or server. In the latter case, the remote computer may be connected to the user's computer via any type of network, including a local area network (LAN) or a wide area network (WAN), or the connection may be to an external computer (e.g., via the Internet using an Internet Service Provider). In some embodiments, electronic circuitry including, for example, a programmable logic circuit, a field programmable gate array (FPGA), or a programmable logic array (PLA), may execute computer readable program instructions by utilizing state information of the computer readable program instructions to personalize the electronic circuitry to carry out aspects of the invention.
[0068] Aspects of the present disclosure are described herein with reference to flowchart illustrations and / or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the present disclosure. It will be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer readable program instructions.
[0069] These computer readable program instructions may be provided to a processor of a computer or other programmable data processing apparatus such that the instructions, executed by the processor of the computer or other programmable data processing apparatus, create means for performing the functions / operations specified in one or more blocks of the flowcharts and / or block diagrams to produce a machine. These computer readable program instructions may be stored on a computer readable storage medium such that the computer readable storage medium on which the instructions are stored includes an article of manufacture including instructions for performing aspects of the functions / operations specified in one or more blocks of the flowcharts and / or block diagrams, and may direct a computer, programmable data processing apparatus, or other device, or combination thereof, to function in a particular manner.
[0070] The computer readable program instructions may be loaded into a computer, other programmable data processing apparatus, or other device to create a computer-implemented process that causes a series of operational steps to be performed on the computer, other programmable apparatus, or other device, such that the instructions, which execute on the computer, other programmable apparatus, or other device, perform the functions / acts specified in one or more blocks of the flowcharts and / or block diagrams.
[0071] The flowcharts and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods, and computer program products according to various embodiments of the disclosure. In this regard, each block in the flowcharts or block diagrams may represent a module, segment, or portion of instructions, including one or more executable instructions for implementing the specified logical function. In some alternative implementations, the functions noted in the blocks may occur in a different order than that noted in the figures. For example, two blocks shown in succession may be accomplished as a single step, may be executed simultaneously, may be executed substantially simultaneously in a partially or fully overlapped manner in time, or the blocks may be executed in reverse order in some cases, depending on the functionality involved. It should also be noted that each block in the block diagrams and / or flowchart illustrations, and combinations of blocks in the block diagrams and / or flowchart illustrations, may be implemented by a dedicated hardware-based system that executes the specified functions or operations or performs a combination of dedicated hardware and computer instructions.
Claims
1. 1. A computer-implemented method for private transfer learning, comprising: Encrypting the machine learning model, including training application programming interfaces (APIs), inference APIs, and authentication information for authenticating calls from an insecure execution environment, using a predefined encryption mechanism; copying the encrypted machine learning model to a trusted execution environment; training the machine learning model by executing the training API in a secure enclave of the trusted execution environment; Provides authenticated use of machine learning models 4. A computer-implemented method comprising:
2. 2. The method of claim 1, wherein training the machine learning model includes authenticating a call to execute the training API from the unsecure execution environment based on the authentication information.
3. The method of claim 2, further comprising generating inferences from the machine learning model by executing the inference API in the secure enclave of the trusted execution environment.
4. The machine learning model includes a deep neural network (DNN) model, The DNN model is trained to perform a general task; The method of claim 3 , wherein the training API trains the DNN model to perform a task that refines the general task into a task that is more specific than the general task.
5. The method of claim 1 , further comprising generating, in the trusted execution environment, a combination of the body of the machine learning model and a head of an additional machine learning model.
6. The method of claim 5 further comprising executing the inference API for the combination.
7. The method of claim 5 or 6, further comprising executing the training API for the combination.
8. 1. A system for private transfer learning, comprising: A computer processing circuit; and a computer-readable storage medium storing instructions configured, when executed by the computer processing circuit, to cause the computer processing circuit to perform a method; The method comprises: Encrypting the machine learning model, including training application programming interfaces (APIs), inference APIs, and authentication information for authenticating calls from an insecure execution environment, using a predefined encryption mechanism; copying the encrypted machine learning model to a trusted execution environment; training the machine learning model by executing the training API in a secure enclave of the trusted execution environment; Provides authenticated use of machine learning models Including, the system.
9. 10. The system of claim 8, wherein training the machine learning model includes authenticating a call to execute the training API from the unsecure execution environment based on the authentication information.
10. The system of claim 9, further comprising generating inferences from the machine learning model by executing the inference API in the secure enclave of the trusted execution environment.
11. The machine learning model includes a deep neural network (DNN) model, The DNN model is trained to perform a general task; The system of claim 10 , wherein the training API trains the DNN model to perform a task that refines the general task into a task that is more specific than the general task.
12. 12. The system of claim 8, wherein the method further comprises generating, in the trusted execution environment, a combination of the body of the machine learning model and a head of an additional machine learning model.
13. The system of claim 12 , wherein the method further comprises executing the inference API for the combination.
14. The system of claim 12 or 13, wherein the method further comprises executing the training API for the combination.
15. executing the machine learning model using the training API in the trusted execution environment includes executing the training API on a GPU; 15. The system of claim 8, wherein executing the machine learning model trained by the training API by using the inference API comprises executing the inference API on the GPU.
Citation Information
Patent Citations
Device, secure element, program, information processing system and information processing method
JP2019121141A
Protecting ai payloads running in GPU against main CPU residing adversaries
US20190188386A1
