Triplet network learning system and method

The triplet network learning system addresses the challenge of mixed label reliability by calculating label similarity using statistical limits, improving feature extraction and search accuracy in datasets with both controlled and uncontrolled labels.

JP2024155569APending Publication Date: 2024-10-31HITACHI LTD
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
JP2023070384
Authority / Receiving Office
JP · JP
Patent Type
Applications
Current Assignee / Owner
Filing Date
2023-04-21
Publication Date
2024-10-31

AI Technical Summary

Technical Problem

Existing triplet network learning systems face challenges in effectively utilizing training datasets that contain a mixture of data with controlled and uncontrolled labels, leading to inappropriate feature construction due to non-exclusive and unreliable label assignments.

Method used

A triplet network learning system and method that generates a learning model by selecting data with controlled and uncontrolled labels, calculating label similarity using upper and lower limits based on feature and label similarity statistics, and updating the model with generated triplets to improve feature extraction.

Benefits of technology

Enables effective triplet network learning using datasets with mixed label reliability, enhancing the accuracy and reliability of feature extraction and similarity searches.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 2024155569000001_ABST
    Figure 2024155569000001_ABST
Patent Text Reader

Abstract

To provide a triplet network learning system and method by a learning data set in which data having a non-control type label given and data having a control type label given are mixed.SOLUTION: A learning processing method comprises: extracting a set of data similar to a retrieval query on the basis of a degree of amount-of-characteristic similarity from a learning data set; calculating an upper limit value and a lower limit value of a degree of suitability and a degree of label similarity on the basis of statistics of a non-control type label for respective non-control type labels given to the data included in the set; calculating a degree of label similarity for each of a pair of pieces of data included in the retrieval query and the set on the basis of the upper limit value and the lower limit value of the degree of suitability and the degree of label similarity; selecting a positive instance and a negative instance from the set on the basis of the degree of amount-of-characteristic similarity and the degree of label similarity to each of pieces of data included in the retrieval query and the set; generating a triplet combining the positive instance and the negative instance with the retrieval query as an anchor; and updating a learning model by learning based on the triplet.SELECTED DRAWING: Figure 7
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] The present disclosure relates to a triplet network training system and method. [Background technology]

[0002] With the increase in the storage capacity of various storage devices, the improvement in the computing performance of computers, and the increase in the speed of data transfer over networks, it has become possible to store large amounts of electronic information generated in various operations using computer systems as historical information. Also, it is now possible to store not only bibliographic information in standard text format that has traditionally been stored as historical information, but also information in a variety of media, including video and images, as historical information.

[0003] Against this background, there is an increasing need for information processing technology to utilize or utilize accumulated historical information. For example, in the examination process for patents, trademarks, and designs, a variety of information such as the text of applied documents, images of related drawings, and bibliographic information attached to the examination process are accumulated as historical information. If this historical information can be utilized to streamline the examination process and the work related to applications, it will greatly contribute to the development of the industrial sector.

[0004] A known information processing technology for handling images is a similar image search technology that converts an image into an image feature vector that represents its contents, evaluates the similarity between images based on the distance between the feature vectors of those images, and searches for images similar to a given query image based on the similarity. Various methods have been proposed for constructing image feature vectors, and in recent years, a method of extracting features based on deep learning has become common.

[0005] As a learning method for feature vectors in deep learning, there is triplet network learning, which is discussed in Non-Patent Document 1.

[0006] FIG. 1 is a schematic diagram illustrating the concept of triplet network learning.

[0007] In triplet network learning, an exclusive category is assigned as a label to each image in the learning data. The image of interest is called an anchor, and images in the same category as the image of interest are called positive examples, and images in a different category from the image of interest are called negative examples. A combination of data consisting of an anchor, a positive example, and a negative example becomes a triplet. In triplet network learning, as shown diagrammatically in Figure 1, the weights of the network model are updated so that a feature vector is output that reduces the distance between the anchor and the positive example and increases the distance between the anchor and the negative example. This is formulated as minimizing a loss function calculated from the difference between the distance between the anchor and the positive example in the feature vector space and the distance between the anchor and the negative example in the feature vector space.

[0008] In fact, when a certain learning data set is given, the total number of triplets generated from the learning data set is huge, so triplets to be learned are selected from the total number. Non-Patent Document 2 describes a method of selecting triplets to be learned by performing a similar vector search in the learning process. [Prior art documents] [Non-patent literature]

[0009] [Non-Patent Document 1] Schroff, Florian, Dmitry Kalenichenko, James Philbin. “Facenet: A unified embedding for face recognition and clustering”, Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, (2015)

[0010] [Non-Patent Document 2] Yasumitsu Ikeura, Koichi Okamoto, Ryohei Kashima, Atsushi Hiroike: Multimodal Deep Learning Platform for IoT Data, Hitachi Review, 102-3, 119-123 (2020) Summary of the Invention [Problem to be solved by the invention]

[0011] It is generally difficult to assign labels to all given data in a comprehensive and exclusive manner, which requires a large manual effort. Therefore, it is possible to incorporate data to which comprehensive labels have been mechanically assigned into the training data.

[0012] As a method of mechanically labeling an image, for example, when data is presented in a form in which an image is cited in a sentence, the image and the sentence are associated based on the citation relationship, and a word extracted from the text of the sentence is used as the label of the image. However, in this method, not only are the labels not exclusive, but the image and the sentence are automatically associated, so that the sentence associated with the image is not necessarily the sentence that describes the image, and it is not guaranteed that the label and the image have an appropriate association. Therefore, a learning data set is created in which data to which a label with low reliability (referred to as an uncontrolled label in this application) that is comprehensively assigned is assigned and data to which a label with high reliability (referred to as a controlled label in this application) is assigned is mixed. From a learning data set in which data to which a uncontrolled label is assigned and data to which a controlled label is assigned are mixed, a triplet cannot be properly defined. Therefore, it is not possible to configure an appropriate feature by triplet network learning.

[0013] One objective of this disclosure is to enable triplet network training with training data sets that contain a mixture of uncontrolled and controlled labeled data. [Means for solving the problem]

