Method and program for determining edges to be corrected

The method identifies and corrects edge groups in DNN models that cause regression while preserving those that contribute to improvements, addressing the inefficiencies of conventional correction methods and maintaining model performance.

JP7547956B2Active Publication Date: 2024-09-10FUJITSU LTD
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
JP2020195478
Authority / Receiving Office
JP · JP
Patent Type
Patents
Current Assignee / Owner
Filing Date
2020-11-25
Publication Date
2024-09-10
Estimated Expiration
2040-11-25

AI Technical Summary

Technical Problem

Conventional DNN model correction methods using training data may not effectively correct errors and can lead to incorrect inferences and degradation due to the principle of CACE (Changing Anything Changes Everything), where retraining on previously correctly inferred data can result in regression.

Method used

A method to identify and correct only the weights of edge groups that have led to regression while preserving the weights that contributed to improvements by classifying edges based on their influence on regression and improved test data, using a process that includes extracting changed edges, classifying them into different groups, and identifying correction targets.

Benefits of technology

This approach allows for targeted correction of weights that cause regression while retaining those that contribute to improvements, thereby maintaining model performance and reducing the likelihood of degradation.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 00000021_0000
    Figure 00000021_0000
  • Figure 00000021_0001
    Figure 00000021_0001
  • Figure 00000021_0002
    Figure 00000021_0002
Patent Text Reader

Abstract

To correct only the weight of an edge group that led to regression while keeping the weight of the edge group that led to improvement as it is.SOLUTION: A modification target edge determination method comprises: a process of extracting, as a modified edge group, edges with weight which is different from each edge included in a trained machine learning model of a first generation that is prior to a second generation among each of edges included in the trained machine learning model of the second generation; a process of classifying the modified edge group into a first edge classification that affected output of a regression test data and a second edge classification that affected output of improvement test data, wherein the regression test data is test data in which the regression occurred, wherein the improvement test data is the test data in which the improvement occurred; and a process of specifying a third edge group, which is obtained by subtracting the second edge group included in the second edge classification from the first edge group included in the first edge classification, as a correction target.SELECTED DRAWING: Figure 1
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] The present invention relates to a correction target edge determining method and a correction target edge determining program. [Background technology]

[0002] In a system using a machine learning model such as a Deep Neural Network (DNN), if an output that is not desirable to the user occurs, the machine learning model may be modified. Hereinafter, a machine learning model of DNN may be referred to as a DNN model.

[0003] For example, in an autonomous driving system using a camera, if a stop road sign is recognized as a speed limit, it could lead to an accident, so the DNN model needs to be modified to ensure correct recognition. DNN models are not built according to specifications, but according to the training data you input, so you can also modify them by inputting the training data. [Prior art documents] [Patent documents]

[0004] [Patent Document 1] Japanese Patent Application Publication No. 9-128358 Summary of the Invention [Problem to be solved by the invention]

[0005] However, in such conventional methods of correcting DNN models using training data, it is necessary to collect the data necessary for correction, but the collected data does not necessarily allow errors to be corrected.

[0006] In other words, retraining may cause a model to make incorrect inferences after retraining for data that was correctly inferred before retraining, resulting in degradation. Degradation occurs due to the principle of Changing Anything Changes Everything (CACE).

[0007] In one aspect, the present invention has an object to modify only the weights of the edge group that have led to regression, while leaving the weights of the edge group that have led to improvement intact. [Means for solving the problem]

[0008] Therefore, this method for determining edges to be modified, when an information processing device determines edges to be modified among the edges included in a neural network model, includes a process of extracting, as a modified edge group, edges included in a second-generation trained machine learning model that have different weights from each of the edges included in a first-generation trained machine learning model prior to the second generation; a process of classifying the modified edge group into a first edge classification that influenced the output of regressed test data, which is test data in which regression has occurred, and a second edge classification that influenced the output of improved test data, which is test data in which improvement has occurred; and a process of identifying a third edge group, obtained by subtracting the second edge group included in the second edge classification from the first edge group included in the first edge classification, as the edge to be modified. Effect of the Invention

[0009] According to one embodiment, the weights of the edge groups that have led to improvement can be left as they are, while only the weights of the edge groups that have led to regression can be targeted for correction. [Brief description of the drawings]

[0010] [Figure 1] FIG. 1 is a diagram illustrating a configuration of an information processing apparatus as an example of an embodiment. [Diagram 2]1 is a diagram for explaining a process of a model training unit in an information processing device as an example of an embodiment; [Diagram 3] 1 is a diagram illustrating improvement test data and regression test data in an information processing device as an example of an embodiment; [Figure 4] 10A and 10B are diagrams for explaining a process performed by a weight difference measurement unit in an information processing device as an example of an embodiment; [Diagram 5] 10 is a diagram illustrating a process performed by a weighting effect measuring unit in an information processing device as an example of an embodiment; [Figure 6] 10 is a diagram illustrating a process performed by a weighting effect measuring unit in an information processing device as an example of an embodiment; [Figure 7] 10 is a diagram for explaining a process performed by a selection weight number determination unit in an information processing device as an example of an embodiment; [Figure 8] 11 is a diagram for explaining a process of a correction target weight specification unit in an information processing device as an example of an embodiment; FIG. [Figure 9] 11 is a diagram for explaining a process of a correction target weight specification unit in an information processing device as an example of an embodiment; FIG. [Figure 10] 10 is a diagram illustrating a method of selecting a correction target weight by a correction target weight specifying unit in an information processing device as an example of an embodiment; FIG. [Figure 11] 1 is a flowchart illustrating a process in an information processing device as an example of an embodiment. [Figure 12] 1 is a flowchart illustrating a process in an information processing device as an example of an embodiment. [Figure 13] 11A and 11B are diagrams illustrating simulation results in an information processing device as an example of an embodiment; [Figure 14] FIG. 1 is a diagram illustrating a hardware configuration of an information processing apparatus according to an embodiment; DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0011] Hereinafter, an embodiment of the correction target edge determination method and correction target edge determination program will be described with reference to the drawings. However, the embodiments shown below are merely examples, and there is no intention to exclude the application of various modified examples and techniques not explicitly stated in the embodiments. In other words, this embodiment can be implemented with various modifications within the scope of its purpose. Furthermore, each figure does not intend to include only the components shown in the figure, but can include other functions, etc.

