Encoding device, training method, and program

The encoding device employs pre-trained neural network models with GAU modules for context and image encoding units to address the high cost and instability issues in conventional models, achieving efficient and high-quality feature extraction for image-text embeddings.

WO2024184975A1PCT designated stage expired Publication Date: 2024-09-12NIPPON TELEGRAPH & TELEPHONE CORP
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
PCT/JP2023/008133
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Filing Date
2023-03-03
Publication Date
2024-09-12

AI Technical Summary

Technical Problem

Conventional models for embedding images and text in the same space require high training costs and lack learning stability, especially when handling different languages or domains, often necessitating retraining from scratch with new data.

Method used

An encoding device utilizing a neural network model with pre-trained context and image encoding units, each equipped with a context or image attention mechanism, feature conversion units, and a Gated Adapter Unit (GAU) for selective information processing, allows for low-cost learning of high-quality feature extraction.

Benefits of technology

This approach enables stable and efficient learning of feature extraction models, reducing the need for extensive retraining and minimizing costs while maintaining model quality, as demonstrated in search tasks between images and text.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure JP2023008133_12092024_PF_FP_ABST
    Figure JP2023008133_12092024_PF_FP_ABST
Patent Text Reader

Abstract

Provided is an encoding device for extracting a feature from information using a neural network model, the encoding device comprising a context encoding unit and an image encoding unit, the context encoding unit comprising a context attention mechanism and a context feature transformation unit, which are pre-trained models, and a context information selection unit with a GAU module, the image encoding unit comprising an image attention mechanism and an image feature transformation unit, which are pre-trained models, and an image information selection unit with a GAU module.
Need to check novelty before this filing date? Find Prior Art

Description

Encoding device, learning method, and program

[0001] The present invention relates to a technique for extracting features from information such as images and text.

[0002] In this specification, references are indicated by numbers such as "[1]", and the names of the references corresponding to the numbers are listed at the end of the specification.

[0003] A technology that embeds image and text features in the same space and enables computers to understand images and text based on those features is becoming widespread ([1], [2]). By measuring the distance between an image and text in this space and using it as a search score, it is used as a model for searching images from text or text from images, and as a base model for models that generate images from text.

[0004] These techniques use image recognition models ([3], [4]) and language models ([5]) to create embedding maps, and train network parameters using large datasets consisting of related image and text pairs. This makes it possible to embed related images and text in close proximity in the same space, and has been highly evaluated in the fields of vision and language, which utilize visual and text information.

[0005] Xiaohua Zhai, Xiao Wang, Basil Mustafa, Andreas Steiner, Daniel Keysers, Alexander Kolesnikov, Lucas Beyer, LiT: Zero-Shot Transfer with Locked-image text Tuning Proceedings of the IEEE / CVF Conference on Computer Vision and Pattern Recognition (CVPR), 2022, pp. 18123-18133 (https: / / arxiv.org / abs / 2111.07991)

[0006] Conventional models, such as those in reference [1], guarantee the quality of the model by preparing a large number of image-text pairs and training them with large-scale computational resources, which results in a very high training cost. In particular, when dealing with different languages ​​or domains, it is necessary to train the model from scratch or additionally with new target data, which results in a very high training cost.

[0007] To address this issue, methods related to transfer learning and incremental learning have been proposed (Non-Patent Document 1 ([6])), but these methods lack stability in learning and are prone to overfitting.

[0008] The present invention has been made in consideration of the above points, and aims to provide a technology for realizing a high-quality model for extracting features from information that can be trained at low cost.

[0009] According to the disclosed technology, there is provided an encoding device that extracts features from information using a neural network model, the encoding device comprising: a context encoding unit and an image encoding unit, wherein the context encoding unit comprises: a context attention mechanism and a context feature conversion unit that are pre-trained models; and a context information selection unit having a GAU module, and the image encoding unit comprises: an image attention mechanism and an image feature conversion unit that are pre-trained models; and an image information selection unit having a GAU module.

[0010] The disclosed technology provides a technology for realizing a high-quality model for extracting features from information that can be trained at low cost.

