Adaptation of deep learning models to resource-constrained edge devices

Through multi-objective optimization technology, combined with training data and edge-related metrics, a deep learning model suitable for edge devices is generated, which solves the accuracy and delay problems of DL model deployment on resource-constrained devices, and achieves optimal adaptation and performance improvement of the model structure. .

CN112199189BActive Publication Date: 2024-09-06INTERNATIONAL BUSINESS MACHINE CORPORATION
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202010649975.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Priority Date
2019-07-08
Filing Date
2020-07-08
Publication Date
2024-09-06
Estimated Expiration
2040-07-08

AI Technical Summary

Technical Problem

Existing technologies are difficult to effectively deploy deep learning models on resource-constrained edge devices, and traditional methods ignore the trade-offs between different resource-related goals, resulting in loss of accuracy or increased latency, and fail to adapt to the characteristics of edge devices.

Method used

Through multi-objective optimization technology, combined with training data and edge correlation metrics, the optimal topology of the DL model is determined, the inference time, size and accuracy of the model are optimized, a collection of DL models suitable for edge devices is generated, and the optimal topology is selected and deployed by the user. Excellent model.

Benefits of technology

Improve the learning performance of deep learning models on resource-constrained edge devices, balance multiple inconsistent goals, reduce model size while improving accuracy, adapt to the characteristics of a given edge device, and achieve optimal adaptation of the model structure.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112199189B_ABST
    Figure CN112199189B_ABST
Patent Text Reader

Abstract

Techniques for generating a set of deep learning (DL) models are described. An example method includes training an initial set of DL models using training data, wherein a topology of each of the DL models is determined based on a parameter vector. The method also includes generating a set of estimated performance functions for each of the DL models in the initial set based on a set of edge-related metrics, and generating multiple objective functions based on the set of estimated performance functions. The method also includes generating a final set of DL models based on the objective functions, receiving a user selection of a DL model selected from the final set of DL models, and deploying the selected DL model to an edge device.
Need to check novelty before this filing date? Find Prior Art

Description

Background Art

[0001] The present disclosure relates to techniques for generating deep learning models. More specifically, the present disclosure describes techniques for generating deep learning (DL) models for deployment to resource-constrained edge devices. Summary of the invention

[0002] According to an embodiment described herein, a system for generating a set of deep learning (DL) models includes a storage device for storing a training corpus including a set of training data, parameter vectors, and edge-related metrics. The system also includes a processor for training an initial set of DL models using the training data, wherein the topology of each of the DL models is determined based on the parameter vector. The processor also generates a set of estimated performance functions for each of the DL models in the initial set based on the set of edge-related metrics, generates multiple objective functions based on the set of estimated performance functions, and generates a final DL model set based on the objective function. The processor is also configured to receive a user selection of a DL model selected from the final DL model set and deploy the selected DL model to an edge device.

[0003] In some embodiments, a method for generating a set of deep learning (DL) models includes training an initial set of deep learning (DL) models on training data, wherein the topology of each of the DL models is determined based on a parameter vector. The method also includes generating a set of estimated performance functions for each of the DL models in the initial set based on a set of edge-related metrics, generating multiple objective functions based on the set of estimated performance functions, and generating a final set of DL models based on the objective functions. The method also includes receiving a user selection of a DL model selected from the final set of DL models and deploying the selected DL model to an edge device.

[0004] In another embodiment, a computer program product for generating a set of deep learning (DL) models includes a computer-readable storage medium having program instructions embodied therein, wherein the computer-readable storage medium itself is not a transient signal, and wherein the program instructions are executable by a processor. The program instructions cause the processor to train an initial set of DL models using training data, wherein the topology of each of the DL models is determined based on a parameter vector, and the parameter vector specifies the number of layers and the number of nodes per layer for each model in the initial set of DL models. The program instructions also cause the processor to generate a set of estimated performance functions for each of the DL models in the initial set based on a set of edge-related metrics including inference time, model size, and test accuracy, generate multiple objective functions based on the set of estimated performance functions, and generate a final set of DL models based on the objective functions. The program instructions cause the processor to receive a user selection of a DL model selected from the final set of DL models and deploy the selected DL model to an edge device. BRIEF DESCRIPTION OF THE DRAWINGS

[0005] Figure 1 is a process flow diagram illustrating an example method of generating a collection of DL models for deployment on a resource-constrained edge device according to embodiments described herein;

