A social media popularity prediction method based on tri-modal fusion expert model

Through the preprocessing and pre-training framework of the three-modal fusion expert model, combined with the Distill Softmax loss function, the problem of unutilized structured data and noise influence in social media popularity prediction is solved, achieving more accurate and generalized popularity. predict.

CN118469096BActive Publication Date: 2024-09-03UNIV OF ELECTRONICS SCI & TECH OF CHINA
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410917758.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-07-10
Publication Date
2024-09-03
Estimated Expiration
2044-07-10

AI Technical Summary

Technical Problem

Existing social media popularity prediction methods do not fully utilize structured data modalities, resulting in limited modal interaction, insufficient model generalization, and noisy data affecting prediction results.

Method used

A three-modal fusion expert model is used to pre-train structured features, text and image data by pre-processing, using image-text structured feature comparative learning, matching and masking text structured feature prediction modeling, and Distill is introduced in the fine-tuning stage. Softmax loss function enhances the interaction and generalization capabilities of the model.

Benefits of technology

It significantly improves the interaction between modalities and prediction accuracy, enhances the generalization ability of the model, effectively cleans noisy data, and improves the accuracy of popularity prediction.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118469096B
    Figure CN118469096B
Patent Text Reader

Abstract

The present invention proposes a social media popularity prediction method based on a three-modal fusion expert model, which belongs to the field of multimodal artificial intelligence. The method comprises the following steps: preprocessing structured data, text data and image data to obtain data representations of the three modalities for pre-training in the next stage. Using the data representations of the three modalities, the model is pre-trained using the TTME pre-training framework based on the hybrid multimodal expert Transformer model. The TTME pre-training framework includes image-text structured feature contrast learning, image-text structured feature matching and masked text structured feature prediction modeling. On the basis of the TTME pre-training framework, the TTME fine-tuning architecture is introduced to allow the model to perform domain adaptation on specific popularity prediction tasks and output social media popularity. The present invention effectively improves the interaction between multimodal data and the accuracy of popularity prediction through AIGC data processing, multimodal multi-task pre-training and Distillation Softmax fine-tuning.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the field of multimodal artificial intelligence, and in particular relates to a social media popularity prediction method based on a trimodal fusion expert model. Background Art

[0002] Popularity is an important indicator for evaluating social media platforms, enabling the platform to analyze group behavior and information dynamics in social media, and aims to predict future information trends and hot topics by analyzing data and information on social media platforms. With the diversification of social media data, there is a large amount of multimodal data on social media platforms, including text, images, audio, video, etc. Social media popularity prediction aims to effectively use this multimodal information to accurately predict the popularity of posts.

[0003] Existing vision-language pre-training (VLP) methods aim to learn semantic correspondences between different modalities through pre-training on large-scale data. However, most VLP methods do not fully utilize the structured data modality, resulting in limited interaction with other modalities, and do not perform incremental pre-training in isolated social media scenarios, resulting in insufficient model generalization, insufficient interaction between the structured data modality and other modalities in the VLP method, and inefficient machine learning for multimodal feature fusion. In addition, social media often contains noisy data that needs to be effectively processed, which can seriously affect the model's prediction results. Summary of the invention

[0004] The present invention aims to provide a method for predicting social media popularity based on a trimodal fusion expert model. First, structured features, text and images are preprocessed to obtain data representations of the three modalities. Secondly, in order to enable the model to associate information across modalities, the data is input into a new multimodal model pre-trained for three tasks: image-text structured feature contrast learning (ITSC), image-text structured feature matching (ITSM) and masked text structured feature prediction modeling (MTSM). Finally, based on the fine-tuning architecture, the pre-trained model is fine-tuned using a classification loss called Distill Softmax, which is designed to simulate a continuous label distribution for social media popularity prediction. The present invention solves the technical problem in the prior art that model training does not fully utilize the structured data modality, resulting in limited interaction with other modalities and insufficient model generalization.

[0005] In order to solve the above technical problems, the social media popularity prediction method based on the tri-modal fusion expert model of the present invention comprises the following steps:

[0006] Step S1: Preprocess the structured data, text data and image data to obtain data representations of the three modalities for pre-training in the next stage.

[0007] Step S2: Using the data representation of the three modalities, the model is pre-trained based on the hybrid multimodal expert Transformer model (VLMo) using the TTME pre-training framework, which includes image-text structured feature contrastive learning (ITSC), image-text structured feature matching (ITSM), and masked text structured feature prediction modeling (MTSM).

[0008] Step S3: Based on the TTME pre-training framework, the TTME fine-tuning architecture is introduced to allow the model to perform domain adaptation on the specific popularity prediction task and output social media popularity.

