Inference program and inference method

By integrating image and semantic hyperdimensional vectors using Hyperdimensional Computing, the method efficiently generates imaginary images in zero-shot learning, addressing the inefficiencies of conventional GAN-based methods.

JP7556269B2Active Publication Date: 2024-09-26FUJITSU LTD
View PDF 8 Cites 0 Cited by

Patent Information

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

Smart Images

  • Figure 0007556269000013
    Figure 0007556269000013
  • Figure 0007556269000011
    Figure 0007556269000011
  • Figure 0007556269000015
    Figure 0007556269000015
Patent Text Reader

Abstract

To generate an imaginary image in a short time in zero-shot learning.SOLUTION: Regarding training data without image information, a semantic HV generation unit 12b generates a semantic HV based on a semantic feature vector, and an integration unit 13 generates an integrated HV based on the semantic HV. An imaginary image generation unit 16 uses the integrated HV to search an HV memory 15, obtains, from the HV memory 15, a predetermined number of integrated HVs from an HV with the highest degree of matching with the integrated HV generated by the integration unit 13, and adds the obtained predetermined number of integrated HVs to generate an integrated HV representing the imaginary image. Then, the imaginary image generation unit 16 adds the integrated HV representing the imaginary image and the integrated HV generated by the integration unit 13 to store its result in the HV memory 15.SELECTED DRAWING: Figure 5
Need to check novelty before this filing date? Find Prior Art

Description

[Technical Field]

[0001] The present invention relates to an inference program and an inference method. [Background technology]

[0002] In recent years, neural networks (NN) have been widely used in fields such as image recognition. In particular, the accuracy of image recognition has been greatly improved by using deep learning (DL).

[0003] However, recognition using DL can only recognize what is given as training data. In contrast, humans can recognize images they have never seen before if they are given other clues. Zero-Shot Learning (ZSL) is a technology that realizes this type of human recognition. Zero-Shot Learning enables recognition without training data by providing other clues.

[0004] Fig. 12 is a diagram for explaining zero-shot learning. Fig. 12(a) shows training in zero-shot learning, and Fig. 12(b) shows inference in zero-shot learning. As shown in Fig. 12(a), there are two types of training data.

[0005] The first type of training data includes classes, image information, and semantic information. Here, the semantic information is information that serves as a clue for recognition. For example, "zebra" is associated with the semantic information of "four-legged walking," "striped," and "herbivorous," while "lion" is associated with the semantic information of "four-legged walking," "brown," and "carnivorous." "Four-legged walking," "striped," "herbivorous," "brown," "carnivorous," etc. indicate attributes of the recognition target.

[0006] The second type of training data includes classes and semantic information, but does not include image information. For example, "tiger" is associated with the semantic information "walking on four legs," "striped," "brown," and "carnivorous," but has no associated image information.

[0007] As shown in Figure 12(b), when the inference device is given image information of a "tiger" and asked "What animal is this?", it answers "tiger" as the inference result. Even though the inference device was not given image information of a "tiger" during training, it answers "tiger" using semantic information as a clue.

[0008] A conventional feature generation device accurately and efficiently finds content with the same or similar semantics. This feature generation device generates and outputs an integrated feature vector when one or more initial feature vectors representing content for which features are to be generated are input. Specifically, the feature generation device assigns each initial feature vector to one or more quantizers based on a quantizer defined by a predetermined number of quantizers and representative vectors corresponding to each of the quantizers. The feature generation device then calculates, for each quantum, a residual vector between the initial feature vector assigned to the quantum and the representative vector corresponding to the quantum. The feature generation device then calculates an integrated feature vector by integrating the residual vectors calculated for each quantum. The device then applies a predetermined transformation matrix to the calculated integrated feature vector to perform decorrelation processing, and outputs the resulting integrated feature vector as a feature of the content.

[0009] Also, there is a conventional system for performing a search based on a query image. The system generates a set of visual words representing the query image from features extracted from the query image and compares them with the visual words of an index image. The system then generates a set of candidate images from the index image that match one or more visual words in the comparison. The system then performs multi-level ranking to sort the set of candidate images and returns the results of the multi-level ranking to a user device that provided the query image.

[0010] Furthermore, as prior art, there is a text similarity calculation device that accurately calculates the similarity between texts. This text similarity calculation device calculates image similarity, which is the similarity between first image information corresponding to a first text obtained by converting a first text, and second image information corresponding to a second text obtained by converting a second text. This text similarity calculation device also calculates text vector similarity, which is the similarity between a first text vector representing the first text and a second text vector representing the second text. This text similarity calculation device then calculates the similarity between the first text and the second text based on the image similarity and the text vector similarity.

