Training methods, apparatus, and electronic devices for multimodal large-scale models

The proposed training method for multimodal large-scale models addresses the challenge of separate modality training by coordinating codec networks and a backbone network, enhancing feature extraction and task applicability.

JP7957600B2Active Publication Date: 2026-11-27BEIJING BAIDU NETCOM SCI & TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
JP2025031574
Authority / Receiving Office
JP · JP
Patent Type
Patents
Current Assignee / Owner
Priority Date
2024-09-27
Filing Date
2025-02-28
Publication Date
2026-11-27
Estimated Expiration
2045-02-28

AI Technical Summary

Technical Problem

Existing multimodal large models, such as video generation models, require separate training of encoding networks for different modalities, increasing the difficulty and cost of model training.

Method used

A training method for a multimodal large-scale model that involves acquiring first and second training data, using an initial model with a backbone network and codec networks, performing coordinated training on the codec networks and a multimodal word list, and then training the backbone network based on multimodal sample data.

Benefits of technology

This method reduces the difficulty and cost of training by using a unified training process for multiple modalities, improving the accuracy and efficiency of feature extraction and model application across various tasks.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 0007957600000001
    Figure 0007957600000001
  • Figure 0007957600000002
    Figure 0007957600000002
  • Figure 0007957600000003
    Figure 0007957600000003
Patent Text Reader

Abstract

To reduce the difficulty of model training and the cost of model training.SOLUTION: A method includes the steps of: acquiring first training data and second training data; acquiring an initial multi-modal large model; causing a backbone network and multiple codec networks corresponding to multiple non-text modalities included in the multi-modal large model to perform coding and decoding processing on the basis of the same multi-modal word list; performing joint training processing on the multiple codec networks and the multi-modal word list on the basis of the data in the multiple non-text modalities in the first training data; performing training processing on the backbone network on the basis of multi-modal sample reference data and sample generation data under the target task in the second training data; and causing the multiple codec networks to perform the coding and decoding processing on the basis of the same multi-modal word list.SELECTED DRAWING: Figure 1
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present disclosure relates to the field of artificial intelligence technologies, in particular to the technical fields of deep learning, natural language processing, computer vision, speech technology, large models, etc., and specifically to a training method and apparatus for a multimodal large model, and an electronic device. BACKGROUND ART

[0002] Existing multimodal large models such as video generation models include an encoding network, a backbone network and a decoding network, where the encoding network includes three types: an encoding network for video modality, an encoding network for text modality, and an encoding network for audio modality.

[0003] In the above video generation model, the encoding networks for different modalities are obtained by using word lists of different modalities and performing separate training using data of different modalities. In the training process of the video generation model, the word lists of different modalities need to be separately trained and processed, which increases the difficulty and cost of model training. SUMMARY OF THE INVENTION

[0004] The present disclosure provides a training method and apparatus for a multimodal large model, and an electronic device.

[0005] According to one aspect of the present disclosure, a method for training a multimodal large-scale model is provided, the method comprising the steps of: acquiring first training data and second training data, the first training data comprising data in a plurality of non-text modalities, and the second training data comprising multimodal sample reference data and sample generation data for a target task; acquiring an initial multimodal large-scale model, the multimodal large-scale model comprising a backbone network and a plurality of codec networks corresponding to a plurality of non-text modalities, wherein the plurality of codec networks perform encoding and decoding processing based on the same multimodal word list; performing coordinated training processing on the plurality of codec networks and the multimodal word list based on data in a plurality of non-text modalities; and, once the training of the plurality of codec networks and the multimodal word list is complete, training the backbone network based on multimodal sample reference data and sample generation data for the target task.

[0006] Another aspect of the present disclosure provides a method for processing a target task, the method comprising: acquiring a target task including data in at least two modalities; acquiring a multimodal large-scale model obtained based on the multimodal large-scale model training method described above; and inputting the data in the at least two modalities into the multimodal large-scale model and acquiring generated data output from the multimodal large-scale model.

[0007] According to another aspect of the present disclosure, a training apparatus for a multimodal large-scale model is provided, the apparatus comprising: a first acquisition module for acquiring first training data and second training data, wherein the first training data includes data in a plurality of non-text modalities, and the second training data includes multimodal sample reference data and sample generation data for a target task; a second acquisition module for acquiring an initial multimodal large-scale model, wherein the multimodal large-scale model includes a backbone network and a plurality of codec networks corresponding to a plurality of non-text modalities, and the plurality of codec networks perform encoding and decoding processing based on the same multimodal word list; a first training processing module for performing coordinated training processing on the plurality of codec networks and the multimodal word list based on data in a plurality of non-text modalities; and a second training processing module for training the backbone network based on multimodal sample reference data and sample generation data for the target task once the training of the plurality of codec networks and the multimodal word list is complete.

[0008] According to another aspect of the present disclosure, a target task processing device is provided, the device including a first acquisition module for acquiring a target task including data in at least two modalities; a second acquisition module for acquiring a multimodal large-scale model obtained based on the multimodal large-scale model training method described above; and a third acquisition module for inputting the data in the at least two modalities into the multimodal large-scale model and acquiring generated data output from the multimodal large-scale model.

[0009] According to another aspect of the present disclosure, an electronic device is provided comprising at least one processor and a memory communicably connected to the at least one processor, wherein the memory stores instructions executable by the at least one processor, and the execution of the instructions by the at least one processor causes the at least one processor to execute the above-mentioned multimodal large-scale model training method or the above-mentioned target task processing method of the present disclosure.

[0010] According to another aspect of the present disclosure, a non-temporary, computer-readable storage medium is provided in which computer instructions are stored, causing the computer to execute the above-mentioned multimodal large-scale model training method or the above-mentioned target task processing method of the present disclosure.

[0011] According to another aspect of the present disclosure, a computer program is provided, and when the computer program is executed by a processor, the above-mentioned method for training a multimodal large-scale model or the above-mentioned method for processing a target task is realized.

[0012] The information described in this section is not intended to identify any essential or important features of the embodiments of this disclosure, nor is it intended to limit the scope of this disclosure. Other features of this disclosure are better understood from the following specification. [Brief explanation of the drawing]

[0013] The drawings are provided to better understand this solution and do not limit the scope of this disclosure. [Figure 1] This is a schematic diagram of the first embodiment relating to this disclosure. [Figure 2] This is a schematic diagram of the second embodiment relating to this disclosure. [Figure 3] This is a schematic diagram of the third embodiment relating to this disclosure. [Figure 4]This is a schematic diagram of training multiple codec networks in a multimodal large-scale model. [Figure 5] This is a schematic diagram of the fourth embodiment relating to this disclosure. [Figure 6] This is a schematic diagram of the fifth embodiment relating to this disclosure. [Figure 7] This is a schematic diagram of the sixth embodiment relating to this disclosure. [Figure 8] This is a block diagram of an electronic device for realizing a training method for a multimodal large-scale model or a method for processing a target task according to an embodiment of the present disclosure. [Modes for carrying out the invention]

[0014] The following description, in conjunction with the drawings, includes various details of the embodiments of this disclosure to facilitate understanding; however, these should be considered merely illustrative. Therefore, those skilled in the art should be aware that various changes and modifications can be made to the embodiments described, without departing from the scope and spirit of this application. Similarly, for clarity and conciseness, well-known functions and structures are omitted in the following description.

[0015] Current multimodal large-scale models, such as video generation models, include coding networks, backbone networks, and decoding networks, where the coding network consists of three types: coding networks for video modalities, coding networks for text modalities, and coding networks for audio modalities.

[0016] In the video generation model described above, encoding networks for different modalities are obtained by using word lists for different modalities and training them separately with data for different modalities. During the training process of the video generation model, it is necessary to train word lists for different modalities separately, which increases the difficulty and cost of model training.

[0017] In response to the above problems, the present disclosure proposes a training method and apparatus for a multimodal large-scale model, and an electronic device.

[0018] Figure 1 is a schematic diagram of a first embodiment according to the present disclosure. It should be noted that the training method for a multimodal large-scale model according to the embodiment of the present disclosure can be applied to a training apparatus for a multimodal large-scale model, and the apparatus may be configured in an electronic device so that the electronic device can execute the training function of the multimodal large-scale model. In the following embodiments, an example in which the execution subject is an electronic device will be described.