[0011] 1 is a diagram illustrating an example of the configuration of a search device 100. FIG. 2 is a flowchart illustrating an outline of the processing flow of the search device 100. FIG. 3 is a diagram illustrating an example of the configuration of a context encoding unit 110. FIG. 4 is a diagram illustrating an example of the configuration of an image encoding unit 120. FIG. 5 is a diagram for explaining specific examples of the configurations of the context encoding unit 110 and the image encoding unit 120. FIG. 6 is a diagram illustrating specific examples of the configurations of a text encoder (context encoding unit 110) and an image encoder (image encoding unit 120). FIG. 7 is a diagram illustrating a specific example of the configuration of pattern 1. FIG. 8 is a diagram illustrating a specific example of the configuration of pattern 3. FIG. 9 is a diagram illustrating an example of the configuration of a learning device 200. FIG. 10 is a diagram illustrating the layer norm of each component of the context encoding unit 110 (pattern 1). FIG. 11 is a flowchart illustrating a method of updating model parameters. FIG. 11 is a diagram illustrating an example of the overall configuration of a system. FIG. 12 is a flowchart illustrating the operation of the system. FIG. 13 is a diagram illustrating an example of the hardware configuration of a device. FIG. 14 is a diagram illustrating experimental settings. FIG. 15 is a diagram illustrating experimental results.

[0012] Hereinafter, an embodiment of the present invention will be described with reference to the drawings. The embodiment described below is merely an example, and the embodiment to which the present invention is applied is not limited to the following embodiment.

[0013] In the following, features from images and features from text are given as examples of features extracted by the encoding unit, but the technology according to the present invention is applicable to information in general, not limited to images and text.

[0014] Hereinafter, examples 1 and 2 will be described as specific examples according to the embodiment of the present invention. In example 1, an example of performing a search using features obtained by an encoding unit will be described. In example 2, a learning method for a model used as the encoding unit in example 1 will be described.

[0015] First Embodiment First embodiment will be described. In the first embodiment, an apparatus that executes a search task to extract images related to a search text query when a search target image is given, and the processing content thereof will be described.

[0016] 1 illustrates an example of the configuration of a search device 100 according to Example 1. As illustrated in FIG. 1 , the search device 100 includes an encoding unit 130 having a context encoding unit 110 and an image encoding unit 120, a ranking unit 140, a trained model DB 150, and an image feature DB 160.

[0017] In the first embodiment, the encoding unit 130, i.e., the context encoding unit 110 and the image encoding unit 120, are implemented as neural network models. All computations in the neural network are performed based on pre-trained parameters corresponding to each model.

[0018] In the first embodiment, it is assumed that a trained model (trained parameters) is stored in the trained model DB 150, and the trained parameters are set in each of the context encoding unit 110 and the image encoding unit 120. Note that the context encoding unit 110 and the image encoding unit 120 may each be considered as a "model."

[0019] An outline of the processing flow of the search device 100 will be described with reference to the flowchart in Fig. 2. In S101, the search device 100 receives a search query Q and a set of images to be searched {I 0 , I 1 , ..., I m} is entered.

[0020] In S102, the encoding unit 130 extracts feature amounts from each of the search query Q and the search target image. Note that the feature amounts of the search target image may be extracted in advance and stored in the image feature amount DB 160.

[0021] In S103, the ranking unit 140 performs a ranking process using the feature amount extracted by the encoding unit 130. In S104, the ranking unit 140 ranks an ordered set of images related to the search query {I 0 , I, ..., I k} and its relevance {S 0 , S 1 , ..., S k}, where m is the number of images to be searched, and k is the number of related images obtained by the search.

[0022] The components of the search device 100 will be described in detail below.

[0023] <Context Encoding Unit 110> First, a description will be given of the context encoding unit 110. The context encoding unit 110 receives an arbitrary sentence of the search query Q as input, and outputs a feature quantity u of the search query based on the parameters of the model.

[0024] 3 shows an example of the configuration of the context encoder 110. The configuration of the context encoder 110 has variations, for example, patterns 1 to 3. Here, the description will be given first with reference to pattern 1.

