Processing method, processing system, and processing program

The system optimizes DNN inference by using edge devices for initial tasks and sharing intermediate outputs with servers for secondary tasks, reducing data transfer and calculation time while maintaining task efficiency and privacy.

JP7552903B2Active Publication Date: 2024-09-18NIPPON TELEGRAPH & TELEPHONE CORP
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
JP2023529389
Authority / Receiving Office
JP · JP
Patent Type
Patents
Current Assignee / Owner
Filing Date
2021-06-24
Publication Date
2024-09-18
Estimated Expiration
2041-06-24

AI Technical Summary

Technical Problem

Existing methods for real-time deep neural network (DNN) inference in edge devices and cloud servers do not effectively handle different tasks on each side, leading to unnecessary data transmission and inefficient calculation distribution.

Method used

A processing system that utilizes a lightweight model on the edge device for initial inference and shares intermediate output values with a non-lightweight model on the server for secondary tasks, reducing data transfer and optimizing calculation distribution.

Benefits of technology

This approach reduces data transmission and calculation time by sharing intermediate feature maps, allowing edge devices to perform simpler tasks while server devices handle more complex tasks, enhancing performance and privacy protection.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 0007552903000004
    Figure 0007552903000004
  • Figure 0007552903000010
    Figure 0007552903000010
  • Figure 0007552903000012
    Figure 0007552903000012
Patent Text Reader

Abstract

Provided is a processing system (100) for executing inference processing in an edge device (30) and a server device (20), wherein the edge device (30) comprises an inference unit (31) that uses a DNN1 to execute inference relating to a first task for inference subject data, and a determination unit (32) that transmits, to the server device (20), an intermediate output value of the DNN1 to be used for executing inference relating to the first task so as to cause the server device (20) to execute a second task that is different from the first task and that involves a larger calculation load than the first task.
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] The present invention relates to a processing method, a processing system, and a processing program. [Background technology]

[0002] Recently, real-time applications using deep neural networks (DNNs), such as video surveillance, voice assistants, and autonomous driving, have been emerging. These real-time applications require the ability to process a large number of queries in real time with limited resources while maintaining the accuracy of the DNNs. To address this issue, a technology called model cascade has been proposed that uses a fast lightweight model and a slow non-lightweight model to speed up inference processing with little loss of accuracy.