[0014] A triplet network learning system according to one aspect included in the present disclosure has at least one computer, and generates a learning model that extracts features of data using a learning dataset that contains a mixture of data to which controlled labels, which are appropriate labels, and data to which uncontrolled labels, which are labels that are not guaranteed to be appropriate, are assigned. The computer sequentially selects data from the learning dataset as a search query, and performs the search based on feature similarity that indicates the degree of similarity of features extracted by the learning model from the learning dataset. extracting a set of data similar to the query, and for each of the uncontrolled labels assigned to the data included in the set, calculating a suitability indicating how suitable the data is for the search query based on a statistic indicating the degree to which the uncontrolled label is assigned to data extracted by a search using the search query, and an upper limit and a lower limit of a label similarity indicating the degree of similarity between the suitable labels assigned to both of the pair of the search query and the data included in the set, and calculating a label similarity for each pair of the search query and the data included in the set based on the suitability, the upper limit, and the lower limit; The triplet network learning system selects positive and negative examples from the set based on feature similarity and label similarity between the search query and each of the data included in the set, generates triplets that combine the anchor, the positive examples, and the negative examples with the search query as an anchor, and updates the learning model by learning based on the generated triplets.

[0015] A triplet network training method according to one aspect included in the present disclosure is a triplet network training method in which a system having at least one computer generates a learning model that extracts features of data using a training dataset in which data to which controlled labels, which are appropriate labels, are assigned, and data to which uncontrolled labels, which are labels that are not guaranteed to be appropriate, are mixed, the triplet network training method including the steps of: the computer sequentially selecting data from the training dataset as a search query, and extracting a set of data similar to the search query from the training dataset based on a feature similarity that represents a degree of similarity of features extracted by the learning model; and the computer, for each uncontrolled label assigned to data included in the set, generating a metric that represents a degree to which the uncontrolled label is assigned to data extracted by a search using the search query. a step of calculating, based on a metric, a suitability indicating how suitable a search query is for the search query, and an upper limit value and a lower limit value of a label similarity indicating the degree of similarity between suitable labels assigned to both pairs of the search query and data included in the set; a step of the computer calculating, based on the suitability, the upper limit value, and the lower limit value, a label similarity for each pair of the search query and data included in the set; a step of the computer selecting positive cases and negative cases from the set based on the feature similarity and label similarity between the search query and each of the data included in the set, and generating triplets that combine the anchor, the positive cases, and the negative cases with the search query as an anchor; and a step of the computer updating the learning model by learning based on the generated triplets. Effect of the Invention

[0016] According to the present invention, triplet network training is possible using a training data set that contains a mixture of data with uncontrolled labels and data with controlled labels. [Brief description of the drawings]

[0017] [Figure 1] FIG. 1 is a schematic diagram illustrating the concept of triplet network learning. [Diagram 2] 1 is a flowchart illustrating a process for extracting text information associated with an image according to an embodiment of the present disclosure. [Diagram 3] 11 is a flowchart illustrating a label information acquisition process according to an embodiment of the present disclosure. [Figure 4] FIG. 1 illustrates an example display screen of an application for assigning exclusive classification information that is a controlled label according to an embodiment of the present disclosure. [Diagram 5] FIG. 1 is a conceptual diagram illustrating labeling states according to an embodiment of the present disclosure. [Figure 6] FIG. 1 is a conceptual diagram illustrating a configuration example of a triplet network learning system according to an embodiment of the present disclosure. [Figure 7] 1 is a flowchart illustrating a learning process according to an embodiment of the present disclosure. [Figure 8] 11 is a flowchart illustrating a triplet set generation process according to an embodiment of the present disclosure. [Figure 9] 13 is a flowchart illustrating a triplet generation process for each search result. [Figure 10] 11 is a flowchart illustrating an example of a process for estimating the suitability of an uncontrolled label for a query. [Figure 11] 11 is a flowchart illustrating a process of calculating a label similarity; [Figure 12] FIG. 1 is a conceptual diagram illustrating a relationship between search result ranking and label similarity according to an embodiment of the present disclosure. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0018] Next, an embodiment of the present disclosure will be described with reference to the drawings.

[0019] In an embodiment of the present disclosure, an example is described in which images in a document are associated with text information by extracting the citation relationship of each image within the document, and label information is constructed from the text information, thereby comprehensively assigning uncontrolled labels to all images.

[0020] FIG. 2 is a flow chart illustrating a process for extracting text information associated with an image according to an embodiment of the present disclosure.

[0021] A computer having a processor and memory extracts text information associated with images from data in a format that combines documents, such as patent publications, with a collection of images cited in the documents.

[0022] The documents in the data are assumed to be composed of multiple paragraphs. On the other hand, images are assigned image numbers, such as "Figure 1." When citing an image in a document, the image number is used.

[0023] The computer obtains a set P of paragraphs that make up a document, and obtains a set X of images to which image numbers have been assigned (S201). The computer selects a paragraph in the document (S202).

[0024] The computer matches the text in the paragraph in the document with the image number (S203). For example, if the paragraph contains a description of "Figure 1" and the image also contains the characters "Figure 1," the match is successful.

[0025] The computer adds the text contained in the paragraph to the associated text of the image whose image number matches (S204).

[0026] The computer judges whether all the paragraphs have been processed (S205). If all the paragraphs have been processed (S205: YES), the process shown in Fig. 2 ends. If all the paragraphs have not been processed (S205: NO), the computer returns to step S202 and processes the next paragraph.

[0027] Note that the above is an example in which the document is a patent gazette. For various documents other than patent gazettes, a person skilled in the art can extract text information related to an image as appropriate. For example, if the document is an HTML document that is commonly used on the Internet, a citation to an image is written as a tag indicating a link. In such a case, the computer can extract text that exists before or after the tag indicating a citation of the image as text related to the image. For documents of types other than patent gazettes and HTML documents, text information can be extracted as appropriate according to the format of the document.

[0028] Next, we will explain a method for extracting image labels to be used for machine learning from the related text of an image that has been added by, for example, a method such as that shown in Figure 2.

[0029] FIG. 3 is a flowchart illustrating a label information acquisition process according to an embodiment of the present disclosure.

[0030] The computer receives text related to an image (S301). The computer performs morphological analysis on the related text and converts the related text into a word string (S302). The computer labels a set of words included in the word string as an uncontrolled label for the image (S303).