[0019] Here, the electronic device may be any device with computing functions, such as a personal computer (abbreviated as PC), a mobile terminal, a server, etc. The mobile terminal may be a hardware device equipped with various operating systems, touch screens and / or displays, such as an in-vehicle device, a mobile phone, a tablet, a personal digital assistant, a wearable device, etc.

[0020] Here, the training apparatus for a multimodal large-scale model may be software in an electronic device, for example, training software for a multimodal large-scale model. In the following embodiments, an example in which the training apparatus for a multimodal large-scale model is an electronic device will be described.

[0021] As shown in Figure 1, the training method for this multimodal large-scale model may include the following steps.

[0022] In step 101, first training data and second training data are acquired, the first training data includes data in a plurality of non-text modalities, and the second training data includes multimodal sample reference data and sample generation data in a target task.

[0023] In an embodiment of the present disclosure, the non-text modality includes at least one of an audio modality, a silent video modality, and an image modality. Accordingly, the data in the non-text modality is, for example, audio, silent video, image, or the like. Here, for an audio-visual video, it can be divided into data in two non-text modalities. For example, the audio-visual video may be divided into data in an audio modality and data in a video modality.

[0024] Here, the setting of various non-text modalities enables the multimodal large model to flexibly process data in different text modalities, expands application scenarios of the multimodal large model, and improves processing efficiency of the multimodal large model.

[0025] In an embodiment of the present disclosure, the target task may include at least one of an image generation task, a video generation task, an audio generation task, a text generation task, and a multimodal understanding task.

[0026] Here, the multimodal sample reference data in the multiple target tasks may include, for example, sample reference data in at least one of a text modality, an image modality, a video modality, and an audio modality. Here, the multimodal understanding task refers to a task of performing understanding processing on input multimodal data and outputting understood text. Here, during the understanding processing, the input multimodal data may include sample reference data in at least one of a text modality, an image modality, a video modality, and an audio modality.

[0027] Here, by setting up multimodal sample reference data and sample generation data for various target tasks, the multimodal large-scale model is trained based on the training data, resulting in a model that can be applied to different target tasks. This expands the application scenarios of the multimodal large-scale model and further improves the processing efficiency of the multimodal large-scale model.

[0028] In step 102, an initial multimodal large-scale model is obtained, which includes a backbone network and multiple codec networks corresponding to multiple non-text modalities, and the multiple codec networks perform encoding and decoding based on the same multimodal word list.

[0029] In embodiments of this disclosure, there may be multiple codec networks, for example, including a one-dimensional codec network, a two-dimensional codec network, and a three-dimensional codec network. Here, taking as an example that non-text modalities include audio modality, silent video modality, and image modality, the codec network corresponding to the audio modality may be a one-dimensional codec network, the codec network corresponding to the image modality may be a two-dimensional codec network, and the codec network corresponding to the video modality may be a three-dimensional codec network.

[0030] Here, multiple codec networks use the same multimodal word list. Here, the multimodal word list may contain multiple integer identifiers and vectors corresponding to each integer identifier. Here, a single vector in the multimodal word list can simultaneously represent an image, audio, and video. That is, a single vector in the multimodal word list may be a vector of an image block in an image, or a vector of an audio segment in audio, or a vector of a video block in video.

[0031] Here, by using different codec network processing for data in different non-text modalities, it is possible to extract as many features as possible from the data in the non-text modalities and improve the accuracy of the extracted features.

[0032] In embodiments of the present disclosure, processing an image in an image modality based on an encoding network in a two-dimensional codec network, using a two-dimensional codec network as an example, includes inputting an image into the encoding network in the two-dimensional codec network to obtain two-dimensional image features, transforming the two-dimensional image features into one-dimensional features to obtain a transformed one-dimensional feature vector, and mapping features in the one-dimensional feature vector based on a multimodal word list to obtain an integer sequence corresponding to the image.

[0033] Here, taking a one-dimensional codec network as an example, processing audio in an audio modality based on the coding network in a one-dimensional codec network involves inputting the audio into the coding network in the one-dimensional codec network to obtain one-dimensional audio features, where the one-dimensional audio features are one-dimensional feature vectors, and mapping the features in the one-dimensional feature vectors based on a multimodal word list to obtain integer sequences corresponding to the audio.

[0034] Here, using a 3D codec network as an example, processing video in a video modality based on the encoding network in a 3D codec network includes inputting the video into the encoding network in the 3D codec network to obtain 3D video features, transforming the 3D video features into a 1D form to obtain a transformed 1D feature vector, and mapping the features in the 1D feature vector based on a multimodal word list to obtain an integer sequence corresponding to the video.

[0035] Here, the coding network in each dimensional codec network encodes the data and then performs a one-dimensional transformation on the features obtained by encoding. This allows for the acquisition of one-dimensional feature vectors for data from multiple modalities, enabling feature mapping using the same multimodal word list, facilitating interaction between features from multiple modalities, and further improving the accuracy of feature extraction by the coding network in each dimensional codec network.

[0036] In step 103, collaborative training is performed on multiple codec networks and multimodal word lists based on data from multiple non-text modalities.

[0037] In embodiments of this disclosure, the electronic device can determine the total loss function value of multiple codec networks based on data in multiple non-text modalities and multiple codec networks, and then simultaneously adjust the parameters of the multiple codec networks and the multimodal word list based on the total loss function value to achieve coordinated training.

[0038] In step 104, once the training of multiple codec networks and multimodal word lists is complete, the backbone network is trained based on the multimodal sample reference data and sample generation data for the target task.

[0039] In the embodiments of this disclosure, the backbone network may be, for example, an autoregressive model. An autoregressive model is a time-sequence analysis model that predicts the future value of a variable by adding a random error term to a linear combination of the past values ​​of the variable.

[0040] Here, the electronic device can determine an integer sequence or combination of integer sequences corresponding to the prediction-generated data based on multimodal sample reference data, multiple coding networks corresponding to multiple non-text modalities, and a backbone network, determine the modality to which the sample-generated data belongs, determine an integer sequence or combination of integer sequences corresponding to the sample-generated data based on the sample-generated data and the coding network in the codec network corresponding to the modality to which it belongs, determine the loss function value based on the integer sequence or combination of integer sequences corresponding to the prediction-generated data and the integer sequence or combination of integer sequences corresponding to the sample-generated data, and further adjust the parameters of the backbone network to achieve training.

[0041] In the training method for a multimodal large-scale model according to the embodiment of this disclosure, first training data and second training data are acquired, the first training data includes data from multiple non-text modalities, and the second training data includes multimodal sample reference data and sample generation data from a target task. An initial multimodal large-scale model is acquired, the multimodal large-scale model includes a backbone network and multiple codec networks corresponding to multiple non-text modalities, the multiple codec networks perform encoding and decoding based on the same multimodal word list, and collaborative training is performed on the multiple codec networks and multimodal word list based on data from multiple non-text modalities. Once the training of the multiple codec networks and multimodal word list is complete, the backbone network is trained based on multimodal sample reference data and sample generation data from a target task. Here, the multiple codec networks perform encoding and decoding and collaborative training based on the same multimodal word list, thus avoiding the separate training of word lists for different modalities during the training process, thereby reducing the difficulty and cost of model training.

[0042] Here, in order to further improve the training speed of multiple codec networks that support multiple non-text modalities, the loss function values ​​of each of the multiple codec networks can be determined based on data from multiple non-text modalities, and then the multiple loss function values ​​can be summed up to adjust the multiple codec networks and the multimodal word list. As shown in Figure 2, Figure 2 is a schematic diagram of a second embodiment according to the present disclosure. The embodiment shown in Figure 2 may include the following steps.

[0043] In step 201, first training data and second training data are acquired. The first training data includes data from multiple non-text modalities, and the second training data includes multimodal sample reference data and sample generation data for the target task.

[0044] In step 202, an initial multimodal large-scale model is obtained, which includes a backbone network and multiple codec networks corresponding to multiple non-text modalities, and the multiple codec networks perform encoding and decoding based on the same multimodal word list.

[0045] In step 203, the loss function values ​​of the multiple codec networks corresponding to multiple non-text modalities are determined based on the data from multiple non-text modalities and the multiple codec networks corresponding to multiple non-text modalities.