[0012] (A) Configuration FIG. 1 is a diagram illustrating a schematic configuration of an information processing device 1 as an example of an embodiment.

[0013] The information processing device 1 realizes a model correction function that corrects a trained DNN model (machine learning model). The trained DNN model is a trained machine learning model. As shown in FIG. 1, the information processing device 1 has functions as a model training unit 101, a test data classification unit 102, a weight difference measurement unit 103, a weight influence measurement unit 104, a selection weight number determination unit 105, and a correction target weight identification unit 106. The model training unit 101 performs training (retraining) by inputting training data to the DNN model to be trained. FIG. 2 is a diagram for explaining the processing of the model training unit 101 in the information processing device 1 as an example of an embodiment. Training data and a pre-training DNN model are input to the model training unit 101. The training data includes, for example, input data and training labels (correct answer data).

[0014] DNNs, for example, input data such as images and sounds, are input to the input layer, and predetermined calculations are sequentially performed in hidden layers consisting of convolutional layers and pooling layers, thereby performing forward processing (forward propagation processing) to sequentially transmit information obtained by the calculations from the input side to the output side. In each layer, nodes are connected by edges. In addition, edges have weights.

[0015] After performing the forward processing, the model training unit 101 performs a backward processing (backpropagation processing) to determine parameters to be used in the forward processing in order to reduce the value of the error function obtained from the output data output from the output layer and the correct answer data. Then, an update processing is performed to update weights (variables) based on the result of the backpropagation processing. For example, the gradient descent method may be used as an algorithm to determine the update width of the weights used in the calculation of the backpropagation processing. Hereinafter, the DNN model may be simply referred to as a model.

[0016] The model training unit 101 stores information on the DNN model before training (pre-training model) and the DNN model after training (post-training model) in a storage area such as the storage device 13 (see FIG. 14). The model training unit 101 trains the same DNN model multiple times (n times), so that information on n generations of DNN models is stored in the storage device 13 or the like. The stored information on the DNN model also includes weights. Therefore, the model training unit 101 stores the weights of the model k generations ago during training in the storage device 13 or the like.

[0017] Hereinafter, the latest generation DNN model among multiple generations of DNN models may be referred to as the current generation model. Also, the DNN model of the generation before the current generation model (old generation) may be referred to as the previous generation model. The current generation model may be referred to as the nth generation model, and the symbol M n In addition, the previous generation model k generations before the nth generation model is sometimes called the nkth generation model, and is represented by the symbol M n-k Here, n is a natural number of 2 or more, and k is a natural number of 1 or more. <nである。

[0018] The latest generation (current generation, nth generation) corresponds to the second generation, and the nth generation DNN model corresponds to the second generation trained machine learning model. The previous generation (nk generation) corresponds to the first generation, and the nkth generation DNN model corresponds to the first generation trained machine learning model.

[0019] In addition, the information processing device 1 realizes a correction target edge determination function that determines edges to be corrected from among edges included in a DNN (neural network model). The test data classifier 102 collects the refinement test data and the regression test data. FIG. 3 is a diagram for explaining improvement test data and regression test data in the information processing device 1 as an example of the embodiment.

[0020] FIG. 3 shows an example in which the labels “cat” and “dog” are input as input data to the nk-th generation DNN model and the n-th generation DNN model, respectively.

[0021] In the example shown in Figure 3, when the label "dog" was input into the n-th generation DNN model, the incorrect predicted result "cat" was obtained (prediction failure), but when it was input into the n-th generation DNN model, the correct predicted result "dog" was obtained (prediction success). In other words, this indicates that the DNN model was correctly corrected (see symbol P1). Test data that is now correctly predicted by correcting the DNN model in this way is sometimes called improved test data. The test data "dog" is improved test data. The test data classification unit 102 classifies the DNN model M n Evaluate the test data by the set of successful test data X pos,n Collect

[0022] The test data classification unit 102 classifies the DNN model M n-k A set of test data X that fails neg,n-k and the above-mentioned X pos,n Intersection with X neg,n-k ∩X pos,n Below, we will generate the intersection X neg,n-k ∩X pos,n Improve test data X imp It may be expressed as:

[0023] On the other hand, in the example shown in Figure 3, when the label "cat" was input into the n-th generation DNN model, the correct inference result "cat" was obtained (inference success), but when it was input into the n-th generation DNN model, the incorrect inference result "tiger" was obtained (inference failure). In other words, it is considered that degradation (performance reduction) occurred due to the modification of the DNN model (see symbol P2). Note that degradation is sometimes called "degradation." Test data in which degradation has occurred due to such modification of the DNN model is sometimes called regressed test data. The test data "cat" is regressed test data. The test data classification unit 102 classifies the n-th generation DNN model M n Evaluate the test data with the set of failing test data X neg,n Collect.

[0024] The test data classification unit 102 classifies the DNN model M n-k A set of test data X that is successful in pos,n-k and the above-mentioned X neg,n Intersection with X pos,n-k ∩X neg,n Below, we will generate the intersection X pos,n-k ∩X neg,n Regression test data X deg It may be expressed as:

[0025] In this information processing device 1, DNN model correction is performed based on the first hypothesis that data for which inference was successful using the previous generation DNN model is easy to correct, and the second hypothesis that the difference in weighting before and after correction affects degradation and correction.

[0026] The test data classification unit 102 inputs the same test data to the n-th generation model and the n-th generation model. If estimation is successful in the n-th generation model and fails in the n-th generation model, the test data is determined (classified) as regressed test data.