[0025] As shown in Fig. 3 (pattern 1), the context encoding unit 110 includes a context input unit 111, a context attention mechanism 112, a context feature conversion unit 113, and a context information selection unit 114. Note that in Fig. 3 (and the other figures as well), "*N" means that there are N layers. In other words, this means that there are N "context attention mechanisms 112, context feature conversion units 113, and context information selection units 114."

[0026] The context attention mechanism 112 generates information indicating which part of a sentence to pay attention to. The context feature conversion unit 113 converts features. The context information selection unit 114 selectively converts information.

[0027] As specific neural network models for the context input unit 111, the context attention mechanism 112, and the context feature conversion unit 113, any model may be used as long as it is a context-aware pre-training model using a transformer and encodes text information.

[0028] For example, a model based on the text encoder model used in [1] or the model in [7] can be used. All inputs to the model are text, and the output is a d-dimensional vector.

[0029] Note that the models in References [1] and [7] input text and output d-dimensional features, but other context-aware pre-trained models using a transformer may also be used.

[0030] As a specific neural network model for the context information selection unit 114, any model may be used as long as it can selectively convert the "vectors obtained by the context attention mechanism 112 and the context feature conversion unit 113" and the "vectors converted inside the context information selection unit 114" of each layer using a gate mechanism in accordance with the input.

[0031] The context information selection unit 114 may be, for example, a module called a Gated Adapter Unit (GAU), such as the highway network module proposed in reference [8]. Specifically, this module receives an input h and generates a learning parameter W H A nonlinear transformation H (e.g., a transformation consisting of a feed-forward, sigmoid function, and a feed-forward) and learning parameters W T For a nonlinear transformation T (which does not have to be nonlinear), h' = H(h, W H ) T(h, W T )+h・(1-T(h,W T )) transformation is performed. "・" is the Hadamard product.

[0032] In addition to the above example, a similar module proposed in Reference [9] may be used as the context information selector 114. However, the model in Reference [8] is lighter in weight, and it is expected that the quality of the model in Reference [8] will be sufficiently guaranteed. Note that the Gated Adapter Unit (GAU) is not limited to the model in Reference [8].

[0033] The context information selector 114 may be inserted at any position after the context attention mechanism 112 of each layer. For example, it may be arranged as shown in pattern 2 or pattern 3. Furthermore, the text encoder (context encoding unit 110) is basically composed of multiple layers, and the context information selector 114 may be inserted in all layers or only in some layers.

[0034] Regarding the context information selection unit 114, a method using a similar module is proposed in Reference

[10] , but the model in this document is for a text encoder, and in Example 1, this module is also used in the image encoding unit 120. Another difference is that Reference

[10] inserts two adapters into one layer, but in Example 1, it is only necessary to insert one after the attention module (context attention mechanism 112).

[0035] <Image Encoding Unit 120> Next, the image encoding unit 120 will be described. The image encoding unit 120 encodes an arbitrary search target image I i Based on the model parameters, the feature value v of an arbitrary search target image is calculated. i where i=0, 1, ..., m.

[0036] Fig. 4 shows an example configuration of the image encoding unit 120. The configuration of the image encoding unit 120 has variations, for example, patterns 1 to 3. Here, the description will first be made with reference to pattern 1. As shown in Fig. 4 (pattern 1), the image encoding unit 120 has an image input unit 121, an image attention mechanism 122, an image feature conversion unit 123, and an image information selection unit 124.

[0037] The image attention mechanism 122 generates information indicating where in an image to focus attention. The image feature amount conversion unit 123 converts features. The image information selection unit 124 selectively converts information.

[0038] The specific neural network models of the image input unit 121, image attention mechanism 122, and image feature conversion unit 123 may be any model that receives an image as input and outputs a d-dimensional vector, and that uses a transformer as its basic structure.

[0039] However, the dimension d of the output vector of the context encoder 110 is set to be the same as that of the image encoder 120. As the image encoder 120, for example, the image encoder model used in Reference [1] can be used.