[0031] 4 is a diagram illustrating a display screen of an application for assigning exclusive classification information that is a controlled label according to an embodiment of the present disclosure. In response to processing by a processor included in a computer, a display device such as a monitor screen displays a display screen 4.

[0032] The application is stored as a program in a storage device or the like provided in the computer, and the processor reads and executes the program to make the application function. The application has a similar image search function. The similar image search function enables efficient labeling.

[0033] Reference numeral 401 denotes a currently selected query image. Images that the processor has determined to be similar to this query image 401 (hereinafter, these images may be referred to as similar images) are displayed in tabs 402 on the display screen 4. In this embodiment, a total of 20 similar images are displayed in one tab 402, with 5 images horizontally and 4 images vertically. Note that the display order of the similar images may be, for example, in descending order of similarity.

[0034] When the user presses the page transition button 403, the processor displays other pages such as the second page, the third page, etc. on the display screen 4.

[0035] Reference numeral 404 denotes a check box for specifying classification information to be added as a label. In this embodiment, the classification information is composed of four types of classifications: "toilet", "bathroom", "washroom", and "other". The user uses the check box 404 to select the classification to be added. Then, the user checks the check box 405 corresponding to the image that falls under the selected classification.

[0036] When the user presses the select all button 406, the corresponding check boxes 405 for all images currently being displayed on the display screen 4 can be checked.

[0037] When the user presses the save button 407, the state of the check box 405 is saved in a storage device or the like of the computer. At this time, the processor of the computer assigns controlled labels corresponding to classification information such as "toilet", "bathroom", "washroom", and "other" to images in which the check box 405 is checked.

[0038] Note that the display screen 4 shown in FIG. 4 is an example of a user interface for a user to assign exclusive classification information, which is a controlled label, and classification information may be assigned by other methods.

[0039] FIG. 5 is a conceptual diagram illustrating a labeling state according to an embodiment of the present disclosure. The entire data 500 is a learning data set in which data to which controlled labels, which are appropriate labels, are assigned, and data to which uncontrolled labels, which are labels that are not guaranteed to be appropriate, are assigned, and is used by the learning unit 610 as learning data 620 in FIG. 6. Uncontrolled labels are comprehensively assigned to the entire data 500 by the method shown in FIG. 2 and FIG. 3. On the other hand, data 510 to which controlled labels are assigned by the application shown in FIG. 4 is only a small part of the whole. Data 501 to which classification information of a class of interest (for example, in this embodiment, three types: "toilet bowl", "bath" and "washroom") is assigned is even smaller.

[0040] The number of data 502 to which classification information is assigned as "other" is greater than the number of data classified into the class of interest. In this application, this data 502 is called background data. Background data is data that has been confirmed to not belong to the class of interest, but the type of data itself is undefined. Most of the data 503 to which no controlled label is assigned is assigned only uncontrolled labels.

[0041] 6 is a conceptual diagram showing a configuration example of a triplet network learning system according to an embodiment of the present disclosure. The triplet network learning system 1 has at least one computer. The computer includes one or more processors and a memory.

[0042] The processor is composed of, for example, a central processing unit (CPU), a micro processing unit (MPU), a graphics processing unit (GPU), a field-programmable gate array (FPGA), etc. The processor realizes various functional blocks by reading and executing various programs and data stored in the memory. The processor realizes the learning unit 610 by, for example, reading and executing various programs and data stored in the memory.

[0043] The memory is a device that stores programs and data, such as a Random Access Memory (RAM), a Read Only Memory (ROM), or a non-volatile semiconductor memory (Non-Volatile RAM (NVRAM)). The memory may be, for example, a Hard Disc Drive (HDD), a Solid State Drive (SSD), a storage system, an Integrated Circuit (IC) card, a Secure Digital (SD) memory card, a device for reading and writing data from and to a recording medium such as an optical recording medium (Compact Disc (CD), Digital Versatile Disc (DVD), etc.), or a storage area of ​​a cloud server.

[0044] The computer may further include a display device, an input / output interface, a network interface, etc. The display device displays information to a user in response to an instruction from the processor.

[0045] The input / output interface controls the input of information from input devices such as a keyboard and a mouse, and the display of information on a display device such as a display. The network interface has a function of connecting the triplet network learning system 1 and an external device so that they can communicate with each other via a network such as the Internet.

[0046] The learning unit 610 includes an inference processing unit 611, a similar vector search processing unit 612, a triplet set generation processing unit 613, a model update processing unit 614, and a model storage processing unit 615. The learning data 620, the network model 630, and the network model 640 are stored in a memory provided in the computer. The learning data 620, the network model 630, and the network model 640 may be implemented in a storage device provided in an external device communicatively connected to the computer.

[0047] The learning unit 610 acquires a set of image data to which uncontrolled labels and controlled labels are assigned from the learning data 620. The learning data 620 is a learning data set that includes a mixture of data to which controlled labels, which are appropriate labels, are assigned and data to which uncontrolled labels, which are labels that are not guaranteed to be appropriate, are assigned. The learning data 620 is, for example, data to which uncontrolled labels or controlled labels are assigned to images.

[0048] In addition, when training a deep neural network, it is rare to start machine learning from completely random network weights. Therefore, efficient training is performed by using a network model 630 that has been trained on another learning task in advance as the initial state of training.

[0049] Inside the learning unit 610, an inference processing unit 611 extracts feature vectors of the learning data using the state of the network model at that point in the learning process. A similar vector search processing unit 612 performs a similar vector search on the set of extracted feature vectors. A triplet set generation processing unit 613 configures a set of triplets to be used for learning based on the result of the similar vector search processing. A model update processing unit 614 performs an update process of the network model using the configured set of learning triplets. A model saving processing unit 615 saves the updated state of the network model as a network model 640.

[0050] In other words, the triplet network learning system 1 is a learning system that generates a learning model that extracts features of data using a learning dataset that contains a mixture of data assigned with controlled labels, which are appropriate labels, and data assigned with uncontrolled labels, which are labels that are not guaranteed to be appropriate.

[0051] 7 is a flowchart illustrating a learning process by the learning unit 610 according to an embodiment of the present disclosure. The learning unit 610 acquires learning data and an initial state of a network model (S701). The inference processing unit 611 performs inference processing to extract a feature vector of the learning data (S702).