[0006] Figure 2 is a block diagram of an example computing device configured to generate a collection of DL models optimized for deployment on a resource-constrained edge device according to embodiments described herein;

[0007] Figure 3 is a process flow diagram of an example method for generating a collection of DL models for deployment on a resource-constrained edge device according to embodiments described herein;

[0008] Figure 4 depicts an illustrative cloud computing environment according to embodiments described herein; and

[0009] Figure 5 Depicted is a set of functional abstraction layers provided by a cloud computing environment according to embodiments described herein. DETAILED DESCRIPTION

[0010] Due to the rapid development of the Internet of Things (IoT) and smart edge devices, there is an increasing demand for implementing deep learning (DL) algorithms on resource-constrained edge devices with limited memory and computing power. The huge demand for memory storage and computing power hinders the deployment of deep learning models on such resource-constrained devices. Traditional deep learning methods focus on a single objective setting, where the learning algorithm is optimized according to a single performance criterion (e.g., loss function) or heuristic function. The basic assumption of these methods is that optimization of a single objective can improve the overall performance of the model classification and meet the needs of various applications.

[0011] A common approach to speeding up DL models on resource-constrained devices is to compress the model to reduce its resource and computation requirements. However, this approach may result in a loss of accuracy. Other approaches involve offloading some or all of the computation to a cloud server. However, this is not always possible due to privacy restrictions, such as when sending sensitive data over the network is prohibited, and latency, where fast and reliable network connections are not always guaranteed. In addition, both approaches do not consider the different trade-offs between different resource-related objectives, are limited to neural network architectures, and generally ignore some basic hyper-parameter optimization issues, because they focus on replicating the performance of the original model, regardless of what is the most important hyper-parameter that captures the relevant data patterns related to the prediction results, and what is a good value for the hyper-parameter. For example, compression-related methods focus on finding the smallest possible neural network that can most accurately represent what it should learn, while methods involving offloading computation to cloud servers aim to adapt the partitioning points of the deep model to obtain optimal latency and energy consumption. In addition, these methods do not adapt the model structure to the characteristics of a given edge device, but instead try to manipulate the model structure at the minimum cost of accuracy or latency by finding a single solution as a global optimization problem.

[0012] This disclosure describes a technique for generating a DL model with an optimal topology of DL model structure that produces optimal performance on a given edge with respect to its resource constraints. The techniques described herein improve learning performance by providing more efficient use of limited computation and resources at the edge. This enables deployment of DL models such as deep neural networks (DNNs) on resource-constrained edge devices with limited memory and computational power while balancing trade-offs between multiple inconsistent objectives, thereby reducing model size while improving accuracy.

[0013] According to the present technology, for given training and test sets, the model performance metrics of interest (Si) are evaluated relative to different values ​​of the parameters of the DL model. Those metrics of interest refer to different resource constraints of edge devices, such as DL model size, inference time, accuracy, etc. The performance of the DL model is optimized on multiple objectives involving the metrics of interest (multi-objective optimization) so that the model can be adapted to a given edge. In the multi-objective optimization process, each objective corresponds to an optimal solution. Because the optimization objectives may be inconsistent or even conflicting, a single solution that is optimal for all objectives cannot be identified. Therefore, different trade-offs are incorporated into multiple objectives. This produces a set of non-dominated DL model solutions, each of which is optimal according to different trade-offs between multiple objectives. Then, taking into account resource constraints, users can flexibly build various prediction models from the solution set for a given edge.

[0014] The techniques described in this paper enable the development of DL models that provide good trade-offs between a variety of different trade-offs suitable for a given edge by incorporating prior knowledge about model properties that are well suited for a given classification task given specific edge constraints. Reducing the size of the search space and simplifying the search is accomplished by performing an ensemble of experiments to quickly find a well-performing model architecture, while convergence to the region of optimal model architecture is achieved by applying multi-objective optimization to an ensemble of estimated performance functions for the DL model.

[0015] Figure 1 1 is a process flow diagram illustrating an example method of generating a collection of DL models for deployment on a resource-constrained edge device. The process can be performed in any suitable computing system, such as a server, a desktop computer, a cloud computing node, etc. The process can start at block 102.

[0016] At box 102, a set of DL models are trained and evaluated. The DL models are trained using a training data set 104 and a test data set 106. The topology of each of the DL models is determined by a parameter vector 108, which determines the characteristics of each of the DL models, such as the number of layers, the number of nodes per layer, etc. Each of the DL models is also associated with a set 110 of edge-related metrics. The edge-related metrics 110 are used to estimate a performance function. For example, a performance function can be estimated by running a set of experiments on a given DL model to estimate the behavior of edge-related metrics as a function of model parameters.