[0040] The model in Reference [1] is based on ViT, which is proposed in Reference [4] as a method for inputting an image and outputting a d-dimensional feature. In this embodiment, these may be used, or other methods may be used as long as they fall within the range of conditions.

[0041] As a specific neural network model for the image information selection unit 124, any model may be used as long as it can selectively convert the "vectors obtained by the image attention mechanism 122 and image feature conversion unit 123" and the "vectors converted inside the image information selection unit 124" of each layer using a gate mechanism in accordance with the input.

[0042] As with the context information selector 114 in the context encoder 110, the image information selector 124 may be, for example, a GAU module, such as the highway network proposed in Reference [8]. In this case, the structure of the GAU (nonlinear transformations H, T, etc.) may be the same as or different from that of the text encoder (context encoder 110).

[0043] The image information selection unit 124 may be inserted at any position after the image attention mechanism 122 of each layer. For example, the arrangements shown in pattern 2 and pattern 3 may be used. This insertion position may also be the same as or different from that of the text encoder (context encoding unit 110). Furthermore, the image encoder (image encoding unit 120) is basically composed of multiple layers, and the image information selection unit 124 may be inserted in all layers or only in some layers. Again, the layer into which it is inserted may follow the same rules as those for the text encoder, or may be different.

[0044] <Specific Configuration Example> Specific configuration examples of the context encoding unit 110 and the image encoding unit 120 will be described with reference to Fig. 5. Since the context encoding unit 110 and the image encoding unit 120 basically have the same configuration, Fig. 5 shows the encoding unit 10 as a configuration that can be applied to either the context encoding unit 110 or the image encoding unit 120.

[0045] The encoding unit 10 has an input unit 11, an attention mechanism 12, a feature conversion unit 13, and an information selection unit 14. The input unit 11 corresponds to a context input unit 111 / image input unit 121, the attention mechanism 12 corresponds to a context attention mechanism 112 / image attention mechanism 122, the feature conversion unit 13 corresponds to a context feature conversion unit 113 / context feature conversion unit 123, and the information selection unit 14 corresponds to a context information selection unit 114 / image information selection unit 124.

[0046] 5, a specific example of a model configuration corresponding to the configuration on the right is shown on the left. The star mark in the specific configuration example indicates that it is not subject to learning.

[0047] FIG. 6 also shows a specific example of the configuration of the text encoder (context encoding unit 110) and the image encoder (image encoding unit 120). The right side of the figure also shows a specific example of the configuration of the information selection unit 14 (context information selection unit 114 / image information selection unit 124). With this configuration, as mentioned above, "h' = H(h, W H ) T(h, W T )+h・(1-T(h,W T )) is converted.

[0048] 7 to 9 show specific configuration examples of the above-mentioned patterns 1 to 3 for the text encoder (context encoder 110) and the image encoder (image encoder 120).

[0049] <Ranking Unit 120> Next, the ranking unit 140 will be described. The ranking unit 140 uses the feature value u of the search query obtained by the context encoding unit 110 and the feature set {v 1 , ..., v i , ..., v m} as input, and the ordered set of related images {I 1 , ..., I i , ..., I k} and its relevance {S 0 , S 1 , ..., S k} is output.

[0050] The ranking unit 120 ranks an image D i and the relevance S between the search query Q iUsing an appropriate distance function d, i = d(u, v i ) As a specific implementation example, d is calculated by i The input to the ranking unit 120 is two vectors of the same dimension, and the output is a scalar. Note that a distance function other than the reciprocal of the dot product that can measure the distance between vectors may also be used.

[0051] Next, a description will be given of a second embodiment. In the second embodiment, learning of model parameters of the parts (the context encoding unit 110 and the image encoding unit 120) that use a neural network in the search device 100 described in the first embodiment will be described.

[0052] 10 shows an example of the configuration of a learning device 200 that trains the context encoding unit 110 and the image encoding unit 130. The search device 100 and the learning device 200 may be separate devices, or the search device 100 may be used as the learning device 200 by providing a learning function (such as an update unit) within the search device 100.

[0053] 10, the learning device 200 includes an encoding unit 130 having a context encoding unit 110 and an image encoding unit 120, an updating unit 210, and a learning model DB 220. The learning process will be described below.

