Multi-modal network acceleration method and system based on dynamic bypass selection

Through the dynamic bypass selection method, for the full inference problem of multi-modal neural networks, modal type judgment and bypass fitness evaluation are used to select the appropriate bypass for feature extraction and fusion, which solves the problem of high computational consumption and insufficient accuracy. problems, achieving resource saving and time efficiency improvement.

CN118780368AActive Publication Date: 2024-10-15SHANGHAI JIAOTONG UNIV

Patent Information

Application Number
CN202410856440.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-28
Publication Date
2024-10-15
Estimated Expiration
2044-06-28

AI Technical Summary

Technical Problem

Existing multi-modal neural networks require full inference for all modalities, resulting in high computational consumption, waste of resources, and insufficient inference accuracy.

Method used

The dynamic bypass selection method is used to select the appropriate bypass for feature extraction and fusion through modal type judgment and bypass fitness evaluation, reducing the amount of calculation and improving accuracy.

Benefits of technology

It significantly reduces the calculation amount and delay of multi-modal networks, improves resource utilization and time efficiency, while maintaining the performance of multi-modal networks.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118780368A_ABST
    Figure CN118780368A_ABST
Patent Text Reader

Abstract

The invention discloses a multi-modal network acceleration method and system based on dynamic bypass selection, and the method comprises the steps: carrying out the judgment of the modal type of original multi-modal data, and then carrying out the bypass adaptation degree evaluation processing or directly carrying out the hierarchical reasoning of a basic multi-modal model; taking the bypass with the highest adaptation degree evaluation as a selection result for judging a subsequent execution scheme of hierarchical reasoning of the basic multi-modal model, performing feature alignment on intermediate features obtained by hierarchical reasoning of the basic multi-modal model, and performing bypass processing according to the selected bypass to generate bypass features; and all bypass features are fused and reasoned to obtain a specialized task result. According to the characteristics provided by different modal early levels, the improved dynamic bypass selection method is constructed, the overall multi-modal network calculation amount is fully reduced, the delay is reduced, and the partial precision is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to a technology in the field of neural network applications, specifically a multi-modal network acceleration method and system with dynamic bypass selection. Background Art

[0002] A multimodal neural network refers to a neural network model that integrates information from different modalities (such as text, images, and audio) to enable more comprehensive learning and analysis. Compared with traditional unimodal neural networks, multimodal neural networks can study a single object from multiple angles, thereby performing more accurate analysis and prediction. Some existing work achieves higher performance and stability of the model through multimodal network integration. However, since this method requires full inference of all modalities, it brings greater overhead, resulting in higher computational consumption and memory usage, which causes unnecessary waste of resources for some simple tasks. Summary of the invention

[0003] In view of the problems in the prior art of excessively high costs and increased overall application delays caused by multiple repeated encoders and additional fusion operations, as well as the deficiency of the prior multimodal technology that the reasoning accuracy is significantly reduced when there are differences in the expression capabilities of different modalities or overfitting, the present invention proposes a multimodal network acceleration method and system with dynamic bypass selection. According to the characteristics of the features provided by the early levels of different modalities that can provide sufficiently correct prediction of needs, an improved dynamic bypass selection method is constructed, which fully reduces the overall multimodal network calculation amount, reduces delays and improves some accuracy.

[0004] The present invention is achieved through the following technical solutions:

[0005] The present invention relates to a multimodal network acceleration method for dynamic bypass selection. After the modality type is judged on the original multimodal data, bypass fitness evaluation processing is performed respectively or basic multimodal model hierarchical reasoning is directly performed. The bypass with the highest fitness evaluation is used as the selection result to judge the subsequent execution plan of the basic multimodal model hierarchical reasoning. The intermediate features obtained by the basic multimodal model hierarchical reasoning are feature aligned and bypass features are generated according to the selected bypass through bypass processing. All bypass features are fused and reasoned to obtain a specialized task result.

[0006] The original multimodal data, i.e., the original input of the multimodal task, includes but is not limited to images, text and voice information, and its data sources include but are not limited to cameras, sensors, user input text and microphones.

[0007] The feature alignment refers to: converting the features of the modality type judged as an image into a form with the same dimension as the final output features of the modality through a neural network.