[0003] In model cascade, multiple models including lightweight models and non-lightweight models are used. When performing inference using model cascade, estimation is first performed using a lightweight model, and if the result is reliable, the result is adopted and the process is terminated. On the other hand, if the estimation result of the lightweight model is unreliable, inference is subsequently performed using a non-lightweight model, and the result is adopted. For example, IDK Cascade (see, for example, Non-Patent Document 1) is known, which introduces an IDK (I Don't Know) classifier to determine whether the estimation result of the lightweight model is reliable. [Prior art documents] [Non-patent literature]

[0004] [Non-Patent Document 1] Wang, Xin, et al. "IDK Cascades: Fast Deep Learning by Learning not to Overthink." arXiv preprint arXiv:1706.00885 (2017). Summary of the Invention [Problem to be solved by the invention]

[0005] The method described in Non-Patent Document 1 does not consider inference, and since the learning is inspired by fine tuning, it is premised on the premise that the lightweight model on the edge side and the non-lightweight model on the cloud side perform learning for the same purpose. However, no consideration has been given to cases where different tasks are performed on the edge side and the cloud side, and if they are performed separately, the data to be inferred must be transmitted to the cloud side, which poses the problem of not being able to utilize the transmission path and the calculations performed on the edge.

[0006] The present invention has been made in consideration of the above, and aims to provide a processing method, processing system, and processing program that can utilize the results of calculations performed on an edge device and reduce the amount of transmission when different tasks are executed on the edge device and the cloud. [Means for solving the problem]

[0007] In order to solve the above-mentioned problems and achieve the object, the processing method of the present invention is a processing method for performing inference processing in an edge device and a server device, characterized in that it includes a step in which the edge device uses a first model to perform inference related to a first task on data to be inferred, and a step in which the edge device transmits an intermediate output value of the first model used to perform inference related to the first task to the server device, in order to have the server device perform a second task that is more computationally intensive than the first task and different from the first task.

[0008] Furthermore, the processing system of the present invention is a processing system that performs inference processing in an edge device and a server device, and is characterized in that the edge device has an inference unit that uses a first model to perform inference related to a first task on data to be inferred, and a transmission unit that transmits an intermediate output value of the first model used to perform inference related to the first task to the server device, in order to have the server device perform a second task that has a higher computational load than the first task and is different from the first task.

[0009] In addition, a processing program according to the present invention is a processing program for causing a computer to execute a method, and is characterized in that it causes a computer serving as an edge device in a processing system that performs inference processing in an edge device and a server device to execute the following steps: performing inference related to a first task on data to be inferred using a first model; and transmitting intermediate output values ​​of the first model used to perform inference related to the first task to the server device, in order to have the server device perform a second task that is more computationally intensive than the first task and different from the first task. Effect of the Invention

[0010] According to the present invention, when different tasks are executed in an edge device and in the cloud, it is possible to utilize the results of calculations performed in the edge device and reduce the amount of transmission. [Brief description of the drawings]

[0011] [Figure 1] FIG. 1 is a diagram illustrating an example of DNN1 and DNN2. [Diagram 2] FIG. 2 is a diagram illustrating an example of a configuration of a processing system according to an embodiment. [Diagram 3] FIG. 3 is a diagram for explaining an example of selection of base models of DNN1 and DNN2. [Figure 4] FIG. 4 is a diagram showing an outline of the structure of YOLOv3. [Diagram 5] FIG. 5 is a diagram for explaining an inference route in the embodiment. [Figure 6] FIG. 6 is a diagram illustrating an example of the structure of DNN1 and DNN2. [Figure 7] FIG. 7 is a diagram illustrating an example of the structure of DNN1 and DNN2. [Figure 8] FIG. 8 is a diagram for explaining an outline of the processing of the processing system. [Figure 9] FIG. 9 is a diagram for explaining an outline of the processing of the processing system. [Figure 10]FIG. 10 is a sequence diagram showing a process flow of the processing system according to the embodiment. [Figure 11] FIG. 11 is a diagram illustrating an example of a computer that realizes an edge device, a server device, and a setting device by executing a program. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0012] Hereinafter, an embodiment of the present invention will be described in detail with reference to the drawings. Note that the present invention is not limited to this embodiment. In addition, in the description of the drawings, the same parts are indicated by the same reference numerals.

[0013] [Embodiment Mode] In the embodiment, a processing system that performs inference processing using a trained lightweight model and a non-lightweight model is described. The lightweight model and the non-lightweight model perform inference related to different tasks. Note that, in the processing system of the embodiment, a case where a DNN (Deep Neural Network) is used as a model used in the inference processing is described as an example. Note that any neural network may be used in the processing system of the embodiment. Also, in the processing system of the embodiment, low-computational-amount signal processing and high-computational-amount signal processing may be used instead of the trained model.

[0014] In a processing system according to an embodiment, a lightweight model (e.g., DNN1 (first model)) and a non-lightweight model (e.g., DNN2 (second model)) constitute a model cascade. DNN1 is a high-speed lightweight model that performs inference related to a first task on data to be inferred (e.g., an image). DNN2 is a slow non-lightweight model that performs inference related to a second task on data to be inferred by DNN1. The second task is a task that requires a higher amount of calculation than the first task and is different from the first task.

[0015] In this way, when tasks are divided between an edge device and a server device and processed, there are problems with minimizing the amount of transmission and the total amount of calculations in the edge device and the server, and with accuracy. For example, it is common to extract features in an edge device, perform processing in the edge device using the extracted features, and then transmit the features to a server device and perform processing in the server device. However, since it is preferable to select a feature extraction function that is effective depending on the task, if different tasks are processed using features extracted using the same feature extraction function, it is possible that either the accuracy of one of them will be insufficient or the size of the feature will be excessive. Therefore, in this processing system, whether the processing is performed in an edge device using a high-speed DNN1 or in a cloud (server device) using a low-speed DNN2 is controlled according to a preset rule. When processing is performed in the server device, the edge device transmits an intermediate output value of DNN1 to the server device. In the server device, the intermediate output value is used as an input and DNN2 performs inference related to the second task.