[0054] As a preparation for learning, we collect learning data (which can also be called training data) of pairs of images and text captions that describe the images. For example, we can use the data collected in

[11] . The learning data is a text set T = {T 0 , T 1 , ..., T c} and image set I = {I 0 , I 1 , ..., I m´}.

[0055] Furthermore, text T i For the image set I i = {I j |I j : T iFor these pre-collected datasets, each T i A set of images related to the search query I i One image is randomly extracted from I i + As such, (T i , I i + ) is used as one set to create training data.

[0056] <Details of the Learning Process (Model Parameter Update Process)> The encoding unit 130 (the context encoding unit 110 and the image encoding unit 120) is initialized with a pre-trained model, except for the context information selection unit 114 and the image information selection unit 124. Note that the pre-trained model used for initialization may be a model trained on language and image tasks, as proposed in reference [7] or reference [4], or a model trained on the association between language and images, as in reference [1].

[0057] For example, when the model of Reference [5] is used as the context encoding unit 110, pre-trained parameters trained in the target language are used as initial values. Also, the image encoder of Reference [1] may be used as the image encoding unit 130, or a model pre-trained on an image classification task may be used. The context information selection unit 114 and the image information selection unit 124 are randomly initialized.

[0058] Furthermore, in this embodiment, model parameters other than the "context information selection unit 114 and image information selection unit 124" in the context encoding unit 110 and image encoding unit 120 are basically excluded from the learning targets (i.e., the parameters are not updated from their initial values).

[0059] However, model parameters other than the context information selection unit 114 and the image information selection unit 124 may also be trained as needed. For example, a better model is likely to be obtained by training only parameters related to layer normalization (Layer Norm).

[0060] 11 is a diagram showing the layer norms of each component, taking the context encoding unit 110 (pattern 1) as an example. As mentioned above, the context information selection unit 114 may be located anywhere. The context feature conversion unit 113 and the context attention mechanism 112 may also be located anywhere, but it is generally best to match their locations to the structure of the pre-trained model used for initialization.

[0061] As described above, model parameters other than the "context information selection unit 114 and image information selection unit 124" may also be learned as needed, but if the number of parameters to be learned is increased too much, the cost of learning will increase, and the effects of this embodiment, namely, reduced learning cost and stable learning, will be lost, and the more the number is increased, the less the effect is guaranteed.

[0062] Although the model in Reference [6] also takes a measure to exclude image encoder parameters from the learning target, in this embodiment, by introducing the GAU mechanism, it is possible to exclude text encoder parameters from the learning target.

[0063] <Parameter Update Flow> The update unit 210 updates the model parameters (parameters to be learned) of the context encoding unit 110 and the image encoding unit 120 through supervised learning.

[0064] The update unit 210 updates the model parameters of the learning target for all learning data, and repeats this any number of times. This repeated process is called an epoch, and the number of repetitions is called the epoch number. The parameter update method can be performed using general neural network learning. A specific model parameter update method will be described here with reference to the flowchart in FIG. 12. FIG. 12 shows that the epoch process (S201 to S203) is repeated.

[0065] In each epoch, the training data is randomly divided into mini-batches (S201). In S202, the training device 200 performs the following processes (S1 to S3) for each of the mini-batches.

[0066] In S1, the encoding unit 130 (the context encoding unit 110 and the image encoding unit 130) receives text T obtained from the learning data. i , Image I i + The updating unit 210 receives the feature quantity u from the encoding unit 130. i , v i + get.

[0067] This learning is based on mini-batch processing, and the features obtained in one batch processing are the text features: 1 , u 2 , ..., u b} (where b is the mini-batch size), and image features: {v 1 + , v 2 + , ..., v b +}.

[0068] In S2, the update unit 210 uses the above feature amounts to calculate the cross entropy loss (loss) from text to image and from image to text, and uses the sum or average of these as the loss during training.