[0008] The bypass fitness evaluation process refers to: using a simplified model to extract features from the original multimodal data to obtain simplified features of each modality, fusing the simplified features of each modality to obtain multimodal features, and using the multimodal features to evaluate the fitness of each bypass.

[0009] The simplified model refers to: a neural network model with low-consumption features constructed for different modal data, which is used to extract features with certain expressive capabilities from the original multimodal data, including but not limited to using the ResNet model for feature extraction for the image modality and using the Attention model for feature extraction for the text and voice modalities.

[0010] The basic multimodal model refers to: a neural network model for extracting high-expressive features of each modality from the original multimodal data, including but not limited to a ResNet model for extracting features from an image modality, a BERT model for extracting features from a text modality, and a Librosa model for extracting features from a speech modality. Specifically, it includes: a plurality of neural network layers connected in sequence, the input of each neural network layer is the output of the previous neural network layer, the input of the first neural network layer is the original multimodal data, and hierarchical reasoning is achieved through layer-by-layer feature extraction.

[0011] The intermediate features refer to the features output by one of the neural network layers during the hierarchical reasoning process of the basic multimodal model.

[0012] During the hierarchical reasoning of the basic multimodal model, each time a neural network layer is passed, it is determined whether the current layer has reached the layer corresponding to the bypass selection result. If it has reached the layer, the intermediate features output by the layer are output to the corresponding bypass processing. Otherwise, the next layer of the basic multimodal model is inferred, and the comparison step is repeated after the reasoning is completed.

[0013] The bypass processing refers to: obtaining intermediate features in the hierarchical reasoning process of the basic multimodal model, and after feature alignment processing, using a low-computing power neural network to obtain the final output features of the basic multimodal model.

[0014] The feature alignment process refers to: for a modality whose modality type is determined to be an image, a low-computing-power neural network is used to convert the input features into a form having the same dimension as the final output features of the modality.

[0015] The feature fusion refers to: merging the final output features of each modality through a neural network to obtain a multimodal feature covering all modal information. Technical Effects

[0016] The present invention uses a basic model module to cope with the feature extraction of various modal data; by introducing a bypass module for dynamic adaptation, it can match and fuse networks of different dimensions and types to generate dynamic bypasses, so that the system can be widely adapted to existing network models; the bypass selection module is introduced to run with a small amount of time and space cost, and the bypass reasoning combination with the best accuracy and time consumption is obtained by screening and comparing. Compared with the existing technology, while ensuring the performance of the multimodal network, it can significantly improve the resource utilization and time efficiency of the multimodal network system. BRIEF DESCRIPTION OF THE DRAWINGS

[0017] Figure 1 It is a flow chart of the present invention;

[0018] Figure 2 It is a schematic diagram of the system structure of the present invention;

[0019] Figure 3 It is a schematic diagram of the execution process of the embodiment;

[0020] Figure 4 The following is a comparison chart of the execution delay and total saved delay of each module of the present invention under different data sets. DETAILED DESCRIPTION

[0021] like Figure 2 As shown, this embodiment involves a multimodal network acceleration system with dynamic bypass selection, including: an integrated reasoning module including a distributor, a controller, a fusion device and a reasoner, and a bypass selection module, a basic model module and a bypass module respectively connected thereto, wherein: the integrated reasoning module sends the original multimodal data to the bypass selection module and the basic model module respectively through the distributor, the controller uses the bypass selection result obtained by the bypass selection module to perform hierarchical judgment on the reasoning process of the basic model module, and controls the operation of the basic model module, the fusion device fuses the modal features output by the bypass module to obtain a multimodal feature with high expression ability and covering all modal information, and the reasoner obtains the fusion device. The multi-modal features of the proposed method are inferred to obtain specialized task results; the bypass selection module extracts the shallow features of each modal data and evaluates the fitness of the bypass network corresponding to each mode in the bypass module, and outputs the corresponding optimal bypass selection result to the integrated reasoning module; the basic model module performs hierarchical reasoning on the corresponding modalities, and after each hierarchical reasoning, the obtained feature data is continued to be reasoned on the next layer or output to the bypass module according to the result of the hierarchical judgment of the controller; the bypass module uses the corresponding bypass network to extract features and generate secondary features of each modality, and then outputs them to the fusion device of the integrated reasoning module. The reasoner based on different task requirements performs corresponding task outputs according to the fused features.