[0027] On the other hand, if the estimation fails in the n-th generation model and succeeds in the n-th generation model, the test data classification unit 102 determines (classifies) the test data as improved test data. The test data classification unit 102 stores the classified improvement test data and regression test data in a predetermined storage area such as the storage device 13.

[0028] The weight difference measurement unit 103 calculates the weight difference between the weight of the current generation model and the weight of the previous generation model. The weight difference is the absolute value of the value obtained by subtracting the weight of the previous generation model from the weight of the current generation model.

[0029] The weight difference measurement unit 103 takes the absolute value of the difference between the set of weights in the nth generation DNN model and the set of weights in the nkth generation DNN model in layer l, and generates a list of weights sorted in descending order of the absolute value. FIG. 4 is a diagram for explaining a process performed by the weight difference measurement unit 103 in the information processing device 1 as an example of an embodiment.

[0030] In FIG. 4, the symbol A indicates information on the previous generation (nk generation) of the DNN model, and the symbol B indicates information on the current generation (n generation) of the DNN model. In the example shown in FIG. 4, the information on the DNN model includes layers, types, weights, and the number of weights.

[0031] Layer is identification information for identifying a layer, and natural numbers are used in the example shown in Fig. 4. Type is the type of layer, and Conv2D and Dense are used in the example shown in Fig. 4. Weight is the weight value used in each layer, and is flattened to one dimension in the example shown in Fig. 4. The number of weights is the number of weights provided in each layer.

[0032] In addition, in each layer, an index is set for each weight, and for example, a natural number sequence such as 0, 1, 2, 3, is set as the index. In the example shown in Fig. 4, for example, the weights [0.053, 0.124, , 0.122] of layer 1 are set to indexes [0, 1, , 895].

[0033] That is, the weights for each layer of the n-th generation DNN model indicated by symbol A, and the weights for each layer of the n-th generation DNN model indicated by symbol B are arranged in index order.

[0034] Also, in Fig. 4, the symbol C indicates weight differential information. This weight differential information indicated by the symbol C includes a layer, a weight differential, and the number of weights. In the figure, the same items as those already described indicate the same contents, and therefore the description thereof will be omitted. In the following, the weight differential information may be denoted by the symbol 201 and expressed as weight differential information 201.

[0035] The weight difference is calculated by subtracting the weight of each corresponding index in the same layer in the n-th generation DNN model indicated by symbol A from the weight of each layer in the n-th generation DNN model indicated by symbol B.

[0036] For example, by subtracting the weight of index 1 of layer 1 of the n-th generation DNN model, “0.053”, from the weight of index 1 of layer 1 of the n-th generation DNN model, “0.054”, the weight difference of index 1 of layer 1, “0.001”, is obtained.

[0037] The weight difference information 201 represents a plurality of edges (changed edge group) that have weights different from those of the edges included in the n-th generation DNN model among the edges included in the n-th generation DNN model. Therefore, the weight difference measurement unit 103 executes a process of extracting, as a changed edge group, edges that have weights different from those of the edges included in the n-th generation DNN model among the edges included in the n-th generation DNN model.

[0038] 4, symbol D indicates an index list in which the weight differences in the weight difference information indicated by symbol C are sorted in descending order of value. Hereinafter, the index list in which the weight differences in the weight difference information are sorted in descending order of value may be referred to as weight difference ordered index list 210. The weight difference order index list 210 includes a layer, a weight difference order sorted index, and the number of weights.

[0039] The weight difference sorted index is obtained by sorting the weight differences in the weight difference information indicated by reference symbol C in descending order of value, and expressing the weight difference values ​​in the form of corresponding weight indices instead of the weight difference values.

[0040] As a result, by referring to the weight difference ordered index list 210, it is possible to easily know, for each layer, the weights that have a large weight change amount (weight difference) caused by the modification of the DNN model.

[0041]

number

[0042] The weighting influence measurement unit 104 measures the influence of the weighting on the output by differentiating the output of each of the regression test data and the improvement test data by the DNN model with the weighting. FIG. 5 is a diagram for explaining the process by the weighting effect measuring unit 104 in the information processing device 1 as one example of the embodiment. In the example shown in Figure 5, regression test data is input to the nth generation DNN model, and an output (estimation result) is obtained. In Figure 5, symbol A illustrates the weights for each layer of the nth generation DNN model, and symbol B illustrates the output.

[0043] The weight influence measurement unit 104 calculates the influence (influence) of each weight value on the output by automatically differentiating the output of the DNN model using the weights. Hereinafter, the influence of the weight calculated based on the regression test data may be referred to as the regression influence. The weight influence measurement unit 104 calculates the regression influence by deg The output Y when input to the n-generation model deg Let W be the weight n The regression influence in layer l is calculated by the following formula:

[0044]

number

[0045] The influence of the weight on the output is calculated for each layer in the DNN model, and is calculated for each value of the weight of the same layer. In the example shown in FIG. 5, for example, for the weight of layer 1 [0.053, 0.124, . . . , 0.122], the influence of the weight on the output is calculated as [0.001, 0.002, . . . , -0.004]. In addition, hereinafter, the regression influence information may be denoted by the symbol 202 and expressed as regression influence information 202. Furthermore, the weight influence measuring unit 104 generates an index list in which the weights are sorted in descending order of the influence on the output for each layer. In FIG. 5, reference symbol D denotes an index list in which the indexes are sorted in order of regression influence. Hereinafter, the index list in which the regression influence of the weights is sorted in descending order of value may be referred to as a regression influence ordered index list 220.

[0046] The regression influence order index list 220 indicates an index list sorted in descending order of the influence value of the weight on the output in the regression influence information indicated by the symbol C. This regression influence order index list 220 includes a layer, a regression influence order sorted index (index), and the number of weights.

[0047] The regression influence sorted index is obtained by rearranging the influence of the weights on the output of the regression influence information 202 indicated by symbol C in descending order of value, and expressing the weight index corresponding thereto instead of the influence value.

[0048] This makes it possible to easily know, by referring to the regression influence order index list 220, the weights that have a high influence on the output in the DNN model for each layer.