[0069] In S3, the update unit 210 calculates the gradient for each model parameter using the backpropagation algorithm based on the loss calculated in S2, and updates the model parameters using any optimization method. The update unit 210 stores the updated model parameters in the training model DB 220. In the next epoch, steps S1 to S3 are executed using the context encoder 110 / image encoder 120 that have the updated model parameters. The update unit 210 repeats steps S201 to S203 until a termination condition is met.

[0070] Note that any method for learning may be used as long as it updates parameters so that the model can produce a correct answer. For example, the update unit 210 may calculate the degree of association for each associated pair of text and image and each unassociated pair of text and image, calculate a loss (difference from the correct answer) from the obtained values, and update the parameters so as to reduce the loss.

[0071] (Other Configuration Examples) In the first embodiment, the search device 100 is configured to include both the context encoding unit 110 and the image encoding unit 120, but the search device 100 may be configured not to include the image encoding unit 120.

[0072] An example of the overall configuration in this case is shown in Fig. 13. The learning unit 230 in Fig. 13 includes an encoding unit 130 (a context encoding unit 110 and an image encoding unit 120) and an update unit 210. The image encoding unit 120 in Fig. 13 may be a standalone device (image encoding device). Note that in the configuration in Fig. 13, a configuration including the context encoding unit 110 in the retrieval device 100 and an external image encoding unit 120 may be referred to as a "encoding device."

[0073] The processing in the configuration of Fig. 13 will be described with reference to the flowchart of Fig. 14. In S10, the learning device 200 learns a model for the encoding unit 130. In S11, the image encoding unit 120 vectorizes the image to be searched using the trained model. The set of vectorized images (i.e., image features) can be referenced by the ranking unit 140 of the search device 100.

[0074] In S12, the context encoding unit 110 of the search device 100 uses the trained model to vectorize the search query and obtain features. The ranking unit 140 performs ranking processing by searching a set of image features using the features of the search query (by calculating distances).

[0075] In addition to using the context encoding unit 110 / image encoding unit 120 as components of the search device 100, either or both of the context encoding unit 110 and the image encoding unit 120 may be configured as a standalone device. Such a device may be called a "coding device."

[0076] A device including either or both of the context encoding unit 110 and the image encoding unit 120 may be generally referred to as a “coding device.” Both the search device 100 and the learning device 200 are examples of coding devices.

[0077] (Hardware Configuration Example) Any of the devices described in this embodiment (the search device 100, the learning device 200, and the encoding device) can be realized, for example, by causing a computer to execute a program. This computer may be a physical computer or a virtual machine on the cloud.

[0078] That is, the device can be realized by executing a program corresponding to the processing performed by the device using hardware resources such as a CPU and memory built into a computer. The program can be recorded on a computer-readable recording medium (such as a portable memory) and stored or distributed. The program can also be provided via a network such as the Internet or email.

[0079] Fig. 15 is a diagram showing an example of the hardware configuration of the computer. The computer in Fig. 15 includes a drive device 1000, an auxiliary storage device 1002, a memory device 1003, a CPU 1004, an interface device 1005, a display device 1006, an input device 1007, an output device 1008, and the like, all of which are interconnected by a bus BS. The computer may further include a GPU.

[0080] The program that realizes the processing on the computer is provided by a recording medium 1001, such as a CD-ROM or a memory card. When the recording medium 1001 storing the program is set in the drive device 1000, the program is installed from the recording medium 1001 to the auxiliary storage device 1002 via the drive device 1000. However, the program does not necessarily have to be installed from the recording medium 1001, but may be downloaded from another computer via a network. The auxiliary storage device 1002 stores the installed program as well as necessary files, data, etc.

[0081] The memory device 1003 reads and stores a program from the auxiliary storage device 1002 when an instruction to start the program is received. The CPU 1004 realizes functions related to the device in accordance with the program stored in the memory device 1003. The interface device 1005 is used as an interface for connecting to a network, etc. The display device 1006 displays a GUI (Graphical User Interface) or the like according to the program. The input device 1007 is composed of a keyboard, mouse, buttons, a touch panel, etc., and is used to input various operation instructions. The output device 1008 outputs the results of calculations.