[0022] The corresponding modality initial level reasoning refers to: using the basic feature extraction structure of the basic residual network for image data, and selecting the attention mechanism as the basic feature extraction structure for text data, so as to achieve the extraction requirements of model features that meet the task requirements.

[0023] The basic model module outputs the sequence number of the currently completed level to the controller after the feature extraction of each level is completed, and compares the optimal bypass selection output by the bypass selection module with the currently completed level. If the two are equal, the features obtained by the currently completed level are output to the bypass module for distribution, otherwise the next level of reasoning is performed. The basic model module specifically includes: multiple single-modal multi-level neural networks. For any modality of the multi-level neural network, the feature feature process of each multi-level neural network is: x i =F i (x i-1 )=F i (F i-1 (…F1(x0))), where: x i is the feature obtained after the feature extraction of the first i layers of the single-modal multi-layer neural network, F i (·) is the i-th layer of the network, and x0 is the original input of the modality.

[0024] The bypass selection module includes: a feature extraction unit, a feature fusion unit and a bypass fitness evaluation unit, wherein: the feature extraction unit performs fast feature extraction of sub-modalities according to the original multimodal data information to obtain shallow features of each modality; the feature fusion unit performs fusion processing according to the shallow features of each modality to obtain multimodal features; the bypass fitness evaluation unit performs fitness evaluation of each bypass network according to the multimodal features to obtain the optimal bypass combination that can obtain accurate results with minimum inference delay.

[0025] The bypass module includes: multiple bypass networks, wherein: each bypass network corresponds to each layer of each single-modal multi-layer neural network in the basic model module, and each bypass network extracts features with high expressiveness of the corresponding modality that can be used for integrated reasoning based on the intermediate features of the basic model module.

[0026] The bypass network includes: a feature alignment unit and a feature extraction unit, wherein: the feature alignment unit performs feature alignment processing on the intermediate features according to the modal type judgment information, the intermediate feature information obtained from the basic model module and the deepest feature dimension information to obtain features with the same deepest feature dimension; the feature extraction unit performs secondary feature extraction processing according to the features obtained by the dimensionality reduction unit to obtain modal features that can be used for fusion reasoning to obtain accurate results.

[0027] The bypass network in this embodiment is implemented by a low-computing-power version of the encoder.

[0028] The described integrated inference module includes: a distributor, a controller, a fuser, and an inferencer, where: the distributor distributes the original multimodal data input by the task to the bypass selection module and the basic model module; the controller receives information on the optimal bypass network from the bypass selection module to control the operation of the basic model modality; the fuser receives features with high expressiveness from each modality of the bypass module and fuses them to obtain multimodal features; the inferencer uses the multimodal features to infer and obtain the specialized task result.

[0029] The control of the operation of the basic model modality means that for any modality, when the optimal bypass selection obtained by the bypass selection module is D, record that the neural network of this modality in the basic model modality is currently executed to the i-th layer to obtain the feature x i , when i < D, continue to execute the network in the basic model modality, that is, x i+1 = F i+1 (x i ), otherwise (i = D), execute the corresponding bypass network in the bypass module, y = P i (x i ), to obtain the output result of the bypass module for this modality.

[0030] As Figure 1 shown, in this embodiment, after performing modality judgment on the type of the original multimodal data, the original data is used to extract shallow features using a simplified model, the extracted shallow features are used to evaluate the bypass adaptability, and the corresponding bypass selection result is output according to the maximum value. Then, the collected original data is used for hierarchical inference using the basic model, and it is determined whether to output based on the comparison between the bypass selection result output by the bypass selection module and the current hierarchical result; finally, all multimodal intermediate features output by the bypass module are processed by the bypass, the generated bypass features are used for feature fusion, and the fusion features are used to output the specialized task result for the task. The results are shown in Table 1, Figure 4 as

[0031] Table 1

[0032] The three technical solutions in Table 1 are respectively represented as: (a) LateFusion is a traditional late fusion model; (b) MMExit is a multimodal network acceleration technology based on early exit; (c) is the multimodal network acceleration technology and system based on dynamic bypass selection in this embodiment. The three performance indicators used in the table are respectively: (a) Acc is the accuracy rate of the embodiment result, corresponding to the precision of the embodiment result; (b) F1 is the F1 score of the embodiment result, corresponding to the precision of the embodiment result; (c) Time is the execution time of the embodiment, corresponding to the latency of the embodiment result.