[0049]

number

[0050] The weight influence measurement unit 104 calculates the influence (influence) of each weight value on the output by automatically differentiating the output of the DNN model using the weight. Hereinafter, the influence of the weight calculated based on the improvement test data may be referred to as the improvement influence. The improvement influence in layer l is expressed by the following formula.

[0051]

number

[0052] The influence of the weight on the output is calculated for each layer in the DNN model, and is calculated for each value of the weight of the same layer. In the example shown in Fig. 6, for example, for the weight of layer 1 [0.053, 0.124, , 0.122], the influence of the weight on the output is calculated as [0.001, 0.002, , -0.004]. In addition, hereinafter, the improvement influence information may be denoted by the symbol 203 and expressed as improvement influence information 203. Furthermore, the weight influence measuring unit 104 generates an index list in which the weights are sorted in descending order of the influence on the output for each layer. In FIG. 6, reference symbol D denotes an index list in which the indexes are sorted in order of influence. Hereinafter, the index list in which the improvement influence of the weights is sorted in descending order of value may be referred to as an improvement influence ordered index list 230.

[0053] The improvement impact order index list 230 indicates an index list sorted in descending order of the impact value of the weights on the output in the improvement impact information indicated by symbol C. This improvement impact order index list 230 includes a layer, an improvement impact order sorted index (index), and the number of weights.

[0054] The index sorted by improvement impact is obtained by sorting the weighting influence on the output of the improvement impact information indicated by symbol C in descending order of value, and expressing the weighting influence as an index instead of the influence value.

[0055] This makes it possible to easily know, by referring to the improvement influence order index list 230, the weights that have a high influence on the output in the DNN model for each layer.

[0056]

number

[0057] 7, symbol A denotes weight difference information 201. Selection weight number determination unit 105 calculates an average value of weight differences for each layer based on weight difference information 201. The average of weight differences for each layer is expressed as follows.

[0058]

number

[0059] Furthermore, the selected weight number determination unit 105 normalizes the average value of the calculated weight differences for each layer so that the sum over all layers is 1. The average of the normalized weight differences can be expressed as follows.

[0060]

number

[0061] 7, the symbol C indicates the regression influence information 202. The selection weight number determination unit 105 calculates the average value of the regression influence (the influence of the weight on the output) for each layer based on the regression influence information 202. The average of the regression influence for each layer is expressed as follows.

[0062]

number

[0063]

number

[0064] 7, the symbol E indicates the improvement impact information 203. The selection weight number determination unit 105 calculates the average value of the improvement impact (the impact of the weight on the output) for each layer based on the improvement impact information 203. The average improvement impact for each layer is expressed as follows.

[0065]

number

[0066]

number

[0067] The selection weight number determination unit 105 calculates a suspicion value susp for each layer based on these normalized average weight differences, average regression influence, and average improvement influence, using the following formula (1).

[0068]

number

[0069] The selection weight number determination unit 105 determines the number of weights to be selected as correction targets in each layer based on the suspicion value susp. The selection weight number determination unit 105 determines the selection weight number for each layer using the following formula (2).

[0070]

number

[0071] The weight to be modified identification unit 106 selects the number of selected weights' worth of indexes from the top of the weight difference sorted indexes for each layer based on the weight difference order index list 210. Hereinafter, the top indexes from the weight difference sorted indexes to the selected weights' worth of indexes may be referred to as weight difference top indexes. The weight difference top indexes are a set of weights with large weight differences from the previous generation (nk generation) DNN model. An example of weight difference top indexes is shown in symbol A of FIG. 8.

[0072]

number

[0073] Furthermore, the correction target weight identification unit 106 selects indexes for each layer from the top of the regression influence sorted indexes for the number of selected weights based on the regression influence index list 220. Hereinafter, the top indexes for the number of selected weights selected from the regression influence sorted indexes may be referred to as the regression influence top indexes. The regression influence top indexes are a set of weights that are heavily influenced by the regression test data. An example of the regression influence top indexes is shown in symbol B of FIG. 8.

[0074]

number

[0075] The upper regression influence index corresponds to the first edge classification that has influenced the output of the regression test data. Therefore, the correction target weight specification unit 106 executes a process of classifying the edges (weights) in each layer into the first edge classification that has influenced the output of the regression test data. Then, the correction target weight specifying unit 106 gives priority to edges with a large degree of regression influence and classifies them as the first edge classification. The correction target weight specifying unit 106 stores the selected regression influence degree upper index in a predetermined storage area of ​​the storage device 13 or the like.

[0076] Furthermore, the correction target weight identification unit 106 selects indexes for each layer from the top of the indexes sorted by improvement impact order, the number of which corresponds to the number of selected weights, based on the improvement impact index list 230. Hereinafter, the top indexes for the number of selected weights selected from the indexes sorted by improvement impact order may be referred to as the improvement impact top indexes. The improvement impact top indexes are a set of weights that are greatly influenced by the improvement test data. An example of the improvement impact top indexes is shown in symbol C in FIG. 8.

[0077]

number

[0078] The upper index of the improvement influence corresponds to the second edge classification that influenced the output of the improved test data. Therefore, the correction target weight specification unit 106 executes a process of classifying the edges (weights) in each layer into the second edge classification that influenced the output of the improved test data. Then, the correction target weight specifying unit 106 gives priority to edges with a large degree of improvement influence and classifies them as the second edge classification. The correction target weight specifying unit 106 stores the selected improvement influence degree upper index in a predetermined storage area of ​​the storage device 13 or the like.

[0079] Then, the correction target weight identification unit 106 selects, from among the weights that have a large difference in weight from the previous generation DNN model in Fault Localization, those that are heavily influenced by the regression test data and less influenced by the improvement test data as the correction target weights.