[0082] (Summary, Effects, etc. of the Embodiments) As described above, the technology described in the present embodiments (specific examples are Examples 1 and 2) makes it possible to realize a high-quality model for extracting features from information, which can be trained at low cost. In other words, it becomes possible to realize a model that is high quality and has a small number of learning parameters compared to learning from scratch or incremental learning, and stable learning is also possible.

[0083] More specifically, conventional techniques have had the problem of extremely high computational costs when creating a new model. However, in this embodiment, most of the parameters of the image recognition model and language model are excluded from the learning target, and a GAU module is introduced and only this module is trained, making it possible to create a model at low cost.

[0084] Furthermore, conventional technologies have had the problem of requiring large amounts of data to create a high-quality model. However, in this embodiment, initialization is performed using the parameters of a pre-trained image recognition model and language model, the parameters are fixed, a GAU module is added, and only that module is trained. This makes it possible to add new knowledge and train the model while preserving the knowledge already acquired in the pre-trained model.

[0085] An experiment was conducted to confirm the effectiveness of the technology according to this embodiment (hereinafter referred to as the proposed method). The experimental setup is shown in Figure 16, and performance was confirmed in a search task between images and text (image2text, text2image). The baseline LiT is the method from Reference [6]. Figure 17 shows the experimental results. As shown in Figure 17, it can be seen that the proposed method achieved high performance.

[0086] The following additional notes are provided regarding the above-described embodiments.

[0087] <Additional Notes> (Additional Item 1) A coding device that extracts features from information using a neural network model, comprising: a memory; and at least one processor connected to the memory, wherein the processor implements a context coding unit and an image coding unit, wherein the context coding unit comprises: a context attention mechanism and context feature conversion unit that are pre-trained models; and a context information selection unit having a GAU module, and the image coding unit comprises: an image attention mechanism and image feature conversion unit that are pre-trained models; and an image information selection unit having a GAU module. (Additional Item 2) The coding device according to Additional Item 1, wherein parameters of normalization layers in the context coding unit and the image coding unit are parameters that are updated by learning other than the pre-training. (Additional Item 3) The coding device according to Additional Item 1 or 2, wherein the processor further implements an update unit that updates parameters of the context information selection unit and the image information selection unit using features obtained by the context coding unit and the image coding unit based on learning data. (Supplementary Item 4) A learning method executed by a coding device that extracts features from information using a neural network model, wherein the coding device comprises a context coding unit and an image coding unit, the context coding unit comprises a context attention mechanism and a context feature conversion unit that are pre-trained models, and a context information selection unit having a GAU module, the image coding unit comprises an image attention mechanism and an image feature conversion unit that are pre-trained models, and an image information selection unit having a GAU module, and the learning method comprises a step of updating parameters of the context information selection unit and the image information selection unit using features obtained by the context coding unit and the image coding unit based on training data. (Supplementary Item 5) A non-transitory storage medium that stores a program for causing a computer to function as each unit in the coding device described in any one of Supplementary Item 1 to 3.

