Data alignment processing method and device for multi-modal fusion

Through the use of contrastive learning and feature alignment modules, high-dimensional features of text and images are extracted and associated, which solves the problem of insufficient data alignment in the existing technology and achieves more efficient multi-modal feature fusion.

CN118761027AInactive Publication Date: 2024-10-11BEIJING ZHONGKE RUITU TECH CO LTD

Patent Information

Application Number
CN202410901937.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-05
Publication Date
2024-10-11
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

Existing text-visual data feature alignment methods cannot effectively project data from different modalities into the same high-dimensional space, resulting in insufficient data alignment.

Method used

The image encoder and text encoder are used to extract high-dimensional features, and comparative learning is performed through the feature alignment module. Feature association and correction are performed based on cosine similarity calculation and contrastive learning loss to generate target images and target texts to achieve text and image features. Alignment.

Benefits of technology

In the mutual generation of image and text, samples with high similarity are generated, which improves the adequacy of multi-modal feature fusion and promotes data alignment.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118761027A_ABST
    Figure CN118761027A_ABST
Patent Text Reader

Abstract

The embodiment of the invention provides a data alignment processing method and device for multi-modal fusion, and the method comprises the steps: collecting image data, and determining text data corresponding to the image data; image high-dimensional features of the image data are determined through an image encoder, and text high-dimensional features of the text data are determined through a text encoder; inputting the text high-dimensional features and the image high-dimensional features into a feature alignment module, and determining text alignment features and image alignment features; and inputting the image alignment features into a text decoder, inputting the text alignment features into an image encoder, carrying out feature correction on the decoder, and generating a target image and a target text, so that in mutual generation of the image and the text, data alignment of two modals can be promoted by generating samples with high similarity, and the accuracy of the image and the text is improved. And the full degree of multi-modal feature fusion is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of this specification relate to the field of machine learning technology, and in particular to a data alignment processing method for multimodal fusion. Background Art

[0002] With the rapid development of artificial intelligence technology, its application scenarios are constantly expanding, and the problems it faces are becoming more and more complex. In previous studies, text processing and image processing were two relatively independent fields. However, with the increasing demand for artificial intelligence and the continuous development of neural network technology, it has become a trend to use multimodal technology fusion technology to handle more complex tasks. In multimodal fusion, data feature alignment is a key problem that needs to be solved. Text modality and visual modality are the two most common and important modalities. Aligning the data features of text data and visual data is very important for realizing text-visual modality fusion. The current text-visual data feature alignment method is to encode the text data and image data separately by using two encoders, and then align the extracted features.

[0003] The current two-encoder method only considers the feature similarity in the encoding process and cannot project data of different modalities into the same high-dimensional space. However, in the mutual generation of image and text, generating samples with high similarity can also promote the alignment of data of the two modalities. In the generation process, the decoder features will also have a positive impact on data alignment.

[0004] Therefore, a better solution is urgently needed. Summary of the invention

[0005] In view of this, the embodiments of this specification provide a data alignment processing method for multimodal fusion. One or more embodiments of this specification also relate to a data alignment processing device for multimodal fusion, a computing device, a computer-readable storage medium and a computer program to solve the technical defects existing in the prior art.

[0006] According to a first aspect of an embodiment of this specification, a data alignment processing method for multimodal fusion is provided, comprising:

[0007] Collect image data and determine text data corresponding to the image data;

[0008] Passing the image data through an image encoder to determine the image high-dimensional features, and passing the text data through a text encoder to determine the text high-dimensional features;

[0009] Inputting the text high-dimensional features and the image high-dimensional features into a feature alignment module to determine the text alignment features and the image alignment features;

[0010] The image alignment features are input into the text decoder, and the text alignment features are input into the image encoder, and the decoder is feature modified to generate the target image and target text.

[0011] In a possible implementation, the high-dimensional features are input into a feature alignment module to determine the alignment features, including:

[0012] Based on the contrastive learning method, similarity calculation is performed on the high-dimensional features of the image and the high-dimensional features of the text to determine the similarity result;

[0013] Based on the similarity results, the image high-dimensional features and the text high-dimensional features are associated to determine the alignment features.

[0014] In a possible implementation, similarity calculation is performed on the image high-dimensional features and the text high-dimensional features based on a contrastive learning method to determine a similarity result, including:

[0015] Determine the similarity between the image high-dimensional features and the text high-dimensional features based on the cosine similarity calculation rule;

[0016] A similarity result is determined based on the plurality of similarities.

[0017] In a possible implementation, the image high-dimensional features and the text high-dimensional features are associated based on the similarity results to determine the alignment features, including:

[0018] Determine the contrastive learning loss based on the similarity results;

[0019] Based on contrastive learning loss, the high-dimensional features of the image and the high-dimensional features of the text are associated to determine the alignment features.

[0020] In a possible implementation, the method further includes:

[0021] The image generation loss is calculated by the target image and the image data, and the text generation loss is calculated by the generated target text and the original text;

[0022] Calculate the overall loss through image generation loss, text generation loss and contrastive learning loss;

[0023] The overall loss is minimized to align text and image features.

[0024] In a possible implementation, the alignment feature is input into the decoder, and the encoder performs feature correction on the decoder, including:

[0025] The aligned features corresponding to the image encoder are decoded by the text decoder, and the corresponding features in the text encoder and the text decoder are fused to correct the features of the text decoder;

[0026] The alignment features corresponding to the text encoder are decoded by the image decoder, and the corresponding features in the image encoder and the image decoder are fused to perform feature correction on the image decoder.

[0027] In a possible implementation, the cosine similarity calculation rule includes:

[0028]

[0029] Among them, Ti is the feature of each text data in the batch, and Ii is the feature of each image data in the batch.

[0030] According to a second aspect of an embodiment of this specification, a data alignment processing device for multimodal fusion is provided, comprising:

[0031] A data acquisition module is configured to acquire image data and determine text data corresponding to the image data;

[0032] A feature determination module is configured to determine image high-dimensional features by passing the image data through an image encoder, and determine text high-dimensional features by passing the text data through a text encoder;

[0033] A feature alignment module is configured to input the text high-dimensional features and the image high-dimensional features into the feature alignment module to determine text alignment features and image alignment features;

[0034] The data generation module is configured to input the image alignment features into the text decoder and the text alignment features into the image encoder, perform feature correction on the decoder, and generate the target image and target text.

[0035] According to a third aspect of an embodiment of this specification, a computing device is provided, including:

[0036] Memory and processor;

[0037] The memory is used to store computer executable instructions, and the processor is used to execute the computer executable instructions. When the computer executable instructions are executed by the processor, the steps of the above-mentioned data alignment processing method for multimodal fusion are implemented.

[0038] According to a fourth aspect of the embodiments of this specification, a computer-readable storage medium is provided, which stores computer-executable instructions, and when the instructions are executed by a processor, the steps of the above-mentioned data alignment processing method for multimodal fusion are implemented.

[0039] According to a fifth aspect of the embodiments of this specification, a computer program is provided, wherein when the computer program is executed in a computer, the computer is caused to execute the steps of the above-mentioned data alignment processing method for multimodal fusion.

[0040] The embodiments of the present specification provide a data alignment processing method and device for multimodal fusion, wherein the method includes: collecting image data and determining text data corresponding to the image data; determining image high-dimensional features of the image data through an image encoder, and determining text high-dimensional features of the text data through a text encoder; inputting the text high-dimensional features and the image high-dimensional features into a feature alignment module to determine text alignment features and image alignment features; inputting the image alignment features into a text decoder, and inputting the text alignment features into an image encoder, performing feature correction on the decoder, and generating a target image and a target text. This can achieve that in the mutual generation of image and text, generating samples with high similarity can also promote data alignment of the two modalities, thereby improving the degree of adequacy of multimodal feature fusion. BRIEF DESCRIPTION OF THE DRAWINGS

[0041] Figure 1 is a flow chart of a data alignment processing method for multimodal fusion provided by an embodiment of this specification;

[0042] Figure 2 It is a schematic diagram of a model structure of a data alignment processing method for multimodal fusion provided by an embodiment of this specification;

[0043] Figure 3 It is a schematic diagram of a graph feature alignment module of a data alignment processing method for multimodal fusion provided by an embodiment of this specification;

[0044] Figure 4 It is a structural schematic diagram of a data alignment processing device for multimodal fusion provided by an embodiment of this specification;

[0045] Figure 5 It is a structural block diagram of a computing device provided by an embodiment of this specification. DETAILED DESCRIPTION