[0016] [Lightweight and non-lightweight models] Next, we will explain DNN1 and DNN2. Figure 1 is a diagram for explaining an example of DNN1 and DNN2. A DNN generally has an input layer where data is input, multiple intermediate layers that extract features from the data input from the input layer, and an output layer that outputs so-called inference results such as probability and likelihood. The output values ​​output from each layer may be non-reversible if the input data needs to be kept anonymous.

[0017] The processing system uses DNN1 on the edge device side and DNN2 on the server device side. DNN1 is a lightweight model. In DNN1, the output of a predetermined intermediate layer is used as a feature map. The aforementioned intermediate layer is tentatively called feature extraction layer Bf1. The predetermined intermediate layer is selected, for example, as described in the model selection example below. The layer following the feature extraction layer Bf1 is called the first processing layer Bd1. The first processing layer Bd1 performs inference processing related to the first task using the feature map output by the feature extraction layer Bf1.

[0018] DNN2 is a non-lightweight model having a second processing layer Bd2. The second processing layer Bd2 performs inference related to a second task using an intermediate output value of DNN1, specifically, a feature map output from the feature extraction layer Bf1 of DNN1 as input (arrow Y1). Note that the processing system performs multitask learning between DNN1 and DNN2 in advance using learning data related to the first task and learning data related to the second task.

[0019] In this manner, in the processing system according to the embodiment, the edge device and the server device share the same feature map, and inference for different tasks is executed on the edge device side and the server device side, respectively.

[0020] This makes it possible to omit the feature extraction process when performing inference on the server device side, thereby shortening the calculation time and reducing latency.In addition, the data output from the edge device to the server device is not the data to be inferred, but a feature map extracted from the data to be inferred, making it possible to reduce the amount of data transferred from the edge device to the server device.

[0021] [Processing system] 2 is a diagram illustrating an example of a configuration of a processing system according to an embodiment. The processing system 100 according to the embodiment performs adaptive inference processing in an edge device 30 using a DNN1 and a server device 20 using a DNN2.

[0022] The server device 20 is a device that is located in a place that is logically farther away than the edge device 30. The edge device 30 is an IoT device and various terminal devices that are located in a place that is physically and logically closer to a user, and has fewer resources than the server device 20. The server device 20 and the edge device 30 are connected via a network N. The network N is, for example, the Internet.

[0023] The DNN1 of the edge device 30 is a high-speed lightweight model that performs inference related to a first task for data to be inferred (an image in the example of FIG. 1). The DNN2 of the server device 20 is a low-speed non-lightweight model that performs inference related to a second task different from the first task. The DNN1 and DNN2 configure a model cascade. The processing system 100 controls whether the edge device 30 or the server device 20 executes the processing according to a preset rule.

[0024] The server device 20 and the edge device 30 are realized by loading a predetermined program into a computer or the like including a ROM (Read Only Memory), a RAM (Random Access Memory), a CPU (Central Processing Unit), etc., and the CPU executes the predetermined program. Also, so-called accelerators such as a GPU, a VPU (Vision Processing Unit), an FPGA (Field Programmable Gate Array), an ASIC (Application Specific Integrated Circuit), or a dedicated AI (Artificial Intelligence) chip are also used. The server device 20 and the edge device 30 each have a NIC (Network Interface Card) or the like, and can communicate with other devices via electric communication lines such as a LAN (Local Area Network) or the Internet.

[0025] [Edge device] As shown in FIG. 2, the edge device 30 includes an inference unit 31 (inference unit) having a DNN1 which is a trained lightweight model, a determination unit 32 (transmission unit), and a quantization unit 33.

