Multi-device multi-neural network application splitting reasoning method for energy consumption optimization in edge-end environment
By adopting a split inference method for multi-device and multi-neural network application optimization in the industrial Internet, combining genetic algorithms and greedy strategies, the challenges of deep neural network models in terminal equipment inference energy consumption and resource allocation are solved, and the challenge of deep neural network models is realized. The efficient collaborative reasoning and resource optimization of multi-DNN models solve the limitations of edge computing methods in the existing technology in large-scale and complex environments, significantly reducing the energy consumption of end devices and extending battery life.
Patent Information
- Application Number
- CN202410975156.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-19
- Publication Date
- 2024-11-15
AI Technical Summary
In the industrial Internet, the inference energy consumption problem of deep neural network models on end devices is difficult to optimize. The existing edge computing methods have limitations in model splitting and deployment, which is difficult to meet large-scale computing tasks and complex edge-end environments. Resource allocation requirements.
A multi-device multi-neural network application split inference method optimized for energy consumption under edge-end environment is adopted. By modeling the DNN model, computing environment, inference cost and delay, combining genetic algorithms and greedy strategies, resource allocation and Deploy strategies to realize collaborative inference of multiple complex DNN models, optimize resource utilization of end devices and edge servers, ensure the accuracy and real-timeness of computing tasks, and minimize the energy consumption of end devices.
Support large-scale heterogeneous end devices, realize efficient collaborative work of multiple DNN models, optimize resource allocation, significantly reduce the energy consumption of end devices, extend their battery life, and improve the resource utilization and service quality of edge computing networks.
Smart Images