[0052] The learning unit 610 performs a clustering process (S703). The clustering process is a pre-processing for quickly executing a similar vector search to be performed later. A conventional technique may be used for the similar vector search using the clustering process. For example, the above-mentioned Non-Patent Document 2 and the like discuss a similar vector search using a clustering process.

[0053] The similar vector search processing unit 612 searches for similar vectors. The triplet set generation processing unit 613 performs triplet set generation processing (S704). The triplet set generation processing will be described later in detail.

[0054] The learning unit 610 selects a training triplet to be actually used for learning from the set of triplets generated in step S704 based on a predetermined criterion (S705). The predetermined criterion will be described later. A training triplet is an ordered array made up of a plurality of triplets. A training triplet includes a plurality of triplets as elements.

[0055] The model update processing unit 614 updates the network model using the selected training triplets (S706).

[0056] The learning unit 610 determines whether or not a termination condition has been reached (S707). Specific examples of the termination condition will be described later. If the termination condition has been reached (S707: YES), the process shown in FIG. 7 ends. If the termination condition has not been reached (S707: NO), the process returns to step S702. In the next inference process (S702), inference will be performed using the updated network model.

[0057] In this embodiment, the process from the inference process (S702) to the update of the network model (S706) is defined as one cycle (epoch) of learning. This cyclic process is repeated until a certain end condition for learning is reached.

[0058] (Details of triplet set generation process) 8 is a flowchart illustrating a triplet set generation process according to an embodiment of the present disclosure. The triplet set generation processing unit 613 empties the elements of the triplet set (S801). The triplet set generation processing unit 613 selects one piece of data from the learning data as a query (search query) (S802).

[0059] The triplet set generation processing unit 613 searches for data having a feature vector similar to the feature vector of the selected query (S803) and obtains the search results (S804). The similar vector search in step S803 may be performed by the similar vector search processing unit 612 under the control of the triplet set generation processing unit 613. That is, the triplet set generation processing unit 613 extracts a set of data similar to the search query (search result) from the learning dataset based on feature similarity indicating the degree of similarity of features extracted by the learning model. The feature similarity may be defined by, for example, the distance between feature vectors. In this case, it is determined that the closer the distance, the more similar it is.

[0060] The triplet set generation processing unit 613 performs triplet generation processing for each of the acquired search results (S805). The details of step S805 will be described later.

[0061] The triplet set generation processing unit 613 adds the triplet set for each search result to the triplet set of this process (S806). The triplet set generation processing unit 613 determines whether or not all queries have been processed (S807). If all queries have been processed (S807: YES), the process shown in FIG. 8 ends. If all queries have not been processed (S807: NO), the process returns to step S802, and the next query is selected. That is, the triplet set generation processing unit 613 sequentially selects data from the training dataset as search queries.

[0062] The processes from steps S802 to S806 are usually performed using all learning data as queries, but an upper limit may be set on the number of pieces of data to be used as queries due to requirements such as restrictions on the amount of calculation. In this case, a method may be adopted in which a certain number of pieces of data randomly selected from the learning data are used as queries.

[0063] FIG. 9 is a flowchart illustrating the triplet generation process for each search result shown in step S805. The triplet set generation processing unit 613 calculates the frequency at which data to which an uncontrolled label is assigned appears in the search results (S901). The frequency of appearance here may mean the number of times that data to which the uncontrolled label is assigned (image data in this embodiment) appears in the search results. However, the frequency may be defined and calculated using a scale other than the number of appearances. The triplet set generation processing unit 613 estimates the suitability for the query of an uncontrolled label with an appearance frequency of 1 or more, that is, an uncontrolled label assigned to any data in the search results (S902). The details of step S902 will be described later.

[0064] The triplet set generation processing unit 613 calculates the label similarity for each pair of the search query and data included in the set of data similar to the search query (see step S804) based on the estimated suitability, the upper limit of the label similarity, and the lower limit of the label similarity (S903). The label similarity represents the degree of similarity of the suitability labels assigned to both of the pair of the search query and data included in the set of data similar to the search query (see step S804). The details of step S903 will be described later.

[0065] The triplet set generation processor 613 calculates the label similarity gap (S904). The label similarity gap means the difference in label similarity between search results.

[0066] The triplet set generation processing unit 613 constructs a triplet based on the search ranking and the label similarity gap (S905). The constructed triplet is added to a set of triplet candidates to be learned (see step S806 in FIG. 8).

[0067] FIG. 10 is a flowchart illustrating the process of estimating the suitability of an uncontrolled label for a query, shown in step S902.

[0068] Let A be the set of uncontrolled labels attached to a query. Let B be the set of uncontrolled labels assigned to any data in the search results. Let p(k) be the frequency of occurrence of data with uncontrolled label k in the entire dataset. Let q(k) be the frequency of occurrence in search results of data to which uncontrolled label k has been assigned. Let f(k) be the suitability of uncontrolled label k in the search results for the query. The upper limit of the label similarity is set to s_sup. The lower limit of the label similarity is set to s_inf.

[0069] In this embodiment, image data is used as the dataset. Therefore, the above occurrence frequency p(k) means (the number of image data to which the uncontrolled label k is assigned ÷ the number of image data included in the dataset). The above occurrence frequency q(k) means (the number of image data to which the uncontrolled label k is assigned ÷ the number of image data included in the search results). Note that, unlike this embodiment, the frequency can be defined in a similar manner even when a dataset other than image data is used.

[0070] The label similarity is such that data considered to have neutral similarity to the query has a small absolute value close to 0, data considered to have high similarity to the query has a positive value, and data considered to have low similarity to the query has a negative value. Therefore, the lower limit s_inf of the label similarity is usually a negative value.

[0071] The suitability f(k) represents how suitable a given query is for a given search query.

[0072] The triplet set generation processor 613 initializes the value of the upper limit value s_sup of the label similarity to 0, and initializes the value of the lower limit value s_inf of the label similarity to 0 (S1000).

[0073] The triplet set generation processing unit 613 selects a label k that is an element of a set B of uncontrolled labels assigned to data in the search results (S1001). The triplet set generation processing unit 613 calculates a statistic f of the following equation for the label k (S1002).

number

[0074] The statistic f is a statistic that represents, for each uncontrolled label assigned to data included in a set of data similar to the search query (see step S804), the degree to which the uncontrolled label is assigned to data extracted by a search using the search query.