[0026] The inference unit 31 performs inference related to the first task for data to be inferred using the DNN1, which is a trained lightweight model. The DNN1 includes information such as model parameters. The inference unit 31 inputs data to be inferred (an image in the example of FIG. 2) to the DNN1 to obtain an inference result related to the first task. In the inference unit 31, the feature extraction layer Bf1 of the DNN1 extracts features of the data to be inferred and outputs them as a feature map, and the first processing layer Bd1 performs inference on the data to be inferred based on the feature map. For example, the inference unit 31 accepts input of an image to be inferred, processes the image to be inferred using the DNN1, and outputs an inference result related to the first task (for example, a classification result for the degree of crowding of objects appearing in the image).

[0027] The determination unit 32 determines whether or not to cause the server device 20 to perform inference related to the second task on the inference target data of the first task, in accordance with a preset rule.

[0028] For example, when the inference unit 31 classifies the degree of congestion of a subject captured in an input image, the degree of congestion is classified as either "very crowded", "crowded", "normal", "cheap", or "empty". In this case, the determination unit 32 uses a rule that is set to cause the server device 20 to perform inference related to the second task when the classification result of the inference unit 31 is "very crowded" or "crowded". When matching this rule, i.e., when the classification result of the inference unit 31 is "very crowded" or "crowded", the determination unit 32 determines to cause the server device 20 to perform inference related to the second task.

[0029] When the determination unit 32 determines that the server device 20 should perform inference related to the second task, the determination unit 32 transmits a feature map, which is an intermediate output value of the DNN1, to the server device 20 in order to cause the server device 20 to perform inference related to the second task. In other words, when the determination unit 32 determines that the server device 20 should perform inference related to the second task, the determination unit 32 outputs a feature map, which is an output of the feature extraction layer Bf1 of the DNN1, to the server device 20 to cause the server device 20 to perform inference related to the second task.

[0030] When the determination unit 32 determines that the server device 20 should execute inference related to the second task, the quantization unit 33 quantizes a feature map that is an intermediate output value of the DNN1, and outputs the quantized feature map to the server device 20. Note that the edge device 30 may encode and then quantize the feature map to be output to the server device 20. Also, the edge device 30 may omit quantization of the feature map.

[0031] [Server device] The server device 20 includes an inference unit 21 that performs inference using a trained non-lightweight model, the DNN2. The DNN2 includes information such as model parameters. As described above, the DNN2 includes the second processing layer Bd2.

[0032] The inference unit 21 uses the DNN2 to execute inference processing on the input image based on the feature map of the data to be inferred output from the edge device 30. The inference unit 21 decodes the quantized feature map output from the edge device 30 and inputs it to the second processing layer Bd2 of the DNN2. The DNN2 performs inference related to the second task using the feature map as input. The inference unit 21 obtains an inference result (e.g., a subject detection result of a subject appearing in an image) as an output of the DNN2. In the example of FIG. 2, the data to be inferred is an image. In addition, when returning the inference result to the user, the inference result obtained by the inference unit 21 may be transmitted to the edge device 30 and returned from the edge device 30 to the user.

[0033] Here, the server device 20 and the edge device 30 constitute a model cascade. Therefore, the inference unit 21 does not always perform inference related to the second task. When it is determined that the server device 20 is to execute the inference process related to the second task, the inference unit 21 accepts an input of the quantized feature map and performs inference by the second processing layer Bd2 of the DNN2.

[0034] [Example of a task] The first task in the edge device 30 is, for example, a classification task that classifies the degree of congestion from the image data of the inference target of the first task and outputs the classification result. The second task in the server device 20 is, for example, an object detection task that performs object detection for an object appearing in the image data of the inference target of the first task and outputs the detection result. The second task in the server device 20 is preferably somewhat similar to the task executed by the classification network (NW) of the edge device 30, since the second task shares a feature map, which is an intermediate output value, with the edge device 30 side to perform processing of the second processing layer Bd2. Below, an example of a combination of the first task and the second task is shown.

[0035] Specifically, the first task is to analyze the degree of congestion in a store, and the second task is to count the number of people when you want to know how many people are there if the first task classifies the store as "crowded."

[0036] The first task is to analyze the usual level of congestion in the store, and the second task is to perform person detection and person matching based on the shared feature map only when person tracking is required.