[0080] In other words, the correction target weight identification unit 106 identifies the weights to be corrected by taking the difference (\) of the "set of weights that are greatly influenced by the improvement test data" from the intersection (∩) of the "set of weights with a large difference in weight from the previous generation" and the "set of weights that are greatly influenced by the regression test data." FIG. 9 is a diagram for explaining the process of the correction target weight identifying unit 106 in the information processing device 1 as one example of the embodiment.

[0081] In Fig. 9, A indicates a set of weights with a large difference from the previous generation (nk), B indicates a set of weights that are heavily influenced by regression test data, and C indicates a set of weights that are heavily influenced by improvement test data.

[0082] For example, for a certain layer, the weight elements of the "set of weights with a large difference from the previous generation" are {w1, w2, w3, w4, w5}, the weight elements of the "set of weights with a large influence from regression test data" are {w1, w2, w3}, and the weight elements of the "set of weights with a large influence from improvement test data" are {w2, w4}. In such a case, the weight elements {w1, w3} are selected as the weights to be modified.

[0083] In addition, weights with a large weight difference, weights that are greatly influenced by regression test data, and weights that are greatly influenced by improvement test data are the top predetermined number of weights (number of selected weights) when sorting by weight difference or influence value.

[0084]

number

[0085] 10, symbol A indicates a weight difference upper index extracted from the weight difference ordered index list 210, symbol B indicates a regression impact upper index extracted from the regression impact ordered index list 220. Symbol C indicates an improvement impact upper index extracted from the improvement impact ordered index list 230.

[0086] The correction target weight specifying unit 106 obtains the product set of the weight difference upper index and the regression influence upper index. That is, the correction target weight specifying unit 106 extracts indexes “77” and “572” that are in both the weight difference upper index and the regression influence upper index (see symbol P1).

[0087] Next, the correction target weight specifying unit 106 obtains the difference set of the improvement influence upper index from the product set of the weight difference upper index and the regression influence upper index. In other words, the correction target weight specifying unit 106 does not specify the index "287" as a correction target if it is in the improvement influence upper rank even if it is in the weight difference upper rank and regression influence upper rank (see symbol P2). As a result, the correction target weight identifying unit 106 selects the weights with indexes "77" and "572" as correction target weights for layer 1 (see symbol D).

[0088] In this way, the correction target weight identification unit 106 performs a process of identifying a third edge group as a correction target, which is obtained by subtracting the second edge group included in the higher improvement influence index (second edge classification) from the first edge group included in the higher regression influence index (first edge classification).

[0089] In addition, the correction target weight for each layer shown in Figure 10 corresponds to the edge group (third edge group, correction target) obtained by subtracting the edge group (second edge group) included in the second edge classification from the edge group (first edge group) included in the first edge classification.

[0090]

number

[0091] The output W localize For example, weights are modified using PSO (Particle swarm optimization). The fitness may be calculated using the following formula:

[0092]

number

[0093] In addition, N patched indicates the number of corrected failed test data, and N intactis the number of successful test data that remains unchanged. Note that PSO is a known method, and a detailed description thereof will be omitted. (B) Operation

[0094] The process of the information processing device 1 as one example of the embodiment configured as described above will be described with reference to the flowcharts (steps S1 to S34) shown in FIG. 11 and FIG. FIG. 11 shows the process of steps S1 to S14, and FIG. 12 shows the process of steps S15 to S34.

[0095] In step S1 of Fig. 11, the model training unit 101 performs training by inputting training data to the DNN model. The model training unit 101 records information on the n-th generation DNN model and the nk-th generation DNN model in the storage device 13 or the like.

[0096] In step S2 in Fig. 11, a loop process is started in which the control up to step S7 in Fig. 11 is repeatedly performed for all test data. Note that x is a variable for identifying the test data. In step S3 of FIG. 11, the test data classification unit 102 inputs the test data x to the nk-th generation DNN model and the n-th generation DNN model.

[0097] In step S4 of FIG. 11, the test data classification unit 102 checks whether the test data x is successfully estimated by the nk-th generation DNN model and fails to be estimated by the n-th generation DNN model. If the result of this check is that the test data x is not successfully estimated by the nk-th generation DNN model and fails to be estimated by the n-th generation DNN model (see NO route), the process proceeds to step S6 of FIG.

[0098] Also, if the result of the check in step S4 shows that the test data x is successfully estimated in the n-th generation DNN model and unsuccessfully estimated in the n-th generation DNN model (see the YES route in step S4), the process proceeds to step S5 in Fig. 11. In step S5, the test data classification unit 102 adds the test data x to the regression test data. Then, the process proceeds to step S6.

[0099] In step S6, the test data classification unit 102 checks whether the test data x is one that has failed to be estimated by the nk-th generation DNN model and has been successfully estimated by the n-th generation DNN model. If the result of this check is that the test data x is one that has failed to be estimated by the nk-th generation DNN model and has not been successfully estimated by the n-th generation DNN model (see the NO route in step S6), proceed to step S8.

[0100] Also, if the result of the check in step S6 shows that the estimation of the test data x fails in the n-th generation DNN model and succeeds in the n-th generation DNN model (see the YES route in step S6), the process proceeds to step S7 in FIG. 11. In step S7, the test data classification unit 102 adds the test data x to the improved test data. Then, the process proceeds to step S8.

[0101] In step S8, a loop end process corresponding to step S2 is performed. When the process for all the test data is completed, the control proceeds to step S9 in FIG.

[0102] In step S9, the weight difference measurement unit 103 records the weight difference calculated by taking the absolute value of the difference between the set of weights in the nth generation DNN model and the set of weights in the nkth generation DNN model in the storage device 13, etc. In step S10 of FIG. 11, the weight difference measurement unit 103 records in the storage device 13 or the like a weight difference sorted index list in which the weight indices are sorted in order of the magnitude of the weight differences.

[0103] In step S11 of FIG. 11, the weighting effect measurement unit 104 measures the regression test data X deg The output Y when input to the nth generation model deg The weight W n By automatically differentiating with , the regression effect ∂Y deg / ∂W n is calculated, and the calculated regression influence degree is recorded in the storage device 13 or the like.