[0046] Many specific details are described in the following description to facilitate a full understanding of this specification. However, this specification can be implemented in many other ways than those described herein, and those skilled in the art can make similar generalizations without violating the connotation of this specification, so this specification is not limited to the specific implementation disclosed below.

[0047] The terms used in one or more embodiments of this specification are only for the purpose of describing specific embodiments, and are not intended to limit one or more embodiments of this specification. The singular forms of "a" and "the" used in one or more embodiments of this specification and the appended claims are also intended to include plural forms, unless the context clearly indicates other meanings. It should also be understood that the term "and / or" used in one or more embodiments of this specification refers to and includes any or all possible combinations of one or more associated listed items.

[0048] It should be understood that although the terms first, second, etc. may be used to describe various information in one or more embodiments of this specification, this information should not be limited to these terms. These terms are only used to distinguish the same type of information from each other. For example, without departing from the scope of one or more embodiments of this specification, the first may also be referred to as the second, and similarly, the second may also be referred to as the first. Depending on the context, the word "if" as used herein may be interpreted as "at the time of" or "when" or "in response to determining".

[0049] First, the terms involved in one or more embodiments of this specification are explained.

[0050] Transformer: A deep learning model architecture.

[0051] In this specification, a data alignment processing method for multimodal fusion is provided. This specification also relates to a data alignment processing device for multimodal fusion, a computing device, and a computer-readable storage medium, which are described in detail one by one in the following embodiments.

[0052] See also Figure 1 , Figure 1 A flowchart of a data alignment processing method for multimodal fusion provided according to an embodiment of the present specification is shown, which specifically includes the following steps.

[0053] Step 101: Collect image data and determine text data corresponding to the image data.

[0054] In practical applications, RGB images are collected through RGB cameras, and text descriptions are given to the collected images to construct the meaning correspondence between images and texts, thereby constructing an image-text dataset.

[0055] Step 102: The image data is passed through an image encoder to determine image high-dimensional features, and the text data is passed through a text encoder to determine text high-dimensional features.

[0056] In practical applications, in order to implement this solution, a text-image data alignment model based on Transformer and contrastive learning is designed. The overall structure of the model is as follows Figure 2 As shown in the figure, the model is divided into two branches. The first branch is the image-to-text branch, which includes an image encoder based on Swin-Transformer and a text decoder, used to generate text data from image data; the second branch is the text-to-image branch, which includes a text encoder based on Transformer and an image decoder, used to generate image data from text data. The feature alignment module is located between the two branches.

[0057] Specifically, based on the above model structure, the image data is subjected to an image encoder to extract high-dimensional features of the image, and the text data is subjected to a text encoder to extract high-dimensional features of the text data.

[0058] Step 103: Input the text high-dimensional features and the image high-dimensional features into a feature alignment module to determine text alignment features and image alignment features.

[0059] In a possible implementation, high-dimensional features are input into a feature alignment module to determine alignment features, including: calculating similarity between image high-dimensional features and text high-dimensional features based on a contrastive learning method to determine similarity results; and associating image high-dimensional features with text high-dimensional features based on the similarity results to determine alignment features.

[0060] In practical applications, the obtained high-dimensional image features and high-dimensional text features are sent to the feature alignment module, and the similarity of the image features and text features is calculated using the contrastive learning method, thereby performing feature alignment.

[0061] In a possible implementation, similarity calculation is performed on image high-dimensional features and text high-dimensional features based on a contrastive learning method to determine a similarity result, including: determining the similarity of image high-dimensional features and text high-dimensional features based on a cosine similarity calculation rule; and determining the similarity result based on multiple similarities.

[0062] Specifically, the cosine similarity calculation rules include:

[0063]

[0064] Among them, Ti is the feature of each text data in the batch, and Ii is the feature of each image data in the batch.

[0065] Specifically, Figure 3 Where N is the batch size during training, T i is the feature of each text data in the batch, I iFor the features of each image data in the batch, contrastive learning calculates the cosine similarity between each two features to represent the similarity between the two features. By minimizing the value on the diagonal and maximizing the value at other positions, the learned image features and text features have a higher similarity, so that the image data and text data generated in the graph decoder and text decoder have a higher similarity. The feature cosine similarity calculation formula is:

[0066]

[0067] The cosine similarity matrix of text features and image features is:

[0068]

[0069] In a possible implementation, the image high-dimensional features and the text high-dimensional features are associated based on the similarity results to determine the alignment features, including: determining the contrastive learning loss based on the similarity results; and associating the image high-dimensional features and the text high-dimensional features based on the contrastive learning loss to determine the alignment features.

[0070] The contrastive learning loss is:

[0071] loss TI =cross entropy (logits,labels_l),dim=0

[0072] loss IT =cross entropy (logits,labels_l),dim=1

[0073] loss l =(loss T +loss I ) / 2

[0074] Among them, loss TI and loss IT They are the cross entropy loss of text features to image features and the cross entropy loss of image features to text features respectively. labels_l is the label of contrastive learning. If the batch size is N, the label is 0 to N-1.

[0075] In a possible implementation, the method further includes: calculating an image generation loss through the target image and the image data, and calculating a text generation loss through the generated target text and the original text; calculating an overall loss through the image generation loss, the text generation loss and the contrastive learning loss; and minimizing the overall loss to achieve alignment of text and image features.

[0076] In practical applications, the cost function of the model back propagation contains three parts, namely the loss of generating text, the loss of generating images, and the loss of similarity calculation. The model weights are continuously updated and iterated through the three cost functions, so that the image features and text features are projected into a unified feature space. Figure 3 shown.

[0077] The overall loss is:

[0078] loss=loss l +loss T +loss I

[0079] Among them, loss T Generate loss for text, loss I For image generation loss, by considering text generation loss, image generation loss and contrast loss, the similarity between the extracted text features and image features is further improved, and the ability of data alignment is improved.

[0080] Step 104: input the image alignment features into the text decoder, and input the text alignment features into the image encoder, perform feature correction on the decoder, and generate a target image and a target text.

[0081] In one possible implementation, the decoder includes an image decoder and a text decoder; accordingly, the alignment features are input into the decoder, and the encoder performs feature correction on the decoder, including: decoding the alignment features corresponding to the image encoder through the text decoder, and fusing the corresponding features in the text encoder and the text decoder to correct the features of the text decoder; decoding the alignment features corresponding to the text encoder through the image decoder, and fusing the corresponding features in the image encoder and the image decoder to correct the features of the image decoder.

[0082] In practical applications, high-dimensional image features generate text data through a text decoder. When generating text data, the text encoder will perform feature correction on the text decoder to improve the accuracy of the generated text data. At the same time, high-dimensional text features generate image data through an image decoder. Similarly, when generating image data, the image encoder will perform feature correction on the image decoder to improve the accuracy of the generated image data.

[0083] The embodiments of the present specification provide a data alignment processing method and device for multimodal fusion, wherein the method includes: collecting image data and determining text data corresponding to the image data; determining image high-dimensional features of the image data through an image encoder, and determining text high-dimensional features of the text data through a text encoder; inputting the text high-dimensional features and the image high-dimensional features into a feature alignment module to determine text alignment features and image alignment features; inputting the image alignment features into a text decoder, and inputting the text alignment features into an image encoder, performing feature correction on the decoder, and generating a target image and a target text. This can achieve that in the mutual generation of image and text, generating samples with high similarity can also promote data alignment of the two modalities, thereby improving the degree of adequacy of multimodal feature fusion.

[0084] Corresponding to the above method embodiment, this specification also provides a data alignment processing device embodiment for multimodal fusion, Figure 4 FIG. 1 shows a schematic diagram of a data alignment processing device for multimodal fusion provided by an embodiment of the present specification. Figure 4 As shown, the device comprises:

[0085] The data acquisition module 401 is configured to acquire image data and determine text data corresponding to the image data;

[0086] The feature determination module 402 is configured to determine the image high-dimensional features of the image data through an image encoder, and determine the text high-dimensional features of the text data through a text encoder;

[0087] The feature alignment module 403 is configured to input the text high-dimensional features and the image high-dimensional features into a feature alignment module to determine text alignment features and image alignment features;

[0088] The data generation module 404 is configured to input the image alignment feature into a text decoder, and input the text alignment feature into an image encoder, perform feature correction on the decoder, and generate a target image and a target text.

[0089] In a possible implementation, the feature determination module 402 is further configured to:

[0090] The encoder includes an image encoder and a text encoder; the high-dimensional features include image high-dimensional features and text high-dimensional features;

[0091] Accordingly, the image data and text data are passed through the encoder to determine the high-dimensional features, including:

[0092] Input the image data into the image encoder to determine the high-dimensional features of the image;

[0093] The text data is input into the text encoder to determine the high-dimensional features of the text.

[0094] In a possible implementation, the feature alignment module 403 is further configured to:

[0095] Based on the contrastive learning method, similarity calculation is performed on the high-dimensional features of the image and the high-dimensional features of the text to determine the similarity result;

[0096] Based on the similarity results, the image high-dimensional features and the text high-dimensional features are associated to determine the alignment features.

[0097] In a possible implementation, the feature alignment module 403 is further configured to:

[0098] Determine the similarity between the image high-dimensional features and the text high-dimensional features based on the cosine similarity calculation rule;

[0099] A similarity result is determined based on the plurality of similarities.

[0100] In a possible implementation, the feature alignment module 403 is further configured to:

[0101] Determine the contrastive learning loss based on the similarity results;

[0102] Based on contrastive learning loss, the high-dimensional features of the image and the high-dimensional features of the text are associated to determine the alignment features.

[0103] In a possible implementation, the feature alignment module 403 is further configured to:

[0104] The image generation loss is calculated by the target image and the image data, and the text generation loss is calculated by the generated target text and the original text;

[0105] Calculate the overall loss through image generation loss, text generation loss and contrastive learning loss;

[0106] The overall loss is minimized to align text and image features.

[0107] In a possible implementation, the data generation module 404 is further configured to:

[0108] The decoder includes an image decoder and a text decoder;

[0109] Accordingly, the alignment features are input into the decoder, and the encoder performs feature correction on the decoder, including:

[0110] The aligned features corresponding to the image encoder are decoded by the text decoder, and the corresponding features in the text encoder and the text decoder are fused to correct the features of the text decoder;

[0111] The alignment features corresponding to the text encoder are decoded by the image decoder, and the corresponding features in the image encoder and the image decoder are fused to perform feature correction on the image decoder.

[0112] In a possible implementation, the feature alignment module 403 is further configured to:

[0113] Cosine similarity calculation rules include:

[0114]

[0115] Among them, Ti is the feature of each text data in the batch, and Ii is the feature of each image data in the batch.

[0116] The embodiments of the present specification provide a data alignment processing method and device for multimodal fusion, wherein the device includes: collecting image data and determining text data corresponding to the image data; determining image high-dimensional features of the image data through an image encoder, and determining text high-dimensional features of the text data through a text encoder; inputting the text high-dimensional features and the image high-dimensional features into a feature alignment module to determine text alignment features and image alignment features; inputting the image alignment features into a text decoder, and inputting the text alignment features into an image encoder, performing feature correction on the decoder, and generating a target image and a target text. This can achieve that in the mutual generation of image and text, generating samples with high similarity can also promote data alignment of the two modalities, thereby improving the degree of adequacy of multimodal feature fusion.

[0117] The above is a schematic scheme of a data alignment processing device for multimodal fusion of this embodiment. It should be noted that the technical scheme of the data alignment processing device for multimodal fusion and the technical scheme of the data alignment processing method for multimodal fusion mentioned above belong to the same concept, and the details of the technical scheme of the data alignment processing device for multimodal fusion that are not described in detail can all be referred to the description of the technical scheme of the data alignment processing method for multimodal fusion mentioned above.

[0118] Figure 5 The structure block diagram of a computing device 500 provided according to an embodiment of the present specification is shown. The components of the computing device 500 include but are not limited to a memory 510 and a processor 520. The processor 520 is connected to the memory 510 via a bus 530, and the database 550 is used to store data.

[0119] The computing device 500 also includes an access device 540 that enables the computing device 500 to communicate via one or more networks 560. Examples of these networks include a public switched telephone network (PSTN), a local area network (LAN), a wide area network (WAN), a personal area network (PAN), or a combination of communication networks such as the Internet. The access device 540 may include one or more of any type of network interface (e.g., a network interface card (NIC)) that is wired or wireless, such as an IEEE 802.11 wireless local area network (WLAN) wireless interface, a world-wide interoperability for microwave access (Wi-MAX) interface, an Ethernet interface, a universal serial bus (USB) interface, a cellular network interface, a Bluetooth interface, and a near field communication (NFC).

