A method and device for constructing a multimodal shared neural network model
Through the multi-modal shared neuron network model construction method, the chain generative neural network model and the basic unit selection network are used to solve the problems of low multi-modal data training efficiency and poor reasoning effect in the existing technology, and achieve efficient training. and improvement of reasoning ability.
Patent Information
- Application Number
- CN202410748529.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-12
- Publication Date
- 2024-09-06
- Estimated Expiration
- 2044-06-12
AI Technical Summary
Existing neural network models suffer from the problems of low training efficiency and poor inference effect on multi-modal data.
Using a multi-modal shared neuron network model construction method, the multi-modal original data is trained and optimized through a chained generative neural network model, and the basic unit selection network and loss function are used for parameter optimization to achieve efficient training of multi-modal data. and reasoning.
The training efficiency and reasoning ability of the neural network model are improved, manual alignment work is reduced, and modal automatic functional partitioning is achieved.
Smart Images

Figure CN118333099B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of computer technology, and in particular to a method and device for constructing a multimodal shared neural network model. Background Art
[0002] Most of the current multimodal generative network models build encoders and decoders for each modality, generate their own encoding results based on their respective encoders, perform mixed encoding through neural networks or other methods, and then generate the content of their respective modalities through their respective decoders.
[0003] The existing technical approach realizes the feature mapping of multimodal relationships through modal encoders and decoders. However, in order to complete this mapping, massive and aligned multimodal data is required to train the neural network model. At the same time, such methods are very inefficient in terms of training efficiency and reasoning efficiency of the neural network model. Summary of the invention
[0004] The present invention provides a method and device for constructing a multimodal shared neural network model to solve the problems of low training efficiency and poor reasoning effect of existing neural network models for multimodal data.
[0005] In a first aspect, the present invention provides a method for constructing a multimodal shared neural network model, which specifically comprises the following steps:
[0006] Step S1: Collect multimodal raw data and construct input sequence A={ a 1 ,a 2 ,...,a m};
[0007] Step S2: construct a chain generative neural network model according to the input sequence A;
[0008] Step S3, inputting a plurality of input sequences for training, and performing training optimization on the chain generative neural network model;
[0009] Among them, in step S3, when the chain generative neural network model is trained and optimized, the input is one or more modal data, and the output is one or more modal data. The number or type of modalities contained in the input and output are allowed to be the same or different.
[0010] in, a 1 ,a 2 ,...,a m is the sequence A m elements, mPreferably, in step S1, the multimodal original data includes text data, audio data, image data, and video data.
[0011] Preferably, in step S1, the input sequence includes m elements, where each element represents a basic unit in the text, including a word, character, subword, symbol, or other predefined text unit;
[0012] More preferably, the length of the input sequence is the number of elements contained in the input sequence, each of the elements corresponds to an independent basic unit, and the basic units corresponding to different elements are the same or different.
[0013] Preferably, in step S1, collecting multimodal raw data and constructing an input sequence specifically includes the following steps:
[0014] Step S101, segmenting the collected multimodal raw data at equal intervals to form segmented multimodal raw data;
[0015] Step S102: construct an input sequence according to the segmented multimodal original data to form a sequence A={ a 1 ,a 2 ,..., a m}.
[0016] More preferably, the equal interval time varies according to different model application types.
[0017] Preferably, in step S2, a chain generative neural network model is constructed according to the input sequence A, which specifically includes the following steps:
[0018] Step S201: Extract features from each data segment in the input sequence A to form a sequence B={ b 1 ,b 2 ,..., b m};
[0019] Step S202: Perform linear or nonlinear transformation on sequence B to form sequence X={ x 1 ,x 2 ,...,x m};
[0020] Step S203: input each piece of data in the sequence X into the basic unit selection network, and map and obtain multiple basic units corresponding to each piece of data in the sequence X as candidates;
[0021] Each of the basic units includes an object, wherein the object includes a neuron or a local network formed by a combination of multiple neurons, and the input and output of the object are equal; or,
[0022] Each of the basic units includes a chain structure formed by linearly connecting multiple objects, wherein each object is connected together in a specific order to form a continuous chain; or,
[0023] Each of the basic units includes a multi-path structure formed by nesting a plurality of the chain structures, wherein the chain structure is formed by linearly connecting a plurality of basic units to form a continuous, linear network structure;
[0024] Step S204: for each piece of data in the sequence X, select the basic unit with the highest weight corresponding to the data from the multiple candidate basic units obtained by mapping, so as to obtain m A basic unit corresponding to the input sequence A;
[0025] Step S205: According to the obtained m Basic units are used to build a chain-type generative neural network model.
[0026] in, b 1 ,b 2 ,...,b m is the sequence B m elements, m is a natural number.
[0027] in, x 1 ,x 2 ,...,x m is the sequence X m elements, m is a natural number.
[0028] Preferably, in step S2, the chain generative neural network model includes one or more (in the content of this application, the term "multiple" refers to at least 2) multi-path (in the content of this application, the term "multi-path" refers to at least 2 paths) structures.
[0029] Preferably, in step S201, extracting the features of the input sequence includes converting the sequence ID of the input sequence into a computable sequence feature by means of Embedding.
[0030] Preferably, in step S202, sequence A is linearly or nonlinearly transformed, including linearly or nonlinearly transforming sequence features through a Sequential network to form a transformed sequence feature B.
[0031] Preferably, in step S203, the input and output of the chain structure are jointly determined by the basic units it contains, and it is allowed to adapt to different input and output requirements by adding a conversion layer;
[0032] The multi-path structure is formed by nesting multiple chain structures, each chain structure is used as a sub-path, allowing information to be processed in parallel on multiple paths;
[0033] The multi-path structure allows for combination and configuration through different chain structures.
[0034] Preferably, in step S203, X is input into the basic unit selection network, and mapping is performed to obtain a plurality of basic units corresponding to each piece of data in the sequence X, including two methods;
[0035] in,
[0036] The first method specifically includes inputting each piece of data in the sequence X into the basic unit selection network to obtain multiple basic units corresponding to the piece of data;
[0037] The second method specifically includes: x 1 ,x 1 +x 2 ,...,x 1 + x 2 +...+x m The basic unit selection network is input in sequence in the form of to obtain multiple basic units.
[0038] Preferably, in step S3, a plurality of input sequences for training are input to train and optimize the chain generative neural network model, which specifically includes the following steps:
[0039] Step S301, constructing a loss function of the chain generative neural network model according to the business type of the chain generative neural network model application;
[0040] Step S302: input a plurality of input sequences for training, and complete the training optimization of the chain generative neural network model according to the loss function.
[0041] More preferably, in step S301, the loss function is used to guide the optimization adjustment of the parameters of the chain generative neural network model.
[0042] In a second aspect, the present invention also provides a multimodal shared neural network model construction device, which specifically includes the following modules:
[0043] The multimodal raw data acquisition module is used to collect multimodal raw data and construct an input sequence A={ a 1 , a 2 ,...,a m};
[0044] A chain generative neural network model building module is used to build a chain generative neural network model according to an input sequence A;
[0045] The chain generative neural network model training optimization module is used to input multiple input sequences for training and perform training optimization on the chain generative neural network model.
[0046] Preferably, the multimodal raw data acquisition module includes the following submodules:
[0047] The multimodal raw data segmentation submodule is used to segment the collected multimodal raw data according to equal intervals to form segmented multimodal raw data;
[0048] The sequence construction submodule is used to construct the input sequence according to the segmented multimodal raw data to form a sequence A={ a 1 ,a 2 ,...,a m};
[0049] Preferably, the chain generative neural network model building module includes the following submodules:
[0050] The feature extraction submodule is used to extract features from each data segment in the input sequence A to form a sequence B={ b 1 ,b 2 ,...,b m};
[0051] The feature transformation submodule is used to perform linear or nonlinear transformation on the sequence B to form a sequence X={ x 1 ,x 2 ,..., x m};
[0052] A basic unit mapping submodule is used to input each piece of data in the sequence X into the basic unit selection network, and map and obtain multiple basic units corresponding to each piece of data in the sequence X as candidates;
[0053] The optimal basic unit selection submodule is used to select the basic unit with the highest weight corresponding to each data in the sequence X from the multiple candidate basic units obtained by mapping, so as to obtain m A basic unit corresponding to the input sequence A;
[0054] The network model construction submodule is used to obtain m Basic units to build a chain-type generative neural network model;
[0055] Preferably, the chain generative neural network model training optimization module includes the following submodules:
[0056] A loss function construction submodule, used to construct a loss function of the chain generative neural network model according to the business type of the chain generative network model application;
[0057] The model optimization training submodule is used to input multiple input sequences for training and complete the training optimization of the chain generative neural network model according to the loss function.
[0058] In a third aspect, the present invention further provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements a method for constructing a multimodal shared neural network model as described in any one of the first aspects of the present application.
[0059] In a fourth aspect, the present invention further provides an electronic device, comprising: a memory storing a computer program; and a processor communicatively connected to the memory, for executing a multimodal shared neural network model construction method described in any one of the first aspects of the present application when the computer program is called.
[0060] Compared with the prior art, the present invention has the following obvious outstanding substantive features and significant advantages:
[0061] The present invention provides a method for constructing a multimodal shared neural network model, which solves the problems of low training efficiency and poor reasoning effect of existing neural network models for multimodal data. By realizing multimodal neuron sharing, the training efficiency and reasoning ability of the model are improved, and the manual alignment work is reduced. The present invention also realizes the function of automatic functional partitioning according to different modes for random neurons. BRIEF DESCRIPTION OF THE DRAWINGS
[0062] The accompanying drawings, which constitute part of the present invention, are used to provide a further understanding of the present invention. The exemplary embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute improper limitations on the present invention. In the accompanying drawings:
[0063] Figure 1 It is a schematic diagram of a multimodal shared neural network model construction and a model optimization method thereof according to a preferred embodiment of the present invention;
[0064] Figure 2 It is a flow chart of a method for constructing a multimodal shared neural network model according to a preferred embodiment of the present invention;
[0065] Figure 3 This is an example flow chart of screening basic units through a basic unit selection network based on an input sequence X in a multimodal shared neural network model construction method according to a preferred embodiment of the present invention;
[0066] Figure 4 It is an example flow chart of screening basic units through a basic unit selection network based on the accumulated features of an input sequence X in a multimodal shared neural network model construction method of a preferred embodiment of the present invention;
[0067] Figure 5 It is a schematic diagram of a basic unit structure in a method for constructing a multimodal shared neural network model according to a preferred embodiment of the present invention;
[0068] Figure 6 It is another schematic diagram of a basic unit structure in a method for constructing a multimodal shared neural network model according to a preferred embodiment of the present invention;
[0069] Figure 7 It is another schematic diagram of a basic unit structure in a method for constructing a multimodal shared neural network model according to a preferred embodiment of the present invention;
[0070] Figure 8 It is a schematic diagram of the structure of a chain-type generative neural network model in a method for constructing a multimodal shared neural network model in a preferred embodiment of the present invention;
[0071] Fig. 9 It is a schematic diagram of the selection and sharing of a video mode and an audio mode basic unit according to a preferred embodiment of the present invention;
[0072] Fig.10 It is a schematic diagram of specific implementation steps of constructing an input sequence in a method for constructing a multimodal shared neural network model in a preferred embodiment of the present invention;
[0073] Fig.11 It is a schematic diagram of specific implementation steps of constructing a chain-type generative neural network model in a method for constructing a multimodal shared neural network model in a preferred embodiment of the present invention;
[0074] Fig.12 It is a schematic diagram of specific implementation steps of chain-type generative neural network model training optimization in a multimodal shared neural network model construction method of a preferred embodiment of the present invention;
[0075] Fig.13 It is a schematic diagram of the structure of a multimodal shared neural network model building device according to a preferred embodiment of the present invention;
[0076] Fig.14 It is a structural schematic diagram of a multimodal raw data acquisition module in a multimodal shared neural network model construction device according to a preferred embodiment of the present invention;
[0077] Fig.15 It is a schematic diagram of the structure of a chain-type generative neural network model building module in a multimodal shared neural network model building device according to a preferred embodiment of the present invention;
[0078] Fig.16 It is a schematic diagram of the structure of a training optimization module for a chain-type generative neural network model in a multimodal shared neural network model construction device in a preferred embodiment of the present invention. DETAILED DESCRIPTION
[0079] The present invention provides a method for constructing a multimodal shared neural network model. In order to make the purpose, technical solution and effect of the present invention clearer and more specific, the present invention is further described in detail with reference to the accompanying drawings and examples. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not intended to limit the present invention.
[0080] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged under appropriate circumstances. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices. Example
[0081] like Figure 1-Figure 12 As shown, the method for constructing a multimodal shared neural network model described in this embodiment specifically includes the following steps:
[0082] Step S1: Collect multimodal raw data and construct input sequence A={ a 1 ,a 2 ,...,a m}.
[0083] In a specific implementation of the present invention, in step S1, the multimodal original data includes text data, audio data, image data, and video data.
[0084] In a specific implementation of the present invention, in step S1, the input sequence includes m elements, each of which represents a basic unit in the text, including words, characters, subwords, symbols, or other predefined text units.
[0085] The length of the input sequence is the number of elements contained in the input sequence, each of the elements corresponds to an independent basic unit, and the basic units corresponding to different elements are the same or different.
[0086] In a specific implementation of the present invention, in step S1, multimodal raw data is collected to construct an input sequence, which specifically includes the following steps:
[0087] Step S101, segmenting the collected multimodal raw data at equal intervals to form segmented multimodal raw data;
[0088] Step S102: construct an input sequence according to the segmented multimodal original data to form a sequence A={ a 1 ,a 2 ,..., a m}.
[0089] The equal interval time varies according to different model application types.
[0090] Step S2: construct a chain generative neural network model based on the input sequence A.
[0091] In a specific implementation of the present invention, in step S2, a chain generative neural network model is constructed according to the input sequence A, which specifically includes the following steps:
[0092] Step S201: Extract features from each data segment in the input sequence A to form a sequence B={ b 1 ,b 2 ,..., b m}.
[0093] Step S202: Perform linear or nonlinear transformation on sequence B to form sequence X={ x 1 ,x 2 ,...,x m};
[0094] Step S203: Input each piece of data in the sequence X into the basic unit selection network, and map and obtain multiple basic units corresponding to each piece of data in the sequence X as candidates.
[0095] Each of the basic units includes an object, wherein the object includes a neuron or a local network formed by a combination of multiple neurons, and the input and output of the object are equal; or,
[0096] Each of the basic units includes a chain structure formed by linearly connecting multiple objects, wherein each object is connected together in a specific order to form a continuous chain; or,
[0097] Each of the basic units includes a multi-path structure formed by nesting a plurality of the chain structures, and the chain structure is formed by linearly connecting a plurality of basic units to form a continuous, linear network structure.
[0098] like Figure 5-Figure 8 As shown, Figure 5 It is a basic unit with single input and single output, and the basic unit consists of a neuron. Figure 6 It is a basic unit with single input and single output. The basic unit is divided into a three-layer network structure. The first and third layers are composed of one neuron each, and the middle layer is composed of three neurons. After the basic unit is input, the input is transmitted to the three neurons in the middle layer through three paths. Finally, the three neurons transmit the output to the output neurons of the third layer respectively to obtain the final output result. Figure 7 It is a basic unit with dual input and dual output. Figure 8 It is a chain-type generative neural network model composed of multiple dual-input and dual-output basic units.
[0099] Step S204: for each piece of data in the sequence X, select the basic unit with the highest weight corresponding to the data from the multiple candidate basic units obtained by mapping, so as to obtainm A basic unit corresponding to the input sequence A.
[0100] Step S205: According to the obtained m Basic units are used to build a chain-type generative neural network model.
[0101] In a specific implementation of the present invention, in step S2, the chain generative neural network model includes one or more of the multi-path structures.
[0102] In a specific implementation of the present invention, in step S201, the features of the input sequence are extracted, including converting the sequence ID of the input sequence into a computable sequence feature by means of Embedding.
[0103] In a specific implementation of the present invention, in step S202, sequence A is linearly or nonlinearly transformed, including linearly or nonlinearly transforming sequence features through a Sequential network to form a transformed sequence feature B.
[0104] In a specific implementation of the present invention, in step S203, the input and output of the chain structure are jointly determined by the basic units it contains, and it is allowed to adapt to different input and output requirements by adding a conversion layer;
[0105] The multi-path structure is formed by nesting multiple chain structures, each chain structure is used as a sub-path, allowing information to be processed in parallel on multiple paths;
[0106] The multi-path structure allows for combination and configuration through different chain structures.
[0107] In a specific implementation of the present invention, in step S203, X is input into the basic unit selection network, and mapping is performed to obtain a plurality of basic units corresponding to each piece of data in the sequence X, including two methods;
[0108] in,
[0109] The first method specifically includes inputting each piece of data in the sequence X into the basic unit selection network to obtain multiple basic units corresponding to the piece of data;
[0110] The second method specifically includes: x 1 ,x 1 +x 2 ,...,x 1 + x 2 +...+xm The basic unit selection network is input in sequence in the form of to obtain multiple basic units.
[0111] like Fig. 9 As shown, when the input modal data is audio and video, the basic unit selected by the basic unit selection network includes basic unit 3 (i.e., shared basic unit) selected by both audio and video in addition to basic unit 2 selected only by audio modal data and basic unit 1 selected only by video modal data.
[0112] Step S3: input a plurality of input sequences for training, and perform training optimization on the chain generative neural network model.
[0113] In a specific implementation of the present invention, in step S3, when the chain generative neural network model is trained and optimized, the input is one or more modal data, and the output is one or more modal data. The number or types of modalities contained in the input and output are allowed to be the same or different.
[0114] In a specific implementation of the present invention, in step S3, a plurality of input sequences for training are input, and the chain generative neural network model is trained and optimized, which specifically includes the following steps:
[0115] Step S301, constructing a loss function of the chain generative neural network model according to the business type of the chain generative neural network model application;
[0116] Step S302: input a plurality of input sequences for training, and complete the training optimization of the chain generative neural network model according to the loss function.
[0117] Wherein, in step S301, the loss function is used to guide the optimization adjustment of the parameters of the chain generative neural network model. Example
[0118] like Figure 13-Figure 16 As shown, the multimodal shared neural network model construction device described in this embodiment specifically includes the following modules:
[0119] The multimodal raw data acquisition module is used to collect multimodal raw data and construct an input sequence A={ a 1 , a 2 ,...,a m}.
[0120] The multi-modal raw data acquisition module includes the following sub-modules:
[0121] The multimodal raw data segmentation submodule is used to segment the collected multimodal raw data according to equal intervals to form segmented multimodal raw data.
[0122] The sequence construction submodule is used to construct the input sequence according to the segmented multimodal raw data to form a sequence A={ a 1 ,a 2 ,...,a m}.
[0123] The chain generative neural network model building module is used to build a chain generative neural network model according to the input sequence A.
[0124] The chain generative neural network model construction module includes the following submodules:
[0125] The feature extraction submodule is used to extract features from each data segment in the input sequence A to form a sequence B={ b 1 ,b 2 ,...,b m}.
[0126] The feature transformation submodule is used to perform linear or nonlinear transformation on the sequence B to form a sequence X={ x 1 ,x 2 ,..., x m}.
[0127] The basic unit mapping submodule is used to input each piece of data in the sequence X into the basic unit selection network, and map and obtain multiple basic units corresponding to each piece of data in the sequence X as candidates.
[0128] The optimal basic unit selection submodule is used to select the basic unit with the highest weight corresponding to each data in the sequence X from the multiple candidate basic units obtained by mapping, so as to obtain m A basic unit corresponding to the input sequence A.
[0129] The network model construction submodule is used to obtain m Basic units are used to build a chain-type generative neural network model.
[0130] The chain generative neural network model training optimization module is used to input multiple input sequences for training and perform training optimization on the chain generative neural network model.
[0131] The chain generative neural network model training optimization module includes the following submodules:
[0132] A loss function construction submodule, used to construct a loss function of the chain generative neural network model according to the business type of the chain generative network model application;
[0133] The model optimization training submodule is used to input multiple input sequences for training and complete the training optimization of the chain generative neural network model according to the loss function.
[0134] The construction of the model input sequence is completed by the multimodal raw data segmentation submodule and the sequence construction submodule.
[0135] After the model input sequence is constructed, it is passed through the feature extraction submodule, feature transformation submodule, basic unit mapping submodule and optimal basic unit selection submodule in sequence to obtain basic units with the same number of elements as those in the input sequence.
[0136] According to the obtained basic units, the neural network model is constructed by the network model construction submodule.
[0137] Finally, the training optimization of the chain generative neural network model is completed through the loss function construction submodule and the model training optimization submodule.
[0138] The specific embodiments of the present invention are described in detail above, but they are only examples, and the present invention is not limited to the specific embodiments described above. For those skilled in the art, any equivalent modifications and substitutions made to the present invention are also within the scope of the present invention. Therefore, the equalization changes and modifications made without departing from the spirit and scope of the present invention should be included in the scope of the present invention.
Claims
1. A method for constructing a multimodal shared neural network model, characterized in that: The specific steps include: Step S1: Collect multimodal raw data and construct input sequence A={ a 1 ,a 2 ,...,a m }; Step S2: construct a chain generative neural network model according to the input sequence A; Step S3, inputting a plurality of input sequences for training, and performing training optimization on the chain generative neural network model; Wherein, in step S3, when the chain generative neural network model is trained and optimized, the input is one or more modal data, and the output is one or more modal data, and the number or type of modalities included in the input and output are allowed to be the same or different; In step S1, the multimodal original data includes text data, audio data, image data, and video data; In step S1, multimodal raw data is collected and an input sequence is constructed, which specifically includes the following steps: Step S101, segmenting the collected multimodal raw data at equal intervals to form segmented multimodal raw data; Step S102: construct an input sequence according to the segmented multimodal original data to form the input sequence A={ a 1 , a 2 ,...,a m }; Wherein, the equal interval time varies according to different model application types; In step S2, a chain generative neural network model is constructed according to the input sequence A, which specifically includes the following steps: Step S201: Extract features from each data segment in the input sequence A to form a sequence B={ b 1 ,b 2 ,...,b m }; Step S202: Perform linear or nonlinear transformation on sequence B to form sequence X={ x 1 ,x 2 ,...,x m }; Step S203: input each piece of data in the sequence X into the basic unit selection network, and map and obtain multiple basic units corresponding to each piece of data in the sequence X as candidates; Each of the basic units includes an object, wherein the object includes a neuron or a local network formed by a combination of multiple neurons, and the input and output of the object are equal; or, Each of the basic units includes a chain structure formed by linearly connecting multiple objects, wherein each object is connected together in sequence to form a continuous chain; or, Each of the basic units includes a multi-path structure formed by nesting a plurality of the chain structures, wherein the chain structure is formed by linearly connecting a plurality of basic units to form a continuous, linear network structure; Step S204: for each piece of data in the sequence X, select the basic unit with the highest weight corresponding to the data from the multiple candidate basic units obtained by mapping, so as to obtain m A basic unit corresponding to the input sequence A; Step S205: According to the obtained m Basic units to build a chain-type generative neural network model; In step S203, X is input into the basic unit selection network, and mapping is performed to obtain a plurality of basic units corresponding to each piece of data in the sequence X, including two methods; in, The first method specifically includes inputting each piece of data in the sequence X into the basic unit selection network to obtain multiple basic units corresponding to the piece of data; The second method specifically includes: x 1 ,x 1 +x 2 ,...,x 1 +x 2 +...+x m The basic unit selection network is input in sequence in the form of to obtain multiple basic units.
2. A method for constructing a multimodal shared neural network model based on claim 1, characterized in that: In step S1, the input sequence includes m elements, where each element represents a basic unit in the text, including a word, character, subword, symbol, or other predefined text unit; The length of the input sequence is the number of elements contained in the input sequence, each of the elements corresponds to an independent basic unit, and the basic units corresponding to different elements are the same or different.
3. A method for constructing a multimodal shared neural network model based on claim 1, characterized in that: In step S2, the chain generative neural network model includes one or more of the multi-path structures.
4. A method for constructing a multimodal shared neural network model based on claim 1, characterized in that: In step S203, the input and output of the chain structure are jointly determined by the basic units it contains, and it is allowed to adapt to different input and output requirements by adding conversion layers; The multi-path structure is formed by nesting multiple chain structures, each chain structure is used as a sub-path, allowing information to be processed in parallel on multiple paths; The multi-path structure allows for combination and configuration through different chain structures.
5. A method for constructing a multimodal shared neural network model based on claim 1, characterized in that: In step S201, features of the input sequence are extracted, including converting the sequence ID of the input sequence into computable sequence features by means of embedding.
6. A method for constructing a multimodal shared neural network model based on claim 1, characterized in that: In step S202, sequence B is linearly or nonlinearly transformed, including linearly or nonlinearly transforming sequence features through a Sequential network to form a transformed sequence feature X.
7. A method for constructing a multimodal shared neural network model based on claim 1, characterized in that: In step S3, a plurality of input sequences for training are input to train and optimize the chain generative neural network model, which specifically includes the following steps: Step S301, constructing a loss function of the chain generative neural network model according to the business type of the chain generative neural network model application; Step S302: input a plurality of input sequences for training, and complete the training optimization of the chain generative neural network model according to the loss function.
8. A method for constructing a multimodal shared neural network model according to claim 7, characterized in that: In step S301, the loss function is used to guide the optimization adjustment of the parameters of the chain generative neural network model.
9. A multimodal shared neural network model construction device, characterized in that: The modules include: The multimodal raw data acquisition module is used to collect multimodal raw data and construct an input sequence A={ a 1 ,a 2 ,..., a m }; A chain generative neural network model building module is used to build a chain generative neural network model according to an input sequence A; A chain generative neural network model training optimization module, used to input a plurality of input sequences for training, and perform training optimization on the chain generative neural network model; Wherein, during the training and optimization of the chain generative neural network model, the input is one or more modal data, and the output is one or more modal data, and the number or types of modalities included in the input and output are allowed to be the same or different; Among them, the multimodal raw data acquisition module includes the following submodules: The multimodal raw data segmentation submodule is used to segment the collected multimodal raw data at equal intervals to form segmented multimodal raw data; The sequence construction submodule is used to construct the input sequence according to the segmented multimodal raw data to form a sequence A={ a 1 , a 2 ,...,a m }; Wherein, the equal interval time varies according to different model application types; Among them, the chain generative neural network model construction module includes the following sub-modules: The feature extraction submodule is used to extract features from each data segment in the input sequence A to form a sequence B={ b 1 , b 2 ,...,b m }; The feature transformation submodule is used to perform linear or nonlinear transformation on the sequence B to form a sequence X={ x 1 ,x 2 ,...,x m }; A basic unit mapping submodule is used to input each piece of data in the sequence X into the basic unit selection network, and map and obtain multiple basic units corresponding to each piece of data in the sequence X as candidates; The optimal basic unit selection submodule is used to select the basic unit with the highest weight corresponding to each data in the sequence X from the multiple candidate basic units obtained by mapping, so as to obtain m A basic unit corresponding to the input sequence A; The network model construction submodule is used to obtain m Basic units to build a chain-type generative neural network model; In the basic unit mapping submodule, X is input into the basic unit selection network, and mapping is performed to obtain multiple basic units corresponding to each data in the sequence X, including two methods; in, The first method specifically includes inputting each piece of data in the sequence X into the basic unit selection network to obtain multiple basic units corresponding to the piece of data; The second method specifically includes: x 1 ,x 1 +x 2 ,...,x 1 +x 2 +...+x m The basic unit selection network is input in the form of sequentially to obtain multiple basic units; Among them, the chain generative neural network model training optimization module includes the following sub-modules: A loss function construction submodule, used to construct a loss function of the chain generative neural network model according to the business type of the chain generative network model application; The model optimization training submodule is used to input multiple input sequences for training and complete the training optimization of the chain generative neural network model according to the loss function.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, it implements a method for constructing a multimodal shared neural network model as described in any one of claims 1 to 8.
11. An electronic device, characterized in that: It includes a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, a method for constructing a multimodal shared neural network model as described in any one of claims 1 to 8 is implemented.
Citation Information
Patent Citations
Artificial neural network calculating device and method for sparse connection
CN105512723A
Artificial neural network operation device and method
CN108334944A
Data processing method and device and readable storage medium
CN110717589A
Generative adversarial network embedded representation learning method
CN111611785A
Decoupled network structure searching method and device and readable storage medium
CN113255892A