[0017] The training dataset 104 includes a vector x and a scalar y, where the vector x is considered as the input of the DL model and the scalar y is the expected output of the model. To facilitate learning, each model defines a loss function for each dataset on its parameter vector w. The loss function captures the error of the model on the training data, and the model learning process is to minimize the loss function on the set of training data samples. In an embodiment of the present technology, the model structure is adapted to a given edge device by considering the trade-offs between multiple inconsistent objectives that are inherently related to the resource constraints of the edge while minimizing the loss function of the training model. For a given set of edge-related metrics, S i , the following vector functions are optimized:

[0018]

[0019] in is the objective function, which is the performance function associated with different resource constraints, which is estimated during model training. W is a decision vector containing n parameter variables, which can be expressed as follows:

[0020] w=(w1,w2,…,w n )

[0021] In general, multiple objectives are contradictory. Therefore, the Pareto front of all possible trade-offs can be calculated to identify the optimal DL model considering all multiple objectives. The problem formulation covers two spaces: an n-dimensional decision space, denoted as Ω, where decision variables coexist and where each coordinate axis corresponds to a different model parameter; and an m-dimensional target space, denoted as Λ, where objective functions coexist and where each coordinate axis corresponds to a different resource constraint-related performance function, e.g., a different component of the vector F(w). For example, for m=4, our problem can be formulated as follows:

[0022] Minimize {f loss (w)}

[0023] Minimize {f test_inf (w)}

[0024] Minimize {f model_size (w)}

[0025] Minimize {f test_acc (w)}

[0026] The constraint condition is {w∈Ω:w1<w<w2}. loss (w) is the loss function, f test_inf (w) is the test set inference time, f model_size (w) is the model size, f test_acc(w) is the accuracy on the test set for a given set of parameter values ​​w. The learning problem is then to find the function that minimizes F(w), where w is the parameter vector (i.e., w * = arg min F(w)). Since the objectives may conflict with each other, no single set of values ​​achieves the optimal values ​​of all objectives simultaneously. After solving this multi-objective optimization problem, the best trade-off between the objectives can be defined according to Pareto optimality. Good solutions to multi-objective optimization problems that maintain diversity are expected to converge to the Pareto front. In the model selection stage, user preferences can be considered as constraints or additional objective functions of the multi-optimization problem.

[0027] The first step of the process is performed in the learning and evaluation block 102. The input to the block consists of the training set D s , test set D t , parameter vector w i and edge correlation measure S m . The training of a DL model is an iterative process by which the weights of the DL model are adjusted after each iteration to minimize the loss function. The test set is a collection of data used to validate the DL model after training is complete. The parameter vector describes the parameters of each of the n DL models. For example, the parameter vector may indicate the number of layers and the number of nodes in each layer for each of the DL models. In the learning and evaluation block 102, a set of n DL models is trained, where each of the DL models is different in the parameter vector defined for the DL model. In addition, each model may be evaluated based on an edge-related metric for each parameter value, such as inference time for different kernel size values, or model size for different layer values.

[0028] Next, in box 112, a set of m estimated performance functions is calculated for each trained DL model. Each performance function is a set of values ​​calculated for each edge-related metric (e.g., inference time, model size, etc.). For example, three DL models can be trained, one using two layers, one using four layers, and one using six layers. The estimated performance functions describe how the performance of these DL models changes over the entire parameter range according to the edge-related metric of interest. Therefore, the estimated performance functions can be used to identify the best DL model parameters for a given goal, such as minimizing inference time, minimizing model size. A pseudocode example of the process performed by the learning and evaluation box is shown below.

[0029] enter:

[0030] D t : Training dataset

[0031] D s : Test dataset

[0032] wn : parameter vector

[0033] n′: number of sampling points

[0034] S m : Edge correlation measure

[0035] Output

[0036] Ψ: Model collection

[0037] y w : Performance function

[0038] process:

[0039]

