Multi-modal model training method and device based on modal harmonic
By introducing the alternating learning strategy of modal harmonization and the KL divergence harmonic regularization term in multi-modal learning, the problem of modal competition is solved, the full utilization of multi-modal information and deep information mining are realized, and the multi-modal efficiency is improved. performance of dynamic learning.
Patent Information
- Application Number
- CN202410778100.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-17
- Publication Date
- 2024-10-01
AI Technical Summary
There is a modal competition problem in the existing multi-modal learning paradigm, which causes the gradient of the weaker mode to be ignored, causing the dominant mode with faster convergence speed to control the entire learning process, and the multi-modal information cannot be fully utilized.
A multi-modal model training method based on modal harmonization is proposed, which updates the parameters of each modal learner individually through an alternating learning strategy, and introduces a harmonic regularization method to maximize the diversity between the current update and the historical model, The harmonic term of KL divergence is used to balance the interaction between modalities and deep information mining.
It effectively alleviates the problem of modal competition, ensures the full mining and utilization of each modal information, improves the comprehensive performance of multi-modal learning, and significantly improves the performance of the model and the ability to understand complex multi-modal data.
Smart Images

Figure CN118735005A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical fields of multimodal learning, image processing and autonomous driving, and in particular to a multimodal model training method and device based on modal harmony. Background Art
[0002] Real-world data often follows multimodality (e.g., text, video, and audio) in various fields, including data mining classification based on graph data, computer vision processing for image classification. Therefore, multimodal learning has received great research attention in the deep learning community recently. The mainstream paradigm in multimodal learning usually adopts a joint learning strategy, where a large number of studies mainly focus on fusing modality-specific features into a shared representation, which is then used for various downstream tasks.
[0003] Although multimodal learning has achieved great success, a large number of experimental observations and recent theoretical analysis have pointed out that the current multimodal learning paradigm will produce a modal competition phenomenon, in which the multimodal learning model is dominated by some modalities. Modal competition describes that when dealing with tasks containing multiple sensory information, some modalities may dominate the learning process due to their information content or feature significance, resulting in the potential of other modalities not being fully utilized. Taking a typical scenario as an example, when the model is facing a noisy street and receives voice and image information at the same time, if the richness of image information exceeds that of audio information, the model may tend to extract features from the image, thereby dominating the multimodal learning. This bias may inhibit the optimization of the audio modality, thereby affecting the overall performance of the entire multimodal learning model. Therefore, various studies have focused on alleviating the modal competition problem, with the main focus on how to balance the optimization process of the multimodal learner and promote the full utilization of the features of each modality.
[0004] In the study of multimodal learning, joint learning and individual learning each have their own advantages and limitations. Although joint learning can make full use of the interactive information between different modalities, it may ignore the deep information mining within each modality. In contrast, if each modality is learned independently, although the intrinsic characteristics of each modality can be deeply explored, the complementary information between modalities cannot be fully utilized.
[0005] However, existing algorithms follow the federated learning strategy with limited performance tradeoffs in terms of modality competition. Considering the gradient update rule in the federated learning optimization process, it can be found that federated learning tends to ignore the gradients of weaker modalities, which ultimately leads to the dominant modality with faster convergence speed eventually controlling the entire learning process.
[0006] Based on the above considerations, it is urgent to propose a new learning paradigm that can achieve the coordination of full mining of single-modal features and interactive exploration between modalities through an alternating learning strategy different from joint learning, and ultimately pursue a harmony between modalities to solve the problem of modal competition. Summary of the invention
[0007] The purpose of the present invention is to solve the modal competition problem existing in the current mainstream multimodal learning paradigm. In the multimodal joint learning paradigm, based on the gradient update rules in the joint learning optimization process, it can be found that joint learning tends to ignore the gradients of weaker modes, which ultimately leads to the dominant mode with faster convergence speed eventually controlling the entire learning process. In order to solve this problem, the present invention proposes a modal alternation learning strategy, which aims to update the parameters of each modal learner separately and reduce the modal competition in the gradient space. In order to fully explore the diversity between modalities on the basis of separate learning, the present invention proposes a reconciliation regularization method to maximize the diversity between the current update and the historical model, further alleviating the modal competition problem caused by insisting on a specific modality.
[0008] Specifically, if Figure 1 As shown, the present invention proposes a multimodal model training method based on modal harmony, which includes:
[0009] The data processing step obtains multimodal data with annotated category labels and converts them into a specified form that conforms to the model structure input to obtain training data.
[0010] Alternating training steps, constructing a multimodal model including multiple learners, each learner corresponding to a modality, for extracting features of the corresponding modality data, classifying according to the features extracted by each learner, constructing a loss function through the classification results and the category label, and alternately training the learners of each modality in turn to complete the training of the multimodal model;
[0011] In the output fusion step, the multimodal data to be classified is input into the trained multimodal model to obtain the output features of each learner, and all the output features are fused to obtain the classification result of the multimodal data to be classified.
[0012] The multimodal model training method based on modal harmony, wherein the multimodal model is a multimodal semantic segmentation task, the input data modality is RGB image and depth map, and the category label is the semantic segmentation result.
[0013] The multimodal model training method based on modal harmony, wherein the alternating training step comprises:
[0014] Step S21: Select the kth learner φ to be trained in the multimodal model in order k ;
[0015] Step S22: Calculate the learning device φ k The output feature is aligned to the loss function l of the category label ce (φ k (θ k );
[0016] Step S23: Get the learner φ according to the following formula: k Harmonic regularization term based on KL divergence:
[0017]
[0018] where Φ M / k Represents the removal of the k-th learner φ k The sum of the output features of all learners except ;
[0019] Step S24, combining the harmonic regularization term and the loss function by the following formula:
[0020]
[0021] Where λ is the weight used to weigh the two terms;
[0022] Step S25: Use the stochastic gradient descent algorithm to k Update the parameters:
[0023]
[0024] Where t represents the tth step of the iterative process, and γ is the weight used to weigh the two items;
[0025] Step S26: Update the learner φ k , combined with all other learners, denoted as Φ M ;
[0026] Step S27: Calculate the cross entropy loss of the overall multimodal model output aligned with the category label by the following formula:
[0027]
[0028] Step S28: For all learners, the stochastic gradient descent algorithm is used to update the parameters:
[0029]
[0030] After updating all m∈[1,M], return to step S21 to select the learner of the next modality until the loss function of S28 converges. Complete the training of the multimodal model .
[0031] like Figure 2 As shown, the present invention also proposes a multimodal model training device based on modal harmony, which includes:
[0032] The data processing module obtains multimodal data with annotated category labels and converts it into a specified form that conforms to the model structure input to obtain training data.
[0033] An alternating training module is used to construct a multimodal model including multiple learners, each learner corresponds to a modality, and is used to extract features of the corresponding modality data. Classification is performed according to the features extracted by each learner, and a loss function is constructed through the classification results and the category label. The learners of each modality are alternately trained in turn to complete the training of the multimodal model.
[0034] The output fusion module inputs the multimodal data to be classified into the trained multimodal model, obtains the output features of each learner, and fuses all the output features to obtain the classification result of the multimodal data to be classified.
[0035] The multimodal model training device based on modal harmony, wherein the multimodal model is a multimodal semantic segmentation task, the input data modality is RGB image and depth map, and the category label is the semantic segmentation result.
[0036] The multimodal model training device based on modal harmony, wherein the alternating training step comprises:
[0037] Module M21, select the kth learner φ to be trained in the multimodal model in order k ;
[0038] Module M22, calculation for learning machine φ k The output feature is aligned to the loss function l of the category label ce (φ k (θ k );
[0039] Module M23, according to the following formula to obtain the learner φ k Harmonic regularization term based on KL divergence:
[0040]
[0041] where Φ M / k Represents the removal of the k-th learner φ k The sum of the output features of all learners except ;
[0042] Module M24 combines the harmonic regularization term and the loss function by the following formula:
[0043]
[0044] Where λ is the weight used to weigh the two terms;
[0045] Module M25, using stochastic gradient descent algorithm to learn the kth learner φ k Update the parameters:
[0046]
[0047] Where t represents the tth step of the iterative process, and γ is the weight used to weigh the two items;
[0048] Module M26, the updated learner φ k , combined with all other learners, denoted as Φ M ;
[0049] Module M27, calculates the cross entropy loss of the overall multimodal model output alignment with the category label by the following formula:
[0050]
[0051] Module M28, for all learners, the stochastic gradient descent algorithm is used to update the parameters:
[0052]
[0053] After updating all m∈[1,M], return to the module M21 to select the learner of the next modality until the loss function of the module M28 converges, completing the training of the multimodal model.
[0054] The present invention also proposes an electronic device, which includes the multi-modal model training device based on modal harmony.
[0055] The electronic device is connected to an information display device, and the information display device is used to display the classification result according to display parameters and attributes set by the user or through an artificial intelligence model.
[0056] The present invention also proposes a storage medium for storing a computer program for executing the multimodal model training method based on modal harmony.
[0057] It can be seen from the above scheme that the advantages of the present invention are:
[0058] The existing multimodal joint learning paradigm has the problem of modal competition, which makes it impossible to fully exploit modal information, thus limiting the performance of multimodal learning. Based on this, the present invention proposes a multimodal learning paradigm of modal alternation learning, which alleviates the modal competition in the gradient space by updating the parameters of each modal learner separately. In order to fully exploit the diversity between modalities on the basis of separate learning, the inventors proposed a reconciliation regularization method, which aims to maximize the diversity between the current update and the historical model, further alleviating the modal competition problem caused by insisting on a specific modality. In addition, the inventors also proved that by selecting a reconciliation term based on KL divergence, an alternating version of the well-known Gradient-Boosting technique can be implemented, and the updated modality learner can focus on the errors of other modalities, thereby highlighting their complementarity. BRIEF DESCRIPTION OF THE DRAWINGS
[0059] Figure 1 is a flow chart of the method of the present invention;
[0060] Figure 2 It is a module diagram of the device of the present invention;
[0061] Figure 3 This is a schematic diagram of the structure of a first electronic device of the present invention;
[0062] Figure 4 This is a schematic diagram of the application environment structure of the first electronic device of the present invention;
[0063] Figure 5 It is a schematic diagram of the structure of a second electronic device of the present invention.
[0064] Reference numerals:
[0065] A-First electronic device;
[0066] B-XXX device;
[0067] C-data acquisition equipment;
[0068] D-information display device;
[0069] 1000 - second electronic device;
[0070] Ⅰ-computational unit;
[0071] II-ROM;
[0072] III-RAM;
[0073] IV-bus;
[0074] V-interface;
[0075] VI - input unit;
[0076] VII-output unit;
[0077] VIII- Storage medium;
[0078] Ⅸ-Communication unit. DETAILED DESCRIPTION
[0079] It should be noted that the processor described in the present invention is the control center of the electronic device, which can be a processor or a general term for multiple processing elements. For example, it can be one or more central processing units (CPUs), or application specific integrated circuits (ASICs), or one or more integrated circuits configured to implement the embodiments of the present invention, such as one or more microprocessors (digital signal processors, DSPs), or one or more field programmable gate arrays (FPGAs).
[0080] Optionally, the processor can perform various functions of the electronic device by running or executing a software program stored in the memory, and calling data stored in the memory.
[0081] In a specific implementation, as an embodiment, the processor may include one or more CPUs. Each of these processors may be a single-core processor (single-CPU) or a multi-core processor (multi-CPU). The processor here may refer to one or more devices, circuits, and / or processing cores for processing data (such as computer program instructions). Electronic devices may include: servers, desktop computers, laptops, smart phones, tablet computers, embedded computers, etc., wherein the embedded computers include vehicles and robots, etc.
[0082] The memory is used to store the software program for executing the solution of the present invention, and the execution is controlled by the processor. The specific implementation method can refer to the above method embodiment, which will not be repeated here.
[0083] It should be noted that the structure of the electronic device shown in the drawings of the present invention does not constitute a limitation thereto, and the actual knowledge structure recognition device may include more or fewer components than shown in the drawings, or a combination of certain components, or a different arrangement of components.
[0084] The above embodiments can be implemented in whole or in part by software, hardware (such as circuits), firmware or any other combination. When implemented by software, the above embodiments can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions or computer programs. When the computer instructions or computer programs are loaded or executed on a computer, the process or function described in the embodiment of the present invention is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions can be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions can be transmitted from one website, computer, server or data center to another website, computer, server or data center by wired (such as infrared, wireless, microwave, etc.). The computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device such as a server or data center that contains one or more available media sets. The available medium can be a magnetic medium (for example, a floppy disk, a hard disk, a tape), an optical medium (for example, a DVD), or a semiconductor medium. The semiconductor medium can be a solid-state hard disk.
[0085] It should also be understood that the term "and / or" in this article is only a description of the association relationship of associated objects, indicating that there can be three relationships. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. A and B can be singular or plural. In addition, the character " / " in this article generally indicates that the associated objects before and after are in an "or" relationship, but it may also indicate an "and / or" relationship. Please refer to the context for specific understanding.
[0086] In the present invention, "at least one" means one or more, and "more than one" means two or more. "At least one of the following" or similar expressions refers to any combination of these items, including any combination of single or plural items. For example, at least one of a, b, or c can be represented by: a, b, c, ab, ac, bc, or abc, where a, b, c can be single or multiple.
[0087] It should also be understood that in various embodiments of the present invention, the size of the serial numbers of the above-mentioned processes does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present invention.
[0088] In the several embodiments provided by the present invention, it should be understood that the disclosed devices, apparatuses and methods can be implemented in other ways. For example, the device embodiments described above are only schematic, for example, the division of the units is only a logical function division, and there may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another device, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0089] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0090] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
[0091] If the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention can be essentially or partly embodied in the form of a software product that contributes to the prior art. The computer software product is stored in a storage medium and includes several instructions for enabling a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the methods described in various embodiments of the present invention. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.
[0092] This paper proposes an innovative method to alleviate modal competition and ensure that the information of each modality can be fully mined and utilized. With this method, we not only balance the influence between different modalities, but also significantly improve the performance of the overall model, enabling it to more comprehensively understand and process complex multimodal data.
[0093] The present invention analyzes the reasons why modal competition occurs in the current multimodal joint learning paradigm. Based on this analysis, a modal alternation learning strategy is proposed. Intuitively, alternating training of each modal learner requires the independent use of modality-specific gradients, thereby avoiding modal competition in the gradient space. In order to further enhance the performance of the modalities, a reconciliation regularization method is proposed to maximize the diversity between the current update and the historical model. The modal competition problem caused by adhering to a specific modality is further alleviated by dynamically adjusting the learning objective through the regularization term.
[0094] The alternating learning method proposed in the present invention aims to balance the advantages and disadvantages of the joint learning and separate learning methods. In order to maintain the interaction ability between modalities in joint learning while mining the unique information of each modality, the present invention introduces a harmonic regularization term based on KL divergence. The design of this regularization term enhances the diversity between modalities and promotes effective interaction between modalities, thereby achieving information fusion between modalities without sacrificing single-modal deep learning.
[0095] Through this novel regularization strategy, the present invention not only ensures the in-depth mining of unimodal information, but also achieves harmonious interaction between modalities through the KL divergence-guided reconciliation mechanism. Therefore, the multimodal alternating learning paradigm proposed in the present invention is an innovative approach to balance the utilization of unimodal features and cross-modal interactive exploration, providing a new perspective and solution for the field of multimodal learning.
[0096] Theoretical analysis of the present invention proves that by selecting a coordination term based on KL divergence, the proposed method can realize alternating learning of machine learning algorithms, such as improving the Gradient-Boosting algorithm into an alternating learning version. Specifically, the updated modality learner can focus on the errors of other modalities, thereby highlighting their complementarity. Traditional machine learning Boosting algorithms use weak learners such as decision trees, while the method of the present invention uses an over-parameterized learner based on a deep neural network. In order to avoid overfitting, the method proposed in the present invention discards the historical learner and only retains the last learner of each modality, thereby creating an alternating enhancement strategy.
[0097] In order to make the above features and effects of the present invention more clearly and understandably described, embodiments are given below and described in detail with reference to the accompanying drawings. This specification discloses one or more embodiments that include the features of the present invention. The disclosed embodiments are only for illustration. The scope of protection of the present invention is not limited to the disclosed embodiments, and the present invention is defined by the attached claims.
[0098] The present invention proposes a multimodal reconciliation learning method based on Boosting technology, which comprises the following steps:
[0099] Data processing step S1, converting multimodal data such as audio modal data, image modal data and text modal data into a form that conforms to the model structure input, such as unifying the bit rate format of each modality, unifying the audio duration, image size, etc.
[0100] The modality learner alternating training step S2 is used to alternately train each modality learner. Calculate the modality learner φ k (θ k ), k∈[1,M] loss function, and adopt the stochastic gradient descent strategy to alternately optimize the parameters of each modality learner. k Represents the parameters of the k-th modality learner. The labels used by this loss function during supervised training can be determined according to the current task. For example, for a multimodal semantic segmentation task, the input data modalities are RGB images and depth maps, and the correct labels corresponding to the inputs are the semantic segmentation content. RGB images and depth maps work together to perform semantic segmentation. Each data modality is used to more accurately predict the semantic segmentation map, and the label of each data modality is the semantic segmentation content.
[0101] The output fusion step S3 is used to fuse the outputs of each modality learner for prediction. For a multimodal sample, the prediction outputs of each modality learner are weighted to obtain the output of the final multimodal model, that is,
[0102]
[0103] where x i Represents the input of the i-th sample; represents the kth mode of the ith sample.
[0104] In some examples of the present invention, step S2 includes:
[0105] S21, select a modal learner φ to be updated in order k ;
[0106] S22. Calculate the cross entropy loss used to align the modal learner output labels, i.e., l ce (φ k (θ k );
[0107] S23. Calculate the harmonic regularization term based on KL divergence, that is
[0108]
[0109] where Φ M / krepresents the sum of the outputs of all other modal learners excluding the kth modal learner. The kth modal learner is currently selected, so S23 calculates the harmonic regularization term to optimize the kth modal learner.
[0110] S24, combine the above two loss functions, that is
[0111]
[0112] Where λ is the weight used to weigh the two terms.
[0113] S25, use the stochastic gradient descent algorithm to update the parameters of the learner selected in S21:
[0114]
[0115] Where t represents the tth step of the iterative process, and γ is the weight used to weigh the two terms.
[0116] S26. Combine the updated modal learner with other modal learners in history, denoted as Φ M
[0117] S27. Calculate the cross entropy loss of the alignment labels output by the overall multimodal model, i.e.
[0118]
[0119] S28. For all modal learners, the stochastic gradient descent algorithm is used to update the parameters:
[0120] For all m∈[1,M]
[0121] After updating, return to step S21 to select the learner of the next mode until the loss function of S28 converges.
[0122] Taking the fusion classification of depth map and RGB map in autonomous driving scenario as an example, the above steps are as follows:
[0123] S21. Select a modality learner to be updated, a deep image learner or an RGB image learner in order. Common ones include Resnet, etc. Assume that the RGB learner is currently selected.
[0124] S22. Calculate the cross entropy loss between the output of the RGB modality learner and the classification label.
[0125] S2. Calculate the harmonic regularization term based on KL divergence, that is, calculate the KL divergence of the output of the RGB modality learner and the output of the deep map learner.
[0126] S24, merge the two loss functions of S22 and S23.
[0127] S25. Use the stochastic gradient descent algorithm to update the parameters of the RGB modality learner.
[0128] S26. Merge this updated RGB modality learner with the historical deep image learner.
[0129] S27. Calculate the cross entropy loss between the output and label after merging the RGB and deep graph learners.
[0130] S28. Use the stochastic gradient descent algorithm to update the parameters of the RGB learner and the depth map learner.
[0131] After S28 is completed, return to S21 to select other modal learners.
[0132] The following is a system embodiment corresponding to the above method embodiment. This embodiment can be implemented in conjunction with the above embodiment. The relevant technical details mentioned in the above embodiment are still valid in this embodiment. In order to reduce repetition, they are not repeated here. Accordingly, the relevant technical details mentioned in this embodiment can also be applied in the above embodiment.
[0133] like Figure 2 As shown, the present invention also proposes a multimodal model training device based on modal harmony, which includes:
[0134] The data processing module obtains multimodal data with annotated category labels and converts it into a specified form that conforms to the model structure input to obtain training data.
[0135] An alternating training module is used to construct a multimodal model including multiple learners, each learner corresponds to a modality, and is used to extract features of the corresponding modality data. Classification is performed according to the features extracted by each learner, and a loss function is constructed through the classification results and the category label. The learners of each modality are alternately trained in turn to complete the training of the multimodal model.
[0136] The output fusion module inputs the multimodal data to be classified into the trained multimodal model, obtains the output features of each learner, and fuses all the output features to obtain the classification result of the multimodal data to be classified.
[0137] The multimodal model training device based on modal harmony, wherein the multimodal model is a multimodal semantic segmentation task, the input data modality is RGB image and depth map, and the category label is the semantic segmentation result.
[0138] The multimodal model training device based on modal harmony, wherein the alternating training step comprises:
[0139] Module M21, select the kth learner φ to be trained in the multimodal model in order k ;
[0140] Module M22, calculation for learning machine φ k The output feature is aligned to the loss function l of the category label ce (φ k (θ k );
[0141] Module M23, according to the following formula to obtain the learner φ k Harmonic regularization term based on KL divergence:
[0142]
[0143] where Φ M / k Represents the removal of the k-th learner φ k The sum of the output features of all learners except ;
[0144] Module M24 combines the harmonic regularization term and the loss function by the following formula:
[0145]
[0146] Where λ is the weight used to weigh the two terms;
[0147] Module M25, using stochastic gradient descent algorithm to learn the kth learner φ k Update the parameters:
[0148]
[0149] Where t represents the tth step of the iterative process, and γ is the weight used to weigh the two items;
[0150] Module M26, the updated learner φ k , combined with all other learners, denoted as Φ M ;
[0151] Module M27, calculates the cross entropy loss of the overall multimodal model output alignment with the category label by the following formula:
[0152]
[0153] Module M28, for all learners, the stochastic gradient descent algorithm is used to update the parameters:
[0154]
[0155] After updating all m∈[1,M], return to the module M21 to select the learner of the next modality until the loss function of the module M28 converges, completing the training of the multimodal model.
[0156] like Figure 3 As shown, the present invention further proposes a first electronic device A in another embodiment, which includes the multimodal model training device based on modal harmony.
[0157] like Figure 4 As shown, the first electronic device A can also be connected to the data acquisition device C and the information display device D through a wired or wireless information transmission scheme. The data acquisition device C is used to collect and obtain multimodal data to be identified and classified, such as the RGB image and depth map described in the embodiment of the present invention, and the information display device D is used to display the classification results obtained by the analysis of the present invention.
[0158] The information display device D can sort and process the data output by the first electronic device A based on the information display mechanism to improve the readability of the data output by the first electronic device A. The information display mechanism can be manually preset, for example, the data output by the first electronic device A is visually displayed, which can be based on the display parameters and / or attributes set by the user. The display parameters can be, for example, the display data range, and the display attributes can be, for example, the display font, color, whether to scroll and play, etc. The user is presented with the key information specified by the user, such as news updates, system information, etc., so that the user can understand this information more timely without having to access the secondary page or scroll the page, saving the user's operation. Or the information display mechanism can be an artificial intelligence AI display model, which can learn the user's key information based on the user's previous usage habits, such as viewing time, number of clicks, number of edits, etc., and then automatically present rich and necessary key information to the user.
[0159] The present invention also proposes a storage medium VIII in another embodiment for storing a computer program for executing the multimodal model training method based on modal harmony. It should be understood that the storage medium in the embodiment of the present invention may be a volatile memory or a non-volatile memory, or may include both volatile and non-volatile memories. Among them, the non-volatile memory may be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. The volatile memory may be a random access memory (RAM), which is used as an external cache. By way of example and not limitation, many forms of random access memory (RAM) are available, such as static RAM (SRAM), dynamic random access memory (DRAM), synchronous DRAM (SDRAM), double data rate synchronous dynamic random access memory (DDR SDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous link DRAM (SLDRAM), and direct rambus RAM (DRRAM).
[0160] Figure 5 A schematic block diagram of a second electronic device 1000 that can be used to implement an embodiment of the present invention is shown. The second electronic device 1000 electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workbenches, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The second electronic device 1000 can also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, 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 implementation of the present invention described and / or required herein. The second electronic device 1000 may be the same or different from the first electronic device A.
[0161] The second electronic device 1000 includes a computing unit I, which can perform various appropriate actions and processes according to a computer program stored in a read-only memory II (ROM) or a computer program loaded from a storage medium VIII into a random access memory (RAM) III. In RAM III, various programs and data required for the operation of the device 1000 can also be stored. The computing unit I, ROM II, and RAM III are connected to each other via a bus IV. An input / output (I / O) interface V is also connected to the bus IV.
[0162] A plurality of components in the second electronic device 1000 are connected to the I / O interface V, including: an input unit VI, such as a keyboard, a mouse, etc.; an output unit VII, such as various types of displays, speakers, etc.; a storage medium VIII, such as a disk, an optical disk, etc.; and a communication unit IX, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit IX allows the second electronic device 1000 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.
[0163] The computing unit I may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of computing unit I include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various dedicated artificial intelligence (AI) computing chips, various computing units running machine learning model algorithms, digital signal processors (DSPs), and any appropriate processors, controllers, microcontrollers, etc. The computing unit I performs the various methods and processes described above, such as method steps S1-S4. For example, in some embodiments, the method may be implemented as a computer software program, which is tangibly contained in a machine-readable medium, such as a storage medium VIII. In some embodiments, part or all of the computer program may be loaded and / or installed on the device 1000 via ROM II and / or a communication unit IX. When the computer program is loaded into RAM III and executed by the computing unit I, one or more steps of the method described above may be performed. Alternatively, in other embodiments, the computing unit I may be configured to execute the method in any other appropriate manner (e.g., by means of firmware).
[0164] Although the embodiments of the present invention have been disclosed as above, they are not limited to the applications listed in the specification and the implementation modes, and they can be fully applied to various fields suitable for the present invention. For those familiar with the art, additional modifications can be easily implemented. Therefore, without departing from the general concept defined by the claims and the scope of equivalents, the present invention is not limited to the specific details and the illustrations shown and described herein.
Claims
1. A multimodal model training method based on modal harmony, It is characterized in that include: The data processing step is to obtain multimodal data with annotated category labels and convert them into a specified form that conforms to the model structure input to obtain training data; Alternating training steps, constructing a multimodal model including multiple learners, each learner corresponding to a modality, for extracting features of the corresponding modality data, classifying according to the features extracted by each learner, constructing a loss function through the classification results and the category label, and alternately training the learners of each modality in turn to complete the training of the multimodal model; In the output fusion step, the multimodal data to be classified is input into the trained multimodal model to obtain the output features of each learner, and all the output features are fused to obtain the classification result of the multimodal data to be classified.
2. The multimodal model training method based on modal harmony as claimed in claim 1, It is characterized in that This multimodal model is a multimodal semantic segmentation task. The input data modalities are RGB images and depth maps, and the category labels are semantic segmentation results.
3. The multimodal model training method based on modal harmony according to claim 1 or 2, It is characterized in that The alternating training steps include: Step S21: Select the kth learner φ to be trained in the multimodal model in order k ; Step S22: Calculate the learning device φ k The output feature is aligned to the loss function l of the category label ce (φ k (θ k )); Step S23: Get the learner φ according to the following formula: k Harmonic regularization term based on KL divergence: where φ M / k Represents the removal of the k-th learner φ k The sum of the output features of all learners except ; Step S24, combining the harmonic regularization term and the loss function by the following formula: Where λ is the weight used to weigh the two terms; Step S25: Use the stochastic gradient descent algorithm to k Update the parameters: Where t represents the tth step of the iterative process, and γ is the weight used to weigh the two items; Step S26: Update the learner φ k , combined with all other learners, denoted as Φ M ; Step S27: Calculate the cross entropy loss of the overall multimodal model output aligned with the category label by the following formula: Step S28: For all learners, the stochastic gradient descent algorithm is used to update the parameters: After updating all m∈[1,M], return to step S21 to select the learner of the next mode until the loss function of S28 converges. Complete the training of the multimodal model .
4. A multimodal model training device based on modal harmony, It is characterized in that include: The data processing module obtains multimodal data with annotated category labels and converts it into a specified form that conforms to the model structure input to obtain training data. An alternating training module is used to construct a multimodal model including multiple learners, each learner corresponds to a modality, and is used to extract features of the corresponding modality data. Classification is performed according to the features extracted by each learner, and a loss function is constructed through the classification results and the category label. The learners of each modality are alternately trained in turn to complete the training of the multimodal model. The output fusion module inputs the multimodal data to be classified into the trained multimodal model, obtains the output features of each learner, and fuses all the output features to obtain the classification result of the multimodal data to be classified.
5. The multimodal model training device based on modal harmony as claimed in claim 4, It is characterized in that This multimodal model is a multimodal semantic segmentation task. The input data modalities are RGB images and depth maps, and the category labels are semantic segmentation results.
6. The multimodal model training device based on modal harmony as claimed in claim 4 or 5, It is characterized in that The alternating training steps include: Module M21, select the kth learner φ to be trained in the multimodal model in order k ; Module M22, calculation for learning machine φ k The output feature is aligned to the loss function l of the category label ce (φ k (θ k )); Module M23, according to the following formula to obtain the learner φ k Harmonic regularization term based on KL divergence: where Φ M / k Represents the removal of the k-th learner φ k The sum of the output features of all learners except ; Module M24 combines the harmonic regularization term and the loss function by the following formula: Where λ is the weight used to weigh the two terms; Module M25, using stochastic gradient descent algorithm to learn the kth learner φ k Update the parameters: Where t represents the tth step of the iterative process, and γ is the weight used to weigh the two items; Module M26, the updated learner φ k , combined with all other learners, denoted as Φ M ; Module M27, calculates the cross entropy loss of the overall multimodal model output alignment with the category label by the following formula: Module M28, for all learners, the stochastic gradient descent algorithm is used to update the parameters: After updating all m∈[1, M], return to the module M21 to select the learner of the next modality until the loss function of the module 28 converges, completing the training of the multimodal model.
7. An electronic device, It is characterized in that It includes a multimodal model training device based on modal harmony as described in claims 4-7.
8. The electronic device according to claim 7, It is characterized in that The electronic device is connected to an information display device, which is used to display the classification result according to display parameters and attributes set by a user or through an artificial intelligence model.
9. A storage medium for storing a computer program for executing the multimodal model training method based on modal harmony described in claims 1-4.