[0075] The statistic f in the above formula represents the difference between the probability that data with an uncontrolled label is selected when data is randomly selected from the entire learning dataset and the probability that data with an uncontrolled label is selected when data is randomly selected from the set of data similar to the search query, expressed as the KL information measure (Kullback-Leibler information measure). When the distribution of k in the search results does not differ significantly from the distribution in the entire data, the KL information measure approaches a value close to 0. When the frequency of occurrence increases or decreases significantly, the KL information measure becomes a large value.

[0076] The triplet set generation processing unit 613 calculates the fitness f(k) for the query of label k, the upper limit value s_sup of the label similarity, and the lower limit value s_inf of the label similarity according to the conditional branching shown in steps S1003 to S1007.

[0077] The triplet set generation processing unit 613 determines whether label k is an uncontrolled label assigned to the query (k ∈ A) and (q(k) > p(k)) (S1003). If label k is an uncontrolled label assigned to the query (k ∈ A) and (q(k) > p(k)) (S1003: YES), the process transitions to step S1004. Otherwise (S1003: NO), the process transitions to step S1005.

[0078] In step S1004, the triplet set generation processing unit 613 substitutes the above-mentioned statistic f into the fitness f(k). Also, the triplet set generation processing unit 613 adds the above-mentioned statistic f to the upper limit value s_sup of the label similarity.

[0079] In step S1005, the triplet set generation processing unit 613 determines whether label k is not an uncontrolled label assigned to the query and (q(k) < p(k)). If label k is not an uncontrolled label assigned to the query and (q(k) < p(k)) (S1005: YES), the process transitions to step S1006. Otherwise (S1005: NO), the process transitions to step S1007.

[0080] In step S1006, the triplet set generation processor 613 assigns -f, which is the value obtained by multiplying the above-mentioned statistic f by minus 1, to the suitability f(k). The triplet set generation processor 613 also subtracts the above-mentioned statistic f from the lower limit s_inf of the label similarity.

[0081] In step S1007, the triplet set generation unit 613 assigns 0 to the suitability f(k).

[0082] In step S1008, the triplet set generation processing unit 613 determines whether or not all elements of set B have been processed. If all elements have been processed (step S1008: YES), the process shown in Fig. 10 ends. If not all elements have been processed (step S1008: NO), the process returns to step S1001 and the next element k is selected.

[0083] Next, the above-mentioned steps S1003 to S1007 will be described.

[0084] The search results obtained by the similarity vector search performed in step S803 shown in FIG. 8 are the results of extracting data similar to the query. Therefore, it is assumed that the frequency of appearance of a label with a high relevance to the query in the search results will be significantly higher than when the label is randomly selected from the entire data (q(k)>p(k)). However, the reliability of the similarity search results depends on the feature vector at that time. Since the reliability of the similarity search is assumed to be low, especially in the early stage of learning, it is not appropriate to judge based only on the results of the similarity search. Therefore, the suitability f(k) for the query is set to f only when the label k is actually the assigned label for the query (k∈A) (step S1003) (step S1004). In addition, the value of f is added to the upper limit value s_sup of the label similarity in step S1004.

[0085] Conversely, it is assumed that labels not related to the query have a significantly lower frequency of occurrence in the search results than when randomly selected from the entire data (q(k) < p(k)). However, also in this case, considering the reliability issue of similar search results, when label k is not the label assigned to the query (step S1005), the fitness f(k) for the query is set to -f (step S1006). That is, when the frequency of occurrence of k in the search results has significantly decreased, the fitness of k becomes a large negative value. Also, in this case, the value of f is subtracted from the lower limit value s_inf of the label similarity.

[0086] If neither of the above two conditions is satisfied, f(k) = 0 is set. That is, k is treated as a neutral label (step S1007). The calculation of f(k) is performed for all labels that appear in the search results (step S1008).

[0087] That is, if an unregulated label assigned to data included in a set of data similar to the search query is also assigned to the search query, and the frequency of occurrence of the unregulated label in the set is greater than the frequency of occurrence in the learning dataset, the statistic f, which is a positive value, is used as the fitness. If an unregulated label assigned to data included in the set is not assigned to the search query, and the frequency of occurrence of the unregulated label in the set is less than the frequency of occurrence in the learning dataset, the value obtained by converting the positive-value statistic to a negative value is used as the fitness.

[0088] Also, the computer sets the integrated value of the statistic when an unregulated label assigned to data included in the set is also assigned to the search query, and the frequency of occurrence of the unregulated label in the set is greater than the frequency of occurrence in the learning dataset, as the upper limit value s_sup of the label similarity. The computer sets the value obtained by converting the integrated value of the statistic when an unregulated label assigned to data included in the set is not assigned to the search query, and the frequency of occurrence of the unregulated label in the set is less than the frequency of occurrence in the learning dataset, to a negative value, as the lower limit value s_inf of the label similarity.

[0089] Next, the label similarity calculation process shown in step S903 will be described.

[0090] For any data x in the search results, the label similarity s(x) with the query based on uncontrolled labels is defined as the sum of the suitability f(k) of each label assigned to x, as follows:

number

[0091] Here, X is the set of uncontrolled labels assigned to data x.

[0092] As is clear from the above formula, the label similarity will not be greater than when the suitability f(k) of all labels assigned to data x is positive. Therefore, s_sup calculated by the process shown in FIG. 10 is the upper limit of the label similarity. Similarly, the label similarity will not be smaller than when the suitability f(k) of all labels assigned to data x is negative. Therefore, s_inf calculated by the process shown in FIG. 10 is the lower limit of the label similarity. When controlled labels are assigned to some data, the label similarity is defined using the upper limit s_sup and lower limit s_inf in order to be consistent with the situation where controlled labels are not assigned.

[0093] FIG. 11 is a flowchart illustrating the label similarity calculation process shown in step S903.

[0094] The label similarity of x with the query is denoted by s(x), and the set of labels assigned to x is denoted by X. The triplet set generation processor 613 selects the search result x (S1101).

[0095] The triplet set generation processor 613 judges whether or not a controlled label is assigned to both the query and the data x (S1102). If a controlled label is assigned to both (step S1102: YES), the process proceeds to step S1104. If a controlled label is not assigned to both (step S1102: NO), the process proceeds to step S1103.