[0046] In embodiments of the present disclosure, the electronic device may, for example, determine predicted data corresponding to a plurality of data based on data in a plurality of non-text modalities and a plurality of codec networks corresponding to the plurality of non-text modalities; for each non-text modality, determine a truth / false determination result based on data in the non-text modality, predicted data corresponding to the data, and a discriminant network in the codec network corresponding to the non-text modality; and determine the loss function value of the codec network corresponding to the non-text modality based on the truth / false determination result, the difference between the data and the predicted data, and the characteristic difference between the data and the predicted data.

[0047] In embodiments of this disclosure, if there are no at least two related candidate data among the data in multiple non-text modalities, the process by which the electronic device determines predictive data corresponding to the multiple data may be, for example, to sequentially input the data in each non-text modality into the codec network corresponding to the non-text modality to obtain predictive data corresponding to the data in the non-text modality.

[0048] Specifically, for each non-text modality, the codec network corresponding to this non-text modality may include an encoding network and a decoding network. Based on the data and encoding network in this non-text modality, the electronic device can determine an integer sequence corresponding to this data, and based on the integer sequence and the decoding network, it can determine predicted data corresponding to this data.

[0049] Specifically, the electronic device inputs data in this non-text modality into this coding network, obtains the output data features, and if the data features are a multidimensional feature vector, it can transform the data features into a one-dimensional form to obtain a one-dimensional feature vector, and then maps the features in the one-dimensional feature vector based on a multimodal word list to obtain an integer sequence corresponding to this data.

[0050] Specifically, the electronic device can determine predictive data features corresponding to this data based on a multimodal word list and an integer sequence corresponding to this data, and then input these predictive data features into a decoding network to obtain predictive data corresponding to this data output from the decoding network.

[0051] Here, the combination of at least two related candidate data can include audio-video. By setting up audio-video and images with audio, the multimodal large-scale model can extract interaction features between at least two modalities and improve the accuracy of the extracted features.

[0052] In this case, if there are no at least two related candidate data points among the data from multiple non-text modalities, then there is no relationship between the data from multiple non-text modalities. This means that the data from multiple non-text modalities can be processed individually to obtain predictive data, thereby enabling parallel processing of the data from multiple non-text modalities and improving data processing efficiency.

[0053] In embodiments of this disclosure, if there are at least two related candidate data in a plurality of non-text modalities, the electronic device inputs the at least two candidate data into an encoding network in a codec network corresponding to the modality to which each candidate data belongs to obtain data features corresponding to each of the at least two candidate data, deforms the at least two data features in one dimension and adds them bit by bit to obtain a processed one-dimensional feature vector, maps the features in the processed one-dimensional feature vector based on a multimodal word list to obtain a processed integer sequence, and determines prediction data corresponding to the at least two candidate data based on the processed integer sequence and a decoding network in a codec network corresponding to the modality to which the at least two candidate data belong.

[0054] Specifically, the electronic device can determine predictive data features based on a multimodal word list and a processed integer sequence, and input these predictive data features into decoding networks in codec networks corresponding to the modalities to which at least two candidate data belong, thereby obtaining predictive data corresponding to at least two candidate data.

[0055] Here, by bitwise adding the data features corresponding to at least two related candidate data, and then performing feature mapping based on a multimodal word list, we can realize the interaction of features between at least two candidate data, avoid fragmentation between the at least two candidate data, and further improve the training efficiency of the codec network.

[0056] Here, multiple codec networks supporting multiple non-text modalities may further include a discriminative network. The discriminative network determines the truth value of the predicted data corresponding to the data in the non-text modalities. Here, the truth value determination result is either that the predicted data is true or that the predicted data is false. Based on the truth value determination result, the difference in truth value between the data and the predicted data can be determined.

[0057] Here, the difference between the data and the predicted data can be determined based on the similarity between the data and the predicted data. Here, the characteristic difference between the data and the predicted data may be at least one of the following, and can be set according to the actual requirements: the difference between the target information in the data and the target information in the predicted data, the difference between the descriptive content of the data and the descriptive content of the predicted data, and the difference between the Fourier transform result of the data and the Fourier transform result of the predicted data.

[0058] Here, by determining the loss function value of the codec network corresponding to the non-text modality based on the differences between the data and the predicted data in multiple aspects, the accuracy of the determined loss function value can be further improved, and the training accuracy of multiple codec networks can be further improved.

[0059] In step 204, the multiple codec networks and multimodal word lists are adjusted based on the loss function values ​​of multiple codec networks corresponding to multiple non-text modalities to achieve coordinated training.

[0060] In embodiments of this disclosure, the process by which an electronic device performs step 204 may, for example, involve adding up the loss function values ​​of multiple codec networks corresponding to multiple non-text modalities to obtain a total loss function value, adjusting the parameters of the multiple codec networks based on the total loss function value, and adjusting the vectors corresponding to integer identifiers in a multimodal word list to achieve cooperative training.

[0061] Here, by adjusting the parameters of multiple codec networks based on the total loss function value, and by adjusting the vectors corresponding to integer identifiers in the multimodal word list, the vectors corresponding to integer identifiers in the multimodal word list can be made to embody features in multiple non-text modalities, thereby further improving the accuracy of the trained codec network.

[0062] In step 205, once the training of multiple codec networks and multimodal word lists is complete, the backbone network is trained based on the multimodal sample reference data and sample generation data for the target task.

[0063] Here, details of steps 201 to 202 and step 205 can be found in steps 101 to 102 and step 104 of the embodiment shown in Figure 1, and a detailed explanation is omitted here.

[0064] In the training method for a multimodal large-scale model according to the embodiment of this disclosure, first training data and second training data are acquired, the first training data includes data in multiple non-text modalities, the second training data includes multimodal sample reference data and sample generation data for the target task, an initial multimodal large-scale model is acquired, the multimodal large-scale model includes a backbone network and multiple codec networks corresponding to multiple non-text modalities, the multiple codec networks perform encoding and decoding processing based on the same multimodal word list, and based on the data in multiple non-text modalities and the multiple codec networks corresponding to multiple non-text modalities, the multiple codec networks corresponding to multiple non-text modalities By determining the loss function value of the codec network and adjusting the multiple codec networks and multimodal word lists based on the loss function values ​​of the multiple codec networks corresponding to multiple non-text modalities, coordinated training is achieved. Once the training of the multiple codec networks and multimodal word lists is complete, the backbone network is trained based on the multimodal sample reference data and sample generation data for the target task. Here, the loss function value of each of the multiple codec networks is determined, and the multiple loss function values ​​are further summed up to adjust the multiple codec networks and multimodal word lists, thereby further improving the training speed and training accuracy of the multiple codec networks corresponding to multiple non-text modalities.

[0065] Here, in order to further improve the training accuracy of the backbone network, the electronic device can determine the prediction generation data and the loss function value of the backbone network based on multimodal sample reference data, multiple codec networks corresponding to multiple non-text modalities, and the backbone network, and then perform adjustment processing. As shown in Figure 3, Figure 3 is a schematic diagram of a third embodiment according to the present disclosure. The embodiment shown in Figure 3 may include the following steps.

[0066] In step 301, first training data and second training data are acquired. The first training data includes data from multiple non-text modalities, and the second training data includes multimodal sample reference data and sample generation data for the target task.

[0067] In step 302, an initial multimodal large-scale model is obtained, which includes a backbone network and multiple codec networks corresponding to multiple non-text modalities, and the multiple codec networks perform encoding and decoding based on the same multimodal word list.

[0068] In step 303, collaborative training is performed on multiple codec networks and multimodal word lists based on data from multiple non-text modalities.

[0069] In step 304, predictive generation data is determined based on multimodal sample reference data, multiple codec networks supporting multiple non-text modalities, and a backbone network.

[0070] In embodiments of this disclosure, the multimodal sample reference data may include data in at least two modalities, including audio modality, silent video modality, image modality, and text modality, and the sample generation data may include data in at least one modality, including audio modality, silent video modality, image modality, and text modality.

[0071] Here, the flexible configuration of data from various modalities within the multimodal sample reference data and sample generation data allows the trained multimodal large-scale model to be applied to a wide variety of target tasks, thereby expanding the application scenarios of the multimodal large-scale model.