[0037] The first task is a task of detecting whether a person has entered the restricted area, and the second task is a task of counting how many people have entered the restricted area and a task of detecting and tracking the target person only if the first task infers that a person has entered the restricted area.

[0038] The first task is a task for classifying a person into male and female, and the second task is a task for performing person detection and tracking for a male who is classified as a male in the first task.

[0039] Hereinafter, an example will be described in which the edge device 30 performs a classification task and the server device 20 performs an object detection task. The classification task network is often the base of the object detection network, and has a similar configuration. In addition, since there are resource limitations on the edge side, a task with a low amount of calculation, such as a classification task, is preferable. The edge device 30 transmits a feature map to the server device 20 when it is necessary to count people or track people, and the server device 20 continues to perform object detection.

[0040] [Example of model selection for DNN1 and DNN2] In this embodiment, in order to reduce the amount of communication between the edge device 30 and the server device 20 and to avoid duplicate calculations on the cloud side, the entire network is designed so that the middle layer of the classification network of the edge device 30 and the object detection network of the server device 20 can be shared. Therefore, a specific example of selection of the base models of DNN1 and DNN2 will be described.

[0041] 3 is a diagram for explaining an example of selection of base models of DNN1 and DNN2. In this example, as shown in FIG. 3, darknet19 ((1) in FIG. 3), which is a base network of YOLOv2 that is relatively light and fast, is selected as the base model of the edge device 30 as the classification model. Then, as the object detection model, YOLOv3, which is relatively non-lightweight, is selected as the base model of the server device 20. The selected NN is just an example, and any NN may be selected as long as it is a non-lightweight NN and a lightweight NN that is fast and can share a feature extraction layer.

[0042] Figure 4 shows the outline of the YOLOv3 structure. YOLOv3 has a convolutional layer (feature extraction layer) that extracts features with a residual block 41, and Feature Pyramid Networks (FPN) 42, which is a network for object detection. Here, in order to share the feature map between the edge and cloud, we focused on the following:

[0043] First, by inserting the residual block 41, YOLOv3 maintains accuracy. For this reason, it is desirable to avoid compromising the configuration in the residual block 41. Next, in YOLOv3, it is desirable to have a configuration in which a feature map is accepted in the stage preceding the FPN 42 so that the FPN 42 can use the feature map as is to perform object detection. Note that the deeper (more) the layers, the heavier the model calculation becomes and the more parameters are used. For this reason, it is desirable for the DNN1 of the edge device 30 to be a model with shallow layers in order to be lightweight and fast.

[0044] [Route Overview] Fig. 5 is a diagram for explaining an inference route in the embodiment. As shown in Fig. 5, in the feature extraction layer of the classification NW, in the edge device 30, when a feature map that is an intermediate output value shared with the server device 20 is extracted, the first processing layer executes a classification task using this feature map (arrow Y11). Then, if a predetermined rule is met, the feature map is transmitted from the edge device 30 to the server device 20, and the second processing layer executes an object detection task using this feature map (arrow Y12). In this way, in the processing system 100, the feature map is shared, and different tasks are executed on the edge side and the cloud side.

[0045] [An example of the structure of DNN1 and DNN2] 6 and 7 are diagrams for explaining examples of the structures of DNN1 and DNN2. FIGs. 8 and 9 are diagrams for explaining an outline of the processing of the processing system 100.

[0046] First, in this example, as shown in Fig. 6, in order to avoid compromising the configuration within the residual block 41 of YOLOv3, the feature extraction layer 43 that holds the residual block 41 is placed in front of the darknet 19 selected as the base model of the edge device 30 (arrow Y21 in Fig. 6), and the feature extraction layer 43 and the first processing layer 54 are used as the DNN1 of the edge device 30. Then, as shown in Fig. 7, in the server device 20, the second processing layer 44, which has a configuration in which the feature extraction layer 43 is deleted from YOLOv3, is applied as the DNN2.

[0047] Therefore, as shown in FIG. 7, in the edge device 30, a feature map is extracted from the image in the feature extraction layer 43 using the darknet 19 reconstructed in this manner, and the extracted feature map is used to classify the degree of crowding of the subjects appearing in the input image in the first processing layer 54.

