The following disclosure(s) are submitted under 35 U.S.C. 102(b)(1)(A):
N. Joseph Tatro, Pin-Yu Chen, Payel Das, Igor Melnyk, Prasanna Sattigeri, Rongjie Lai, Optimizing Loss Landscape Connectivity via Neuron Alignment, 25 Sep. 2019 version 1, ICLR 2020 Conference Blind Submission.
N. Joseph Tatro, Pin-Yu Chen, Payel Das, Igor Melnyk, Prasanna Sattigeri, Rongjie Lai, Optimizing Loss Landscape Connectivity via Neuron Alignment, 24 Dec. 2019 version 2, ICLR 2020 Conference Blind Submission.
The present invention relates to the electrical, electronic and computer arts, and more specifically, to artificial intelligence (AI) and the like.
The loss landscapes of deep neural networks are not well understood due to their high nonconvexity. Empirically, the local minima of these loss functions can be connected by a learned curve in model space, along which the loss remains nearly constant; a feature known as mode connectivity. However, current path finding algorithms do not consider the influence of symmetry in the loss surface created by model weight permutations.
Principles of the invention provide techniques for efficient search of robust accurate neural networks. In one aspect, an exemplary method includes obtaining, with at least one hardware processor, data specifying: two trained neural network models; and alignment data; with the at least one hardware processor, carrying out neuron alignment on the two trained neural network models using the alignment data to obtain two aligned models; with the at least one hardware processor, training a minimal loss curve between the two aligned models; and with the at least one hardware processor, selecting a new model along the minimal loss curve that maximizes accuracy on adversarially perturbed data.
In another aspect, an exemplary apparatus includes a memory; a non-transitory computer readable medium including computer executable instructions; and at least one processor, coupled to the memory and the non-transitory computer readable medium, and operative to execute the instructions to be operative to obtain data specifying: two trained neural network models; and alignment data; carry out neuron alignment on the two trained neural network models using the alignment data to obtain two aligned models; train a minimal loss curve between the two aligned models; and select a new model along the minimal loss curve that maximizes accuracy on adversarially perturbed data.
As used herein, “facilitating” an action includes performing the action, making the action easier, helping to carry the action out, or causing the action to be performed. Thus, by way of example and not limitation, instructions executing on one processor might facilitate an action carried out by instructions executing on a remote processor, by sending appropriate data or commands to cause or aid the action to be performed. For the avoidance of doubt, where an actor facilitates an action by other than performing the action, the action is nevertheless performed by some entity or combination of entities.
One or more embodiments of the invention or elements thereof can be implemented in the form of a computer program product including a computer readable storage medium with computer usable program code for performing the method steps indicated. Furthermore, one or more embodiments of the invention or elements thereof can be implemented in the form of a system (or apparatus) including a memory, and at least one processor that is coupled to the memory and operative to perform exemplary method steps. Yet further, in another aspect, one or more embodiments of the invention or elements thereof can be implemented in the form of means for carrying out one or more of the method steps described herein; the means can include (i) hardware module(s), (ii) software module(s) stored in a computer readable storage medium (or multiple such media) and implemented on a hardware processor, or (iii) a combination of (i) and (ii); any of (i)-(iii) implement the specific techniques set forth herein.
Techniques of the present invention can provide substantial beneficial technical effects. For example, one or more embodiments provide one or more of:
enhanced speed, as compared to naïve hyperparameter-tuning, in learning the optimal robust model, thus improving the performance of a computer implementing an artificial intelligence system by reducing the number of CPU cycles compared to the prior art;
improved performance of computer-implemented artificial intelligence systems (enhanced robustness while maintaining accuracy on clean data) with manageable cost;
method and system for efficient search of robust accurate neural networks that is scalable and cost-effective, and provides comprehensive robustness improvement;
improved accuracy in selecting an adversarially robust model from an aligned curve connecting robust models;
increased robustness in the model selected from the aligned curve;
increased speed, compared to hyperparameter-tuning, in learning the optimal robust model, and with improved robustness accuracy trade-off;
ability to align two neural networks;
ability to aggregate different models on a curve to improve performance.
These and other features and advantages of the present invention will become apparent from the following detailed description of illustrative embodiments thereof, which is to be read in connection with the accompanying drawings.
51C, 52A, 52B, 52C, 53A, 53B, 53C, 54A, 54B, 54C, 55A, 55B, 55C, 56A, 56B, 56C, 57A, 57B, 57C, 58A, 58B, 58C, 59A, 59B, 59C, 60A, 60B, and 60C show exemplary results.
It is understood in advance that although this disclosure includes a detailed description on cloud computing, implementation of the teachings recited herein are not limited to a cloud computing environment. Rather, embodiments of the present invention are capable of being implemented in conjunction with any other type of computing environment now known or later developed.
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 management effort or interaction with a provider of the service. This cloud model may include at least five characteristics, at least three service models, and at least four deployment models.
Characteristics are as Follows:
On-demand self-service: a cloud consumer can unilaterally provision computing capabilities, such as server time and network storage, as needed automatically without requiring human interaction with the service's provider.
Broad network access: capabilities are available over a network and accessed through standard mechanisms that promote use by heterogeneous thin or thick client platforms (e.g., mobile phones, laptops, and PDAs).
Resource pooling: the provider's computing resources are pooled to serve multiple consumers using a multi-tenant model, with different physical and virtual resources dynamically assigned and reassigned according to demand. There is a sense of location independence in that the consumer generally has no control or knowledge over the exact location of the provided resources but may be able to specify location at a higher level of abstraction (e.g., country, state, or datacenter).
Rapid elasticity: capabilities can be rapidly and elastically provisioned, in some cases automatically, to quickly scale out and rapidly released to quickly scale in. To the consumer, the capabilities available for provisioning often appear to be unlimited and can be purchased in any quantity at any time.
Measured service: cloud systems automatically control and optimize resource use by leveraging a metering capability at some level of abstraction appropriate to the type of service (e.g., storage, processing, bandwidth, and active user accounts). Resource usage can be monitored, controlled, and reported providing transparency for both the provider and consumer of the utilized service.
Service Models are as Follows:
Software as a Service (SaaS): the capability provided to the consumer is to use the provider's applications running on a cloud infrastructure. The applications are accessible from various client devices through a thin client interface such as a web browser (e.g., web-based email). The consumer does not manage or control the underlying cloud infrastructure including network, 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 capability provided to the consumer is to deploy onto the cloud infrastructure consumer-created or acquired applications created using programming languages and tools supported by the provider. The consumer does not manage or control the underlying cloud infrastructure including networks, servers, operating systems, or storage, but has control over the deployed applications and possibly application hosting environment configurations.
Infrastructure as a Service (IaaS): the capability provided to the consumer is to provision processing, storage, networks, and other fundamental computing resources where the consumer is able to deploy and run arbitrary software, which can include operating systems and applications. The consumer does not manage or control the underlying cloud infrastructure but has control over operating systems, storage, deployed applications, and possibly limited control of select networking components (e.g., host firewalls).
Deployment Models are as Follows:
Private cloud: the cloud infrastructure is operated solely for an organization. It may be managed by the organization or a third party and may exist on-premises or off-premises.
Community cloud: the cloud infrastructure is shared by several organizations and supports a specific community that has shared concerns (e.g., mission, security requirements, policy, and compliance considerations). It may be managed by the organizations or a third party and may exist on-premises or off-premises.
Public cloud: the cloud infrastructure is made available to the general public or a large industry group and is owned by an organization selling cloud services.
Hybrid cloud: the cloud infrastructure is a composition of two or more clouds (private, community, or public) that remain unique entities but are bound together by standardized or proprietary technology that enables data and application portability (e.g., cloud bursting for load balancing between clouds).
A cloud computing environment is service oriented with a focus on statelessness, low coupling, modularity, and semantic interoperability. At the heart of cloud computing is an infrastructure comprising a network of interconnected nodes.
Referring now to
Referring now to
Hardware and software layer 60 includes hardware and software components. Examples of hardware components include: mainframes 61; RISC (Reduced Instruction Set Computer) 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.
Virtualization layer 70 provides an abstraction layer from which the following examples of virtual entities may be provided: virtual servers 71; virtual storage 72; virtual networks 73, including virtual private networks; virtual applications and operating systems 74; and virtual clients 75.
In one example, management layer 80 may provide the functions described below. Resource provisioning 81 provides dynamic procurement of computing resources and other resources that are utilized to perform tasks within the cloud computing environment. Metering and Pricing 82 provide cost tracking as resources are utilized within the cloud computing environment, and billing or invoicing for 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 access to the cloud computing environment for consumers and system administrators. Service level management 84 provides cloud computing resource allocation and management such that required service levels are met. Service Level Agreement (SLA) planning and fulfillment 85 provide pre-arrangement for, and procurement of, cloud computing resources for which a future requirement is anticipated in accordance with an SLA.
Workloads layer 90 provides examples of functionality for which the cloud computing environment may be utilized. Examples of workloads and functions which may be provided from this layer include: mapping and navigation 91; software development and lifecycle management 92; virtual classroom education delivery 93; data analytics processing 94; transaction processing 95; and a cloud-based service 96 (or one or more elements thereof) to facilitate efficient search of robust accurate neural networks.
Aspects of the invention advantageously make artificial intelligence (AI) more trustworthy/robust. AI models are often accurate but not robust; i.e. they work well on “legitimate” data but can be easily manipulated by an adversary, causing the recognition to go wrong. One or more embodiments enhance robustness against malicious attack, effectively enhancing model robustness to new and adversarial environments. The training is advantageously scalable, effective, and computationally efficient, and supports two endeavors: (i) the utility (standard accuracy) on the clean data is not compromised; and (ii) the robustness (accuracy under attack) on perturbed data samples is maximized.
There are a number of challenges in finding models that are simultaneously robust and accurate, including the tradeoff between robustness and accuracy. There exists a best-performance model but it is not currently known how to search for it efficiently. One or more embodiments leverage mode connectivity of neural networks for efficient search. A first challenge is that determining the hyperparameters for learning the optimal adversarially robust model is expensive. The state of the art for learning robust models is adversarial training. Adversarial training is more expensive than traditional training of the network. A naïve approach to training the most optimal model is hyperparameter search. This search scales linearly and quickly becomes prohibitively expensive. A second challenge is that there is a tradeoff between robustness and accuracy in the training of robust models. Adversarial training minimizes robust loss; that is, the loss associated with training data that has been compromised by adversarial attacks. Then, the accuracy on the clean training data is not directly being optimized, and adversarial training may fail to learn a model of comparable robustness with higher accuracy.
Current mode connectivity solutions seek to find a path of models between two trained networks, but do not address robust model search and/or consider weight symmetry. Current adversarial training approaches typically suffer from a large drop in standard accuracy, with an undesirable robustness-accuracy tradeoff. As for current approaches to connecting adversarially robust models, without resolving weight ambiguity, it is not feasible to find better models. Thus, the current state of art includes adversarial training but it must trade accuracy for robustness and the training itself is very expensive and current techniques are not scalable. It is necessary to carefully choose a significant number of hyperparameters to find the desired model. Mode connectivity addresses how models of similar performance are related in a geometric sense. There is actually a path connecting different models of similar performance. Searching in the space of ALL models would be very difficult; however, in accordance with one or more embodiments, if it is known that there are some path(s) connecting the good models, these paths can be found and searching can be concentrated on those paths in order to find good models.
One or more embodiments address these challenges by leveraging the mode connectivity of neural networks, providing more robust models via aligned mode connectivity (BRMAMC). Examine the geometric properties of neural network models and use these properties to carry out an efficient search for a robust and accurate model, simultaneously improving both robustness and accuracy. Knowledge of the paths connecting good models allows embodiments of the invention to be efficient. There have been previous attempts to do mode connection and adversarial training at the same time. However, without use of embodiments of the invention, these have been unsuccessful.
Referring to
The curves in
One or more embodiments align the independently trained networks before connecting them (by maximizing the correlation of activation maps). BRMAMC provides a curve of fully trained robust models for the cost of training three robust models. With neuron alignment, these models are seen to generalize as well as individually trained models. On non-trivial datasets, such as CIFAR100, we have found that a model can be found that is both more accurate and robust along the curve than either of the endpoints.
Still referring to
In one or more embodiments, the training objective is curve finding up to symmetry. In one or more embodiments, BRMAMC includes neuron alignment, plus curve finding, plus model selection. One or more embodiments use a neuron alignment technique for solving permutations, wherein the model weights are permuted so that hidden states of two models are maximally correlated. In curve finding, learn a parameterized curve on the loss surface along which average loss is minimized. In model selection, evaluate models along the curve and select the most robust model. Refer to equations (5) and (6) below.
Referring to
Referring to Algorithm 1 in
Still referring to Algorithm 1 in
Referring to Algorithm 2 in
Referring to the table of
One or more embodiments thus advantageously provide a method and system for efficient search of robust accurate neural networks that is scalable and cost-effective, and provides comprehensive robustness improvement; improved accuracy in selecting an adversarially robust model from an aligned curve connecting robust models; and increased robustness in the model selected from the aligned curve. One or more embodiments are faster, compared to hyperparameter-tuning, in learning the optimal robust model, and provide improved robustness accuracy trade-off. Advantageously, one or more embodiments are faster, as compared to naïve hyperparameter-tuning, in learning the optimal robust model, thus improving the performance of the computer implementing an artificial intelligence system by reducing the number of CPU cycles compared to the prior art.
As noted, the loss landscapes of deep neural networks are not well understood due to their high nonconvexity. Empirically, the local minima of these loss functions can be connected by a learned curve in model space, along which the loss remains nearly constant; a feature known as mode connectivity. However, current path finding algorithms do not consider the influence of symmetry in the loss surface created by model weight permutations. One or more embodiments advantageously provide a framework to investigate the effect of symmetry on landscape connectivity by directly optimizing the weight permutations of the networks being connected. To learn a locally optimal permutation, one or more embodiments include both a proximal alternating minimization scheme with some convergence guarantees as well as an inexpensive heuristic referred to as neuron alignment. Empirically, optimizing the weight permutation is pertinent for efficiently learning a simple, planar, low-loss curve between networks that successfully generalizes. Surprisingly, an alignment method according to one or more embodiments can significantly alleviate the recently identified robust loss barrier on the path connecting two adversarial robust models and find more robust and accurate models on the path.
Loss surfaces of neural networks have been of recent interest in the deep learning community both from a numerical and a theoretical perspective. Their optimization yields interesting examples of a high-dimensional non-convex problem, where counterintuitively gradient descent methods successfully converge to non-spurious minima. Practically, recent advancements in several applications have used insights on loss surfaces to justify their approaches. For instance, investigations have been made regarding regularizing the curvature of the loss surface to increase the robustness of trained models.
One interesting question about these non-convex loss surfaces is to what extent trained models, which correspond to local minima, are connected. Here, connection denotes the existence of a path between the models, parameterized by their weights, along which loss is nearly constant. There has been conjecture that such models are connected asymptotically, with respect to the width of hidden layers. Recently, this has been proven for rectified networks with one hidden layer.
When considering the connection between two neural networks, it is pertinent to consider what properties of the neural networks are intrinsic. Intuitively, there is a permutation ambiguity in the indexing of units in a given hidden layer of a neural network, and as a result, this ambiguity extends to the network weights themselves. Thus, there are numerous equivalent points in model space that correspond to a given neural network. This creates weight symmetry in the loss landscape. It is possible that the minimal loss paths between a network and all networks equivalent to a second network could be quite different. If the best path among this set is not considered, there might be a failure to see to what extent models are intrinsically connected. Advantageously, one or more embodiments provide a technique for more consistent model interpolation/optimal connection finding by investigating the effect of weight symmetry in the loss landscape. The analyses and results provide insight into the geometry of level sets of the loss surfaces of deep networks that are often hard to study theoretically.
One or more embodiments provide techniques to formalize this problem, and apply a proximal alternating minimization (PAM) scheme to split the problem into iteratively optimizing the permutation of the second model weights and optimizing the curve parameters. Convergence of this scheme to a local critical point is proven for feed-forward neural networks which are piece-wise analytic functions and continuously differentiable. Furthermore, considering known neuron alignment techniques and the aforementioned PAM framework, one or more embodiments provide a heuristic for approximating the optimal permutation for learning aligned curves connecting networks up to weight symmetry. Even further, experimental results are provided for three datasets and four architectures affirming that more optimal curves can be learned faster with neuron alignment. We have found that this aligned permutation is close to a locally optimal permutation that PAM converges to under the same initialization. For learned curves connecting adversarial robust models, we have found that the robust loss barrier can be greatly reduced with alignment, making it possible to find more accurate robust models on the path.
Consider approaches for loss optima connectivity and neuron alignment.
Loss Optima Connectivity. To learn the minimal loss path connecting two N-dimensional neural networks, θ1 and θ2, the curve finding approach introduced in Garipov, T., Izmailov, P., Podoprikhin, D., Vetrov, D. P., and Wilson, A. G., Loss surfaces, mode connectivity, and fast ensembling of dnns, in Advances in Neural Information Processing Systems, pp. 8789-8798, 2018, can be employed, for example. Search for the path, r: [0; 1]→RN, that connects the two models while minimizing the average of the loss function, along the path. This problem is formalized in equation (1):
For tractability, r* can be approximated by a parameterized curve rφ, where φ denotes the curve parameters. For instance, as described below, one or more embodiments employ the quadratic Bezier curve. Computationally, an arclength parameterization, that is ∥r′(t)∥=1 for all t, is assumed to make optimization more computationally feasible. If the endpoint networks are global minima and a flat loss path exists, then the optimal objective of equation (1) is unchanged. Algorithm 2 discussed below addresses how to solve this optimization problem computationally. For clarity, rφ denotes the curve on the loss surface between two networks while rφ(t) is a point on that curve which is a neural network.
Neuron Alignment. The skilled artisan will be familiar with the neuron alignment framework from, for example, Li, Y., Yosinski, J., Clune, J., Lipson, H., and Hoperoft, J. E., Convergent learning: Do different neural networks learn the same representations, in ICLR 2016. Given input d drawn from the input data distribution D, let Xl,i,:(1)(d)∈k, represent the activation values of channel i in layer l of network θ1, where k is the number of units in the channel. As an example, a channel could correspond to one unit in a hidden state or one filter output by a convolutional layer, where k would be l or the number of pixels in the filter respectively.
Given networks, θ1 and θ2, define the channel-wise mean for θ1 in equation (2), with standard deviation defined analogously. Also define the cross-correlation matrix, Cl(1,2), denoting the cross-correlation between each channel in θ1 and θ2 in layer l.
To align the activations in layer l between networks θ1 and θ2, the neuron alignment algorithm maximizes the sum of cross-correlation between aligned activations. Equivalently, this finds the permutation, Pl, that maximizes the trace of PlTCl,:,:(1,2), which is an instance of the linear assignment problem. This optimization model is formalized in equation (3) below, where Kl represents the index set of activations in layer l. The skilled artisan will have a background familiarity with the assignment problem, from, for example, Burkard, R. E. and Cela, E., Linear assignment problems and extensions, in Handbook of combinatorial optimization, pp. 75-149, Springer, 1999.
The alignment technique is visualized in
Connectivity with Weight Symmetry. Consider the idea of weight symmetry in a neural network. θ1 this a neural network on the loss surface parameterized by its weights. A permutation Pl is in Π|Kl|, the set of permutations on Kl, the index set of channels in layer l. For simplicity consider an L layer feed-forward network with activation function σ, weights {Wl}l=1L, and input X0. Then the weight permutation ambiguity becomes clear when the following set of permutations are introduced to the feedforward equation:
Y:=W
L
P
L-1
T
∘σ∘P
L-1
W
L-1
P
L-2
T
∘ . . . ∘σ∘P
1
W
1
X
0 (4)
Then, define the network weight permutation P as the block diagonal matrix, blockdiag(P1, P2, . . . , PL-1). Additionally, Pθ denotes the network parameterized by the weights [P1W1, P2W2P1T, WLPL-1T]. Note that permutations P0 and PL are omitted, as the input and output channels of neural networks have a fixed ordering, so they correspond to the identity I. Without much difficulty this framework generalizes for more complicated architectures. This is discussed below for residual networks.
Curve Finding up to Symmetry. From equation (4), it becomes clear that the networks θ1 and Pθ2 share the same structure and intermediate outputs up to indexing. Taking weight symmetry into account, the optimal curve can be found connecting two networks up to symmetry with the model in equation (5).
Proximal Alternating Minimization as A Framework. A framework is introduced to solve the generalized problem in equation (5). Theoretically, this problem is fairly complicated and hard to analyze. Numerically, approaching the problem directly with first order methods could be computationally intensive as it will typically be required to store gradients of φ and P simultaneously. The problem can be more easily addressed using the method of proximal alternating minimization (PAM). The PAM scheme involves iteratively solving the two subproblems in equation (6). Here, let Q(φ, P) denote the objective function in equation (5). In a non-limiting example, only consider parameterized forms of r that satisfy the endpoint constraints for all φ and P.
Computing the unaligned curve is equivalent to solving the PAM scheme with a very small value of vP. In fact, it is possible to prove local convergence results for a certain class of networks.
Theorem (convergence): Let {φk+1, Pk+1} be the sequence produced by equation (6). Assume that rφ(t) corresponds to a feed-forward neural network with activation function a for t∈[0, 1]. Assume that rφ, and σ are all piece-wise analytic functions in C1 and locally Lipschitz differentiable in φ and P. Lastly, assume that the input data is bounded and the norm of the network weights are constrained to be bounded above. Then the following statements hold:
A proof of the above is provided below.
Neuron Alignment as An Initialization. In spite of convergence guarantees, PAM still typically requires a good initialization as the loss landscape is nonconvex. This is pertinent for avoiding convergence to non-global optima. Conceptually, neuron alignment is able to match subsets of similar feature representations. Thus, it is believed that the permutation on the network weights induced by neuron alignment can be meaningful enough to provide a good initialization of P.
In one or more embodiments, solve the linear sum assignment problem formulated in equation (3) using the Hungarian algorithm. Algorithm 1 in
Experiments
Datasets. We trained neural networks to classify images from CIFAR10 and CIFAR100, as well as STL10. The default training and test set splits are used for each dataset. The loss function is the cross-entropy loss on the SoftMax of the logits output by the networks. 20% of the images in the training set are used for computing alignments between pairs of models. The data was augmented using color normalization, random horizontal flips, random rotation, and random cropping to prevent models from overfitting.
Architectures Four different model architectures were used. The table of
All models used as curve endpoints were trained using stochastic gradient descent. In our experiments, we set a learning rate of 1E-1 that decays by a factor of 0.5 every 20 epochs. Weight decay of 5E-4 was used for regularization. Each model was trained for 250 epochs, and all models were seen to converge. This training scheme produced models of comparable accuracy to those in related literature, so we omitted fine-tuning hyperparameters. Models were trained on NVIDIA Tesla K80 GPUs.
Quadratic Bezier curves. All curves were parameterized as quadratic Bezier curves. Bezier curves are popular in computer graphics as they can be defined by their control points. The current study refers to endpoint models as θ1 and θ2 as well as the control point, θc. Then r is defined in equation (7) with θc as the learnable parameter in φ.
r
ϕ(t)=(1−t)2θ1+2(1−t)tθc+t2θ2 (7)
Training Curves. For each architecture, train 12, 6, and 6 different models using different random initializations for CIFAR10, CIFAR100, and STL10 respectively. Thus, there are 6 or 3 independent model pairs for a dataset. Learn four classes of curves that are solutions to:
Unaligned: algorithm 2 (see
PAM Unaligned: equation (6) for θ1 and θ2 with P(0)=I
PAM Aligned: equation (6) for θ1 and θ2 with P(0)=PAl
Aligned: algorithm 2 for θ1 and PAlθ2 where PAl denotes the permutation learned by neuron alignment (algorithm 1).
PAM curves were learned for all architectures except VGG16, as its size made this computationally prohibitive. Two sets of each curve class were trained. One set involves the curves learned when the random seed for curve finding is fixed for all model pairs. The other set includes the curves learned when the random seed is different for each model pair. We have found that the learned curves for different seeds are similar up to re-indexing the endpoints. For
Neuron Alignment
The effects of using neuron alignment as a heuristic for curve finding up to symmetry were investigated. That is, determine some weight permutation PAl and then find the curve between networks θ1 and PAlθ2. The unaligned and aligned curves were both trained for 200 epochs using stochastic gradient descent with an annealing learning rate. The training of these curves shares the same hyperparameters as the training of the individual models.
The test accuracy can be seen for each dataset and curve class in the table of
The test loss and accuracy along the learned curves for CIFAR100 are shown in
Practically, the neuron alignment heuristic for determining the permutation P may be enough and avoids more complicated optimization. Note the relative flatness of the accuracy along the aligned curves in
Further insight into why neuron alignment works is provided below, considering how the alignment is preserved along the learned curve. Results show that (1) the midpoints of the unaligned curves are highly aligned to each endpoint, even though the endpoints themselves are weakly aligned at best; and (2) Curve finding is essentially smoothly interpolating similar feature representations. Sensibly, neuron alignment of the endpoints makes this task easier.
Proximal Alternating Minimization. Proximal alternating minimization provides a comprehensive formulation for learning the weight permutation P directly, coupled with some convergence guarantees. We have found that curves learned using PAM perform better than the unaligned curves as seen in the table of
To learn each PAM curve, perform four iterations of PAM. The permutation subproblem entails 20 epochs of projected stochastic gradient descent to the set of doubly stochastic matrices. This is done as the set of doubly stochastic matrices is the convex relaxation of the set of permutations. This projection is accomplished through twenty iterations of alternating projection of the updated permutation to the set of nonnegative matrices and the set of matrices with row and column sum of one. After the twenty epochs of PGD, each layer permutation is projected to the set of permutations, Π|Kl|. The curve parameter subproblem, which optimizes θc from equation (8), entails 40 epochs of SGD. The same hyperparameters are used as in training the endpoint models. The learning rates are annealed with each iteration of PAM. This training can be seen for CIFAR100 in
New Findings for Mode Connectivity of Adversarial Robust Models
We have observed that aligning the features of two networks provides a benefit when learning a low loss curve connecting these networks. A recent topic of interest in the machine learning community has been learning robust models that can withstand adversarial attacks. As such, it was considered whether inventive results extend to robust models. Specifically, Projected Gradient Descent (PGD) attacks were considered. This is an evasion style attack that adds optimized l∞ bounded noise to an image to degrade accuracy. Security to evasion style attacks is important as they can be conducted without access to model parameters. Moreover, adversarial attacks can be used during model training to improve adversarial robustness, a method known as adversarial training. Herein the cross-entropy loss on the original samples and samples perturbed via PGD attacks are referred to as clean loss and robust loss respectively.
Alignment greatly reduces the robust loss barrier.
For the robust curve learned between two unaligned robust models, barriers were encountered both in clean accuracy and robust accuracy. As in
Aligned curves can find more accurate robust models. Neuron alignment seems successful at finding a curve between robust models along which models maintain their robustness to PGD attacks without sacrificing clean accuracy. Results provide evidence that the presence of a large robust loss barrier between robust can mostly be attributed as an artifact of symmetry in the loss landscape resulting from the network weights.
For CIFAR100, alignment enables finding a more accurate model without sacrificing robust accuracy, which provides new insight towards overcoming the issue of robustness accuracy tradeoff in adversarial robustness. Consider the midpoint on the ResNet32 aligned curve in
It will be appreciated that one or more embodiments generalize the curve finding problem by removing the weight symmetry ambiguity associated with the endpoint models. The optimal permutation of these weights can be approximated using neuron alignment. We have found empirically that this approximation performs comparably to a proximal alternating scheme with the same initialization that learns a locally optimal permutation. Additionally, this PAM scheme has some convergence guarantees. Neuron alignment can be used to successfully and efficiently learn optimal connections between neural nets. Addressing the ambiguity of weight symmetry is pertinent for learning planar curves on the loss surface along which accuracy is mostly constant. Results hold true over a range of datasets and network architectures. With neuron alignment, these curves can be trained in fewer epochs and to higher accuracy. Surprisingly, with alignment we have also found that robust models are in fact connected on the loss surface and curve finding serves as a technique to identify more accurate robust models.
One or more embodiments use network alignment to find more accurate and robust models. One or more embodiments do not involve detection. One or more embodiments do not require consideration of missing features to improve robustness.
In the curve finding algorithm of
For the following proofs, first establish and more rigorously define some terminology. For clarity, the parameterized curve connecting networks under some permutation P that has been written as rq(t) will now sometimes be referred to as r(t; φ, P).
Feed-forward neural networks. Consider feed-forward neural networks. Let X0∈Rm0×d be the input to the neural network, d samples of dimension m0. Then let Wi∈Rmi×mi−1 denote the network weights mapping from layer l−1 to layer l. Additionally, a denotes the pointwise activation function. Express the output of a feed-forward neural network, Y, as:
Y:=W
L
σ∘W
L-1
σ∘W
L-2
. . . σ∘W
1
X
0 (9)
To include biases, {bi}i=1L, simply convert to homogeneous coordinates:
In all proofs, these terms are interchangeable.
Huberized ReLU. The commonly used ReLU function is defined as σ(t):=max(0, t). However, this function is not in C1 and hence not locally Lipschitz differentiable. This makes conducting analysis with this function difficult. Thus, approach studying it through the lens of the Huberized ReLU function, defined as:
It is clear that σδ is a C1 approximation of σ such that σδ∥∞=δ Using Huberized forms of loss functions for analysis is a fairly common technique (e.g. Huberized support vector machines).
Kurdyka-Lojasiewicz property. The function f is said to have the Kurdyka-Lojasiewicz (KL) property at
ψ′(ƒ(x)−ƒ(
Here ∂f denotes the subdifferential of f Informally, a function that satisfies this inequality is one whose range can be re-parameterized such that a kink occurs at its minimum. More intuitively, if ψ has the form, s1-θ with θ in (0, 1), and f is differentiable on (0, v), then the inequality reduces to:
Semialgebraic function. A subset of Rn is semialgebraic if it can be written as a finite union of sets of the form:
{x∈n:pi(x)=0,qi(x)<0,i={1,2, . . . ,p}} (14)
where pi and qi are real polynomial functions. A function f: Rn→R∪{+∞} is said to be semialgebraic if its graph is a semialgebraic subset of Rn+1.
Subanalytic function. Globally subanalytic sets are sets that can be obtained through finite intersections and finite unions of sets of the form {(x, t)∈[−1, 1]n×R: f(x)=t} where f: [−1, 1]n→R is an analytic function that can be extended analytically on a neighborhood of the interval [−1; 1]n. A function is subanalytic if its graph is a globally subanalytic set.
Proof of convergence theorem: To prove this, show that the problem meets the conditions required for local convergence of proximal alternating minimization (PAM) described in Attouch, H., Bolte, J., Redont, P., and Soubeyran, A., Proximal alternating minimization and projection methods for nonconvex problems: An approach based on the Kurdyka-Lojasiewicz inequality, Mathematics of Operations Research, 35(2):438-457, 2010. This requires the following: 1. Each term in the objective function containing only one primal variable is bounded below and lower semi-continuous; 2. Each term in the objective function which contains both variables is in C1 and is locally Lipschitz differentiable; and 3. The objective function satisfies the Kurdyka-Lojasiewicz (KL) property. First, reformulate the problem so that it becomes unconstrained. Let χ denote the indicator function, where:
This problem contains two hard constraints. First, each permutation matrix, Pl, must clearly be restricted to the set of permutation matrices of size |Kl|, Π|Kl|. Additionally, it is assumed that the norm of the weights are bounded above. Without loss of generality, let KW denote an upper bound valid for all the weights. Denote the set of weights that satisfy the norm constraint as {A:∥A∥22≤KW}. Then equation (5) with added regularization is equivalent to:
Now address each requirement for local convergence. From equation (14), see that the sum of indicator functions are bounded below and lower semi-continuous. Now consider the form of the function, Q(φ, P). It has been defined as:
∫t=01(r(t;ϕ,P))dt
Note that r(t; φ, P) corresponds to a feed-forward neural network. Then Q can be expressed as:
∫t=01(WL(t;ϕ,P)σ∘WL-1(t;ϕ,P) . . . σ∘W1(t;ϕ,P)X0)dt (16)
with weight matrices Wi and activation function σ. It becomes clear that for Q(φ, P) to be in C1 and locally Lipschitz differentiable, the same must be true for σ, and {Wi}i=1L. The first two are true as they are assumptions of the theorem. Since, rφ is in C1 and locally Lipschitz differentiable in the primal variables, then this is also true for all Wi. Thus, Q(φ, P) is in C1 and locally Lipschitz differentiable.
To satisfy the KL property, the objective function should be a tame function as per the above-mentioned Attouch paper. Rigorously, this means that the graph of the function belongs to an o-minimal structure, a concept from algebraic geometry.
Note that Q(φ, P) is piece-wise analytic. This is because Q is a composition of piece-wise analytic functions, σ, and rφ. Additionally, because the input data is bounded and the norm of the weight matrices are bounded, it follows that the domain of Q is bounded. Since, Q is a piece-wise analytic function with bounded domain, it follows that Q is a subanalytic function. The boundedness of the domain is an important detail here. This is because analytic functions are not necessarily subanalytic unless their domain is bounded; a popular example of such a function is the exponential function.
Now, consider the constraints associated with this problem, which have been re-expressed as indicator functions in the objective. The set of permutation matrices, Π|Kl|, is finite and thus it is clearly a semi-algebraic set. Notice that the set of weight matrices satisfying the norm bound is equivalent to {A: ∥A∥22−KW<0}. The function that defines this set is a polynomial, so it is a semi-algebraic set. Indicator functions on semi-algebraic sets are semialgebraic functions. Thus, the indicator functions in the objective are semi-algebraic.
The graphs of semi-algebraic functions and subanalytic functions both belong to the logarithmic-exponential structure, an o-minimal structure. A basic algebraic property of o-minimal structures is that the graphs of addition and multiplication are also elements of the structure. Since the objective function is a linear combination of semialgebraic functions and subanalytic functions, it follows that the graph of the objective function is an element of the logarithmic-exponential structure. Therefore, the objective function is a tame function and it satisfies the KL property.
Considering Rectified Networks. The convergence theorem does not extend to the class of rectified networks. However, consider constructing a sequence of iterates {φk, Pk} such that the objective value, t˜U[(r(t; ϕk, Pk))], is monotonic decreasing. The following theorem will introduce a technique for constructing such a sequence.
Lemma C.1 (restricted to possible network outputs is Lipschitz continuous). For a feed-forward neural network, assume that is continuous and that the neural network input, X0, is bounded. Additionally, assume that the spectral norm of all weights, {Wi}i=1L, is bounded above by KW, and the activation function, σ, is continuous with ∥σ∥≤1. Let SY denote the set of Y where:
Y=W
L
σ∘W
L-1
σ∘W
L-2
. . . σ∘W
1
X
0
such that
∥Wi∥2≤KW∀i∈{1,2, . . . ,L} (17)
Then restricted to the set SY is Lipschitz continuous with some Lipschitz constant K.
Proof. Since X0 is bounded, it follows that there exists some constant KX such that ∥X0∥≤KX. Since, the spectral norm of W1 is bounded above by KW, it is easy to see that ∥W1X0∥<KWKX. Now since the pointwise activation function is a non-expansive map, it immediately follows that ∥Γ∘W1X0∥≤KWKX. Following this process inductively, see that the network output, Y, is bounded and that:
∥Y∥≤KWLKX (18)
Since Y is arbitrary, it follows that this is a bound for SY. Then we can restrict to the ball in RmL×d of radius KWLKX. This ball is compact and is continuous, so it follows that restricted to this ball is Lipschitz continuous. Thus, there exists some Lipschitz constant K. Clearly, SY is contained in this ball. Therefore, is Lipschitz continuous on the set of all possible network outputs with Lipschitz constant K.
Let θ1 and θ2 be feed-forward neural networks with ReLU activation function. Assume that and rφ are piece-wise analytic functions in C1 and locally Lipschitz differentiable. Assume that the maximum network width at any layer is M units. Additionally, assume that the network weights have a spectral norm bounded above by KW, and that this is a hard constraint when training the networks. Finally, any point on rφ must be equivalent to an affine combination of neural networks (Bezier curves, polygonal chains, etc.) satisfying the previously stated spectral norm bound.
Create the parameterized curve rδ(t; φ, P) by substituting the Huberized ReLU function, σδ, into all ReLU functions in r(t; φ, P). Refer to the objective values associated with these curves as Qδ(φ, P) and Q(φ, P) respectively.
Theorem C.2 (Monotonic Decreasing Sequence for Rectified Networks). For a feed-forward network, assume the above assumptions have been met. Additionally, assume that X0 is bounded, so that restricted to the set of possible network outputs is Lipschitz continuous with Lipschitz constant KL by Lemma C.1. Now generate the sequence {φk, Pk} by solving equation (6) for rδ(t; φ, P). On this sequence impose the additional stopping criteria that:
Then, the sequence of curves r(t; φk, Pk) connecting rectified networks has monotonic decreasing objective value.
Proof. First, we consider the approximation error from replacing σ with σδ. It is straightforward to see that:
Then it follows that for any input x,
Since the spectral norm of Wi are bounded above by KW, see that:
Now notice that:
∥σ∘W2σ∘W1x−σδ∘W2σδ∘W1x∥≤∥σ∘W2σ∘W1x−σ∘W2σδ∘W1x∥+∥σ∘W2σδ∘W1x−σδ∘W2σδ∘W1x∥.
Since the ReLU function is a non-expansive map, it must be that the first term is bounded above by the previous error,
The second term corresponds once again to the error associated with the Huberized form of the ReLU function,
Thus, the total error can be bounded by
Following this inductively, it can be seen that this error grows geometrically with the number of layers. Additionally, the loss function is Lipschitz continuous when restricted to the set of possible network outputs. So, we find the following bounds:
Since any point on the curve is an affine combination of networks with the Kw bound on the spectral norm of their weights, it immediately follows this spectral norm bound also holds for the weights for any point on the curve. Then ∥Q(ϕ,P)−Qδ(ϕ,P)∥ is also bounded above by the bound in equation (21).
Then let {φk, Pk} be the sequence generated by solving equation (6) using the curve rδ. σδ is a piece-wise analytic function in C1 and is locally Lipschitz differentiable. Additionally, the spectral norm constraint on the weights is semi-algebraic and bounded below, so the convergence theorem can be applied. It then follows that:
Thus, r(t; φk, Pk) is a sequence of curves, connecting rectified networks, with monotonic decreasing objective value as long as:
Since the above equation is a stopping criterion introduced in the theorem statement, it follows that a sequence of curves has been constructed, connecting rectified networks, with monotonic decreasing objective value.
Residual Network Alignment. Algorithm 1 applies to networks with a typical feed-forward structure. Now, consider how to compute alignments for the ResNet32 architecture as it is more complicated. It is important to align networks such that the network structure is preserved and network activations are not altered. In the context of residual networks, special consideration must be given to skip connections.
Consider the formulation of a basic skip connection:
X
k+1=σ∘(Wk+1Xk)+Xk−1 (23)
In this equation, see that Xk+1 and Xk−1 share the same indexing of their units. This becomes clear when you consider permuting the hidden units in Xk−1 without permuting the hidden units of Xk+1. It is impossible to do so without breaking the structure of the equation above, where there is essentially the use of an identity mapping from Xk−1 to Xk+1.
Consider a traditional residual network that is decomposed into residual blocks. In each block the even layers have skip connections while the odd layers do not. So, compute the alignment as usual for odd layers. For all even layers within a given residual block, determine a shared alignment. Do this by solving the assignment problem for the average of the cross-correlation matrix over the even layers in that residual block.
Alignment Along Curves. Clearly, alignment is a useful method for learning better flat loss curves between models. An interesting question is how curve finding itself relates to alignment. Until now, consideration was only given to the alignment between the endpoint models, r(0) and r(1). Now, consider how points along the curve, r(t), align to the endpoints. To study this numerically, use the curve midpoint r(0.5). From
Correlation Signature. Consider how the correlation signature changes along the curve.
There are several observations to be made about
Concerning the linear midpoint, the correlation at the linear midpoint decays to 0 when endpoints are unaligned as the network goes deeper. When endpoints are aligned, the correlation signature at the linear midpoint is similar to the correlation signature at the curve midpoint. Since these linear connections between the endpoints are the initializations for the curve finding algorithm, this gives some intuition on how alignment works to give a better initialization.
Given the discussion thus far, it will be appreciated that, in general terms, an exemplary method, according to an aspect of the invention, includes (see step 801 in
The method just described can be carried out, for example, using software on a general purpose computer. Some embodiments can be partially or completely implemented in the cloud. Some embodiments can make use of one or more hardware accelerators. Some embodiments can employ, for example, a pre-processing module (for obtaining the data), an alignment module (for carrying out neuron alignment), and a loss curve analysis module (for training and selecting). The alignment module can include software (with optional hardware acceleration) to implement the output and nested FOR loops of Algorithm 1 in
One or more embodiments further include implementing the new model on a computer (e.g. 10, 12 in
In a non-limiting example, the artificial intelligence application comprises computer vision, and a further step includes controlling at least one of a vehicle and a tool with the new model based at least in part on adversarial input. For example, referring to
In one or more embodiments, carrying out of neuron alignment comprises: with the at least one hardware processor, computing correlations between hidden states of the two trained neural network models; and, with the at least one hardware processor, permuting (refer to P in
Referring to iterative model search in
In a non-limiting example, training the minimal loss curve comprises applying stochastic gradient descent. As will be appreciated by the skilled artisan, for memory reasons, stochastic gradient descent is often used in AI applications as opposed to full gradient descent (which could of course be used if desired). Refer to
In another aspect, an exemplary apparatus includes a memory (e.g. 30); a non-transitory computer readable medium (e.g. 34) including computer executable instructions; and at least one processor 16, coupled to the memory and the non-transitory computer readable medium, and operative to execute the instructions to be operative to carry out any one, some, or all of the method steps described herein. The non-transitory computer readable medium can include, for example, the pre-processing module (for obtaining the data), the alignment module (for carrying out neuron alignment), and the loss curve analysis module (for training and selecting).
One or more embodiments of the invention, or elements thereof, can be implemented in the form of an apparatus including a memory and at least one processor that is coupled to the memory and operative to perform exemplary method steps.
In cloud computing node 10 there is a computer system/server 12, which is operational with numerous other general purpose or special purpose computing system environments or configurations. Examples of well-known computing systems, environments, and/or configurations 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, and distributed cloud computing environments that include any of the above systems or devices, and the like.
Computer system/server 12 may be described in the general context of computer system executable instructions, such as program modules, being executed by a computer system. Generally, program modules may include routines, programs, objects, components, logic, data structures, and so on that perform particular tasks or implement particular abstract data types. Computer system/server 12 may be practiced in distributed cloud computing environments 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.
As shown in
Bus 18 represents one or more of any of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, and a processor or local bus using any of a variety of bus architectures. By way of example, and not limitation, such architectures include Industry Standard Architecture (ISA) bus, Micro Channel Architecture (MCA) bus, Enhanced ISA (EISA) bus, Video Electronics Standards Association (VESA) local bus, and Peripheral Component Interconnect (PCI) bus.
Computer system/server 12 typically includes a variety of computer system readable media. Such media may be any available media that is accessible by computer system/server 12, and it includes both volatile and non-volatile media, removable and non-removable media.
System memory 28 can include computer system readable media in the form of volatile memory, such as random access memory (RAM) 30 and/or cache memory 32. Computer system/server 12 may further include other removable/non-removable, volatile/non-volatile computer system storage media. By way of example only, storage system 34 can be provided for reading from and writing to a non-removable, non-volatile magnetic media (not shown and typically called a “hard drive”). Although not shown, a magnetic disk drive for reading from and writing to a removable, non-volatile magnetic disk (e.g., a “floppy disk”), and an optical disk drive for reading from or writing to a removable, non-volatile optical disk such as a CD-ROM, DVD-ROM or other optical media can be provided. In such instances, each can be connected to bus 18 by one or more data media interfaces. As will be further depicted and described below, memory 28 may include at least one program product having a set (e.g., at least one) of program modules that are configured to carry out the functions of embodiments of the invention.
Program/utility 40, having a set (at least one) of program modules 42, may be stored in memory 28 by way of example, and not limitation, as well as 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 some combination thereof, may include an implementation of a networking environment. Program modules 42 generally carry out the functions and/or methodologies of embodiments of the invention as described herein.
Computer system/server 12 may also communicate with one or more external devices 14 such as a keyboard, a pointing device, a display 24, etc.; one or more devices that enable a user to interact with computer system/server 12; and/or any devices (e.g., network card, modem, etc.) that enable computer system/server 12 to communicate with one or more other computing devices. Such communication can occur via Input/Output (I/O) interfaces 22. Still yet, computer system/server 12 can communicate with one or more networks such as a local area network (LAN), a general wide area network (WAN), and/or a public network (e.g., the Internet) via network adapter 20. As depicted, network adapter 20 communicates with the other components of computer system/server 12 via bus 18. It should be understood that although not shown, other hardware and/or software components could be used in conjunction with computer system/server 12. Examples, include, but are not limited to: microcode, device drivers, redundant processing units, and external disk drive arrays, RAID systems, tape drives, and data archival storage systems, etc.
Thus, one or more embodiments can make use of software running on a general purpose computer or workstation. With reference to
Accordingly, computer software including instructions or code for performing the methodologies of the invention, as described herein, may be stored in one or more of the associated memory devices (for example, ROM, fixed or removable memory) and, when ready to be utilized, loaded in part or in whole (for example, into RAM) and implemented by a CPU. Such software could include, but is not limited to, firmware, resident software, microcode, and the like.
A data processing system suitable for storing and/or executing program code will include at least one processor 16 coupled directly or indirectly to memory elements 28 through a system bus 18. The memory elements can include local memory employed during actual implementation of the program code, bulk storage, and cache memories 32 which provide temporary storage of at least some program code in order to reduce the number of times code must be retrieved from bulk storage during implementation.
Input/output or I/O devices (including but not limited to keyboards, displays, pointing devices, and the like) can be coupled to the system either directly or through intervening I/O controllers.
Network adapters 20 may also be coupled to the system to enable the data processing system to become coupled to other data processing systems or remote printers or storage devices through intervening private or public networks. Modems, cable modem and Ethernet cards are just a few of the currently available types of network adapters.
As used herein, including the claims, a “server” includes a physical data processing system (for example, system 12 as shown in
One or more embodiments can be at least partially implemented in the context of a cloud or virtual machine environment, although this is exemplary and non-limiting. Reference is made back to
It should be noted that any of the methods described herein can include an additional step of providing a system comprising distinct software modules embodied on a computer readable storage medium; the modules can include, for example, any or all of the appropriate elements depicted in the block diagrams and/or described herein; by way of example and not limitation, any one, some or all of the modules/blocks and or sub-modules/sub-blocks described; e.g., the pre-processing module (for obtaining the data), the alignment module (for carrying out neuron alignment), and the loss curve analysis module (for training and selecting). The method steps can then be carried out using the distinct software modules and/or sub-modules of the system, as described above, executing on one or more hardware processors such as 16. Further, a computer program product can include a computer-readable storage medium with code adapted to be implemented to carry out one or more method steps described herein, including the provision of the system with the distinct software modules.
One example of user interface that could be employed in some cases is hypertext markup language (HTML) code served out by a server or the like, to a browser of a computing device of a user. The HTML is parsed by the browser on the user's computing device to create a graphical user interface (GUI).
Exemplary System and Article of Manufacture Details
The present invention may be a system, a method, and/or a computer program product. 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.
The computer readable storage medium can be a tangible device that can retain and store instructions for use by an instruction execution device. The computer readable storage medium may be, for example, but is 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 foregoing. A non-exhaustive list of more specific examples of the computer readable storage medium includes the following: a portable computer diskette, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or Flash memory), a static random access memory (SRAM), a portable compact disc read-only memory (CD-ROM), a digital versatile disk (DVD), a memory stick, a floppy disk, a mechanically encoded device such as punch-cards or raised structures in a groove having instructions recorded thereon, and any suitable combination of the foregoing. A computer readable storage medium, as used herein, is not to be construed as being transitory signals per se, such as radio waves or other freely propagating electromagnetic waves, electromagnetic waves propagating through a waveguide or other transmission media (e.g., light pulses passing through a fiber-optic cable), or electrical signals transmitted through a wire.
Computer readable program instructions described herein can be downloaded to respective computing/processing devices from a computer readable storage medium or to an external computer or external storage device via a network, for example, the Internet, a local area network, a wide area network and/or a wireless network. The network may comprise copper transmission cables, optical transmission fibers, wireless transmission, routers, firewalls, switches, gateway computers and/or edge servers. A network adapter card or network interface in each computing/processing device receives computer readable program instructions from the network and forwards the computer readable program instructions for storage in a computer readable storage medium within the respective computing/processing device.
Computer readable program instructions for carrying out 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, configuration data for integrated circuitry, or either source code or object code written in any combination of one or more programming languages, including an object oriented programming language such as Smalltalk, C++, or the like, and procedural programming languages, such as the “C” programming language or similar programming languages. The computer readable program instructions may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the latter scenario, 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 made to an external computer (for example, through the Internet using an Internet Service Provider). In some embodiments, electronic circuitry including, for example, programmable logic circuitry, field-programmable gate arrays (FPGA), or programmable logic arrays (PLA) may execute the computer readable program instructions by utilizing state information of the computer readable program instructions to personalize the electronic circuitry, in order to perform aspects of the present invention.
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.
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, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions/acts specified in the flowchart and/or block diagram block or blocks. These computer readable program instructions may also be stored in a computer readable storage medium that can direct a computer, a programmable data processing apparatus, and/or other devices to function in a particular manner, such that the computer readable storage medium having instructions stored therein comprises an article of manufacture including instructions which implement aspects of the function/act specified in the flowchart and/or block diagram block or blocks.
The computer readable program instructions may also be loaded onto a computer, other programmable data processing apparatus, or other device to cause a series of operational steps to be performed on the computer, other programmable apparatus or other device to produce a computer implemented process, such that the instructions which execute on the computer, other programmable apparatus, or other device implement the functions/acts specified in the flowchart and/or block diagram block or blocks.
The flowchart 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 flowchart or block diagrams may represent a module, segment, or portion of instructions, which comprises one or more executable instructions for implementing the specified logical function(s). In some alternative implementations, the functions noted in the blocks may occur out of the order noted in the Figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems that perform the specified functions or acts or carry out combinations of special purpose hardware and computer instructions.
The descriptions of the various embodiments of the present invention have been presented for purposes of illustration, but are not intended to be exhaustive or limited to the embodiments disclosed. Many modifications and variations will be apparent to those of ordinary skill in the art without departing from the scope and spirit of the described embodiments. The terminology used herein was chosen to best explain the principles of the embodiments, the practical application or technical improvement over technologies found in the marketplace, or to enable others of ordinary skill in the art to understand the embodiments disclosed herein.