[0096] In step S1103, the triplet set generation processor 613 calculates the label similarity s(x) according to the formula (2).

[0097] In step S1104, the triplet set generation processing unit 613 determines whether the query and the controlled label assigned to the data x match. If they match (step S1104: YES), the process proceeds to step S1106. If they do not match (step S1104: NO), the process proceeds to step S1105.

[0098] In step S1105, the triplet set generation processor 613 assigns s_inf to the label similarity s(x) between x and the query.

[0099] In step S1106, the triplet set generation processing unit 613 judges whether the matched controlled label is background data. If the matched controlled label is background data (S1106: YES), the process proceeds to step S1103. This is because, in the comparison between background data, since there is no information that limits the content, it is appropriate to treat it as equivalent to data to which only normal uncontrolled labels are attached.

[0100] If the matched controlled label is not background data (S1106: NO), the process proceeds to step S1107. In step S1107, it is determined that the classifications of the two match, and the triplet set generation processor 613 assigns s_sup to the label similarity s(x) of x with the query.

[0101] In step S1108, the triplet set generation processing unit 613 determines whether or not all search results have been processed. If all search results have been processed (S1108: YES), the process shown in Fig. 11 ends. If all search results have not been processed (S1108: NO), the process returns to step S1101.

[0102] As shown in steps S1102 to S1107 above, for each pair of the search query and data included in the set of data similar to the search query, the computer: If a controlled label is not assigned to either or both of the search query and the data, the label similarity is the cumulative value of the suitability of the uncontrolled labels assigned to the data. If both the search query and the data have been assigned a controlled label, If the two controlled labels do not match, the lower limit of the label similarity is set as the label similarity. If both controlled labels match and the controlled label represents a class of interest, the upper limit of the label similarity is set as the label similarity. If both controlled labels match and the controlled label does not represent the class of interest, the integrated value of the suitability of the uncontrolled label assigned to the data is taken as the label similarity.

[0103] In this embodiment, the processing is described in a state where controlled labels and uncontrolled labels are mixed. However, as is clear from the example of the estimation process of the suitability of the uncontrolled labels for the query shown in Fig. 10 and the calculation process of the label similarity shown in Fig. 11, the processing can be performed in the same flow even when there is no data with controlled labels.

[0104] Next, a method for constructing a triplet based on label similarity will be described. Fig. 12 is a conceptual diagram showing the relationship between search result ranking and label similarity according to an embodiment of the present disclosure.

[0105] The horizontal axis in FIG. 12 indicates the ranking in the search results. In other words, the horizontal axis corresponds to the similarity of the features (feature vectors in this embodiment where the data is images) between the search query and each piece of data included in a set of data similar to the search query. The higher the similarity of the features, the higher the ranking. Since the data in this embodiment is image data, the more similar the image is to the image in the search query, the higher the ranking. Meanwhile, the vertical axis in FIG. 12 indicates the label similarity of each search result.

[0106] If the similarity and the label similarity in the feature vector space have a high correlation, it is assumed that the label similarity decreases monotonically as the search ranking increases. However, in reality, there are cases where a discrepancy occurs between the two, and data with a low search ranking may show a high label similarity, or data with a high search ranking may show a low label similarity. When constructing a triplet, the query is used as an anchor, and by extracting data in which the relationship between the search ranking and the label similarity is opposite to the expected relationship, positive and negative examples of the triplet are selected. That is, the triplet set generation processing unit 613 selects positive and negative examples from the set based on the feature similarity (horizontal axis in FIG. 12) and label similarity (vertical axis in FIG. 12) between the search query and each of the data included in the set of data similar to the search query, and generates a triplet by combining the anchor, positive and negative examples with the search query as an anchor. Then, the model update processing unit 614 updates the learning model by learning based on the generated triplets (see step S706).

[0107] The triplet set generation processor 613 selects positive and negative cases when constructing a triplet based on the following label similarity gap: When two pieces of data in the search results are x and y, the label similarity gap g(x, y) between them is defined as follows:

number

[0108] The triplet set generation processing unit 613 scans the search results from the top down, and extracts pairs where the value of the gap g(x, y) in the above formula is maximum between the data x present at the top and the data y present at the bottom. A certain number of pairs are selected from the extracted pairs in the order of the largest gap, and triplets are constructed by combining them with the query, and added to a set of triplets that are candidates for learning (see step S806 in FIG. 8). That is, when the data included in the set of data similar to the search query is sorted in order of feature similarity, the computer sets the data at both ends of the region where the label similarity increases with the decrease in the rank of the feature similarity as negative and positive cases, respectively. The computer also selects a certain number of pairs in the order of the largest increase in label similarity with the decrease in the rank of the feature similarity to construct a triplet.

[0109] Note that a single triplet may be selected from each search result based on the viewpoint that it is more appropriate to have high independence between the training data.

[0110] The learning unit 610 selects the triplets to be used for learning from the set of triplets that are candidates for learning, which are configured by the above procedure (see step S705 in FIG. 7). The predetermined selection criteria for the triplets may be, but are not limited to, random selection, selection from the one with the smallest difference between the squared distance between the anchor and the positive example and the squared distance between the anchor and the negative example, etc. In this embodiment, the triplets are selected based on the selection criteria of selecting a certain number from the one with the largest gap.

[0111] Next, the end condition of the iterative process in step S707 in FIG. 7 will be described.

[0112] The termination condition may be that the number of iterations has reached the maximum value, or the iteration may be terminated when an index for determining the convergence of the learning stops fluctuating. One example of the index may be the average value of the gap in a set of triplets that are candidates for learning. That is, when a predetermined termination condition is met, the computer terminates the process of updating the learning model by learning based on the generated triplets. The termination condition may be that the average value of the gap in the set of triplets used to update the learning model becomes equal to or less than a predetermined value.

[0113] In addition, when controlled labels are attached, the search accuracy focusing only on the controlled labels can be used as an index. The general method for evaluating the accuracy of similarity searches is to use MAP (mean average precision).