[0040] At box 114, the performance function estimate calculated at box 112 is used to perform multi-objective optimization. At box 114, the estimated performance function is processed to identify the optimal DL model. To identify the DL model, the performance function estimate is processed to identify optimal model parameters, subject to a set of constraints for training the DL model. For each edge-related metric, a set of objective functions is calculated based on the estimated performance function calculated for the DL model, and the objective functions are processed to identify the optimal DL model. For example, a Pareto front can be calculated based on a plot of DL model parameters versus DL performance calculated by the objective function, and the optimal DL model can be identified by identifying the maximum or minimum of the objective function on the Pareto front. A pseudo-code example of the process performed by the learning and evaluation box is shown below.

[0041] enter:

[0042] f(w): objective function (f(w) = {y(w)} s )

[0043] Constraint Set

[0044] Ψ: Model collection

[0045] Output:

[0046] Ψ(P)

[0047] process:

[0048] Optimization subject to

[0049] The Pareto optimal model set Ψ(P*) is selected by considering the cardinality measure (C), the accuracy measure (A), and the diversity measure (D).

[0050] Return Ψ(P)

[0051] In the above process, the cardinality metric refers to the number of MOP (Multi-Objective optimization) solutions that exist, the accuracy metric refers to the convergence of the solution, which can be estimated by the distance of the solution from the theoretical Pareto optimal frontier, and the diversity metric refers to the distribution and spread of the solution, while the spread refers to the range of values ​​covered by the solution. The multi-objective optimization (MOP) performed in box 114 produces a set of optimized DL models 116. The optimized model is a non-dominated solution that is optimal according to the trade-offs between multiple objectives. The DL models can be stored for further evaluation and final selection for use in edge devices.

[0052] At box 118, the DL model identified at box 114 is evaluated to determine the performance of the resulting DL model relative to the expected performance function. For example, the analysis of the objective function performed at box 114 may indicate that the model with three layers provides the lowest inference time. However, this may be based on performance functions sampled at two and four layers. Therefore, the performance of the three-layer DL model can be verified to ensure that the actual performance of the resulting DL model is close to the estimated performance. If the actual performance differs from the estimated performance by a specified threshold, the performance function is corrected and the MOP is run again, resulting in a more accurate estimate of the parameters of the DL model.

[0053] In order to evaluate the DL model, each of the DL models is trained using the new DL model parameters. For each new DL model, a new estimated performance function is calculated for each edge-related metric. Then, in box 114, the new estimated performance function is compared with the corresponding objective function calculated for the DL model. If the difference between the new estimated performance function and the obtained DL model performance function exceeds a threshold value (referred to herein as the edge-related error standard), the performance function is modified and the MOP is run again. Therefore, a set of new DL models is generated, replacing the set of previously obtained DL models. According to the different trade-offs between multiple MOP objectives, the parameters of the newly obtained DL model are better. The process performed in box 114 can then be repeated. Any new updated DL model can be stored and replace the previous version of the DL model. A pseudocode example of the process performed by the learning and evaluation box is shown below.

[0054] enter:

[0055] D t : Training dataset

[0056] D s : Test dataset

[0057] Ψ(P): Model set

[0058] N: parameter vector

[0059] N: number of models

[0060] l: Label

[0061] S m : Edge correlation measure

[0062] ζ m : Edge-related error criterion

[0063] Output

[0064] Final model collection

[0065] Final performance function

[0066] process:

[0067]

[0068] In box 120, the user can select one or more DL models from the obtained DL model solution set 116 to be deployed in a computing device, including a resource-constrained edge device. The performance function calculated for the DL model can also be stored in association with each of the DL models so that the user can identify which DL models meet the user's needs. The user can then select a model based on some objective criteria preferred by the user (such as size, accuracy, or reasoning time of the DL model). In some embodiments, the user can select a single DL model based on a preferred goal. In some embodiments, the user can specify an objective criterion, and the DL models can be sorted according to the specified objective criterion to facilitate identification of suitable DL models to be deployed.

[0069] The edge device can be any suitable computing device, and the DL model can be used for any suitable machine learning application. For example, the DL model can be used as a classifier that monitors input received from a microphone or image capture device to identify the presence of specific features in an audio or video signal image. The edge device can also be a smart phone configured for facial recognition, and the DL model is used as a classifier that receives an image from a smart phone camera to identify whether the image includes a face, including the face of the recognized user. As another example, the edge device can be an Internet of Things (IoT) device, such as an IoT device for monitoring electrical equipment characteristics, and the DL model can be used as a classifier to identify electrical equipment failure modes. The edge device can also be a monitoring station used in a production facility, and the DL model can be used as a classifier to identify mechanical defects in manufactured products. The examples provided above are not exhaustive, as several other implementations are also possible.

