Adding adversarial robustness to trained machine learning models
By retraining and augmenting machine learning models with adversarial protection layers, the vulnerability to adversarial attacks is mitigated, ensuring reliable performance in security-critical applications.
Patent Information
- Application Number
- JP2022521116
- Authority / Receiving Office
- JP · JP
- Patent Type
- Patents
- Current Assignee / Owner
- Priority Date
- 2019-10-14
- Filing Date
- 2020-10-12
- Publication Date
- 2024-08-21
- Estimated Expiration
- 2040-10-12
AI Technical Summary
Deep learning models are susceptible to adversarial attacks, which can significantly compromise their performance in security-critical applications, and existing defenses are challenging to implement due to the lack of expertise and understanding of adversarial samples and attacks.
Enhance machine learning models by adding adversarial protection through retraining with adversarial examples, incorporating preprocessing and robustization layers, and post-processing output layers to improve resilience against adversarial inputs.
The enhanced models demonstrate improved robustness against adversarial attacks, enabling secure deployment in critical applications by maintaining accuracy and reliability.
Smart Images

Figure 0007537709000007 
Figure 0007537709000001 
Figure 0007537709000002
Abstract
Description
[Technical field]
[0001] The present invention relates generally to computing systems, and more particularly to various embodiments for adding adversarial robustness to trained machine learning models using a computing processor in a computing system. [Background technology]
[0002] The computing system may be at work, at home, or at school. Due to recent advances in information technology and the growing popularity of the Internet, a wide variety of computer systems have been used in machine learning. Machine learning is a type of artificial intelligence used to enable computers to develop behaviors based on empirical data. Machine learning can utilize training examples to capture features of interest of an underlying unknown probability distribution. Training data can be taken as examples that show the relationships between observed variables. The main focus of machine learning research is to automatically learn to recognize complex patterns and make intelligent decisions based on data. Thus, there is a need in the art to address the above-mentioned problems. Summary of the Invention
[0003] In view of a first aspect, the present invention provides a method for securing trained machine learning models in a computing environment by one or more processors, the method comprising providing one or more enhanced machine learning models secured against adversarial attacks by applying adversarial protection to the one or more trained machine learning models.
[0004] In view of a further aspect, the present invention provides a system for securing trained machine learning models in a computing environment, the system comprising one or more computers having executable instructions that, when executed, cause the system to provide one or more enhanced machine learning models secured against adversarial attacks by applying adversarial protection to the one or more trained machine learning models.
[0005] According to a further aspect, the present invention provides a computer program product for securing a trained machine learning model in a computing environment by one or more processors, the computer program product comprising a computer readable storage medium readable by the processing circuitry and storing instructions for execution by the processing circuitry for performing a method for performing steps of the present invention.
[0006] 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 said program is run on a computer.
[0007] In view of a further aspect, the present invention provides a computer program product for securing trained machine learning models in a computing environment by a processor, the computer program product comprising a non-transitory computer readable storage medium having stored thereon computer readable program code portions, the computer readable program code portions comprising an executable portion for providing one or more enhanced machine learning models secured against adversarial attacks by adding adversarial protection to the one or more trained machine learning models.
[0008] Various embodiments are provided for securing machine learning models trained by one or more processors in a computing system. In one embodiment, and by way of example only, a method is provided for adding adversarial robustness to machine learning models trained by a processor in a computing system. By adding adversarial protection to one or more trained machine learning models, the one or more enhanced machine learning models are secured against adversarial attacks.
[0009] In order that the advantages of the present invention may be readily understood, a more particular description of the invention briefly described above will be made by reference to specific embodiments which are illustrated in the accompanying drawings, the invention will be described and explained with additional specificity and detail through the use of the accompanying drawings, with the understanding that these drawings depict only typical embodiments of the invention and therefore should not be considered as limiting its scope, and in which: [Brief description of the drawings]
[0010] [Figure 1] FIG. 2 is a block diagram illustrating an exemplary cloud computing node according to one embodiment of the present invention. [Diagram 2] FIG. 13 is an additional block diagram illustrating an exemplary cloud computing environment in accordance with an embodiment of the present invention. [Diagram 3] FIG. 4 is an additional block diagram illustrating abstraction model layers according to an embodiment of the present invention. [Figure 4] FIG. 1 is a flow chart diagram illustrating an exemplary method for securing a trained machine learning model against an adversarial / adversarial system in a computing environment by a processor, in which aspects of the present invention may be implemented. [Diagram 5]FIG. 1 is a block diagram illustrating an exemplary system and functionality for securing a trained machine learning model against an adversarial / adversarial system in a computing environment by a processor, in accordance with another embodiment of the present invention, and in which aspects of the present invention can be implemented. [Figure 6] FIG. 13 is a block diagram illustrating additional exemplary systems and functionality for securing a trained machine learning model against an adversarial / adversarial system for images in a computing environment by a processor, in accordance with another embodiment of the present invention, and in which aspects of the present invention can be implemented. [Figure 7] FIG. 11 is a block diagram illustrating additional exemplary operations for securing a trained machine learning model against an adversarial / adversarial system in a computing environment by a processor, capable of implementing aspects of the present invention, in accordance with another embodiment of the present invention. [Figure 8] FIG. 1 is a flow chart diagram illustrating an exemplary method for securing a trained machine learning model against an adversary / adversarial system in a computing environment by a processor, in which aspects of the present invention may be implemented.
[0011] The present invention relates generally to the field of artificial intelligence ("AI"), such as machine learning and / or deep learning. Deep learning refers to a class of machine learning algorithms based on learning multiple levels of features or representations of a set of data. Current deep learning methods include using a cascade of multiple layers of non-linear processing units of feature extraction and transformation. Feature extraction refers to the process of receiving an initial set of measured data and building derived values (or features) to facilitate subsequent learning and generalization steps. Higher level features are often derived from lower level features, generating a hierarchical representation of the measured data and the derived features.
[0012] Furthermore, deep learning algorithms are based on distributed representations. Distributed representations operate under the assumption that observed (or measured) data is the result of the interaction of one or more elements organized in one or more layers. Conceptually, deep learning introduces the additional assumption that the layers of elements that interact to provide the measured data represent a level of abstraction or composition. Under this assumption, multiple layers and layer sizes correspond to different amounts of abstraction.
[0013] Overall, deep learning has brought about major advances in optimizing decision making and extracting business value from unstructured data, e.g., images, audio, video, and text. However, while deep learning achieves increased computational performance across a wide range of data types and tasks, several challenges, vulnerabilities and / or security issues exist for deep neural networks (DNNs). For example, DNNs are susceptible to adversarial attacks, where an adversary can completely change the behavior of the DNN by making small changes to the inputs. Furthermore, adversaries / adversarial systems (which may, e.g., conduct adversarial attacks) can also be mounted in the physical world, posing a real threat to the deployment of AI and deep learning, especially in security-critical applications, e.g., biometric authentication, cybersecurity, autonomous vehicles, robotics, etc.
[0014] Currently, due to the lack of adversarial robustness against adversarial samples in trained machine learning models, deploying machine learning models in mission-critical situations (e.g., business situations) is prohibited with weakened trust in AI systems. In one embodiment, "adversarial samples" may be synonymous with adversarial examples. Adversarial samples / examples may be inputs to machine learning models that are intentionally designed by an attacker / adversary to make the machine learning model make mistakes or produce errors. Although "white-box scenarios" provide defense against adversarial samples, defense against white-box attacks remains a challenge. Protection against adversarial threats requires a deep understanding of adversarial samples, attacks, and defenses, but only a small number of experts have the necessary knowledge and experience to apply such defenses. Therefore, protecting trained machine learning / deep learning models against adversarial samples is essential to ensure the safe deployment of AI and DL in real-world security-critical applications and, more broadly, to maintain trust in AI systems.
[0015] Accordingly, various embodiments are provided herein for securing trained machine learning models (e.g., neural network models and any machine learning models that can be trained using gradient-based optimization algorithms). In one embodiment, one or more enhanced machine learning models secured against adversarial attacks are provided by adding adversarial protection to one or more trained machine learning models.
[0016] In further aspects, by way of example only, one or more enhanced machine learning models secured against adversarial attacks are provided by adding adversarial protection to one or more trained machine learning models. The retrained machine learning model can be extended with a preprocessing layer to generate an extended machine learning model. If the machine learning model is a neural network, the present invention can add additional layers to the machine learning model and retrain the trained machine learning model to prevent accuracy loss due to the preprocessing layer. As used herein, a "trained learning model" can indicate that a model "M" has already been trained to a desired state. In one aspect, the model "M" can be extended by adding one or more additional layers such that the structure of model M indicates "M+K" (e.g., an extended machine learning model). The new model "M+K" then needs to be trained again, which is referred to herein as retraining.
[0017] One or more roll back strategies can be applied to maintain / keep some or all previous intermediate model states (e.g., model weights) (e.g., maintain / keep models M2, M4 and M6 instead of storing M1, M2, M3 or M5 or a combination thereof to save maintenance costs) and restore from the model state if training collapse is detected. Training a machine learning model "M" means that the state of model M can be changed through a loop. At the start, M is in state M1, the next iteration can be in state M2, and so on until the last iteration with Mn. The model can be expected to become more accurate / better through each iteration. Thus, the model state Mn can be the optimized / best one to use for prediction. Models M1, M2, ... Mn-1 can be called intermediate. However, in practice, it may not be known exactly how many iterations (i.e., "n") are required. For example, perhaps model M10 is ideal and optimal and stopping when "n" equals 10 may be desirable, but it is unknown whether the system may get worse by continuing training beyond M11. Therefore, it is desirable to maintain / retain some intermediate models only if they are better than the last model.
[0018] Further, a post-processing output layer can be added to the retrained augmented machine learning model, resulting in a protected machine learning model. One or more performance reports regarding the performance of the protected machine learning model on benign and adversarial samples (e.g., under black-box and / or white-box attacks) can be provided. The protected machine learning model can then be returned to a user of the system.
[0019] Thus, the present invention hardens previously trained machine learning models against adversarial challenges, enabling deployment of secure trained machine learning models, particularly in security-critical applications (e.g., healthcare, insurance, finance, etc.). In further embodiments, machine learning models can be hardened against an adversarial / adversarial system consisting of computers, CPUs, GPUs, servers, pre-processors, learners, and neural networks. It is noted that hardening of machine learning models can also be provided as a service in a cloud-based environment.
[0020] In further embodiments, and by way of example only, adversarial robustness can be added to a trained machine learning model by retraining the trained machine learning model. The invention can add post-processing capabilities to the trained machine learning model, or can add input pre-processing layers to the neural network and tune the defensive strength of the pre-processing layers, or both.
[0021] The present invention can extend the trained neural network with additional neural network layers. The present invention can prompt the user or system for input during optional steps of the protection process. Additionally, the present invention can identify machine learning model performance on safe examples, or on adversarial examples, or both. The performance of safe and / or adversarial examples can be reported / communicated back to a user or another computing system. The present invention can track intermediate states of a trained machine learning model during adversarial retraining, and can detect training collapse and enable rollback strategies.
[0022] It should be noted that the calculation(s) may be performed using various mathematical operations or functions that may involve one or more mathematical operations (e.g., performing rate of change / calculus operations, analytically or computationally solving differential or partial differential equations, using addition, subtraction, division, multiplication, standard deviation, average, mean, percentages, statistical modeling using statistical distributions, by finding minimum, maximum, or similar thresholds for combined variables, etc.).
[0023] Generally, as used herein, "optimization" may refer to or be defined as "maximizing," "minimizing," or achieving one or more specific objectives, objectives, goals, or intents, or both. Optimization may also refer to maximizing benefits to a user (e.g., maximizing the benefits of a machine learning model). Optimization may also refer to making the most efficient or functional use of a situation, opportunity, or resource.
[0024] Furthermore, "optimization" does not necessarily refer to the best solution or result, but may refer to a solution or result that is "good enough" for a particular application, for example. In some implementations, the objective is to suggest the "best" combination of pre-processing operations ("pre-processors") and / or machine learning models, but various factors may exist that may lead to suggesting alternative combinations of pre-processing operations ("pre-processors") and / or machine learning models that produce better results. As used herein, the term "optimization" may refer to such a result based on a minimum (or a maximum, depending on which parameters are considered in the optimization problem). In further aspects, the terms "optimization" and / or "optimizing" may refer to operations performed to achieve improved results, such as reduced execution costs or increased resource utilization, regardless of whether an optimal result is actually achieved. Similarly, the term "optimization" may refer to a component that performs such improvement operations, and the term "optimized" may be used to describe the results of such improvement operations.
[0025] Although this disclosure includes detailed descriptions of cloud computing, it is understood that implementation of the teachings described herein is not limited to a cloud computing environment. Rather, embodiments of the invention may be implemented in conjunction with any other type of computing environment not currently known or later developed.
[0026] Cloud computing is a model of service delivery for enabling convenient, on-demand network access to a shared pool of configurable computing resources (e.g., networks, network bandwidth, servers, processing, memory, storage, applications, virtual machines, and services) that can be rapidly provisioned and released with minimal administrative effort and interaction with a service provider. This cloud model may include at least five characteristics, at least three service models, and at least four deployment models.
[0027] The characteristics are as follows: On-Demand Self-Service: Cloud consumers can unilaterally provision computing capacity, such as server time and network storage, automatically on an as-needed basis, without the need for human interaction with the service provider. Broad Network Access: Capabilities are made available over the network and accessed through standard mechanisms that facilitate use by heterogeneous thin or thick client platforms (e.g., cell phones, laptops, and PDAs). Resource Pooling: In order to serve multiple consumers using a multi-tenant model, the provider's computing resources are pooled and different physical and virtual resources are dynamically allocated and reallocated according to demand. Location independence is significant in that the consumer typically has no control or knowledge over the exact location of the resources provided, but may be able to specify the location at a higher level of abstraction (e.g. country, state or data center). Rapid Elasticity: Capacity can be rapidly and elastically provisioned, in some cases automatically, to instantly scale out, and rapidly released to instantly scale in. To the consumer, the capacity available for provisioning often appears unlimited and can be purchased in any amount at any time. Measured Services: Cloud systems automatically control and optimize resource usage by leveraging metering capabilities at a level of abstraction appropriate to the type of service (e.g., storage, processing, bandwidth, active user accounts). Resource usage can be monitored, controlled and reported, providing transparency to both providers and consumers of utilized services.
[0028] The service model is as follows: Software as a Service (SaaS): The capability provided to the consumer is the ability to use the provider's applications running on a cloud infrastructure. The applications are accessible from a variety of client devices through thin client interfaces such as web browsers (e.g., web-based email). The consumer does not manage or control the underlying cloud infrastructure, including networks, servers, operating systems, storage, or even individual application capabilities, with the possible exception of limited user-specific application configuration settings. Platform as a Service (PaaS): The ability offered to a consumer is the ability to deploy applications that the consumer has created or acquired, generated using programming languages and tools supported by the provider, onto a cloud infrastructure. The consumer does not manage or control the underlying cloud infrastructure, including networks, servers, operating systems, or storage, but does have control over the deployed applications and, in some cases, the application hosting environment configuration. Infrastructure as a Service (IaaS): The ability offered to the consumer is the ability to provision processing, storage, network, and other basic computing resources onto which the consumer can deploy and run any software, which may include operating systems and applications. The consumer does not manage or control the underlying cloud infrastructure, but does have control over the operating systems, storage, deployed applications, and in some cases, limited control over select networking components (e.g., host firewalls).
[0029] The deployment model is as follows: Private Cloud: The cloud infrastructure is operated exclusively for an organization. The cloud infrastructure may be managed by the organization or a third party and may be on-premise or off-premise. Community Cloud: The cloud infrastructure is shared by multiple organizations to support a particular community with shared concerns (e.g., mission, security requirements, policy, and compliance considerations). The cloud infrastructure may be managed by the organizations or a third party and may reside on-premise or off-premise. Public Cloud: The cloud infrastructure is made available to the general public or large industry organizations and is owned by an organization that sells cloud services. Hybrid Cloud: The cloud infrastructure is a composite of two or more clouds (private, community, or public) that remain a unique entity but are joined by standardized or proprietary technologies that enable data and application portability (e.g., cloud bursting for load balancing between clouds).
[0030] Cloud computing environments are service-oriented with a focus on statelessness, low coupling, modularity, and semantic interoperability. At the heart of cloud computing is an infrastructure that includes a network of interconnected nodes.
[0031] 1, a schematic diagram of an example cloud computing node is shown. Cloud computing node 10 is merely one example of a suitable cloud computing node and is not intended to suggest any limitation as to the scope of use or functionality of the embodiments of the invention described herein. In any case, cloud computing node 10 is capable of implementing and / or performing any of the functions set forth above.
[0032] Within cloud computing node 10 is computer system / server 12, which is operable with numerous other general purpose or special purpose computing system environments or configurations. Examples of known computing systems, environments, or configurations, or combinations thereof, that may be suitable for use with computer system / server 12 include, but are not limited to, personal computer systems, server computer systems, thin clients, thick clients, handheld or laptop devices, multiprocessor systems, microprocessor-based systems, set-top boxes, programmable consumer electronics, network PCs, minicomputer systems, mainframe computer systems, distributed cloud computing environments that include any of the above systems or devices, and the like.
[0033] The computer system / server 12 may be described in the general context of computer system executable instructions, such as program modules, executed by a computer system. Generally, program modules may include routines, programs, objects, components, logic, data structures, etc. that perform particular tasks or implement particular abstract data types. The computer system / server 12 may also be practiced in a distributed cloud computing environment where tasks are performed by remote processing devices that are linked through a communications network. In a distributed cloud computing environment, program modules may be located in both local and remote computer system storage media, including memory storage devices.
[0034] 1, computer system / server 12 in cloud computing node 10 is shown in the form of a general purpose computing device. Components of computer system / server 12 may include, but are not limited to, one or more processors or processing units 16, a system memory 28, and a bus 18 that couples various system components including system memory 28 to processor 16.
[0035] Bus 18 represents one or more of any of several types of bus structures, including a memory bus or memory controller, a peripheral bus, a high-speed graphics port, and a processor or local bus using any of a variety of bus architectures, including, by way of example and not limitation, an Industry Standard Architecture (ISA) bus, a Micro Channel Architecture (MCA) bus, an Enhanced ISA (EISA) bus, a Video Electronics Standards Association (VESA) local bus, and a Peripheral Component Interconnect (PCI) bus.
[0036] Computer system / server 12 typically includes a variety of computer system readable media. Such media can be any available media that can be accessed by computer system / server 12 and includes both volatile and nonvolatile media, removable and non-removable media.
[0037] The system memory 28 may include computer system readable media in the form of volatile memory, such as random access memory (RAM) 30 and / or cache memory 32. The computer system / server 12 may further include other removable / non-removable volatile / non-volatile computer system storage media. By way of example only, a storage system 34 may be provided for reading from and writing to a non-removable non-volatile magnetic medium (not shown and typically referred to as a "hard drive"). Although not shown, a magnetic disk drive may be provided for reading from and writing to a removable non-volatile magnetic disk (e.g., a "floppy disk"), and an optical disk drive may be provided for reading from or writing to a removable non-volatile optical disk, such as a CD-ROM, DVD-ROM, or other optical medium. In such cases, each may be connected to the bus 18 by one or more data media interfaces. As further shown and described below, the system memory 28 may include at least one program product having a set (e.g., at least one) of program modules configured to perform the functions of an embodiment of the present invention.
[0038] A program / utility 40 having a set (at least one) of program modules 42 can be stored in the system memory 28, as can, for example and not limitation, an operating system, one or more application programs, other program modules, and program data. Each of the operating system, one or more application programs, other program modules, and program data, or any combination thereof, can include an implementation of a networking environment. The program modules 42 generally perform the functions and / or procedures of the embodiments of the invention described herein.
[0039] The computer system / server 12 may also communicate with one or more external devices 14, such as a keyboard, pointing device, display 24, one or more devices that allow a user to interact with the computer system / server 12, or any device (e.g., network card, modem, etc.) that allows the computer system / server 12 to communicate with one or more other computing devices, or a combination thereof. Such communication may occur via an input / output (I / O) interface 22. Additionally, the computer system / server 12 may communicate with one or more networks, such as a local area network (LAN), a general wide area network (WAN), or a public network (e.g., the Internet), or a combination thereof, via a network adapter 20. As shown, the network adapter 20 communicates with other components of the computer system / server 12 via a bus 18. It is understood that other hardware and / or software components, not shown, may be used in conjunction with the computer system / server 12. Examples include, but are not limited to, microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data archive storage systems.
[0040] Referring now to FIG. 2, an exemplary cloud computing environment 50 is shown. As shown, the cloud computing environment 50 includes one or more cloud computing nodes 10 with which local computing devices used by cloud consumers, such as a personal digital assistant (PDA) or cell phone 54A, a desktop computer 54B, a laptop computer 54C, or an automobile computer system 54N, or combinations thereof, may communicate. The nodes 10 may communicate with each other. They may be physically or virtually grouped in one or more networks, such as a private, community, public, or hybrid cloud, or combinations thereof, as described above (not shown). This allows the cloud computing environment 50 to offer infrastructure, platform, and / or software as a service without the cloud consumer having to maintain resources on the local computing device. The types of computing devices 54A-N shown in FIG. 2 are intended to be exemplary only, and it will be understood that the computing node 10 and cloud computing environment 50 can communicate with any type of computerized device via any type of network and / or network addressable connections (e.g., using a web browser).
[0041] Referring now to Figure 3, a set of functional abstraction layers provided by cloud computing environment 50 (Figure 2) is shown. It should be understood in advance that the components, layers, and functions shown in Figure 3 are intended to be merely exemplary, and that embodiments of the invention are not limited thereto. As shown, the following layers and corresponding functions are provided:
[0042] The device layer 55 includes physical and / or virtual devices, embedded and / or stand-alone electronic devices, sensors, actuators, and other objects to perform various tasks in the cloud computing environment 50. Each of the devices in the device layer 55 may incorporate networking capabilities to other functional abstraction layers, such that information obtained from the device may be provided to other abstraction layers, and / or information from other abstraction layers may be provided to the device. In one embodiment, the various devices that comprise the device layer 55 may incorporate a network of entities collectively known as the "Internet of Things" (IoT). Such a network of entities may enable intercommunication, collection, and dissemination of data to accomplish a wide variety of purposes, as will be appreciated by those skilled in the art.
[0043] The illustrated device layer 55, as shown, includes sensors 52, actuators 53, a "learning" thermostat 56 with integrated processing, sensor, and networking electronics, a camera 57, a controllable household outlet 58, and a controllable light switch 59. Other possible devices may include, without limitation, various additional sensor devices, networking devices, electronic devices (such as remote control devices), additional actuator devices, so-called "smart" appliances such as refrigerators or washer / dryers, and a wide variety of other possible interconnected objects.
[0044] Hardware and software layer 60 includes hardware and software components. Examples of hardware components include mainframes 61, RISC (reduced instruction set computing), architecture based servers 62, servers 63, blade servers 64, storage devices 65, and networks and networking components 66. In some embodiments, software components include network application server software 67 and database software 68.
[0045] The virtualization layer 70 provides an abstraction layer at which the following examples of virtual entities may be provided: virtual servers 71, virtual storage 72, virtual networks including virtual private networks 73, virtual applications and operating systems 74, and virtual clients 75.
[0046] In one example, the management layer 80 may provide the functions described below. Resource provisioning 81 provides dynamic procurement of computing and other resources utilized to execute tasks within the cloud computing environment. Metering and pricing 82 provides cost tracking as resources are utilized within the cloud computing environment and provides billing or charging for the consumption of these resources. In one example, these resources may include application software licenses. Security provides identity verification for cloud consumers and tasks as well as protection for data and other resources. User portal 83 provides consumers and system administrators with access to the cloud computing environment. Service level management 84 provides cloud computing resource allocation and management such that requested service levels are met. Service level agreement (SLA) planning and fulfillment 85 provides pre-positioning and procurement of cloud computing resources where future requirements are anticipated according to SLAs.
[0047] The workload layer 90 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 91, software development and lifecycle management 92, virtual classroom instructional delivery 93, data analytics processing 94, transaction processing 95, and, in the context of the illustrated embodiment of the present invention, various workloads and functions for securing trained machine learning models against adversarial / adversarial systems in a cloud computing environment 96. In addition, various workloads and functions for securing trained machine learning models against adversarial / adversarial systems in a cloud computing environment 96 may include operations such as analytics, deep learning, and user and device management functions as will be further described. Those skilled in the art will appreciate that the workloads and functions 96 for securing trained machine learning models against adversarial / adversarial systems in a cloud computing environment may also function in conjunction with other portions of various abstraction layers, such as those in hardware and software 60, virtualization 70, management 80, and other workloads 90 (e.g., data analytics processing 94, etc.) to achieve various objectives of the illustrated embodiment of the present invention.
[0048] As described above, the present invention provides a novel solution for providing enhanced machine learning models secured against adversarial challenges in a computing system, by applying one or more of a combination of one or more machine learning models, a dataset used to enhance the one or more machine learning models, a list of preprocessors, and a selected preprocessing operation from a selected number of learners, the one or more enhanced machine learning models secured against adversarial challenges are provided.
[0049] 4, a method 400 for securing a trained machine learning model against an adversary / adversarial system is shown using a processor capable of implementing various aspects of the illustrated embodiment. The function 400 can be implemented as a method executed as instructions on a machine, where the instructions are included in at least one computer-readable medium or one non-transitory machine-readable storage medium. It should be noted that one or more of the following operations / steps may or may not be applied / selected (e.g., a user may select which steps are used). The function 400 can begin at block 402.
[0050] As in block 401, a trained machine learning model may be received and / or input data may be requested. That is, a user or a computing system may provide a trained machine learning model, or a machine learning model may be received. Also, a request from a user regarding which type of protection to apply may be received, or in an alternative operation, function 400 may automatically select one or more protections to apply.
[0051] As in block 402, one or more of the trained machine learning models may be adversarially retrained. That is, function 400 may retrain the trained neural network using one or more adversarial protocols, such as Madry's protocol, modified with additional adversarial measures, such as by gradually increasing the ratio of adversarial samples in each mini-batch (e.g., according to a cosine schedule or the like for a percentage of the data used in each iteration, or a "percentage of data" if there may only be "mini-batches"). This retraining step may change all or only a subset of the model's weights. In one embodiment, "adversarially retraining" means that the machine learning model may be retrained with adversarial examples and training data. The adversarial examples are generated by the owner of the machine learning model, rather than by a true adversary (e.g., the machine learning model is "vaccinated" against future adversarial attacks due to the adversarial retraining). Once a machine learning model is trained with given adversarial examples, if the machine learning model is attacked by these adversarial examples in the future, the machine learning model will not make mistakes or be induced to make errors.
[0052] As in block 403, one or more preprocessing layers can be added and / or calibrated. In one embodiment, adding preprocessing operations to the trained machine learning model and calibrating the trained machine learning model (e.g., adjusting the strength of JPEG compression, the variance of Gaussian noise, etc.) improves the tradeoff between safe and adversarial testing accuracy.
[0053] As in block 404, one or more robustification layers may be added. In one embodiment, "robustification layers" indicates that one or more layers are added to the trained machine learning model to make and / or enable the trained machine learning model more robust and guarded against future adversarial attacks. In one embodiment, one or more neural network layers (e.g., convolutional, dense, etc.) may be added to enhance and robustify the retrained machine learning model (e.g., retrained neural network). For example, it is noted that the operations of block 404 may be specific to a neural network model.
[0054] As in block 405, the retrained machine learning model may be subjected to adversarial retraining (e.g., retrained with adversarial examples and training data). In one embodiment, one or more of the machine learning model parameters of the augmented machine learning model (e.g., following the Madry protocol) may be updated to generate an adversarially protected machine learning model. In one embodiment, an "augmented machine learning model" refers to adding additional layers to a current machine learning model, such as from machine learning models M through M+K. Even if machine learning model M has already been trained, now the trained knowledge does not perform well with the additional layers, thus making it necessary to retrain a new machine learning model "M+K".
[0055] The adversarially protected machine learning model can be returned to the user or system (e.g., deployed to production as in block 406) and, optionally, provide information regarding adversarial robustness performance information (e.g., test performance on safe and adversarial examples under, for example, projected gradient descent ("PGD")(n,ε), white-box attacks, fast gradient sign method ("FGSM")(ε) transfer attacks, and zero-order optimization ("ZOO")-based black-box attacks, minimum l∞-norm perturbation required to change classification, etc.).
[0056] Referring now to FIG. 5, a block diagram of an exemplary system 500 and functions for securing trained machine learning models against adversarial / adversarial systems for images in a computing environment.
[0057] In one embodiment, one or more of the components, modules, services, applications, or functions described in Figures 1-4 or combinations thereof may be used in Figure 5. As shown, various blocks of functionality are depicted to illustrate process flow, with arrows designating the relationship of the blocks of system 500 to one another. In addition, descriptive information relating each of the functional blocks of system 500 is also shown. As can be seen, many of the functional blocks may also be considered functional "modules" in the same descriptive sense as previously shown in Figure 4. With the above in mind, the modular blocks of system 500 may also be incorporated into various hardware and software components of a system for image enhancement according to the present invention. Many of the functional blocks 500 may be executed as background processes on various components, in a distributed computing environment, or on a user device, or elsewhere.
[0058] As shown, system 500 includes a protected neural network 510 (e.g., an enhanced machine learning model system) that may be included in and / or external to cloud computing node 10 and / or computing system 12 of FIG. 1 .
[0059] The protected neural network 510 may include performing an adversarial retraining operation in a first stage (e.g., “Stage 1”) and performing an adversarial retraining operation in a second stage (e.g., “Stage 2”).
[0060] As in block 507, the protected neural network 510 may receive as input data one or more images (e.g., “input images”). As in block 503, the protected neural network 500 may add input pre-processing layers to modify the input images (in block 507), such as, for example, JPEG compression, Gaussian noise and spatial smoothing, feature refinement, etc.
[0061] As in block 501, a trained neural network (e.g., a convolutional neural network “CNN”, long short-term memory “LSTM”, etc.) may be provided by a user or may be created by an automated system (e.g., via an automated neural network model). As shown in block 502, in a first stage, a protected neural network 510 may adversarially retrain the trained neural network, such as by following the protocol of Madry using a projected gradient descent white-box attack with infinity-norm (“I@y∞@z-norm” or uniform-norm) constraints on the adversarial examples, using a gradual increase in adversarial examples according to a cosine schedule.
[0062] As in block 504, one or more additional neural network layers may also be added after the trained model (e.g., a dense layer, a convolutional layer, etc.). As in block 505, a second adversarial retraining operation (e.g., adversarial retraining stage 2) may be performed (similar to block 502). The protected neural network 510 may add an output post-processing layer to generate a non-monotonic non-differentiable transformation of the output probabilities. As in block 508, the protected neural network 500 may provide a retrained machine learning model prediction (e.g., a neural network prediction (e.g., classification, regression, etc.)).
[0063] Referring now to Figure 6, a block diagram illustrates an exemplary system for securing machine learning models trained against adversarial / adversarial systems for text data in a computing environment. In one aspect, one or more of the components, modules, services, applications, or functions, or combinations thereof, described in Figures 1-5 may be used in Figure 6. Repeated descriptions of similar steps / blocks, elements, components, modules, services, applications, or functions, or combinations thereof, used in other embodiments described herein are omitted for brevity.
[0064] As shown, system 600 includes a protected neural network 610 (e.g., an enhanced machine learning model system) that may be included in and / or external to cloud computing node 10 and / or computing system 12 of FIG. 1 .
[0065] The protected neural network 610 may include performing an adversarial retraining operation in a first stage (e.g., “Stage 1”) and performing an adversarial retraining operation in a second stage (e.g., “Stage 2”).
[0066] As in block 607, the protected neural network 610 may receive text data (e.g., “text” such as, for example, short message service) as input data (e.g., “input image”). As in block 603, the protected neural network 610 may add input pre-processing layers and text embeddings. For example, in block 607, the protected neural network 610 may add spell checking operations as potential input pre-processing defenses for adversarial robustness / protection, such as to defeat attacks at the character level, under-casing, stemming, lemma interpretation, stop word removal, normalization, noise removal, text refinement / enhancement, etc. Also, text embeddings may be added to convert the text data to numerical data, such as by using pre-trained word embeddings (e.g., global vectors for word representations “GloVe” and / or Word2Vec, etc.).
[0067] As in block 601, a trained neural network (e.g., a convolutional neural network "CNN", a long short-term memory "LSTM", etc.) can be provided by a user or can be created by an automated system.
[0068] As in block 602, in a first stage, the protected neural network 610 may adversarially retrain the trained neural network. For example, the protected neural network 610 may perform adversarial retraining of the trained neural network by following Miyato's protocol by using fast gradient methods, adversarially training the samples with the I@y2@z norm ε, and before outputting, possibly adding additional hidden layers modified by additional measures such as gradually increasing the ratio of adversarial samples in each mini-batch (e.g., according to a cosine schedule on the ratio, etc.).
[0069] As in block 604, one or more additional neural network layers may also be added after the trained model (e.g., a dense layer, a convolutional layer, etc.). As in block 605, a second adversarial retraining operation (e.g., adversarial retraining stage 2) may be performed (similar to block 602). The protected neural network 610 may add an output post-processing layer to generate a non-monotonic non-differentiable transformation of the output probabilities. As in block 608, the protected neural network 610 may provide a retrained machine learning model prediction (e.g., a neural network prediction (e.g., classification, regression, etc.)).
[0070] Referring now to Figure 7, a block diagram illustrates an exemplary system for securing / protecting machine learning models trained against adversarial / adversarial systems on text data in a computing environment. In one aspect, one or more of the components, modules, services, applications, or functions, or combinations thereof, described in Figures 1-6 may be used in Figure 7. Repeated descriptions of similar steps / blocks, elements, components, modules, services, applications, or functions, or combinations thereof, used in other embodiments described herein are omitted for the sake of brevity.
[0071] As shown, system 700 includes a protected neural network 710 (e.g., an enhanced machine learning model system) that may be included in and / or external to cloud computing node 10 and / or computing system 12 of FIG. 1 .
[0072] As in block 705, the protected neural network 710 may receive input data. As in block 703, the protected neural network 710 may add an input pre-processing layer to modify the input data. For example, in block 707, the protected neural network 107 may modify the input data with compression, Gaussian noise, smoothing, or feature refinement, or a combination thereof, etc.
[0073] As in block 701, a trained machine learning model (e.g., a support vector machine "SVM", etc.) may be provided by a user or may be created by an automated system.
[0074] As in block 702, the protected neural network 710 may adversarially retrain the trained neural network (e.g., “adversarial retraining”). For example, the protected neural network 710 may use a fast gradient method to 2 One can adversarially retrain the trained neural network by adversarially training the samples with norm ε, possibly adding additional hidden layers before the output, possibly modified by an additional measure, e.g., gradually increasing the proportion of adversarial samples in each mini-batch (e.g., according to a cosine schedule on the proportion).
[0075] As in block 704, one or more additional neural network layers may also be added after the trained model. That is, the protected neural network 710 may add an output post-processing layer to generate a non-monotonic non-differentiable transformation of the output probabilities. As in block 706, the protected neural network 710 may provide re-trained machine learning model predictions (e.g., neural network predictions (e.g., classification, regression, etc.)).
[0076] 8, a processor capable of implementing various aspects of the illustrated embodiments may be used to implement a method 800 for learning input pre-processing to strengthen machine learning models against adversaries. The function 800 may be implemented as a method executed as instructions on a machine, where the instructions are contained on at least one computer-readable medium or one non-transitory machine-readable storage medium. The function 800 may begin at block 802.
[0077] As at block 804, one or more trained machine learning models may be received. As at block 806, one or more trained machine learning models may be retrained to include adversarial protection based on one or more adversarial protection protocols. As at block 808, adding adversarial protection to the one or more trained machine learning models provides one or more enhanced machine learning models secured against adversarial attacks. As at block 810, function 800 may end.
[0078] In one embodiment, in conjunction with or as part of at least one block of Figure 8, or both, the operations of 800 may include each of the following: The operations of 800 may receive one or more trained machine learning models and retrain the one or more trained machine learning models to include adversarial protection based on one or more adversarial protection protocols.
[0079] The operations of 800 may add one or more pre-processing layers to the one or more trained machine learning models, where the degree of adversarial protection strength is adjusted, may add one or more neural network layers to the one or more trained machine learning models, or may add one or more post-processing output layers to the one or more trained machine learning models that have been retrained with adversarial protection based on one or more adversarial protection protocols, or any combination thereof.
[0080] The operations of 800 may automatically implement one or more adversarial protection protocols used to provide one or more enhanced machine learning models, or may receive from a user one or more adversarial protocols used to provide one or more enhanced machine learning models, or both.
[0081] The operations of 800 may monitor and track each state of the one or more trained machine learning models while they are being retrained, may detect a training collapse for the one or more trained machine learning models during retraining, may enable one or more roll back strategies for the one or more trained machine learning models during retraining, or combinations thereof. The operations of 800 may determine a security score for the one or more enhanced machine learning models indicative of a level of security from adversarial attacks.
[0082] The invention may be a system, a computer implemented method, and / or a computer program product, which may include a computer readable storage medium having computer readable program instructions for causing a processor to perform aspects of the invention.
[0083] A computer readable storage medium may be a tangible device capable of holding and storing instructions for use by an instruction execution device. A computer readable storage medium may be, for example, but not limited to, an electronic storage device, a magnetic storage device, an optical storage device, an electromagnetic storage device, a semiconductor storage device, or any suitable combination of the above. A non-exhaustive list of more specific examples of computer readable storage media includes the following: portable computer diskettes, hard disks, random access 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 sticks, floppy disks, mechanically encoded devices such as punch cards or ridge structures in grooves in which instructions are recorded, and any suitable combination of the above. As used herein, a computer-readable storage medium should not be construed as a transitory signal per se, such as electric waves or other freely propagating electromagnetic waves, electromagnetic waves propagating through a waveguide or other transmission medium (e.g., light pulses through a fiber optic cable), or electrical signals transmitted over wires.
[0084] The computer readable program instructions described herein may be downloaded from a computer readable storage medium to the respective computing / processing device or to an external computer or storage device via a network, such as the Internet, a local area network, a wide area network, or a wireless network, or a combination thereof. The network may include copper transmission cables, optical transmission fiber, wireless transmission, routers, firewalls, switches, gateway computers, and / or edge servers. A network adapter card or network interface in each computing / processing device receives the computer readable program instructions from the network and transfers the computer readable program instructions to a computer readable storage medium within the respective computing / processing device for storage.
[0085] The computer readable program instructions for carrying out the operations of the present invention may be assembler instructions, instruction set architecture (ISA) instructions, machine instructions, machine dependent instructions, microcode, firmware instructions, state setting data, or source or object code written in any combination of one or more programming languages, including object oriented programming languages such as Smalltalk, C++, and conventional procedural programming languages such as the "C" programming language or similar programming languages. The computer readable program instructions may be executed entirely on the user's computer as a stand-alone software package, partially on the user's computer, partially on the user's computer and partially on a remote computer, or entirely on a computer or server. In the latter case, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or the connection may be to an external computer (e.g., through the Internet using an Internet Service Provider). In some embodiments, electronic circuitry including, for example, a programmable logic circuit, a field programmable gate array (FPGA), or a programmable logic array (PLA), may execute computer readable program instructions by utilizing state information of the computer readable program instructions to personalize the electronic circuitry to carry out aspects of the invention.
[0086] 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.
[0087] 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 performing the functions / operations specified in one or more blocks of the flowcharts and / or block diagrams. These computer readable program instructions may be stored on a computer readable medium such that the computer readable storage medium on which the instructions are stored comprises an article of manufacture including instructions for performing aspects of the functions / operations specified in one or more blocks of the flowcharts and / or block diagrams, and may direct a computer, programmable data processing apparatus, or other device, or combination thereof, to function in a particular manner.
[0088] The computer readable program instructions may be loaded into a computer, other programmable data processing apparatus, or other device to create a computer-implemented process that causes a series of operational steps to be performed on the computer, other programmable apparatus, or other device, such that the instructions, which execute on the computer, other programmable apparatus, or other device, perform the functions / acts specified in one or more blocks of the flowcharts and / or block diagrams.
[0089] 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. It should be noted that each block in the flowcharts or block diagrams may represent a module, segment, or portion of instructions, including one or more executable instructions for implementing the specified logical function. In some alternative implementations, the functions noted in the blocks may occur in a different order than that noted in the figures. For example, two blocks shown in succession may in fact be executed substantially simultaneously, or the blocks may be executed in reverse order, depending on the functionality involved. It should also be noted that each block in the block diagrams and / or flowchart illustrations, and combinations of blocks in the block diagrams and / or flowchart illustrations, may be implemented by a dedicated hardware-based system that performs the specified functions or operations or a combination of dedicated hardware and computer instructions.
Claims
1. 1. A method for securing a trained machine learning model in a computing environment by one or more processors, the method comprising: Providing one or more enhanced machine learning models secured against adversarial attacks by adding adversarial protection to one or more trained machine learning models wherein the one or more enhanced machine learning models are generated by iteratively retraining the one or more trained machine learning models with an iteratively increased proportion of adversarial samples.
2. The method of claim 1, wherein the retraining is performed according to a protocol using a projected gradient descent white-box attack with an infinity-norm constraint on the adversarial samples, and the proportion is the proportion of the adversarial samples in each mini-batch and is increased according to a cosine schedule during each retraining iteration.
3. 3. The method of claim 1 or 2, further comprising adding one or more preprocessing layers to the one or more trained machine learning models, wherein a degree of strength of the adversarial protection of the one or more preprocessing layers is adjusted.
4. The method of claim 1 , further comprising adding one or more neural network layers to the one or more trained machine learning models.
5. 5. The method of claim 1, further comprising: adding one or more post-processing output layers to the one or more trained machine learning models, the one or more trained machine learning models being retrained with the adversarial protection based on one or more adversarial protection protocols.
6. automatically implementing one or more adversarial protection protocols used to provide the one or more enhanced machine learning models; or receiving from a user one or more adversarial protection protocols used to provide the one or more enhanced machine learning models; The method of claim 1 , further comprising:
7. Monitoring and tracking a state of each of the one or more trained machine learning models while they are being retrained. detecting a training collapse for the one or more trained machine learning models during the retraining; or enabling one or more roll back strategies for the one or more trained machine learning models during a retraining operation; The method of any one of claims 1 to 6, further comprising:
8. 1. A system for securing a trained machine learning model in a computing environment, comprising: one or more computers having executable instructions that, when executed, cause the system to:
1. A system comprising: providing one or more enhanced machine learning models secured against adversarial attacks by adding adversarial protection to one or more trained machine learning models, the one or more enhanced machine learning models being generated by iteratively retraining the one or more trained machine learning models with an iteratively increased proportion of adversarial samples.
9. The system of claim 8, wherein the retraining is performed according to a protocol using a projected gradient descent white-box attack with an infinity-norm constraint on the adversarial examples, and the proportion is the proportion of the adversarial examples in each mini-batch and is increased according to a cosine schedule during each retraining iteration.
10. 10. The system of claim 8 or 9, wherein the executable instructions add one or more preprocessing layers to the one or more trained machine learning models, and a degree of strength of the adversarial protection of the one or more preprocessing layers is adjusted.
11. 11. The system of claim 8, wherein the executable instructions add one or more neural network layers to the one or more trained machine learning models.
12. 12. The system of claim 8, wherein the executable instructions add one or more post-processing output layers to the one or more trained machine learning models, and the one or more trained machine learning models are retrained with the adversarial protection based on one or more adversarial protection protocols.
13. The executable instructions include: automatically implementing one or more adversarial protection protocols used to provide the one or more enhanced machine learning models; or 13. The system of claim 8, further comprising: receiving from a user one or more adversarial protection protocols used to provide the one or more enhanced machine learning models.
14. The executable instructions include: monitoring and tracking a state of each of the one or more trained machine learning models while they are being retrained; or detect a training collapse for the one or more trained machine learning models during the retraining; or 14. The system of claim 8, further comprising: a retraining operation that enables one or more roll back strategies for the one or more trained machine learning models.
15. A computer program product for causing a computer to carry out the steps of the method according to any one of claims 1 to 7.
16. 16. A computer readable medium having recorded thereon the computer program of claim 15.
Citation Information
Patent Citations
Learning system applying neural network
JP1996339360A
Configuration method for neural network
JP2000181893A
Newcastle disease virus infectious clones, vaccines and diagnostic assays
JP2006141398A
Protecting cognitive systems from gradient based attacks through the use of deceiving gradients
WO2019087033A1