[0072] In embodiments of the present disclosure, the process by which an electronic device performs step 304 may involve, for example, determining a multimodal integer sequence combination based on multimodal sample reference data and coding networks in multiple codec networks corresponding to multiple non-text modalities, distinguishing integer sequences in different modalities within the multimodal integer sequence combination with modality markers, inputting the multimodal integer sequence combination into a backbone network to obtain a predicted integer sequence or predicted integer sequence combination output from the backbone network, and inputting the predicted integer sequence in the predicted integer sequence or predicted integer sequence combination into a decoding network in a codec network corresponding to the modality to which it belongs to, in order to obtain predicted generated data.

[0073] Here, the multimodal sample reference data may include sample reference data from multiple candidate non-text modalities and sample text data from text modalities. Accordingly, the process for determining the electronic device multimodal integer sequence combination may, for example, determine the integer sequence in each candidate non-text modality based on the sample reference data in that candidate non-text modality and the coding network in the codec network corresponding to that candidate non-text modality, and then, according to the modality marker, splice the integer sequences corresponding to the integer sequences and sample text data from multiple candidate non-text modalities to obtain the multimodal integer sequence combination.

[0074] Here, the electronic device can set a text word list for the text, and the text word list contains integer identifiers and corresponding words. The electronic device can perform word segmentation on the sample text data to obtain multiple words, search the text word list based on the multiple words to obtain integer identifiers corresponding to the multiple words, and then combine the integer identifiers to obtain an integer sequence corresponding to the sample text data.

[0075] Here, if the target task is an image generation task, video generation task, audio generation task, or text generation task, the predicted generated data output from the multimodal large-scale model is data from a single modality. Accordingly, the backbone network can output a predicted integer sequence. If the target task is a multi-output task, such as a graphics generation task or an audio-video generation task, the predicted generated data output from the multimodal large-scale model is data from multiple modalities. Accordingly, the backbone network can output a combination of predicted integer sequences.

[0076] Here, modality markers can be set for the predicted integer sequences output from the backbone network. Modality markers can be set for each predicted integer sequence in the combination of predicted integer sequences output from the backbone network. Based on the modality markers, a decoding network corresponding to the non-text modality for decoding the predicted integer sequences can be determined, and the target decoding process can be performed.

[0077] Here, modality markers for integer sequences in multiple candidate non-text modalities and word sequences corresponding to sample text data allow the backbone network to distinguish between integer sequences of different modalities and perform training, further improving the training speed and accuracy of the backbone network.

[0078] In embodiments of this disclosure, if the multimodal sample reference data contains sample reference data in at least two related candidate non-text modalities, for example, if the multimodal sample reference data includes audio-video data, the electronic device can determine the data features of the sample reference data in these at least two candidate non-text modalities based on the coding network in the codec network of multiple modalities, and if the data features are multidimensional feature vectors, it can transform the data features into a one-dimensional form to obtain a one-dimensional feature vector, add the at least two one-dimensional feature vectors bit by bit to obtain a processed one-dimensional feature vector, map the features in the processed one-dimensional feature vector based on a multimodal word list to obtain an integer sequence, and perform combined modality marker processing on the integer sequence. Here, the combined modality marker is, for example, an audio-video marker.

[0079] In embodiments of the present disclosure, if the sample generation data contains sample generation data for at least two related candidate non-text modalities, the backbone network may output a combination of predictive integer sequences. In such cases, it may generate an integer sequence for one combination modality for the at least two related candidate non-text modalities, which may be input to a decoding network in a codec network corresponding to the at least two candidate non-text modalities to obtain predictive generation data for the at least two candidate non-text modalities.

[0080] Here, the generation process of integer sequences of combinatorial modalities enables the multimodal large-scale model to achieve synchronous generation of predictive data for at least two candidate non-textual modalities.

[0081] In step 305, the loss function value of the backbone network is determined based on the sample-generated data and the prediction-generated data.

[0082] In embodiments of this disclosure, an electronic device can determine the loss function value of a backbone network based on sample generation data, predictive generation data, and the loss function of a multimodal large-scale model.

[0083] In step 306, the parameters of the backbone network are adjusted based on the loss function value to perform training.

[0084] Here, for details of steps 301 to 303, please refer to steps 101 to 103 in the embodiment shown in Figure 1, and a detailed explanation will be omitted here.

[0085] In the training method for a multimodal large-scale model according to the embodiment of this disclosure, first training data and second training data are acquired, the first training data includes data in multiple non-text modalities, and the second training data includes multimodal sample reference data and sample generation data for the target task, an initial multimodal large-scale model is acquired, the multimodal large-scale model includes a backbone network and multiple codec networks corresponding to multiple non-text modalities, the multiple codec networks perform encoding and decoding processing based on the same multimodal word list, and a coordinated training process is performed on the multiple codec networks and the multimodal word list based on data in multiple non-text modalities. The process involves determining prediction-generated data based on multimodal sample reference data, multiple codec networks supporting multiple non-text modalities, and a backbone network, determining the loss function value of the backbone network based on the sample-generated data and prediction-generated data, and then adjusting the parameters of the backbone network based on the loss function value to perform training. Here, by determining prediction-generated data based on multimodal sample reference data, multiple codec networks supporting multiple non-text modalities, and a backbone network, and further determining the loss function value of the backbone network and performing adjustment processing, the training speed and training accuracy of the backbone network can be improved.

[0086] The following example illustrates this. As shown in Figure 4, this is a schematic diagram of training multiple codec networks in a multimodal large-scale model. Figure 4 may include the following steps: In step 401, audio is input to the encoding network in an audio 1D-CNN (codec network corresponding to the audio modality) to obtain the output audio features, video is input to the encoding network in a 3D-CNN (codec network corresponding to the video modality) to obtain the output video features, and image is input to the encoding network in a 2D-CNN (codec network corresponding to the image modality) to obtain the output image features. In step 402, the image features and video features are transformed one-dimensionally, respectively, to obtain one-dimensional feature vectors corresponding to the image and one-dimensional feature vectors corresponding to the video. When the audio is the sound corresponding to the video, that is, when audio and video are combined to obtain audio-video, the audio features (one-dimensional feature vectors) corresponding to the audio and the one-dimensional feature vectors corresponding to the video are summed (bit by bit) to obtain the processed one-dimensional feature vectors. In step 403, the one-dimensional feature vector corresponding to the image and the processed one-dimensional feature vector are mapped based on the codebook (multimodal word list) to obtain an integer sequence corresponding to the image and a processed integer sequence, which can then be used as an integer sequence corresponding to audio and an integer sequence corresponding to video, respectively. In step 404, based on the integer sequence corresponding to audio, the integer sequence corresponding to image, the integer sequence corresponding to video, the decoding network for 1D-CNN, the decoding network for 2D-CNN, and the decoding network for 3D-CNN, the predicted audio, predicted image, and predicted video for the coordinated training process of 1D-CNN, 2D-CNN, and 3D-CNN are determined and obtained.

[0087] Figure 5 is a schematic diagram of a fourth embodiment according to this disclosure. The target task processing method according to the embodiment of this disclosure is applicable to a target task processing device, and this device may be configured as an electronic device so that the electronic device can perform the target task processing function. In the following embodiments, the description will be based on the example that the executing entity is an electronic device.

[0088] Here, the electronic device may be any device equipped with computing capabilities, such as a personal computer (PC), a mobile terminal, or a server. The mobile terminal may be a hardware device equipped with various operating systems, touchscreens, and / or displays, such as an in-car device, a mobile phone, a tablet, a personal digital assistant, or a wearable device.

[0089] Here, the processing unit for the target task may be software on an electronic device, for example, processing software for the target task. In the following embodiment, the processing unit for the target task is described as an electronic device.

[0090] As shown in Figure 5, the method for processing this target task may include the following steps.

[0091] In step 501, obtain the target task, which includes data from at least two modalities.

[0092] In embodiments of this disclosure, the target task may include at least one of the following: an image generation task, a video generation task, an audio generation task, a text generation task, and a multimodality understanding task. Here, the data in at least two modalities included in the target task is the data necessary to perform the target task.

[0093] Here, assuming the target task is an image generation task, we can assume that the image generation task performs image generation processing based on images and text. Accordingly, the image generation task may include data in the image modality and data in the text modality. As an example, assuming the target task is a video generation task, we can assume that the video generation task performs video generation processing based on images and audio. Accordingly, the video generation task may include data in the image modality and data in the audio modality.

[0094] Here, by setting multiple target tasks, the multimodal large-scale model can process data from multiple target tasks, expanding the task application scenarios for the multimodal large-scale model.