[0070] In some embodiments, an ensemble of DL models will be deployed on the edge device, and the final prediction is based on a voting scheme. For example, all DL models can be selected for deployment, or the user can select multiple top-ranked models that have been ranked according to specified objective criteria. If an ensemble of DL models is deployed, each of the DL models can make predictions based on the same DL model input, and the final prediction can be determined based on a voting scheme, such as majority voting or other. This model selection method provides users with the flexibility to select preferred targets for their applications, and can also improve generalization performance through ensemble learning.

[0071] Figure 2 2 is a block diagram of an example computing device configured to generate a collection of DL models optimized for deployment on resource-constrained edge devices. Computing device 200 may be, for example, a server, a desktop computer, a laptop computer, a tablet computer, or a smart phone. In some examples, computing device 200 may be a cloud computing node. Computing device 200 may be described in the general context of computer system executable instructions (such as program modules) executed by a computer system. Typically, program modules may include routines, programs, target programs, components, logic, data structures, etc. that perform specific tasks or implement specific abstract data types. Computing device 200 may be implemented in a distributed cloud computing environment where remote processing devices linked via a communication network perform tasks. In a distributed cloud computing environment, program modules may be located on a local or remote computing system storage medium including a storage device.

[0072] The computing device 200 may include a processor 202 adapted to execute stored instructions, and a storage device 204 that provides temporary storage space for the operation of the instructions during operation. The processor may be a single-core processor, a multi-core processor, a computing cluster, or any number of other configurations. The memory 204 may include random access memory (RAM), read-only memory, flash memory, or any other suitable storage system.

[0073] Processor 202 may be connected via system interconnect 206 (e.g., The computing device 200 is connected to an input / output (I / O) device interface 208 suitable for connecting the computing device 200 to one or more I / O devices 210. The I / O devices 210 may include, for example, a keyboard and a pointing device, wherein the pointing device may include a touch pad or a touch screen, etc. The I / O devices 210 may be built-in components of the computing device 200, or may be devices externally connected to the computing device 200.

[0074] The processor 202 may also be linked to a display interface 212 adapted to connect the computing device 200 to a display device 214 via a system interconnect 206. The display device 214 may include a display screen as a built-in component of the computing device 200. The display device 214 may also include a computer monitor, a television, or a projector, etc., externally connected to the computing device 200. In addition, a network interface controller (NIC) 216 may be adapted to connect the computing device 200 to a network 218 via the system interconnect 206. In some embodiments, the NIC 216 may use any suitable interface or protocol (such as an Internet Small Computer System Interface, etc.) to transmit data. The network 218 may be a cellular network, a radio network, a wide area network (WAN), a local area network (LAN), or the Internet, etc. A remote device 220 may be connected to the computing device 200 via the network 218.

[0075] In some examples, processor 202 may be linked to storage device 222 via system interconnect 206, and storage device 222 may include training corpus 224, learning and evaluation module 226, multi-objective optimization module 228, model evaluation module 230, model set 232, and user selection interface 234. Training corpus 224 includes a combination of Figure 1 The training data set 104, the test data set 106, the parameter vector 108 and the edge correlation metric 110 described above. The learning and evaluation module 226 generates an initial set of DL models and corresponds to the above Figure 1 The multi-objective optimization module 228 generates a set of objective functions based on the performance function and evaluates the objective functions to generate a set of DL models 232, as described above with respect to Figure 1 The model evaluation module 230 evaluates the DL model set 232 to verify the performance of the DL model and refine the DL model if the actual performance is different from the expected performance, as described above with respect to Figure 1 The user selection interface 234 enables the user to select Figure 1 The described techniques select one or more DL models for deployment on an edge device. In some embodiments, an edge device can be communicatively coupled to a computing device as a remote device 220 .

[0076] It should be understood that Figure 2 The block diagram is not intended to indicate that computing device 200 will include Figure 2 Instead, computing device 200 may include Figure 2202). In addition, any functionality of the learning and evaluation module 226, the multi-objective optimization module 228, the model evaluation module 230, and the user selection interface 234 is partially or completely implemented in hardware and / or the processor 202. For example, the functionality can be implemented using a dedicated integrated circuit, logic implemented in an embedded controller, or logic implemented in the processor 202. In some embodiments, the functionality is implemented using logic, where the logic referred to herein may include any suitable hardware (e.g., a processor, etc.), software (e.g., an application, etc.), firmware, or any suitable combination of hardware, software, and firmware.