[0033] ① Table 1 compares the delay and accuracy of the present embodiment and the existing multimodal network on four multimodal data sets. From the data in the table, it can be seen that the present invention achieves the best accuracy and delay in all multimodal data sets.

[0034] ② Figure 4 Compare the delay of each module of this embodiment with that of the traditional late fusion model. From the results in the figure, we can see that although the bypass module and the bypass selection module themselves bring additional delay, they also reduce the delay of the original basic model module and the integrated reasoning module, reducing the delay by 16% to 42% compared to the late fusion model.

[0035] Compared with the existing technology, this method introduces a bypass selection module, which makes full inference unnecessary in most cases, reduces resource consumption and saves time; at the same time, by introducing a bypass module, it adapts the output of each level, has high adaptability, reasonably matches the task requirements, and reduces the overall task accuracy loss; the integrated reasoning module is introduced to coordinate the data distribution and the logical link between the above two modules, and unify the logical sequence of system execution.

[0036] The above-mentioned specific implementation can be partially adjusted in different ways by those skilled in the art without departing from the principle and purpose of the present invention. The protection scope of the present invention shall be based on the claims and shall not be limited by the above-mentioned specific implementation. Each implementation scheme within its scope shall be subject to the constraints of the present invention.

Claims

1. A multi-modal network acceleration method with dynamic incremental bypass selection, characterized in that: After the modal type is determined for the original multimodal data, bypass fitness evaluation is performed or basic multimodal model hierarchical reasoning is performed directly. The bypass with the highest fitness evaluation is selected as the result to determine the subsequent execution plan of the basic multimodal model hierarchical reasoning. The intermediate features obtained by the basic multimodal model hierarchical reasoning are aligned and bypass features are generated according to the selected bypass. All bypass features are fused and inferred to obtain the specialized task result.

2. The multi-modal network acceleration method with dynamic incremental bypass selection according to claim 1 is characterized in that: The bypass fitness evaluation process refers to: using a simplified model to extract features from the original multimodal data to obtain simplified features of each modality, the simplified features of each modality are used to obtain multimodal features through feature fusion, and the multimodal features are used to evaluate the fitness of each bypass, that is, to obtain accurate results with minimal inference delay.

3. The multi-modal network acceleration method with dynamic incremental bypass selection according to claim 2 is characterized in that: The simplified model refers to: a neural network model with low-consumption features constructed for different modal data, which is used to extract features with certain expressive capabilities from the original multimodal data, including using the ResNet model for feature extraction for the image modality and using the Attention model for feature extraction for the text and voice modalities.

4. The multi-modal network acceleration method with dynamic incremental bypass selection according to claim 1 is characterized in that: The basic multimodal model comprises a plurality of neural network layers connected in sequence, the input of each neural network layer is the output of the previous neural network layer, the input of the first neural network layer is the original multimodal data, and hierarchical reasoning is achieved through layer-by-layer feature extraction.

5. The multi-modal network acceleration method with dynamic incremental bypass selection according to claim 1 is characterized in that: During the hierarchical reasoning of the basic multimodal model, each time a neural network layer is passed, it is determined whether the current layer has reached the layer corresponding to the bypass selection result. If it has reached the layer, the intermediate features output by the layer are output to the corresponding bypass processing. Otherwise, the next layer of the basic multimodal model is inferred, and the comparison step is repeated after the reasoning is completed.

6. A multi-modal network acceleration system for implementing the dynamic bypass selection of any of the methods described in claims 1-5, characterized in that: include: The invention comprises an integrated reasoning module of a distributor, a controller, a fusion device and a reasoner, and a bypass selection module, a basic model module and a bypass module respectively connected thereto, wherein: the integrated reasoning module sends the original multimodal data to the bypass selection module and the basic model module respectively through the distributor, the controller uses the bypass selection result obtained by the bypass selection module to perform hierarchical judgment on the reasoning process of the basic model module and control the operation of the basic model module, the fusion device fuses the modal features output by the bypass module to obtain a multimodal feature with high expression ability and covering all modal information, and the reasoner infers the multimodal features obtained by the fusion device to obtain a specialized task. The bypass selection module extracts the shallow features of each modal data and evaluates the fitness of the bypass network corresponding to each mode in the bypass module, and outputs the corresponding optimal bypass selection result to the integrated reasoning module; the basic model module performs hierarchical reasoning of the corresponding modal, and after each hierarchical reasoning, the obtained feature data is continued to be hierarchical reasoning of the next layer or output to the bypass module according to the result of the hierarchical judgment of the controller; the bypass module uses the corresponding bypass network to extract features and generate secondary features of each mode and then outputs them to the fusion device of the integrated reasoning module. The reasoner based on different task requirements performs corresponding task output according to the fused features; The corresponding modality initial level reasoning refers to: using the basic feature extraction structure of the basic residual network for image data, and selecting the attention mechanism as the basic feature extraction structure for text data, so as to achieve the extraction requirements of model features that meet the task requirements.

