Graph Transform article recommendation method based on multi-modal semantic fusion
By adopting the graph Transformer method of multi-modal semantic fusion in the recommendation system, combined with the graph convolutional neural network and the modality adaptive graph Transformer model, the problem of incomplete capture of user preferences and resistance to modal deficiencies is solved, and the recommendation is improved. System accuracy and diversity, especially in cold start scenarios.
Patent Information
- Application Number
- CN202410685432.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-30
- Publication Date
- 2024-09-17
AI Technical Summary
Existing recommendation systems have difficulty generating accurate recommendations when dealing with users with sparse behavioral data, and ignore the evaluation of users' preference for different modalities, resulting in the recommendation system's incomplete capture of user preferences and poor ability to resist modal deletion.
The graph Transformer method based on multi-modal semantic fusion is used to guide the weight allocation of multi-modal features of items through the representation in user collaborative filtering scenarios, constructing user-item interaction graphs and multi-layer graph convolutional neural network models, combined with modal automatic The adaptive graph Transformer model integrates multi-modal features of users and items to optimize the final representation of users and items.
It improves the accuracy and diversity of the recommendation system, especially in cold start scenarios. It can more comprehensively model user preferences, alleviate the problem of data sparsity, and improve the accuracy of recommendations.
Smart Images

Figure CN118657560A
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of computer information recommendation, and specifically is a graph Transformer item recommendation method based on multimodal semantic fusion. Background Art
[0002] How to accurately capture user preferences has always been the hottest topic in the field of recommendation systems. In the past decade, collaborative filtering algorithms based on ID embedding have become the mainstream paradigm by analyzing users' historical behavior data and modeling user preferences. However, this method is difficult to work when encountering users with sparse behavior data, especially for new users (cold start problem) or items that are not frequently interacted with. It is difficult for the algorithm to capture enough information to generate accurate recommendations. In addition, collaborative filtering algorithms also face other challenges and defects, such as insufficient recommendation diversity, poor interpretability, and lack of fine-grained understanding of user preferences. In response to the above problems, researchers have begun to try to enrich the feature representation of items using the multimodal information of items (such as text descriptions, images, etc.), thereby improving the accuracy of recommendations. The core issue is how to effectively fuse the multimodal information of items so that the items are expressed more accurately. For example, the PMGT model is a pre-trained model that uses fused multimodal features and interactions. For the extracted multimodal embedding vector, it uses an attention mechanism to obtain its multimodal representation, and then adds the multimodal representation to the position embedding and role-based embedding as the initialization node embedding vector. The MKGAT model uses an entity approach to create a multimodal knowledge graph. Its multimodal knowledge graph entity encoder uses different encoders to encode various data types and aggregates neighbor information with a graph attention layer. After learning the representation of each entity, the knowledge graph uses them as input to learn knowledge reasoning relationships. The MMGCN model implements message passing based on a graph neural network, and constructs a user-item interaction bipartite graph for a specific item modality, using multi-hop neighbor information to learn user-specific modality preferences. The LATTICE model constructs a homogeneous graph based on the relationship between items in each modality to capture rich representations between homogeneous data. The HUIGN model attempts to learn multi-level user intentions, constructing two different information aggregation methods and a collaborative interaction item graph. The correlation between items is used for internal aggregation to obtain a representation that can convey user intentions to items.
[0003] Although the above methods use multimodal information to improve the performance of the recommendation system, they ignore the importance of user representations in collaborative filtering scenarios for evaluating users' preferences for different modalities of items, which leads to insufficient utilization of user historical interaction records by the recommendation system, resulting in problems such as incomplete capture of user preferences and poor ability to resist modality missing. Summary of the invention
[0004] The present invention aims to address the deficiencies of the above-mentioned prior art and proposes a graph Transformer item recommendation method based on multimodal semantic fusion, which uses the representation of users in collaborative filtering scenarios to guide the weight distribution of multimodal features of items, thereby better utilizing the multimodal information of items and improving the accuracy of recommendations.
[0005] In order to achieve the above-mentioned purpose, the present invention adopts the following technical scheme:
[0006] The invention discloses a method for recommending items based on a multimodal semantic fusion graph Transformer, which comprises the following steps:
[0007] Step 1: Collect the historical interaction records of all users R = {U, I}, where U represents the user set, and the number of users is N, and any user is recorded as u; I represents the set of all items that interact with the user, and the number of items is Q, and any item is recorded as i; for any single user u, let I u represents the interactive item set of user u, and I u Any item in is denoted as i u ;
[0008] Extract the text description i of item i in I T , as the text mode of item i, thus constructing the text mode set I of item set I T ;
[0009] Extract image content i of item i in I V , as the visual modality of item i, thus constructing the visual modality set I of item set I V ;
[0010] Step 2: Based on the user's historical interaction record R, construct a user-item interaction graph G, where D represents the vertex set consisting of user vertices and item vertices in G; E represents the edge set consisting of the interaction relationship between user vertices and item vertices in G;
[0011] According to E, construct the interaction matrix A of user vertex to item vertex = {A ui} NxQ , where A ui Represents the interaction relationship between user vertex u and item vertex i. If user vertex u has an interaction relationship with item vertex i, let A ui =1; otherwise, let A ui =0;
[0012] According to A and the serial number of the item vertex, the user-item text modal interaction matrix R is constructed respectively T and the user-item visual modality interaction matrix R V ;
[0013] Step 3: Use the Embedding method to initialize the feature vector E of user u u ={x 1 , ..., x b , ..., x d}、Item i u The eigenvector of Among them, x b represents the bth user feature of user u, d represents the total number of features, 1≤b≤d; y c Indicates item i u The cth item feature of ;
[0014] Use pre-trained large models for I T The text description of item i in T and I V The image content of item i in V Process them separately and get the text feature M of item i accordingly T ={t 1 , ..., t p , ..., t P} and the visual features M of item i V = {v 1 , ..., v j , ..., v J}, thereby constructing the item text feature set and the object visual feature set Among them, t p represents the pth text feature of item i, P represents the total number of text features; v j represents the jth visual feature of item i, and J represents the total number of visual features;
[0015] Step 4: Build a multi-layer graph convolutional neural network model and transform the user’s feature vector E u and i u The eigenvector of They are respectively input into the multi-layer graph convolutional neural network model for multiple aggregation propagation and updates to obtain the user representation u in the collaborative filtering scenario. id And item representation in collaborative filtering scenarios
[0016] Step 5: Build a modality-adaptive graph Transformer model and use it to u The text features and visual features of the L items with the highest interaction frequency are updated to obtain the user representation u in text mode t and the user representation u in visual mode v ;
[0017] Step 6: Set the user representation u in text mode t and the user representation u in visual mode v , respectively with u id Perform vector cosine similarity calculation to obtain the similarity value of the text mode and the similarity value of the visual mode, which are used to calculate the contribution of the text mode α t and the contribution of the visual modality α v ; Thus according to α t and α v Get the final representation u of user u f =u id +α t u t +α v u v and items i u The final expression
[0018] Step 7: Based on user u, item i u The loss function is constructed based on the similarity value of the final representation, and is used to iteratively train the multi-layer graph convolutional neural network model and the modality-adaptive graph Transformer model to obtain the optimal item recommendation model.
[0019] Step 8: The text features and visual features of any item and the features of any user or item are processed into the optimal item recommendation model, and the optimal representation of the user and item is obtained, thereby calculating the similarity value of the optimal representation of the user and item, and recommending the most similar items to the corresponding user.
[0020] The graph Transformer recommendation method based on multimodal semantic fusion described in the present invention is also characterized in that step 4 comprises:
[0021] Step 4.2: Define the current number of layers of the multi-layer graph convolutional neural network model as l, and initialize l = 0;
[0022] Step 4.3: Define the feature vector of the output of the first layer of the multi-layer graph convolutional neural network model as H (l) , and initialize H (l) =H, where H represents E u and The concatenated feature vector;
[0023] Step 4.4: Transform the interaction matrices A and H (l) Input the multi-layer graph convolutional neural network model and use formula (1) to output the feature vector H of the l+lth layer (l+1) :
[0024]
[0025] In formula (1), represents the matrix obtained by adding the interaction matrix A and the identity matrix, represents the degree matrix of the vertices in the interaction graph composed of user vertex u and item vertex i, W (l) is the parameter matrix of the lth layer, and softmax(·) is the normalized exponential function;
[0026] Step 4.5: Split the user representation u in the collaborative filtering scenario from the feature vector output by the last layer of the multi-layer graph convolutional neural network model id And item representation in collaborative filtering scenarios
[0027] The step 5 comprises:
[0028] Step 5.1: From user u’s interactive item set I u The text features and visual features corresponding to the L items with the highest interaction frequency are randomly selected to form the text feature input sequence of user u. and visual feature input sequence in, Represents the text features of the zth item in the user u’s historical interaction, represents the visual features of the zth item in the historical interaction of user u, L represents the number of items in the input sequence, 1≤z≤L;
[0029] If the number of items that user u has interacted with in the past is less than L, the input sequence is padded with zero characters;
[0030] Step 5.2: Build a modality-adaptive graph Transformer model, including: text feature encoder and visual feature encoder, residual connection layer, normalization layer and fully connected layer;
[0031] S T The input text feature encoder performs multi-layer self-attention mechanism, residual connection and normalization to obtain the updated text feature sequence in, represents the updated text features of the zth item in the user u’s historical interaction. Finally, S′ T The input is processed in the fully connected layer and the representation u of user u in text mode is output. t ;
[0032] Step 5.3: S V The input visual feature encoder is processed with multi-layer self-attention mechanism, residual connection and normalization operation to obtain the updated visual feature sequence in, represents the updated visual features of the zth item in the user u’s historical interaction. Finally, S′ V The input is processed in the fully connected layer and the representation u of user u in the visual mode is output. v .
[0033] The loss function in step 7 is constructed using formula (2):
[0034]
[0035] In formula (2), represents the Bayesian personalized ranking loss function; Item i′ is the item that user u has no history of interaction with u The final expression of is the evaluation score, and is user u's response to item i u The preference score of is the item i′ that user u has no historical interaction with u is the preference score of , and σ(·) is the sigmoid activation function.
[0036] An electronic device of the present invention includes a memory and a processor, wherein the memory is used to store a program that supports the processor to execute the graph transformer item recommendation method, and the processor is configured to execute the program stored in the memory.
[0037] The present invention provides a computer-readable storage medium, wherein a computer program is stored on the computer-readable storage medium, and the computer program executes the steps of the graph transformer item recommendation method when the computer program is executed by a processor.
[0038] Compared with the prior art, the present invention has the following beneficial effects:
[0039] 1. A novel modality-adaptive graph Transformer model designed in the present invention can automatically adopt the corresponding feature encoder according to the different dimensions of the text features and visual features of the items, and fully integrate the modal features of other items from the same user through a multi-layer self-attention mechanism, so as to better model the user's modal representation.
[0040] 2. The method for fusing multimodal information of items proposed in the present invention not only considers modeling the user's representation in the collaborative filtering scenario through the user's historical interaction records, but also creatively uses the user representation in the collaborative filtering scenario to guide the fusion of the user's multimodal representation, thereby more effectively utilizing the multimodal information of items. On the basis of alleviating the problem of data sparsity, it can also be well used in cold start recommendation scenarios, thereby improving the accuracy of recommendations. BRIEF DESCRIPTION OF THE DRAWINGS
[0041] Figure 1 It is the overall flow chart of the method of the present invention;
[0042] Figure 2 This is a flowchart of multimodal feature extraction of items of the present invention. DETAILED DESCRIPTION
[0043] In this example, a graph transformer item recommendation method based on multimodal semantic fusion first obtains the user representation in the collaborative filtering scenario through graph convolutional network aggregation and update, then obtains the user's text modality representation and visual modality representation through the graph transformer model, and finally uses the user representation in the collaborative filtering scenario to guide the fusion of the user's text modality representation and visual modality representation, which can more comprehensively model user preferences and thus achieve more accurate personalized item recommendations. Specifically, Figure 1 As shown, the following steps are followed:
[0044] Step 1: Collect the user's historical interaction records R = {U, I}, where U represents the user set, and the number of users is N, and any user is recorded as u; I represents the set of all items that interact with the user, and the number of items is Q, and any item is recorded as i; in this embodiment, the number of users N = 3463, the number of items Q = 19234; for any single user u, let I u Represents the user's interactive item set, and any item is recorded as i u ;
[0045] like Figure 2 As shown, the text description of item i is extracted using Umi-OCR character recognition technology T , and as its text mode, thus constructing the text mode set I of the item set I T ;
[0046] Extract the image content of item i using image recognition technology V , and as its visual modality, thus constructing the visual modality set I of the item set I T ;
[0047] Step 2: Based on the user's historical interaction records R, construct a user-item interaction bipartite graph G, where D represents the vertex set consisting of user vertices and item vertices in G; E represents the edge set consisting of the interaction relationship between user vertices and item vertices in G;
[0048] According to E, construct the interaction matrix A of user vertex to item vertex = {A ui} NxQ , where A uiRepresents the interaction relationship between user vertex u and item vertex i. If user vertex u has an interaction relationship with item vertex i, let A ui =1; otherwise, let A ui =0; In this embodiment, the size of the interaction matrix A is (3463x19234), which means there are 3463 rows and 19234 columns;
[0049] According to A and the serial number of the item vertex, the user-item text modal interaction matrix R is constructed respectively T and the user-item visual modality interaction matrix R V ; R T and R V The size of the matrix is the same as A, both are (3463x19234);
[0050] Step 3: Use the Embedding method to initialize the feature vector E of user u u ={x 1 , ..., x b , ..., x d}、Item i u The eigenvector of Among them, x b represents the bth user feature of user u, d represents the total number of features, 1≤b≤d; y c Indicates item i u The cth item feature of ; in this embodiment, the dimension d of both users and items is 64;
[0051] Use the pre-trained large model Bert-Base to I T The text description of item i in T Process and obtain the text feature M of any item i T ={t 1 , ..., t p , ..., t P}; Use the pre-trained large model Inception-V4 to I V The image content of item i in V Process and obtain the visual feature M of any item i V = {v 1 , ..., v j , ..., v J}; where t p represents the pth text feature of item i, P represents the total number of text features; v j represents the jth visual feature of item i, and J represents the total number of visual features; in this embodiment, the text feature dimension of the item is P=768, and the visual feature dimension is J=1000;
[0052] Step 4: Build a 3-layer graph convolutional neural network model. Experiments have shown that the performance of a 3-layer graph convolutional network is optimal. Too many network layers will lead to the gradient vanishing problem. u and item i u The eigenvector of They are respectively input into the multi-layer graph convolutional neural network model for multiple aggregation propagation and updates, and the user representation u in the collaborative filtering scenario is obtained accordingly. id And item representation in collaborative filtering scenarios The specific steps are as follows:
[0053] Step 4.1, define the current number of layers of the multi-layer graph convolutional neural network model as l, and initialize l = 0;
[0054] Step 4.2: Define the feature vector of the output of the first layer of the multi-layer graph convolutional neural network model as H (l) , and initialize H (l) =H, where H represents E u and The concatenated feature vector;
[0055] Step 4.3: Transform the interaction matrices A and H (l) Input the multi-layer graph convolutional neural network model, set the learning rate lr = {0.1, 0.01, 0.001}, and use formula (1) to output the feature vector H of the l+1th layer (l+1) :
[0056]
[0057] In formula (1), represents the matrix obtained by adding the interaction matrix A and the identity matrix, represents the degree matrix of the vertices in the interaction graph composed of user vertex u and item vertex i, W (l) is the parameter matrix of layer I, softmax(·) is the normalized exponential function;
[0058] Step 4.5: Split the user representation u in the collaborative filtering scenario from the feature vector output by the last layer of the multi-layer graph convolutional neural network model id And item representation in collaborative filtering scenarios
[0059] Step 5: Construct a modality-adaptive graph Transformer model based on I u The serial number of the item in step 3, the text feature set of all items and visual feature set In the above example, we can separate the interactive item set I of user u. u Any item in uText features and visual features
[0060] From the interactive item set I of user u u L items are randomly selected from the graph, and the text features and visual features of these items are respectively input into the graph Transformer model. Through multi-layer attention mechanism, residual connection and normalization processing, the image quality of any item i is obtained. u The updated text features are The visual features are Then use the fully connected operation modeling to get the user representation u in text mode t and the user representation u in visual mode v , the specific steps are as follows:
[0061] Step 5.1: From user u’s interactive item set I u The text features and visual features corresponding to the L items with the highest interaction frequency are selected to form the text feature input sequence of user u and visual feature input sequence in, Represents the text features of the zth item in the user u’s historical interaction, represents the visual features of the zth item in the history of user u's interaction. L represents the number of items in the input sequence, 1≤z≤L. In this example, L=50 is set, which means that the 50 items with the highest user interaction frequency are selected. If the number of items in the history of user u's interaction is less than L, the input sequence is padded with zero characters.
[0062] Step 5.2: Build a modality-adaptive graph Transformer model, including: text feature encoder and visual feature encoder, residual connection layer, normalization layer and fully connected layer;
[0063] S T The input text feature encoder is processed and the updated text feature sequence is obtained using a 3-layer self-attention mechanism, residual connection and normalization operation. in, represents the updated text features of the zth item in the historical interaction of user u, and finally S′ T The input is processed in the fully connected layer and the representation u of user u in text mode is output. t ; In this embodiment, the user's text modality representation dimension is 64, which is consistent with the user representation dimension under collaborative filtering;
[0064] Step 5.3: S V The input is processed in the visual feature encoder, and the updated visual feature sequence is obtained using a 3-layer self-attention mechanism, residual connection and normalization operation. in, represents the updated visual features of the zth item in the historical interaction of user u, and finally S′ V The input is processed in the fully connected layer and the user’s representation u in the visual mode is output v ; In this embodiment, the user's visual modality representation dimension is 64, which is consistent with the user representation dimension under collaborative filtering;
[0065] Step 6: Set the user representation u in text mode t and the user representation u in visual mode v , respectively with u id Perform vector cosine similarity calculation to obtain the similarity value of the text mode and the similarity value of the visual mode, which are used to calculate the contribution of the text mode α t and the contribution of the visual modality α v ; Thus according to α t and α v Get the final representation u of user u f =u id +α t u t +α v u v and items i u The final expression The specific steps are as follows:
[0066] Step 6.1, calculate the modal contribution; the representation u of user u in the text modality t and the visual modality representation u v , respectively with the user collaborative filtering representation u id Calculate the cosine similarity and get the text modality contribution weight α t and the visual modality contribution weight α v , α t and α v The value is between (0, 1). The user representation in the collaborative filtering scenario reflects the user's overall preference. The more similar the user's modal representation is to the collaborative filtering representation, the more the user likes the modality. When modeling the user's final preference, the greater the proportion of the modality. The calculation formula is as follows:
[0067]
[0068] In formula (I), u t ·u id Represents the user u in text mode t And the representation u under user collaborative filtering id The inner product of formula (II), where u v ·u idrepresents the representation u of user u in visual mode v Representation u under collaborative filtering with users id The inner product of ||u t || represents the modulus length of the user text modal representation, ||u v || represents the modulus of the user's visual modality representation, ||u id || represents the user ID embedding vector u id The modulus length; u t The formula for calculating the modulus length is: where t k Indicates user text modal representation u t The kth feature, u u The formula for calculating the modulus length is: where v k Indicates the user visual modality u v The kth feature of
[0069] Step 7: Based on user u, item i u The loss function is constructed based on the similarity value of the final representation, and is used to train the multi-layer graph convolutional neural network model and the modality-adaptive graph Transformer model. After 100 iterations, the optimal item recommendation model is obtained. The specific process is as follows:
[0070]
[0071] In formula (2), represents the Bayesian personalized ranking loss function; Item i that user u has no history of interaction with u′ The final expression of is the evaluation score, and is user u's response to item i u The preference score of For user u to item i u′ The preference score of , σ(·) is the sigmoid activation function, which will evaluate the score Converted into a probability value, that is By minimizing this loss function, the parameters learned by the Bayesian model can reflect the user's personalized preferences and effectively sort the items in the recommendation list; the present invention improves the accuracy and recall rate of the two recommendation evaluation indicators by 4%-6% compared with multimodal recommendation models such as BM3 (proposed in 2023) and GRAGON (proposed in 2023);
[0072] Step 8: The text features and visual features of any item and the features of any user or item are processed into the optimal item recommendation model, and the optimal representation of the user and item is obtained, thereby calculating the similarity value of the optimal representation of the user and item, and recommending the most similar items to the corresponding user. The specific contents are as follows:
[0073] The feature vector E of user u u , the feature vector E of item i i , the text feature M of item i T and visual features M V The input is processed in the optimal item recommendation model, and the optimal representation of the user and item is obtained, so as to calculate the similarity value of the optimal representation of the user and item, and recommend the most similar items to the corresponding user, as shown in formula (3):
[0074] TopK i ={i 1 , ..., i b ,...i K} (3)
[0075] In formula (3), TopK i represents the top K items that the model recommends that user u is most interested in, i b represents the bth item recommended, 1≤b≤K; in this embodiment, K=50, which means that the top 50 items that the user is most interested in are pushed to the user.
[0076] In this embodiment, an electronic device includes a memory and a processor, wherein the memory is used to store a program that supports the processor to execute the above method, and the processor is configured to execute the program stored in the memory.
[0077] In this embodiment, a computer-readable storage medium stores a computer program on the computer-readable storage medium, and the computer program executes the steps of the above method when executed by a processor.
[0078] In summary, the present invention takes into account the significance of user feature representation in collaborative filtering scenarios to guide the model to learn users' preferences for different modalities, thereby making more efficient use of multimodal information of items, more comprehensively modeling user preferences, and greatly improving the performance of the recommendation system.
Claims
1. A graph Transformer item recommendation method based on multimodal semantic fusion, characterized in that: The following steps are involved: Step 1: Collect the historical interaction records of all users R = {U, I}, where U represents the user set, and the number of users is N, and any user is recorded as u; I represents the set of all items that interact with the user, and the number of items is Q, and any item is recorded as i; for any single user u, let I u represents the interactive item set of user u, and I u Any item in is denoted as i u ; Extract the text description i of item i in I T , as the text mode of item i, thus constructing the text mode set I of item set I T ; Extract image content i of item i in I V , as the visual modality of item i, thus constructing the visual modality set I of item set I V ; Step 2: Based on the user's historical interaction record R, construct a user-item interaction graph G, where D represents the vertex set consisting of user vertices and item vertices in G; E represents the edge set consisting of the interaction relationship between user vertices and item vertices in G; According to E, construct the interaction matrix A of user vertex to item vertex = {A ui } NxQ , where A ui Represents the interaction relationship between user vertex u and item vertex i. If user vertex u has an interaction relationship with item vertex i, let A ui =1; otherwise, let A ui =0; According to A and the serial number of the item vertex, the user-item text modal interaction matrix R is constructed respectively T and the user-item visual modality interaction matrix R V ; Step 3: Use the Embedding method to initialize the feature vector E of user u u ={x1,…,x b ,...,x b }、Item i u The eigenvector of Among them, x b represents the bth user feature of user u, d represents the total number of features, 1≤b≤d; y c Indicates item i u The cth item feature of ; Use pre-trained large models for I T The text description of item i in T and I V The image content of item i in V Process them separately and get the text feature M of item i accordingly T ={t1,…,t p ,...,t P } and the visual features M of item i V ={v1,…,v j ,...,v J }, thereby constructing the item text feature set and the object visual feature set Among them, t p represents the pth text feature of item i, P represents the total number of text features; v j represents the jth visual feature of item i, and J represents the total number of visual features; Step 4: Build a multi-layer graph convolutional neural network model and transform the user’s feature vector E u and i u The eigenvector of They are respectively input into the multi-layer graph convolutional neural network model for multiple aggregation propagation and updates to obtain the user representation u in the collaborative filtering scenario. id And item representation in collaborative filtering scenarios Step 5: Build a modality-adaptive graph Transformer model and use it to u The text features and visual features of the L items with the highest interaction frequency are updated to obtain the user representation ut in the text mode and the user representation u in the visual mode. v ; Step 6: Set the user representation u in text mode t and the user representation u in visual mode v , respectively with u id Perform vector cosine similarity calculation to obtain the similarity value of the text mode and the similarity value of the visual mode, which are used to calculate the contribution of the text mode α t and the contribution of the visual modality α v ; Thus according to α t and α v Get the final representation u of user u f =u id +α t u t +α v u v and items i u The final expression Step 7: Based on user u, item i u The loss function is constructed based on the similarity value of the final representation, and is used to iteratively train the multi-layer graph convolutional neural network model and the modality-adaptive graph Transformer model to obtain the optimal item recommendation model. Step 8: The text features and visual features of any item and the features of any user or item are processed into the optimal item recommendation model, and the optimal representation of the user and item is obtained, thereby calculating the similarity value of the optimal representation of the user and item, and recommending the most similar items to the corresponding user.
2. According to claim 1, a graph Transformer recommendation method based on multimodal semantic fusion is characterized in that: The step 4 comprises: Step 4.2: Define the current number of layers of the multi-layer graph convolutional neural network model as l, and initialize l = 0; Step 4.3: Define the feature vector of the output of the first layer of the multi-layer graph convolutional neural network model as H (l) , and initialize H (l) =H, where H represents E u and The concatenated feature vector; Step 4.4: Transform the interaction matrices A and H (l) Input the multi-layer graph convolutional neural network model and use formula (1) to output the feature vector H of the l+1th layer (l+1) : In formula (1), represents the matrix obtained by adding the interaction matrix A and the identity matrix, represents the degree matrix of the vertices in the interaction graph composed of user vertex u and item vertex i, W (l) is the parameter matrix of the lth layer, and softmax(·) is the normalized exponential function; Step 4.5: Split the user representation u in the collaborative filtering scenario from the feature vector output by the last layer of the multi-layer graph convolutional neural network model id And item representation in collaborative filtering scenarios 3. According to claim 2, a graph Transformer recommendation method based on multimodal semantic fusion is characterized in that: The step 5 comprises: Step 5.1: From user u’s interactive item set I u The text features and visual features corresponding to the L items with the highest interaction frequency are randomly selected to form the text feature input sequence of user u. and visual feature input sequence in, Represents the text features of the zth item in the user u’s historical interaction, represents the visual features of the zth item in the historical interaction of user u, L represents the number of items in the input sequence, 1≤z≤L; If the number of items that user u has interacted with in the past is less than L, the input sequence is padded with zero characters; Step 5.2: Build a modality-adaptive graph Transformer model, including: text feature encoder and visual feature encoder, residual connection layer, normalization layer and fully connected layer; S T The input text feature encoder performs multi-layer self-attention mechanism, residual connection and normalization to obtain the updated text feature sequence in, represents the updated text features of the zth item in the user u's historical interaction. Finally, S' T The input is processed in the fully connected layer and the representation u of user u in text mode is output. t ; Step 5.3: S V The input visual feature encoder is processed with multi-layer self-attention mechanism, residual connection and normalization operation to obtain the updated visual feature sequence in, represents the updated visual features of the zth item in the user u's historical interaction. Finally, S' V The input is processed in the fully connected layer and the representation u of user u in the visual mode is output. v .
4. According to claim 3, a graph Transformer recommendation method based on multimodal semantic fusion is characterized in that: The loss function in step 7 is constructed using formula (2): In formula (2), represents the Bayesian personalized ranking loss function; Item i' that user u has no history of interaction with u The final expression of is the evaluation score, and is user u's response to item i u The preference score of is the item i' that user u has no historical interaction with u is the preference score of , and σ(·) is the sigmoid activation function.
5. An electronic device, comprising a memory and a processor, characterized in that: The memory is used to store a program that supports the processor to execute the graph Transformer item recommendation method described in any one of claims 1-4, and the processor is configured to execute the program stored in the memory.
6. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the graph Transformer item recommendation method described in any one of claims 1 to 4 are executed.
Citation Information
Cited By
Recommendation method and system based on large language model and hypergraph neural network
CN118885671A
Multi-modal recommendation method based on information bottleneck principle
CN119128280A
A multimodal recommendation method based on information bottleneck principle
CN119128280B
Doctor recommendation method for mining doctor network by using large-scale language model
CN119170224A
Task-oriented multi-modal article recommendation method and device, electronic equipment and medium
CN119515495A
