The following disclosure(s) are submitted under 35 U.S.C. 102(b)(1)(A):
The present invention relates to the electrical, electronic and computer arts, and more specifically, to machine learning systems.
Leveraging a pre-trained neural network (i.e., a source model) and fine-tuning it to solve a target task is a common and effective practice in deep learning, such as transfer learning. Transfer learning has been widely used to solve complex tasks in the text and vision domains. In vision, models trained on a conventional image database are leveraged to solve diverse tasks such as image classification and object detection. In text, language models that are trained on a large amount of public data including books, free online encyclopedia(s), and the like are employed to solve tasks such as classification and language generation. Although such techniques can achieve good performance on a target task, a fundamental yet challenging problem is how to select a suitable pre-trained model from a pool of candidates in an efficient manner. The naive solution of training each candidate fully with the target data can find the best pre-trained model but is infeasible due to considerable consumption of time and computational resources.
Efficient model selection for identifying a suitable pre-trained neural network to a downstream task is a fundamental yet challenging task in deep learning. Current practice requires expensive computational costs in model training for performance prediction. Current learning curve (LC) prediction approaches make predictions based on numerous previous observations from other learning curves, or depend on the embedding of the network topology, dataset, and hyper-parameters, which are very expensive.
Principles of the invention provide techniques for neural network selection via edge dynamics. In one aspect, an exemplary method includes the operations of removing, using at least one processor, an output layer from a pre-trained neural network model; incorporating, using the at least one processor, a neural capacitance probe (NCP) unit with multiple layers on top of one or more bottom layers of the pre-trained neural network model; randomly initializing, using the at least one processor, the neural capacitance probe (NCP) unit; training, using the at least one processor, a modified neural network model by fine-tuning the one or more bottom layers on a target dataset for a maximum number of epochs, the modified neural network model comprising the neural capacitance probe (NCP) unit incorporated with multiple layers on top of the one or more bottom layers of the pre-trained neural network model; obtaining, using the at least one processor, an adjacency matrix from the initialized neural capacitance probe (NCP) unit; computing, using the at least one processor, a neural capacitance metric using the adjacency matrix; selecting, using the at least one processor, an active model using the neural capacitance metric; and configuring, using the at least one processor, a machine learning system using the active model.
In one aspect, a non-transitory computer readable medium comprises computer executable instructions which when executed by a computer cause the computer to perform the method of removing an output layer from a pre-trained neural network model; incorporating a neural capacitance probe (NCP) unit with multiple layers on top of one or more bottom layers of the pre-trained neural network model; randomly initializing the neural capacitance probe (NCP) unit; training a modified neural network model by fine-tuning the one or more bottom layers on a target dataset for a maximum number of epochs, the modified neural network model comprising the neural capacitance probe (NCP) unit incorporated with multiple layers on top of the one or more bottom layers of the pre-trained neural network model; obtaining an adjacency matrix from the initialized neural capacitance probe (NCP) unit; computing a neural capacitance metric using the adjacency matrix; selecting an active model using the neural capacitance metric; and configuring a machine learning system using the active model.
In one aspect, an apparatus comprises a memory and at least one processor, coupled to the memory, and operative to perform operations comprising removing an output layer from a pre-trained neural network model; incorporating a neural capacitance probe (NCP) unit with multiple layers on top of one or more bottom layers of the pre-trained neural network model; randomly initializing the neural capacitance probe (NCP) unit; training a modified neural network model by fine-tuning the one or more bottom layers on a target dataset for a maximum number of epochs, the modified neural network model comprising the neural capacitance probe (NCP) unit incorporated with multiple layers on top of the one or more bottom layers of the pre-trained neural network model; obtaining an adjacency matrix from the initialized neural capacitance probe (NCP) unit; computing a neural capacitance metric using the adjacency matrix; selecting an active model using the neural capacitance metric; and configuring a machine learning system using the active model.
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:
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.
Generally, a novel framework for neural network selection based on analyzing the governing dynamics over synaptic connections (edges) during training is introduced. The disclosed framework is built on the recognition that back-propagation during neural network training is equivalent to the dynamical evolution of synaptic connections. Therefore, a converged neural network is associated with an equilibrium state of a networked system composed of those edges. To this end, a network mapping p is constructed, converting a neural network GA to a directed line graph GB that is defined on those edges in GA. Next, a neural capacitance metric βeff is derived as a predictive measure universally capturing the generalization capability of GA on the downstream task using only a handful of early training results. In one or more example embodiments, the neural capacitance metric βeff is based on early training results; that is, after a few epochs of training and prior to convergence of a loss function associated with the training.
Extensive experiments using 17 popular pre-trained image models and five benchmark datasets to evaluate the fine-tuning performance of the disclosed framework were conducted. The neural capacitance metric utilized is shown to be a powerful indicator for model selection based only on early training results and is more efficient than state-of-the-art methods.
As described above, efficient model selection for identifying a suitable pre-trained neural network for a downstream task is a fundamental yet challenging task in deep learning. Current practice requires expensive computational costs in model training for performance prediction. One or more embodiments advantageously provide an efficient predictive measure to capture the performance of a pre-trained model on the target task based only on early training results (e.g., predicting final model performance based on the statistics obtained from the first few training epochs).
In order to implement an efficient neural network (NN) model selection, a novel framework is introduced to forecast the predictive ability of a model with its cumulative information in the early phase of NN training, as practiced in learning curve prediction. Most conventional techniques for learning curve prediction aim to capture the trajectory of learning curves with a regression function of the models' validation accuracy. Some of the previous algorithms developed in this field require training data from additional learning curves to train the predictors; the disclosed model does not require any such data. It solely relies on the NN architecture. Ranking models according to their final accuracy after fine-tuning is significantly more challenging, as the learning curves are very similar to each other.
The entire NN training process involves iterative updates of the weights of synaptic connections, according to one particular optimization algorithm, e.g., gradient descent or stochastic gradient descent (SGD). In essence, many factors impact how weights are updated, including the training data, the neural architecture, the loss function, and the optimization algorithm. Moreover, weights evolving during NN training in many aspects can be viewed as a discrete dynamical system. The perspective of viewing NN training as a dynamical system has been studied by the community, and many attempted to make some theoretical explanation of the convergence rate and generalization error bounds.
A disadvantage of conventional approaches is that they concentrate on the macroscopic and collective behavior of the system, and lack a dedicated examination of the individual interactions between the trainable weights or synaptic connections, which are pertinent in developing an understanding of the dependency of these weights, and how they co-evolve during training. To fill the gap, one or more embodiments address, from a microscopic perspective, building edge dynamics of synaptic connections from SGD in terms of differential equations, from which an associated network is built as well. The edge dynamics induced from SGD are nonlinear and highly coupled. It will be very challenging to solve, considering millions of weights in many convolutional neural networks (CNNs), e.g., 16 million weights in a first conventional model and 528 million in a second conventional model. A universal topological metric for the associated network to decouple the system has previously been proposed. The metric will be used for model selection in the disclosed approach, and it is shown to be powerful in the search of the best predictive model.
NN training is viewed as a dynamical system over synaptic connections, and the first study on the interactions of synaptic connections in a microscopic perspective is delivered;
Dynamical System of a Network
Many real complex systems, e.g., plant-pollinator interactions and the spread of infectious disease, can be described with networks. Let G=(V, E) be a network with nodes V and edges E. Assuming n=|V|, the interactions between nodes can be formulated as a set of differential equations:
{dot over (x)}
i
=f(xi)+Ej∈vPijg(xi,xj),∀i∈V, (1)
where xi is the state of node i. In real systems, this could correspond to the abundance of a plant in an ecological network, the infection rate of a person in an epidemic network, or the expression level of a gene in a regulatory network. The term P is the adjacency matrix of G, where the entry Pij indicates the interaction strength between nodes i and j. The functions f(·) and g(·,·) capture the internal and external impacts on node i, respectively.
Usually, the functions f(·) and g(·,·) are nonlinear.
Let x=(x1, x2, . . . , xn). For a small network, given an initial state, a forward simulation can be run for an equilibrium state x*, such that {dot over (x)}i=f(xi*)+Σj∈VPijg(xi*, xj*)=0. However, when the size of the system goes up to millions or even billions, it will pose a significant challenge to solve the coupled differential equations. The problem can be efficiently addressed by employing a mean-field technique, where a linear operator P(·) is introduced to decouple the system. Specifically,
P depends on the adjacency matrix P and is defined as
where z∈n. Let δin=P1 and δout=1TP be the in- and out-degrees of nodes. For a weighted G, the degrees are weighted as well. Applying
P(·) to δin gives:
which proves to be a powerful metric to measure the resilience of networks, and has been applied to make reliable inferences from incomplete networks. It is used to measure the predictive ability of a NN (see section entitled “Neural Capacitance”), whose training is, in essence, a dynamical system.
NN Training is a Dynamical System
Conventionally, training a NN is a nonlinear optimization problem. Because of the hierarchical structure of NNs, the training procedure is implemented by two alternate procedures: forward-propagation (FP) and back-propagation (BP), as illustrated in
Let GA be a NN, w be the flattened weight vector of GA, and z be the activation values. As a whole, the training of GA can be described with two coupled dynamics: on GA, and
on GB, where nodes in GA are neurons, and nodes in GB are the synaptic connections. The coupling relation arises from the strong inter-dependency between z and w: the states z (activation values or activation gradients) of GA are the parameters of
, and the states w of GB are the trainable parameters of GA. If the whole training process is put in the context of networked systems,
denotes a node dynamics because the states of nodes evolve during FP, and
expresses an edge dynamics because of the updates of edge weights during BP. Mathematically, the node and edge dynamics are formulated based on the gradients of C:
where t denotes the training step. Let be the pre-activation of node i on layer
, and
(·) be the activation function of layer
. Usually, the output activation function is a softmax. The hierarchical structure of GA exerts some constraints over z for neighboring layers, i.e.,
=
(
),1≤i≤
,∀1≤
<L and
z
k
(L)=exp{ak(L)}/Σj exp{aj(L)},1≤k≤nL,
where is the total number of neurons on layer
, and GA has L+1 layers. It also presents a dependency between z and w, e.g., when GA is an MLP without bias,
=
, which builds a connection from GA to GB. Given w, the activation z satisfying all these constraints, is also a fixed point of
. Meanwhile, an equilibrium state of
provides a set of optimal weights for GA.
Framework
The metric βeff is a universal metric to characterize different types of networks, including biological neural networks. Because of the generality of βeff, how it looks on artificial neural networks which are designed to mimic the biological counterparts for general intelligence is analyzed. Therefore, an analogue system for the trainable weights is set up. To this end, a line graph for the trainable weights (see section entitled “Line Graph GB”) is built, and the training dynamics are reformulated in the same form of the general dynamics (Eq. (1)) (see section entitled “Edge Dynamics ”). The reformulated dynamics reveals a simple yet powerful property regarding βeff (see section entitled “Neural Capacitance”), which is utilized to predict the final accuracy of GA with a few observations during the early phase of the training (see section entitled “Model Selection with βeff”).
Line Graph GB
In one example embodiment, a mapping scheme ϕ: GAGB is built from an NN GA to an associated graph GB. The topology of the synaptic connections (edges) is established as a well-defined line graph, and nodes of GB are the synaptic connections of GA. The skilled artisan will be familiar with suitable line graphs such as, for example, in Tamás Nepusz and Tamis Vicsek, Controlling edge dynamics in complex networks, Nature Physics, 2012 July 8(7) pages 568-73, and given the teachings herein, can select suitable line graphs to implement one or more embodiments. More precisely, each node in GB is associated with a trainable parameter in GA. For an MLP, each synaptic connection is assigned a trainable weight, the edge set of GA is also the set of synaptic connections of GB. For a convolutional neural network (CNN), this one-to-one mapping from neurons on layer
to layer
+1 is replaced by a one-to-many mapping because of weight-sharing, e.g., a parameter in a convolutional filter is repeatedly used in FP and associated with multiple pairs of neurons from the two neighboring layers. Since the error gradients flow in a reversed direction, the corresponding links of the proposed line graph for GB are reversed. Specifically, given any pair of nodes in GB, if they share an associated intersection neuron in FP propagation routes, a link with a reversed direction will be created for them.
Edge Dynamics
In SGD, each time a batch of samples are chosen to update w, w←w←α∇wC, where α>0 is the learning rate. When desired conditions are met, training is terminated. Let =[∂C/
, . . . , ∂C/
]T∈
be the activation gradients, and
=[
, . . . ,
]T∈
be the derivatives of activation function σ for layer
, with
=
(
), 1<k<
, 1<
<L. (In some literature
is defined as gradients with respect to
, which does not affect the present analysis.) To understand how the weights
affect each other,
is explicitly expanded and the result is
=
(
( . . . (W(L-1)T(W(L)T(z(L)−y))⊙σL-1′) . . . )⊙
)⊙
, where ⊙ is the Hadamard product.
is found to be associated with all accessible parameters on downstream layers, and the recursive relation defines a high-order hyper-network interaction between any
and the other parameters. With the fact that x⊙y=Λ(y)x, where Λ(y) is a diagonal matrix with the entries of y on the diagonal,
=
Λ(
)
=
Λ(
)
TΛ(
) . . . W(L-1)TΛ(σL-1′)W(L)T(z(L)−y). For a ReLU (Rectified Linear Unit) activation function
⊙,
is binary depending on the sign of the input pre-activation values
of layer
. If
≤0, then
(
)=0, blocking a BP propagation route of the prediction deviations z(L)−y and giving rise to vanishing gradients.
One or more embodiments build direct interactions between synaptic connections. This can be done, for example, by identifying which units provide direct physical interactions to a given unit and appear on the right-hand side of its differential equation in Eq. (4), and how much such interactions come into play. There are multiple routes to build up a direct interaction between any pair of network weights from different layers, as presented by the product terms in
. However, the coupled interaction makes it an impossible task, which is well known as a credit assignment problem. One or more embodiments advantageously provide a remedy. The impacts of all the other units on
are approximated by direct, local impacts from
, and the others' contribution as a whole is encoded in the activation gradient
.
Moreover, the weight gradient is
Because of the mutual dependency of the weights and the activation values, it is difficult to make an exact decomposition of the impacts of different parameters on . However, in the gradient
,
presents as an explicit term and contributes the direct impact on
. To capture such direct impact and derive the adjacency matrix P for GB, Taylor expansion is applied on
and the result is:
Let be the equilibrium states, the training dynamics Eq. (7) is reformulated into the form of Eq. (1), and gives the edge dynamics
for GB:
{dot over (w)}
i
=f(wi)+ΣjPijg(wi,wj), (9)
Neural Capacitance
According to Eq. (8), the weighted adjacency matrix P of GB is in place. Now, the total impact that a trainable parameter (or synaptic connection) receives from itself and the others, which corresponds to the weighted in-degrees δin=P1, can be quantified. Applying P(·) (see Eq. (2)) to δin, a “counterpart” metric βeff=
P(δin) is obtained to measure the predictive ability of a neural network GA, as the resilience metric (see Eq. (3)) does to a general network G (see Dynamical system of a network as discussed above). If GA is an MLP, the entries of P, and hence βeff, can be explicitly written:
Moreover, in Theorem 4.1 below, it is proven that as GA converges, vanishes, and βeff approaches zero.
Theorem 4.1
Let ReLU be the activation function of GA. When GA converges, then βeff=0. (A small value ε is added to the denominator of Eq. (10) to avoid a possible 0/0. Moreover, because of the numerical precision, it is rare to reach 0/0.)
Algorithm 1
Implement NCP and Compute βeff
Input: A pre-trained model s={
s(1),
s(2)} 132 with bottom layers
s(1) 146 and output layer
s(2) 136, a target dataset Dt, the maximum number of epochs T
(In some example embodiments, the NCP unit 138 is randomly initialized and frozen during step 2.) For an MLP GA, it is possible to derive an analytical form of βeff. However, it becomes extremely complicated for a deep NN with multiple convolutional layers. To realize βeff for deep NNs in any form, the automatic differentiation implemented in conventional deep learning platforms that support automatic differentiation is taken advantage of. Considering the number of parameters, it is still computationally expensive, and prohibitive to calculate a βeff for the entire GA.
Because of this, the derivation of a surrogate from a partial of GA is sought. As shown in the section entitled “Model Selection with βeff”, a neural capacitance probe (NCP) unit 138 is inserted, i.e., putting additional layers 140, 142 on top of the neural network GA, excluding the original output layer 136, and the predictive ability of the entire GA using βeff of the NCP unit 138 is estimated. Therefore, in the context of model selection from a pool of pre-trained models, if no confusion arises, βeff is called a neural capacitance.
Model Selection with βeff
Consider application of the neural capacitance βeff to model selection. For example, the pre-trained models 132 are transferred by (i) removing the output layer 136, (ii) adding some layers 140, 142 on top of the remaining layers 146 (140, 142 on top of the bottom layers 146 of
36 are used as an NCP unit 138. The specifics of the NCP unit 138 are detailed in the section entitled “Experiments and Results.” In one or more embodiments, the NCP 138 is not involved in fine-tuning, and is merely used to calculate βeff, and then to estimate the performance of GA over the target domain Dt.
According to Theorem 4.1, when the model converges, βeff→0. In an indirect way, the predictive ability of the model can be determined by the relation between the training βeff and the validation accuracy I. Since both βeff and I are available during fine-tuning, a set of data points of these two in the early phase are collected as the observations, and a regularized linear model I=h(βeff; θ) is fitted with Bayesian ridge regression, where θ are the associated coefficients. The estimated predictor I=h(βeff; θ*) makes prediction of the final accuracy of models by setting βeff=0, i.e., I*=h(0; θ*), see an example in the third row of
Computing Structure
”) and the training dynamics 512 is “rewritten” in the form of Eq. (1), which includes a self-driving force f(·), an external driving force g(·,·) and an adjacency matrix P (see Eqs. (8) & (9); edge dynamics 520 and mean-field based approach 524).
The reformulated training dynamics yields a simple yet powerful property. It is proved that as the neural network converges, βeff approaches zero (see Theorem 4.1 and the section entitled “Neural Capacitance”). As shown in
The metric βeff is universal for characterizing different types of networks. Although one example framework utilizes the metric, the application to artificial neural network training dynamics and the related theoretical results, as specified by Theorem 4.1, are novel. Specifically, it is applied to study the NN training 504 (see sections entitled “Dynamical system of a network” and “NN training is a dynamical system”) and to predict the final accuracy of a neural network with a few observations during the early phase of the training (
In
Pre-Trained Models and Datasets
Seventeen conventional pre-trained image models implemented using a software library that includes a Python© (registered trademark of PYTHON SOFTWARE FOUNDATION BEAVERTON OREGON USA) interface for artificial neural networks, were evaluated to measure the performance of one or more exemplary embodiments. Four benchmark datasets and one challenge dataset were used, and their original train/test splits were adopted. In addition, 15K original training samples were set aside as validation set for each dataset. It is noted that a variety of training datasets were utilized, including datasets of labeled images where the labels identified objects detected in the image, such as images labeled with types of wildlife, images labeled with types of cars or airplanes, labeled handwritten digits, and the like.
To obtain a well-defined βeff, GA requires at least three hidden layers in one or more embodiments. Also, a batch normalization is usually beneficial because it can stabilize the training by adjusting the magnitude of activations and gradients. To this end, an NCP unit 138 is put on top of each pre-trained model; the NCP unit 138 includes (1) a dense layer of size 256, (2) a dense layer of size 128, each of which follows (3) a batch normalization and is followed by (4) a dropout layer with a dropout probability of 0.4. Before fine-tuning, the NCP unit 138 is initialized using Kaiming Normal initialization (a known initialization method for neural networks that takes into account the non-linearity of activation functions, such as ReLU activations).
A batch size of 64 and a learning rate of 0.001 are set, and each pre-trained model is fine-tuned for T=50 epochs. In order to control the randomness, the experiments are repeated for 20 runs for each model and an analysis is performed over the average result. As shown in
Evaluation
The Bayesian ridge regression is applied on the observations to capture the relation between βeff and the validation accuracy, and to estimate a learning curve predictor I=h(βeff; θ*). The performance of the model is revealed as I*=h(βeff*; θ*) with βeff*=0. As shown in the third row of graphs of
One advantageous capability of one or more embodiments is the ability to select the best model from a pool of candidates. In one or more instances, relative rank of these candidates matters more than their exact values of predicted accuracy. To evaluate and compare different approaches, the Spearman's rank correlation coefficient ρ is chosen as the metric, and ρ is calculated over the true test accuracy at epoch T and the predicted accuracy I* of all pre-trained models. In
The estimation quality of h determines how well the relation between I and βeff is captured. Besides the regression method, the starting epoch t0 of the observations also plays a role in the estimation. As shown in
Impact of Size of Training Set
The conventional dataset #1 has 50K original training and 10K testing samples. Generally, the 50K samples are further split into 35K for training and 15K for validation. In studying the dynamics of the NN training, it is essential to understand how varying the training size influences the effectiveness of the disclosed approach. The first {10,15,20,25,30}K of the original 50K samples was selected as the training set of reduced size, and the last 10K samples as the validation set to fine-tune the pre-trained models for 50 epochs. As shown in
Results from Exemplary Embodiment(s) Versus Baselines
Support vector machine (SVM)-based LC predictors and a technique that treated the current learning curve as an affine transformation of previous learning curves (baselines #3 and #4 in
The performance of an exemplary embodiment was compared with the baselines.
Running Time Analysis
The disclosed approach is efficient, especially for large and deep NNs. Different from the training task that involves a full FP and BP, i.e. Ttrain=TFP+TBP, computing βeff only requires computing the adjacency matrix P according to Eq. (8) on the NCP unit 138, Tβ
A running time analysis of the two tasks was performed with four conventional graphical processing units, and the related times are visualized in
When the observations are used for learning curve prediction, the heuristics LSV and BSV directly take one observation (last or best) as the predicted value, so they are mostly computationally cheap but have suboptimal model ranking performances. Relatively, baselines #3 and #4 are more time-consuming because both require training a predictor with a set of full learning curves from other models. The disclosed approach also estimates a predictor, but does not need any external learning curves. Here, it is assumed that each model is observed for only k=5 epochs, and a running time analysis of these approaches is conducted over learning curve prediction, including estimating a predictor.
Recapitulation
A new perspective of NN model selection is presented by directly exploring the dynamical evolution of synaptic connections during NN training. The disclosed framework reformulates the SGD based NN training dynamics as edge dynamics B to capture the mutual interaction and dependency of synaptic connections. Accordingly, a networked system is built by converting an NN GA to a line graph GB with the governing dynamics , which induces a definition of the link weights in GB. Moreover, a topological property of GB, named neural capacitance βeff, is developed and shown to be an effective metric in predicting the ranking of a set of pre-trained models based on early training results.
Given the discussion thus far, it will be appreciated that, in general terms, an exemplary method, according to an aspect of the invention, includes the operations of removing, using at least one processor, an output layer s(2) 136 from a pre-trained neural network model
s={
s(1),
s(2)} 132; incorporating, using the at least one processor, a neural capacitance probe (NCP) unit
138 with multiple layers 140, 142 (
s(1) 146 of the pre-trained neural network model
s 132; randomly initializing, using the at least one processor, the neural capacitance probe (NCP) unit
138; training, using the at least one processor, a modified neural network model
t={
s(1),
} 154 by fine-tuning the one or more bottom layers
s(1) 146 on a target dataset Dt 150 for a maximum number T of epochs, the modified neural network model
t 154 comprising the neural capacitance probe (NCP) unit
138 incorporated with multiple layers 140, 142 (
s(1) 146 of the pre-trained neural network model
s 130; obtaining, using the at least one processor, an adjacency matrix P from the initialized neural capacitance probe (NCP) unit
138; computing, using the at least one processor, a neural capacitance metric βeff using the adjacency matrix P; selecting, using the at least one processor, an active model using the neural capacitance metric βeff; and configuring, using the at least one processor, a machine learning system using the active model.
It is noted that the selection of the active model using the neural capacitance metric βeff, as computed above, reduces the consumption of computing resources in comparison to conventional neural network selection techniques.
It is noted that the bottom layers 146 are distinguished from the output layer 136 and the output layer 140, as shown in
In one example embodiment, data is classified using the configured machine learning system. In one example embodiment, the classification comprises at least one of image classification, identification of an object in an image, and text classification. In one example embodiment, the obtaining of the adjacency matrix P from the neural capacitance probe (NCP) unit 138 is performed according to:
wherein is an index for a layer (i.e., a neural network layer),
is an objective function, and W is a weight.
In one example embodiment, the computing of the neural capacitance metric βeff with the adjacency matrix P is performed according to:
wherein δin and δout are activation gradients.
In one example embodiment, the computing of the neural capacitance metric βeff includes capturing a performance of a corresponding pre-trained model on a target task based on training results obtained prior to convergence of a loss function. In some cases, “early” training results are used; i.e. after a few epochs of training, prior to convergence, with only partial learning curves. Furthermore in this regard, normally, a neural network is trained until convergence (i.e., no change in loss function after a certain number of epochs).
In one example embodiment, a network mapping ϕ that represents a conversion of a neural network GA corresponding to the pre-trained neural network model to a directed line graph GB that is defined on edges in the neural network GA is constructed and the obtaining the adjacency matrix P is based on the directed line graph GB.
In one aspect, a non-transitory computer readable medium comprises computer executable instructions which when executed by a computer cause the computer to perform the method of removing, using at least one processor, an output layer s(2) 136 from a pre-trained neural network model
s={
s(1),
s(2) } 132; incorporating, using the at least one processor, a neural capacitance probe (NCP) unit
138 with multiple layers 140, 142 (
s(1) 146 of the pre-trained neural network model
s 132; randomly initializing, using the at least one processor, the neural capacitance probe (NCP) unit
138; training using the at least one processor, a modified neural network model
t={
s(1),
} 154 by fine-tuning the one or more bottom layers
s(1) 146 on a target dataset Dt 150 for a maximum number T of epochs, the modified neural network model
t 154 comprising the neural capacitance probe (NCP) unit
138 incorporated with multiple layers 140, 142 (
s(1) 146 of the pre-trained neural network model
s 130; obtaining, using the at least one processor, an adjacency matrix P from the initialized neural capacitance probe (NCP) unit
138; computing, using the at least one processor, a neural capacitance metric βeff using the adjacency matrix P; selecting, using the at least one processor, an active model using the neural capacitance metric βeff; and configuring, using the at least one processor, a machine learning system using the active model.
In one aspect, an apparatus comprises a memory and at least one processor, coupled to the memory, and operative to perform operations comprising removing, using at least one processor, an output layer s(2) 136 from a pre-trained neural network model
s={
s(1),
s(2)} 132; incorporating, using the at least one processor, a neural capacitance probe (NCP) unit
138 with multiple layers 140, 142 (
s(1) 146 of the pre-trained neural network model
s 132; randomly initializing, using the at least one processor, the neural capacitance probe (NCP) unit
138; training, using the at least one processor, a modified neural network model
t={
s(1),
} 154 by fine-tuning the one or more bottom layers
s(1) 146 on a target dataset Dt 150 for a maximum number T of epochs, the modified neural network model
t 154 comprising the neural capacitance probe (NCP) unit
138 incorporated with multiple layers 140, 142 (
s(1) 146 of the pre-trained neural network model
s 130; obtaining, using the at least one processor, an adjacency matrix P from the initialized neural capacitance probe (NCP) unit
138; computing, using the at least one processor, a neural capacitance metric βeff using the adjacency matrix P; selecting, using the at least one processor, an active model using the neural capacitance metric βeff; and configuring, using the at least one processor, a machine learning system using the active model.
It is to be understood 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 e-mail). 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 that includes 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 at least a portion of a system for dynamic video inference processing 96.
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. 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 at any possible technical detail level of integration. 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.