7. The multimodal network acceleration system according to claim 6, characterized in that: The basic model module outputs the sequence number of the currently completed level to the controller after the feature extraction of each level is completed, and compares the optimal bypass selection output by the bypass selection module with the currently completed level. If the two are equal, the features obtained by the currently completed level are output to the bypass module for distribution, otherwise the next level of reasoning is performed. The basic model module specifically includes: multiple single-modal multi-level neural networks. For any modality of the multi-level neural network, the feature feature process of each multi-level neural network is: x i =F i (x i-1 )=F i (F i-1 (…F1(x0))), where: xi is the feature obtained after the feature extraction of the first i layers of the single-modal multi-layer neural network, Fi(·) is the i-th layer of the network, and x0 is the original input of the modality.

8. The multimodal network acceleration system according to claim 6, characterized in that: The bypass selection module includes: a feature extraction unit, a feature fusion unit and a bypass fitness evaluation unit, wherein: the feature extraction unit performs fast feature extraction of sub-modalities according to the original multimodal data information to obtain shallow features of each modality; the feature fusion unit performs fusion processing according to the shallow features of each modality to obtain multimodal features; the bypass fitness evaluation unit performs fitness evaluation of each bypass network according to the multimodal features to obtain the optimal bypass combination that can obtain accurate results with minimum inference delay.

9. The multimodal network acceleration system according to claim 6, characterized in that: The bypass module includes: a plurality of bypass networks, wherein: each bypass network corresponds to each layer of each single-modal multi-layer neural network in the basic model module, and each bypass network extracts features with high expressiveness of the corresponding modality that can be used for integrated reasoning based on the intermediate features of the basic model module; The bypass network includes: a feature alignment unit and a feature extraction unit, wherein: the feature alignment unit performs feature alignment processing on the intermediate features according to the modal type judgment information, the intermediate feature information obtained from the basic model module and the deepest feature dimension information to obtain features with the same deepest feature dimension; the feature extraction unit performs secondary feature extraction processing according to the features obtained by the dimensionality reduction unit to obtain modal features that can be used for fusion reasoning to obtain accurate results.

10. The multimodal network acceleration system according to claim 6, characterized in that: The integrated reasoning module includes: a distributor, a controller, a fusion device and a reasoner, wherein: the distributor distributes the original multimodal data of the task input to the bypass selection module and the basic model module, the controller receives the information of the optimal bypass network from the bypass selection module to control the operation of the basic model mode, the fusion device receives the highly expressive features of each mode from the bypass module and fuses them to obtain multimodal features, and the reasoner uses the multimodal features to infer the results of the specialized task; The operation of controlling the basic model mode means that for any mode, when the optimal bypass selection obtained by the bypass selection module is D, record that the neural network in the basic model mode reaches the i-th layer for the current mode and obtains the feature x i , when i < D, continue to execute the network in the basic model mode, that is, x i+1 = F i+1 (x i ), otherwise (i = D) execute the corresponding bypass network in the bypass module, y = P i (x i ), and obtain the output result of the bypass module for this mode.

Citation Information

Patent Citations

  • Three-dimensional model retrieval method based on LSTM network multi-modal information fusion

    CN110163091A

  • Vision-based teleoperation of dexterous robotic system

    CN112540671A

  • Video common knowledge reasoning implementation method based on multi-modal fusion

    CN113869324A

  • Model reasoning method and device, electronic equipment and storage medium

    CN117494812A

Cited By

  • Traffic signal lamp control method and system based on space-time flow data

    CN119600830A

  • Bypass control method for power distribution power-saving system

    CN119921454A