[0120] In one embodiment of the present specification, the above components of the computing device 500 and Figure 5 Other components not shown in the figure may also be connected to each other, for example, via a bus. It should be understood that Figure 5 The computing device structure block diagram shown is only for the purpose of illustration, and is not intended to limit the scope of this specification. Those skilled in the art can add or replace other components as needed.

[0121] The computing device 500 may be any type of stationary or mobile computing device, including a mobile computer or mobile computing device (e.g., a tablet computer, a personal digital assistant, a laptop computer, a notebook computer, a netbook, etc.), a mobile phone (e.g., a smart phone), a wearable computing device (e.g., a smart watch, smart glasses, etc.), or other types of mobile devices, or a stationary computing device such as a desktop computer or a personal computer (PC). The computing device 500 may also be a mobile or stationary server.

[0122] Among them, the processor 520 is used to execute the following computer executable instructions, which, when executed by the processor, implement the steps of the above-mentioned data alignment processing method for multimodal fusion. The above is a schematic scheme of a computing device of this embodiment. It should be noted that the technical scheme of the computing device and the technical scheme of the above-mentioned data alignment processing method for multimodal fusion belong to the same concept, and the details not described in detail in the technical scheme of the computing device can be found in the description of the technical scheme of the above-mentioned data alignment processing method for multimodal fusion.

[0123] An embodiment of the present specification further provides a computer-readable storage medium storing computer-executable instructions, which, when executed by a processor, implement the steps of the above-mentioned data alignment processing method for multimodal fusion.

[0124] The above is a schematic scheme of a computer-readable storage medium of this embodiment. It should be noted that the technical scheme of the storage medium and the technical scheme of the data alignment processing method for multimodal fusion described above belong to the same concept, and the details not described in detail in the technical scheme of the storage medium can be referred to the description of the technical scheme of the data alignment processing method for multimodal fusion described above.

[0125] An embodiment of the present specification further provides a computer program, wherein when the computer program is executed in a computer, the computer is caused to execute the steps of the above-mentioned data alignment processing method for multimodal fusion.

[0126] The above is a schematic scheme of a computer program of this embodiment. It should be noted that the technical scheme of the computer program and the technical scheme of the data alignment processing method for multimodal fusion described above belong to the same concept, and the details not described in detail in the technical scheme of the computer program can be found in the description of the technical scheme of the data alignment processing method for multimodal fusion described above.

[0127] The above is a description of a specific embodiment of the specification. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps recorded in the claims can be performed in an order different from that in the embodiments and still achieve the desired results. In addition, the processes depicted in the drawings do not necessarily require the specific order or continuous order shown to achieve the desired results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.

[0128] The computer instructions include computer program codes, which may be in source code form, object code form, executable files or some intermediate forms, etc. The computer-readable medium may include: any entity or device capable of carrying the computer program code, recording medium, USB flash drive, mobile hard disk, magnetic disk, optical disk, computer memory, read-only memory (ROM), random access memory (RAM), electric carrier signal, telecommunication signal and software distribution medium, etc. It should be noted that the content contained in the computer-readable medium may be appropriately increased or decreased according to the requirements of legislation and patent practice in the jurisdiction. For example, in some jurisdictions, according to legislation and patent practice, computer-readable media do not include electric carrier signals and telecommunication signals.

[0129] It should be noted that, for the above-mentioned method embodiments, for the sake of simplicity of description, they are all expressed as a series of action combinations, but those skilled in the art should be aware that the embodiments of this specification are not limited by the order of the actions described, because according to the embodiments of this specification, some steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required by the embodiments of this specification.

[0130] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.

[0131] The preferred embodiments of this specification disclosed above are only used to help explain this specification. The optional embodiments do not describe all the details in detail, nor do they limit the invention to only the specific implementation methods described. Obviously, many modifications and changes can be made according to the content of the embodiments of this specification. This specification selects and specifically describes these embodiments in order to better explain the principles and practical applications of the embodiments of this specification, so that technicians in the relevant technical field can well understand and use this specification. This specification is only limited by the claims and their full scope and equivalents.

Claims