Figure CN118964006A_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the field of computer service technology and relates to a multi-device multi-neural network application splitting reasoning method for energy consumption optimization in an edge environment. The present invention covers efficient splitting technology of deep neural network models, intelligent deployment strategies in a multi-server environment, and reasoning algorithms for optimizing power consumption of edge devices under cost and end-to-end maximum delay constraints. Background Art
[0002] The Industrial Internet of Things (IIoT) provides a powerful support platform for the intelligence and automation of traditional industrial fields. With the rapid development of the Industrial Internet, its application scenarios are becoming increasingly extensive, covering multiple fields such as intelligent manufacturing, intelligent transportation, intelligent monitoring, and agricultural automation. The intelligent systems deployed in these scenarios, especially real-time data processing and intelligent decision-making capabilities, have become a hot topic of research. The integration of artificial intelligence (AI) and deep learning (DL) technologies provides end devices with the ability to perform complex tasks.
[0003] Deep Neural Networks (DNN) have performed well in tasks such as image recognition and pattern detection, and have become a key technology in IIoT systems. However, the reasoning of DNN models usually requires a lot of computing resources, which is a huge challenge for end devices with limited battery capacity and strict requirements on battery life. How to optimize the energy consumption of end devices and extend their battery life while ensuring the accuracy and real-time performance of computing tasks has become an urgent problem to be solved.
[0004] The traditional DNN reasoning process is usually completed on a cloud server, and then the results are sent back to the end device. Although this method can utilize the powerful computing power of the cloud server, it also brings higher server costs, higher latency and bandwidth consumption, resulting in difficulty in meeting real-time requirements and high costs. Therefore, most current research adopts the edge computing model.
[0005] Edge computing effectively reduces latency and improves response speed by migrating data processing tasks closer to the data source. It also utilizes the computing power of the end device and reduces server costs to a certain extent. In the intelligent system of IIOT, the application of edge computing is mainly reflected in deploying DNN models on edge servers close to the end devices to achieve rapid data processing and analysis. However, the existing edge computing methods have certain limitations in model splitting and deployment. First, the number of devices targeted by the policy generation algorithm is small, which makes it difficult to adapt to large-scale computing tasks and complex edge environments. Secondly, the deployment structure is single and fails to fully utilize the resources of multiple edge servers, which is not conducive to achieving optimal resource allocation in a distributed heterogeneous edge environment. In addition, with the continuous enrichment of IIoT intelligent systems, the complexity of the computing tasks involved continues to increase. A single DNN model can no longer meet the requirements of complex tasks, and multiple complex DNN models need to work together, which further increases the difficulty of model splitting and offloading decisions and resource allocation on the end device. Summary of the invention
[0006] In order to solve the energy consumption problem of deep neural network model reasoning on end devices in the industrial Internet, the present invention provides a multi-device multi-neural network application split reasoning method for energy consumption optimization in an edge environment. The present invention is applicable to a multi-edge server environment, and supports large-scale heterogeneous end devices to reason multiple different complex DNNs with optimized power consumption. The method models the DNN model, computing environment, reasoning cost, end-to-end delay, and end device power consumption, and combines genetic algorithms and greedy strategies to generate resource allocation, DNN partitioning and deployment strategies for end devices and edge servers under the constraints of cost constraints and maximum end-to-end delay, so that the end device and the edge server can collaborate on the reasoning model, while ensuring the accuracy and real-time performance of the computing task, minimizing the energy consumption of the end device and extending its maintenance cycle. The implementation of this method will bring more efficient, flexible and economical intelligent solutions to multiple application fields of IIoT, and promote the in-depth application of deep learning technology in various IIoT application scenarios.
[0007] In order to achieve the above object, the present invention adopts the following technical solutions:
[0008] A multi-device multi-neural network application split reasoning method for energy consumption optimization in an edge environment includes the following steps:
[0009] Step S1: Distributed DNN application reasoning modeling:
[0010] In this stage, the structure, data transmission characteristics, and computing resource requirements of the DNN model are analyzed and modeled in detail. At the same time, the hardware configuration, energy consumption characteristics, and data transmission of the end device are modeled to evaluate the energy consumption under different split deployment schemes. This step supports a large number of end devices and allows multiple DNN models to be deployed on each end device. During the modeling process, the computational cost of the current task of the end device and the communication overhead between end devices will be considered.
[0011] Step S2: Multi-edge and multi-terminal computing environment data collection:
[0012] In order to meet the input requirements of the split inference method of multi-device and multi-neural network applications for energy consumption optimization in the edge environment, this step focuses on collecting key data in the edge computing environment, including the energy consumption ratio, computing power, available memory and network bandwidth of each end device; as well as the maximum allocatable computing power, memory, bandwidth, and computing, memory and data transmission prices of each edge server; by standardizing the description of these elements, the data collection phase is committed to forming a comprehensive and structured data set to provide basic information for the split offloading algorithm to support the calculation of subsequent optimization and decision-making processes, and make full use of multiple different servers under cost constraints.
[0013] Step S3: DNN model inference data analysis and execution delay prediction:
[0014] In order to meet the input requirements of the split reasoning method for multi-device multi-neural network applications for energy consumption optimization in the edge environment, the DNN model analysis phase needs to conduct in-depth analysis of the neural network structure planned to be deployed on each end device, understand its structure, and analyze the model's parameter scale, computing power, memory requirements, input and output data volume, etc. layer by layer. Combined with the modeling data of the edge computing environment in step S2, the reasoning delay of each layer of the neural network on different end devices and edge servers is predicted. This refined analysis provides a solid foundation for related calculations in subsequent energy consumption, reasoning cost, and end-to-end delay models.
[0015] Step S4: Generate DNN partition offloading strategy based on energy consumption:
[0016] Based on the data and analysis results collected from the edge computing environment in steps S2 and S3, the end-to-end delay and data transmission delay of the DNN model under a specific partition deployment scheme can be calculated, and then the inference power consumption and transmission power consumption can be calculated.
[0017] With the help of advanced optimization algorithms and greedy strategies suitable for this problem, the optimal splitting and unloading scheme and resource allocation scheme are generated. In this process, the present invention ensures that each DNN model to be deployed is divided into appropriate sub-models, and allocates the sub-models to the most suitable hardware devices according to the hardware resource characteristics and model characteristics, and allocates the corresponding computing resources at the same time. This step ensures the maximum utilization of multiple different servers in the edge computing environment under cost constraints, thereby achieving the goal of minimizing the power consumption of end devices under the maximum end-to-end delay constraints of each model. Through efficient algorithm design, this step also ensures the convergence speed of the algorithm, making the optimization process more stable and efficient.
[0018] Compared with the prior art, the present invention has the following advantages:
[0019] 1. Support a large number of end devices
[0020] The present invention particularly optimizes the support capability for large-scale end devices. When facing hundreds of end devices, this algorithm can not only effectively handle huge amounts of data and complex task requirements, but also still obtain an optimized splitting and unloading strategy under the constraints of cost and end-to-end delay. This is particularly important for application scenarios such as large-scale end device collections and large-scale sensor networks, which often require optimizing energy consumption while ensuring real-time performance at a certain cost.
[0021] 2. Support deployment of multiple DNN models on each end device
[0022] The present invention allows multiple deep neural network models to be deployed and inferred on a single end device, which greatly increases the flexibility and functionality of the end device. Through intelligent splitting and offloading strategies, the present invention ensures the efficient coexistence and collaborative work of multiple models on the same hardware platform, thereby providing the end device with richer and more powerful intelligent processing capabilities.
[0023] 3. Make full use of multiple different servers in the edge computing environment under cost constraints
[0024] The present invention combines the characteristics of actual IIoT scenarios and realizes full utilization of multiple servers dispersed in the edge computing environment through refined resource allocation and task scheduling under cost constraints. Whether in terms of computing power, storage resources or network bandwidth, this algorithm can perform intelligent optimization according to actual needs and cost-effectiveness, thereby improving the resource utilization and service quality of the entire edge computing network.
[0025] 4. Faster algorithm convergence speed
[0026] The present invention adopts efficient optimization algorithms and strategies, which significantly improves the convergence speed. While ensuring the optimization quality, the number of iterations is greatly reduced, so that the system can quickly respond to environmental changes and task requirements, and provide users with more real-time and dynamic intelligent services. This has important practical significance for application scenarios that require rapid decision-making and response, such as intelligent monitoring. BRIEF DESCRIPTION OF THE DRAWINGS
[0027] Figure 1 Flowchart of distributed reasoning method applied to multiple deep neural networks;
[0028] Figure 2 Flowchart of the optimization algorithm for partition offloading scheme. DETAILED DESCRIPTION
[0029] The technical solution of the present invention is further described below in conjunction with the accompanying drawings, but is not limited thereto. Any modification or equivalent replacement of the technical solution of the present invention without departing from the spirit and scope of the technical solution of the present invention should be included in the protection scope of the present invention.
[0030] The present invention provides a multi-device multi-neural network application splitting reasoning method for energy consumption optimization in an edge environment, such as Figure 1 As shown, the method comprises the following steps:
[0031] Step S1: Distributed DNN application reasoning modeling:
[0032] First, we analyze and model the DNN model and its application. As the mathematical basis of the optimization algorithm, the basic elements of modeling include:
[0033] (1) DNN structure: used to describe the information of each layer of the DNN and the relationship between layers. Specifically, the information of each layer includes the amount of floating-point calculations, the amount of memory required for calculations, and the amount of input and output data. Secondly, the structure of the DAG graph is used to describe the relationship between each layer.
[0034] (2) Computing environment: used to describe the computing power of the end device and the server, the energy consumption ratio of the end device, and the network topology between them, including the bandwidth and latency of the network connection.
[0035] (3) Partition deployment scheme: A partition is a subgraph of a DNN. A partition scheme is a collection of DNN partitions, and the sum of partitions belonging to the same DNN in the partition scheme must be a complete DNN model. Each DNN partition will run as a container, and its deployment structure is described as the end device computing resources (CPU) allocated to the head sub-model and the server location and corresponding server computing resources (CPU) of the tail sub-model deployment.
[0036] (4) End-to-end latency: This includes the local inference latency of the end device, data transmission latency, and inference latency of the edge server. The calculation formula is as follows:
[0037]
[0038]
[0039]
[0040] In the formula, t1 represents the local inference delay of the end device, t2 represents the data transmission delay, and t3 represents the inference delay of the edge server. represents the end-to-end inference latency of the neural network application a deployed on the k-th end device, n is the number of layers of the neural network a, p represents the split point, and its value is [0,n]. When the value is 0 and n, it represents pure edge and pure end inference respectively. d i represents the floating point calculation amount of the i-th layer neural network, represents the computing resources (CPU) allocated by end device k to neural network application a, represents the computing resources (CPU) allocated to the neural network application a in the jth edge server, represents the amount of data output by the neural network application a after executing in layer p, represents the amount of data output by the neural network application a after executing at layer n, represents the network bandwidth between end device k and edge server j, Represents the delay in establishing a network connection between end device k and edge server j.
[0041] (5) Inference cost: includes the cost of transmitting data from the end device to the edge server, the edge server computing cost, and the edge server memory cost. The calculation formula is as follows:
[0042]
[0043] In the formula, t2 and t3 are the same as (4), represents the cost of reasoning about a neural network application a on the edge server on the k-th end device, represents the CPU usage price of the jth edge server, in yuan / core·second. represents the memory usage price of the jth edge server, in RMB / MB·second. represents the network bandwidth between end device k and edge server j, It represents the network usage price per Mbps of the j-th edge server, in yuan / second.
[0044] (6) End device power consumption: includes the end device computing power consumption and the end device sending data to the server. The calculation formula is as follows:
[0045]
[0046] In the formula, t1 and t3 are the same as (4), represents the energy consumption of inference neural network application a on the k-th end device, represents the standby power consumption of the kth terminal device, represents the full computing load power consumption of the k-th end device, Indicates the power consumption of data transmission at the kth end, in watts (W).
[0047] Step S2: Multi-edge and multi-terminal computing environment data collection:
[0048] The data of the edge computing environment includes the energy consumption ratio, computing power, available memory and network bandwidth performance indicators of each end device; as well as the maximum allocatable computing power, memory, bandwidth of each edge server, and the prices of computing, memory and data transmission.
[0049] The floating-point computing capability and energy consumption ratio of the end device are tested through the linear system package (Linear system package) using the Gaussian elimination method to solve N-dimensional first-order dense linear algebraic equations to evaluate the floating-point performance of high-performance computers; the relevant data of the edge server is obtained through the product documentation of Alibaba Cloud's edge node service ENS.
[0050] Step S3: DNN model inference data analysis and execution delay prediction:
[0051] The torchstat library is used to implement the analysis of the DNN model, and a transmission data volume calculation module is added on this basis to obtain the model structure and quantify the calculation characteristics. In the specific implementation steps, the DNN model is first imported into the analysis environment, and then the torchstat library will analyze the model layer by layer to calculate key information such as the parameter scale, calculation complexity, memory requirements, and input and output data volume of each layer. These analysis data will be collected and used in subsequent energy consumption calculations and optimization decision-making processes, ensuring the accuracy of model deployment and providing detailed data support for energy consumption modeling and performance optimization.
[0052] Step S4: Generate DNN partition offloading strategy based on energy consumption:
[0053] Steps S2 and S3 analyze the data collected by the edge computing environment and the DNN model, construct an optimization problem, and combine the greedy strategy with the genetic algorithm. The population individuals in the genetic algorithm represent the partitioning scheme, edge service deployment scheme, and edge server resource scheme. Then, the greedy strategy is applied according to the scheme given by the genetic algorithm to further determine the resource allocation scheme on the end device.
[0054] The present invention utilizes genetic algorithms to optimize partitioning schemes, edge service deployment schemes, and edge server resource schemes. An important consideration is to determine the genetic representation of the partition offloading scheme and to define crossover and mutation operations in the genetic algorithm.
[0055] The main process of the algorithm is as follows Figure 2 ,First, the parameters of the genetic algorithm, including the number of iterations and population size, are calculated according to the number of DNN models to be deployed; then the chromosome population is initialized according to the parameters, and each chromosome is encoded using Gray code;
[0056] In the process of decoding the chromosome, the chromosome is divided into several segments, each of which contains three key information: the split point of the DNN model, the unloading location of the tail sub-model, and the computing resource allocation of the corresponding server. After the decoding is completed, this information can be further used to adopt a greedy strategy to allocate computing resources for multiple models deployed on the end device. Considering the above three information, the inference delay and data transmission delay of the model on the server can be calculated according to the delay calculation model determined in step S1. Given that each model has its maximum end-to-end delay constraint, the maximum tolerable inference time on the end device can be determined, and the minimum computing resource allocation required for the end device can be calculated accordingly.
[0057] According to the power consumption calculation model determined in step S1, it can be found that when the model splitting point, the tail sub-model unloading position and the server computing resource allocation are determined, the power consumption of the terminal device is only related to the computing resource allocation of the terminal device, and as the computing resources allocated to each DNN model on the terminal device increase, the power consumption decreases. Therefore, it is necessary to further reasonably allocate the computing resources of each DNN model under the resource constraints of the terminal device, so as to optimize the power consumption of the overall terminal device.
[0058] The present invention adopts a greedy strategy for resource allocation, that is, the resource allocation is performed according to the computational amount of the DNN sub-model unloaded to the end device. At the same time, in order to meet the delay constraint, it is also necessary to check whether the schemes allocated by the greedy strategy all meet the requirements of the minimum required computing resources. If it meets the requirements, the allocation is performed according to the greedy strategy; if it does not meet the requirements, the minimum computing resource allocation amount is normalized to obtain the optimization scheme after one iteration. Subsequently, this scheme needs to be evaluated, the power consumption of the end device under the scheme is calculated, and it is checked whether all constraints are met. Then, the iterative process of the genetic algorithm is continued, including the selection, crossover and mutation operations of chromosomes, to generate a better strategy. In the crossover operation, the present invention adopts a two-point crossover method, that is, two points are randomly selected between two chromosomes, and the data between the two points is exchanged. In the mutation operation, the present invention uses a fixed mutation rate to randomly replace the 0 and 1 codes in the chromosome. After reaching the number of iterations, the optimal solution for the split unloading strategy and resource allocation of all models is finally obtained.
[0059] In addition, it should be understood that although the present specification is described according to implementation modes, not every implementation mode contains only one independent technical solution. This description of the specification is only for the sake of clarity. Those skilled in the art should regard the specification as a whole. The technical solutions in each embodiment may also be appropriately combined to form other implementation modes that can be understood by those skilled in the art.
Claims
1. A multi-device multi-neural network application splitting inference method for energy consumption optimization in an edge environment, characterized in that: The following steps are involved: Step 1: Distributed DNN application reasoning modeling; Step 2: Multi-party and multi-terminal computing environment data collection; Step 3: DNN model inference data analysis and execution delay prediction; Step 4: Generate DNN partition offloading strategy based on energy consumption.
2. According to claim 1, a multi-device multi-neural network application splitting reasoning method for energy consumption optimization in an edge environment is characterized by: In step 1, the basic elements of modeling include: (1) DNN structure: used to describe the information of each layer of the DNN and the relationship between layers. Specifically, the information of each layer includes the amount of floating-point calculations, the amount of memory required for calculations, and the amount of input and output data. Secondly, the DAG graph structure is used to describe the relationship between each layer. (2) Computing environment: used to describe the computing power of the end device and the server, the energy consumption ratio of the end device, and the network topology between them, including the bandwidth and latency of the network connection; (3) Partition deployment scheme: A partition is a subgraph of a DNN. A partition scheme is a collection of DNN partitions. The sum of partitions belonging to the same DNN in a partition scheme must be a complete DNN model. Each DNN partition will run as a container. Its deployment structure is described by the end device computing resources allocated to the head sub-model and the server location and corresponding server computing resources deployed by the tail sub-model. (4) End-to-end latency: This includes the local inference latency of the end device, data transmission latency, and inference latency of the edge server. The calculation formula is as follows: In the formula, t1 represents the local inference delay of the end device, t2 represents the data transmission delay, and t3 represents the inference delay of the edge server. represents the end-to-end inference latency of the neural network application a deployed on the k-th end device, n is the number of layers of the neural network a, p represents the split point, and its value is [0,n]. When the value is 0 and n, it represents pure edge and pure end inference respectively. d i represents the floating point calculation amount of the i-th layer neural network, represents the computing resources allocated by end device k to neural network application a, represents the computing resources allocated to the neural network application a in the jth edge server, represents the amount of data output by the neural network application a after executing in layer p, represents the amount of data output by the neural network application a after executing at layer n, represents the network bandwidth between end device k and edge server j, represents the delay in establishing a network connection between end device k and edge server j; (5) Inference cost: includes the cost of transmitting data from the end device to the edge server, the edge server computing cost, and the edge server memory cost. The calculation formula is as follows: In the formula, t2 and t3 are the same as (4), represents the cost of reasoning about a neural network application a on the edge server on the k-th end device, represents the CPU usage price of the jth edge server, in yuan / core·second. represents the memory usage price of the jth edge server, in RMB / MB·second. represents the network bandwidth between end device k and edge server j, represents the network usage price per Mbps of the jth edge server, in yuan / second; (6) End device power consumption: includes the end device computing power consumption and the end device sending data to the server. The calculation formula is as follows: In the formula, t1 and t3 are the same as (4), represents the energy consumption of inference neural network application a on the k-th end device, represents the standby power consumption of the kth terminal device, represents the full computing load power consumption of the k-th end device, Represents the power consumption of data transmission at the kth end, in watts.
3. According to claim 1, a multi-device multi-neural network application splitting reasoning method for energy consumption optimization in an edge environment is characterized by: In step 2, the data of the edge computing environment includes the energy consumption ratio, computing power, available memory and network bandwidth of each end device; and the maximum allocatable computing power, memory, and bandwidth of each edge server, as well as the computing, memory, and data transfer prices.
4. According to claim 1, a multi-device multi-neural network application splitting reasoning method for energy consumption optimization in an edge environment is characterized by: In step 3, DNN is implemented based on the torchstat library The model is analyzed and a transmission data volume calculation module is added on its basis to obtain the model structure and quantify the calculation characteristics.
5. According to claim 1, a multi-device multi-neural network application splitting reasoning method for energy consumption optimization in an edge environment is characterized by: In step 4, steps 2 and 3 analyze the data collected by the edge computing environment and the DNN model, construct an optimization problem, and combine the greedy strategy with the genetic algorithm. The population individuals in the genetic algorithm represent the partitioning scheme, edge service deployment scheme, and edge server resource scheme. Then, the greedy strategy is applied according to the scheme given by the genetic algorithm to further determine the resource allocation scheme on the end device.
Citation Information
Cited By
Mobile platform multi-user edge end cloud collaborative reasoning multi-objective optimization method and system
CN119420759A
Multi-User Edge-Cloud Collaborative Inference Multi-Objective Optimization Method and System for Mobile Platforms
CN119420759B
Cooperative edge intelligent reasoning path optimization method based on multi-layer graph
CN119945961A
Heterogeneous GPU cluster-oriented deep neural network model parallel reasoning method
CN120297426A