[0104] In step S12 of FIG. 11, the weighting influence measuring section 104 records, in the storage device 13 or the like, a regression influence sorted index list in which the weighting indices are sorted in the order of magnitude of the regression influence.

[0105] In step S13 of FIG. 11, the weighting effect measurement unit 104 calculates the improved test data X imp The output Y when input to the nth generation model imp The weight W n By automatically differentiating with, the improvement impact degree ∂Y imp / ∂W n is calculated, and the calculated improvement impact degree is recorded in the storage device 13 or the like.

[0106] In step S14 of FIG. 11, the weighting influence measuring unit 104 records an index list sorted in order of improvement influence, in which the weighting indices are sorted in order of the magnitude of the improvement influence, in the storage device 13 or the like. In step S15 of FIG. 12, a loop process is started in which the control up to step S18 is repeatedly performed for all layers l in the DNN model. In step S16 of FIG. 12, the selection weight number determination unit 105 calculates the average of the weight differences of the layer l, and records it in the storage device 13 or the like. In step S17 of FIG. 12, the selection weight number determination unit 105 calculates the average of the regression influence degrees of layer l, and records it in the storage device 13 or the like. In step S18 of FIG. 12, the selection weight number determination unit 105 calculates the average improvement influence degree of layer l, and records it in the storage device 13 or the like.

[0107] In step S19 in Fig. 12, a loop end process corresponding to step S15 is performed. When the process for all layers is completed, control proceeds to step S20 in Fig. 12. In step S20, a loop process is started in which the control up to step S25 is repeatedly performed for all layers l in the DNN model. In step S21 of FIG. 12, the selection weight number determination unit 105 calculates the normalized weight difference average of the layer l, and records it in the storage device 13 or the like. In step S22 of FIG. 12, the selection weight number determination unit 105 calculates the normalized regression influence average of the layer l, and records it in the storage device 13 or the like. In step S23 of FIG. 12, the selection weight number determination unit 105 calculates the normalized improvement influence average of the layer l, and records it in the storage device 13 or the like. In step S24 of FIG. 12, the selection weight number determination unit 105 calculates the suspicion value of layer l based on the above formula (1).

[0108] In step S25 of FIG. 12, the selected weight number determination unit 105 determines the number of weights to be selected as correction targets in layer l based on the suspicion value, and records the number in the storage device 13 or the like.

[0109] In step S26 of Fig. 12, a loop end process corresponding to step S20 is performed. When the process for all layers is completed, control proceeds to step S27 of Fig. 12. In step S27, a loop process is started in which the control up to step S32 is repeatedly performed for all layers l in the DNN model.

[0110] In step S28 of FIG. 12, the correction target weight identification unit 106 generates a weight difference upper index for layer l, which is a set of selected weights from the top of the weight difference sorted index, and records it in the storage device 13 or the like.

[0111] In step S29 of Figure 12, the correction target weight identification unit 106 generates a regression influence top index for layer l, which is a set of weights selected from the top of the regression influence sorted index up to the number of selected weights, and records it in the storage device 13, etc.

[0112] In step S30 of FIG. 12, the correction target weight identification unit 106 generates an improvement impact top index for layer l, which is a set of weights selected from the top of the improvement impact sorted index up to the number of selected weights, and records it in the storage device 13, etc.

[0113] In step S31 of FIG. 12, the correction target weight identification unit 106 generates an index set for layer l, where the index set is weight difference upper index ∩ regression influence upper index \ improvement influence upper index, as an index of the correction target weight, and records the index in the storage device 13, etc.

[0114] In step S32 of FIG. 12, for layer l, the correction target weight identifying unit 106 records the weight identified by the index of the correction target weight as the correction target weight.

[0115] In step S33 of Fig. 12, a loop end process corresponding to step S27 is performed. When the process is completed for all layers l, control proceeds to step S34.

[0116] In step S34 of FIG. 12, the correction target weight specification unit 106 determines the correction target weights W localize Then, the process ends. Then, the weights W localize The weights are modified using, for example, PSO. (C) Effects

[0117] In this way, according to the information processing device 1 as an example of the embodiment, the correction target weight specification unit 106 selects, in each layer, a weight that is included in the top rank of the regression influence degree and the top rank of the weight difference, and is not included in the top rank of the improvement influence degree, as a correction target weight. This makes it possible to realize correction of weights that are less likely to cause regression.

[0118] That is, by excluding weights with a large improvement influence from the weights to be modified, the weights of the edge groups that led to the improvement are used as they are. On the other hand, by including weights with a large regression influence from the weights to be modified, the weights of the edge groups that led to the regression are included in the weights to be modified. Therefore, it is possible to use the weights of the edge groups that led to the improvement as they are, while only the weights of the edge groups that led to the regression are modified. FIG. 13 is a diagram illustrating a simulation result in the information processing device 1 as one example of the embodiment.

[0119] In FIG. 13, a correction target edge determination method by the information processing device 1 is shown in comparison with a conventional method (Arachne) using traffic sign images of the GTSRB (The German Traffic Sign Recognition Benchmark) as target data.

[0120] As shown in FIG. 13, it can be seen that the method for determining an edge to be repaired by the information processing device 1 is successful in suppressing the BreakRate while maintaining a sufficient RepairRate. (D) Other FIG. 14 is a diagram illustrating a hardware configuration of an information processing device 1 as an example of an embodiment.

[0121] The information processing device 1 is a computer and includes, as components, a processor 11, a memory 12, a storage device 13, a graphics processing device 14, an input interface 15, an optical drive device 16, a device connection interface 17, and a network interface 18. These components 11 to 18 are configured to be able to communicate with each other via a bus 19.

[0122] The processor (control unit) 11 controls the entire information processing device 1. The processor 11 may be a multiprocessor. The processor 11 may be, for example, any one of a CPU, an MPU (Micro Processing Unit), a DSP (Digital Signal Processor), an ASIC (Application Specific Integrated Circuit), a PLD (Programmable Logic Device), and an FPGA (Field Programmable Gate Array). The processor 11 may also be a combination of two or more types of elements among the CPU, MPU, DSP, ASIC, PLD, and FPGA.

