Multi-modal recommendation method based on multi-view self-supervised contrast learning
Through the method of multi-view self-supervised comparative learning, the deficiencies of feature fusion and noise processing in multi-modal recommendation systems are solved, more accurate node representation and recommendation effects are achieved, and the robustness and computing efficiency of the system are improved.
Patent Information
- Application Number
- CN202410800969.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-20
- Publication Date
- 2024-09-27
- Estimated Expiration
- 2044-06-20
AI Technical Summary
Existing multi-modal recommendation systems have deficiencies in feature fusion and noise processing, resulting in problems with recommendation accuracy and computational efficiency, especially serious information aliasing and modal semantic loss when modal information is propagated.
Using a method based on multi-view self-supervised contrastive learning, cross-modal feature alignment and noise removal are achieved through feature cross-correction and binary reweaving structures, and an item-item affinity diagram is constructed to enhance modal information dissemination and optimize the interaction diagram. Structure and computational efficiency.
It improves the accuracy and robustness of the recommendation system, reduces the impact of noise, enhances the semantic relevance of modal information, reduces computational complexity, and avoids information aliasing and modal semantic loss.
Smart Images

Figure CN118709133A
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of recommendation systems, and in particular to a multimodal recommendation method based on multi-view self-supervised comparative learning. Background Art
[0002] In today's information explosion, massive amounts of information are flooding the Internet, and the cost of information screening for users is getting higher and higher. Some scholars have realized that they cannot rely solely on historical interaction data, but need to make full use of the semantically rich multimodal information of the project itself. Text modal information such as user comments, item descriptions, and item tag themes are structurally combined through text symbols to provide rich details and contextual information, such as material, size, purpose, design features, etc.; image modal information such as product posters and promotional videos can quickly attract users and convey rich content, such as color, style, etc., through the splicing of pixels with different values.
[0003] At present, multimodal recommendation systems have been widely used in various fields, such as e-commerce, social media, and streaming platforms. In the e-commerce field, recommendation systems recommend products that meet users' needs based on historical actions such as browsing, collecting, and purchasing, combined with product images and text descriptions. In the social media field, recommendation systems recommend posts, pictures, and videos that meet users' interests based on historical actions such as likes, comments, and sharing, combined with post images and text descriptions. Multimodal recommendation improves the relevance and accuracy of recommendations, enhances user experience and satisfaction, and has broad application prospects in various applications by comprehensively analyzing multiple data modalities.
[0004] VBPR is a classic multimodal recommendation algorithm that integrates the visual features and ID embedding of each item as its representation, effectively extending the collaborative filtering algorithm. The defects of VBPR are: (1) The fusion mechanism of modal features and behavioral features is not perfect. The splicing of features leads to the failure of effective fusion of multimodal information and user behavior features. (2) The reliance on visual features is too strong. Whether the visual features are accurate and comprehensive greatly affects the quality of recommendations. And VBPR does not make effective processing of visual features.
[0005] MMGCN is a multimodal graph convolutional network based on the idea of message passing in graph neural networks. Considering that users have different levels of attention to different modalities, a user-item bipartite graph is constructed in each modality, which allows users and items to capture signals from multi-hop neighbors, effectively capture fine-grained preferences under specific modalities, and enrich the representation of each node. The defects of MMGCN are: (1) In order to effectively process noise, the original modality contains a large amount of noise, such as exaggerated text descriptions and redundant image backgrounds. The noise is strongly coupled with the interactive features in the subsequent process and is continuously amplified during the propagation process of graph convolution, greatly reducing the accuracy of recommendations. (2) The total number of nodes in the GNN graph structure is large, and the graph convolution operation of each node is very complex, with very high computational cost and time.
[0006] LightGCN found that the feature transformation and nonlinear activation operations in GCN do not contribute much to the performance of collaborative filtering, and seriously increase the difficulty of training and reduce the recommendation performance. Therefore, LightGCN simplifies the design of GCN, learns user and item embeddings by linearly propagating user and item embeddings on the user-item interaction graph, and uses the weighted sum of the embeddings learned in all layers as the final embedding. The defect of LightGCN is that the current GCN-based methods mainly pass messages through connection relationships, ignoring the wrong connection relationships in historical interaction information, such as misoperation, non-spontaneous clicks guided by marketing activities, and other noise. These false interactions cause the error propagation of node embeddings, greatly reducing the accuracy of recommendations. Therefore, how to identify and process abnormal edges in the interaction graph has become an important exploration part to improve the accuracy of the recommendation system.
[0007] GRCN is a GCN-based recommendation algorithm that focuses on adaptively refining the structure of the interaction graph to discover and prune potential false positive edges. GRCN adaptively adjusts the structure of the interaction graph according to the state of model training, rather than maintaining a fixed structure. The graph refinement layer aims to identify the noisy edges of false positive interactions with high confidence, thereby pruning them in a soft way. A graph convolution layer is applied on the refined graph to extract information signals about user preferences. The shortcomings of GRCN are: the implicit feedback problem has not been solved, and the implicit feedback problem is only attributed to the gap between user preferences and behaviors. There is a lack of effective exploration of user intent, and the noisy edge identification and processing methods for false positive interactions are not perfect.
[0008] At present, multimodal information has not been effectively utilized in research. Modal information is propagated on the user-item interaction graph, and modal information is coupled with interaction features, which leads to information aliasing and modal semantic loss. In addition, since the user-item interaction graph contains all user nodes and item nodes, the total number of nodes is huge, and the propagation of multimodal information on the interaction graph wastes a lot of computing resources, and the overfitting phenomenon is very serious. Summary of the invention
[0009] The technical problem to be solved by the present invention is to provide a multimodal recommendation method based on multi-perspective self-supervised comparative learning in view of the deficiencies of the above-mentioned prior art. By comparing multiple perspectives, the model is forced to learn the common features between different views, obtain a more accurate node representation, and improve the recommendation accuracy.
[0010] In order to solve the above technical problems, the technical solution adopted by the present invention is:
[0011] A multimodal recommendation method based on multi-view self-supervised contrastive learning, comprising:
[0012] Obtain user-item interaction information and item multimodal information;
[0013] Two-stage modal representation based on feature cross-correction, including feature cross-matching alignment in the first stage and semantic denoising correction in the second stage; using the co-attention module to process the original features, so that the image modal features and text modal features, which originally had a huge semantic gap, can achieve cross-modal interaction, match and align the features, narrow the cross-modal semantic gap, achieve better project representation through feature cross-correction, and realize modal feature correction through the gating mechanism to remove noise in the original data;
[0014] Feature extraction based on binary reweaving and modal information enhancement, including binary reweaving structural perturbation and affinity graph modal information enhancement; using binary reweaving to perform structural perturbations on the interaction graph to achieve scenario simulation, identify and remove false interactions; create a new item-item affinity graph for modal features, propagate modal features on the affinity graph, reduce information aliasing, and enhance modal information;
[0015] Global representation optimization based on multi-view self-supervised contrastive learning, including computing interaction graph reweaving loss and multi-modal synchronization reconciliation loss;
[0016] Perform parameter training and generate the final recommendation list.
[0017] Furthermore, in the two-stage modality representation based on feature cross correction, the specific method of feature cross matching alignment is:
[0018] First, we use VGG16 and BERT to process multimodal data to obtain rough image and text embeddings E respectively. i-o and E t-o ; Then perform feature semantic alignment and use co-attention operations based on self-attention and cross-attention to generate the image intermediate embedding E i-m and text embedded in E t-m, as shown in formula (1);
[0019] E i-m ,E t-m =co-attention(E i-o ,E t-o ) (1)
[0020] By supplementing attention guidance, the image modal features and text modal features, which originally had a huge semantic gap, can achieve cross-modal interaction and match and align the features.
[0021] Furthermore, in the two-stage modal representation based on feature cross correction, the specific method of semantic denoising correction is:
[0022] Use the following formula to perform image intermediate embedding E under the guidance of the supplementary modality: i-m and text embedded in E t-m The feature cross correction is performed to obtain the final project image embedding E i 、Project text embedding E t :
[0023]
[0024]
[0025] Where W1,W2∈R d×d With b1,b2∈R d is a trainable parameter, ⊙ represents element-by-element multiplication, and σ represents the sigmoid function; It is a gating mechanism that removes noise from different modal features and improves the generalization ability of the model.
[0026] Furthermore, in the feature extraction based on binary reweaving and modal information enhancement, the specific method of binary reweaving structure perturbation is:
[0027] Define the user-item interaction bipartite graph as G = (V, E), where the node set is defined as V, V = U ∪ I, the edge set is E, and the edge set is constructed as E = {(u, i) | u∈U, i∈I, R ui ≠0}; U = {u} is the user set, the number of users is |U|; I = {i} is the project set, the number of projects is |I|; the user-project interaction record is represented by R ui , if user u clicks item i, then R ui =1, otherwise R ui =0;
[0028] Using the path exploration enhancement mechanism, the original interaction graph G is binary rewoven to generate a new user-item interaction graph structure (G PEE1,G PEE2 ), the node embedding in the new graph is updated to (E PEE1 ,E PEE2 ); the binary reweaving steps are as follows:
[0029] First, the random subset operation is used to perform Bernoulli distribution sampling of p=1-α on the edge set of each layer in the original interaction graph; by simulating the random paths of some nodes, different subgraphs are assigned to different layers to achieve interaction graph reweaving, as shown in the following formula:
[0030]
[0031]
[0032]
[0033] in, represents the random subset path exploration of the lth layer of the nth subgraph, l∈[1,k], k is the number of layers set in the graph convolution operation in the user-item interaction graph; α is a hyperparameter used to set the intensity of path exploration enhancement. Different exploration intensities can control the local structure of the path exploration subgraph and adjust the scope and density of the subgraph; through the path exploration enhancement mechanism, the model learns node representations from two subgraph perspectives to enhance the richness and anti-interference of the model.
[0034] Furthermore, in the feature extraction based on binary reweaving and modal information enhancement, the specific method of enhancing the modal information of the affinity graph is:
[0035] Build a project-project fully connected graph, where e m,i and e m,j Represent the embedding representation of item i and item j under modality m, m = {image, text}; similarity matrix S m Use cosine similarity calculation as follows:
[0036]
[0037] For the similarity matrix S m Perform pruning to obtain a new similarity matrix The new similarity matrix As the adjacency matrix of the item-item fully connected graph; the item embedding is calculated as:
[0038]
[0039]
[0040] in, is the diagonal matrix under the modality m view, L is the number of layers of graph convolution in the item-item affinity graph;
[0041] Then, based on the interaction history, we query the item i with which user u has interaction records, and obtain the embedding e of user u in the corresponding mode by aggregating the embeddings of item i with which user u has interaction records. m,u :
[0042]
[0043] Among them, N u is the neighbor of user u, |N u | is the number of neighbors of user u; N i Neighbors of item i, |N i | is the number of neighbors of item i;
[0044] By concatenating all users in the same modality, we can embed E m,u ∈R d×U and all items embedded in E m,i ∈R d×U Get the unimodal embedding E of users and items under the item-item affinity graph m ∈R d×(U+I) , where E m Including image modality embedding E i and text modal embedding E t ; Calculate the image modality embedding E by formula (11) i and text modal embedding E t Together we get the final multimodal fusion embedding E mul ∈R d×(U+I) ;
[0045] E mul =average(E i ,E t ) (11)
[0046] Among them, average represents the averaging operation.
[0047] Furthermore, in the global representation optimization based on multi-view self-supervised contrastive learning, the specific method for calculating the interaction graph reweaving loss is:
[0048] Construct a loss function L for the binary rewoven graph rcl ; The embeddings of the same node in different views are regarded as positive pairs, and the embeddings in different node views are regarded as negative pairs. By using contrastive learning techniques to maximize the similarity of positive pairs and minimize the similarity of negative pairs, a more robust node embedding is learned, as shown in the following formula:
[0049]
[0050]
[0051]
[0052] Among them, L rcl Reweaving loss for interaction graphs; denote the interaction graph reweaving loss of user nodes and item nodes respectively; s(·) is the similarity between two vectors, which is set to cosine similarity; τ is a hyperparameter; e PEE1,v 、e PEE2,u 、e PEE2,v Reweave user embeddings in interaction graphs for different dyads; e PEE1,i 、e PEE2,i 、e PEE2,j Item embeddings in interaction graphs for different dyads.
[0053] Furthermore, in the global representation optimization based on multi-view self-supervised contrastive learning, the specific method of multi-modal synchronous reconciliation loss is:
[0054] Construct a loss function L for the item-item affinity graph and the user-item interaction graph shl , maximize the mutual information of the same node in the item-item affinity graph and the user-item interaction graph, as follows:
[0055]
[0056]
[0057]
[0058] Among them, L shl To reconcile the loss for multi-modal synchronization; are the multimodal synchronization and reconciliation losses for user nodes and item nodes respectively; s(·) is used to calculate the similarity between two vectors, which is set to cosine similarity; τ is a hyperparameter; e mul,u 、e mul,v is the multimodal fusion node embedding of user u and user v under the item-item affinity graph; e id,u 、e id,v is the node embedding of user u and user v in the user-item interaction graph; e mul,i 、e mul,j is the multimodal fusion node embedding of item i and item j under the item-item affinity graph; e id,i 、e id,j are the node embeddings of item i and item j in the user-item interaction graph.
[0059] Furthermore, the specific method of performing parameter training to generate the final recommendation list is as follows:
[0060] After propagation, the enhanced node embedding is:
[0061]
[0062] Among them, e u and e i are the final embedding representations of user u and item i respectively; finally, the user’s preference score y for the item is obtained by calculating the inner product between the user embedding and the item embedding u,i :
[0063]
[0064] A higher score means that the user is more likely to click on the item. In the selection of optimization strategy, BPR loss is used to effectively capture the relative order of users and all positive and negative samples. The triplet R used for training is as follows:
[0065]
[0066] The final optimized BPR loss function is:
[0067]
[0068] Among them, μ(·) represents the sigmoid function operation; the final loss Loss is based on the BPR loss, adding the interaction graph reweaving loss L rcl and multi-modal synchronization loss L shl And get:
[0069] Loss = L BPR +λ r L rcl +λ s L shl +λ E ||θ||2 (22)
[0070] Among them, λ r , s To control the hyperparameters of the contrastive learning task, λ E is the hyperparameter that controls the strength of L2 regularization, and θ is the parameter set of the entire model;
[0071] The model is trained by minimizing the final loss Loss, and the model parameters are updated through the gradient descent optimization method. After the training is completed, the model predicts the scores of all items for each user, sorts the items according to the scores, and generates the final recommendation list.
[0072] The beneficial effects of adopting the above technical solution are: the multimodal recommendation method based on multi-perspective self-supervised contrastive learning provided by the present invention narrows the cross-modal semantic gap through a two-stage modal representation module based on feature cross-correction, effectively reducing noise; the user-item graph structure is disturbed by binary reweaving, the false interactions in historical data are purified, and the real scene is better fitted; finally, the modal information is enhanced by constructing a project-item affinity graph, which greatly improves the semantic relevance of project embedding, and solves the problems of information aliasing and modal semantic loss while reducing computational complexity. Self-supervised contrastive learning is performed for the above perspectives, maximizing the mutual information of nodes under different views, better representing nodes, and effectively improving the accuracy and robustness of the recommendation system. BRIEF DESCRIPTION OF THE DRAWINGS
[0073] Figure 1 A flow chart of a multimodal recommendation method based on multi-view self-supervised contrastive learning provided by an embodiment of the present invention;
[0074] Figure 2 A schematic diagram of a two-stage modal representation provided by an embodiment of the present invention;
[0075] Figure 3 A schematic diagram of constructing a user-project interaction diagram (UI diagram) and its binary reweaving provided by an embodiment of the present invention;
[0076] Figure 4 A schematic diagram of constructing a project-project affinity diagram (Figure II) provided in an embodiment of the present invention. DETAILED DESCRIPTION
[0077] The specific implementation of the present invention is further described in detail below in conjunction with the accompanying drawings and examples. The following examples are used to illustrate the present invention, but are not intended to limit the scope of the present invention.
[0078] A multimodal recommendation method based on multi-view self-supervised contrastive learning, referred to as MCGCL, is mainly divided into three parts: a two-stage modal representation based on feature cross-correction, which is used to narrow the cross-modal semantic gap and reduce noise; feature extraction based on binary reweaving and modal information enhancement, which is used to achieve false interaction purification and multimodal information supplementation through binary reweaving and construction of item-item affinity graphs; a global representation optimization module based on multi-view self-supervised learning, which maximizes the mutual information of nodes under different views to obtain more accurate node representation. Figure 1 As shown, the method of this embodiment is described as follows.
[0079] Step 1: Obtain user-item interaction information and item multimodal information.
[0080] Step 2: Two-stage modality representation based on feature cross-correction.
[0081] The original multimodal features that the project can provide are very rough. If they are used directly for recommendation, there will be the following problems: (1) There is a cross-modal semantic gap between the image modality and the text modality. Images use pixels with different values to stitch scenes together, and text uses text symbols for structural combination. Due to the existence of cross-modal semantic gaps, existing recommendation algorithms can only perform single-modal semantic understanding and cannot perform multimodal information interactive understanding. (2) Image and text data often contain noise pollution. Multimodal information is often mixed with information that is irrelevant to the recommendation task.
[0082] Therefore, this embodiment proposes a two-stage modal representation based on feature cross correction. The first stage performs feature cross matching alignment and the second stage performs semantic denoising correction, thereby obtaining a more accurate multimodal representation. The specific implementation details of the two stages are as follows: Figure 2 shown.
[0083] Step 2.1: Feature cross-matching alignment.
[0084] First, we use VGG16 and BERT to process multimodal data to obtain rough image and text embeddings E respectively. i-o and E t-o After that, feature semantic alignment is performed, and the co-attention operation based on self-attention and cross-attention is used to generate the image intermediate embedding E i-m and text embedded in E t-m , as shown in formula (1);
[0085] E i-m ,E t-m =co-attention(E i-o ,E t-o ) (1)
[0086] By supplementing attention guidance, the image modal features and text modal features, which originally had a huge semantic gap, can achieve cross-modal interaction and match and align the features.
[0087] Step 2.2: Semantic denoising correction.
[0088] Use the following formula to perform image intermediate embedding E under the guidance of the supplementary modality: i-m and text embedded in E t-m The feature cross correction is performed to obtain the final project image embedding E i 、Project text embedding E t :
[0089]
[0090]
[0091] Where W1,W2∈R d×d With b1,b2∈R d is a trainable parameter, ⊙ represents element-by-element multiplication, and σ represents the sigmoid function; It is a gating mechanism, which realizes information complementarity and redundancy between modalities, strengthens the integration of abstract information and intuitive information, improves the generalization ability of the model, and removes noise from different modal features.
[0092] Step 3: Feature extraction based on binary reweaving and modal information enhancement.
[0093] Since historical user interaction records cannot represent user preferences, there are a large number of false interactions due to accidental clicks and system pushes. Therefore, this embodiment performs binary reweaving on the user-item graph to purify false interactions and obtain accurate node embedding. At the same time, due to the insufficient use of multimodal data, a richer and more comprehensive modality-specific representation is created for each project by constructing an item-item affinity graph, which supplements the information that cannot be fully reflected in the simple user-item interaction graph.
[0094] Step 3.1: Binary re-weaving structure perturbation.
[0095] Define the user-item interaction bipartite graph as G = (V, E), where the node set is defined as V, V = U ∪ I, the edge set is E, and the edge set is constructed as E = {(u, i) | u∈U, i∈I, R ui ≠0}; U = {u} is the user set, the number of users is |U|; I = {i} is the project set, the number of projects is |I|; the user-project interaction record is represented by R ui , if user u clicks item i, then R ui =1, otherwise R ui =0.
[0096] Using the path exploration enhancement mechanism, the original interaction graph G is binary rewoven to generate a new user-item interaction graph structure (G PEE1 ,G PEE2 ), the node embedding in the new graph is updated to (E PEE1 ,E PEE2 ), the newly generated subgraph will be used to calculate the interaction graph reweaving loss in the subsequent steps. Figure 3 As shown, the binary reweaving steps are as follows:
[0097] First, the random subset operation is used to perform Bernoulli distribution sampling of p=1-α on the edge set of each layer in the original interaction graph. By simulating the random paths of some nodes, different subgraphs are assigned to different layers to achieve interaction graph reweaving, as shown in the following formula:
[0098]
[0099]
[0100]
[0101] in, Represents the random subset path exploration of the lth layer of the nth subgraph, l∈[1,k], k is the number of layers set in the graph convolution operation in the user-item interaction graph; α is a hyperparameter used to set the intensity of path exploration enhancement. Different exploration intensities can control the local structure of the path exploration subgraph and adjust the scope and density of the subgraph. Through the path exploration enhancement mechanism, the model learns node representations from two subgraph perspectives, enhancing the model's richness and anti-interference ability.
[0102] Step 3.2: Affinity graph modality information enhancement.
[0103] Specifically, we construct a project-project fully connected graph, such as Figure 4 As shown. m,i and e m,j Represent the embedding representation of item i and item j under modality m, m = {image, text}. Similarity matrix S m Use cosine similarity calculation as follows:
[0104]
[0105] Considering the huge number of nodes in the project-project graph, using a fully connected graph for graph convolution would waste a lot of computing resources, and the huge number of parameters would cause the entire model to fall into serious overfitting. m Perform pruning to obtain a new similarity matrix The new similarity matrix As the adjacency matrix of the fully connected project-project graph, the project embedding is calculated as:
[0106]
[0107]
[0108] in, is the diagonal matrix under the modality m view, and L is the number of graph convolution layers in the item-item affinity graph.
[0109] Then, based on the interaction history, we query the item i with which user u has interaction records, and obtain the embedding e of user u in the corresponding mode by aggregating the embeddings of item i with which user u has interaction records. m,u :
[0110]
[0111] Among them, N u is the neighbor of user u, |N u | is the number of neighbors of user u; N i Neighbors of item i, |N i | is the number of neighbors of item i.
[0112] By concatenating all users in the same modality, we can embed E m,u ∈R d×U and all items embedded in E m,i ∈R d×U Get the unimodal embedding E of users and items under the item-item affinity graph m ∈R d×(U+I) , where E m Including image modality embedding E i and text modal embedding E t ; Embed the image modality E i and text modal embedding E t Perform an average operation to calculate the embedding E of the image modality i and text modal embedding E t Together we get the final multimodal fusion embedding E mul ∈R d×(U+I) :
[0113] E mul =average(E i ,E t ) (11)
[0114] Step 4: Global representation optimization based on multi-view self-supervised contrastive learning.
[0115] The above steps realize the binary reweaving and modal information enhancement of the interaction graph. Next, self-supervised comparative learning is performed for the above multiple perspectives to force the model to learn the significant features that exist in different graph structures, filter out erroneous or unimportant features, and achieve global representation optimization.
[0116] Step 4.1: Interaction graph reweaving loss.
[0117] Construct a loss function L for the binary rewoven graph rcl . The embeddings of the same node in different views are considered as positive pairs, for example, {(e PEE1,u ,ePEE2,u )|u∈U}, and consider the embeddings in different node views as negative pairs, such as {(e PEE1,u ,e PEE2,v )|u,v∈U,u≠v}. By contrastive learning techniques, we maximize the similarity of positive pairs and minimize the similarity of negative pairs to learn a more robust node embedding, as shown below:
[0118]
[0119]
[0120]
[0121] Among them, L rcl Reweaving loss for interaction graphs; denote the interaction graph reweaving loss of user nodes and item nodes respectively; s(·) is the similarity between two vectors, which is set to cosine similarity; τ is a hyperparameter; e PEE1,v 、e PEE2,u 、e PEE2,v Reweave user embeddings in interaction graphs for different dyads; e PEE1,i 、e PEE2,i 、e PEE2,j Item embeddings in interaction graphs for different dyads.
[0122] Step 4.2: Multi-modal synchronization and loss reconciliation.
[0123] Construct a loss function L for the item-item affinity graph and the user-item interaction graph shl , maximize the mutual information of the same node in the item-item affinity graph and the user-item interaction graph, as follows:
[0124]
[0125]
[0126]
[0127] Among them, L shl To reconcile the loss for multi-modal synchronization; are the multimodal synchronization and reconciliation losses for user nodes and item nodes respectively; s(·) is used to calculate the similarity between two vectors, which is set to cosine similarity; τ is a hyperparameter; e mul,u 、e mul,v is the multimodal fusion node embedding of user u and user v under the item-item affinity graph; e id,u 、e id,vis the node embedding of user u and user v in the user-item interaction graph; e mul,i 、e mul,j is the multimodal fusion node embedding of item i and item j under the item-item affinity graph; e id,i 、e id,j are the node embeddings of item i and item j in the user-item interaction graph.
[0128] Step 5: Perform parameter training to generate the final recommendation list.
[0129] After the propagation of the above steps, the enhanced node is represented as:
[0130]
[0131] Among them, e u and e i are the final embedding representations of user u and item i respectively; finally, the user’s preference score y for the item is obtained by calculating the inner product between the user embedding and the item embedding u,i :
[0132]
[0133] A higher score means that the user is more likely to click on the item. In the selection of optimization strategy, BPR loss is used to effectively capture the relative order of users and all positive and negative samples.
[0134] The triplet R used for training is as follows:
[0135]
[0136] The final optimized BPR loss function is:
[0137]
[0138] Among them, μ(·) represents the sigmoid function operation; the final loss Loss is based on the BPR loss, adding the interaction graph reweaving loss L rcl and multi-modal synchronization loss L shl And get:
[0139] Loss = L BPR +λ r L rcl +λ s L shl +λ E ||θ||2 (22)
[0140] Among them, λ r , s To control the hyperparameters of the contrastive learning task, λE is a hyperparameter that controls the strength of L2 regularization, and θ is the parameter set of the entire model. The model is trained by minimizing the final loss Loss, and the model parameters are updated by the gradient descent optimization method. After training, the model predicts the scores of all items for each user, sorts the items according to the scores, and generates the final recommendation list.
[0141] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the above embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the above embodiments, or replace some or all of the technical features therein with equivalents. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the scope defined by the claims of the present invention.
Claims
1. A multimodal recommendation method based on multi-view self-supervised contrastive learning, characterized by: include: Obtain user-item interaction information and item multimodal information; Two-stage modal representation based on feature cross-correction, including feature cross-matching alignment in the first stage and semantic denoising correction in the second stage; using the co-attention module to process the original features, so that the image modal features and text modal features, which originally had a huge semantic gap, can achieve cross-modal interaction, match and align the features, narrow the cross-modal semantic gap, achieve better project representation through feature cross-correction, and realize modal feature correction through the gating mechanism to remove noise in the original data; Feature extraction based on binary reweaving and modal information enhancement, including binary reweaving structural perturbation and affinity graph modal information enhancement; using binary reweaving to perform structural perturbations on the interaction graph to achieve scenario simulation, identify and remove false interactions; create a new item-item affinity graph for modal features, propagate modal features on the affinity graph, reduce information aliasing, and enhance modal information; Global representation optimization based on multi-view self-supervised contrastive learning, including computing interaction graph reweaving loss and multi-modal synchronization reconciliation loss; Perform parameter training and generate the final recommendation list.
2. The multimodal recommendation method based on multi-view self-supervised contrastive learning according to claim 1, characterized in that: In the two-stage modality representation based on feature cross correction, the specific method of feature cross matching alignment is: First, we use VGG16 and BERT to process multimodal data to obtain rough image and text embeddings E respectively. i-o and E t-o ; Then perform feature semantic alignment and use co-attention operations based on self-attention and cross-attention to generate the image intermediate embedding E i-m and text embedded in E t-m , as shown in formula (1); HAVE BEEN i-m ,HAVE BEEN t-m =co-attention(E i-o ,HAVE BEEN t-o )(1) By supplementing attention guidance, the image modal features and text modal features, which originally had a huge semantic gap, can achieve cross-modal interaction and match and align the features.
3. The multimodal recommendation method based on multi-view self-supervised contrastive learning according to claim 2, characterized in that: In the two-stage modal representation based on feature cross correction, the specific method of semantic denoising correction is: Use the following formula to perform image intermediate embedding E under the guidance of the supplementary modality: i-m and text embedded in E t-m The feature cross correction is performed to obtain the final project image embedding E i 、Project text embedding E t : Where W1,W2∈R d×d With b1,b2∈R d is a trainable parameter, ⊙ represents element-by-element multiplication, and σ represents the sigmoid function; It is a gating mechanism that removes noise from different modal features and improves the generalization ability of the model.
4. The multimodal recommendation method based on multi-view self-supervised contrastive learning according to claim 1, characterized in that: In the feature extraction based on binary reweaving and modal information enhancement, the specific method of binary reweaving structure perturbation is: Define the user-item interaction bipartite graph as G = (V, E), where the node set is defined as V, V = U ∪ I, the edge set is E, and the edge set is constructed as E = {(u, i) | u∈U, i∈I, R ui ≠0}; U = {u} is the user set, the number of users is |U|; I = {i} is the project set, the number of projects is |I|; the user-project interaction record is represented by R ui , if user u clicks item i, then R ui =1, otherwise R ui =0; Using the path exploration enhancement mechanism, the original interaction graph G is binary rewoven to generate a new user-item interaction graph structure (G PEE1 ,G PEE2 ), the node embedding in the new graph is updated to (E PEE1 ,E PEE2 ); the binary reweaving steps are as follows: First, the random subset operation is used to perform Bernoulli distribution sampling of p=1-α on the edge set of each layer in the original interaction graph; by simulating the random paths of some nodes, different subgraphs are assigned to different layers to achieve interaction graph reweaving, as shown in the following formula: in, represents the random subset path exploration of the lth layer of the nth subgraph, l∈[1,k], k is the number of layers set in the graph convolution operation in the user-item interaction graph; α is a hyperparameter used to set the intensity of path exploration enhancement. Different exploration intensities can control the local structure of the path exploration subgraph and adjust the scope and density of the subgraph; through the path exploration enhancement mechanism, the model learns node representations from two subgraph perspectives to enhance the richness and anti-interference of the model.
5. The multimodal recommendation method based on multi-view self-supervised contrastive learning according to claim 4, characterized in that: In the feature extraction based on binary reweaving and modal information enhancement, the specific method of enhancing the modal information of the affinity graph is: Build a project-project fully connected graph, where e m,i and e m,j Represent the embedding representation of item i and item j under modality m, m = {image, text}; similarity matrix S m Use cosine similarity calculation as follows: For the similarity matrix S m Perform pruning to obtain a new similarity matrix The new similarity matrix As the adjacency matrix of the item-item fully connected graph; the item embedding is calculated as: in, is the diagonal matrix under the modality m view, L is the number of layers of graph convolution in the item-item affinity graph; Then, based on the interaction history, we query the item i with which user u has interaction records, and obtain the embedding e of user u in the corresponding mode by aggregating the embeddings of item i with which user u has interaction records. m,u : Among them, N u is the neighbor of user u, |N u | is the number of neighbors of user u; N i Neighbors of item i, |N i | is the number of neighbors of item i; By concatenating all users in the same modality, we can embed E m,u ∈R d×U and all items embedded in E m,i ∈R d×U Get the unimodal embedding E of users and items under the item-item affinity graph m ∈R d×(U+I) , where E m Including image modality embedding E i and text modal embedding E t ; Calculate the image modality embedding E by formula (11) i and text modal embedding E t Together we get the final multimodal fusion embedding E mul ∈R d×(U+I) ; AND mul =average(E i ,AND t )(11) Among them, average represents the averaging operation.
6. The multimodal recommendation method based on multi-view self-supervised contrastive learning according to claim 5, characterized in that: In the global representation optimization based on multi-view self-supervised contrastive learning, the specific method for calculating the interaction graph reweaving loss is: Construct a loss function L for the binary rewoven graph rcl ; The embeddings of the same node in different views are regarded as positive pairs, and the embeddings in different node views are regarded as negative pairs. By using contrastive learning techniques to maximize the similarity of positive pairs and minimize the similarity of negative pairs, a more robust node embedding is learned, as shown in the following formula: Among them, L rcl Reweaving loss for interaction graphs; denote the interaction graph reweaving loss of user nodes and item nodes respectively; s(·) is the similarity between two vectors, which is set to cosine similarity; τ is a hyperparameter; e PEE1,v 、e PEE2,u 、e PEE2,v Reweave user embeddings in interaction graphs for different dyads; e PEE1,i 、e PEE2,i 、e PEE2,j Item embeddings in interaction graphs for different dyads.
7. The multimodal recommendation method based on multi-view self-supervised contrastive learning according to claim 6, characterized in that: In the global representation optimization based on multi-view self-supervised contrastive learning, the specific method of multi-modal synchronous harmonic loss is: Construct a loss function L for the item-item affinity graph and the user-item interaction graph shl , maximize the mutual information of the same node in the item-item affinity graph and the user-item interaction graph, as follows: Among them, L shl To reconcile the loss for multi-modal synchronization; are the multimodal synchronization and reconciliation losses for user nodes and item nodes respectively; s(·) is used to calculate the similarity between two vectors, which is set to cosine similarity; τ is a hyperparameter; e mul,u 、e mul,v is the multimodal fusion node embedding of user u and user v under the item-item affinity graph; e id,u 、e id,v is the node embedding of user u and user v in the user-item interaction graph; e mul,i 、e mul,j is the multimodal fusion node embedding of item i and item j under the item-item affinity graph; e id,i 、e id,j are the node embeddings of item i and item j in the user-item interaction graph.
8. The multimodal recommendation method based on multi-view self-supervised contrastive learning according to claim 7, characterized in that: The specific method of performing parameter training and generating the final recommendation list is as follows: After propagation, the enhanced node embedding is: Among them, e u and e i are the final embedding representations of user u and item i respectively; finally, the user’s preference score y for the item is obtained by calculating the inner product between the user embedding and the item embedding u,i : y u,i =e u T *e i (19) A higher score means that the user is more likely to click on the item. In the selection of optimization strategy, BPR loss is used to effectively capture the relative order of users and all positive and negative samples. The triplet R used for training is as follows: The final optimized BPR loss function is: Among them, μ(·) represents the sigmoid function operation; the final loss Loss is based on the BPR loss, adding the interaction graph reweaving loss L rcl and multi-modal synchronization loss L shl And get: Loss=L BPR +λ r L rcl +λ s L shl +λ E ||θ||2 (22) Among them, λ r , s To control the hyperparameters of the contrastive learning task, λ E is the hyperparameter that controls the strength of L2 regularization, and θ is the parameter set of the entire model; The model is trained by minimizing the final loss Loss, and the model parameters are updated through the gradient descent optimization method. After the training is completed, the model predicts the scores of all items for each user, sorts the items according to the scores, and generates the final recommendation list.
Citation Information
Patent Citations
Interactive visual recommendation method based on heterogeneous network information embedding model
CN114238750A
Non-homogeneity dynamic social recommendation method based on multiple relation types
CN116542742A
Multi-modal personalized clothing recommendation method based on graph neural network
CN118154282A
Cited By
False information detection method and device for multi-modal data privacy protection
CN118965444A
A false information detection method and device for multimodal data privacy protection
CN118965444B
Method for multi-modal recommendation, electronic equipment and readable medium
CN119475241A
Multi-modal robust recommendation method and system based on self-supervised learning
CN119579269A