[0095] In step 502, a multimodal large-scale model is obtained based on the training method for the multimodal large-scale model in any of the embodiments shown in Figures 1 to 3.

[0096] In embodiments of this disclosure, a multimodal large-scale model includes a backbone network and multiple codec networks corresponding to multiple non-text modalities, wherein the multiple codec networks perform encoding and decoding based on the same multimodal word list.

[0097] Here, there may be multiple codec networks, for example, including a one-dimensional codec network, a two-dimensional codec network, and a three-dimensional codec network. The one-dimensional codec network corresponds to the audio modality, the two-dimensional codec network corresponds to the image modality, and the three-dimensional codec network corresponds to the video modality.

[0098] In step 503, data from at least two modalities is input into the multimodal large-scale model, and the generated data output from the multimodal large-scale model is obtained.

[0099] In embodiments of this disclosure, taking as an example that at least two modalities are an image modality, an audio modality, a video modality, and a text modality, the process by which the electronic device performs step 503 may involve, for example, inputting an image in the image modality into a two-dimensional codec network to determine an integer sequence corresponding to the image, inputting audio in the audio modality into a one-dimensional codec network to determine an integer sequence corresponding to the audio, inputting video in the video modality into a three-dimensional codec network to determine an integer sequence corresponding to the video, performing word segmentation on the text in the text modality, determining and obtaining an integer sequence corresponding to the text based on integer identifiers corresponding to multiple words in the text word list, performing modality marker and splicing processing on the integer sequence corresponding to the image, the integer sequence corresponding to the audio, the integer sequence corresponding to the video, and the integer sequence corresponding to the text to obtain a combination of integer sequences after processing, inputting the combination of integer sequences after processing into a backbone network to obtain a predicted integer sequence or combination of integer sequences output from the backbone network, and determining generated data based on the predicted integer sequence or combination of integer sequences and the decoding network in the multiple codec networks.

[0100] In embodiments of this disclosure, there may be relationships between data in at least two modalities in a target task. Assume the target task includes data in an audio modality, data in a video modality, and data in an image modality, where there is a relationship between the data in the audio modality and the data in the video modality. The electronic device inputs the data in the audio modality into an encoding network in a codec network corresponding to the audio modality to obtain the output audio data features, where the audio data features are one-dimensional feature vectors; inputs the data in the video modality into an encoding network in a codec network corresponding to the video modality to obtain the output video data features; transforms the video data features one-dimensionally to obtain a one-dimensional feature vector; adds the two one-dimensional feature vectors bit by bit; and performs feature mapping based on a multimodal word list to obtain an integer sequence; and can perform combinational modality marker processing, i.e., audio-video marker processing, on this integer sequence.

[0101] In embodiments of this disclosure, if the target task is to generate data in at least two related non-text modalities, and the backbone network outputs a combination of predictive integer sequences, it may generate an integer sequence of one combination modality for at least two related candidate non-text modalities. This integer sequence may be input to the decoding networks in the codec networks corresponding to the at least two candidate non-text modalities, respectively, to obtain predictive generated data for at least two candidate non-text modalities. This enables synchronous generation of predictive generated data for at least two related non-text modalities.

[0102] In the method for processing a target task according to the embodiments of this disclosure, a target task including data from at least two modalities is acquired, a multimodal large-scale model obtained based on the training method for the multimodal large-scale model in any of the embodiments in Figures 1 to 3 is acquired, data from at least two modalities is input to the multimodal large-scale model, and generated data output from the multimodal large-scale model is acquired. Here, multiple codec networks in the multimodal large-scale model perform encoding and decoding processing based on the same multimodal word list, thereby achieving unified modeling of data from multiple modalities and improving the accuracy of the generated data obtained.

[0103] To realize the above embodiments, the present disclosure further provides a training device for multimodal large-scale models. As shown in Figure 6, Figure 6 is a schematic diagram of a fifth embodiment according to the present disclosure. This training device 60 for multimodal large-scale models may include a first acquisition module 601, a second acquisition module 602, a first training processing module 603, and a second training processing module 604.

[0104] Here, the first acquisition module 601 acquires first training data and second training data, the first training data includes data from multiple non-text modalities, the second training data includes multimodal sample reference data and sample generation data for the target task, the second acquisition module 602 acquires an initial multimodal large-scale model, the multimodal large-scale model includes a backbone network and multiple codec networks corresponding to multiple non-text modalities, the multiple codec networks perform encoding and decoding processing based on the same multimodal word list, the first training processing module 603 performs coordinated training processing on the multiple codec networks and the multimodal word list based on data from multiple non-text modalities, and the second training processing module 604, once training of the multiple codec networks and the multimodal word list is complete, trains the backbone network based on multimodal sample reference data and sample generation data for the target task.

[0105] In one possible embodiment of the embodiments of this disclosure, the first training processing module 603 includes a first decision unit and a first adjustment processing unit, wherein the first decision unit determines the loss function values ​​of the multiple codec networks corresponding to the multiple non-text modalities based on data in the multiple non-text modalities and the multiple codec networks corresponding to the multiple non-text modalities, and the first adjustment processing unit adjusts the multiple codec networks and the multimodal word list based on the loss function values ​​of the multiple codec networks corresponding to the multiple non-text modalities to realize cooperative training.

[0106] In one possible embodiment of the embodiments of the present disclosure, the first decision unit comprises a first decision subunit, a second decision subunit, and a third decision subunit, wherein the first decision subunit determines predicted data corresponding to a plurality of data based on data in a plurality of non-text modalities and a plurality of codec networks corresponding to the plurality of non-text modalities; the second decision subunit determines a truth / false determination result for each non-text modality based on data in the non-text modality, predicted data corresponding to the data, and a discriminant network in the codec network corresponding to the non-text modality; and the third decision subunit determines a loss function value for the codec network corresponding to the non-text modality based on the truth / false determination result, the difference between the data and the predicted data, and characteristic differences between the data and the predicted data.

[0107] In one possible embodiment of the embodiments of this disclosure, the first decision subunit specifically determines whether there are at least two related candidate data in the data of a plurality of non-text modalities, and if the at least two candidate data belong to different modalities and there are no at least two candidate data in the data of a plurality of non-text modalities, it sequentially inputs the data of each non-text modality into the codec network corresponding to the non-text modality to obtain prediction data corresponding to the data of the non-text modality.

[0108] As one possible implementation of an embodiment of the present disclosure, if the first decision subunit has at least two of the candidate data in a plurality of non-text modalities, it inputs the at least two of the candidate data into an encoding network in a codec network corresponding to the modality to which each of them belongs to obtain data features corresponding to the at least two of the candidate data, deforms the at least two of the data features in a one-dimensional manner and adds them bit by bit to obtain a processed one-dimensional feature vector, maps the features in the processed one-dimensional feature vector based on the multimodal word list to obtain a processed integer sequence, and determines prediction data corresponding to the at least two of the candidate data based on the processed integer sequence and a decoding network in a codec network corresponding to the modality to which the at least two of the candidate data belong.

[0109] As one possible implementation of the embodiments of this disclosure, the first adjustment processing unit specifically performs an addition process of the loss function values ​​of multiple codec networks corresponding to multiple non-text modalities to obtain a total loss function value, adjusts the parameters of the multiple codec networks based on the total loss function value, and adjusts the vectors corresponding to integer identifiers in the multimodal word list to realize collaborative training.

[0110] As one possible implementation of an embodiment of the present disclosure, the non-text modality includes at least one of an audio modality, a silent video modality, and an image modality, wherein the codec network corresponding to the audio modality is a one-dimensional codec network, the codec network corresponding to the silent video modality is a three-dimensional codec network, and the codec network corresponding to the image modality is a two-dimensional codec network.

[0111] As one possible implementation of the embodiments of the present disclosure, processing an image modality based on the coding network in the two-dimensional codec network includes inputting the image into the coding network in the two-dimensional codec network to obtain two-dimensional image features, transforming the two-dimensional image features in one dimension to obtain a transformed one-dimensional feature vector, and mapping the features in the one-dimensional feature vector based on the multimodal word list to obtain an integer sequence corresponding to the image.

[0112] As one possible embodiment of the embodiments of this disclosure, the combination of at least two related candidate data includes audio and video.