[0077] Figure 3 is a process flow diagram of an example method for generating a collection of DL models. Method 300 may be implemented using any suitable computing device, such as Figure 2 computing device 200.

[0078] At block 302, an initial set of deep learning (DL) models are trained using the set of training data. A topology of each of the DL models is determined based on a parameter vector that specifies properties of the DL models, such as the number of layers and the number of nodes per layer for each model in the initial set of DL models.

[0079] At block 304, a set of estimated performance functions is calculated for each of the DL models in the initial set. The estimated performance functions are calculated based on a set of edge-related metrics such as inference time, model size, and test accuracy. The estimated performance functions provide sampled performance values ​​for calculating multiple objective functions.

[0080] At block 306, multiple objective functions are calculated based on the set of estimated performance functions. The estimated performance functions provide sampled performance values ​​for calculating the multiple objective functions. The objective functions describe how the performance characteristics of the DL model change due to changes in each topology in the DL model, such as the number of layers, the number of nodes per layer, etc.

[0081] At block 308, a final set of DL models is generated based on the objective function. The final set of DL models may be determined by identifying model parameters that lead to a particular objective, such as minimizing inference time, maximizing accuracy, etc. In some embodiments, generating the final set of DL models includes calculating a Pareto front corresponding to a plot of DL model parameters calculated by the objective function versus DL model performance.

[0082] In block 310, the performance of the DL models in the final DL model set is evaluated to determine whether the performance predicted by the objective function is consistent with the actual performance of the DL model. If the performance of one of the DL models predicted by the corresponding objective function differs from the actual performance of the DL model by a threshold error standard, the DL model can be replaced with a new DL model by adjusting the topology of the DL model and retraining the DL model.

[0083] At box 312, the user may select one or more DL models from the final set of DL models for deployment to the edge device. For example, the user interface may enable the user to specify a goal and generate a ranked list of top DL models that are ranked according to the specified goal. The top models may be displayed to the user, allowing the user to select one or more DL models for deployment. If multiple DL models are deployed to the edge device, each of the DL models makes a prediction based on a common DL model input, and the final prediction is determined based on a voting scheme.

[0084] Figure 3 The process flow diagram of the method 300 is not intended to indicate that the operations of the method 300 will be performed in any particular order, or that all operations of the method 300 are included in every case. In addition, the method 300 may include additional operations. Additional changes may be made to the above method 300 within the scope of the subject matter.

[0085] 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 carrying computer-readable program instructions for causing a processor to implement various aspects of the present invention.

[0086] A computer-readable storage medium may be a tangible device that can hold and store instructions used by an instruction execution device. A computer-readable storage medium may be, for example, but not limited to, an electrical storage device, a magnetic storage device, an optical storage device, an electromagnetic storage device, a semiconductor storage device, or any suitable combination of the above. More specific examples of computer-readable storage media (a non-exhaustive list) include: a portable computer disk, 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 disk read-only memory (CD-ROM), a digital versatile disk (DVD), a memory stick, a floppy disk, a mechanical encoding device, such as a punch card or a raised structure in a groove on which instructions are stored, and any suitable combination of the above. The computer-readable storage medium used herein is not to be interpreted as a transient signal itself, such as a radio wave or other freely propagating electromagnetic wave, an electromagnetic wave propagating through a waveguide or other transmission medium (e.g., a light pulse through a fiber optic cable), or an electrical signal transmitted through a wire.

[0087] The computer-readable program instructions described herein can be downloaded from a computer-readable storage medium to each computing / processing device, or downloaded to an external computer or external storage device via a network, such as the Internet, a local area network, a wide area network, and / or a wireless network. The network can include copper transmission cables, optical fiber transmissions, wireless transmissions, routers, firewalls, switches, gateway computers, and / or edge servers. The network adapter card or network interface in each computing / processing device receives the computer-readable program instructions from the network and forwards the computer-readable program instructions for storage in the computer-readable storage medium in each computing / processing device.

[0088] The computer program instructions for performing the operation of the present invention may be assembly instructions, instruction set architecture (ISA) instructions, machine instructions, machine-related instructions, microcode, firmware instructions, state setting data, or source code or object code written in any combination of one or more programming languages, including object-oriented programming languages, such as Smalltalk, C++, etc., and conventional procedural programming languages, such as "C" language or similar programming languages. Computer-readable program instructions may be executed entirely on a user's computer, partially on a user's computer, as an independent software package, partially on a user's computer, partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer via any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., using an Internet service provider to connect via the Internet). In some embodiments, an electronic circuit, such as a programmable logic circuit, a field programmable gate array (FPGA), or a programmable logic array (PLA), may be personalized by utilizing the state information of the computer-readable program instructions, and the electronic circuit may execute the computer-readable program instructions, thereby realizing various aspects of the present invention.