[0123] Then, when the processor 11 executes a control program for the information processing device 1 (a program for determining edges to be corrected: not shown), the functions of the model training unit 101, the test data classification unit 102, the weight difference measurement unit 103, the weight influence measurement unit 104, the number of selected weights determination unit 105 and the correction target weight identification unit 106 illustrated in FIG. 1 are realized.

[0124] The information processing device 1 realizes the functions of a model training unit 101, a test data classification unit 102, a weight difference measurement unit 103, a weight influence measurement unit 104, a selected weight number determination unit 105 and a correction target weight identification unit 106, for example, by executing a program (correction target edge determination program, OS program) recorded on a computer-readable non-transitory recording medium.

[0125] The programs describing the processing contents to be executed by the information processing device 1 can be recorded on various recording media. For example, the programs to be executed by the information processing device 1 can be stored in the storage device 13. The processor 11 loads at least a part of the programs in the storage device 13 into the memory 12 and executes the loaded programs.

[0126] The programs to be executed by the information processing device 1 (processor 11) may also be recorded in a non-transitory portable recording medium such as the optical disk 16a, the memory device 17a, or the memory card 17c. The programs stored in the portable recording medium are executable after being installed in the storage device 13, for example, under the control of the processor 11. The processor 11 may also read and execute the programs directly from the portable recording medium.

[0127] The memory 12 is a storage memory including a ROM (Read Only Memory) and a RAM (Random Access Memory). The RAM of the memory 12 is used as a main storage device of the information processing device 1. The RAM temporarily stores at least a part of the program to be executed by the processor 11. The memory 12 also stores various data necessary for processing by the processor 11.

[0128] The storage device 13 is a storage device such as a hard disk drive (HDD), a solid state drive (SSD), a storage class memory (SCM), etc., and stores various data. The storage device 13 is used as an auxiliary storage device for the information processing device 1. An OS program, a control program, and various data are stored in the storage device 13. The control program includes a correction target edge determination program.

[0129] As the auxiliary storage device, a semiconductor storage device such as an SCM or a flash memory can also be used. Furthermore, a plurality of storage devices 13 may be used to configure a RAID (Redundant Arrays of Inexpensive Disks).

[0130] The storage device 13 may store information on the previous generation model and the current generation model, and may also store regression test data and improvement test data. Furthermore, the storage device 13 may store at least a part of the weight difference information 201, the regression influence information 202, the improvement influence information 203, the weight difference ordered index list 210, the regression influence ordered index list 220, and the improvement influence ordered index list 230. Furthermore, the storage device 13 may store the number of selected weights for each layer determined by the selected weight number determination unit 105. Furthermore, the storage device 13 may record at least a part of the weight difference upper index, the regression influence upper index, the improvement influence upper index, the index list sorted by weight difference, the index list sorted by regression influence, and the index list sorted by improvement influence.

[0131] A monitor 14a is connected to the graphics processing device 14. The graphics processing device 14 displays an image on the screen of the monitor 14a in accordance with an instruction from the processor 11. Examples of the monitor 14a include a display device using a CRT (Cathode Ray Tube) and a liquid crystal display device.

[0132] A keyboard 15a and a mouse 15b are connected to the input interface 15. The input interface 15 transmits signals sent from the keyboard 15a and the mouse 15b to the processor 11. The mouse 15b is an example of a pointing device, and other pointing devices can also be used. Examples of other pointing devices include a touch panel, a tablet, a touch pad, and a trackball.

[0133] The optical drive device 16 uses a laser beam or the like to read data recorded on an optical disk 16a. The optical disk 16a is a portable, non-transient recording medium on which data is recorded so that it can be read by the reflection of light. Examples of the optical disk 16a include a DVD (Digital Versatile Disk), a DVD-RAM, a CD-ROM (Compact Disc Read Only Memory), and a CD-R (Recordable) / RW (ReWritable).

[0134] The device connection interface 17 is a communication interface for connecting peripheral devices to the information processing device 1. For example, a memory device 17a or a memory reader / writer 17b can be connected to the device connection interface 17. The memory device 17a is a non-transitory recording medium equipped with a communication function with the device connection interface 17, such as a Universal Serial Bus (USB) memory. The memory reader / writer 17b writes data to a memory card 17c or reads data from the memory card 17c. The memory card 17c is a card-type non-transitory recording medium.

[0135] The network interface 18 is connected to a network. The network interface 18 transmits and receives data via the network. Other information processing devices, communication devices, etc. may be connected to the network. Regardless of the embodiment described above, various modifications can be made without departing from the spirit of the present embodiment. For example, in the above-described embodiment, an example is shown in which the invention is applied to a DNN, but the invention is not limited to this and may be applied to a NN. Furthermore, the above disclosure enables a person skilled in the art to implement and manufacture the present embodiment. (E) Notes Regarding the above embodiment, the following supplementary notes are further disclosed.

[0136] (Appendix 1) When the information processing device determines an edge to be modified among edges included in the neural network model, A process of extracting, from among the edges included in the second generation trained machine learning model, edges having weights different from those of the edges included in the first generation trained machine learning model prior to the second generation as a group of changed edges; A process of classifying the changed edge group into a first edge classification that has influenced the output of regressed test data, which is test data in which regression has occurred, and a second edge classification that has influenced the output of improved test data, which is test data in which improvement has occurred; a process of identifying a third edge group, which is obtained by subtracting a second edge group included in the second edge classification from a first edge group included in the first edge classification, as a correction target; A correction target edge determining method comprising:

[0137] (Appendix 2) The extraction process, the classification process, and the identification process are performed for each layer of the neural network. 2. The correction target edge determination method according to claim 1,