[0048] Then, when the edge device 30 determines, according to a predetermined rule, not to have the server device 20 perform inference related to the second task, it outputs the classification result of the first processing layer 54 (arrow Y32 in FIG. 7) and ends the process. For example, as shown in FIG. 8, in the normal mode, the edge device 30 monitors the congestion level within the camera and outputs the congestion level classification result (for example, "very crowded", "crowded", "normal", "easy" or "empty").

[0049] As described above, the feature extraction layer 43 in the edge device 30 has a common structure with the feature extraction layer 43 of YOLOv3, which is the base model of the server device 20. Therefore, the feature map output from the feature extraction layer 43 can be shared with the second processing layer 44 of the server device 20.

[0050] When the edge device 30 determines to have the server device 20 perform inference related to the second task according to a predetermined rule, the edge device 30 outputs a feature map, which is an intermediate output value extracted by the feature extraction layer 43, to the server device 20 (arrow Y31 in FIG. 7). Then, the server device 20 inputs this feature map to the second processing layer 44 of YOLOv3, and outputs an inference result (e.g., a person detection bbox) of the second processing layer 44 (arrow Y33 in FIG. 7).

[0051] 9, for example, in the criminal tracking mode, the edge device 30 and the server device 20 perform processing in cooperation with each other. Specifically, the user registers a person to be tracked in the server device 20 and starts tracking.

[0052] When tracking starts, the edge device 30 receives an FM transmission on signal from the server side, monitors the congestion level, and at the same time transmits a feature map, which is a shared intermediate output value, to the server device 20. In the server device 20, human detection is performed from the feature map in the second processing layer 44, and matching is performed. Then, when tracking ends, the edge device 30 receives an FM transmission off signal from the server device 20, cuts off the connection with the server device 20, and returns to the normal mode.

[0053] In this way, the calculation range in the server device 20 becomes the calculation range in the second processing layer 44. In other words, in the server device 20, calculations required for feature extraction can be omitted.

[0054] In addition, since it is sufficient that the same feature map can be shared between the edge device 30 and the server device 20, DNN1 and DNN2 are not limited to the examples in Fig. 6 and Fig. 7. DNN1 and DNN2 may be designed so that the sizes of the layers connected to the feature extraction layer Bf1 of DNN1, the first processing layer Bd1 of DNN1, and the second processing layer Bd2 of DNN2 are consistent.

[0055] In addition, in the processing system 100, since the tasks executed by the edge device 30 and the server device 20 are different, multitask learning is required between the DNN1 of the edge device 30 and the DNN2 of the server device 20. When quantization is performed, the quantization is also included in the learning.

[0056] For example, if darknet19 is selected as the base model of the edge device 30 and YOLOv3 is selected as the base model of the server device, multi-task learning can be performed using the loss function shown in formula (1). λ1 in formula (1) is a hyperparameter indicating how much importance is attached to the task by the reconstructed darknet19, and λ2 is a hyperparameter indicating how much importance is attached to the task by YOLOv3. The loss(darknet19) in formula (1) is expressed by formula (2). The loss(yolov3) in formula (1) is expressed by formula (3).

[0057]

number

[0058]

number

[0059]

number

[0060] [Processing system procedure] Fig. 10 is a sequence diagram showing the flow of processing in the processing system according to the embodiment. As shown in Fig. 7, first, in the edge device 30, when the inference unit 31 accepts input of data (e.g., an image) to be inferred (step S1), it inputs the input image to the DNN1. In the DNN1, the feature extraction layer Bf2 extracts the feature amount of the input image as a feature map (step S2) and outputs it to the judgment unit 32 (step S3). In the DNN1, the first processing layer Bd1 executes inference, for example, classification processing, for the input image based on the feature map (step S4), and outputs the inference result to the judgment unit 32 (step S5).

[0061] The determination unit 32 determines whether or not the information matches a preset rule (step S6).

[0062] If the feature map matches the rule (step S6: Yes), the determination unit 32 outputs the feature map to the quantization unit 33, and the quantization unit 33 transmits the quantized feature map to the server device 20 (step S7). If the feature map does not match the rule (step S6: No), or after step S7 is completed, the determination unit 32 outputs the inference result (e.g., classification result) inferred by the DNN1 of the inference unit 31 (step S8).