[0089] Various aspects of the present invention are described herein with reference to the flow charts and / or block diagrams of the methods, devices (systems) and computer program products according to embodiments of the present invention. It should be understood that each box of the flow chart and / or block diagram and the combination of each box in the flow chart and / or block diagram can be implemented by computer-readable program instructions.

[0090] These computer-readable program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, thereby producing a machine, so that when these instructions are executed by the processor of the computer or other programmable data processing device, a device that implements the functions / actions specified in one or more boxes in the flowchart and / or block diagram is generated. These computer-readable program instructions can also be stored in a computer-readable storage medium, and these instructions cause the computer, programmable data processing device, and / or other equipment to work in a specific manner, so that the computer-readable medium storing the instructions includes a manufactured product, which includes instructions for implementing various aspects of the functions / actions specified in one or more boxes in the flowchart and / or block diagram.

[0091] Computer-readable program instructions may also be loaded onto a computer, other programmable data processing apparatus, or other device so that a series of operating steps are performed on the computer, other programmable data processing apparatus, or other device to produce a computer-implemented process, thereby causing the instructions executed on the computer, other programmable data processing apparatus, or other device to implement the functions / actions specified in one or more boxes in the flowchart and / or block diagram.

[0092] The flow chart and block diagram in the accompanying drawings show the possible architecture, function and operation of the system, method and computer program product according to multiple embodiments of the present invention. In this regard, each square box in the flow chart or block diagram can represent a part of a module, program segment or instruction, and a part of the module, program segment or instruction includes one or more executable instructions for realizing the specified logical function. In some alternative implementations, the function marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two continuous square boxes can actually be executed substantially in parallel, and they can sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs the specified function or action, or can be implemented with a combination of special hardware and computer instructions.

[0093] Reference now Figure 4, depicts an illustrative cloud computing environment 400. As shown, cloud computing environment 400 includes one or more cloud computing nodes 402, with which local computing devices used by cloud consumers, such as, for example, personal digital assistants (PDAs) or cellular phones 404A, desktop computers 404B, laptop computers 404C, and / or automotive computer systems 404N, can communicate. Nodes 402 can communicate with each other. They can be grouped physically or virtually (not shown), in one or more networks, such as the private, community, public, or hybrid clouds described above, or a combination thereof. This allows cloud computing environment 400 to provide infrastructure, platform, and / or software as a service for which cloud consumers do not need to maintain resources on local computing devices. It should be understood that Figure 4 The types of computing devices 404A-N shown in are merely illustrative, and computing node 402 and cloud computing environment 400 may communicate with any type of computerized device over any type of network and / or network-addressable connection (eg, using a web browser).

[0094] Reference now Figure 5 , showing a cloud computing environment 400 ( Figure 4 ) provides a collection of functional abstraction layers. It should be understood in advance that Figure 5 The components, layers and functions shown in are only illustrative, and embodiments of the present invention are not limited thereto. As shown in the figure, the following layers and corresponding functions are provided.

[0095] The hardware and software layer 500 includes hardware and software components. Examples of hardware components include mainframes, in one example, System; a server based on RISC (Reduced Instruction Set Computer) architecture; in one example, an IBM System; IBM System; IBM systems; storage devices; network and networking components. Examples of software components include network application server software, in one example IBM Application server software; and database software, in one example IBM Database software. (IBM, zSeries, pSeries, xSeries, BladeCenter, WebSphere and DB2 are trademarks of International Business Machines Corporation, registered in many jurisdictions throughout the world).

[0096] The virtualization layer 502 provides an abstraction layer from which the following examples of virtual entities can be provided: virtual servers; virtual storage; virtual networks, including virtual private networks; virtual applications and operating systems; and virtual clients. In one example, the management layer 504 can provide the functions described below. Resource provisioning provides dynamic procurement of computing resources and other resources that are used to perform tasks in a cloud computing environment. As resources are utilized in a cloud computing environment, metering and pricing provide cost tracking, as well as billing or invoicing for the consumption of these resources. In one example, these resources can include application software licenses. Security provides authentication for cloud consumers and tasks, and protects data and other resources. The user portal provides access to the cloud computing environment for consumers and system administrators. Service level management provides cloud computing resource allocation and management to meet the required service levels. The planning and implementation of service level agreements (SLAs) provide for pre-arrangement and purchase of cloud computing resources in anticipation of future demand based on the SLAs.

