Information processing device and neural network contraction method
By dividing neural networks into subgraphs and applying optimal reduction algorithms, the computational complexity of point cloud AI is reduced, enhancing inference accuracy and efficiency for autonomous driving systems.
Patent Information
- Application Number
- JP2020188356
- Authority / Receiving Office
- JP · JP
- Patent Type
- Patents
- Current Assignee / Owner
- Filing Date
- 2020-11-11
- Publication Date
- 2024-08-21
- Estimated Expiration
- 2040-11-11
AI Technical Summary
The computational complexity of point cloud AI for autonomous driving exceeds the computational performance of in-vehicle processors, necessitating a reduction algorithm that maintains high inference accuracy while reducing computational complexity.
The neural network is divided into subgraphs, with each subgraph receiving an optimal reduction algorithm, followed by retraining to maintain detection accuracy.
This approach optimizes the reduction algorithm on a subgraph basis, reducing inference time by 50% while minimizing the decrease in detection rate for point cloud AI applications.
Smart Images

Figure 0007538002000016 
Figure 0007538002000003 
Figure 0007538002000011
Abstract
Description
[Technical field]
[0001] The present invention relates to the reduction of neural networks. [Background technology]
[0002] In recent years, there has been an accelerating movement to realize high-level autonomous driving using highly accurate object recognition and behavior prediction by implementing deep neural networks (DNNs) in on-board ECUs (Electronic Control Units).
[0003] As shown in Figure 1, DNNs are realized by connecting one or more calculation layers, each of which is made up of a large number of neurons, in multiple stages. In the Nth calculation layer, the value output from the N-1th layer is used as input, and the result obtained by weighting this input value with a weighting coefficient is output to the input of the N+1th layer. At this time, high generalization performance can be obtained by setting the weighting coefficient to an appropriate value depending on the application (learning).
[0004] One example of a DNN for autonomous driving is point cloud AI (Artificial Intelligence), which uses LiDAR (Light Detection and Ranging, Laser Imaging Detection and Ranging) point clouds to achieve object recognition, segmentation, and other tasks.
[0005] Patent Document 1 discloses a method for reducing (contracting) the amount of calculations in neural networks, such as DNNs. [Prior art documents] [Patent documents]
[0006] [Patent Document 1] US 2018 / 046919 A1 Summary of the Invention [Problem to be solved by the invention]
[0007] An example of the configuration of point cloud AI is shown in Figure 2. Voxels (volume elements) are assigned to the LiDAR point cloud, and a pseudo image is generated using DNN or similar. CNN (Convolutional Neural Network) is used to detect specified objects in the pseudo image.
[0008] To apply point cloud AI to autonomous driving, it is necessary to improve the performance of point cloud AI by using high-resolution LiDAR. Therefore, implementing point cloud AI for autonomous driving requires a huge amount of calculation compared to the computing performance of on-board processors. For example, to realize object recognition in autonomous driving using PointPillars, a type of point cloud AI, a computing volume of 65 GOPs (Giga Operations) or more is required. On the other hand, the computing performance of processors that can be installed in on-board ECUs is only about several tens of TOPS (Tera Operations per Second), which is insufficient for running the entire autonomous driving system, including PointPillars, in real time.
[0009] Therefore, a computational complexity reduction (contraction) algorithm is needed that can reduce the computational complexity of point cloud AI for autonomous driving while maintaining high inference accuracy.
[0010] The technology described in Patent Document 1 realizes the compression of DNNs using a multi-iteration compression method in order to reduce the amount of calculations required for neural networks such as DNNs.
[0011] Figure 3 is a diagram created by the inventors and shows an example of a DNN reduction flow in which any single reduction algorithm is uniformly applied to the entire DNN to be reduced.
[0012] For the learning data set 301 and the pre-reduced DNN model 302, initial reduction conditions are determined, for example, by selecting from preset reduction conditions (S303). The pre-reduced DNN model 302 is assumed to have been trained with the learning data set 301.
[0013] Next, the pre-reduction DNN model 302 is reduced based on the reduction locations and reduction rates in the DNN based on the initial reduction conditions (S304).
[0014] Next, the reduced DNN model is retrained with the training data set 301 (S305), and the output error of the DNN model before and after reduction is evaluated to determine whether to end the reduction (S306). When the reduction is completed, the reduced DNN model is recorded as a reduced DNN model 307.
[0015] If the reduction is not to be completed, the optimum conditions for the reduction locations and reduction rates are searched for (S308), and reduction is performed again (S304).
[0016] However, in DNNs with complex structures such as point cloud AI, the optimal reduction algorithm differs for each part (subgraph) that makes up the DNN. Therefore, in order to achieve high-precision reduction that simultaneously reduces the amount of computation in DNNs and maintains inference accuracy, it is necessary to select and apply the optimal reduction algorithm for each subgraph.
[0017] Therefore, the above configuration had a problem in that it was not possible to optimize the reduction algorithm applied on a subgraph basis of the neural network. [Means for solving the problem]
[0018] A preferred aspect of the present invention is an information processing device that selects an algorithm for reducing a neural network, comprising: a subgraph division unit that divides the neural network into subgraphs; and an optimization unit that outputs a reduction configuration that associates one selected from a plurality of reduction methods with each of the subgraphs.
[0019] Another preferred aspect of the present invention is a neural network reduction method which executes a first step of dividing a neural network into subgraphs, and a second step of provisionally reducing each of the subgraphs by associating one of a plurality of reduction techniques with each of the subgraphs. Effect of the Invention
[0020] The optimization of the applied reduction algorithm can be realized on a subgraph basis of the neural network. [Brief description of the drawings]
[0021] [Figure 1] Conceptual diagram showing the structure of a Deep Neural Network (DNN). [Diagram 2] A conceptual diagram showing an example of the configuration of point cloud AI. [Diagram 3] DNN reduction flow diagram (example for comparison). [Figure 4] DNN reduction flow diagram (example). [Diagram 5] FIG. 4 is a schematic diagram of the process of the reduction algorithm optimization unit. [Figure 6] FIG. 11 is a graph showing the effect of the embodiment. [Figure 7] FIG. 1 is a block diagram of a first embodiment / basic configuration 1. [Figure 8A] FIG. 13 is a block diagram of the second embodiment / basic configuration 2 (overall configuration). [Figure 8B] FIG. 13 is a table showing an example of abbreviated configuration. [Figure 9] FIG. 11 is a process flow diagram of the second embodiment / basic configuration 2 (contraction algorithm optimization unit). [Figure 10] FIG. 13 is a block diagram of a basic configuration 2 (contraction algorithm optimization unit) according to the second embodiment. [Figure 11A] FIG. 11 is a process flow diagram of the second embodiment / basic configuration 2 (subgraph division unit). [Figure 11B] A conceptual diagram of subgraph partitioning. [Figure 12] FIG. 13 is a block diagram of the second embodiment / basic configuration 2 (perturbation calculation unit 1). [Figure 13]FIG. 13 is a block diagram of the second embodiment / basic configuration 2 (perturbation calculation unit 2). [Figure 14] FIG. 11 is a block diagram of the second embodiment / basic configuration 2 (contracted portion). [Figure 15] FIG. 11 is an overall configuration diagram of Example 3 / Application Configuration 1. [Figure 16] FIG. 13 is an overall configuration diagram of Example 4 / Application Configuration 2. [Figure 17] FIG. 13 is an overall configuration diagram of Example 5 / Application Configuration 3. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0022] The following examples are described with reference to the drawings. However, the present invention is not limited to the description of the embodiments shown below. It is easily understood by those skilled in the art that the specific configurations of the present invention can be modified without departing from the spirit or scope of the present invention.
[0023] In the configurations of the embodiments described below, the same parts or parts having similar functions are denoted by the same reference numerals in different drawings, and duplicated explanations may be omitted.
[0024] When there are multiple elements having the same or similar functions, they may be described by using the same reference numerals with different subscripts. However, when there is no need to distinguish between multiple elements, the subscripts may be omitted.
[0025] The designations "first," "second," "third," and the like in this specification are given to identify components, and do not necessarily limit the number, order, or content. Furthermore, numbers for identifying components are used in different contexts, and a number used in one context does not necessarily indicate the same configuration in another context. Furthermore, a component identified by a certain number does not prevent the component from also having the function of a component identified by another number.
[0026] In order to facilitate understanding of the invention, the position, size, shape, range, etc. of each component shown in the drawings, etc. may not represent the actual position, size, shape, range, etc. Therefore, the present invention is not necessarily limited to the position, size, shape, range, etc. disclosed in the drawings, etc.
[0027] All publications, patents, and patent applications cited herein are hereby incorporated by reference in their entirety.
[0028] As used herein, elements referred to in the singular are intended to include the plural unless the context clearly indicates otherwise.
[0029] An example of the flow of the embodiment is shown in Fig. 4. The reduction flow of Fig. 3 is supplemented with a process for optimizing the reduction algorithm (S409).
[0030] In the reduction algorithm optimization (S409), the pre-reduction DNN model 402 is first divided into multiple subgraphs, and then the optimal reduction algorithm is searched for on a subgraph-by-subgraph basis with high efficiency.
[0031] For the learning data set 401 and the pre-reduced DNN model 402, an initial reduction condition is determined for each subgraph, for example, by selecting from preset reduction conditions (S403). The pre-reduced DNN model 402 is assumed to have been trained with the learning data set 401.
[0032] Next, the pre-contraction DNN model 402 is contracted for each subgraph based on the contraction location and contraction rate in the DNN based on the initial contraction conditions (S404).
[0033] Next, the reduced DNN model is retrained with the training data set 401 (S405), and the output error of the DNN model before and after reduction is evaluated to determine whether to end the reduction (S406). When the reduction is completed, the reduced DNN model is recorded as a reduced DNN model 407.
[0034] Here, because the detection accuracy decreases due to reduction, re-learning is performed to restore the detection accuracy. If re-learning is not performed, the detection rate of the reduced AI may drop significantly. For re-learning, the same dataset as that used to train the DNN model before reduction can basically be used, but the dataset can be flexibly changed depending on the application scene, etc.
[0035] If the reduction is not to be completed, the optimum conditions for the reduction locations and reduction rates are searched for (S408), and reduction is performed again (S404).
[0036] Figure 5 shows a schematic diagram of the process of optimizing the contraction algorithm (S409). First, the initial value of the subgraph division points is determined based on the input maximum number of subgraphs and the pre-contraction DNN model 402. The maximum number of subgraphs may be set in advance or may be specified by the user each time. The division points are determined according to a predetermined rule, for example, so that the number of neurons is as even as possible.
[0037] Next, a reduction algorithm is applied to each divided subgraph, and the absolute error value of the calculation result of each subgraph before and after the application of the reduction is output as the magnitude of the perturbation. The reduction algorithm is selected, for example, from multiple algorithms prepared in advance. A different reduction algorithm can be selected for each subgraph.
[0038] The results of the perturbation calculations are merged and evaluated comprehensively. Next, using an arbitrary optimization algorithm, the combination of contraction algorithms applied to each subgraph is changed so that the magnitude of the evaluated perturbation is reduced. At this time, if the magnitude of the perturbation does not converge below a certain threshold despite changing the combination of contraction algorithms an arbitrary number of times, the subgraph division points of the pre-contraction DNN model 402 are changed and the combination optimization of the contraction algorithms is performed again.
[0039] Figure 6 shows the effect of applying this embodiment to PointPillars, a point cloud AI for object recognition. When a single reduction method 1b (reducing the number of voxels) was applied to the entire DNN model of the pre-reduction point cloud AI 601, the detection rate dropped significantly as in NG1. In addition, when a single reduction method 2b (low rank approximation) was applied to the entire DNN model, the processing time was shortened as in NG2, but the detection rate dropped.
[0040] In this embodiment, in the DNN model of the pre-contracted point cloud AI601, contraction method 1a (reduction of the number of points per voxel) was applied to subgraph 1, and contraction method 2a (pruning) was applied to subgraph 2. As a result, the optimal contracted point cloud AI602 was obtained.
[0041] Note that arrow 603 indicates the limit values of the detection rate and processing time obtained by contraction method 1a for subgraph 1, and arrow 604 indicates the limit values of the detection rate and processing time obtained by contraction method 2a for subgraph 2. The dotted diagonal line 605 indicates the boundary between these. In this way, it can be seen that there is a contraction method suitable for each subgraph.
[0042] The optimally contracted point cloud AI 602 of this embodiment can reduce the inference time by 50% while suppressing the decrease in detection rate caused by the contraction of PointPillars. This embodiment can be applied not only to point cloud AI but also to other AI such as image processing CNN. EXAMPLES
[0043] Figure 7 shows a configuration diagram of the first embodiment. First, the pre-contracted DNN (A001) read from memory is accepted as input, and the pre-contracted DNN is divided into n subgraphs in the subgraph division unit (A004). Next, the n subgraphs and the contraction configuration (A002) read from memory are accepted as input, and contraction is applied to each subgraph in the contraction unit (A005). The subgraphs to which contraction has been applied are recombined and stored in memory as the contracted DNN (A003). Finally, the contracted DNN (A003) and LiDAR point cloud read from memory are accepted as input, and the inference unit (A006) executes DNN inference and outputs the inference result. EXAMPLES
[0044] Figure 8A shows a configuration diagram of the second embodiment. First, the pre-reduction DNN (B001) and dataset (B004) read from memory, as well as a reduction table (B002) containing applicable reduction algorithms, are input to a reduction algorithm optimization unit (B006), and the reduction algorithm to be applied to the pre-reduction DNN is optimized on a subgraph basis. Here, the correspondence between each subgraph and the optimal reduction algorithm is written to the reduction configuration (B003) and stored in memory. Note that the dataset (B004) stored in memory is updated as appropriate using LiDAR point cloud data acquired from the sensor.
[0045] Next, the reduced configuration (B003), the dataset (B004), and n subgraphs are input to the reduction unit (B007) to generate a reduced DNN (B005) and store it in memory. Finally, the reduced DNN (B005) and the LiDAR point cloud are input to the inference unit (B008) to obtain the inference result. This embodiment enables dynamic adjustment of the DNN reduction method in response to changes in the driving scene, etc.
[0046] The system configuration in FIG. 8A can be configured with a general information processing device such as a server. The information storage device includes a processing device, a storage device, an input device, and an output device. In this embodiment, functions such as calculation and control are realized by a program stored in the storage device being executed by the processing device, thereby realizing a predetermined process in cooperation with other hardware. The program executed by a computer or the like, its function, or the means for realizing the function may be called a "function," "means," "part," "unit," "module," etc.
[0047] In FIG. 8A, for the sake of explanation, the configuration of the server is omitted and displayed in the form of data and function blocks. LiDAR point cloud data is input, for example, from an input device. The pre-contraction DNN (B001), data set (B004), and contraction table (B002) are stored as databases, for example, in a hard disk device that is part of a storage device (memory), and are used by being appropriately called up in a semiconductor memory that is also part of the storage device. The contraction algorithm optimization unit (B006) and contraction unit (B007) are implemented as programs in the storage device, and are executed by the processing device to realize the specified functions. The contraction configuration (B003) and contraction DNN (B005) store the processing results.
[0048] The inference unit (B008) is a device for executing AI processing, and is commercially available as a module capable of implementing a neural network. Well-known examples of such modules include Versal (trademark), Xavier (trademark), and NCS2 (product name).
[0049] The above-mentioned server may be configured as a single device, or any part of the input device, output device, processing device, and storage device may be configured as another computer connected via a network.
[0050] In this embodiment, functions equivalent to those configured by software can also be realized by hardware such as a field programmable gate array (FPGA) or an application specific integrated circuit (ASIC).
[0051] FIG. 8B is a table diagram showing an example of the contraction table (B002). The affinity with each contraction method is recorded for devices #1, #2, #3, and #4, which are registered as devices applicable to the inference unit (B008). The affinity value is in the range of 1 to 0, with a value closer to 1 indicating high affinity. This information is registered in advance as a database based on publicly known information or user knowledge.
[0052] The configuration and processing flow of the contraction algorithm optimization unit (B006) in Fig. 8A will be described in detail below. Fig. 9 shows the processing flow, and Fig. 10 shows the device configuration.
[0053] The flow of FIG. 9 will be explained step by step. S000: The pre-contracted DNN, the subgraph perturbation output from the perturbation calculation unit 2 (C006), the maximum number of subgraphs, which is the upper limit of the number of divisions into subgraphs, and the graph division signal output from the optimization unit (C007) are input to the subgraph division unit (C003), and the pre-contracted DNN is divided into n subgraphs. The maximum number of subgraphs is set in advance or input by the user each time.
[0054] S001: The subgraph, the contraction table (B002), and the contraction algorithm for each subgraph output from the optimization unit (C007) are input to the provisional contraction unit (C004), and the contraction algorithm corresponding to each subgraph is applied to generate a provisional contracted subgraph. As shown in FIG. 8B, the contraction table (B002) is assumed to have registered therein well-known contraction algorithms such as pooling, row lanking, weight sharing, and quantization. The contraction algorithm is selected by, for example, giving priority to one that has a high affinity with the implementation device in the contraction table (B002).
[0055] S002: The pre-reduction DNN, the dataset, and the provisionally reduced subgraph are input to perturbation calculation unit 1 (C005) and perturbation calculation unit 2 (C006), and the perturbations of the calculation results before and after reduction are generated as NN perturbations and subgraph perturbations, respectively. Here, the subgraph perturbations are recorded in memory as a log file (C008).
[0056] S003: By inputting the NN perturbation to the optimization unit (C007), the combination of the contraction algorithm is corrected so that the value of the NN perturbation becomes smaller. For example, the search for the combination is performed by exhaustively trying combinations of algorithms with high affinity in the contraction table B002, and performing a loop process for optimizing the contraction algorithm.
[0057] S004: In the trial of the optimization unit (C007), if the NN perturbation is equal to or greater than an arbitrary threshold value for a predetermined k consecutive times, the graph partitioning signal is enabled and the process returns to S000. Otherwise, proceed to S005.
[0058] S005: Determine the end of optimization based on a specified end condition. The end conditions include the NN perturbation satisfying a specified condition, exceeding a processing time limit or a processing count limit, etc. If the optimization of the contraction algorithm is to be continued, return to S001. Otherwise, complete the processing.
[0059] Next, we will explain the subgraph division part (C003). The process flow of the subgraph division unit is shown in Fig. 11A, which will be explained together with Fig. 9. FIG. 11B illustrates the concept of a divided subgraph.
[0060] The subgraph division unit (C003) is usually in a waiting state and starts when the graph division signal becomes enable (S004). Immediately after the start of the AI contraction process, the subgraph perturbation and graph division signal are not applied, so the AI is not divided (i.e., the number of subgraphs n = 1), and the same contraction method is applied to the entire AI (S001). The temporary contraction unit (C004) selects the optimal contraction method to be applied by referring to the contraction table (B002). The perturbation calculation unit 1 (C005) calculates the perturbation value of the inference result caused by contraction for the entire AI (S002). At this point, the subgraph = the pre-contraction DNN, so the perturbation calculation unit 2 (C006) outputs the same perturbation value as the perturbation calculation unit 1 (C005). The combination of contraction algorithms is corrected (S003), and if the termination condition is satisfied, there is no need to split the AI, so the contraction process ends (S005). If the NN perturbation remains equal to or greater than the threshold a predetermined number of times in succession even after the combination of contraction algorithms is corrected, the graph partitioning signal is enabled and the process proceeds to S012 (S000) (S004).
[0061] S012: The pre-contraction DNN (graph 1101 in FIG. 11B) is saved as the root of the m-ary tree, and the root of the m-ary tree is set as the node to be split. The value of m may be set in advance or input by the user each time. In this example, the explanation is given with a fixed value of m=2. In this example, the pre-contraction DNN in FIG. 11B has 8 layers.
[0062] S013: The graph stored in the node to be split is divided into m parts, and these are stored in m child nodes under the node to be split. In the example of Fig. 11B, graph 1101 is split into m=2 parts, and graphs 1102 and 1103 become child nodes. The split is performed so that the parts are split as evenly as possible on a layer-by-layer basis, and in this example, the graphs in each of the four layers become subgraphs. In this state, the subgraphs 1102 and 1103 after split are stored in m leaf nodes (m leaf nodes at depth 1) of the m-ary tree, respectively.
[0063] S014: The tentative contraction unit (C004) applies the contraction method to each subgraph after division (S001), and the perturbation calculation unit 1 (C005) calculates the perturbation value of the inference result caused by the contraction for the entire AI (S002). If the NN perturbation caused by the contraction is still greater than the threshold even after correcting the contraction algorithm (S003), the graph division signal is enabled and the process proceeds to S015 (S004). If the NN perturbation is smaller than the threshold, the graph division is deemed to have been effective and the process ends (S005).
[0064] S015: For each of the subgraphs stored in the m child nodes, the perturbation calculation unit 2 (C006) acquires the value of the subgraph perturbation (S002). In the example of FIG. 11B, the perturbations of the subgraphs 1102 and 1103 are calculated.
[0065] S016: Among the m child nodes, the child node with the largest absolute value of the subgraph perturbation is set as a new node to be split. In the example of Fig. 11B, the perturbation of the subgraph 1102 is assumed to be large, and the subgraph 1102 becomes the node to be split.
[0066] S017: If the number of leaves of the generated m-ary tree is equal to or less than the maximum number of subgraphs, return to S013. Otherwise, end the process. In the example of FIG. 11B, if the subgraphs 1102 and 1103 are divided, these become leaves, so if the number of leaves, 2, exceeds the maximum number of subgraphs, the division ends, otherwise return to S013.
[0067] S013: The graph of the node to be split (subgraph 1102 in this example) becomes the target of splitting, and is split into m=2. Split subgraphs 1104 and 1105 are stored in the m children of the node to be split. In this state, the subgraphs stored in the 2m-1 leaf nodes of the m-ary tree (m-1 leaf nodes at depth 1 + m leaf nodes at depth 2) each become the subgraph after splitting. In this example, the leaf node at depth 1 is subgraph 1103, and the leaf nodes at depth 2 are subgraphs 1104 and 1105. The number of these leaf nodes (3 in the example of FIG. 11B) is equal to the number n of subgraphs.
[0068] S014: The tentative contraction unit (C004) applies the contraction method to each of the 2m-1 subgraphs, and the perturbation calculation unit 1 (C005) calculates the perturbation value of the inference result caused by the contraction for the entire AI. The contraction algorithm is corrected (S003), and if the value of the NN perturbation due to the contraction is greater than the threshold, the subgraph division signal is enabled and further division is repeated (S004). The next division target is the graph with the largest subgraph perturbation among subgraphs 1103, 1104, and 1105.
[0069] The loop termination condition is when the number of divisions n of the subgraph (the number of leaf nodes of the m-ary tree) exceeds the maximum value (S017).
[0070] Next, we will explain the perturbation calculation unit 1 (C005). The perturbation calculation unit 1 (C005) calculates the NN perturbation of the entire network model. The NN perturbation is used to search for the optimal combination of the reduction method.
[0071] The configuration diagram is shown in Figure 12. First, the 0th provisional contracted subgraph and the corresponding subgraph of the pre-contracted DNN are input to the forward propagation unit B0 and the forward propagation unit A0, respectively, and the same data set is forward propagated. Similarly, the kth provisional contracted subgraph and the corresponding subgraph of the pre-contracted DNN are input to the forward propagation unit Bk and the forward propagation unit Ak, respectively, and the calculation results of the k-1th forward propagation unit Bk-1 and the calculation results of the forward propagation unit Ak-1 are forward propagated, respectively. The above operations are repeated up to the nth subgraph, and the absolute value of the difference between the calculation results of the forward propagation units An and Bn is calculated by the perturbation calculation unit to generate the NN perturbation.
[0072] Next, the perturbation calculation unit 2 (C006) will be described. The perturbation calculation unit 2 (C006) calculates a subgraph perturbation for each subgraph. The subgraph perturbation is used to determine whether or not a subgraph of the network needs to be divided.
[0073] The configuration diagram is shown in Figure 13. First, the 0th provisional contracted subgraph and the corresponding subgraph of the pre-contracted DNN are input to the forward propagation unit B0 and the forward propagation unit A0, respectively, and the same data set is forward propagated. Similarly, the kth provisional contracted subgraph and the corresponding subgraph of the pre-contracted DNN are input to the forward propagation unit Bk and the forward propagation unit Ak, respectively, and the calculation result of the k-1th forward propagation unit Ak-1 is forward propagated to both. The above operations are repeated up to the nth subgraph. At this time, the value obtained by applying normalization to the absolute value of the difference between the calculation results of the forward propagation units Ak and Bk is generated as the subgraph perturbation k. The normalization is performed, for example, by (perturbation p i / Output y of the reduced NN i Finally, we will discuss the contraction part (B007).
[0074] The configuration diagram is shown in Figure 14. First, a reduction configuration describing n subgraphs and the reduction algorithm to be applied to each subgraph is accepted as input, and reduction is performed in the computational complexity reduction unit (D001). Next, the reduction results for each subgraph are recombined into one DNN in the subgraph combination unit (D002). Re-learning is performed in the recombined DNN and dataset in the re-learning unit (D003), and a reduced NN model is generated. EXAMPLES
[0075] The configuration of Example 3 is shown in Figure 15. Example 3 is a configuration in which a system for generating a reduced configuration on the data center side is added to Example 1. Specifically, on the data center side, a reduced configuration (E011) is generated by a reduction algorithm optimization unit (E009) using a pre-reduced DNN (E012), a data set (E010), and a reduction table (E013), and the reduced configuration (E002) on the AD-ECU side is updated via an OTA transmitter (E008) and an OTA receiver (E007). EXAMPLES
[0076] Figure 16 shows the configuration of Example 4. Example 4 is a configuration in which the pre-contracted DNN can be received from outside by an OTA receiver (F009), unlike Example 2. EXAMPLES
[0077] Fig. 17 shows the configuration of Example 5. In contrast to Example 4, Example 5 has a configuration in which the perturbation log (G010) acquired by the contraction algorithm optimization unit is stored in a memory and can be transmitted to the outside via an OTA transmitter (G011). [Explanation of symbols]
[0078] ·DNN before reduction ···A001,B001,E001,E012,F001,G001 ·Condensed config··A002,B003,C002,E002,E011,F003,G003 ·Reduced DNN ···A003,B005,E003,F005,G005 Subgraph division part A004, C003, E004 ·Reduction part···A005,B007,E005,F007,G007 ·Inference section ···A006,B008,E006,F008,G008 ·Condensation table··B002,C001,E013,F002,G002 · Data set · B004, E010, F004, G004 ·Contraction algorithm optimization section··B006,E009,F006,G006 ·Temporary contraction section···C004 ·Perturbation calculation section 1...C005 ·Perturbation calculation part 2...C006 ·Optimization section··C007 ·Log file··C008,G010 ·Computation amount reduction unit...D001 ·Subgraph connection part···D002 ·Relearning section···D003 OTA Receiver E007, F009, G009 ·OTA Transmitter··E008,G011
Claims
1. An information processing device that selects a reduction method, which is an algorithm for reducing a neural network, comprising: a subgraph division unit that divides the neural network into subgraphs; an optimization unit that outputs a contraction configuration in which one of the contraction methods selected from the plurality of contraction methods is associated with each of the subgraphs; An information processing device comprising:
2. The subgraph division unit divides the neural network having a hierarchical structure into layers.
2. The information processing device according to claim 1.
3. The method further comprises a provisional contraction unit and a first perturbation calculation unit, the provisional contraction unit contracts each of the subgraphs by one of a plurality of contraction methods selected from the plurality of contraction methods, and outputs a provisional contracted subgraph; The first perturbation calculation unit outputs a perturbation of the neural network based on a difference between a forward propagation value of the neural network and a forward propagation value obtained by serially connecting a plurality of the provisional contracted subgraphs; The optimization unit outputs a reduced configuration in which the perturbation of the neural network satisfies a predetermined value.
3. The information processing device according to claim 2.
4. the provisional reduction unit refers to a reduction table in which the type of device on which the neural network is implemented is associated with a priority of the reduction method to be applied, and selects one of a plurality of reduction methods; 4. The information processing device according to claim 3.
5. Further, a second perturbation calculation unit is provided, The second perturbation calculation unit outputs a perturbation of each of the subgraphs based on a difference between a forward propagation value of each of the subgraphs and a forward propagation value of the provisional contracted subgraph; The subgraph division unit selects a subgraph to be further divided based on the perturbation of the subgraph.
4. The information processing device according to claim 3.
6. The subgraph division unit selects the subgraph with the largest perturbation in the current state as the subgraph to be further divided.
6. The information processing device according to claim 5.
7. It also has a contraction section. The contraction unit includes a computation amount reduction unit and a subgraph connection unit, The computational complexity reduction unit receives the subgraphs and the contraction configuration as input, applies a contraction method described in the contraction configuration to each of the subgraphs, and outputs a contracted subgraph; The subgraph combining unit receives the output of the computation amount reducing unit as an input, combines the reduced subgraphs, and outputs a reduced neural network.
2. The information processing device according to claim 1.
8. It also has a re-learning section, The re-learning unit receives the reduced neural network and a training data set, and trains the reduced neural network.
8. The information processing device according to claim 7.
9. The perturbation of the subgraph is stored in a memory as a perturbation log.
6. The information processing device according to claim 5.
10. The perturbation log is transmitted to an outside of the computing device.
10. The information processing device according to claim 9.
11. The first step is to divide the neural network into subgraphs, A second step of provisionally reducing each of the subgraphs by associating one of a plurality of reduction techniques, which are algorithms, with each of the subgraphs; A neural network reduction method that performs
12. The third step is to compute the perturbations of the reduced neural network. A fourth step of modifying the correspondence of the reduction method to the subgraph based on the perturbation of the neural network; 12. The method for reducing a neural network according to claim 11, further comprising the steps of:
13. A fifth step of computing a perturbation of each of the subgraphs in units of the provisionally contracted subgraphs; a sixth step of selecting a subgraph for further division based on the perturbation of the subgraph; 12. The method for reducing a neural network according to claim 11, further comprising the steps of:
14. In the first step, a method of dividing the graph into subgraphs is managed by an m-ary tree; Store the neural network at the root of an m-ary tree, divide the neural network stored at the root of the m-ary tree into m parts, store m subgraphs in a node of depth 1 that is a child of the root, and output the subgraphs stored in the leaves of the m-ary tree.
13. The method of claim 12, wherein the neural network is contracted.
15. Among the m subgraphs stored in the node of depth 1 that is a child of the root, the subgraph stored in the node with the maximum perturbation of the subgraph is divided into m parts, and stored as a child of the node with the maximum perturbation of the subgraph.
15. The method of claim 14, wherein the neural network is contracted.
Citation Information
Patent Citations
Multi-iteration compression for deep neural networks
US20180046919A1
Execution method, execution device, learning method, learning device, and program for deep neural network
WO2019050771A1
Calculation technique determining system, calculation technique determining device, processing device, calculation technique determining method, processing method, calculation technique determining program, and processing program
WO2019146651A1
Computing device
WO2020158058A1