[0063] In the server device 20, the inference unit 21 decodes the quantized feature map output from the edge device 30 and inputs it to the second processing layer Bd2 of the DNN2. The second processing layer Bd2 executes inference processing, for example, object detection processing, on the input image based on the feature map output from the edge device 30 (step S9).

[0064] The server device 20 transmits the inference result of DNN2 (e.g., the subject detection result) to the edge device 30 (step S10), and the inference result of DNN2 is output from the edge device 30 (step S11). Note that in the embodiment, a configuration is assumed in which the inference result is returned to the user, and the final inference result is output from the edge device 30. However, when the final inference result is used on the server device 20 side, the inference result of DNN2 may be output from the server device 20, or may be retained as it is in the server device 20. When the inference result of DNN1 is used, the edge device 30 may transmit the inference result to the server device 20.

[0065] [Effects of the embodiment] In this manner, in the processing system according to the embodiment, the edge device 30 and the server device 20 share the same feature map, making it possible to execute inference for different tasks on each of the edge device 30 and the server device 20.

[0066] As a result, in the embodiment, it is expected that the edge device 30 can execute simpler tasks, thereby improving performance by reducing the amount of calculation and reducing latency. Also, in the embodiment, when inference is performed on the server device 20 side, the feature extraction process can be omitted, so that the calculation time can be shortened and low delay can be achieved.

[0067] Furthermore, in the embodiment, the data output from the edge device 30 to the server device 20 is not the data to be inferred itself but a feature map extracted from the data to be inferred, so that it is possible to reduce the amount of data transferred from the edge device 30 to the server device 20. Furthermore, in the embodiment, when the data to be inferred is an image, the image itself is not transmitted to the server device 20, so that privacy can be protected.

[0068] Therefore, according to the embodiment, when the edge device 30 and the server device 20 execute different tasks, it is possible to utilize the results of the calculations performed on the edge device 30 in the server device 20 and to reduce the amount of transmission between the edge device 30 and the server device 20.

[0069] In the embodiment, it is possible to share a feature map, which is the intermediate output value of DNN1, even for different tasks, and this system configuration can be applied not only when the tasks in the edge device 30 and the server device 20 are the same task, but also when the tasks are different, thereby proposing a more versatile architecture.

[0070] In this embodiment, an image is used as an example of data to be inferred, but it is not limited to an image and may be detection results detected by various sensors. In addition, in this embodiment, a case where Darknet19 and YOLOv3 are applied as base models for DNN1 and DNN2 is used as an example, but the base models for DNN1 and DNN2 may be set appropriately depending on the task.

[0071] In this embodiment, there may be a plurality of edge devices 30 or a plurality of server devices 20, or there may be a plurality of both edge devices 30 and server devices 20.

[0072] [System configuration, etc.] Each component of each device shown in the figure is a functional concept, and does not necessarily have to be physically configured as shown in the figure. In other words, the specific form of distribution and integration of each device is not limited to that shown in the figure, and all or a part of it can be functionally or physically distributed and integrated in any unit according to various loads, usage conditions, etc. Furthermore, each processing function performed by each device can be realized in whole or in any part by a CPU and a program analyzed and executed by the CPU, or can be realized as hardware using wired logic.

[0073] Furthermore, among the processes described in this embodiment, all or part of the processes described as being performed automatically can be performed manually, or all or part of the processes described as being performed manually can be performed automatically by a known method. In addition, the information including the processing procedures, control procedures, specific names, various data and parameters shown in the above documents and drawings can be changed arbitrarily unless otherwise specified.

[0074] [program] 11 is a diagram showing an example of a computer in which an edge device 30 and a server device 20 are realized by executing a program. The computer 1000 has, for example, a memory 1010 and a CPU 1020. The computer 1000 may also have the accelerator described above to assist in calculations. The computer 1000 also has a hard disk drive interface 1030, a disk drive interface 1040, a serial port interface 1050, a video adapter 1060, and a network interface 1070. These components are connected by a bus 1080.