[0011] Furthermore, as a conventional technology, there is HDC (Hyperdimensional Computing), which is one of the non-von Neumann computing technologies that focuses on information representation in the brain. [Prior art documents] [Patent documents]

[0012] [Patent Document 1] Japanese Patent Application Laid-Open No. 2017-162009 [Patent Document 2] US Patent Application Publication No. 2019 / 0236167 [Patent Document 3] Japanese Patent Publication No. 2020-4322 [Non-patent literature]

[0013] [Non-Patent Document 1] P. Kanerva, “Hyperdimensional Computing: An Introduction to Computing in Distributed Representation with High-Dimensional Random Vectors,” Cognitive Computation, vol.1, no.2, pp.139-159, 2009. Summary of the Invention [Problem to be solved by the invention]

[0014] In zero-shot learning, the reasoning device imagines images that are missing from the second type of training data based on the semantic information contained in the second type of training data and the first type of training data, and adds the imagined images to knowledge. Then, when the reasoning device receives a query image, it searches for images, including the imagined images, that are closest to the query image and answers the class of the query image.

[0015] Fig. 13 is a diagram illustrating training and inference in zero-shot learning. As shown in Fig. 13, in training, image information and semantic information of a polar bear and a zebra are provided as the first type of training data. The semantic information of the polar bear includes: no black, yes white, brown, no stripes, aquatic life, and a fish-eating life. The semantic information of the zebra includes: black, white, no brown, stripes, not aquatic life, and not a fish-eating life.

[0016] As the second type of training data, semantic information of otters and tigers is provided. The semantic information of otters includes: black, no white, brown, no stripes, an aquatic creature, and a fish-eating creature, while the semantic information of tigers includes: black, white, no brown, stripes, not an aquatic creature, and not a fish-eating creature.

[0017] An imaginary image of an otter is generated from the image information and semantic information of the polar bear and zebra and the semantic information of the otter, and an imaginary image of a tiger is generated from the image information and semantic information of the polar bear and zebra and the semantic information of the tiger.

[0018] In the inference process, when an image of a tiger is given as a query, it is matched with images of polar bears, zebras, otters, and tigers, including imaginary images, and the image of a tiger is searched for as the most similar image, and a tiger is given as the answer.

[0019] However, conventional zero-shot learning mainly uses generative models based on neural networks such as GANs (Generative Adversarial Networks) to generate imaginary images, which has the problem of taking a long time to generate imaginary images. GANs are a type of "unsupervised learning" that learns features without providing correct data. Furthermore, generative models are based on the idea that "the data we are currently observing must have been generated based on some kind of probability distribution," and they model the probability distribution that generates the data itself.

[0020] In one aspect, the present invention aims to generate an imaginary image in a short time. [Means for solving the problem]

[0021] In one aspect, an inference program causes a computer to execute a process of generating an image hyperdimensional vector from the image information and generating a semantic hyperdimensional vector from the semantic information for each of a plurality of first-type training data sets including image information, semantic information, and classes to be learned. The inference program then causes the computer to execute a process of integrating the generated image hyperdimensional vector and semantic hyperdimensional vector to generate an integrated hyperdimensional vector, associating it with the class, and storing it in a storage unit. The inference program then causes the computer to execute a process of generating a semantic hyperdimensional vector from semantic information for second-type training data sets including the semantic information and classes to be learned but not including image information. The inference program then causes the computer to execute a process of searching the storage unit based on the generated semantic hyperdimensional vector. The inference program then causes the computer to execute a process of generating an integrated hyperdimensional vector for the second-type training data sets based on a predetermined number of integrated hyperdimensional vectors that match the semantic hyperdimensional vector. The inference program then causes the computer to execute a process of storing the generated integrated hyperdimensional vector in the storage unit, associating it with the class of the second-type training data. [Effects of the Invention]

[0022] In one aspect, the present invention can generate imaginary images in a short time. [Brief explanation of the drawings]

