Neural Flow Attestation
The neural flow attestation mechanism addresses integrity issues in cloud-deployed deep learning models by capturing and comparing neural flows, ensuring model integrity and accuracy through trusted execution environments.
Patent Information
- Application Number
- JP2022539370
- Authority / Receiving Office
- JP · JP
- Patent Type
- Patents
- Current Assignee / Owner
- Priority Date
- 2020-01-23
- Filing Date
- 2021-01-18
- Publication Date
- 2024-10-25
- Estimated Expiration
- 2041-01-18
AI Technical Summary
Deep learning models deployed in cloud computing environments are susceptible to integrity issues such as backdoors, model tampering, and adversarial attacks, which compromise their execution integrity and accuracy.
Implementing a neural flow attestation mechanism that captures and compares the neural flow of a trained model during preprocessing and deployment, using a trusted execution environment to verify the integrity of the model's execution by comparing recorded neural flows with pre-stored models, ensuring no significant deviations occur.
Ensures the integrity of deployed deep learning models by detecting tampering and adversarial attacks, maintaining model accuracy, and enabling timely evacuation of compromised models, thus protecting against unauthorized modifications and ensuring reliable execution.
Smart Images

Figure 0007573617000001 
Figure 0007573617000002 
Figure 0007573617000003
Abstract
Description
[Technical field]
[0001] The present application relates generally to improved data processing apparatus and methods, and more particularly to mechanisms for performing neural flow attestation. [Background technology]
[0002] Deep learning systems are widely deployed as part of artificial intelligence (AI) services because they can match human performance when performing cognitive tasks. Deep learning is a class of machine learning techniques that uses a cascade of multiple layers of nonlinear processing units for feature extraction and transformation. Each successive layer uses the output from the previous input layer. Deep learning systems are trained using supervised learning mechanisms, such as classification, or unsupervised learning mechanisms, such as pattern analysis, or both. Learning can be performed with respect to multiple representation levels corresponding to different levels of abstraction, and these levels form a hierarchy of concepts.
[0003] Most modern deep learning models are based on artificial neural networks, but they can also include propositional expressions or latent variables that are organized by layers in deep generative models, such as the nodes of deep belief networks and deep Boltzmann machines. In deep learning, each level of a neural network, e.g., each layer, learns to transform its input data into a slightly more abstract and complex representation. For example, in an image recognition application, the raw input may be a matrix of pixels, and multiple layers of pixel abstraction are recognized features. Importantly, the deep learning process can learn on its own which features to optimally place at which levels, but this does not completely eliminate the need for manual tuning. For example, manual tuning may be used to vary the number of layers and the size of the layers to provide different levels of abstraction.
[0004] The "deep" in "deep learning" refers to the number of layers through which data is transformed. More precisely, deep learning systems have a significant credit assignment path (CAP) depth. A CAP is a chain of transformations from input to output. A CAP describes the potential causal relationships between inputs and outputs. For feedforward neural networks, the CAP depth is the network depth, which is the number of hidden layers plus one (if the output layer is also parameterized). For recurrent neural networks, where a signal may propagate through layers multiple times, the CAP depth is potentially unlimited. There is no universally agreed upon depth threshold that distinguishes shallow learning from deep learning, but most researchers agree that deep learning includes CAP depths greater than 2. A CAP of depth 2 has been found to be a universal approximator, in the sense that it can emulate any function. Increasing the layers beyond that does not increase the network's function approximation ability, but the additional layers help learn features.
[0005] However, at the very least, there is a need to verify the integrity of the deployed trained computer model. Thus, there is a need in the art to address the above problems. Summary of the Invention
[0006] Viewed from a further aspect, the present invention provides a method in a data processing system having at least one processor and at least one memory, the at least one memory including instructions executed by the at least one processor to configure the at least one processor to implement a neural flow attestation engine, the method including: inputting, by the neural flow attestation engine, input data to a trained computer model, the trained computer model including a plurality of layers of neurons; recording, by the neural flow attestation engine, output classes generated by the trained computer model for a set of input data instances in the input data and a neural flow through the plurality of layers of neurons, the recording generating a recorded neural flow, the output class being one of a plurality of possible output classes; deploying the trained computer model to a computing platform; and verifying, by the neural flow attestation engine, integrity of the deployed trained computer model based on a run-time neural flow of the deployed trained computer model and the recorded neural flow.
[0007] 1. A computer program product comprising a computer readable storage medium having a computer readable program stored thereon, the computer readable program, when executed on a data processing system, causing the data processing system to implement a neural flow attestation engine, the neural flow attestation engine performing the operations of: inputting input data to a trained computer model, the trained computer model including a plurality of layers of neurons; recording, for a set of input data instances in the input data, output classes generated by the trained computer model and a neural flow through the plurality of layers of neurons, the recording generating a recorded neural flow, the output class being one of a plurality of possible output classes; deploying the trained computer model to a computing platform; and verifying integrity of the deployed trained computer model based on a run-time neural flow of the deployed trained computer model and the recorded neural flow.
[0008] Viewed from a further aspect, the present invention provides a system comprising at least one processor and at least one memory coupled to the at least one processor, the at least one memory comprising instructions that, when executed by the at least one processor, cause the at least one processor to implement a neural flow attestation engine, the neural flow attestation engine configured to: input input data to a trained computer model, the trained computer model comprising a plurality of layers of neurons; record, for a set of input data instances in the input data, output classes generated by the trained computer model and neural flows through the plurality of layers of neurons, the recording generating a recorded neural flow, the output class being one of a plurality of possible output classes; deploying the trained computer model to a computing platform; and verifying execution integrity of the deployed trained computer model based on a run-time neural flow of the deployed trained computer model and the recorded neural flow.
[0009] Viewed from a further aspect, the present invention provides a computer program product for implementing a neural flow attestation engine, 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 for performing steps of the present invention.
[0010] 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 program is executed on the computer.
[0011] In one exemplary embodiment, a method in a data processing system comprising at least one processor and at least one memory, the at least one memory including instructions executed by the at least one processor to configure the at least one processor to implement a neural flow attestation engine. The method includes inputting, by the neural flow attestation engine, input data to a trained computer model, the trained computer model including a plurality of layers of neurons. The method also includes recording, by the neural flow attestation engine, for a set of input data instances in the input data, an output class generated by the trained computer model and a neural flow through the plurality of layers of neurons, generating the recorded neural flow by recording. The output class is one of a plurality of possible output classes. The method further includes deploying the trained computer model to a computing platform and verifying, with a neural flow attestation engine, integrity of the deployed trained computer model based on the run-time neural flow of the deployed trained computer model and the recorded neural flow.
[0012] In another exemplary embodiment, a computer program product is provided that includes a computer usable or readable medium having a computer readable program that, when executed on a computing device, causes the computing device to perform various ones, and combinations, of the operations outlined above with respect to the exemplary embodiment of the method.
[0013] In yet another exemplary embodiment, a system / apparatus is provided. The system / apparatus may include one or more processors and a memory coupled to the one or more processors. The memory may include instructions that, when executed by the one or more processors, cause the one or more processors to perform various ones, and combinations, of the operations outlined above with respect to the exemplary embodiments of the method.
[0014] These and other features and advantages of the present invention are described in, or will become apparent to those skilled in the art upon consideration of, the following detailed description of the illustrative embodiments of the invention.
[0015] The invention, as well as its preferred modes of use and further objects and advantages, will best be understood with reference to the following detailed description of illustrative embodiments when read in conjunction with the accompanying drawings. [Brief description of the drawings]
[0016] [Figure 1] FIG. 1 is an exemplary diagram illustrating the operation of a pre-processing stage in which neural flow information about training data used to train a computer model is collected, according to one exemplary embodiment. [Diagram 2] FIG. 13 is an exemplary diagram illustrating operations of a deployment phase in which run-time neural flow attestation of the operation of a deployed computer model is performed according to one exemplary embodiment. [Diagram 3] 1 is an illustration of an exemplary distributed data processing system in which aspects of the illustrative embodiments may be implemented; [Figure 4] 1 is a block diagram of an exemplary computing device in which aspects of the exemplary embodiments may be implemented. [Diagram 5] 1 is a flowchart outlining exemplary operations for performing functions of a pre-processing stage, according to one exemplary embodiment. [Figure 6]1 is a flowchart outlining example operations for performing deployment phase functions including run-time neural flow attestation of neural flows according to one example embodiment. [Figure 7] FIG. 1 illustrates a cloud computing environment according to one embodiment of the present invention. [Figure 8] FIG. 2 illustrates abstraction model layers according to one embodiment of the present invention. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0017] Artificial intelligence (AI) systems and AI services utilize machine learning (ML) models as part of their back-end engines. For example, many AI systems and services use deep neural networks (DNNs), also referred to as deep learning models, to perform the underlying intelligence operations that support the operation of the systems and services. The present invention is particularly directed to improved computer tools for assisting in ensuring the execution integrity of such machine learning models in various computer runtime environments, and in some exemplary embodiments, cloud computing environments. It should be understood that the exemplary embodiments described herein refer to computer models, which are intended to refer to any type of machine learning computer model. As a prime example of a computer model with which the exemplary embodiments may be utilized, a deep learning model, which is a type of neural network with two or more hidden layers of neurons, is used. However, the implementation of the exemplary embodiments using a deep learning model is not intended to limit the possible applications of the exemplary embodiments. On the contrary, any other known or later developed neural network models with various numbers or sizes of hidden layers with which the exemplary embodiments may be implemented are considered to be within the scope of the present invention.
[0018] Deep learning models are more widely used in public cloud computing environments (also referred to herein simply as "cloud" platforms, environments, etc.) to provide artificial intelligence cloud services, e.g., image recognition and analysis services, decision support services, etc. For example, many cloud computing environments are multi-tenant cloud computing environments or cloud platforms, where this architecture allows customers (or tenants) to share computing resources across public and even private clouds, where the computing resources include hardware and software provided by the cloud provider. Each tenant's data is isolated and remains invisible to other tenants. Most public cloud providers use a multi-tenancy architecture. With respect to DL models, each tenant may utilize a separate DL model instance. The DL model itself may be provided by a third party or even the cloud provider, and the individual instances of the DL model are configured specifically for the particular tenant and the particular cloud service they wish to provide.
[0019] Although deploying deep learning (DL) models in public cloud computing environments is an efficient way to launch artificial intelligence services, cloud computing tenants usually have concerns about the run-time integrity of the execution of deployed DL models in such public cloud computing environments. These concerns are based on three main perspectives of cloud computing tenants. First, attackers who may be able to penetrate cloud platforms tend to inject backdoors, i.e., undocumented ways to bypass normal authentication mechanisms and access programs, online services, or computing systems, into DL models. Such backdoors can be enabled by maliciously crafted inputs with special embedded patterns, such as watermarks in image data, Trojan horses (or "Trojans"). In this way, attackers can deviate the execution of DL models and affect the final predictions for their own benefit.
[0020] Second, cloud platform providers may have a financial incentive to replace tenants’ DL models with pruned or “squeezed” ones, which can reduce storage and computation costs at some loss of accuracy. That is, a DL model trainer may try removing some components, such as connections, neurons, layers, etc., in the DL model and retrain the DL model. However, the DL model trainer must ensure that the pruned model can achieve the same level of accuracy as the original DL model. As a result, cloud providers, i.e., entities that provide computing resources to host cloud services, may significantly reduce their operational costs for serving models online. However, tenants with high levels of accuracy may not accept such model conversion and replacement. This may also lead to liability issues, i.e., determining who is responsible for run-time mispredictions, because such model conversion / replacement may be the cause of the mispredictions or the original model may have been the cause of the mispredictions.
[0021] Third, existing DL models are known to be susceptible to adversarial attacks. Attackers may exploit vulnerabilities in DL models to create adversarial samples as online prediction inputs. Such adversarial inputs are misclassified into categories predetermined by the attacker. Cloud tenants tend to detect these misclassified samples and analyze why they were classified into a particular category different from the training data. Furthermore, cloud tenants may collect these misclassified samples to conduct adversarial training to further enhance the robustness of their DL models. It will be appreciated that the mechanisms of the exemplary embodiments, as well as the implementation of the neural flow attestation of the exemplary embodiments, may detect adversarial examples at runtime and may collect these adversarial examples for further investigation, as described below.
[0022] Exemplary embodiments provide mechanisms for addressing the issue of execution completeness of computational models (or simply "models"), such as deep learning (DL) models, across a variety of computing platforms, such as public cloud platforms and data processing environments. Exemplary embodiments provide a run-time neural flow attestation method for verifying the execution completeness of computational models at the neural flow level of abstraction. Neural flow is the execution order of a deep learning model, represented by neuron activation status between layers corresponding to a particular input.
[0023] For each input instance fed to a trained and deployed computer model, e.g., a DL model, a trusted execution environment (TEE) is utilized to faithfully record and log its associated neural flow with respect to its execution path and send an attestation report to the tenant. On the tenant side, the user maintains a measurement database that stores pre-recorded neural flows for all training data of different classes, i.e., possible classification outputs of the DL model. Based on the prediction results, i.e., classification outputs generated by the DL model in the cloud computing environment, the tenant can verify whether the neural flow recorded in the cloud deviates from the neural flow of the training data of the same class of its own DL model. If the DL model in the cloud computing environment deviates from the neural flow of the training data or deviates by more than a given amount indicated by one or more predefined criteria, this may be considered as an anomalous neural flow, which indicates that the DL model in the cloud computing environment may be compromised and needs to be evicted for further investigation. In this manner, the exemplary embodiments enable cloud platform providers to attest run-time execution status to their tenants, and enable tenants to verify the status of their online DL models using their locally residing measurement database.
[0024] In an exemplary embodiment, assume that a user of a cloud computing environment, i.e., an entity that owns a computer model, such as a DL model, and desires to deploy that computer model to the cloud computing environment, has trained its model using its own training data, e.g., as part of an offline pre-processing operation. The user (the model-owning entity, also referred to as a "tenant" in the context of a cloud computing platform) intends to provision the model with a model serving cloud platform provider to instantiate an online cloud service, such as an online classification or prediction service, using a machine learning trained computer model, such as a DL model. For example, the user may intend to instantiate an image recognition classification service, a healthcare decision support service, or any of a number of other services that utilize an artificial intelligence based computer model, such as a DL model, to perform classification operations, prediction operations, etc.
[0025] After training the model, the user again passes the training data to the trained model, and the neural flow extraction engine of the exemplary embodiment operates to extract neuron activation information at each layer of the trained model. The neuron activation information may vary in content based on the type of the particular layer of the computer model. For example, for a convolutional layer, each filter in the layer is considered as a unit, and the average activation value of each filter is calculated as part of the neuron activation information. For a fully connected layer, each neuron is considered as a unit, and its activation value is extracted. For each layer, a threshold may be pre-determined, and only the IDs and activation values of filters / neurons that meet the criteria associated with the threshold are recorded, e.g., only activation values of filters / neurons that meet or exceed the threshold are recorded.
[0026] The neural flow extraction engine generates a neural flow for each training data instance by combining neuronal activations across layers. The neural flow aggregation engine aggregates the neural flows for all training data in the same class and generates a neural flow model for each class. The neural flow models are stored in a measurement database on the tenant's local computing system and are later used to compare with the neural flows generated in the remotely located cloud deployment of the computational models.
[0027] After training the model and storing neural flow models for each class of output generated by the model as described above, the user may deploy the computer model to a cloud computing environment of a cloud platform provider and start a cloud service corresponding to the deployed computer model, e.g., the trained DL model. Further, a trusted execution environment (TEE) is generated or launched in the cloud computing environment. A TEE is an isolated execution environment of computing resources of a cloud computing platform that provides security features such as, for example, isolated execution, integrity of applications executed within the TEE, and confidentiality of computing assets maintained within the TEE. The TEE allows code to be executed within the TEE with a high level of trust, since the TEE can ignore threats from other parts of the cloud computing platform outside the TEE. The creation and use of TEEs is generally known in the art, and therefore will not be described in more detail herein.
[0028] Within the TEE, one or more recording components are provided to intercept the execution of the deployed model and capture neural flow information for each input to the running model. That is, the model, such as a DL model, runs outside the TEE, while the recording component, such as another instance of the neural flow extraction engine discussed above, runs inside the TEE. When the model receives an input for classification, prediction, etc., the recording component within the TEE captures the neural flow for the input by again extracting neuronal activation information at each layer of the deployed model and combining the neuronal activations across layers to generate the neural flow of the deployed model as it processed the input. It should be appreciated that the model itself does not need to be modified for the mechanism within the TEE to capture the neural flow information. The recording mechanism is added to the deep learning online execution framework. When the model begins execution for a particular input data instance, the recording mechanism intercepts the execution at each layer as the input passes through the model. For each interception, the recording mechanism contained within the TEE is invoked to extract activation information. All activation information collected across all layers is then combined to construct a neural flow for this input data instance.
[0029] The captured neural flow information is stored in the secure storage of the TEE and may be returned to the user's local computing system, e.g., the tenant's local computing system or computing device. For example, when a user sends an input instance for processing by a deployed model, the user may associate this input with a specific challenge C for freshness testing. The challenge is used to defend against "replay attacks". That is, the challenge C helps to ensure that the returned neural flow has not been replaced by the computing platform provider with a pre-made or prepared version of the neural flow. Thus, for each input, the user, or in the case of a cloud computing platform, the cloud tenant, sends a randomly or pseudo-randomly generated challenge C to the recording component. This challenge can only be used within the TEE and the computing platform provider does not have access to the challenge C. This challenge is associated with the recorded neural flow associated with the input. When the user (or cloud tenant) receives the neural flow, the user / cloud tenant can verify the completeness and freshness of the neural flow based on this challenge C.
[0030] For example, within the TEE, the neural flow with respect to the input is captured along with information about the input and the model's output, hashed with challenge C, and the attested neural flow, or "attestation," is encrypted using a security key that may be exchanged between the user or tenant computing system / device and the TEE as part of TEE startup. A sealed attestation is generated by encrypting data exchanged between the TEE and the user or tenant computing system / device, such as the packed recorded neural flow, the computer model's inputs / outputs, and the hash with challenge C, using the exchanged security key.
[0031] When the sealed attestation is received from the TEE of the cloud computing platform in the attestation engine of the user's local computing system, the user may first verify the completeness and freshness of the attestation using challenge C and extract the input / output information and neural flows of the computer model corresponding to the processing of the input. Based on the output classification or prediction generated by the model for the input, the attestation engine retrieves from the local measurement database the neural flow model corresponding to the particular class stored based on the training data during the aforementioned preprocessing operation. The neural flows of the attestation are compared with the neural flows generated by the training data and stored in the measurement database.
[0032] If the deployed model is working properly and no modifications of the deployed model have been made by an attacker, cloud computing provider, etc., the neural flows from the attestation should closely approximate the neural flows stored in the measurement database for the same classes. There may be some relatively small discrepancies within a given tolerance, but overall the neural flows should be the same. However, if there are significant deviations, e.g., deviations that exceed a given tolerance or meet the criteria to indicate a compromise, then the deployed model may have been compromised in some way, maliciously or not.
[0033] In an exemplary embodiment, deviations between neural flows may be evaluated, for example, by applying predefined computer-implemented rules, comparing to one or more deviation thresholds indicating an acceptable degree of deviation, etc., to determine whether an alert notification should be triggered to notify a user of a possible compromise of the deployed model. If an alert notification is triggered, an alert may be output to the user, and the user may choose whether to automatically evacuate the deployed model. If the user chooses to evacuate the deployed model, a computer command may be sent to the cloud computing provider to cause the deployed model to be removed from public access via the cloud computing platform.
[0034] Thus, the exemplary embodiments provide a mechanism for performing run-time neural flow attestation of the execution of deployed computer models, particularly with respect to neural network and deep learning (DL) network computer models. Specifically, run-time neural flow attestation is facilitated by capturing and comparing the neural flow of the execution of a computer model both during a pre-processing or training phase of operation and after the trained computer model is deployed. Run-time neural flow attestation makes it possible to determine whether a deployed model has been compromised after deployment, so that model owners can take appropriate action to ensure that their models do not generate outputs that are undesirable to model users.
[0035] Before commencing the discussion of various aspects of the exemplary embodiments, it should first be understood that throughout this description, the term "mechanism" is used to refer to elements of the present invention that perform various operations, functions, and the like. A "mechanism," as the term is used herein, may be an apparatus, a computer-implemented procedure or methodology, or an implementation of a function or aspect of an exemplary embodiment in the form of a computer program product. In the case of a procedure, the procedure is implemented by one or more devices, apparatus, computers, data processing systems, and the like. In the case of a computer program product, the logic represented by the computer code or instructions embodied in or on the computer program product is executed by one or more hardware devices to implement a function or perform an operation associated with a particular "mechanism." As such, the mechanisms described herein may be implemented as dedicated hardware, software executed on general-purpose hardware, software instructions stored on a medium such that the instructions are readily executable by dedicated or general-purpose hardware, a procedure or method for performing a function, or any combination of the above.
[0036] In the description and claims, the terms "a," "at least one of," and "one or more of" may be used in reference to certain features and elements of exemplary embodiments. It should be understood that these terms and phrases are intended to state that there is at least one of a particular feature or element present in a particular exemplary embodiment, but that there may also be more than one. That is, these terms / phrases are not intended to limit the description or claims to the presence of a single feature / element or to require the presence of a plurality of such features / elements. To the contrary, these terms / phrases require only at least a single feature / element, and there may be a plurality of such features / elements within the scope of the description and claims.
[0037] Furthermore, it should be understood that the use of the term "engine", as used herein with respect to describing embodiments and features of the present invention, is not intended to limit a particular implementation for realizing and / or performing actions, steps, processes, etc., that are attributed to and / or performed by an engine. An engine may be, but is not limited to, software, hardware, and / or firmware, or any combination thereof, that performs the specified functions, including but not limited to the use of a general-purpose and / or dedicated processor in combination with appropriate software that is loaded or stored in a machine-readable memory and executed by the processor. Furthermore, names associated with a particular engine are for convenience of reference, unless otherwise stated, and are not intended to limit a particular implementation. Furthermore, functions that are attributed to an engine may be equally performed by multiple engines, incorporated into and / or combined with the functions of other engines of the same or different types, or distributed across one or more engines in various configurations.
[0038] Furthermore, it should be appreciated that in the following description, multiple different examples of the various elements of the exemplary embodiment are used to further describe the exemplary implementation of the exemplary embodiment and aid in understanding the mechanisms of the exemplary embodiment. These examples are intended to be non-limiting and do not exhaust the various possibilities for implementing the mechanisms of the exemplary embodiment. In light of this description, it will be apparent to those skilled in the art that there are many other alternative implementations of these various elements that may be utilized in addition to or in place of the examples provided herein without departing from the scope of the present invention.
[0039] The present invention may be a system, a method, or a computer program product, or a combination thereof. The computer program product may include a computer-readable storage medium (or media) having computer-readable program instructions thereon for causing a processor to carry out aspects of the present invention.
[0040] A computer readable storage medium may be any 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 thereof. A non-exhaustive list of more specific examples of computer readable storage media includes portable computer diskettes, hard disks, random access memory (RAM), read only memory (ROM), erasable programmable read only memory (EPROM or flash memory), static random access memory (SRAM), portable compact disk read only memory (CD-ROM), digital versatile disk (DVD), memory stick, floppy disk, mechanically encoded devices such as punch cards or groove ridge structures having instructions recorded thereon, and any suitable combination thereof. A computer-readable storage medium, as used herein, should not be construed to be a transitory signal per se, such as, for example, radio waves or other freely propagating electromagnetic waves, electromagnetic waves propagating through a waveguide or other transmission medium (e.g., light pulses passing through a fiber optic cable), or electrical signals transmitted over a wire.
[0041] 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 over a network, such as, for example, 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, or edge servers, or a combination thereof. A network adapter card or network interface of each computing / processing device receives the computer readable program instructions from the network and transfers the computer readable program instructions for storage in a computer readable storage medium within the respective computing / processing device.
[0042] The computer readable program instructions for carrying out the operations of the present invention may be source or object code written in any combination of one or more programming languages, including assembler instructions, instruction set architecture (ISA) instructions, machine instructions, machine dependent instructions, microcode, firmware instructions, state setting data, or object-oriented programming languages such as Java®, Smalltalk®, C++, and traditional 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, partially on the user's computer, as a standalone software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the latter scenario, the remote computer may be connected to the user's computer via any type of network, including a local area network (LAN) or wide area network (WAN), or a connection may be made to the 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 be personalized by utilizing state information of the computer readable program instructions to execute the computer readable program instructions to perform aspects of the present invention.
[0043] Aspects of the present invention 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 invention. 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.
[0044] These computer-readable program instructions may be provided to a processor of a general purpose computer, special purpose computer, or other programmable data processing apparatus to produce a machine, such that the instructions, executed by the processor of the computer or other programmable data processing apparatus, produce means for implementing the functions / acts specified in one or more blocks of the flowcharts and / or block diagrams. These computer-readable program instructions may also be stored on a computer-readable storage medium, such that the computer-readable storage medium on which the instructions are stored constitutes an article of manufacture including instructions that implement aspects of the functions / acts specified in one or more blocks of the flowcharts and / or block diagrams, and can direct a computer, programmable data processing apparatus, or other device, or combination thereof, to function in a particular manner.
[0045] Furthermore, the computer-readable program instructions may be loaded into a computer, other programmable data processing apparatus, or other device to generate a computer-implemented process that causes the computer, other programmable apparatus, or other device to perform a series of operational steps, such that the instructions, which execute on the computer, other programmable apparatus, or other device, implement the functions / acts specified in one or more blocks of the flowcharts and / or block diagrams.
[0046] 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 present invention. In this regard, each block in the flowcharts or block diagrams may represent a module, segment, or portion of instructions that includes one or more executable instructions for implementing the specified logical function. In some alternative implementations, the functions described in the blocks may occur out of the order shown. For example, depending on the functionality involved, two blocks shown in succession may in fact be executed substantially simultaneously, or the blocks may possibly be executed in the reverse order. It will 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 performs the specified functions or acts or executes a combination of dedicated hardware and computer instructions.
[0047] As described above, the exemplary embodiment provides a mechanism specifically aimed at facilitating run-time neural flow attestation of the execution of a deployed machine learning computer model, such as in a cloud computing environment or other distributed data processing system, for the purpose of ensuring the integrity of the computer model after deployment. The mechanism of the exemplary embodiment operates on a local computing system associated with a user (computer model owner) for the purpose of capturing the neural flow of the trained computer model before deployment, and on a remotely located computing system, such as one or more computing systems providing a cloud computing platform, for the purpose of capturing the neural flow after deployment of the trained computer model for run-time execution. This mechanism enables the neural flow of the trained and deployed computer model to be captured using a trusted execution environment and reported back to the user to verify the neural flow against stored neural flow captured during the pre-processing or training phase before deployment of the trained computer model. Based on this comparison, it may be determined whether the deployed trained computer model has been compromised after training, and appropriate action may be taken.
[0048] FIG. 1 is an exemplary diagram illustrating operations of a pre-processing or training stage in which neural flow information is collected about training data used to train a computer model, according to one exemplary embodiment. The operations outlined in FIG. 1 assume that a deep neural network (DNN) or deep learning (DL) model 110 (hereafter referred to as a DL model) has been trained using a set of training data 120 and a machine learning training process. Such machine learning training processes are generally known in the art, so a detailed description of the process of training a DNN or DL model is not provided herein. Suffice it to say that the machine learning training process adjusts the operating parameters, e.g., weights, etc., of the various layers L1-Ln of the DL model 110 to cause the DL model 110 to, for example, appropriately classify an input into one of multiple recognizable classes or generate a predicted output.
[0049] After training the DL model 110, training data is again input to the now trained DL model 110, as shown in FIG. 1. The neural flow (NF) attestation engine 130 captures and stores the neural flows of the training data and generates neural flow models for various classes in a set of recognizable classes, or predictions in a set of possible predictions, based on the captured neural flows. For purposes of illustration, it is assumed that the DL model 110 is configured to classify the input into a class of a set of predefined classifications. In some exemplary embodiments, this classification involves calculating a probability value for each of a predefined number of recognized classes, such that the class with the highest probability value or score is selected as the output classification for the input. In this manner, the output of the DL model 110 may be a vector output, with each vector slot corresponding to a different class, and the value of the vector slot representing a probability or score indicating that the corresponding class is the correct classification for the input to the DL model 110. The probability values or scores themselves are calculated through the operation of various neurons of layers L1-LN of the DL model 110.
[0050] A neural flow extraction engine 132 of the neural flow (NF) attestation engine 130 extracts neuronal activation information at each layer L1-LN of the trained DL model 110. The neural flow extraction engine 132 generates a neural flow 134 for each training data instance in the training data 120 by combining neuronal activations across layers L1-LN (e.g., shown as darkened vector slots in the neural flow of FIG. 1). In this way, when the trained DL model 110 processes a training data instance as an input to the DL model 110, the DL model 110 generates neuronal activation information that is captured by the NF extraction engine 132 and correlated with the output classification generated by the DL model 110. In this way, as each training data instance is processed, a neural flow 134 and output classification corresponding to that training data instance are generated and stored by the NF attestation engine 130 for processing by the NF aggregation engine 136.
[0051] The NF aggregation engine 136 aggregates the neural flows 134 of all training data classified into the same class and generates a respective neural flow model 140 for each class. For example, if the DL model 110 is trained to classify inputs into one of 100 different recognizable classes, then for each of the 100 classes, a corresponding neural flow model 140 is generated by aggregating the neural flows 134 of the training data instances classified into the corresponding class, i.e., in this example, 100 neural flow models 140 are generated. The aggregation of the neural flows 134 may be performed in any of a number of different ways without departing from the scope of the present invention. For example, in one exemplary embodiment, a "set" of activated neurons and filters (depending on whether the layer is a convolutional layer or a fully connected layer) of all training data of the same class may be identified. In other exemplary embodiments, a machine learning model, such as, for example, a Bayesian model, an SVM model, or a graph neural network model, may be trained based on the activated neurons and filters. The machine learning model can take into account the order of activations and the frequency of occurrence of activations, and can perform an approximate similarity match against unseen test data at run time.
[0052] Neural flow models 140 are stored in measurement database 150 in association with a designator of the corresponding class to which the neural flow model 140 corresponds. In this manner, when verifying the execution of a model deployed using neural flow, the neural flow model 140 corresponding to a particular class may be retrieved from measurement database 150 and used to perform model integrity verification, such as by neural flow verification engine 138, as described below.
[0053] After training the DL model 110 and storing the neural flow models 140 for each class of output generated by the DL model 110 in the measurement database 150 as described above, the user may deploy the trained DL model 110 to a cloud computing environment of a cloud platform provider and start the cloud service corresponding to the deployed DL model. FIG. 2 is an exemplary diagram illustrating operations of the deployment phase in which run-time neural flow attestation of the operation of the deployed DL model 210 is performed according to one exemplary embodiment. In FIG. 2, the right-hand side of the diagram, labeled "Cloud," illustrates the cloud computing platform and cloud computing environment in which the DL model 210 is deployed and executes with respect to new inputs 220 received from users of the cloud services that the DL model 210 supports. For example, the "Cloud" side of the diagram may be a particular portion of cloud computing resources (hardware and / or software) allocated to the owner of the DL model 210, e.g., part of a multi-tenant cloud computing environment.
[0054] 2, the cloud computing platform provides an NF runtime neural flow attestation engine 230 and a trusted execution environment (TEE) 236 for deploying DL model 210. In some example embodiments, NF runtime neural flow attestation engine 230, or a subset of components of NF runtime neural flow attestation engine 230, may execute within TEE 236, or TEE 236 may be provided as part of NF runtime neural flow attestation engine 230. However, for ease of illustration, runtime neural flow attestation engine 230 is shown as being external to TEE 236, although this is not a requirement of the present invention. However, it is important to note that while the deployed trained DL model 210 runs outside of the TEE 236, the capture, storage, and reporting of the neural flow of the deployed trained DL model 210 runs within the TEE 236, ensuring that the recorded neural flow has not been tampered with.
[0055] As shown in Figure 2, the NF run-time neural flow attestation engine 230 includes an NF extraction engine 232 that operates to record the neural flow (NF) of the DL model 210 acting on the input 220. The NF extraction engine 232 may operate similarly to the NF extraction engine 132 of Figure 1, but executes on a cloud computing platform with respect to the deployed trained DL model 210. In some exemplary embodiments, the NF extraction engine 232 executes within the TEE 236 to collect neural flow information, which we refer to as attested neural flow information, because it is used to attest the proper execution of the deployed trained DL model 210.
[0056] The NF run-time neural flow attestation engine 230 further includes an attestation generation engine 234 that generates an attestation output, which is sent to a user's local computing system, such as that shown in Figure 1, for validation by the NF attestation engine 130. Data communication between the NF run-time neural flow attestation engine 230 of Figure 2 and the NF attestation engine 130 of Figure 1 is facilitated by run-time neural flow attestation interfaces 137 and 238 of the respective computing systems or platforms.
[0057] 2, when the deployed trained DL model 210 receives an input 220 for processing, such as classification, prediction, etc., the NF extraction engine 232, which may be executed within the TEE 236, captures and stores the neural flow 240 for the input 220 by again extracting neuronal activation information at each layer L1-LN of the deployed trained DL model 210 and combining the neuronal activations across the layers L1-LN to generate the neural flow 240 of the deployed trained DL model 210. The captured neural flow information 240 may be stored within the secure storage of the TEE 236 and returned to the NF attestation engine 130, which may be executed on the user's local computing system.
[0058] For example, when a user computing system 250 sends an input 220 for processing by a deployed trained DL model 210, the user computing system 250 may associate with this input a specific challenge C for use in determining the freshness of the attestation received from the NF runtime neural flow attestation engine 230. Within the TEE 236, the neural flow 240 of that input 220 is captured by the NF extraction engine 232 along with information about the model's output. The extracted NF and model output, i.e., the class into which the input was classified, are provided to the attestation generation engine 234 along with the challenge C. The attestation generation engine 234 may seal the data and generate an attestation by hashing the NF and model output with the challenge C and encrypting the result using a security key exchanged between the user / tenant computing device and the TEE as part of the TEE startup, which is then returned to the user computing device 250 implementing the NF attestation engine 130. Alternatively, in some demonstrative embodiments, the NF attestation engine 130 may be provided on a computing device separate from the user computing device 250, provided that the challenge is also provided to the separate computing device so that the sealed attestation can be accessed and verified.
[0059] When the sealed attestation is received from the TEE 236 via the interfaces 137 and 238 in the NF attestation engine 130 of the user's local computing system, such as the user computing device 250, the neural flow verification engine 138 (see FIG. 1) of the NF attestation engine 130 running on the user computing device 250 can first verify the completeness and freshness of the attestation using the challenge C and extract the output information and neural flow of the DL model corresponding to the processing of the input 220. Based on the output classification or prediction generated by the DL model 210 for the input 220, the neural flow verification engine 138 retrieves from the local measurement database 150 the neural flow model 140 corresponding to the particular class stored based on the training data during the pre-processing operation described above with respect to FIG. 1. The neural flow 240 in the attestation is compared to the stored neural flow of the neural flow model 140 from the measurement database 150, generated by the training data.
[0060] As mentioned above, if the deployed trained DL model 210 is operating normally and no modifications of the deployed trained DL model 210 have been performed by an attacker, cloud computing provider, etc., the neural flows 240 from the attestation should closely approximate the neural flows 140 stored in the measurement database 150 for the same class. However, if there are significant deviations, e.g., deviations that exceed a given tolerance or that meet criteria indicative of a compromise as specified in one or more rules applied by the computer, then the deployed trained DL model 210 may have been compromised in some way, maliciously or non-maliciously, after training and deployment of the DL model 110.
[0061] In an exemplary embodiment, deviations between the neural flows 140, 240 may be evaluated by the neural flow validation engine 138, e.g., by applying predefined computer-implemented rules, comparing to one or more deviation thresholds indicating acceptable degrees of deviation, etc., to determine whether a criterion or threshold indicating a possible compromise of the deployed trained DL model 210 is met and whether an alert notification should be triggered to notify the user of the possible compromise of the deployed model. If such a criterion or threshold is met, an alert notification may be triggered and a notification and responsive action engine 139 may be invoked to configure and send or otherwise output an alert to the user computing device 250, allowing the user to select whether to automatically evict the deployed trained DL model 210. If the user selects to evict the deployed trained DL model 210, a computer command may be sent to the cloud computing provider to cause the deployed trained DL model 210 to be removed from public access, e.g., deregistered from available cloud services on the cloud computing platform.
[0062] Thus, a mechanism is provided for performing run-time neural flow attestation of the execution of a deployed computer model. Run-time neural flow attestation involves capturing and comparing the neural flow of a computer model both during a pre-processing or training phase of operation and after the trained computer model is deployed. Run-time neural flow attestation allows for determining whether a deployed model has been compromised after deployment so that model owners can take appropriate action to ensure that their models do not generate outputs that are undesirable to model users. Furthermore, run-time neural flow attestation, as described above, addresses three concerns that tenants have with respect to deployed DL models. For example, with respect to an attacker injecting a backdoor into a deployed, trained DL model, if the attacker causes the DL model to misclassify inputs, the neural flow will be altered to cause such misclassification, and such alteration of the neural flow will be detected by the mechanism of the exemplary embodiment. When a cloud computing platform provider prunes or "squeezes" a DL model to reduce storage and computation costs, the neural flow is also altered, and such deviations from the pre-deployment trained DL model are detected by the mechanisms of the exemplary embodiments. Furthermore, when a DL model is subjected to an adversarial attack, this also causes deviations in the neural flow, which are detected by the mechanisms of the exemplary embodiments. Thus, the claimed invention provides a mechanism for verifying the integrity of a deployed trained DL model using a neural flow-based run-time neural flow attestation model and detecting possible compromise from an attacker or a cloud computing platform provider.
[0063] As is evident from the above description, the present invention provides a computer tool for improving the integrity of deployed computer models, particularly in cloud computing or other distributed data processing system environments, and for detecting violations of such deployed computer models so that appropriate notification and response actions can be taken. As such, the exemplary embodiment may be utilized in many different types of data processing environments. To provide a context for the description of certain elements and functionality of the exemplary embodiment, the following provides Figures 3 and 4 as exemplary environments in which aspects of the exemplary embodiment may be implemented. It should be understood that Figures 3 and 4 are merely examples and are not intended to assert or imply any limitation with respect to the environments in which aspects or embodiments of the present invention may be implemented. Many modifications to the illustrated environments may be made without departing from the scope of the present invention.
[0064] 3 illustrates an illustration of an exemplary distributed data processing system in which aspects of the exemplary embodiments may be implemented. Distributed data processing system 300 may include a network of computers in which aspects of the exemplary embodiments may be implemented. Distributed data processing system 300 includes at least one network 302, which is the medium used to provide communications links between the various interconnected devices and computers within distributed data processing system 300. Network 302 may include connections such as wires, wireless communication links, satellite communication links, fiber optic cables, and the like.
[0065] In the illustrated example, servers 304A-304C are connected to network 302 along with storage unit 308. Additionally, clients 310 and 312 are also connected to network 302. These clients 310 and 312 may be, for example, personal computers, network computers, etc. In the illustrated example, servers 304A-304C provide data, such as, for example, boot files, operating system images, and applications, to clients 310-312. Clients 310-312 are clients of a cloud computing system that, in the illustrated example, includes server 304A and possibly one or more of other server computing devices 304B-304C. Distributed data processing system 300 may include additional servers, clients, and other computing, data storage, and communication devices not shown.
[0066] In the depicted example, distributed data processing system 300 is the Internet, with network 302 representing a worldwide collection of networks and gateways that communicate with one another using the Transmission Control Protocol / Internet Protocol (TCP / IP) suite of protocols. At the heart of the Internet is a backbone of high-speed data communication lines between major nodes or host computers consisting of thousands of commercial, government, educational, and other computer systems that route data and messages. Of course, distributed data processing system 300 may also be implemented to include a number of different types of networks, such as, for example, an intranet, a local area network (LAN), a wide area network (WAN), etc. As noted above, FIG. 3 is intended as an example, and not as an architectural limitation for different embodiments of the present invention, and thus the specific elements illustrated in FIG. 3 should not be considered as limitations with respect to the environments in which an illustrative embodiment of the present invention may be implemented.
[0067] As shown in FIG. 3, according to one exemplary embodiment, one or more of the computing devices, e.g., server 304A, may be specially configured to implement a deep learning cloud services platform 300, which may further be configured with a runtime neural flow attestation engine 230 as shown in FIG. 2, with which the DL cloud services platform 300 operates. Configuring the computing device may include providing special purpose hardware, firmware, etc., to facilitate performing the operations and generating output as described herein with respect to the exemplary embodiments. Configuring the computing device may also, or alternatively, include providing software applications stored in one or more storage devices and loaded into memory of the computing device, such as server 304A, for causing one or more hardware processors of the computing device to execute software applications that configure the processors to perform the operations and generate output as described herein with respect to the exemplary embodiments. Moreover, any combination of special purpose hardware, firmware, software applications running on the hardware, etc. may be used without departing from the scope of the exemplary embodiments.
[0068] It should be understood that once a computing device is configured in one of these ways, the computing device becomes a dedicated computing device that is specifically configured to implement the mechanisms of the exemplary embodiments, and not a general-purpose computing device. Moreover, implementing the mechanisms of the exemplary embodiments as described herein improves the functionality of the computing device to provide useful, tangible results that facilitate run-time neural flow attestation of the integrity of deployed, trained computer models based on the neural flow of the computer models.
[0069] As shown in Figure 3, one or more of the servers 304A-304C are configured to implement the deep learning cloud service 300 and the runtime neural flow attestation engine 230. While Figure 3 illustrates elements 300 and 230 associated with a single server, namely, server 304A, it should be understood that multiple servers, such as 304A-304C, may together comprise a cloud computing system and be configured to provide the deep learning cloud service 300 and the runtime neural flow attestation engine 230, such that the deep learning cloud service 300 and the runtime neural flow attestation engine 230, or portions thereof, and the mechanisms of the DL computing model 305, or portions thereof, deployed in the DL cloud service 300 may be distributed across multiple server computing devices 304A-304C. In some exemplary embodiments, multiple instances of the deep learning cloud service 300, the DL model 305, and the runtime neural flow attestation engine 230 may be provided on multiple different servers 304A-C of the cloud computing system. The deep learning cloud service 300 may provide any deep learning or AI-based functionality of the deep learning system.
[0070] In some exemplary embodiments, the deep learning cloud service 300 may implement a cognitive computing system. In overview, a cognitive system is a dedicated computer system or set of computer systems comprised of hardware and / or software logic (combined with hardware logic on which software runs) to emulate human cognitive functions. These cognitive systems apply human-like characteristics to the communication and processing of ideas, which, when combined with the inherent strengths of digital computing, can solve problems at scale with high accuracy and resilience. Cognitive systems perform one or more computer-implemented cognitive operations that approximate human thought processes and allow humans and machines to interact more naturally to extend and expand human expertise and cognitive capabilities. Cognitive systems include artificial intelligence logic, such as, for example, natural language processing (NLP)-based logic, image analysis and classification logic, electronic medical record analysis logic, and machine learning logic, which may be provided as dedicated hardware, software running on the hardware, or any combination of dedicated hardware and software running on the hardware. The logic of a cognitive system implements cognitive operations, examples of which include, but are not limited to, answering questions, identifying related concepts in various content pieces within a corpus, image analysis and classification operations, intelligent search algorithms such as internet web page search, medical diagnosis and treatment recommendations, and generating other types of recommendations, such as items of interest to a particular user, recommending potential new contacts, etc. In some exemplary embodiments, the deep learning (DL) cloud service 300 may provide functionality for performing other cognitive operations, such as image recognition and analysis, based on the operation of the deployed trained DL model 305.In general, the DL models 305 deployed in the DL cloud service 300 may provide classification and / or prediction capabilities based on which further evaluation by, for example, the DL cloud service 300 may be performed.
[0071] IBM® Watson® is an example of one such cognitive system that can process human-readable language and discern inferences between text passages with human-like accuracy, at speeds much faster than humans, and at scale. In general, such cognitive systems are capable of performing the following functions: navigating the complexities of human language and understanding; ingesting and processing large amounts of structured and unstructured data; generating and evaluating hypotheses; weighing and evaluating responses based only on relevant evidence; providing situational advice, insights, and guidance; improving and learning with each iteration and interaction through machine learning processes; enabling decision-making at the point of impact (contextual guidance); scaling linearly with the task; extending and expanding human expertise and cognition; identifying empathetic human-like attributes and qualities from natural language; inferring various language-specific or independent attributes from natural language; performing advanced association recall (memory and recall) from data points (images, text, speech); predicting and sensing with situational awareness that mimics experience-based human cognition; and answering questions based on natural language and concrete evidence.
[0072] In one exemplary embodiment, the cognitive system, which may be implemented as a deep learning cloud service 300, provides a mechanism for answering questions or processing requests from a client computing device, such as client computing device 310, via one or more processing pipelines implementing one or more DL models 305. In other exemplary embodiments, the cognitive system provides image analysis and recognition capabilities based on one or more processing pipelines implementing one or more DL models 305. In either case, the one or more DL models 305 perform classification or prediction operations, and the neural flow of the DL models 305 is monitored, captured, and reported to the model owners (users) to attest the integrity of the deployed trained DL models 305.
[0073] The processing pipeline or pipelines in which the DL model 305 operates are artificial intelligence applications running on data processing hardware that respond to requests with results generated based on a cognitive evaluation of input and other evidential data based on the trained DL model 305, e.g., answer questions about a given subject domain posed in natural language, or process requests to perform cognitive operations on input data that may be presented in natural language or as structured requests / queries, analyze a given image to classify objects in the image and provide classification results, etc.
[0074] As shown in Figure 3, a client computing system, for example, client computing system 310, is configured to implement a neural flow attestation engine 130 as shown in Figure 1, which operates to generate a neural flow model for a trained DL model 306 deployed to DL cloud service 300 as deployed trained DL model 305 operating within DL cloud service 300 to service user input, such as input 308 from computing device 312, as described above. NF attestation engine 130 further operates to verify the integrity of deployed trained DL model 305 using the NF model created and stored for trained DL model 306 based on attestation 307 received from run-time neural flow attestation engine 230 operating on server 304A with DL cloud service 300 and deployed trained DL model 305, as described above. That is, the runtime neural flow attestation engine 230 operates to capture the neural flow of the deployed trained DL model 305 within the trusted execution environment, as described above, and generate an attestation 307 based on the captured neural flow, which is transmitted to the computing system 310 of the owner of the deployed trained DL model 305 for runtime neural flow attestation of the integrity of the deployed trained DL model 305.
[0075] Further, the NF attestation engine 130 may operate to retrieve a stored NF model, e.g., as may be stored in the measurement database 150 of FIG. 1, for the trained DL model 306 and the classification output generated by the deployed trained DL model 305 of the input 308 specified in the attestation 307. The NF attestation engine 130 may further operate to determine whether a mismatch between the NF in the attestation 307 and the retrieved NF model indicates a possible compromise of the deployed trained DL model 305. Further, the NF attestation engine 130 may generate an alert and send / output the alert to an authorized user to notify the possible compromise. Further, in response to a determination that the mismatch indicates a possible compromise, the NF attestation engine 130 may automatically send a command to the cloud computing service platform provider, e.g., to the server 304A, to evacuate the deployed trained DL model 305 or to deregister it as accessible via the DL cloud service 300. This may be done in response to a user input requesting such evacuation of the deployed trained DL model 305.
[0076] As described above, the mechanisms of the exemplary embodiments utilize specially configured computing devices or data processing systems to perform operations for performing run-time neural flow attestation of the integrity of deployed trained computer models. These computing devices or data processing systems may include various hardware elements that are specially configured, either by hardware configuration, software configuration, or a combination of hardware and software configuration, to implement one or more of the systems and / or subsystems described herein. FIG. 4 is a block diagram of just one example data processing system in which aspects of the exemplary embodiments may be implemented. Data processing system 400 is an example of a computer, such as server 304A or client computing device 310 of FIG. 3, in which computer usable code or instructions implementing the processes and aspects of the exemplary embodiments of the present invention may be arranged and / or executed to effectuate the operations, outputs, and external effects of the exemplary embodiments described herein.
[0077] In the depicted example, data processing system 400 utilizes a hub architecture including a north bridge and memory controller hub (NB / MCH) 402 and a south bridge and input / output (I / O) controller hub (SB / ICH) 404. A processing unit 406, a main memory 408, and a graphics processor 410 are connected to the NB / MCH 402. The graphics processor 410 may be connected to the NB / MCH 402 via an accelerated graphics port (AGP).
[0078] In the illustrated example, a local area network (LAN) adapter 412 connects to the SB / ICH 404. An audio adapter 416, a keyboard and mouse adapter 420, a modem 422, a read only memory (ROM) 424, a hard disk drive (HDD) 426, a CD-ROM drive 430, a universal serial bus (USB) port and other communication ports 432, and a PCI / PCIe® device 434 connect to the SB / ICH 404 via a bus 438 and a bus 440. PCI / PCIe® devices may include, for example, Ethernet® adapters, add-in cards, and PC cards for notebook computers. PCI uses a card bus controller, whereas PCIe® does not. The ROM 424 may be, for example, a flash basic input / output system (BIOS).
[0079] The HDD 426 and CD-ROM drive 430 connect to the SB / ICH 404 via a bus 440. The HDD 426 and CD-ROM drive 430 may use, for example, an Integrated Drive Electronics (IDE) or a Serial Advanced Technology Attachment (SATA) interface. A Super I / O (SIO) device 436 may be connected to the SB / ICH 404.
[0080] An operating system executes on the processing unit 406. The operating system coordinates and provides control of various components within the data processing system 400 of FIG. 4. As a client, the operating system may be a commercially available operating system such as Microsoft® Windows 10®. An object-oriented programming system, such as a Java™ programming system, may work in conjunction with the operating system to provide calls to the operating system from Java™ programs or applications executing on the data processing system 400.
[0081] As a server, data processing system 400 may be, for example, an IBM® eServer™ System p5® computer system, a Power® processor-based computer system, or the like, running the Advanced Interactive Executive (AIX®) operating system or the LINUX® operating system. Data processing system 400 may be a symmetric multiprocessor (SMP) system that includes multiple processors in processing unit 406. Alternatively, a single processor system may be utilized. IBM®, IBM® Watson®, eServer®, System p5®, Power®, and AIX® are trademarks of International Business Machines Corporation, registered in many jurisdictions worldwide. The registered trademark Linux® is used pursuant to a sublicense from the Linux Foundation, the exclusive licensee of Linus Torvalds, owner of the trademark worldwide. Java® and all Java®-based trademarks and logos are trademarks or registered trademarks of Oracle® or its affiliates or combinations thereof. Microsoft(R) and Windows(R) are trademarks of Microsoft Corporation in the United States, other countries, or both.
[0082] Instructions for the operating system, the object oriented programming system, and applications or programs may be located on a storage device, such as HDD 426, and loaded into main memory 408 for execution by processing unit 406. The processes of the exemplary embodiments of the present invention may be executed by processing unit 406 using computer usable program code, which may be located, for example, in a memory, such as main memory 408, ROM 424, or in one or more peripheral devices 426 and 430.
[0083] A bus system, such as bus 438 or bus 440 shown in FIG. 4, may be comprised of one or more buses. Of course, a bus system may be implemented using any type of communications fabric or architecture that provides for a transfer of data between different components or devices attached to the fabric or architecture. A communications unit, such as modem 422 or network adapter 412 in FIG. 4, may include one or more devices used to transmit and receive data. A memory may be, for example, main memory 408, ROM 424, or a cache such as found in NB / MCH 402 in FIG. 4.
[0084] As noted above, in some exemplary embodiments, the mechanisms of the exemplary embodiments may be implemented as special purpose hardware, firmware, or the like, application software stored in a storage device, such as HDD 426, loaded into a memory, such as main memory 408, and executed by one or more hardware processors, such as processing unit 406, or the like. Thus, the computing device illustrated in FIG. 4 is specially configured to implement the mechanisms of the exemplary embodiments and to perform operations and generate output as described herein with respect to a privacy-enhancing deep learning cloud service framework and a deep learning cloud service implementing one or more processing pipelines.
[0085] Those skilled in the art will appreciate that the hardware in Figures 3 and 4 may vary depending on the implementation. Other integrated hardware or peripheral devices, such as flash memory, equivalent non-volatile memory, or optical disk drives, may be used in addition to or in place of the hardware depicted in Figures 3 and 4. Additionally, the processes of the illustrative embodiments may be applied to multiprocessor data processing systems other than the SMP systems described above without departing from the scope of the present invention.
[0086] Moreover, data processing system 400 may take the form of any of a number of different data processing systems, including a client computing device, a server computing device, a tablet computer, a laptop computer, a telephone or other communications device, a personal digital assistant (PDA), etc. In some illustrative examples, data processing system 400 may be a portable computing device configured with flash memory, for example, to provide non-volatile memory for storing operating system files and / or user-generated data. In essence, data processing system 400 may be any known or later developed data processing system without architectural limitation.
[0087] FIG. 5 is a flow chart outlining an exemplary operation for performing the functions of the pre-processing stage, according to one exemplary embodiment. As shown in FIG. 5, the operation begins by training a DL model using a training data set (step 510). After training the DL model, the training data is again input into the trained DL model (step 515), so that the neural flow of the trained DL model for each training data instance can be captured (step 520). The captured neural flow is then aggregated for each output class of the trained DL model, and the aggregation of classes becomes a neural flow model for that class (step 525). The neural flow model is then stored in a measurement database for later use in verifying the integrity of the deployed trained DL model (step 530).
[0088] After training the DL model, capturing the neural flow of the trained DL model, and generating and storing various classes of neural flow models, the trained DL model is deployed to a cloud computing platform (step 535). A user may then, via a computing system, send a request to the cloud computing platform to verify the integrity of the deployed DL model (step 540). The request may include a challenge C, which is used to seal or protect the attestation returned from a runtime neural flow attestation engine running on the cloud computing platform.
[0089] In response to the request, the cloud computing platform's runtime neural flow attestation engine generates an attestation, which is then received by the NF attestation engine (step 545). The attestation includes the neural flows captured by the runtime neural flow attestation engine and the output class generated by the deployed trained DL model for the input sent with the request. The NF attestation engine retrieves a stored neural flow model corresponding to the output class and compares the neural flows in the attestation to the retrieved neural flow model for that output class (step 550). The comparison results in a determination as to whether a criterion indicative of a possible infringement of the deployed trained DL model has been met (step 555). For example, computer-executable rules, thresholds, etc. may be applied to the discrepancies between the neural flows in the attestation and the neural flow model to determine whether the discrepancies indicate infringement.
[0090] If the comparison produces a result of no infringement, the operation ends. Otherwise, if the comparison produces a result of possible infringement, an alert is generated and output to the authorized user (step 560). Optionally, the deployed trained DL model may be evacuated (step 565). Evacuation of the deployed trained DL model may be performed after alerting the authorized user and requesting the authorized user to confirm the need to evacuate the deployed trained DL model. The operation then ends.
[0091] 6 is a flow chart outlining example operations for performing deploy-phase functions including run-time neural flow attestation of neural flows, according to one example embodiment. The operations outlined in FIG. 6 assume that a trained DL model has already been provided to a cloud computing platform and deployed for use.
[0092] As shown in FIG. 6, the operation begins with receiving a request to verify the execution integrity of a deployed DL model (step 610). As discussed above, the request may be accompanied by input data that is processed by the deployed DL model to generate an output classification, and may further include a challenge C for integrity verification and freshness testing. In some embodiments, security keys may also be exchanged for use in encrypting or sealing the attestation generated by the trusted execution environment as described above. In response to the request, a neural flow of the deployed DL model based on the provided input is captured in the trusted execution environment of the cloud computing platform (step 620). An attestation is generated based on the captured neural flow, the output classification, and the challenge C to respond to the request (step 630). The attestation is then sent to the NF attestation engine of the requesting computing system to verify the execution integrity of the deployed DL model at run time based on the neural flow (step 640). The operation then ends.
[0093] In this manner, the exemplary embodiments provide a mechanism for ensuring the integrity of a deployed trained computer model by providing a run-time neural flow attestation capability based on the neural flow in the computer model. The exemplary embodiments record the neural flow model prior to deployment of the computer model and use this as a basis for verifying attestation from the cloud computing platform after the trained computer model is deployed as part of a cloud computing service. In this manner, a user (owner of the trained computer model) may determine whether his or her trained computer model has been compromised, maliciously or not, after the user provides the trained computer model and deploys it to the cloud computing platform. As a result, the user may take responsive action, such as evacuating the deployed computer model, to ensure that the user does not rely on the compromised computer model.
[0094] The embodiments of the present invention may be implemented in conjunction with any type of computing environment now known or later developed. In some exemplary embodiments, the mechanisms of the exemplary embodiments are implemented on a cloud computing system, although implementation of the teachings described herein is not limited to cloud computing environments. Various types of distributed data processing system environments may be utilized to implement the mechanisms of the exemplary embodiments.
[0095] Assuming that a cloud computing embodiment is utilized, it will be appreciated that 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 or 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.
[0096] The cloud model has the following features: (1) On-Demand Self-Service: Cloud consumers can unilaterally provision computing capacity, such as server time and network storage, automatically as needed, without the need for human interaction with the provider of the service. (2) Broad Network Access: Capabilities are available over the network and are accessed through standard mechanisms that facilitate use by heterogeneous thin- or thick-client platforms (e.g., cell phones, laptops, and PDAs). (3) Resource Pooling: Pooling a provider's computing resources to serve multiple consumers using a multi-tenant model where various physical and virtual resources are dynamically allocated and reallocated according to demand. Although consumers generally have no control over or knowledge of the exact location of the resources provided to them, there is a sense of location independence in that the location may be identifiable at a higher level of abstraction (e.g., country, state, or data center). (4) Rapid Elasticity: Capacity can be rapidly and elastically, sometimes automatically, provisioned to quickly scale out and rapidly released to quickly scale in. To the consumer, provisionable capacity often appears to be unlimited and can be purchased in any quantity at any time. (5) Metered Services: Cloud systems leverage metering capabilities at some level of abstraction appropriate to the type of service (e.g., storage, processing, bandwidth, and active user accounts) to automatically control and optimize resource usage. Resource usage can be monitored, managed, and reported to provide transparency to both providers and consumers of the services utilized.
[0097] The service model is as follows: (1) Software as a Service (SaaS): The capability offered to the consumer is 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 has no management or control over the underlying cloud infrastructure, including networks, servers, operating systems, storage, or even individual application features, with the possible exception of limited user-specific application configuration settings. (2) Platform as a Service (PaaS): The capability offered to the Consumer is to deploy applications created or acquired by the Consumer, written 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 the network, servers, operating systems, or storage, but does control the deployed applications and, in some cases, the application hosting environment configuration. (3) Infrastructure as a Service (IaaS): The capability offered to a consumer is 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 control the operating systems, storage, deployed applications, and possibly limited control over selected networking components (e.g., host firewalls).
[0098] The deployment model is as follows: (1) Private Cloud: The cloud infrastructure is operated exclusively for the organization. It may be managed by the organization or a third party and may be on-premise or off-premise. (2) Community Cloud: The cloud infrastructure is shared by several organizations to support a specific community with common concerns (e.g., mission, security requirements, policies, and compliance considerations). It may be managed by the organization or a third party and may reside on-premise or off-premise. (3) 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. (4) Hybrid Cloud: The cloud infrastructure is a composite of two or more clouds (private, community, or public) that remain unique entities but are bound together by standardized or proprietary technologies that enable data and application portability (e.g., cloud bursting for load balancing between clouds).
[0099] Cloud computing environments are service-oriented with an emphasis on statelessness, low coupling, modularity, and semantic interoperability. At the core of cloud computing is an infrastructure that includes a network of interconnected nodes.
[0100] Referring now to FIG. 7, an exemplary cloud computing environment 750 is illustrated. As illustrated, the cloud computing environment 750 includes one or more cloud computing nodes 710 with which local computing devices used by cloud consumers, such as, for example, a personal digital assistant (PDA) or cell phone 754A, a desktop computer 754B, a laptop computer 754C, or an automobile computer system 754N, or combinations thereof, may communicate. The nodes 710 may communicate with each other. They may be physically or virtually grouped (not shown), for example, in one or more networks, such as the private, community, public, or hybrid clouds described above, or combinations thereof. This enables the cloud computing environment 750 to provide infrastructure-as-a-service, platform-as-a-service, and / or software-as-a-service services without the need for cloud consumers to maintain resources on their local computing devices. It should be understood that the types of computing devices 754A-N illustrated in FIG. 7 are intended to be exemplary only, and that the computing node 710 and cloud computing environment 750 can communicate with any type of computerized device via any type of network and / or network-addressable connection (e.g., using a web browser).
[0101] Referring now to Figure 8, a set of functional abstraction layers provided by cloud computing environment 750 (Figure 7) is shown. It should be understood in advance that the components, layers, and functions shown in Figure 8 are intended to be exemplary only, and embodiments of the present invention are not limited thereto. As shown, the following layers and corresponding functions are provided:
[0102] (1) Hardware and software layer 860 includes hardware and software components. Examples of hardware components include mainframes 861, RISC (reduced instruction set computer) architecture based servers 862, servers 863, blade servers 864, storage devices 865, and networks and networking components 866. In some embodiments, software components include network application server software 867 and database software 868.
[0103] (2) Virtualization layer 870 provides an abstraction layer from which the following examples of virtual entities may be provided: virtual servers 871, virtual storage 872, virtual networks including virtual private networks 873, virtual applications and operating systems 874, and virtual clients 875.
[0104] In one example, the management layer 880 may provide the following functions: Resource provisioning 881 provides dynamic procurement of computing and other resources utilized to execute tasks within the cloud computing environment. Metering and pricing 882 provides cost tracking as resources are utilized within the cloud computing environment and accounting or billing for the consumption of these resources. In one example, these resources may include application software licenses. Security provides identity verification of cloud consumers and tasks as well as protection for data and other resources. User portal 883 provides consumers and system administrators with access to the cloud computing environment. Service level management 884 provides allocation and management of cloud computing resources such that requested service levels are met. Service level agreement (SLA) planning and fulfillment 885 provides advance arrangement and procurement of cloud computing resources anticipated to be required in the future according to SLAs.
[0105] The workload layer 890 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 891, software development and lifecycle management 892, virtual classroom instructional delivery 893, data analytics processing 894, transaction processing 895, and deep learning cloud computing services processing 896. The deep learning cloud computing services processing 896 may include the pipelines described above with respect to one or more of the illustrated exemplary embodiments, computer models (e.g., DL models), and runtime neural flow attestation engine mechanisms, such as, for example, the runtime neural flow attestation engine 230 of FIG. 2.
[0106] As noted above, it should be understood that the exemplary embodiments may take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment containing both hardware and software elements. In one example embodiment, the mechanisms of the exemplary embodiments are implemented in software or program code, including but not limited to firmware, resident software, microcode, etc.
[0107] A data processing system suitable for storing and / or executing program code includes at least one processor coupled directly or indirectly to memory elements via a communication bus, such as, for example, a system bus. The memory elements may include local memory utilized during the actual execution of the program code, bulk storage, and cache memory that provides temporary storage of at least some of the program code to reduce the number of times the code needs to be retrieved from bulk storage during execution. The memory may be of various types, including, but not limited to, ROM, PROM, EPROM, EEPROM, DRAM, SRAM, flash memory, solid state memory, etc.
[0108] Input / output or I / O devices (including but not limited to keyboards, displays, pointing devices, etc.) can be coupled to the system directly or through intervening wired or wireless I / O interfaces and / or controllers, etc. I / O devices can take many different forms other than traditional keyboards, displays, pointing devices, etc., such as, for example, communication devices coupled via wired or wireless connections, including but not limited to, smart phones, tablet computers, touch screen devices, voice recognition devices, etc. Any known or later developed I / O devices are intended to be within the scope of the exemplary embodiments.
[0109] Network adapters may also be coupled to the system to enable the data processing system to be coupled to other data processing systems or remote printers or storage devices through intervening private or public networks. Modems, cable modems, and Ethernet® cards are just a few of the currently available types of network adapters for wired communications. Wireless communication based network adapters may also be utilized, including, but not limited to, 802.11a / b / g / n wireless communication adapters, Bluetooth® wireless adapters, and the like. Any known or later developed network adapter is intended to be within the scope of the present invention.
[0110] The description of the present invention has been presented for purposes of illustration and explanation, and is not intended to be exhaustive or limited to the invention in the disclosed form. Many modifications and variations will be apparent to those skilled in the art without departing from the scope of the described embodiments. The embodiments have been selected and described to best explain the principles and practical applications of the invention, and to enable those skilled in the art to understand the invention in various embodiments with various modifications suitable for the particular use contemplated. The terms used in this specification have been selected to best explain the principles, practical applications, or technical improvements to the technology found in the marketplace of the embodiments, or to enable those skilled in the art to understand the embodiments disclosed herein.
Claims
1. 1. A method in a data processing system having a processor and a memory, the memory including instructions executed by the processor to configure the processor to implement a neural flow attestation engine, the method comprising: inputting input data into a trained computer model by the neural flow attestation engine, the trained computer model including multiple layers of neurons; recording, by the neural flow attestation engine, for a set of input data instances in the input data, an output class produced by the trained computer model and a neural flow through a plurality of layers of neurons, said recording producing a recorded neural flow, said output class being one of a plurality of possible output classes; deploying the trained computer model on a computing platform; and verifying, by the neural flow attestation engine, the integrity of the deployed trained computer model based on the run-time neural flow of the deployed trained computer model and the recorded neural flow; A method comprising:
2. generating, by the neural flow attestation engine, for each class in the plurality of possible output classes, a neural flow model based on the recorded neural flows; storing, by the neural flow attestation engine, each neural flow model in a measurement database, wherein verifying the integrity of the deployed trained computer model includes comparing the run-time neural flow to one or more of the stored neural flow models in the measurement database; The method of claim 1 further comprising:
3. 3. The method of claim 2, wherein for each class in the plurality of possible output classes, generating a neural flow model based on the recorded neural flows comprises aggregating the recorded neural flows associated with the classes by at least one of identifying, for each class, a set of activated neurons and filters, or training a machine learning model based on the activated neurons and filters, taking into account activations and frequency of occurrence of activations.
4. 4. The method of claim 2 or 3, wherein the measurement database is stored on a tenant computing device associated with a provider of the trained computer model, and the data processing system is another computing system of a cloud computing platform.
5. Verifying the integrity of the deployed trained computer model includes: recording the run-time neural flow of the deployed trained computer model based on run-time input data processed by the deployed trained computer model; transmitting the recorded runtime neural flow from the data processing system to the tenant computing device; comparing the recorded run-time neural flows to one or more neural flow models stored in the measurement database that correspond to the same run-time output classes produced by the deployed trained computer model for the run-time input data; The method of claim 4 , comprising:
6. Verifying the integrity of the deployed trained computer model based on a run-time neural flow of the deployed trained computer model and the recorded neural flow includes: determining a deviation between the run-time neural flow and one or more recorded neural flows corresponding to the same output classes produced by the deployed trained computer model on the run-time input data; determining that the integrity of the deployed trained computer model has been compromised in response to the deviation meeting a predetermined criterion; The method of claim 5 , comprising:
7. In response to determining that the integrity of the deployed trained computer model has been compromised, evicting the deployed trained computer model from further access by users of the deployed trained computer model. The method of claim 6 further comprising:
8. Recording the output classes produced by the trained computer model for the set of input data instances in the input data and the neural flow through the multiple layers of neurons includes: creating a trusted execution environment (TEE) in said data processing system; recording, by a neural flow recording component executing within the trusted execution environment, the neural flow through the multiple layers of neurons for the input data instances; generating, by an attestation generation engine executing within the trusted execution environment, an attestation including the recorded neural flow through the multiple layers of neurons for the input data instance and an output class generated by the deployed trained computer model for the input data instance; The method of any one of claims 1 to 7, comprising:
9. Recording the output classes produced by the trained computer model for the set of input data instances in the input data and the neural flow through the multiple layers of neurons includes: generating, by the attestation generation engine, the attestation further based on a challenge provided by a computing device of a provider of the computer model; encrypting, by the attestation generation engine, the attestation based on a security key exchanged between the computing device of the provider of the computer model and the TEE, whereby an encrypted attestation is generated; transmitting, by the data processing system, the encrypted attestation to the computing device of the provider of the computer model; The method of claim 8 further comprising:
10. The method according to any of claims 1 to 9, wherein the computing platform is a cloud computing platform having one or more tenants.
11. A processor; a memory coupled to the processor; the memory including instructions that, when executed by the processor, cause the processor to implement a neural flow attestation engine, the neural flow attestation engine comprising: inputting input data into a trained computer model, the trained computer model including multiple layers of neurons; recording, for a set of input data instances in the input data, an output class produced by the trained computer model and a neural flow through a plurality of layers of neurons, said recording producing a recorded neural flow, said output class being one of a plurality of possible output classes; deploying the trained computer model on a computing platform; and verifying the integrity of the deployed trained computer model based on the run-time neural flow of the deployed trained computer model and the recorded neural flow; A system configured to:
12. 1. A computer program for implementing a neural flow attestation engine, comprising: A computer program product for causing a processor to carry out the method according to any one of claims 1 to 10.
13. A memory storing a computer program according to claim 12.
Citation Information
Patent Citations
Digital Object Library Management System for Machine Learning Applications
JP2018514840A
Apparatus and Method for Validating a Computer Model
US20090132219A1
Using a neural network
WO2019076866A1
Privacy enhancing deep learning cloud service using a trusted execution environment
WO2020002210A1