[0097] The workload layer 506 provides examples of functions that the cloud computing environment can be used for. Examples of workloads and functions that can be provided from this layer include: mapping and navigation; software development and lifecycle management; virtual classroom teaching; data analysis processing; transaction processing; and performing natural language processing (NLP) techniques.

[0098] The embodiments of the present invention have been described above, and the above description is exemplary, not exhaustive, and is not limited to the disclosed embodiments. 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 terms used herein are selected to best explain the principles of the embodiments, practical applications, or technical improvements to the technology in the market, or to enable other persons of ordinary skill in the art to understand the embodiments disclosed herein.

Claims

1. A method for generating a collection of deep learning DL models, the method include: Training an initial set of deep learning (DL) models of different topologies on the training data, wherein a topology of each DL model in the initial set of DL models is determined based on a parameter vector; wherein training the initial set of DL models comprises generating, for each of a plurality of edge-related metrics associated with a plurality of resource constraints associated with the edge device, a set of estimated performance functions for each of the DL models in the initial set, wherein each estimated performance function comprises a set of values ​​calculated for each of the plurality of edge-related metrics, the set of values ​​describing how the performance of each DL model varies across a range of parameters with respect to each of the plurality of edge-related metrics; for each of a plurality of edge-related metrics, generating a plurality of objective functions based on the set of estimated performance functions; training a plurality of final DL models selected from the initial set based on a plurality of objective optimizations of the generated plurality of objective functions, wherein the plurality of final DL models are trained using new model parameters, and for each of the plurality of final DL models, a new estimated performance function is calculated with respect to each of a plurality of edge-related metrics, wherein in response to detecting that a difference between a new estimated performance function of a final DL model from the plurality of final DL models and an estimated performance function of a DL model from the initial set of DL models exceeds a threshold error criterion, using the new estimated performance function to generate an updated plurality of objective functions and produce a new set of final DL models; receiving a user selection of a DL model selected from the new set of final DL models; and Deploy the selected DL model to edge devices.

2. The method of claim 1, comprising adjusting the topology of one of the models in the final DL model set upon determining that the performance of the DL model predicted by the objective function differs from the actual performance of the DL model by a threshold error criterion.

3. The method of claim 1, wherein receiving the user selection comprises generating a user interface that enables the user to specify a goal, and displaying at the user interface a ranked list of top-ranked DL models sorted according to the specified goal.

4. The method of claim 1 , comprising deploying a plurality of DL models to the edge device, and wherein each of the DL models makes a prediction based on a common DL model input, and wherein a final prediction is determined based on a voting scheme. 5 . The method of claim 1 , wherein generating the final DL model set based on the objective function comprises calculating a Pareto front of a graph of DL model parameters calculated by the objective function versus DL performance.

6. The method of claim 1, wherein the edge-related metrics include inference time, model size, and test accuracy.

7. The method of claim 1, wherein the parameter vector includes values ​​describing the number of layers and the number of nodes per layer for each model in an initial set of DL models. The method of claim 1 , wherein the selected DL model is a classifier.

9. A system for generating an ensemble of deep learning (DL) models, include: a storage device for storing a training corpus including training data, a parameter vector, and a plurality of edge-related metrics associated with a plurality of resource constraints associated with the edge device; and A processor, configured to execute the method according to any one of claims 1-8.

10. A computer program product for generating a collection of deep learning (DL) models, comprising a computer-readable storage medium having program instructions embodied therein, wherein the computer-readable storage medium itself is not a transient signal, and wherein the program instructions are executable by a processor to cause the processor to perform a method according to any one of claims 1-8.

11. A system for generating a collection of deep learning (DL) models, the system comprising modules respectively configured to perform the steps of the method according to any one of claims 1 to 8.

Citation Information

Patent Citations

  • Quick evolution method for optimized deep convolution neural network structure

    CN108334949A

  • A method and apparatus for training a model

    CN109325541A

  • Hyper-parameter selection method and device, hyper-parameter use method and device and electronic equipment

    CN109711548A

  • Optimal solution relation display apparatus and optimal solution relation display method

    US20100057410A1