[0009] Compared with the prior art, the present invention has the following beneficial technical effects:

[0010] 1) Uniquely integrate structured data modalities into the pre-training process, enhancing the interaction between modalities and improving prediction accuracy.

[0011] 2) The present invention expands the structured data modality through pre-training of image-text structured feature contrast learning, image-text structured feature matching, and masked text structured feature prediction modeling, achieving significant improvements in generalization.

[0012] 3) The present invention utilizes AIGC’s preprocessing method to improve data quality by cleaning up noisy social media data, thereby improving the accuracy of model prediction.

[0013] 4) The present invention introduces the Distillation Softmax loss function in the fine-tuning stage, which improves the learning process and significantly enhances the model performance. It effectively optimizes the regression problem into a classification problem, thereby accelerating the model convergence. BRIEF DESCRIPTION OF THE DRAWINGS

[0014] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the accompanying drawings required for use in the description of the embodiments of the present invention will be briefly introduced below. Obviously, the accompanying drawings in the following description are only some embodiments of the present invention. For ordinary technicians in this field, other accompanying drawings can be obtained based on these accompanying drawings without paying creative labor.

[0015] Figure 1 It is a schematic diagram of the overall framework structure of the present invention.

[0016] Figure 2 Schematic diagram of the TTME pre-training framework structure of the present invention.

[0017] Figure 3 It is a schematic diagram of the TTME fine-tuning architecture structure of the present invention. DETAILED DESCRIPTION

[0018] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0019] The present invention proposes a social media popularity prediction method based on a three-modal fusion expert model. Figure 1 As shown, the specific steps include:

[0020] Step S1: Preprocess the structured data, text data and image data to obtain data representations of the three modalities for pre-training in the next stage.

[0021] Specifically, step S1 includes the following steps:

[0022] Step S11: pre-process the image data to obtain image content representation.

[0023] The representation of image content is divided into visual representation and picture description representation.

[0024] For visual representation, Vision Transformer (ViT) is used to extract information. ,in, Indicates the image height, Indicates the image width, Indicates the number of channels, is the feature space. ViT divides the image into image blocks ;in, represents the dimension of each image block, represents the number of generated image patches. The image patches are then flattened into vectors and linearly projected to obtain dimensional block embedding. A two-dimensional image is concisely represented as I = [ i class ; i p1 , i p2 ,… , i pN ] + i POS ,in, It is a special [class] tag. represents the embedding representation of each image patch, is the position embedding.

[0025] For image description representation, the AIGC model (general generative AI model) is used to clean up the noisy data. For image-caption pairs, the image ,title Input to AIGC model In the image-text matching score of the data pair, , and the generated title ,in Then, based on the matching score of the image-title pair use Replace the title with an unreasonable score. For reasonable titles, and Splicing obtained, , which can clean the noisy data and ensure the semantics of the original data while using the new data.

[0026] Step S12: pre-process the text data to generate text content representation.

[0027] Before representing the text data, a sequence start marker [CLS] is added at the beginning of the text and a boundary marker [SEP] is added at the end of the text. The text content representation is obtained by adding the elements of word embedding and text position embedding. The text content representation is expressed as ,in The embedding vector representing the word at each position in the text, represents position embedding, Indicates the length after word segmentation. Represents the dimension of the pre-set embedding vector (equal to the image embedding dimension ).

[0028] Step S13: preprocess the structured data to obtain structured data representation.

[0029] Structural features , including views, likes, posting time and other directly related social media indicators, there are categorical features and numerical features. The present invention uses quantile coding to isolate numerical features that are important or have a clear correlation with the popularity of real social media, and converts all numerical features into categorical features. Quantile coding refers to uniformly mapping numerical features to an interval and then dividing them. Using all the converted structured feature categories to form a vocabulary , then reconfigure the embedding layer of the text encoder to add all structured features as special “tokens” to the original vocabulary of the text encoder Adjusted vocabulary is added to the embedding layer of the text encoder. Essentially, the structured features act as specialized text entities, thereby enhancing the model’s interactive multimodal learning capabilities throughout the pre-training phase. This joint text structure is used It is expressed mathematically as: J = [T; S] , that is, text structured features (TS), the vector is represented as ,in Indicates added The rest of the symbols have the same meaning as in text embedding.

[0030] Step S2: Using the data representation of the three modalities, the model is pre-trained based on the hybrid multimodal expert Transformer model (VLMo) using the TTME pre-training framework, which includes image-text structured feature contrastive learning (ITSC), image-text structured feature matching (ITSM), and masked text structured feature prediction modeling (MTSM).

