Multimodal large model construction method, system, refrigeration equipment, and storage medium
By preprocessing and converting multi-modal data, combined with pruning and compression technology, and optimizing the structure of large models, the problem of traditional models requiring large computing resources in multi-modal data processing is solved, and efficiency and applicability are improved.
Patent Information
- Application Number
- CN202411044765.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-01
- Publication Date
- 2024-10-29
- Estimated Expiration
- 2044-08-01
AI Technical Summary
Traditional deep learning large models require huge computing resources when processing multi-modal data, resulting in limited performance improvement and increased training and deployment costs. It is especially difficult to optimize when processing large-scale data sets.
By obtaining multi-modal data for preprocessing and conversion, a large model training corpus is generated, and the embedding layer and activation layer pruning is performed on the encoder side, and the decoder side performs data decoding and compression, combining semantic compression and denoising technology. Optimize model structure to reduce computing resource requirements.
It significantly improves the computational efficiency of deep learning models in multi-modal data processing, reduces resource requirements, maintains the model's ability to process key information, and enables the model to be deployed and used in a wider range of application scenarios.
Smart Images

Figure CN118551343B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of computer technology, and in particular to a multi-modal large model construction method, system, refrigeration equipment, and storage medium. Background Art
[0002] In the rapidly developing field of artificial intelligence, especially when processing multimodal data, how to effectively improve the computing efficiency and resource utilization of large models has become an urgent problem that needs to be solved. With the surge in data volume and the increase in the complexity of large models, traditional deep learning large models often face tremendous pressure on computing resources when processing multiple types of data such as text, voice and video. This not only limits the further improvement of large model performance, but also increases the cost of large model training and deployment.
[0003] Existing technologies face the following problems: how to effectively reduce the demand for computing resources of large models without sacrificing the performance of large models, especially when processing large-scale data sets containing a large amount of redundant information; secondly, how to optimize the structure of large models to enhance the ability of large models to process multimodal data, including improving the accuracy of data processing and the efficiency of large model training. Summary of the invention
[0004] The object of the present invention is to provide a multi-modal large model construction method, system, refrigeration equipment, and storage medium.
[0005] The present invention provides a method for constructing a multimodal large model, which comprises the steps of:
[0006] Acquiring multimodal data, the multimodal data comprising at least two of voice data, text data, image data, audio data, and video data;
[0007] Preprocessing and converting the multimodal data, and fusing the converted multimodal data;
[0008] Generate a large model training corpus based on fused multimodal data;
[0009] At the large model encoder end, the training corpus input is encoded, the input data and output data of the embedding layer are pruned at the neurons, and the activation layer is pruned;
[0010] At the large model decoder end, the encoded data is decoded and redundant data is compressed before output;
[0011] Package and deploy large application models.
[0012] As a further improvement of the present invention, the pruning process of the input data and output data of the embedding layer at the neuron specifically includes:
[0013] The input data and output data of the embedding layer are normalized, and the normalized value of each neuron is calculated. When the normalized value is less than a preset embedding layer pruning threshold, the input data and output data of the embedding layer are pruned to remove rows or columns of the corresponding transposed matrix.
[0014] As a further improvement of the present invention, the pruning process of the activation layer specifically includes:
[0015] The importance of the output data of the activation layer including the multi-head attention mechanism is evaluated and calculated. When the importance of the output data is less than a preset activation layer pruning threshold, the activation layer is pruned.
[0016] As a further improvement of the present invention, the decoding of the encoded data and the compression of the redundant data for output specifically include:
[0017] Perform semantic compression on the word-level for the encoded text feature vectorization;
[0018] The compressed text feature vector is decoded using an autoregressive decoder to generate the final output data in text format.
[0019] As a further improvement of the present invention, when outputting voice and / or video data, it also includes:
[0020] De-noise, restore and separate the noisy data to obtain the undecoded features or vectors of the denoised data;
[0021] Autoregressive decoding is performed to restore the voice and / or video data.
[0022] As a further improvement of the present invention, the acquiring of multimodal data specifically includes:
[0023] Initialize multimodal data acquisition channels;
[0024] Acquiring multimodal data collected by a data collection device, and / or,
[0025] Acquire multimodal data transmitted from a client terminal.
[0026] As a further improvement of the present invention, the multimodal data includes voice data, text data, image data, audio data and video data.
[0027] As a further improvement of the present invention, the preprocessing and converting of the multimodal data specifically includes:
[0028] Cleaning and formatting the multimodal data;
[0029] Separating the video data into audio and video to obtain separated video audio data and video image data;
[0030] Preprocess the text data;
[0031] Perform standardization and adjustment processing on image data and video image data.
[0032] As a further improvement of the present invention, the preprocessing and converting of the multimodal data further includes:
[0033] Extracting features of the voice data and video voice data to obtain voice features;
[0034] Inputting the speech features into a speech recognition convolutional neural network to obtain output text data;
[0035] Aligning the output text data sequence with the speech feature sequence by a connection temporal classification method;
[0036] The output text data is combined through a fully connected layer and then output to a classification function to calculate a score to obtain speech text data.
[0037] As a further improvement of the present invention, the preprocessing and converting of the multimodal data further includes:
[0038] Acquire image feature sequences of image data and video image data;
[0039] The image semantic representation is obtained through a large model of distillation diffusion deep fusion based on spatiotemporal and long-distance dependent features;
[0040] The image semantics is output by connecting the temporal classification and the fully connected layer.
[0041] As a further improvement of the present invention, the image semantic representation is obtained by using a distillation diffusion deep fusion large model based on spatiotemporal and long-distance dependent features, specifically including:
[0042] After the distillation diffusion deep fusion large model is trained, the teacher model is introduced into a student model that is continuous in time and space to obtain a student model with the same parameters as the teacher model;
[0043] Convert the distilled large model into a student model with discrete time steps and short steps, and repeat the above steps until the teacher model is distilled to half the steps of the student model.
[0044] As a further improvement of the present invention, it also includes:
[0045] Obtain historical multimodal data, vectorize the historical multimodal data, and map it to the same vector space for transfer learning.
[0046] As a further improvement of the present invention, the generating of a large model training corpus based on the fused multimodal data specifically includes:
[0047] Generate large model training corpora of supervised learning, semi-supervised learning and unsupervised learning types according to the data training type.
[0048] As a further improvement of the present invention, the deploying and applying the large model includes:
[0049] Get a large model service application;
[0050] After review and authorization, the interface is connected to the big model and the big model is called;
[0051] Monitor the performance and status of large models in real time during use, and record call data and performance data.
[0052] The present invention provides a multi-modal large model construction system, which comprises:
[0053] a data acquisition module configured to acquire multimodal data, wherein the multimodal data includes at least two of voice data, text data, image data, audio data, and video data;
[0054] A data processing module, configured to preprocess and convert the multimodal data and fuse the converted multimodal data;
[0055] A corpus generation module, configured to generate a large model training corpus based on the fused multimodal data;
[0056] The large model optimization module is configured to encode the training corpus input at the large model encoder end, prune the input data and output data of the embedding layer at the neurons, and prune the activation layer; and decode the encoded data and compress the redundant data before outputting it at the large model decoder end;
[0057] The large model application module is configured to deploy and apply the large model.
[0058] The present invention provides a refrigeration device, comprising:
[0059] A memory for storing executable instructions;
[0060] The processor is used to implement the above-mentioned multimodal large model construction method when running the executable instructions stored in the memory.
[0061] The present invention provides a storage medium storing executable instructions, which implement the above-mentioned multimodal large model construction method when executed by a processor.
[0062] The beneficial effects of the present invention are as follows: after acquiring multimodal data, the present invention efficiently encodes and compresses the multimodal data, especially using semantic compression technology to reduce the redundancy of text data, and applying denoising technology to improve the quality of voice and video data. Not only is the data itself optimized, but the burden on model training is also reduced. The embedding layer and activation layer of the model are further streamlined through context pruning technology to remove neurons that contribute less to the final model performance, thereby reducing the model's demand for computing resources while maintaining the model's ability to process key information. The above steps significantly improve the computational efficiency of the deep learning model when processing multimodal data, and reduce the demand for resources through the optimization of the model structure, so that the model can be deployed and used in a wider range of application scenarios. BRIEF DESCRIPTION OF THE DRAWINGS
[0063] Figure 1 It is a schematic diagram of the steps of a method for constructing a multimodal large model in one embodiment of the present invention;
[0064] Figure 2 is a schematic diagram of preprocessing steps of multimodal data in one embodiment of the present invention;
[0065] Figure 3 is a schematic diagram of steps for converting voice data into text data in one embodiment of the present invention;
[0066] Figure 4 is a schematic diagram of steps for converting image data into text data in one embodiment of the present invention;
[0067] Figure 5 is a schematic diagram of step S4 of a multimodal large model construction method in one embodiment of the present invention;
[0068] Figure 6 It is a block diagram of a multimodal large model building system in one embodiment of the present invention. DETAILED DESCRIPTION
[0069] In order to make the purpose, technical solution and advantages of the present invention clearer, the technical solution of the present invention will be clearly and completely described below in combination with the specific implementation methods of the present invention and the corresponding drawings. Obviously, the described implementation methods are only part of the implementation methods of the present invention, not all implementation methods. Based on the implementation methods of the present invention, all other implementation methods obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present invention.
[0070] The embodiments of the present invention are described in detail below, and examples of the embodiments are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are only used to explain the present invention, and cannot be understood as limiting the present invention.
[0071] This embodiment provides a method for building a multimodal large model. After acquiring multimodal data, the multimodal data is efficiently encoded and compressed, especially using semantic compression technology to reduce the redundancy of text data, and applying denoising technology to improve the quality of voice and video data. Not only does it optimize the data itself, but it also reduces the burden on model training. The embedding layer and activation layer of the model are further streamlined through context pruning technology, removing those neurons that contribute less to the final model performance, reducing the model's demand for computing resources while maintaining the model's ability to process key information.
[0072] The method provided in this embodiment can be applied to a large model of interaction between smart electronic appliances and users. Exemplarily, in this embodiment, the method is described by taking a smart refrigerator as an example. Based on the usage scenario of the smart refrigerator, this embodiment adaptively optimizes the acquisition and processing method of multimodal data, which is suitable for the specific information interaction and service operation requirements of refrigeration equipment.
[0073] like Figure 1 FIG. 1 is a schematic diagram of the steps of a multimodal large model construction method provided by the present invention, which includes:
[0074] S1: Acquire multimodal data, where the multimodal data includes at least two of voice data, text data, image data, audio data, and video data.
[0075] S2: Preprocess and transform the multimodal data, and fuse the transformed multimodal data.
[0076] S3: Generate a large model training corpus based on the fused multimodal data.
[0077] S4: On the large model encoder side, the training corpus input is encoded, the input data and output data of the embedding layer are pruned at the neurons, and the activation layer is pruned.
[0078] S5: At the large model decoder end, the encoded data is decoded and redundant data is compressed before output.
[0079] S6: Package and deploy the application model.
[0080] In step S1, multimodal data is obtained, which specifically includes:
[0081] Initialize the multimodal data acquisition channel; acquire the multimodal data acquired by the data acquisition device, and / or acquire the multimodal data transmitted from the client terminal.
[0082] In this embodiment, the multimodal data includes voice data, text data, image data, audio data and video data.
[0083] First, initialize the channel for multimodal information data input to ensure smooth data collection and transmission.
[0084] To obtain multimodal information for smart refrigerators, it is necessary to integrate multiple input methods, such as voice, text, and video data collected in real time and offline. Diversified data access methods can adapt to different usage scenarios and user habits, thereby enhancing the convenience and efficiency of user interaction.
[0085] In this embodiment, the smart refrigerator collects the user's real-time voice data through built-in microphones and microphone arrays. Video and image data are collected through the camera in the refrigerator. In addition, the user's voice, video and text data can also be transmitted through client devices connected to the refrigerator. The devices include mobile phones, tablets, smart speakers, smart bracelets or Bluetooth headsets, etc., which are all smart electronic devices with information sending functions. Users can directly input multimodal data into these client devices. After the devices collect the data, they are sent to the smart refrigerator via wireless communication technologies such as WiFi or Bluetooth. The multi-channel data acquisition method eliminates the need for users to interact directly with the refrigerator, thereby achieving more flexible multimodal data collection. This not only enriches the type and quality of data, but also improves the quality of data used for large-scale model training.
[0086] By integrating multiple data forms such as text, images, and sound, multimodal data provides more detailed and comprehensive information than a single modality. Comprehensive information utilization significantly improves the ability of large models to recognize and understand complex phenomena. Multimodal data integrates different data sources and can present the same object or event from various angles, helping the model to deeply explore key features and correlations, thereby improving accuracy when performing prediction or classification tasks. When single-modal data is affected by noise, occlusion, or other disturbances, the complementary information of multimodal data helps to alleviate these effects and enhance the effectiveness of the model.
[0087] In summary, in step S1, by building a comprehensive, efficient and reliable data input channel, a solid foundation is laid for in-depth information interaction between refrigeration equipment and users, while providing high-quality input data for subsequent data processing, analysis and large model training.
[0088] like Figure 2 As shown, in step S2, the multimodal data is preprocessed and converted, which specifically includes:
[0089] S201: Clean and format-convert multimodal data.
[0090] S202: Separate the video data into audio and video to obtain separated video audio data and video image data.
[0091] S203: Preprocess the text data.
[0092] S204: Performing standardization adjustment processing on the image data and the video image data.
[0093] It should be noted that, in step S2, there is no clear order between step S202 and step S203, and they can be performed in alternating order or simultaneously.
[0094] For video data, it is necessary to separate the voice and image content, extract the pure audio part and visual elements in the audio and video stream, so as to carry out specialized further processing and analysis of these different types of data. Ready-made software tools and development libraries can be used to edit and process these audio and video data. In addition, in order to adapt to specific needs and automated processes, the processing steps of audio and video can be customized by writing scripts. The separated pure audio data can be applied to multiple fields such as speech recognition and sentiment analysis, while the extracted visual content can be used for tasks such as image recognition and object tracking. This separation enables the targeted selection of the most appropriate technologies and algorithms to process various types of data, thereby improving the efficiency and accuracy of data analysis.
[0095] For text data, preprocessing is performed to clean and organize the text to make it more suitable for effective analysis and large model training. This includes removing stop words, eliminating duplicate content, and performing word segmentation. Removing these elements helps reduce the size of the dataset, improve the speed of processing, and the accuracy of the training model. Duplicate content in the text may increase the complexity of processing and may cause deviations in the training process. By identifying and removing this repeated information, the quality and diversity of the dataset can be guaranteed. The word segmentation operation splits the text into smaller units, such as words or phrases. In addition to the above steps, stemming or word form restoration, punctuation removal, etc. can also be performed. These text preprocessing tasks significantly improve the processing efficiency and quality of the data, laying a solid foundation for subsequent text analysis, feature extraction, and model training.
[0096] For image data and image data extracted from videos, it is important to perform standardization processing to enhance the efficiency of large model training. These processes include resizing, standardization, and noise removal. By unifying all images and video frames to the same size and resolution, and adjusting the pixel values of image data to a certain standard range, it can promote rapid convergence of the training process and improve the overall stability of the model.
[0097] This standardization and adjustment method ensures the consistency and quality of image and video data before inputting into the large model, reduces uncertainty in the training process, and enhances the expressiveness of the model in practical applications.
[0098] After preprocessing the multimodal data through the above steps, the multimodal data needs to be converted to uniformly convert the multimodal data into text data.
[0099] like Figure 3 As shown, converting voice data into text data specifically includes:
[0100] S205: Extract features of voice data and video voice data to obtain voice features.
[0101] S206: Input the speech features into the speech recognition convolutional neural network to obtain output text data.
[0102] S207: Align the output text data sequence with the speech feature sequence through a connection temporal classification method.
[0103] S208: After the output text data is combined through the fully connected layer, it is output to the classification function to calculate the score to obtain the speech text data.
[0104] When processing speech data from refrigerators and other refrigeration equipment, it is necessary to consider its temporal and spatial characteristics as well as the relevance of contextual information. In order to accurately convert these speech data into text, connection temporal classification is adopted as an end-to-end learning strategy. Connection temporal classification technology is particularly suitable for dealing with the problem of inconsistent lengths of input and output sequences, and is very suitable for continuous speech recognition tasks. This method enables large models to automatically learn the correspondence between input speech and output text by assigning labels to each frame of the sequence.
[0105] In addition, the constructed deep learning model combines recurrent neural networks and convolutional neural networks, and utilizes the loss function and attention mechanism of connection time series classification. Convolutional neural networks are used to capture local features in speech signals, while recurrent neural networks process sequence data to understand dependencies in the time dimension. The attention mechanism enhances the model's ability to focus on key information in speech signals. This end-to-end model can extract rich high-level information including key speech features such as intonation, rhythm, and intensity from the original speech signal, which is extremely critical to improving the accuracy of speech recognition and understanding user intent.
[0106] By using connection-based temporal classification technology and an end-to-end deep learning model that combines recurrent and convolutional networks, the accuracy of converting refrigeration equipment voice data into text has been significantly improved, providing solid technical support for achieving efficient and accurate multimodal interaction.
[0107] like Figure 4 As shown, converting image data into text data specifically includes:
[0108] S209: Acquire image feature sequences of image data and video image data.
[0109] S210: Obtain image semantic representation through a deep fusion model based on distillation diffusion of spatiotemporal and long-distance dependent features.
[0110] S211: Output the image semantics by connecting the temporal classification and the fully connected layer.
[0111] Specifically, step S210 obtains the image semantic representation through a distillation diffusion deep fusion large model based on spatiotemporal and long-distance dependent features, specifically including:
[0112] S2101: After the distillation diffusion deep fusion large model is trained, the teacher model is introduced into a student model that is continuous in time and space to obtain a student model with the same parameters as the teacher model.
[0113] S2102: Convert the distilled large model into a student model with discrete time steps and short steps, and repeat the above steps until the teacher model is distilled to half the steps of the student model.
[0114] When extracting image features from image and video data and identifying text content from them, given the complexity of identifying text sentences in speaker images, such as the uncertainty of sentence length, the diversity of vocabulary, and the contextual connections between sentences, a large model combining deep migration and knowledge distillation based on spatiotemporal relationships and long-term dependency characteristics is used. This model can capture features that evolve over time in images and process contextual information in long texts.
[0115] During the knowledge distillation process, the knowledge of the complex "teacher" model is transferred to a lighter "student" model, which not only maintains the effectiveness of the teacher model but also reduces the demand for computing resources. Through deep fusion technology, the outputs of the teacher and student models are further integrated, the model's ability to handle time series and contextual dependencies is optimized, and the efficiency of mining semantic features in sentence sequences is improved. Using this method, the large model can effectively extract and recognize text content from image data, and is particularly good at processing sentences with complex semantics and long-distance dependencies, significantly improving the accuracy and efficiency of identifying from image features to text content.
[0116] In step S2, the multi-source text data obtained after processing the multimodal data are integrated into a unified dataset. This effective text data integration creates a high-quality, information-rich training dataset, which provides support for the construction of large models and improves the efficiency of model training and generation tasks.
[0117] Furthermore, in this embodiment, the method further comprises the steps of:
[0118] Collect historical multimodal data and map them into the same vector space for transfer learning by vectorizing them. Such vectorization ensures that data collected from different times and different devices are comparable in a unified vector space. This unified mapping allows data to be measured and compared under the same evaluation criteria, laying a common foundation for in-depth analysis and further application of data. In this common vector space, transfer learning techniques can be effectively implemented, leveraging the learning experience of existing large models on similar tasks to accelerate the learning efficiency of new tasks.
[0119] Historical data has accumulated a large amount of information and experience, providing resources for large model training. Historical data usually covers a variety of scenarios and cases, increasing the diversity of training samples, thereby helping to improve the generalization of large models and the accuracy of predictions.
[0120] In step S3, the fused text data, image data, audio data, etc. are used to generate large model training corpora of supervised learning, semi-supervised learning and unsupervised learning types.
[0121] By integrating data sets containing supervised learning, semi-supervised learning, and unsupervised learning materials for training, the effectiveness, diversity, and applicability of large models can be significantly enhanced. Using labeled data in supervised learning, large models can accurately learn the correspondence between input and output; by combining data from semi-supervised and unsupervised learning, large models can further reveal the inherent structure and laws of data. Using this multi-type data approach enables large models to capture more comprehensive data characteristics, thereby improving their versatility.
[0122] In practice, the amount of unlabeled data is usually much larger than the amount of labeled data. Building a dataset containing semi-supervised and unsupervised learning materials can make full use of these unlabeled data, which not only greatly reduces the cost and time of data labeling, but also improves the learning efficiency and performance of large models through a large amount of unlabeled data. By utilizing these rich unlabeled data, especially in the context of semi-supervised and unsupervised learning, large models can better adapt to new fields or tasks, quickly adjust and improve through transfer learning, and enhance their performance in new scenarios.
[0123] In addition, multi-type corpora enable large models to learn at multiple levels, from acquiring task-specific knowledge through precise annotations to exploring the general characteristics and distribution of data through unlabeled data. This multi-task learning strategy enables the learning results of large models in one field to support their performance in other tasks, improving their adaptability and flexibility. By combining different types of training data, large models can not only learn explicit annotation information, but also actively explore the implicit structure and patterns of the data, thereby enhancing their explanatory power and reliability.
[0124] like Figure 5 As shown, in step S4, at the large model encoder end, the training corpus input is encoded, the input data and output data of the embedding layer are pruned at the neurons, and the activation layer is pruned, which specifically includes:
[0125] S41: normalizing the input data and output data of the embedding layer, calculating the normalized value of each neuron, and when the normalized value is less than a preset embedding layer pruning threshold, pruning the input data and output data of the embedding layer to remove the rows or columns of the corresponding transposed matrix.
[0126] S42: Evaluate and calculate the importance of the output data of the activation layer including the multi-head attention mechanism. When the importance of the output data is less than the preset activation layer pruning threshold, prune the activation layer.
[0127] In step S4, the context pruning technology is used to simplify the structure of the multimodal large model encoder to enhance the computational efficiency and resource management of the large model.
[0128] In the embedding layer pruning stage, the embedding layer input data and output are pruned at the neuron level to remove neurons that contribute less to the prediction results of the large model. For example, their contribution can be judged by analyzing the statistical distribution of neuron activation values or by indicators such as gradient information. In the process, the data input and output results are normalized, using L1-Normal as a measurement standard, and then judging which neurons have a contribution lower than this threshold based on the set threshold. Neurons with low contribution and their corresponding weights will be removed, thereby reducing the storage and computational burden of the large model while retaining the most critical information that affects the prediction results.
[0129] In the activation layer pruning stage, a multi-head attention mechanism is used to identify and remove neurons that do not contribute much to the output of the activation layer of the large model, such as GeLU or ReLU activation layers. The contribution-based pruning strategy further streamlines the large model while maintaining the ability of the large model to process key information.
[0130] Through the pruning process in step S4, the multimodal large model is effectively streamlined, significantly improving the computational efficiency and resource utilization of the large model. When processing large-scale data sets and complex tasks, the large model is made more flexible and efficient, providing strong support for the application of deep learning large models.
[0131] In step S5, the encoded data is decoded and redundant data is compressed before output, which specifically includes:
[0132] S51: Perform semantic compression at the word level on the encoded text feature vectorization.
[0133] S52: Use an autoregressive decoder to decode the compressed text feature vector to generate final output data in text format.
[0134] When outputting voice data and / or video data, it also includes:
[0135] De-noise, restore and separate the noisy data to obtain the undecoded features or vectors of the denoised data; perform autoregressive decoding to restore the voice data and / or video data.
[0136] In step S5, the multimodal data is optimized and fine-tuned to reduce semantic redundancy to improve resource utilization efficiency, thereby enhancing the overall performance of the large model.
[0137] For text data, semantic compression of the encoded text data effectively reduces redundant information of word-level data. After the text features are vectorized, they are processed at the word level, and the text format data is accurately restored and output through the autoregressive variational decoder technology, thereby optimizing the processing and understanding of text data by the large model.
[0138] For voice and video data, technologies such as refiner layer-Unet can be used to perform denoising and separation tasks. First, the noisy data is processed to remove the noise and separate the undecoded features or vectors, and then the autoregressive decoding technology is used to restore the clear voice and video data, which not only improves the data quality, but also provides more accurate input for large model training.
[0139] After completing the data optimization process, verify the performance of the large model, including but not limited to key indicators such as accuracy, recall, and F1 score. Based on the evaluation results, adjust the parameters and structure of the large model to optimize performance.
[0140] Step S5 can significantly improve the efficiency and effectiveness of the large model in multimodal data processing. The semantic compression of text reduces processing time and resource consumption. The denoising and separation of speech and video data significantly improves data quality, providing high-quality input for large model training and application.
[0141] In step S6, encapsulating and deploying the application model, which specifically includes:
[0142] Select a large model that meets the expected effect, encapsulate it according to the multimodal data type of the large model, and deploy and publish the encapsulated large model.
[0143] Obtain a big model service application, review and authorize it, connect the interface to the big model, call the big model, monitor the performance and status of the big model in real time during use, and record the call data and performance data.
[0144] Program encapsulation of the trained large model includes integrating the model's weights, configuration, and preprocessing steps into an easy-to-use software development kit or application programming interface. For specific data processing tasks such as speech recognition, large models can be packaged as services that follow specific communication protocols (such as the Media Resource Control Protocol, MRCP) so that they can be seamlessly connected to voice platforms and applications. In addition, the encapsulation process also involves selecting appropriate technology stacks and protocols (such as HTTP, RESTful) to adapt to different application scenario requirements and ensure that large models can be efficiently called over the network.
[0145] After deployment is complete, detailed information, performance indicators, and usage conditions for each large model will be provided, and a large model catalog will be built for users to choose from.
[0146] like Figure 6 As shown, this embodiment also provides a multi-modal large model construction system, which includes:
[0147] A data acquisition module 1, which is configured to acquire multimodal data, the multimodal data including at least two of voice data, text data, image data, audio data and video data;
[0148] A data processing module 2, which is configured to pre-process and convert the multimodal data and fuse the converted multimodal data;
[0149] A corpus generation module 3, which is configured to generate a large model training corpus based on the fused multimodal data;
[0150] The large model optimization module 4 is configured to encode the training corpus input at the large model encoder end, prune the input data and output data of the embedding layer at the neurons, and prune the activation layer; at the large model decoder end, decode the encoded data and compress the redundant data before outputting;
[0151] The large model application module 5 is configured to deploy and apply the large model.
[0152] This embodiment also provides a refrigeration device, including:
[0153] A memory for storing executable instructions;
[0154] The processor is used to implement the above-mentioned multimodal large model construction method when running the executable instructions stored in the memory.
[0155] This embodiment also provides a storage medium storing executable instructions, which, when executed by a processor, implement the above-mentioned multimodal large model construction method.
[0156] In summary, after acquiring multimodal data, this embodiment efficiently encodes and compresses the multimodal data, especially using semantic compression technology to reduce the redundancy of text data, and applying denoising technology to improve the quality of voice and video data. Not only is the data itself optimized, but the burden on model training is also reduced. The embedding layer and activation layer of the model are further streamlined through context pruning technology to remove neurons that contribute less to the final model performance, reducing the model's demand for computing resources while maintaining the model's ability to process key information. The above steps significantly improve the computational efficiency of the deep learning model when processing multimodal data, and reduce the demand for resources through the optimization of the model structure, so that the model can be deployed and used in a wider range of application scenarios.
[0157] It should be understood that although this specification is described according to implementation modes, not every implementation mode contains only one independent technical solution. This description of the specification is only for the sake of clarity. Those skilled in the art should regard the specification as a whole. The technical solutions in each implementation mode may also be appropriately combined to form other implementation modes that can be understood by those skilled in the art.
[0158] The series of detailed descriptions listed above are only specific descriptions of feasible implementation methods of the present invention and are not intended to limit the scope of protection of the present invention. All equivalent implementation methods or changes that do not deviate from the technical spirit of the present invention should be included in the scope of protection of the present invention.
Claims
1. A method for constructing a multimodal large model, characterized in that: include: Acquiring multimodal data, the multimodal data comprising at least two of voice data, text data, image data, audio data, and video data; Preprocessing and converting the multimodal data, and fusing the converted multimodal data; Generate a large model training corpus based on fused multimodal data; At the large model encoder end, the training corpus input is encoded, the input data and output data of the embedding layer are pruned at the neurons, and the activation layer is pruned; At the large model decoder end, the encoded data is decoded and redundant data is compressed before output; Encapsulate and deploy large application models; The pruning of the input data and output data of the embedding layer at the neurons specifically includes: Normalizing the input data and output data of the embedding layer, calculating the normalized value of each neuron, and when the normalized value is less than a preset embedding layer pruning threshold, pruning the input data and output data of the embedding layer to remove rows or columns of the corresponding transposed matrix; The pruning process of the activation layer specifically includes: The importance of the output data of the activation layer including the multi-head attention mechanism is evaluated and calculated. When the importance of the output data is less than a preset activation layer pruning threshold, the activation layer is pruned.
2. The multimodal large model construction method according to claim 1, characterized in that: The step of decoding the encoded data and compressing the redundant data before outputting the data specifically includes: Perform semantic compression on the word-level for the encoded text feature vectorization; The compressed text feature vector is decoded using an autoregressive decoder to generate the final output data in text format.
3. The multimodal large model construction method according to claim 1, characterized in that: When outputting voice data and / or video data, it also includes: De-noise, restore and separate the noisy data to obtain the undecoded features or vectors of the denoised data; Autoregressive decoding is performed to restore the voice data and / or video data.
4. The multimodal large model construction method according to claim 1, characterized in that: The acquiring of multimodal data specifically includes: Initialize multimodal data acquisition channels; Acquiring multimodal data collected by a data collection device, and / or, Acquire multimodal data transmitted from a client terminal.
5. The multimodal large model construction method according to claim 1, characterized in that: The multimodal data includes voice data, text data, image data, audio data and video data.
6. The multimodal large model construction method according to claim 5, characterized in that: The preprocessing and converting of the multimodal data specifically includes: Cleaning and formatting the multimodal data; Separating the video data into audio and video to obtain separated video audio data and video image data; Preprocess the text data; Perform standardization and adjustment processing on image data and video image data.
7. The multimodal large model construction method according to claim 6, characterized in that: The preprocessing and converting of the multimodal data further includes: Extracting features of the voice data and video voice data to obtain voice features; Inputting the speech features into a speech recognition convolutional neural network to obtain output text data; Aligning the output text data sequence with the speech feature sequence by a connection temporal classification method; The output text data is combined through a fully connected layer and then output to a classification function to calculate a score to obtain speech text data.
8. The multimodal large model construction method according to claim 6, characterized in that: The preprocessing and converting of the multimodal data further includes: Acquire image feature sequences of image data and video image data; The image semantic representation is obtained through a large model of distillation diffusion deep fusion based on spatiotemporal and long-distance dependent features; The image semantics is output by connecting the temporal classification and the fully connected layer.
9. The multimodal large model construction method according to claim 8, characterized in that: The image semantic representation is obtained by using a distillation diffusion deep fusion large model based on spatiotemporal and long-distance dependent features, specifically including: After the distillation diffusion deep fusion large model is trained, the teacher model is introduced into a student model that is continuous in time and space to obtain a student model with the same parameters as the teacher model; Convert the distilled large model into a student model with discrete time steps and short steps, and repeat the above steps until the teacher model is distilled to half the steps of the student model.
10. The multimodal large model construction method according to claim 1, characterized in that: Also includes: Obtain historical multimodal data, vectorize the historical multimodal data, and map it to the same vector space for transfer learning.
11. The multimodal large model construction method according to claim 1, characterized in that: The generating of a large model training corpus based on the fused multimodal data specifically includes: Generate large model training corpora of supervised learning, semi-supervised learning and unsupervised learning types according to the data training type.
12. The multimodal large model construction method according to claim 1, characterized in that: The deploying and applying the large model includes: Get a large model service application; After review and authorization, the interface is connected to the big model and the big model is called; Monitor the performance and status of large models in real time during use, and record call data and performance data.
13. A multimodal large model construction system, characterized in that: include: a data acquisition module configured to acquire multimodal data, wherein the multimodal data includes at least two of voice data, text data, image data, audio data, and video data; A data processing module, configured to preprocess and convert the multimodal data and fuse the converted multimodal data; A corpus generation module, configured to generate a large model training corpus based on the fused multimodal data; A large model optimization module is configured to encode the training corpus input at the large model encoder end, prune the input data and output data of the embedding layer at the neurons, and prune the activation layer; specifically including: normalizing the input data and output data of the embedding layer, calculating the normalized value of each neuron, and when the normalized value is less than a preset embedding layer pruning threshold, pruning the input data and output data of the embedding layer to remove the rows or columns of the corresponding transposed matrix; evaluating and calculating the importance of the output data of the activation layer containing a multi-head attention mechanism, and when the importance of the output data is less than a preset activation layer pruning threshold, pruning the activation layer; at the large model decoder end, decoding the encoded data and compressing redundant data before outputting; The large model application module is configured to deploy and apply the large model.
14. A refrigeration device, characterized in that: include: A memory for storing executable instructions; A processor, configured to implement the multimodal large model construction method according to any one of claims 1 to 12 when running the executable instructions stored in the memory.
15. A storage medium storing executable instructions, characterized in that: When the executable instructions are executed by the processor, the multimodal large model construction method described in any one of claims 1 to 12 is implemented.
Citation Information
Patent Citations
Method for accelerating operation speed of translation software in small intelligent mobile device
CN114118107A
Text generation method and device, refrigerator and storage medium
CN117077787A
Broadband signal detection method based on lightweight full convolutional neural network
CN118115853A