[0023] [Figure 1] FIG. 1 is a diagram for explaining the HV. [Figure 2] FIG. 2 is a diagram showing an example of expressing a set by addition. [Figure 3] FIG. 3 is a diagram for explaining learning and inference in HDC. [Figure 4] FIG. 4 is a diagram illustrating the operation of the inference device according to the embodiment. [Figure 5] FIG. 5 is a diagram illustrating the functional configuration of the inference device. [Figure 6]FIG. 6 is a flowchart showing the flow of processing by the inference device. [Figure 7] FIG. 7 is a flowchart showing the processing flow of the first training. [Figure 8] FIG. 8 is a flowchart showing the processing flow of the second training. [Figure 9] FIG. 9 is a flowchart showing the flow of the inference process. [Figure 10] FIG. 10 is a diagram for explaining the decomposition of image features for each attribute included in semantic information. [Figure 11] FIG. 11 is a diagram illustrating a hardware configuration of a computer that executes an inference program according to the embodiment. [Figure 12] FIG. 12 is a diagram for explaining zero-shot learning. [Figure 13] FIG. 13 is a diagram for explaining training and inference in zero-shot learning. DETAILED DESCRIPTION OF THE INVENTION

[0024] Hereinafter, embodiments of the inference program and the inference method disclosed in the present application will be described in detail with reference to the accompanying drawings. Note that the disclosed technology is not limited to these embodiments. [Example]

[0025] First, we will explain HDC. HDC uses HV (Hyperdimensional Vector) for data representation. Figure 1 is a diagram for explaining HV. HV represents data in a distributed manner using hyperdimensional vectors with 10,000 or more dimensions. HV represents various types of data using vectors with the same bit length.

[0026] As shown in Figure 1(a), in normal data representation, data such as a, b, and c are represented together. On the other hand, as shown in Figure 1(b), in hyperdimensional vectors, data such as a, b, and c are represented in a distributed manner. HDCs allow data manipulation using simple operations such as addition and multiplication. HDCs also allow the relationship between data to be represented using addition and multiplication.

[0027] Fig. 2 is a diagram showing an example of a set representation by addition. In Fig. 2, HVs of cat #1, cat #2, and cat #3 are generated by HV encoder 2 from images of cat #1, cat #2, and cat #3, respectively. Each element of the HV is "+1" or "-1." Cats #1 to #3 are each represented by a 10,000-dimensional HV.

[0028] As shown in Figure 2, the HV obtained by adding the HVs of cat #1 to cat #3 represents the set including cat #1, cat #2, and cat #3, i.e., "the cats." Here, the addition of HVs is an element-by-element addition. If the result of the addition is positive, it is replaced with "+1," and if the result is negative, it is replaced with "-1." If the result of the addition is "0," it is replaced with "+1" or "-1" according to a predetermined rule. In HDC, it is possible for the "cats" to be far from each other, but for each "cat" to be close to the "cats." In HDC, "the cats" can be treated as a unified concept of cat #1 to cat #3.

[0029] 3 is a diagram for explaining learning and inference in HDC. As shown in FIG. 3, in the learning phase, HVs of cat #1, cat #2, and cat #3 are generated by HV encoder 2 from the images of cat #1, cat #2, and cat #3, respectively. Then, HVs of cat #1, cat #2, and cat #3 are added together to generate an HV for "the cats," and the generated HV is stored in HV memory 15 in association with "the cats."

[0030] Then, in the inference phase, an HV is generated from another cat image, and the HV of "cats" is searched for in the HV memory 15 as the HV that matches the generated HV nearest, and "cat" is output as the inference result. Here, nearest neighbor matching means calculating the degree of agreement between HVs by the dot product between HVs, and outputting the class with the highest degree of agreement. Two HVs are combined into an H i , H j Then, the dot product p=H i H j is H i and H j If these match, then it is D (the dimension of HV), and H i and H j When crossed orthogonally, it becomes -D. Since the HV memory 15 is an associative memory, nearest neighbor matching can be performed at high speed.

[0031] In the inference device according to the embodiment, the HV is generated based on features extracted by the NN, not by the HV encoder 2. In the inference device according to the embodiment, the pattern processing of feature extraction from an image is performed by the NN, and the symbolic processing of storing the HV in the HV memory 15 and associating using the HV memory 15 is performed by the HDC. In this way, by utilizing the advantages of the NN and the HDC, the inference device according to the embodiment can efficiently perform training and inference.

[0032] Next, the operation of the inference device according to the embodiment will be described. Fig. 4 is a diagram for explaining the operation of the inference device according to the embodiment. As shown in Fig. 4, in training, the inference device 1 according to the embodiment performs training using a first type of training data and a second type of training data.