[0113] In one possible implementation of the embodiments of the present disclosure, the second training processing module 604 includes a second decision unit, a third decision unit, and a second adjustment processing unit, wherein the second decision unit determines predictive generation data based on the multimodal sample reference data, a plurality of codec networks corresponding to a plurality of non-text modalities, and the backbone network; the third decision unit determines the loss function value of the backbone network based on the sample generation data and the predictive generation data; and the second adjustment processing unit adjusts the parameters of the backbone network based on the loss function value to achieve training.

[0114] In one possible implementation of the embodiments of the present disclosure, the second decision unit specifically determines a multimodal integer sequence combination based on the multimodal sample reference data and coding networks in multiple codec networks corresponding to multiple non-text modalities, in which integer sequences in different modalities are distinguished by modality markers, the multimodal integer sequence combination is input to the backbone network to obtain a predicted integer sequence or predicted integer sequence combination output from the backbone network, and the predicted integer sequence in the predicted integer sequence or predicted integer sequence combination is input to the decoding network in the codec network corresponding to the modality to which it belongs to obtain the predicted generation data.

[0115] In one possible implementation of an embodiment of the present disclosure, the multimodal sample reference data includes sample reference data for a plurality of candidate non-text modalities and sample text data for a text modality, and the second decision unit further determines an integer sequence for each candidate non-text modality based on the sample reference data for the candidate non-text modality and the coding network in the codec network corresponding to the candidate non-text modality, and splices the integer sequences for the plurality of candidate non-text modalities and the integer sequences corresponding to the sample text data according to the modality marker to obtain the multimodal integer sequence combination.

[0116] In one possible embodiment of the embodiments of the present disclosure, the multimodal sample reference data includes data in at least two modalities, namely an audio modality, a silent video modality, an image modality, and a text modality, and the sample generation data includes data in at least one modality, namely an audio modality, a silent video modality, an image modality, and a text modality.

[0117] In one possible embodiment of the embodiments of the present disclosure, the target task includes at least one of the following: an image generation task, a video generation task, an audio generation task, a text generation task, and a multimodality understanding task.

[0118] In the training device for a multimodal large-scale model according to the embodiment of this disclosure, first training data and second training data are acquired, the first training data includes data from multiple non-text modalities, and the second training data includes multimodal sample reference data and sample generation data for the target task, an initial multimodal large-scale model is acquired, the multimodal large-scale model includes a backbone network and multiple codec networks corresponding to multiple non-text modalities, the multiple codec networks perform encoding and decoding processing based on the same multimodal word list, coordinated training processing is performed on the multiple codec networks and multimodal word list based on data from multiple non-text modalities, and when the training of the multiple codec networks and multimodal word list is completed, the backbone network is trained based on multimodal sample reference data and sample generation data for the target task. Here, by having the multiple codec networks perform encoding and decoding processing and coordinated training processing based on the same multimodal word list, it is possible to avoid separately training word lists of different modalities during the training process, thereby reducing the difficulty and cost of model training.

[0119] To realize the above embodiments, the present disclosure further provides a target task processing apparatus. As shown in Figure 7, Figure 7 is a schematic diagram of a sixth embodiment according to the present disclosure. This target task processing apparatus 70 may include a first acquisition module 701, a second acquisition module 702, and a third acquisition module 703.

[0120] Here, the first acquisition module 701 acquires a target task including data from at least two modalities, the second acquisition module 702 acquires a multimodal large-scale model obtained based on the training method for the multimodal large-scale model in any of the embodiments in Figures 1 to 3, and the third acquisition module 703 inputs the data from the at least two modalities into the multimodal large-scale model and acquires the generated data output from the multimodal large-scale model.

[0121] In one possible embodiment of the embodiments of the present disclosure, the target task includes at least one of the following: an image generation task, a video generation task, an audio generation task, a text generation task, and a multimodality understanding task.

[0122] In the target task processing device according to the embodiment of this disclosure, a target task including data from at least two modalities is acquired, a multimodal large-scale model obtained based on the training method for the multimodal large-scale model in any of the embodiments in Figures 1 to 3 is acquired, data from at least two modalities is input to the multimodal large-scale model, and generated data output from the multimodal large-scale model is acquired. Here, multiple codec networks in the multimodal large-scale model perform encoding and decoding processing based on the same multimodal word list, thereby achieving unified modeling of data from multiple modalities and improving the accuracy of the generated data obtained.

[0123] Furthermore, the proposed technology disclosed herein, including the acquisition, storage, and application of relevant user personal information, complies with the provisions of relevant laws and regulations and does not violate public order and morals.

[0124] According to embodiments of the present disclosure, the present disclosure further provides electronic devices and readable storage media. According to embodiments of the present disclosure, the present disclosure provides a computer program which, when executed by a processor, enables a method for training a multimodal large-scale model or a method for processing a target task proposed by the present disclosure.

[0125] Figure 8 is a schematic block diagram of an exemplary electronic device 800 for performing embodiments of the present disclosure. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device may also represent various forms of mobile devices, such as personal digital processors, mobile phones, smartphones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the description herein and / or the implementation of the present disclosure as requested.

[0126] As shown in Figure 8, the electronic device 800 includes a computing unit 801 that performs various appropriate operations and processes according to computer programs / instructions stored in read-only memory (ROM) 802 or computer programs / instructions loaded from storage unit 806 into random access memory (RAM) 803. RAM 803 may also store various programs and data necessary for the operation of the electronic device 800. The computing unit 801, ROM 802, and RAM 803 are connected to each other via bus 804. An input / output (I / O) interface 805 is also connected to bus 804.

[0127] Multiple components of the electronic device 800 are connected to the I / O interface 805, which includes input units 806 such as a keyboard and mouse, output units 807 such as various types of displays and speakers, storage units 808 such as magnetic disks and optical disks, and communication units 809 such as a network card, modem, and wireless communication transceiver. The communication units 809 enable the electronic device 800 to exchange information / data with other devices via computer networks such as the Internet and / or various telegraph networks.

[0128] The computing unit 801 may be a variety of general-purpose and / or dedicated processing components having processing and computing capabilities. Some examples of the computing unit 801 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various dedicated artificial intelligence (AI) computing chips, various machine driving learning model algorithm computing units, a digital signal processor (DSP), and any suitable processor, controller, microcontroller, etc. The computing unit 801 performs each of the methods and processes described above, for example, a method for training a multimodal large-scale model or a method for processing a target task. For example, in some embodiments, the method for training a multimodal large-scale model or a method for processing a target task may be implemented as a computer software program tangibly contained in a machine-readable medium such as a storage unit 806, and some or all of the computer program / instructions may be loaded and / or installed into the electronic device 800 via ROM 802 and / or communication unit 809. When the computer program / instructions are loaded into RAM 803 and executed by the computing unit 801, one or more steps of the method for training a multimodal large-scale model or a method for processing a target task described in the preceding paragraph may be performed. Alternatively, in other embodiments, the computing unit 801 may be configured by any other suitable method (e.g., via firmware) to perform a method for training a multimodal large-scale model or a method for processing a target task.

[0129] Various embodiments of the systems and technologies described above in this specification can be implemented as digital electronic circuit systems, integrated circuit systems, field-programmable gate arrays (FPGAs), application-specific integrated circuits (ASICs), application-specific standard products (ASSPs), systems-on-chip (SOCs), complex-programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various embodiments may include being implemented by one or more computer programs / instructions, which may be executed and / or interpreted by a programmable system including at least one programmable processor, which may be an application-specific or general-purpose programmable processor, which may receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, at least one input device, and at least one output device.

[0130] Program code for performing the methods of this disclosure can be written in any combination of one or more programming languages. This program code may be provided to a processor or controller of a general-purpose computer, a dedicated computer, or other programmable data processing device, so that when executed by the processor or controller, the functions / operations defined in the flowcharts and / or block diagrams are performed. The program code may run entirely on a machine, partially on a machine, or, as a standalone software package, partially on a machine, partially on a remote machine, or entirely on a remote machine or server.

[0131] In the context of this disclosure, a machine-readable medium may be a tangible medium that contains or can store a program for use by, or in combination with, an instruction execution system, apparatus, or device. A machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination thereof. More specific examples of machine-readable storage media include one or more line-based electrical connections, portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fibers, portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination thereof.

[0132] To provide user interaction, a computer may run the systems and technologies described herein, which may have a display device for displaying information to the user (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) and a keyboard and pointing device (e.g., a mouse or trackball), and the user may provide input to the computer using the keyboard and pointing device. Other types of devices may also provide user interaction, for example, the feedback provided to the user may be any form of sensing feedback (e.g., vision feedback, auditory feedback, or haptic feedback), and may receive input from the user in any form (including acoustic input and voice input or haptic input).