[0088] Although the present embodiment has been described above, the present invention is not limited to such a specific embodiment, and various modifications and changes are possible within the scope of the gist of the present invention described in the claims. [References] [1] CLIP (https: / / arxiv.org / abs / 2103.00020, https: / / openai.com / blog / clip / ) [2] Siqi Sun, Yen-Chun Chen, Linjie Li, Shuohang Wang, Yuwei Fang, and Liu, Jingjing, "LightningDOT: Pre-training Visual-Semantic Embeddings for Real-Time Image-Text [3] He, K., Zhang, X., Ren, S., and Sun, J. Deep residual learning for image recognition. In Proceedings of the IEEE conference on computer vision and pattern recognition, pp. 770-778, 2016. [4] Dosovitskiy, A., Beyer, L., Kolesnikov, A., Weissenborn, D., Zhai, X., Unterthiner, T., Dehghani, M., Minderer, M., Heigold, G., Gelly, S., et al. An image is worth 16x16 words: Transformers for image recognition at scale. arXiv preprint arXiv:2010.11929, 2020. [5] Vaswani, A., Shazeer, N., Parmar, N., Uszkoreit, J., Jones, L., Gomez, A. N., Kaiser, L., and Polosukhin, I. Attention is all you need. In Advances in neural information processing systems, pp. 5998-6008, 2017. [6]Xiaohua Zhai, Xiao Wang, Basil Mustafa, Andreas Steiner, Daniel Keysers, Alexander Kolesnikov, Lucas Beyer, LiT: Zero-Shot Transfer with Locked-image text Tuning Proceedings of the IEEE / CVF Conference on Computer Vision and Pattern Recognition (CVPR), 2022, pp. 18123-18133 (https: / / arxiv.org / abs / 2111.07991) [7]Jacob Devlin, Ming-Wei Chang, Kenton Lee, Kristina Toutanova,BERT: Pre-training of Deep Bidirectional Transformers for Language Understanding (https: / / arxiv.org / abs / 1810.04805v2) [8]Rupesh Kumar Srivastava, Klaus Greff, Jurgen Schmidhuber, Highway Networks (https: / / arxiv.org / abs / 1505.00387) [9]Flamingo: a Visual Language Model for Few-Shot Learning (https: / / www.deepmind.com / blog / tackling-multiple-tasks-with-a-single-visual-language-model)

[10] Neil Houlsby, Andrei Giurgiu, Stanislaw Jastrzebski, Bruna Morrone, Quentin de Laroussilhe, Andrea Gesmundo, Mona Attariyan, Sylvain Gelly, Parameter-Efficient Transfer Learning for NLP (https: / / arxiv.org / abs / 1902.00751)

[11] Thomee, B., Shamma, DA, Friedland, G., Elizalde, B., Ni, K., Poland, D., Borth, D., and Li, L.-J. Yfcc100m: The new data in multimedia research. Communications of the ACM, 59(2):64-73, 2016.

[0089] 10 Encoding unit 11 Input unit 12 Attention mechanism 13 Feature conversion unit 14 Information selection unit 100 Search device 110 Context encoding unit 111 Context input unit 112 Context attention mechanism 113 Context feature conversion unit 114 Context information selection unit 120 Image encoding unit 121 Image input unit 122 Image attention mechanism 123 Image feature conversion unit 124 Image information selection unit 130 Encoding unit 140 Ranking unit 150 Trained model DB 160 Image feature DB 200 Learning device 210 Update unit 220 Training model DB 230 Learning unit 1000 Drive device 1001 Recording medium 1002 Auxiliary storage device 1003 Memory device 1004 CPU 1005 Interface device 1006 Display device 1007 Input device 1008 Output device

Claims

1. A coding device that extracts features from information using a neural network model, comprising: a context coding unit and an image coding unit, wherein the context coding unit comprises: a context attention mechanism and context feature conversion unit that are pre-trained models; and a context information selection unit having a GAU module, and wherein the image coding unit comprises: an image attention mechanism and image feature conversion unit that are pre-trained models; and an image information selection unit having a GAU module.

2. The encoding device according to claim 1, wherein parameters of the normalization layers in each of the context encoding unit and the image encoding unit are parameters that are updated by learning that is not the pre-learning.

3. The encoding device according to claim 1, further comprising an update unit that updates parameters of the context information selection unit and the image information selection unit using features obtained by the context encoding unit and the image encoding unit based on learning data.

4. A learning method executed by an encoding device that extracts features from information using a neural network model, the encoding device comprising: a context encoding unit and an image encoding unit, the context encoding unit comprising a pre-trained model of a context attention mechanism and a context feature conversion unit, and a context information selection unit having a GAU module, the image encoding unit comprising a pre-trained model of an image attention mechanism and an image feature conversion unit, and an image information selection unit having a GAU module, the learning method comprising: updating parameters of the context information selection unit and the image information selection unit using features obtained by the context encoding unit and the image encoding unit based on learning data.

5. A program for causing a computer to function as each unit in the encoding device according to any one of claims 1 to 3.

Citation Information

Patent Citations

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

    JP2022180942A

  • Machine learning image search

    US20210089571A1

  • Output method, output program, and output device

    WO2021095212A1