[0114] In addition, the occurrence frequency in this embodiment is the number of times that data to which an uncontrolled label is assigned appears in the search results, or the number of data to which an uncontrolled label is assigned divided by the number of data included in the data set or the search results. That is, the basis of these occurrence frequencies is the number of data to which an uncontrolled label is assigned. In other words, even if multiple identical uncontrolled labels are assigned to one data to which an uncontrolled label is assigned, the occurrence frequency does not reflect the multiple overlapping states.

[0115] However, the frequency of occurrence may be defined taking into account the above overlapping state. For example, the frequency of occurrence may be defined using the number of times an uncontrolled label appears in a search result, or the number of times the uncontrolled label appears in a dataset or search result divided by the number of all uncontrolled labels included in the dataset or search result.

[0116] The above-described embodiment of the present invention is an example for explaining the present invention, and is not intended to limit the scope of the present invention only to this embodiment. A person skilled in the art can implement the present invention in various other forms without departing from the gist of the present invention.

[0117] This embodiment also includes the following items. However, the items included in this embodiment are not limited to those listed below.

[0118] (Item 1) A triplet network learning system has at least one computer, and generates a learning model for extracting features of data using a learning dataset that contains a mixture of data to which controlled labels, which are appropriate labels, and data to which uncontrolled labels, which are labels that are not guaranteed to be appropriate, are assigned, the system comprising: The computer, Sequentially select data from a training dataset as a search query, and extract a set of data similar to the search query from the training dataset based on a feature similarity indicating a degree of similarity of features extracted by a training model; For each uncontrolled label assigned to data included in the set, calculate a suitability indicating how appropriate the label is for the search query based on a statistic indicating the degree to which the uncontrolled label is assigned to data extracted by a search using the search query, and calculate upper and lower limits of label similarity indicating the degree of similarity between the appropriate labels assigned to both the search query and the data included in the set; Calculate a label similarity for each pair of the search query and data included in the set based on the suitability, the upper limit, and the lower limit; selecting positive and negative examples from the set based on feature similarity and label similarity between the search query and each of the data included in the set, and generating triplets combining the anchor, the positive examples, and the negative examples with the search query as an anchor; The learning model is updated by learning based on the generated triplets. This updates the learning model to improve feature similarity based on label similarity that takes into account the suitability of uncontrolled labels, making it possible to train a triplet network using a learning dataset that contains a mixture of data with uncontrolled labels and data with controlled labels.

[0119] (Item 2) In the triplet network learning system according to item 1, The computer, For each pair of a search query and data in the set, If a controlled label is not assigned to either or both of the search query and the data, the label similarity is the cumulative value of the suitability of the uncontrolled labels assigned to the data. If both the search query and the data have been assigned a controlled label, If the two controlled labels do not match, the lower limit is used as the label similarity. If both controlled labels match and the controlled label represents a class of interest, the upper limit is set as the label similarity. If both controlled labels match and the controlled label does not represent the class of interest, the integrated value of the suitability of the uncontrolled label assigned to the data is taken as the label similarity. This makes it possible to calculate an appropriate label similarity based on the suitability, the upper limit, and the lower limit.

[0120] (Item 3) In the triplet network learning system according to item 1, The statistic is the Kullback-Leibler divergence, which is the difference between the probability that data with an uncontrolled label would be selected when randomly selecting data from the entire training dataset, and the probability that data with an uncontrolled label would be selected when randomly selecting data from the set. This makes it possible to appropriately calculate the suitability of uncontrolled labels and the upper and lower limits of label similarity using statistics expressed by the Kullback-Leibler divergence.

[0121] (Item 4) In the triplet network learning system according to item 3, The computer, If the uncontrolled label assigned to the data included in the set is also assigned to the search query, and the frequency of occurrence of the uncontrolled label in the set is greater than the frequency of occurrence in the training dataset, the positive value of the statistic is regarded as the suitability. If an uncontrolled label assigned to data included in the set is not assigned to the search query, and the frequency of occurrence of the uncontrolled label in the set is lower than the frequency of occurrence in the training dataset, the positive statistical value converted to a negative value is taken as the suitability. This makes it possible to calculate suitability based on the Kullback-Leibler divergence, which takes a positive value.

[0122] (Item 5) In the triplet network learning system according to item 4, The computer, The upper limit of the label similarity is the integrated value of the statistics when the uncontrolled label assigned to the data included in the set is also assigned to the search query and the frequency of occurrence of the uncontrolled label in the set is greater than the frequency of occurrence in the learning dataset. The lower limit of the label similarity is determined as the negative integrated value of the statistics when an uncontrolled label assigned to data included in the set is not assigned to the search query and the frequency of occurrence of the uncontrolled label in the set is lower than the frequency of occurrence in the training dataset. This makes it possible to calculate the upper and lower limits of the label similarity that are consistent with the suitability calculated based on the Kullback-Leibler divergence.

[0123] (Item 6) In the triplet network learning system according to item 1, The computer, When the data included in the set is sorted in order of feature similarity, the data at both ends of a region in which the label similarity increases with a decrease in the rank of feature similarity are defined as negative and positive cases, respectively. This allows the learning model to be updated to reduce the gap in label similarity.

[0124] (Item 7) In the triplet network learning system according to item 1, The computer, A predetermined number of entries are selected in descending order of the increase in label similarity associated with a decrease in the rank of feature similarity to form a triplet. This allows the learning model to be trained efficiently by preferentially reducing large gaps.

[0125] (Item 8) In the triplet network learning system according to item 1, The computer, When a predetermined termination condition is satisfied, the process of updating the learning model by learning based on the generated triplets is terminated; The termination condition is that the average value of the gap in the set of triplets used to update the learning model is equal to or less than a predetermined value. This allows the update of the learning model to be terminated when the learning has converged to a certain extent.