[0033] For the first type of training data, the image NN 11a inputs image information and generates an image feature vector. Then, the image HV generation unit 12a generates an image HV based on the image feature vector. Furthermore, the semantic NN 11b inputs semantic information and generates a semantic feature vector. Note that if the semantic information represents semantic features, the inference device 1 may generate a semantic feature vector from the semantic information without using the semantic NN 11b. Then, the semantic HV generation unit 12b generates a semantic HV based on the semantic feature vector.

[0034] Then, the inference device 1 multiplies the image HV by the image attribute HV to generate an image attribute space HV, and multiplies the semantic HV by the semantic attribute HV to generate a semantic attribute space HV. Here, the dimensions of the image attribute HV and the semantic attribute HV are the same as the dimensions of the image HV and the semantic HV.

[0035] The operation of multiplying an HV by an attribute HV is equivalent to mapping the HV to a subspace. For example, multiplying an image HV by an image attribute HV is equivalent to mapping the image HV to an image attribute subspace, and multiplying a semantic HV by a semantic attribute HV is equivalent to mapping the semantic HV to a semantic attribute subspace. In this way, by multiplying an HV by an attribute HV and mapping the HV to a subspace, the inference device 1 can separate each pre-integration HV from other HVs in the integrated HV after integration.

[0036] The inference device 1 then generates an integrated HV by adding the image attribute space HV and the semantic attribute space HV, and stores the integrated HV as knowledge in the HV memory 15. The multiplication of the two HVs is an element-by-element multiplication.

[0037] On the other hand, for the second type of training data, the semantic NN 11b inputs semantic information and generates a semantic feature vector. Note that if the semantic information represents semantic features, the inference device 1 may generate a semantic feature vector from the semantic information without using the semantic NN 11b. Then, the semantic HV generation unit 12b generates a semantic HV based on the semantic feature vector.

[0038] The inference device 1 then multiplies the semantic HV by the semantic attribute HV to generate a semantic attribute space HV, and searches the HV memory 15 using the semantic attribute space HV. The inference device 1 then obtains a predetermined number of integrated HVs from the HV memory 15 in order of highest degree of match with the semantic attribute space HV, and generates an integrated HV representing an imaginary image by adding the obtained predetermined number of integrated HVs. In FIG. 4, the predetermined number is 2. The generated imaginary image is an imaginary image of a tiger. The inference device 1 then adds the integrated HV representing the imaginary image and the semantic attribute space HV, and stores them in the HV memory 15.

[0039] In this way, the inference device 1 generates an integrated HV representing an imaginary image by searching the HV memory 15 and adding the integrated HVs, and therefore can generate an imaginary image at high speed.

[0040] In inference, the image NN 11a inputs image information of an animal of an unknown class and generates an image feature vector. Then, the image HV generation unit 12a generates an image HV based on the image feature vector. Then, the inference device 1 multiplies the image HV by the image attribute HV to generate an image attribute space HV, and searches the HV memory 15 using the image attribute space HV. Then, the inference device 1 extracts a class by nearest neighbor matching. In Figure 4, a tiger is output as the inference result.

[0041] Next, we will explain the functional configuration of the inference device 1. Fig. 5 is a diagram showing the functional configuration of the inference device 1. As shown in Fig. 5, the inference device 1 has an image NN 11a, a semantic NN 11b, an image HV generation unit 12a, a semantic HV generation unit 12b, an integration unit 13, a storage unit 14, an HV memory 15, an imaginary image generation unit 16, and an association unit 17.

[0042] The image NN 11a receives image information as input and outputs an image feature vector. The image feature vector is, for example, a vector of output values ​​of nodes in the output layer of the image NN 11a. In the learning phase, the image NN 11a receives image information of a first type of training data, and in the inference phase, it receives image information of unknown data.

[0043] The semantic NN 11b receives semantic information and outputs a semantic feature vector. The semantic feature vector is, for example, a vector of output values ​​of nodes in the output layer of the semantic NN 11b. In the learning phase, the semantic NN 11b receives semantic information of the first type of training data and the second type of training data.

[0044] The image NN 11a and the semantic NN 11b are implemented using, for example, a GPU (Graphics Processing Unit) or a dedicated processor for DL.

[0045] The image HV generation unit 12a generates an image HV based on the image feature vector. Specifically, if the image feature vector is x and the dimension of x is n, the image HV generation unit 12a centers x. That is, the image HV generation unit 12a calculates the average value vector of x using the following equation (1), and subtracts the average value vector of x from x as shown in equation (2). In equation (1), D base is the set of x, and |D base | is the size of the set of x.