[0138] (Appendix 3) In the extraction process, Among the edges included in the second generation trained machine learning model, edges having weights different from those of the edges included in the first generation trained machine learning model are preferentially extracted, and edges having a large difference between the weights of the second generation trained machine learning model and the weights of the first generation trained machine learning model are preferentially extracted. 3. The correction target edge determination method according to claim 1 or 2,

[0139] (Appendix 4) In the classification process, the regression test data is input to the second generation trained machine learning model, and the output obtained by differentiating the output with a weight is used to give priority to an edge having a large regression influence, which is determined as the first edge classification. 4. The correction target edge determination method according to any one of claims 1 to 3.

[0140] (Appendix 5) In the classification process, the improved test data is input to the second generation trained machine learning model, and the output obtained is differentiated with a weight to give priority to an edge having a large improvement influence, which is determined as the second edge classification. 5. The correction target edge determination method according to any one of claims 1 to 4.

[0141] (Appendix 6) A processor of an information processing device that determines edges to be modified among edges included in a neural network model, A process of extracting, from among the edges included in the second generation trained machine learning model, edges having weights different from those of the edges included in the first generation trained machine learning model prior to the second generation as a group of changed edges; A process of classifying the changed edge group into a first edge classification that has influenced the output of regressed test data, which is test data in which regression has occurred, and a second edge classification that has influenced the output of improved test data, which is test data in which improvement has occurred; a process of identifying a third edge group, which is obtained by subtracting a second edge group included in the second edge classification from a first edge group included in the first edge classification, as a correction target; A correction target edge determining program for executing the above.

[0142] (Appendix 7) The processor, The extraction process, the classification process, and the identification process for each layer of the neural network. 7. The correction target edge determination program according to claim 6, which executes the above.

[0143] (Appendix 8) The processor, Among the edges included in the second generation trained machine learning model, edges having weights different from those of the edges included in the first generation trained machine learning model are preferentially extracted, and edges having a large difference between the weights of the second generation trained machine learning model and the weights of the first generation trained machine learning model are preferentially extracted. 8. The correction target edge determination program according to claim 6 or 7, characterized in that it causes a process to be executed.

[0144] (Appendix 9) The processor, The regression test data is input to the second generation trained machine learning model, and the output obtained is differentiated with respect to a weight. The first edge classification is given priority to edges having a large regression influence. 9. The correction target edge determination program according to any one of claims 6 to 8, which causes a process to be executed.

[0145] (Appendix 10) The processor, The improved test data is input to the second generation trained machine learning model, and the output obtained is differentiated with a weight. The second edge classification is given priority to edges having a large improvement effect. 10. The correction target edge determination program according to any one of claims 6 to 9, which causes a process to be executed. [Explanation of symbols]

[0146] 1. Information processing device 11 Processor (processing unit) 12. Memory 13 Storage device 14 Graphics Processing Unit 14a Monitor 15 Input Interface 15a Keyboard 15b Mouse 16 Optical drive device 16a Optical disc 17 Device connection interface 17a Memory Device 17b Memory Reader / Writer 17c Memory Card 18 Network Interface 18a Network 19 Bus 101 Model Training Department 102 Test Data Classification Section 103 Weight differential measurement unit 104 Weighting Effect Measurement Unit 105 Selection weight number determination unit 106 Correction target weight specification unit 201 Weighted Differential Information 202 Regression impact information 203 Improvement impact information 210 Weighted Difference Order Index List 220 Index list of regression effects 230 Improvement Impact Index

Claims

1. When the information processing device determines an edge to be modified among edges included in a machine learning model of a neural network, A process of extracting, from among the edges included in the second generation trained machine learning model, edges having weights different from those of the edges included in the first generation trained machine learning model prior to the second generation as a group of changed edges; A process of classifying the changed edge group into a first edge classification that has influenced the output of regressed test data, which is test data in which regression has occurred, and a second edge classification that has influenced the output of improved test data, which is test data in which improvement has occurred; a process of identifying a third edge group, which is obtained by subtracting a second edge group included in the second edge classification from a first edge group included in the first edge classification, as a correction target; A correction target edge determining method comprising:

2. The extraction process, the classification process, and the identification process are performed for each layer of the neural network.

2. The method for determining an edge to be corrected according to claim 1, wherein the method further comprises the step of:

3. In the extraction process, Among the edges included in the second generation trained machine learning model, edges having weights different from those of the edges included in the first generation trained machine learning model are preferentially extracted, and edges having a large difference between the weights of the second generation trained machine learning model and the weights of the first generation trained machine learning model are preferentially extracted.

3. The method for determining an edge to be corrected according to claim 1, wherein the correction target edge is determined based on the determined edge.

4. In the classification process, the regression test data is input to the second generation trained machine learning model, and the output obtained is differentiated with a weight to give priority to an edge having a large regression influence, which is determined as the first edge classification.

4. The correction target edge determining method according to claim 1, further comprising the steps of:

5. In the classification process, the improved test data is input to the second generation trained machine learning model, and the output obtained is differentiated with a weight to give priority to an edge having a large improvement influence, which is determined as the second edge classification.

5. The correction target edge determining method according to claim 1, further comprising the steps of:

6. A processor of an information processing device that determines edges to be modified among edges included in a neural network model, A process of extracting, from among the edges included in the second generation trained machine learning model, edges having weights different from those of the edges included in the first generation trained machine learning model prior to the second generation as a group of changed edges; A process of classifying the changed edge group into a first edge classification that has influenced the output of regressed test data, which is test data in which regression has occurred, and a second edge classification that has influenced the output of improved test data, which is test data in which improvement has occurred; a process of identifying a third edge group, which is obtained by subtracting a second edge group included in the second edge classification from a first edge group included in the first edge classification, as a correction target; A correction target edge determining program for executing the above.

Citation Information

Patent Citations

  • Learning method for neural network fitted to parallel processing

    JP1997128358A

  • Learning device, learning method and program

    JP2019185121A

  • Learning support device and learning support method

    JP2019204190A

  • Controlled selection of inputs

    US20040111385A1