1. A data alignment processing method for multimodal fusion, characterized in that: include: Collecting image data, and determining text data corresponding to the image data; Passing the image data through an image encoder to determine image high-dimensional features, and passing the text data through a text encoder to determine text high-dimensional features; Inputting the text high-dimensional features and the image high-dimensional features into a feature alignment module to determine text alignment features and image alignment features; The image alignment feature is input into a text decoder, and the text alignment feature is input into an image encoder, and feature correction is performed on the decoder to generate a target image and a target text.

2. The method according to claim 1, characterized in that The step of inputting the high-dimensional features into a feature alignment module to determine alignment features includes: Performing similarity calculation on the image high-dimensional features and the text high-dimensional features based on a contrastive learning method to determine a similarity result; The image high-dimensional features and the text high-dimensional features are associated based on the similarity results to determine alignment features.

3. The method according to claim 2, characterized in that The method of performing similarity calculation on the image high-dimensional features and the text high-dimensional features based on the contrastive learning method to determine the similarity result includes: Determine the similarity between the image high-dimensional feature and the text high-dimensional feature based on a cosine similarity calculation rule; A similarity result is determined based on a plurality of the similarities.

4. The method according to claim 1, characterized in that: The step of associating the image high-dimensional features with the text high-dimensional features based on the similarity result to determine the alignment features includes: determining a contrastive learning loss based on the similarity results; The image high-dimensional features and the text high-dimensional features are associated based on the contrastive learning loss to determine alignment features.

5. The method according to claim 4, characterized in that Also includes: Calculate the image generation loss by using the target image and the image data, and calculate the text generation loss by using the generated target text and the original text; Calculate the overall loss by using the image generation loss, the text generation loss and the contrastive learning loss; The overall loss is minimized to achieve alignment of text and image features.

6. The method according to claim 1, characterized in that The step of inputting the alignment feature into the decoder, and the encoder performing feature correction on the decoder, comprises: Decoding the alignment features corresponding to the image encoder through the text decoder, fusing the features in the text encoder and the features in the text decoder corresponding to the alignment features, so as to correct the features of the text decoder; The alignment features corresponding to the text encoder are decoded by the image decoder, and the corresponding features in the image encoder and the image decoder are fused to perform feature correction of the image decoder.

7. The method according to claim 3, characterized in that The cosine similarity calculation rule includes: Among them, Ti is the feature of each text data in the batch, and Ii is the feature of each image data in the batch.

8. A data alignment processing device for multimodal fusion, characterized in that: include: A data acquisition module is configured to acquire image data and determine text data corresponding to the image data; A feature determination module is configured to determine image high-dimensional features of the image data through an image encoder, and determine text high-dimensional features of the text data through a text encoder; A feature alignment module is configured to input the text high-dimensional features and the image high-dimensional features into the feature alignment module to determine text alignment features and image alignment features; The data generation module is configured to input the image alignment feature into a text decoder and input the text alignment feature into an image encoder, perform feature correction on the decoder, and generate a target image and a target text.

9. A computing device, characterized in that include: Memory and processor; The memory is used to store computer-executable instructions, and the processor is used to execute the computer-executable instructions. When the computer-executable instructions are executed by the processor, the steps of the data alignment processing method for multimodal fusion described in any one of claims 1 to 7 are implemented.

10. A computer-readable storage medium storing computer-executable instructions, which, when executed by a processor, implement the steps of the data alignment processing method for multimodal fusion as described in any one of claims 1 to 7.

Citation Information

Patent Citations

  • Model training method and device and computer equipment

    CN111444731A

  • Training method and device for displaying object recognition model and electronic equipment

    CN115100472A

  • Living body detection method and device, electronic equipment and storage medium

    CN116704620A

  • Pixel-level OCR unified multi-task system and method

    CN117558010A

  • Image report generation method and model training method

    CN118072898A

Cited By

  • High-performance sentiment analysis method and device based on multi-modal data alignment and medium

    CN120162622A

  • Image processing method and device based on artificial intelligence, computer equipment and medium

    CN120765490A

  • Artificial intelligence-based image processing methods, devices, computer equipment, and media

    CN120765490B

  • Chip end face crack detection method, system and equipment based on multi-mode large model fine tuning and medium

    CN121563948A

  • Data enhancement method and apparatus based on multimodal language alignment

    WO2026097850A1