[0031] Specifically, the TTME pre-training framework includes a 6-layer text structured feature encoder, a 12-layer image encoder, and a 6-layer multimodal fusion encoder.

[0032] In each layer of the text structured feature encoder, a multi-head attention module (MSA) and two feedforward networks (FFN) are integrated. MSA is used to extract the relationship between the embedding vectors at each position in the sequence, and FFN is used to extract the information of the embedding vector in higher dimensions. The two feedforward networks are the image-text representation layer feedforward network (ITSC-FFN) and the multimodal representation layer feedforward network (MUL-FFN). ITSC-FFN is used to extract image vectors for comparative learning with image representation in the image-text structured feature contrast learning task. , MUL-FFN is used to extract information representation vectors representing text modalities , used for subsequent fusion of multimodal information.

[0033] Similarly, in each layer of the image encoder, a multi-head attention module (MSA) and two feed-forward networks (FFN) are integrated. The two feed-forward networks are the image-text representation layer feed-forward network (ITSC-FFN) and the multimodal representation layer feed-forward network (MUL-FFN). ITSC-FFN is used to extract text structured feature vectors for contrastive learning in the image-text structured feature contrast learning task. , MUL-FFN is used to extract the representation vector representing the image modality information .

[0034] The multimodal fusion encoder converts the above and The multi-modal fusion encoder integrates a multi-head attention module (MSA) with the same function as described above, a cross attention module (Cross Attention) to extract the relationship between the information extracted by the previous two encoders, and a visual language fusion feedforward network (VLF-FFN) to fuse the information of each modality.

[0035] Image-Text Structured Feature Contrastive Learning (ITSC) with a given batch size The text structured feature encoder and image encoder generate text structured vectors and image vector , and Respectively represent the first The image feature vector representation and text structured feature vector representation of the position are used to calculate the similarity between the text structured features and the image, and the normalized similarity score between the text structured features and the image ( ) and the normalized similarity score of image to text structured features ( ) is calculated according to the following equation:

[0036]

[0037]

[0038]

[0039] in Indicates The text structured feature data and The text structured feature-image similarity between the image data, Indicates The image data pair The image-text structured feature similarity of text structured feature data is and When the same (i.e. , ) indicates the image data and the The similarity of text structured feature data, Represents a matrix transpose operation; Indicates exponential operation; It is a learnable temperature coefficient used to smooth the final score to avoid excessive concentration of scores.

[0040] Next, calculate the loss function of image-text structured feature contrast learning:

[0041]

[0042] and Represented as the true value (label) of similarity; represents the cross entropy loss function; represents the expectation of probability; and Represent the set of image vectors and text structured feature vectors respectively, , , That is, the similarity between all image-text structure data pairs in a batch.

[0043] In order to avoid the loss function penalizing all negative predictions, the present invention uses pseudo targets generated by the momentum model. The momentum model is composed of exponential moving average versions of each encoder and is an evolving teacher model. During the training process, the base model is trained to match its predictions with those of the momentum model. The final loss function is defined as:

[0044]

[0045] in and represents the pseudo labels generated by the momentum model; express Divergence loss function, which is used to calculate the difference between two vectors; Is a balance coefficient used to balance Divergence and The ratio between them.

[0046] Image-text structured feature matching (ITSM) aligns text structured features with corresponding images. As in contrastive learning, the multimodal fusion encoder converts the image vector provided by the image encoder into The text structured feature vector generated by the text structured feature encoder Merge to get an integrated multimodal vector The multimodal vector is then fed into a binary classifier, which outputs the classification probability , based on this, the loss function is determined as:

[0047]

[0048] in Represents the true classification category.

[0049] Masked Text Structured Feature Prediction Modeling (MTSM), the present invention selectively masks text structured feature markers and retains image features to prevent overfitting and enhance the model's ability to infer context. Masking text structured feature markers can standardize text and structured feature representations to prevent overfitting. By forcing the model to rely on context to fill in the masked text structured feature markers, a more robust representation is obtained. In addition, retaining images as masks enables them to provide contextual visual signals, enhancing the prediction of masked text structured feature markers. Specifically, the fully connected head (MLM-head) at the end of the multimodal fusion encoder is connected to obtain the probability of the word corresponding to the masked position of the text structured feature sequence , their cross entropy loss can be obtained as:

[0050]

[0051] in Indicates the original word that was blocked; represents the set of structured feature vectors of the masked text, Express expectations.

[0052] In addition, since the momentum model is added to the multimodal fusion encoder, the base model is allowed to learn from the pseudo labels generated by the momentum model. Therefore, the loss function is defined as:

[0053]

[0054] in represents the pseudo-label generated by the momentum model; Represents the balance coefficient, which balances the ratio of the two losses.

[0055] Comprehensive image-text structured feature comparison learning, image-text structured feature matching and masked text structured feature prediction modeling, the complete pre-training loss function is expressed as:

[0056]

[0057] Step S3: Based on the TTME pre-training framework, the TTME fine-tuning architecture is introduced to allow the model to perform domain adaptation on the specific popularity prediction task and output social media popularity.

[0058] Furthermore, the process of popularity prediction by the TTME architecture is the same as the process of TTME fine-tuning, except that the model does not need to update parameters during prediction, while during fine-tuning the model iteratively updates the model parameters based on the error loss between the predicted popularity and the true popularity.

[0059] The TTME fine-tuning framework is roughly similar to the TTME pre-training framework, including a 6-layer text structured feature encoder, a 12-layer image encoder, and a 6-layer multimodal fusion encoder.

[0060] In each layer of the text structured feature encoder, a multi-head attention module (MSA) and two feedforward networks (FFN) are integrated. MSA is used to extract the relationship between the embedding vectors at each position in the sequence, and FFN is used to extract the information of the embedding vector in higher dimensions. The two feedforward networks are the image-text representation layer feedforward network (ITSC-FFN) and the multimodal representation layer feedforward network (MUL-FFN). ITSC-FFN is used to extract image vectors for comparative learning with image representation in the image-text structured feature contrast learning task. , MUL-FFN is used to extract information representation vectors representing text modalities , used for subsequent fusion of multimodal information.

[0061] Similarly, in each layer of the image encoder, a multi-head attention module (MSA) and two feed-forward networks (FFN) are integrated. The two feed-forward networks are the image-text representation layer feed-forward network (ITSC-FFN) and the multimodal representation layer feed-forward network (MUL-FFN). ITSC-FFN is used to extract text structured feature vectors for contrastive learning in the image-text structured feature contrast learning task. , MUL-FFN is used to extract the representation vector representing the image modality information .

[0062] The TTME fine-tuning framework embeds vectors and With multimodal embedding vectors and Merge into a unified image representation and text structured representation :

[0063]

[0064] in and They are balance coefficients, used to balance the ratio of the two sets of embedding vectors.

[0065] The multimodal fusion encoder encodes the synergistic interaction of image, text and structured features. and Fusion to generate a cohesive multimodal representation vector .

[0066] Specifically, in each layer of the multimodal fusion encoder, a multi-head attention module (MSA) is integrated, which has the same function as described above; a cross attention module (Cross Attention), which is used to extract the relationship between the information extracted by the previous two encoders; and a visual language fusion feedforward network (VLF-FFN), which is used to fuse the information of each modality to generate a cohesive multimodal representation vector .

[0067] The multimodal representation vector is then fed into a fully connected layer (MLP) head, which finally outputs the precise social media popularity.

[0068] At the same time, the loss function during fine-tuning uses Distill Softmax classification loss to train the regression task and let the model output continuous popularity predictions. This loss function introduces a normal noise distribution, whose probability function It is expressed as:

[0069]

[0070] in It is the most popular classification values, σ is a hyperparameter, represents exponential operation, Represents the true label.

[0071] The final loss function is expressed as:

[0072]

[0073] in represents the model’s prediction of popularity, Indicates the number of categories.

[0074] Prediction Function It is expressed as:

[0075] ,

[0076] The present invention effectively improves the interaction between multimodal data and the accuracy of popularity prediction through AIGC data processing, multimodal multitask pre-training, and Distillation Softmax fine-tuning. The framework can be applied to other users' various communication information scenarios and other graphic and text publications for relevant predictions. By effectively utilizing these multimodal posts, the user experience can be significantly enhanced, commercial profits can be increased, and our understanding of the world can be enriched.

[0077] It is to be understood that the present invention is described by some embodiments, and it is known to those skilled in the art that various changes or equivalent substitutions may be made to these features and embodiments without departing from the spirit and scope of the present invention. In addition, under the teachings of the present invention, these features and embodiments may be modified to adapt to specific circumstances and materials without departing from the spirit and scope of the present invention. Therefore, the present invention is not limited by the specific embodiments disclosed herein, and all embodiments falling within the scope of the claims of this application are within the scope of protection of the present invention.

Claims