[0133] The systems and technologies described herein can be run on computing systems including backend components (e.g., data servers), computing systems including middleware components (e.g., application servers), computing systems including frontend components (e.g., user computers having a graphical user interface or web browser, through which users can interact with embodiments of the systems and technologies described herein), or any combination of such backend components, middleware components, and frontend components. The components of the system can be interconnected by digital data communication in any form or medium (e.g., communication networks). Examples of communication networks include local area networks (LANs), wide area networks (WANs), the internet, and blockchain networks.

[0134] A computer system can include clients and servers. Clients and servers are generally geographically separated and typically interact via a communication network. The client-server relationship is generated by computer programs / instructions running on corresponding computers that have a client-server relationship with each other. A server may be a cloud server, a server in a distributed system, or a server incorporating blockchain technology.

[0135] It should be understood that the steps can be rearranged, added, or deleted using the various forms of flows shown above. For example, each step described in this disclosure may be performed in parallel, sequentially, or in a different order, as long as the technical invention disclosed herein can achieve the desired results.

[0136] The specific embodiments described above do not limit the scope of protection of this disclosure. Those skilled in the art should understand that various modifications, combinations, subcombinations, and substitutions can be made depending on design requirements and other factors. Any modifications, equivalent substitutions, and improvements made within the spirit and principles of this disclosure must be within the scope of protection of this disclosure.

Claims

1. A training method for multimodal large-scale models, A step of acquiring first training data and second training data, wherein the first training data includes data in multiple non-text modalities, and the second training data includes multimodal sample reference data and sample generation data for the target task. A step of obtaining an initial multimodal large-scale model, wherein the multimodal large-scale model includes a backbone network and multiple codec networks corresponding to multiple non-text modalities, and the multiple codec networks perform encoding and decoding processing based on the same multimodal word list. The steps include performing a coordinated training process on multiple codec networks and multimodal word lists based on data from multiple non-text modalities, When training of the multiple codec networks and the multimodal word list is completed, the backbone network is trained based on the multimodal sample reference data and sample generation data for the target task. Includes, The step of performing coordinated training on multiple codec networks and multimodal word lists based on data from multiple non-text modalities is: The steps include determining the loss function values ​​of multiple codec networks that support multiple non-text modalities based on data from multiple non-text modalities and multiple codec networks that support multiple non-text modalities, and The steps include: adjusting multiple codec networks and the multimodal word list based on the loss function values ​​of multiple codec networks corresponding to multiple non-text modalities to achieve coordinated training; Includes, The step of adjusting the multiple codec networks and the multimodal word list based on the loss function values ​​of the multiple codec networks corresponding to the multiple non-text modalities to achieve coordinated training is as follows: The steps include: adding up the loss function values ​​of multiple codec networks corresponding to multiple non-text modalities to obtain a total loss function value; The steps include: adjusting the parameters of multiple codec networks based on the summation loss function value, and adjusting the vectors corresponding to integer identifiers in the multimodal word list to achieve collaborative training; Training methods for multimodal large-scale models, including...

2. The step of determining the loss function values ​​of the multiple codec networks corresponding to the multiple non-text modalities, based on the data from the multiple non-text modalities and the multiple codec networks corresponding to the multiple non-text modalities, is: A step of determining predictive data corresponding to multiple sets of data based on data in multiple non-text modalities and multiple codec networks corresponding to multiple non-text modalities, For each non-text modality, the steps include determining the truth / false determination result based on the data in the non-text modality, the prediction data corresponding to the data, and the discriminant network in the codec network corresponding to the non-text modality. A step of determining the loss function value of the codec network corresponding to the non-text modality based on at least one of the truth / false determination result, the difference between the data and the predicted data, and the characteristic difference between the data and the predicted data. A method for training a multimodal large-scale model according to claim 1, including the method described in claim 1.

3. The step of determining predictive data corresponding to a plurality of the aforementioned data based on the data in the plurality of non-text modalities and the plurality of codec networks corresponding to the plurality of non-text modalities is: A step of determining whether there are at least two related candidate data among data in multiple non-text modalities, wherein the at least two candidate data belong to different modalities. If at least two candidate data are not present among the data from multiple non-text modalities, the steps include sequentially inputting the data from each non-text modality into the codec network corresponding to that non-text modality to obtain prediction data corresponding to the data from that non-text modality, A method for training a multimodal large-scale model according to claim 2, including the method described in claim 2.

4. The step of determining predictive data corresponding to a plurality of the aforementioned data based on the data in the plurality of non-text modalities and the plurality of codec networks corresponding to the plurality of non-text modalities is: If there are at least two candidate data in the data of multiple non-text modalities, the steps include inputting the at least two candidate data into the encoding network in the codec network corresponding to the modality to which each belongs, and obtaining data features corresponding to each of the at least two candidate data, The steps include obtaining a processed one-dimensional feature vector by performing a one-dimensional transformation on at least two of the aforementioned data features and adding them bit by bit, The steps include: mapping features in the processed one-dimensional feature vector based on the multimodal word list to obtain a processed integer sequence; A step of determining prediction data corresponding to at least two candidate data based on the integer sequence after processing and a decoding network in a codec network corresponding to the modality to which at least two of the candidate data belong, A method for training a multimodal large-scale model according to claim 3, further comprising:

5. The aforementioned non-text modality includes at least one of the following: audio modality, silent video modality, and image modality. A method for training a multimodal large-scale model according to claim 1, wherein the codec network corresponding to the audio modality is a one-dimensional codec network, the codec network corresponding to the silent video modality is a three-dimensional codec network, and the codec network corresponding to the image modality is a two-dimensional codec network.

6. Processing images in image modalities based on the encoding network in the aforementioned two-dimensional codec network is, The aforementioned image is input to the encoding network in the two-dimensional codec network to obtain two-dimensional image features. The aforementioned two-dimensional image features are transformed into one dimension to obtain a transformed one-dimensional feature vector. Based on the multimodal word list, the features in the one-dimensional feature vector are mapped to obtain an integer sequence corresponding to the image. A method for training a multimodal large-scale model according to claim 5, including the method described in claim 5.

7. A method for training a multimodal large-scale model according to claim 3, wherein the combination of at least two related candidate data includes audio and video.

8. The step of training the backbone network based on the multimodal sample reference data and sample generation data for the target task is as follows: The steps include determining predictive generation data based on the multimodal sample reference data, multiple codec networks corresponding to multiple non-text modalities, and the backbone network, The steps include determining the loss function value of the backbone network based on the sample generation data and the prediction generation data, The steps include adjusting the parameters of the backbone network based on the loss function value to perform training, A method for training a multimodal large-scale model according to claim 1, including the method described in claim 1.

9. The step of determining predictive generation data based on the multimodal sample reference data, multiple codec networks corresponding to multiple non-text modalities, and the backbone network is as follows: A step of determining a multimodal integer sequence combination based on the multimodal sample reference data and encoding networks in multiple codec networks corresponding to multiple non-text modalities, wherein in the multimodal integer sequence combination, integer sequences in different modalities are distinguished by modality markers. The steps include inputting the multimodal integer sequence combination into the backbone network and obtaining a predicted integer sequence or predicted integer sequence combination output from the backbone network, The steps include inputting the predicted integer sequence in the predicted integer sequence or combination of predicted integer sequences into a decoding network in a codec network corresponding to the modality to which it belongs, in order to obtain the predicted generation data; A method for training a multimodal large-scale model according to claim 8, including the method described in claim 8.

10. The multimodal sample reference data includes sample reference data for multiple candidate non-text modalities and sample text data for text modalities. The step of determining a multimodal integer sequence combination based on the multimodal sample reference data and encoding networks in multiple codec networks corresponding to multiple non-text modalities is as follows: For each candidate non-text modality, the steps include determining an integer sequence in the candidate non-text modality based on sample reference data in the candidate non-text modality and the encoding network in the codec network corresponding to the candidate non-text modality, The steps include: splicing integer sequences in multiple candidate non-text modalities and integer sequences corresponding to the sample text data according to modality markers to obtain the multimodal integer sequence combination; A method for training a multimodal large-scale model according to claim 9, including the method described in claim 9.