[0075] The memory 1010 includes a ROM (Read Only Memory) 1011 and a RAM 1012. The ROM 1011 stores a boot program such as a BIOS (Basic Input Output System). The hard disk drive interface 1030 is connected to a hard disk drive 1090. The disk drive interface 1040 is connected to a disk drive 1100. A removable storage medium such as a magnetic disk or an optical disk is inserted into the disk drive 1100. The serial port interface 1050 is connected to a mouse 1110 and a keyboard 1120, for example. The video adapter 1060 is connected to a display 1130, for example.

[0076] The hard disk drive 1090 stores, for example, an OS (Operating System) 1091, an application program 1092, a program module 1093, and program data 1094. That is, the programs that define the processes of the edge device 30 and the server device 20 are implemented as program modules 1093 in which computer-executable codes are written. The program modules 1093 are stored, for example, in the hard disk drive 1090. For example, the program modules 1093 for executing processes similar to those of the functional configurations in the edge device 30 and the server device 20 are stored in the hard disk drive 1090. The hard disk drive 1090 may be replaced by an SSD (Solid State Drive).

[0077] Furthermore, setting data used in the processing of the above-described embodiment is stored as program data 1094, for example, in the memory 1010 or the hard disk drive 1090. Then, the CPU 1020 reads out the program module 1093 or the program data 1094 stored in the memory 1010 or the hard disk drive 1090 into the RAM 1012 as necessary, and executes them.

[0078] Note that the program module 1093 and the program data 1094 are not limited to being stored in the hard disk drive 1090, but may be stored in, for example, a removable storage medium and read by the CPU 1020 via the disk drive 1100 or the like. Alternatively, the program module 1093 and the program data 1094 may be stored in another computer connected via a network (such as a local area network (LAN) or wide area network (WAN)). The program module 1093 and the program data 1094 may then be read by the CPU 1020 from the other computer via the network interface 1070.

[0079] Although the embodiments of the present invention have been described above, the present invention is not limited by the descriptions and drawings that form part of the disclosure of the present invention according to the present embodiments. In other words, other embodiments, examples, and operation techniques made by those skilled in the art based on the present embodiments are all included in the scope of the present invention. [Explanation of symbols]

[0080] 20 Server device 21,31 Reasoning part 30 Edge Device 32 Judgment section 33 Quantization section 100 Processing Systems

Claims

1. A processing method for performing inference processing in an edge device and a server device, comprising: A step in which the edge device performs inference related to a first task on data to be inferred using a first model; a step of transmitting intermediate output values ​​of the first model used for making inference related to the first task to the server device, in order to have the server device perform a second task that is more computationally intensive than the first task and different from the first task; A processing method comprising the steps of:

2. a step of the server device performing inference related to the second task by using a second model with the intermediate output value as an input; The method of claim 1 further comprising:

3. the first model includes an extraction layer that extracts a feature value, which is the intermediate output value, from the data of the inference target, and a first processing layer that performs inference related to the first task based on the feature value; The processing method according to claim 2 , wherein the second model performs inference related to the second task using the feature as an input.

4. The first task is a task of classifying a degree of crowding from image data that is an inference target of the first task, and outputting a classification result; The processing method according to any one of claims 1 to 3, characterized in that the second task is a task for performing subject detection for a subject appearing in image data that is the inference target of the first task, and outputting the detection result.

5. A processing system for performing inference processing in an edge device and a server device, The edge device includes: an inference unit that performs inference related to a first task on data to be inferred by using a first model; a transmission unit that transmits to the server device an intermediate output value of the first model used for making an inference related to the first task, in order to have the server device perform a second task that is a computationally heavy task different from the first task and has a higher computational load than the first task; A processing system comprising:

6. A processing program for causing a computer to execute the method, A computer as an edge device in a processing system that performs inference processing in an edge device and a server device, performing inference related to a first task on data to be inferred using the first model; transmitting intermediate output values ​​of the first model used for making inference related to the first task to the server device so as to cause the server device to perform a second task that is different from the first task and requires a higher amount of calculation than the first task; A processing program characterized by executing the above.