1. A social media popularity prediction method based on a three-modal fusion expert model. It is characterized in that The steps include: Step S1: Preprocess the structured data, text data and image data to obtain data representations of the three modalities for pre-training in the next stage; Step S2: Using the data representation of the three modalities, the model is pre-trained using the TTME pre-training framework based on the hybrid multimodal expert Transformer model. The TTME pre-training framework includes image-text structured feature comparison learning, image-text structured feature matching, and masked text structured feature prediction modeling; Step S3: Based on the TTME pre-training framework, the TTME fine-tuning architecture is introduced to allow the model to perform domain adaptation on the specific popularity prediction task and output social media popularity; The TTME pre-training framework includes a 6-layer text structured feature encoder, a 12-layer image encoder, and a 6-layer multimodal fusion encoder; In each layer of the text structured feature encoder, a multi-head attention module and two feedforward networks are integrated. MSA is used to extract the relationship between the embedding vectors at each position in the sequence, and FFN is used to extract the information of the embedding vector in higher dimensions. The two feedforward networks are the image-text representation layer feedforward network and the multimodal representation layer feedforward network. The image-text representation layer feedforward network is used to extract the image vector E for contrast learning with the image representation in the image-text structured feature contrast learning task. itsc_J , the multimodal representation layer feedforward network is used to extract the information representation vector E representing the text modality mul_J , used for subsequent fusion of multimodal information; In each layer of the image encoder, a multi-head attention module and two feed-forward networks are integrated. The two feed-forward networks are the image-text representation layer feed-forward network and the multimodal representation layer feed-forward network. The image-text representation layer feed-forward network is used to extract the text structured feature vector E for contrastive learning in the image-text structured feature contrastive learning task. itsc_I , the multimodal representation layer feed-forward network is used to extract the representation vector E representing the image modality information mul_I ; In each layer of the multimodal fusion encoder, a multi-head attention module is integrated; A cross-attention module to extract the relationship between the information extracted by the previous two encoders; and a visual language fusion feedforward network to fuse the information of each modality; The TTME fine-tuning framework includes a 6-layer text structured feature encoder, a 12-layer image encoder, and a 6-layer multimodal fusion encoder; The TTME fine-tuning framework embeds the vector E itsc_I and E itsc_J and the multimodal embedding vector E mul_J and E mul_I Merge into a unified image representation E I and text structured representation E J : Where β and γ are balance coefficients, which are used to balance the ratio of the two sets of embedding vectors; The loss function during fine-tuning uses Distill Softmax classification loss to train the regression task and let the model output continuous popularity predictions; this loss function introduces a normal noise distribution, and its probability function p(y) is expressed as: where t k is the k-th classification value of popularity, σ is a hyperparameter, e represents the exponential operation, and y represents the true label; The final loss function is expressed as: in represents the model's prediction of popularity, and K represents the number of categories; Prediction Function It is expressed as:

2. According to the social media popularity prediction method based on the trimodal fusion expert model according to claim 1, It is characterized in that Step S1 includes the following steps: Step S11: Preprocess the image data to obtain image content representation. The image content representation is divided into visual representation and picture description representation. For visual representation, Vision Transformer is used to extract information. For picture description representation, AIGC model is used to clean up noise data. Step S12: preprocessing the text data to generate text content representation; Step S13: preprocess the structured data to obtain structured data representation.

3. According to the social media popularity prediction method based on the trimodal fusion expert model according to claim 1, It is characterized in that Loss function for image-text structured feature contrast learning: g i2t (I) and g t2i (J) represents the true value of similarity; H represents the cross entropy loss function; represents the expected probability; I and J represent the set of image vectors and text structured feature vectors respectively, I={E itsc_I }, J = {E itsc_J }, p i2t (I), p t2i (J) is the similarity between all image-text structure data pairs in a batch; In order to avoid the loss function penalizing all negative predictions, a pseudo target generated by a momentum model is used; the momentum model is composed of exponential moving average versions of each encoder and is an evolving teacher model; during training, the base model is trained to make its predictions match those of the momentum model; the final loss function is defined as: where q t2i (J) and q i2t (I) represents the pseudo-label generated by the momentum model; KL represents the KL divergence loss function, which is used to calculate the difference between two vectors; α is a balance coefficient used to balance the KL divergence and The ratio between them.

4. According to the social media popularity prediction method based on the trimodal fusion expert model according to claim 3, It is characterized in that The multimodal fusion encoder transforms the image vector E provided by the image encoder into mul_I The text structured feature vector E generated by the text structured feature encoder mul_J Merge to get an integrated multimodal vector E mul_pt ; Then the multimodal vector is sent to a binary classifier, and the classifier outputs the classification probability p itsm (E mul_pt ), based on this, the loss function is determined as: where y itsm Represents the true classification category.