11. The aforementioned multimodal sample reference data includes data in at least two of the following modalities: audio modality, silent video modality, image modality, and text modality. The method for training a multimodal large-scale model according to claim 1, wherein the sample generation data includes data in at least one modality among the audio modality, the silent video modality, the image modality, and the text modality.

12. The method for training a multimodal large-scale model according to claim 1, wherein the target task includes at least one of an image generation task, a video generation task, an audio generation task, a text generation task, and a multimodality understanding task.

13. A method for processing the target task, The steps include obtaining a target task that includes data from at least two modalities, A step of obtaining a multimodal large-scale model obtained based on the multimodal large-scale model training method described in claim 1, The steps include inputting data from at least two of the modalities into the multimodal large-scale model and obtaining generated data output from the multimodal large-scale model, A method for processing the target task, including [the specified method].

14. The method for processing a target task according to claim 13, wherein the target task includes at least one of an image generation task, a video generation task, an audio generation task, a text generation task, and a multimodality understanding task.

15. A training device for multimodal large-scale models, A first acquisition module for acquiring first training data and second training data, wherein the first training data includes data in multiple non-text modalities, and the second training data includes multimodal sample reference data and sample generation data in the target task, A second acquisition module for acquiring an initial multimodal large-scale model, wherein the multimodal large-scale model includes a backbone network and multiple codec networks corresponding to multiple non-text modalities, and the multiple codec networks perform encoding and decoding processing based on the same multimodal word list. A first training processing module for performing coordinated training on multiple codec networks and the multimodal word list based on data from multiple non-text modalities, When training of the multiple codec networks and the multimodal word list is completed, a second training processing module is used to train the backbone network based on the multimodal sample reference data and sample generation data in the target task. Includes, The first training processing module includes a first decision unit and a first adjustment processing unit, The first decision unit determines the loss function values ​​of the multiple codec networks corresponding to the multiple non-text modalities based on the data from the multiple non-text modalities and the multiple codec networks corresponding to the multiple non-text modalities. The first adjustment processing unit adjusts the multiple codec networks and the multimodal word list based on the loss function values ​​of the multiple codec networks corresponding to multiple non-text modalities to realize coordinated training. The first adjustment processing unit, The loss function values ​​of multiple codec networks corresponding to multiple non-text modalities are added together to obtain the total loss function value. A training device for multimodal large-scale models that achieves coordinated training by adjusting the parameters of multiple codec networks based on the summation of the loss function values ​​and adjusting the vectors corresponding to integer identifiers in the multimodal word list.

16. The first decision unit includes a first decision subunit, a second decision subunit, and a third decision subunit. The first decision subunit determines predictive data corresponding to a plurality of the aforementioned data based on data in a plurality of non-text modalities and a plurality of codec networks corresponding to the plurality of non-text modalities. The second decision subunit determines the truth / false determination result for each non-text modality based on the data in the non-text modality, the prediction data corresponding to the data, and the discriminant network in the codec network corresponding to the non-text modality. The training apparatus for a multimodal large-scale model according to claim 15, wherein the third decision subunit determines the loss function value of the codec network corresponding to the non-text modality based on at least one of the truth / false determination result, the difference between the data and the predicted data, and the characteristic difference between the data and the predicted data.

17. The first decision subunit described above, Determine whether there are at least two related candidate data points among the data in multiple non-text modalities, and if the at least two candidate data points belong to different modalities, A training device for a multimodal large-scale model according to claim 16, wherein if at least two of the candidate data are not present among the data of multiple non-text modalities, the data of each non-text modality is sequentially input to the codec network corresponding to the non-text modality to obtain prediction data corresponding to the data of the non-text modality.

18. The aforementioned first decision subunit further, If at least two candidate data sets exist among data in multiple non-text modalities, the at least two candidate data sets are input into the encoding network in the codec network corresponding to the modality to which each belongs, and data features corresponding to the at least two candidate data sets are obtained. By performing a one-dimensional transformation on at least two of the aforementioned data features and adding them bit by bit, a processed one-dimensional feature vector is obtained. Based on the aforementioned multimodal word list, the features in the processed one-dimensional feature vector are mapped to obtain the processed integer sequence. A training apparatus for a multimodal large-scale model according to claim 17, which determines prediction data corresponding to at least two of the candidate data based on the integer sequence after processing and a decoding network in a codec network corresponding to the modality to which at least two of the candidate data belong.

19. The aforementioned non-text modality includes at least one of the following: audio modality, silent video modality, and image modality. The training apparatus for a multimodal large-scale model according to claim 15, wherein the codec network corresponding to the audio modality is a one-dimensional codec network, the codec network corresponding to the silent video modality is a three-dimensional codec network, and the codec network corresponding to the image modality is a two-dimensional codec network.

20. Processing images in image modalities based on the encoding network in the aforementioned two-dimensional codec network is, The aforementioned image is input to the encoding network in the two-dimensional codec network to obtain two-dimensional image features. The aforementioned two-dimensional image features are transformed into one dimension to obtain a transformed one-dimensional feature vector. Based on the multimodal word list, the features in the one-dimensional feature vector are mapped to obtain an integer sequence corresponding to the image. A training device for multimodal large-scale models according to claim 19, including the above.

21. A training apparatus for a multimodal large-scale model according to claim 17 or 18, wherein the combination of at least two related candidate data includes audio and video.

22. The second training processing module includes a second decision unit, a third decision unit, and a second adjustment processing unit. The second decision unit determines the predictive generation data based on the multimodal sample reference data, multiple codec networks corresponding to multiple non-text modalities, and the backbone network. The third decision unit determines the loss function value of the backbone network based on the sample generation data and the prediction generation data. The training apparatus for a multimodal large-scale model according to claim 15, wherein the second adjustment processing unit adjusts the parameters of the backbone network based on the loss function value to achieve training.

23. The aforementioned second decision unit, Based on the multimodal sample reference data and the coding networks in multiple codec networks corresponding to multiple non-text modalities, a multimodal integer sequence combination is determined, and in the multimodal integer sequence combination, integer sequences in different modalities are distinguished by modality markers. The multimodal integer sequence combination is input to the backbone network, and the predicted integer sequence or predicted integer sequence combination output from the backbone network is obtained. A training device for a multimodal large-scale model according to claim 22, wherein the predicted integer sequence in the predicted integer sequence or the combination of predicted integer sequences is input to a decoding network in a codec network corresponding to the modality to which it belongs, in order to obtain the predicted generation data.

24. The multimodal sample reference data includes sample reference data for multiple candidate non-text modalities and sample text data for text modalities. The aforementioned second decision unit further, For each candidate non-text modality, an integer sequence for the candidate non-text modality is determined based on the sample reference data for the candidate non-text modality and the encoding network in the codec network corresponding to the candidate non-text modality. A training device for a multimodal large-scale model according to claim 23, which obtains the multimodal integer sequence combination by splicing integer sequences in multiple candidate non-text modalities and integer sequences corresponding to the sample text data according to modality markers.

25. The aforementioned multimodal sample reference data includes data in at least two of the following modalities: audio modality, silent video modality, image modality, and text modality. The multimodal large-scale model training apparatus according to claim 15 or 22, wherein the sample generation data includes data in at least one modality among the audio modality, the silent video modality, the image modality, and the text modality.

26. The multimodal large-scale model training apparatus according to claim 15, wherein the target task includes at least one of an image generation task, a video generation task, an audio generation task, a text generation task, and a multimodality understanding task.

27. It is an electronic device, At least one processor, Includes a memory that is communicably connected to at least one processor, An electronic device wherein the memory stores instructions that can be executed by the at least one processor, and the execution of the instructions by the at least one processor causes the at least one processor to perform the method according to any one of claims 1 to 12 or the method according to any one of claims 13 to 14.

28. A non-temporary, computer-readable storage medium in which computer instructions are stored, A non-temporary computer-readable storage medium, wherein the computer instruction causes a computer to execute the method according to any one of claims 1 to 12, or the method according to any one of claims 13 to 14.

29. It is a computer program, A computer program that, when executed by a processor, implements the method according to any one of claims 1 to 12 or the method according to any one of claims 13 to 14.

Citation Information

Patent Citations

  • Defect detection system, method and storage medium for display device

    JP2024022577A

  • Enhanced user experience through bi-directional audio and visual signal generation

    US20220343543A1