number

number

[0046] Then, the image HV generation unit 12a normalizes x. That is, the image HV generation unit 12a divides x by its L2 norm as shown in the following equation (3). Note that the image HV generation unit 12a does not necessarily have to perform centering and normalization.

number

[0047] Then, the image HV generation unit 12a quantizes each element of x in Q steps to obtain q={q1, q2, . . . , q n The image HV generation unit 12a may perform linear quantization or logarithmic quantization.

[0048] Furthermore, the image HV generating unit 12a calculates the base HV (L i In equation (4), D is the dimension of HV, for example, 10000. The image HV generation unit 12a randomly generates L1, flips D / Q bits at random positions, and generates L2 to L3 in order. Q Generate the adjacent L i are close, L1 and L Q are orthogonal.

number

[0049] Then, the image HV generation unit 12a calculates the channel HV (C i The image HV generation unit 12a generates all C i C i is generated randomly.

number

[0050] Then, the image HV generating unit 12a calculates the image HV using the following equation (6): In equation (6), "·" represents the dot product.

number

[0051] The semantic HV generation unit 12b generates a semantic HV based on the semantic feature vector. The semantic HV generation unit 12b calculates the semantic HV using the base HV and the channel HV, similar to the image HV generation unit 12a, with the semantic feature vector as x.

[0052] For the first type of training data, the integrating unit 13 multiplies the image HV by the image attribute HV to generate an image attribute space HV, and multiplies the semantic HV by the semantic attribute HV to generate a semantic attribute space HV.The integrating unit 13 then generates an integrated HV by adding the image attribute space HV and the semantic attribute space HV.The integrating unit 13 then passes the integrated HV to the storage unit 14.

[0053] For the second type of training data, the integration unit 13 multiplies the semantic HV by the semantic attribute HV to generate the semantic attribute space HV as an integrated HV. Then, the integration unit 13 passes the integrated HV to the imaginary image generation unit 16.

[0054] The storage unit 14 stores the integrated HV generated by the integration unit 13 for the first type of training data in the HV memory 15 in association with the class.

[0055] The HV memory 15 stores the integrated HV in association with a class. For example, the HV memory 15 stores the integrated HV at an address corresponding to the class. Alternatively, the HV memory 15 stores the integrated HV in association with a class. The HV memory 15 is an associative memory. The HV memory 15 can be made faster and denser by utilizing a ReRAM (Resistive Random Access Memory), memristor, etc.

[0056] The imaginary image generation unit 16 searches the HV memory 15 for the second type of training data using the integrated HV generated by the integrating unit 13. Then, the imaginary image generation unit 16 acquires from the HV memory 15 a predetermined number of integrated HVs that match the integrated HV generated by the integrating unit 13 most closely, and generates an integrated HV representing the imaginary image by adding the acquired predetermined number of integrated HVs. Then, the imaginary image generation unit 16 adds the integrated HV representing the imaginary image and the integrated HV generated by the integrating unit 13 and stores them in the HV memory 15.

[0057] In the inference phase, the association unit 17 outputs, as an inference result, a class associated by the HV memory 15 from the integrated HV generated by the integration unit 13. That is, the association unit 17 outputs a class corresponding to the integrated HV that most closely matches the integrated HV generated by the integration unit 13. The association unit 17 quickly matches the integrated HV with the HVs stored in the HV memory 15.

[0058] Next, the processing flow by the inference device 1 will be described with reference to Figs. 6 to 9. Fig. 6 is a flowchart showing the processing flow by the inference device 1. As shown in Fig. 6, the inference device 1 performs a first training, i.e., training for a class in which image information and semantic information are combined (step S1). Then, the inference device 1 performs a second training, i.e., training for a class in which only semantic information is provided (step S2). Then, the inference device 1 receives image information whose class is unknown, performs inference (step S3), and outputs the class as the inference result.

[0059] 7 is a flowchart showing the flow of the first training process. As shown in FIG. 7, the inference device 1 inputs image information to the image NN 11a and converts it into an image feature vector (step S11). Then, the inference device 1 converts the image feature vector into an image HV (step S12). Then, the inference device 1 inputs semantic information to the semantic NN 11b and converts it into a semantic feature vector (step S13). Then, the inference device 1 converts the semantic feature vector into a semantic HV (step S14).

[0060] The inference device 1 may perform the processes of steps S13 and S14 before the processes of steps S11 and S12. Alternatively, the inference device 1 may perform the processes of steps S13 and S14 in parallel with the processes of steps S11 and S12.

[0061] The inference device 1 then multiplies the image HV by the image attribute HV, multiplies the semantic HV by the semantic attribute HV, and adds the two multiplication results to generate an integrated HV (step S15).The inference device 1 then stores the generated integrated HV in the HV memory 15 (step S16).

[0062] In this way, the inference device 1 generates an integrated HV based on the image HV and the semantic HV, and stores the generated HV in the HV memory 15, so that knowledge can be accumulated in the HV memory 15.

[0063] 8 is a flowchart showing the flow of the second training process. As shown in FIG. 8, the inference device 1 inputs semantic information to the semantic NN 11b and converts it into a semantic feature vector (step S21). The inference device 1 then converts the semantic feature vector into a semantic HV and multiplies it by the semantic attribute HV to generate a semantic attribute space HV (step S22). The inference device 1 then searches the HV memory 15 and selects a predetermined number of integrated HVs that are most similar to the semantic attribute space HV (step S23).

[0064] The inference device 1 then adds up the selected predetermined number of integrated HVs to generate an imaginary image HV (step S24). The inference device 1 then adds up the imaginary image HV and the semantic attribute space HV to generate an integrated HV that integrates the image and the meaning (step S25). The inference device 1 then stores the generated HV in the HV memory 15 (step S26).

[0065] In this way, the inference device 1 generates an imaginary image HV based on a predetermined number of integrated HVs selected from the HV memory 15, and therefore can identify the class from the image information even for objects for which there is no image information in the training data.

[0066] 9 is a flowchart showing the flow of the inference process. As shown in FIG. 9, the inference device 1 inputs new image information from an unknown class as a query (step S31). Then, the inference device 1 inputs the image information to the image NN 11a and converts it into an image feature vector (step S32). Then, the inference device 1 converts the image feature vector into an image HV and multiplies it by the image attribute HV to generate an image attribute space HV (step S33).

[0067] Then, the inference device 1 searches the HV memory 15 and selects the integrated HV that is most similar to the image attribute space HV (step S34), and outputs the class corresponding to the selected integrated HV (step S35).

[0068] In this way, by searching the HV memory 15 containing the imaginary images HV, the inference device 1 can identify the class even for objects whose image information is not included in the training data.

[0069] The inference device 1 may utilize a word database, common sense database, etc. to convert semantic information before use. Examples of conversion include Word2Vec and Numberbatch. Word2Vec converts words into vector representations. In Word2Vec, the vector representation includes the semantic relationships between words. Numberbatch converts words into vector representations using the common sense database ConceptNet. Numberbatch enables the semantic relationships between words to be expressed more broadly. By converting semantic information using Word2Vec, Numberbatch, etc., the dimensions of the semantic feature vector can be increased.

[0070] Furthermore, when generating an imaginary image, the inference device 1 may decompose image features for each attribute included in the semantic information and then add them up, instead of searching the HV memory 15 and adding up a predetermined number of highly consistent integrated HVs. FIG. 10 is a diagram for explaining the decomposition of image features for each attribute included in the semantic information. As shown in FIG. 10, the inference device 1 generates an imaginary image of a "zebra" from, for example, the integrated HV of "stripes," the integrated HV of "four legs," and the integrated HV of "ground."

[0071] While FIG. 10 shows an image of generating imaginary images using image features for each attribute, in reality, the inference device 1 generates imaginary images by matrix calculation. Specifically, the image feature matrix of the first type of training data is calculated as n cls row n vis Let F be a matrix with columns, and let the mapping matrix from image features to attributes be n vis row n att Let W be the column matrix, and let n be the attribute matrix of the first type of training data. cls row n att If A is a column matrix, then FW=A. Here, n cls is the number of classes, and n vis is the number of image features, and n attis the number of attributes.

[0072] Reasoning device 1 determines (t1) a linear mapping W from image features to semantic information. That is, reasoning device 1 determines W=F + Calculate W using A. Here, F + is the pseudo-inverse matrix of F. Then, the inference device 1 calculates the pseudo-inverse matrix W of W. + Then, the reasoner 1 calculates W + In other words, the inference device 1 calculates image features for each attribute from F′=A′W + Then, the inference device 1 generates an imaginary image F' corresponding to the attribute A' by weighting and adding (t3) the image HV of the attribute of the second training data. + =A + F by W + may be calculated directly.

[0073] As described above, in this embodiment, for the first type of training data, the image HV generation unit 12a generates an image HV based on the image feature vector, and the semantic HV generation unit 12b generates a semantic HV based on the semantic feature vector. The integrating unit 13 then generates an integrated HV based on the image HV and the semantic HV, and the storage unit 14 stores the integrated HV in the HV memory 15. For the second type of training data, the semantic HV generation unit 12b generates a semantic HV based on the semantic feature vector, and the integrating unit 13 generates an integrated HV based on the semantic HV. The imaginary image generation unit 16 then searches the HV memory 15 using the integrated HV, retrieves from the HV memory 15 a predetermined number of integrated HVs that are most similar to the integrated HV generated by the integrating unit 13, and adds the retrieved predetermined number of integrated HVs to generate an integrated HV representing an imaginary image. The imaginary image generation unit 16 then adds the integrated HV representing the imaginary image and the integrated HV generated by the integrating unit 13, and stores the combined integrated HV in the HV memory 15. Therefore, the inference device 1 can generate imaginary images in a short time. Furthermore, a comparison using several data sets with existing techniques showed that the inference device 1 achieved comparable accuracy.

[0074] In addition, in the embodiment, for image information whose class is unknown, the image HV generation unit 12a generates an image HV based on the image feature vector, and the integration unit 13 generates an integrated HV based on the image HV. Then, the associating unit 17 searches the HV memory 15 that stores integrated HVs including an integrated HV representing an imaginary image, and outputs, as an inference result, a class associated with the integrated HV that most closely matches the integrated HV generated by the integration unit 13. Therefore, the inference device 1 can infer a class from image information even when image information is not provided in training.

[0075] Furthermore, in this embodiment, the image NN 11a receives image information and generates an image feature vector, so the inference device 1 can generate the image feature vector efficiently.

[0076] In the embodiment, the integration unit 13 generates an integrated HV by multiplying the image HV by the image attribute HV, multiplying the semantic HV by the semantic attribute HV, and adding the two multiplication results. Therefore, the inference device 1 can separate each HV before integration from other HVs in the integrated HV.

[0077] In addition, in the embodiment, the inference device 1 identifies a mapping matrix from image features to semantic information, generates imaginary images for each attribute included in the semantic information using a pseudo-inverse matrix of the identified mapping matrix, and generates an image hyperdimensional vector from the imaginary images for each attribute. Therefore, the inference device 1 can generate imaginary images with higher accuracy.

[0078] In the embodiment, an inference device 1 has been described, but an inference program having similar functions can be obtained by realizing the configuration of the inference device 1 by software. Therefore, a computer that executes the inference program will be described.

[0079] 11 is a diagram showing the hardware configuration of a computer that executes an inference program according to an embodiment. As shown in FIG. 11, a computer 50 includes a main memory 51, a CPU (Central Processing Unit) 52, a LAN (Local Area Network) interface 53, and an HDD (Hard Disk Drive) 54. The computer 50 also includes a super IO (Input Output) 55, a DVI (Digital Visual Interface) 56, and an ODD (Optical Disk Drive) 57.

[0080] The main memory 51 is a memory that stores programs, intermediate results of program execution, etc. The CPU 52 is a central processing unit that reads and executes programs from the main memory 51. The CPU 52 includes a chipset having a memory controller.

[0081] The LAN interface 53 is an interface for connecting the computer 50 to another computer via a LAN. The HDD 54 is a disk device for storing programs and data, and the super IO 55 is an interface for connecting input devices such as a mouse and keyboard. The DVI 56 is an interface for connecting a liquid crystal display device, and the ODD 57 is a device for reading and writing DVDs.

[0082] The LAN interface 53 is connected to the CPU 52 via PCI Express (PCIe), and the HDD 54 and ODD 57 are connected to the CPU 52 via SATA (Serial Advanced Technology Attachment). The super IO 55 is connected to the CPU 52 via LPC (Low Pin Count).

[0083] The inference program executed in the computer 50 is stored on a DVD, which is an example of a recording medium readable by the computer 50, and is read from the DVD by the ODD 57 and installed in the computer 50. Alternatively, the inference program may be stored in a database or the like of another computer system connected via the LAN interface 53, and is read from this database and installed in the computer 50. The installed inference program is then stored in the HDD 54, read into the main memory 51, and executed by the CPU 52.

[0084] Furthermore, in the embodiment, the case where image information and semantic information are used has been described, but the inference device may use other information, such as audio information, instead of image information. [Explanation of symbols]

[0085] 1 Reasoning device 2 HV Encoder 11a Image NN 11b Meaning NN 12a Image HV generation unit 12b Semantic HV generator 13 Integration Department 14 Storage unit 15 HV memory 16 Imaginary image generation unit 17 Association Section 50 Computers 51 Main Memory 52 CPU 53 LAN interface 54 HDD 55 Super IO 56 DVI 57 ODD

Claims

1. On the computer, For each of a plurality of first type training data including image information, semantic information, and a class to be learned, an image hyperdimensional vector is generated from the image information, a semantic hyperdimensional vector is generated from the semantic information, and the generated image hyperdimensional vector and semantic hyperdimensional vector are integrated to generate an integrated hyperdimensional vector in association with the class, and stored in a storage unit; For second type of training data including semantic information and classes of the learning target but not including image information, a semantic hyperdimensional vector is generated from the semantic information, the storage unit is searched based on the generated semantic hyperdimensional vector, an integrated hyperdimensional vector of the second type of training data is generated based on a predetermined number of integrated hyperdimensional vectors in order of highest coincidence with the semantic hyperdimensional vector, and the generated integrated hyperdimensional vector is stored in the storage unit in association with the class of the second type of training data. An inference program characterized by executing processing.

2. The computer includes: The inference program according to claim 1, further comprising a process of generating an image hyper-dimensional vector from image information of a specific target, searching the memory unit based on the generated image hyper-dimensional vector, and acquiring a class associated with an integrated hyper-dimensional vector that has the highest degree of agreement with the image hyper-dimensional vector.

3. The process of generating an image hyper-dimensional vector from image information includes extracting image features indicating characteristics of the image information using a neural network, and generating an image hyper-dimensional vector based on the extracted image features; The inference program according to claim 1 or 2, characterized in that the process of generating a semantic hyperdimensional vector from semantic information comprises extracting semantic features indicating characteristics of the semantic information using a neural network, and generating a semantic hyperdimensional vector based on the extracted semantic features.

4. The inference program according to claim 1, 2 or 3, characterized in that the process of integrating the image hyper-dimensional vector and the semantic hyper-dimensional vector to generate an integrated hyper-dimensional vector includes multiplying the image hyper-dimensional vector by an image attribute hyper-dimensional vector to generate an image attribute space vector, multiplying the semantic hyper-dimensional vector by a semantic attribute hyper-dimensional vector to generate a semantic attribute space vector, and generating an integrated hyper-dimensional vector based on the image attribute space vector and the semantic attribute space vector.

5. The inference program according to any one of claims 1 to 4, characterized in that the process of generating an image hyper-dimensional vector from image information includes extracting image features indicating characteristics of the image information using a neural network, identifying a mapping matrix from the extracted image features to semantic information, generating an imaginary image for each attribute included in the semantic information using a pseudo-inverse matrix of the identified mapping matrix, and generating an image hyper-dimensional vector based on the generated imaginary image for each attribute.

6. The computer For each of a plurality of first type training data including image information, semantic information, and a class to be learned, an image hyperdimensional vector is generated from the image information, a semantic hyperdimensional vector is generated from the semantic information, and the generated image hyperdimensional vector and semantic hyperdimensional vector are integrated to generate an integrated hyperdimensional vector in association with the class, and stored in a storage unit; For second type of training data including semantic information and classes of the learning target but not including image information, a semantic hyperdimensional vector is generated from the semantic information, the storage unit is searched based on the generated semantic hyperdimensional vector, an integrated hyperdimensional vector of the second type of training data is generated based on a predetermined number of integrated hyperdimensional vectors in order of highest coincidence with the semantic hyperdimensional vector, and the generated integrated hyperdimensional vector is stored in the storage unit in association with the class of the second type of training data.

2. An inference method comprising: executing a process.

Citation Information

Patent Citations

  • Image retrieval device

    JP2010286861A

  • Device, method, and program for generating feature quantity

    JP2017162009A

  • Data composing apparatus and method

    JP2019045984A

  • Device and method for calculating similarity of text and program

    JP2020004322A

  • Multi-Modal Visual Search Pipeline for Web Scale Images

    US20190236167A1