Model evaluation device, model evaluation method and model evaluation program
The model evaluation device calculates feature vector differences for shifted image pairs and averages these values to accurately assess shift invariance, addressing bias in existing evaluation methods.
Patent Information
- Application Number
- JP2021158633
- Authority / Receiving Office
- JP · JP
- Patent Type
- Patents
- Current Assignee / Owner
- Filing Date
- 2021-09-29
- Publication Date
- 2024-08-29
- Estimated Expiration
- 2041-09-29
AI Technical Summary
Existing methods for evaluating shift invariance in machine learning models, such as CNNs, are biased by indicators unrelated to shift invariance, leading to inaccurate evaluations.
A model evaluation device and method that calculates the difference between feature vectors of shifted image pairs and averages these values to provide a representative evaluation value, independent of the model's classification accuracy.
This approach allows for a correct evaluation of shift invariance by minimizing bias from classification accuracy, providing stable and unbiased evaluation values.
Smart Images

Figure 0007541698000007 
Figure 0007541698000005 
Figure 0007541698000006
Abstract
Description
[Technical field]
[0001] The present invention relates to a model evaluation device, a model evaluation method, and a model evaluation program. [Background technology]
[0002] In recent years, the accuracy of image processing technology using machine learning technology, particularly Convolutional Neural Networks (CNN), has improved significantly. It is preferable that the evaluation result of an input signal by a model does not change due to a shift in the input signal. This property of the evaluation result not changing due to a shift is called shift invariance. CNN was thought to have shift invariance as shown in Non-Patent Document 1, but it has been revealed that in reality, shifts affect the evaluation result (Non-Patent Document 2).
[0003] Non-Patent Document 2 proposes an index called Consistency as an index for evaluating the shift invariance of a trained model. According to Non-Patent Document 2, image classification is performed using a trained model for a pair of images in which the same image is given different shifts, and the rate at which the classes of the image pair match is calculated as the consistency. [Prior art documents] [Non-patent literature]
[0004] [Non-Patent Document 1] K. Fukushima, “Neocognitron: A self-organizing neural network model for a mechanism of pattern recognition unaffected by shift in position”, 1980. [Non-Patent Document 2] R. Zhang, “Making Convolutional Networks Shift-Invariant Again”, 2019. Summary of the Invention [Problem to be solved by the invention]
[0005] Here, the inventor evaluated consistency using a correct image group consisting only of images whose classes were correctly identified by the trained model (hereinafter, correct images) and an incorrect image group consisting only of images whose classes were incorrect (hereinafter, incorrect images). As a result, the inventor discovered that the consistency obtained from the correct image group was significantly larger than the consistency obtained from the incorrect image group. From this, the inventor considered that the evaluation by consistency may be biased by an index that has no direct relationship to shift invariance, such as the classification accuracy of the trained model, and that it may not be possible to appropriately evaluate the shift invariance. For example, even if consistency is obtained using the same number of images, if the classification accuracy of the trained model is high, the number of correct images will be relatively large compared to the number of incorrect images, and therefore the consistency may be evaluated higher.
[0006] An object of the present invention is to provide a model evaluation device, a model evaluation method, and a model evaluation program that are capable of properly evaluating shift invariance. [Means for solving the problem]
[0007] A first aspect of the present invention is a model evaluation device comprising: a signal pair evaluation unit that acquires an evaluation value that evaluates the magnitude of difference between the feature vectors of each of a plurality of signal pairs obtained by inputting signal pairs having mutual deviations generated from a plurality of test signals into a trained model that outputs a feature vector representing the characteristics of the input signal based on the signal; a group evaluation unit that calculates a representative value of the evaluation values for each group according to the discrimination results of each of the plurality of test signals by the trained model; and a model evaluation unit that calculates an evaluation value of the trained model based on the representative value of the evaluation values for each group.
[0008] A second aspect of the present invention is a model evaluation method comprising the steps of: acquiring an evaluation value for evaluating the magnitude of difference between the feature vectors of each of a plurality of test signals obtained by inputting signal pairs each having a mutual shift generated from a plurality of test signals into a trained model that outputs a feature vector representing the characteristics of the input signal based on the input signal; calculating a representative value of the evaluation value for each group according to the discrimination results of each of the plurality of test signals by the trained model; and calculating an evaluation value of the trained model based on the representative value of the evaluation values for each group.
[0009] A third aspect of the present invention is a model evaluation program for causing a computer to function as the model evaluation device according to the above aspect. Effect of the Invention
[0010] According to the above aspect, shift invariance can be evaluated properly. [Brief description of the drawings]
[0011] [Figure 1] 1 is a schematic diagram showing a configuration of a model evaluation device according to a first embodiment. [Diagram 2] 4 is a flowchart showing the operation of the model evaluation device according to the first embodiment. [Diagram 3] FIG. 3 is a diagram showing an evaluation result of a target model by the model evaluation device according to the first embodiment. [Figure 4] FIG. 13 is a diagram showing an evaluation result of a target model based on consistency as a comparison target. [Diagram 5] FIG. 13 is a diagram illustrating an example of a difference in consistency evaluation value between a correct answer group and an incorrect answer group. [Figure 6] 10 is a flowchart showing the operation of the model evaluation device according to the second embodiment. [Figure 7] FIG. 1 is a schematic block diagram illustrating a configuration of a computer according to at least one embodiment. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0012] First Embodiment Configuration of model evaluation device 1 Hereinafter, the embodiments will be described in detail with reference to the drawings. FIG. 1 is a schematic diagram showing the configuration of a model evaluation device 1 according to the first embodiment. The model evaluation device 1 according to the first embodiment calculates a model evaluation value for evaluating the shift invariance of a trained model. A model (target model) to be evaluated by the model evaluation device 1 according to the first embodiment is composed of CNN, and is a discrimination model that identifies the class to which input image data belongs among N classes. The class indicates, for example, the type of subject appearing in the image data. The target model outputs an N-dimensional vector indicating the belonging probability distribution for the N classes.
[0013] The model evaluation device 1 includes a model input unit 11, a model storage unit 12, a dataset storage unit 13, a shifted image generation unit 14, a discrimination unit 15, a classification unit 16, a signal pair evaluation unit 17, a group evaluation unit 18, a model evaluation unit 19, and an output unit 20.
[0014] The model input unit 11 receives an input of a target model. The target model is represented by trained parameters. The model input unit 11 records the input target model in the model storage unit 12.
[0015] The data set storage unit 13 stores a plurality of data sets in which test images, which are image data to be classified by the target model, are associated with correct labels indicating the classes to which the test images belong. The test images are an example of a test signal.
[0016] The shifted image generating unit 14 generates a pair of image data having a mutual shift from the test images related to the multiple data sets stored in the data set storage unit 13. Specifically, the shifted image generating unit 14 generates first shifted image data by shifting the test image by a first shift amount generated based on a random number, and second shifted image data by shifting the test image by a second shift amount generated based on a random number. The image data pair consisting of the first shifted image data and the second shifted image data is an example of a signal pair.
[0017] The identification unit 15 identifies the class of the image data by inputting the image data into the target model stored in the model storage unit 12. That is, the identification unit 15 obtains an N-dimensional vector by inputting the image data into the target model. The vector output by the target model is an example of a feature vector. The identification unit 15 identifies the class with the highest belonging probability indicated by the obtained vector as the class to which the input image data belongs.
[0018] The classification unit 16 classifies the multiple datasets stored in the dataset memory unit 13 into a correct group in which the class classification result by the classification unit 15 matches the correct label, and an incorrect group in which the class classification result by the classification unit 15 does not match the correct label.
[0019] The signal pair evaluation unit 17 calculates the distance between the vector of the first shifted image data and the vector of the second shifted image data calculated by the discrimination unit 15 as a signal pair evaluation value. As the vector distance, a distribution distance index such as JS (Jensen-Shannon) divergence or KL (Kullback-Leibler) divergence can be used. In other embodiments, other distance indexes such as cosine similarity or Euclidean distance may be used as the vector distance. Note that JS divergence is preferable as a distance index in evaluation using image data pairs because of its symmetry.
[0020] The group evaluation unit 18 calculates the average value of the signal pair evaluation values for each of the correct group and the incorrect group. The average value of the signal pair evaluation values for each group is also referred to as the group evaluation value. Specifically, the group evaluation unit 18 calculates the average value of the signal pair evaluation values of the image data pairs generated from the dataset related to the correct group as the group evaluation value of the correct group. The group evaluation unit 18 calculates the average value of the signal pair evaluation values of the image data pairs generated from the dataset related to the incorrect group as the group evaluation value of the incorrect group.
[0021] The model evaluation unit 19 calculates the average of the group evaluation value of the correct answer group and the group evaluation value of the incorrect answer group as a model evaluation value for evaluating the shift invariance of the target model. The output unit 20 outputs the model evaluation value calculated by the model evaluation unit 19. For example, the output unit 20 may display the model evaluation value on a display (not shown). Also, for example, the output unit 20 may record the model evaluation value in a storage medium (not shown).
[0022] <<Operation of the model evaluation device 1>> FIG. 2 is a flowchart showing the operation of the model evaluation device 1 according to the first embodiment. A user inputs a target model to the model evaluation device 1 in order to have the model evaluation device 1 evaluate the target model. This causes the model evaluation device 1 to start evaluation processing of the target model. When the model evaluation device 1 starts the evaluation processing, it initializes a storage area in the main memory to be used for the evaluation processing. The model input unit 11 of the model evaluation device 1 accepts input of the target model (step S1). The model input unit 11 records the input target model in the model storage unit 12 (step S2). Next, the model evaluation device 1 selects each of the datasets stored in the dataset storage unit 13 (step S3), and executes the processing from step S4 to step S12 for each dataset.
[0023] The shifted image generating unit 14 generates an image data pair consisting of the first shifted image data and the second shifted image data from the test image related to the data set selected in step S3 (step S4). Specifically, the shifted image generating unit 14 generates the image data pair in the following procedure. The shifted image generating unit 14 enlarges the test image consisting of pixels of height H×width W at a predetermined magnification to generate an enlarged test image. The shifted image generating unit 14 determines the first shift amount and the second shift amount based on a random number. The shifted image generating unit 14 generates the first shifted image data consisting of pixels of height H×width W obtained by cropping the enlarged test image based on the first shift amount. The shifted image generating unit 14 generates the second shifted image data consisting of pixels of height H×width W obtained by cropping the enlarged test image based on the second shift amount.
[0024] Next, the identification unit 15 generates a first feature vector indicating the belonging probability distribution of N classes of the first-shifted image data by inputting the first-shifted image data generated in step S4 into the target model stored in the model storage unit 12 (step S5). Also, the identification unit 15 generates a second feature vector indicating the belonging probability distribution of N classes of the second-shifted image data by inputting the second-shifted image data generated in step S4 into the target model stored in the model storage unit 12 (step S6). That is, the identification unit 15 is an example of a second acquisition unit that acquires the feature vectors of each image data pair obtained by inputting each image data pair into the target model. The signal pair evaluation unit 17 calculates the distance between the first feature vector calculated in step S5 and the second feature vector calculated in step S6 as a signal pair evaluation value (step S7).
[0025] The identification unit 15 generates a feature vector indicating the probability distribution of N classes by inputting the test image related to the data set selected in step S3 to the target model stored in the model storage unit 12 (step S8). In other words, the identification unit 15 is an example of a first acquisition unit that acquires a feature vector of a test signal by inputting the test signal to the target model. The identification unit 15 identifies a class to which the test image belongs based on the generated feature vector (step S9). The classification unit 16 determines whether or not the class indicated by the correct label related to the data set selected in step S3 matches the class identified in step S8 (step S10). In other words, the classification unit 16 determines whether or not the classification of the test image by the classification model has been successful.
[0026] If the test image is successfully identified (step S10: YES), the group evaluation unit 18 records the signal pair evaluation value calculated in step S7 in an area of the memory area reserved for evaluation processing in the main memory that records the signal pair evaluation value related to the correct group (step S11). On the other hand, if the classification of the test image fails (step S10: NO), the group evaluation unit 18 records the signal pair evaluation value calculated in step S7 in an area of the memory area reserved for evaluation processing in the main memory for recording signal pair evaluation values related to the incorrect group (step S12).
[0027] When the processes from step S4 to step S12 are performed for all the data sets stored in the data set storage unit 13, the group evaluation unit 18 calculates the average value of the signal pair evaluation values for the correct group as the group evaluation value of the correct group, and calculates the average value of the signal pair evaluation values for the incorrect group as the group evaluation value of the incorrect group (step S13). The model evaluation unit 19 calculates the average value of the group evaluation values calculated by the group evaluation unit 18 as the model evaluation value of the target model (step S14). Then, the output unit 20 outputs the calculated model evaluation value (step S15).
[0028] Actions and Effects In this way, the model evaluation device 1 according to the first embodiment calculates the evaluation value of the target model in the following procedure. The model evaluation device 1 acquires a signal pair evaluation value indicating the degree of agreement of the evaluation results of the image data pair having a mutual shift by the target model. The model evaluation device 1 calculates an evaluation value for each group by calculating an average value of the signal pair evaluation values for each group representing the classification results by the target model of the test image from which the image data pair is based. The model evaluation device 1 calculates the evaluation value of the target model based on a representative value of the evaluation values for each group. In this way, the model evaluation device 1 according to the first embodiment can prevent the evaluation value of the target model from being biased by an index that is not directly related to the shift invariance such as the classification accuracy of the target model. In other words, the model evaluation device 1 can eliminate the influence of the classification success rate of the test image related to the data set by the target model by taking the average of the evaluation value when the classification of the test image is successful and the evaluation value when the classification is unsuccessful.
[0029] Moreover, the model evaluation device 1 according to the first embodiment calculates the distance between the feature vectors calculated for each image data pair as a signal pair evaluation value. That is, the model evaluation device 1 evaluates the difference in the probability distribution indicating the probability of belonging to each class. This allows the model evaluation device 1 according to the first embodiment to continuously evaluate the change in the output distribution of the target model due to image shifting, and stabilize the evaluation value.
[0030] <Experimental Results> The inventors conducted an experiment to compare the evaluation of a target model by the model evaluation device 1 according to the first embodiment with the evaluation of a target model by Consistency. In this experiment, three CNNs with different implementations of intermediate layers were used as the target models. Each target model includes an input layer, a first convolution layer, a first intermediate processing layer, a second convolution layer, a second intermediate processing layer, a third convolution layer, a third intermediate processing layer, and an output layer. The first target model performs an average pooling process in each intermediate processing layer to extract an average value of the target range. The second target model performs a max pooling process in each intermediate processing layer to extract a maximum value of the target range. The third target model performs a convolution process in each intermediate processing layer.
[0031] The dataset used was CIFAR-10 ([online]https: / / www.cs.toronto.edu / ~kriz / cifar.html[Retrieved August 27, 2021]). The shift image is created by enlarging a 32x32 test image related to the dataset to 36x36, and cropping a 32x32 partial image from the enlarged test image. At this time, the cropping position is determined based on a random number. In order to reduce the impact of changes in evaluation values based on random numbers, the parameters for each target model were trained using four types of random number seeds, and the evaluation values were compared by calculating the variance and average.
[0032] Fig. 3 is a diagram showing the evaluation result of the target model by the model evaluation device 1 according to the first embodiment. Fig. 4 is a diagram showing the evaluation result of the target model by Consistency as a comparison target. In Fig. 3 and Fig. 4, the horizontal axis indicates the magnitude of the evaluation value. In the diagram, the plot is positioned further to the right, which indicates higher shift invariance. As shown in FIG. 3, according to the evaluation result of the target model by the model evaluation device 1 according to the first embodiment, it can be seen that the variance of the evaluation value for the difference in parameters due to random numbers is smaller than that of Consistency. In addition, the evaluation result of the target model by the model evaluation device 1 according to the first embodiment shows a clear difference in the evaluation value between the target models compared to Consistency. Referring to the result shown in FIG. 3, it is shown that, among the first to third target models, the first target model, that is, the one that performs average pooling processing in the intermediate processing layer, has the highest shift invariance. This result is consistent with the consideration shown in Non-Patent Document 2, and it can be said that the evaluation by the model evaluation device 1 according to the first embodiment is appropriate.
[0033] FIG. 5 is a diagram showing an example of the difference in consistency evaluation value between a correct answer group and an incorrect answer group. The inventors calculated the consistency of the target model based only on the image data belonging to the correct answer group, and also calculated the consistency based only on the image data belonging to the incorrect answer group. As a result, as shown in FIG. 5, it can be seen that the consistency calculated based only on the image data belonging to the correct answer group is significantly higher than the consistency calculated based only on the image data belonging to the incorrect answer group. According to FIG. 5, the consistency calculated based only on the image data belonging to the correct answer group has a value of about 91 to 93, whereas the consistency calculated based only on the image data belonging to the incorrect answer group has a value of about 64 to 70. Since the consistency calculated from all the image data is equal to the weighted average of the consistency calculated based only on the image data belonging to the correct answer group and the consistency calculated based only on the image data belonging to the incorrect answer group, it can be seen that the consistency is biased by the accuracy rate of the target model. In contrast, the model evaluation device 1 according to the first embodiment calculates the unweighted average of the group evaluation values as the model evaluation value, and is therefore not biased by the accuracy rate. In other words, the model evaluation device 1 according to the first embodiment provides certain improvements over conventional evaluation methods such as consistency, and represents an advancement in the technical field related to performance evaluation of trained models.
[0034] Second embodiment The model evaluation device 1 according to the first embodiment generates two shifted image data from a test image to generate an image data pair. In contrast, the model evaluation device 1 according to the second embodiment generates one shifted image data from a test image, and evaluates a target model using an image data pair consisting of the test image and the shifted image data. In other words, the model evaluation value according to the second embodiment represents the degree to which the same features of the target model are captured from an image before processing and an image after processing. The configuration of the model evaluation device 1 according to the second embodiment is the same as that of the first embodiment.
[0035] <<Operation of the model evaluation device 1>> FIG. 6 is a flowchart showing the operation of the model evaluation device 1 according to the second embodiment. A user inputs a target model to the model evaluation device 1 in order to have the model evaluation device 1 evaluate the target model. This causes the model evaluation device 1 to start evaluation processing of the target model. When the model evaluation device 1 starts the evaluation processing, it initializes a storage area in the main memory to be used for the evaluation processing. The model input unit 11 of the model evaluation device 1 accepts input of the target model (step S101). The model input unit 11 records the input target model in the model storage unit 12 (step S102). Next, the model evaluation device 1 selects each of the datasets stored in the dataset storage unit 13 (step S103), and executes the processing from step S104 to step S111 for each dataset.
[0036] The shifted image generating unit 14 generates one shifted image data from the test image related to the data set selected in step S103 (step S104). Then, the shifted image generating unit 14 sets a pair of the test image related to the data set selected in step S3 and the generated shifted image data as an image data pair.
[0037] Next, the discrimination unit 15 generates a first feature vector, which is a feature vector of the test image, by inputting the test image selected in step S103 to the target model stored in the model storage unit 12 (step S105). The discrimination unit 15 also generates a second feature vector, which is a feature vector of the shifted image data, by inputting the shifted image data generated in step S104 to the target model stored in the model storage unit 12 (step S106). The signal pair evaluation unit 17 calculates the distance between the first feature vector calculated in step S105 and the second feature vector calculated in step S106 as a signal pair evaluation value (step S107).
[0038] The identification unit 15 identifies the class to which the test image belongs based on the first feature vector generated in step S105 (step S108). The classification unit 16 determines whether or not the class indicated by the correct label related to the data set selected in step S103 matches the class identified in step S108 (step S109). In other words, the classification unit 16 determines whether or not the classification of the test image by the classification model has been successful.
[0039] If the test image is successfully identified (step S109: YES), the group evaluation unit 18 records the signal pair evaluation value calculated in step S107 in an area of the memory area reserved for evaluation processing in the main memory, which area records the signal pair evaluation value related to the correct group (step S110). On the other hand, if the classification of the test image fails (step S109: NO), the group evaluation unit 18 records the signal pair evaluation value calculated in step S107 in an area of the memory area reserved for evaluation processing in the main memory, which stores the signal pair evaluation values related to the incorrect group (step S111).
[0040] When the processes from step S104 to step S111 are performed for all the data sets stored in the data set storage unit 13, the group evaluation unit 18 calculates the average value of the signal pair evaluation values for the correct group as the group evaluation value of the correct group, and calculates the average value of the signal pair evaluation values for the incorrect group as the group evaluation value of the incorrect group (step S112). The model evaluation unit 19 calculates the average value of the group evaluation values calculated by the group evaluation unit 18 as the model evaluation value of the target model (step S113). Then, the output unit 20 outputs the calculated model evaluation value (step S114).
[0041] In this way, like the model evaluation device 1 of the first embodiment, the model evaluation device 1 of the second embodiment can prevent the evaluation value of the target model from being biased by indices that have no direct relationship to the shift invariance of the target model, such as the classification accuracy of the target model. Furthermore, as in the second embodiment, by making one of the image data pairs an unprocessed image, it is possible to prevent the amount of shift between the two image data that make up the image data pair from becoming excessive, which would result in the properties of the two image data becoming significantly different.
[0042] Other Embodiments Although one embodiment has been described in detail above with reference to the drawings, the specific configuration is not limited to the above, and various design changes are possible. That is, in other embodiments, the order of the above-mentioned processes may be changed as appropriate. Also, some of the processes may be executed in parallel. The model evaluation device 1 according to the above-described embodiment may be configured by a single computer, or the configuration of the model evaluation device 1 may be distributed across multiple computers, and the multiple computers may function as the model evaluation device 1 by working together.
[0043] The classification unit 16 of the model evaluation device 1 according to the above embodiment classifies image data into a correct answer group and an incorrect answer group, but is not limited to this. For example, the classification unit 16 according to another embodiment may classify image data into other groups based on the output of a target model, such as classifying image data into groups according to recognized classes. Also, for example, the image data may be classified based on its features, such as how a subject appears in the image data or whether the subject is an artificial object or not. Also, for example, the classification unit 16 according to another embodiment may classify image data into a correct answer group and an incorrect answer group by majority vote of the classification results by multiple models. Also, for example, the classification unit 16 according to another embodiment may classify image data according to whether the class identified between the test image and the non-shifted image has changed.
[0044] The signal pair evaluation unit 17 of the model evaluation device 1 according to the embodiment described above obtains the distance between the vectors output by the target model as the signal pair evaluation value, but is not limited to this. For example, the signal pair evaluation unit 17 according to another embodiment may obtain the distance between the vectors obtained from the intermediate layer of the target model as the signal pair evaluation value. Note that the vector obtained from the intermediate layer of the target model can also be said to be a feature vector representing the features of the image data. Furthermore, the signal pair evaluation unit 17 according to another embodiment may indicate whether the class identification by the target model is correct or not, like Consistency. Note that, like the model evaluation device 1 according to the first embodiment, by obtaining the distance between the feature vectors and comparing the entire features of the image data captured by the target model, continuous changes in distribution with respect to the shift can be captured.
[0045] The shifted image generating unit 14 of the model evaluation device 1 according to the embodiment described above generates shifted image data by translating image data, but is not limited to this. For example, the model evaluation device 1 according to another embodiment may generate shifted image data by further changing the magnification ratio or rotating the image data. Differences in magnification ratio and rotation angle are examples of deviations between signals.
[0046] The model evaluation unit 19 of the model evaluation device 1 according to the embodiment described above calculates the model evaluation value by calculating the average value of the group evaluation values of each group, but is not limited to this. For example, the model evaluation unit 19 according to another embodiment may calculate the group evaluation value of the correct answer group as the model evaluation value. This can be used as the evaluation value in cases where the target model is required to be at least shift invariant with respect to the correct answer data. Furthermore, the model evaluation unit 19 according to another embodiment may calculate another representative value, such as the harmonic mean of the group evaluation values, as the model evaluation value.
[0047] The model evaluation device 1 according to the embodiment described above uses a trained model that identifies image data as a target model, but is not limited to this. For example, the model evaluation device 1 according to another embodiment may use a trained model that receives other signals, such as voice data, video data, and time-series data, as an input. Furthermore, the target model according to other embodiments may be a model related to a machine learning model other than CNN. For example, the target model according to other embodiments may be a neural network model other than CNN, or may be a model based on boosting or bagging.
[0048] The model evaluation device 1 according to the embodiment described above stores a target model in the model storage unit 12 and performs a calculation using the target model, but is not limited to this. For example, the model evaluation device 1 according to another embodiment may calculate a model evaluation value in the following procedure. The model evaluation device 1 accepts input of a subset obtained by dividing an evaluation set consisting of pairs of feature vectors obtained by inputting a shifted image pair to the target model into two or more based on the discrimination result of the shifted image pair by the target model. The model evaluation device 1 calculates an image pair evaluation value for each input subset and integrates the results to calculate a model evaluation value.
[0049] Computer Configuration FIG. 7 is a schematic block diagram illustrating a computer configuration according to at least one embodiment. The computer 90 comprises a processor 92 , a main memory 94 , storage 96 , and an interface 98 . The above-mentioned model evaluation device 1 is implemented in a computer 90. The operations of the above-mentioned processing units are stored in the form of a program in a storage 96. The processor 92 reads the program from the storage 96, loads it in a main memory 94, and executes the above-mentioned processing in accordance with the program. The processor 92 also secures storage areas in the main memory 94 corresponding to the above-mentioned storage units in accordance with the program. Examples of the processor 92 include a CPU (Central Processing Unit), a GPU (Graphic Processing Unit), and a microprocessor.
[0050] The program may be for realizing a part of the functions to be performed by the computer 90. For example, the program may be for realizing the functions by combining with other programs already stored in the storage or by combining with other programs implemented in other devices. In another embodiment, the computer 90 may include a custom LSI (Large Scale Integrated Circuit) such as a PLD (Programmable Logic Device) in addition to the above configuration or instead of the above configuration. Examples of PLDs include PAL (Programmable Array Logic), GAL (Generic Array Logic), CPLD (Complex Programmable Logic Device), and FPGA (Field Programmable Gate Array). In this case, some or all of the functions to be realized by the processor 92 may be realized by the integrated circuit. Such an integrated circuit is also included in an example of a processor.
[0051] Examples of storage 96 include a magnetic disk, a magneto-optical disk, an optical disk, a semiconductor memory, etc. Storage 96 may be an internal medium directly connected to the bus of computer 90, or an external medium connected to computer 90 via interface 98 or a communication line. In addition, when this program is distributed to computer 90 via a communication line, computer 90 that receives the program may load the program into main memory 94 and execute the above-mentioned processing. In at least one embodiment, storage 96 is a non-transitory tangible storage medium.
[0052] The program may be for realizing part of the above-mentioned functions. Furthermore, the program may be a so-called differential file (differential program) that realizes the above-mentioned functions in combination with another program already stored in the storage 96.
[0053] <Additional Notes> The above embodiment may be expressed, for example, as follows:
[0054] Appendix 1 Memory, at least one processor coupled to the memory; Including, The processor, A trained model outputs a feature vector representing a feature of an input signal based on the input signal, and obtains an evaluation value that evaluates the magnitude of difference between the feature vectors of each of the signal pairs obtained by inputting each of the signal pairs having a mutual shift generated from the test signal into the trained model; Calculating a representative value of the evaluation value for each group according to the characteristics of each test signal; Calculating an evaluation value of the trained model based on a representative value of the evaluation values for each group A model evaluation device comprising:
[0055] Appendix 2 A non-transitory tangible storage medium, On the computer, A step of acquiring an evaluation value for evaluating the magnitude of difference between the feature vectors of each of the signal pairs obtained by inputting a signal pair having a mutual shift generated from the test signal into a trained model that outputs a feature vector representing a feature of the signal based on the input signal; calculating a representative value of the evaluation values for each group according to the characteristics of each test signal; Calculating an evaluation value of the trained model based on a representative value of the evaluation values for each group; A storage medium that stores a computer program for executing the above. [Explanation of symbols]
[0056] 1...Model evaluation device 11...Model input section 12...Model storage section 13...Data set storage section 14...Shift image generation section 15...Identification section 16...Classification section 17...Signal pair evaluation section 18...Group evaluation section 19...Model evaluation section 20...Output section 90...Computer 92...Processor 94...Main memory 96...Storage 98...Interface
Claims
1. a signal pair evaluation unit that acquires an evaluation value that evaluates the magnitude of difference between the feature vectors of each of the signal pairs obtained by inputting signal pairs having mutual deviations generated from a plurality of test signals into a trained model that outputs a feature vector representing a feature of the signal based on the input signal; a group evaluation unit that calculates a representative value of the evaluation values for each group according to the characteristics of each of the plurality of test signals; a model evaluation unit that calculates an evaluation value of the trained model based on a representative value of the evaluation values for each group; A model evaluation device comprising:
2. A first acquisition unit that acquires feature vectors of the plurality of test signals obtained by inputting the plurality of test signals to the trained model; a classification unit that classifies the plurality of test signals into a plurality of groups based on a feature vector of each of the plurality of test signals; A second acquisition unit that acquires a feature vector of each of the signal pairs obtained by inputting each of the signal pairs into the trained model; Equipped with The signal pair evaluation unit calculates the evaluation value for each signal pair acquired by the second acquisition unit, The group evaluation unit calculates a representative value of the evaluation values for each group based on the evaluation values of the signal pairs and the group to which the signal pairs belong. The model evaluation device according to claim 1 .
3. The signal pair evaluation unit calculates, as the evaluation value, a distance between feature vectors for each of the signal pairs output by the trained model. The model evaluation device according to claim 1 or 2.
4. The plurality of groups include a correct answer group in which the feature vector output by the trained model represents a class to which the test signal belongs, and an incorrect answer group in which the feature vector output by the trained model represents a class to which the test signal does not belong. The model evaluation device according to any one of claims 1 to 3.
5. The feature vector output by the trained model indicates a probability distribution of the input signal for a plurality of classes. The model evaluation device according to any one of claims 1 to 4.
6. A step of acquiring an evaluation value for evaluating the magnitude of difference between the feature vectors of each of the signal pairs obtained by inputting each of the signal pairs having a mutual shift generated from a plurality of test signals into a trained model that outputs a feature vector representing a feature of the input signal based on the input signal; a step of calculating a representative value of the evaluation values for each group according to the characteristics of each of the plurality of test signals by the computer; A step of the computer calculating an evaluation value of the trained model based on a representative value of the evaluation values for each group. A model evaluation method comprising:
7. Computer, The model evaluation device according to any one of claims 1 to 5. Model evaluation program to function as.