[0126] (Item 9) A triplet network learning method for generating a learning model for extracting features of data by using a learning dataset including a mixture of data to which controlled labels, which are appropriate labels, and data to which uncontrolled labels, which are labels that are not guaranteed to be appropriate, are assigned, by a system having at least one computer, the method comprising: The computer, Sequentially select data from a training dataset as a search query, and extract a set of data similar to the search query from the training dataset based on a feature similarity indicating a degree of similarity of features extracted by a training model; For each uncontrolled label assigned to data included in the set, calculate a suitability indicating how appropriate the label is for the search query based on a statistic indicating the degree to which the uncontrolled label is assigned to data extracted by a search using the search query, and calculate upper and lower limits of label similarity indicating the degree of similarity between the appropriate labels assigned to both the search query and the data included in the set; Calculate a label similarity for each pair of the search query and data included in the set based on the suitability, the upper limit, and the lower limit; selecting positive and negative examples from the set based on feature similarity and label similarity between the search query and each of the data included in the set, and generating triplets combining the anchor, the positive examples, and the negative examples with the search query as an anchor; The computer updates the learning model by learning based on the generated triplets. This updates the learning model to improve feature similarity based on label similarity that takes into account the suitability of uncontrolled labels, making it possible to train a triplet network using a learning dataset that contains a mixture of data with uncontrolled labels and data with controlled labels. [Explanation of symbols]

[0127] 1: Triplet network learning system, 4: Display screen, 401: Query image, 402: Tab, 403: Page transition button, 404, 405: Checkbox, 406: Selection button, 407: Save button, 610: Learning unit, 611: Inference processing unit, 612: Similar vector search processing unit, 613: Triplet set generation processing unit, 614: Model update processing unit, 615: Model saving processing unit, 620: Learning data, 630, 640: Network model

Claims

1. A triplet network learning system having at least one computer, which uses a learning dataset including a mixture of data to which a controlled label, which is an appropriate label, and data to which an uncontrolled label, which is a label that is not guaranteed to be appropriate, is assigned, to generate a learning model for extracting features of data, The computer, Sequentially selecting data from the learning dataset as a search query, and extracting a set of data similar to the search query from the learning dataset based on a feature similarity indicating a degree of similarity of features extracted by the learning model; For each uncontrolled label assigned to data included in the set, calculate a suitability indicating how suitable the label is for the search query based on a statistic indicating the degree to which the uncontrolled label is assigned to data extracted by a search using the search query, and calculate upper and lower limit values ​​of a label similarity indicating the degree of similarity between the suitable labels assigned to both the search query and the data included in the set; calculating a label similarity for each pair of the search query and data included in the set based on the suitability, the upper limit, and the lower limit; selecting positive and negative examples from the set based on feature similarity and label similarity between the search query and each of the data included in the set, and generating triplets combining the anchor, the positive and negative examples with the search query as an anchor; updating the learning model by learning based on the generated triplets; Triplet network learning system.

2. The computer, For each pair of the search query and the data included in the set, If a controlled label is not assigned to either or both of the search query and the data, the label similarity is the cumulative value of the suitability of the uncontrolled labels assigned to the data. If both the search query and the data have been assigned a controlled label, If the two controlled labels do not match, the lower limit is set as the label similarity; If the two controlled labels match and the controlled label represents a class of interest, the upper limit is set as the label similarity; If the two controlled labels match and the controlled label does not represent a class of interest, the integrated value of the suitability of the uncontrolled label assigned to the data is determined as the label similarity.

2. The triplet network learning system of claim 1.

3. The statistic is expressed as Kullback-Leibler divergence, which is a difference between the probability that data to which the uncontrolled label is assigned will be selected when data is randomly selected from the entire training dataset, and the probability that data to which the uncontrolled label is assigned will be selected when data is randomly selected from the set.

2. The triplet network learning system of claim 1.

4. The computer includes: If an uncontrolled label assigned to data included in the set is also assigned to the search query, and the frequency of occurrence of the uncontrolled label in the set is greater than the frequency of occurrence in the training dataset, the positive statistical value is determined as the suitability; If an uncontrolled label assigned to data included in the set is not assigned to the search query, and the frequency of occurrence of the uncontrolled label in the set is lower than the frequency of occurrence in the learning dataset, the positive value of the statistic is converted to a negative value and the suitability is determined as the suitability.

4. The triplet network learning system of claim 3.

5. The computer includes: an upper limit of the label similarity is set to an integrated value of the statistics when an uncontrolled label assigned to data included in the set is also assigned to the search query and the frequency of occurrence of the uncontrolled label in the set is greater than the frequency of occurrence in the learning dataset; a lower limit value of the label similarity is set to a negative value of an integrated value of the statistics when an uncontrolled label assigned to data included in the set is not assigned to the search query and the frequency of occurrence of the uncontrolled label in the set is lower than the frequency of occurrence in the learning dataset; 5. The triplet network learning system of claim 4.

6. The computer includes: When the data included in the set is sorted in order of the feature similarity, data at both ends of a region in which the label similarity increases as the rank of the feature similarity decreases is defined as the negative case and the positive case, respectively.

2. The triplet network learning system of claim 1.

7. The computer includes: a predetermined number of triplet-forming pieces are selected in descending order of the increase in the label similarity caused by the decrease in the rank of the feature similarity, and the triplet is formed.

2. The triplet network learning system of claim 1.

8. The computer includes: When a predetermined termination condition is satisfied, the process of updating the learning model by learning based on the generated triplet is terminated; The termination condition is that an average value of a gap in the set of triplets used to update the learning model is equal to or less than a predetermined value.

2. The triplet network learning system of claim 1.

9. A triplet network learning method for generating a learning model for extracting features of data by using a learning dataset including a mixture of data to which controlled labels, which are appropriate labels, and data to which uncontrolled labels, which are labels that are not guaranteed to be appropriate, are assigned, by a system having at least one computer, the method comprising: The computer, Sequentially selecting data from the learning dataset as a search query, and extracting a set of data similar to the search query from the learning dataset based on a feature similarity indicating a degree of similarity of features extracted by the learning model; For each uncontrolled label assigned to data included in the set, calculate a suitability indicating how suitable the label is for the search query based on a statistic indicating the degree to which the uncontrolled label is assigned to data extracted by a search using the search query, and calculate upper and lower limit values ​​of a label similarity indicating the degree of similarity between the suitable labels assigned to both the search query and the data included in the set; calculating a label similarity for each pair of the search query and data included in the set based on the suitability, the upper limit, and the lower limit; the computer selects positive and negative examples from the set based on feature similarity and label similarity between the search query and each of the data included in the set, and generates triplets combining the anchor, the positive and negative examples with the search query as an anchor; The computer updates the learning model by learning based on the generated triplets. Triplet network training methods.

Citation Information

Cited By

  • Information processing device, information processing method, and information processing program

    JP2026138877A