A recommendation method integrating region negative sampling and image contrastive learning
By integrating regional negative sampling and graph contrastive learning methods, the problem of insufficient flexibility of sampling methods and data sparsity in graph structure data processing is solved, the performance and personalization level of the recommendation network model are improved, and more accurate and personalized are achieved. recommendation effect.
Patent Information
- Application Number
- CN202411026248.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-30
- Publication Date
- 2024-10-29
- Estimated Expiration
- 2044-07-30
AI Technical Summary
Existing sampling methods lack flexibility in graph structure data processing and cannot fully consider global information. As a result, the sampling process cannot effectively cover all important areas in the graph, and hard sampling areas are left unexplored, affecting the graph recommendation network model. performance and efficiency.
Using the method of merging regional negative sampling and graph contrastive learning, by constructing a data set and importing a normalized adjacency matrix to aggregate neighborhood information in a multi-layer graph convolution network, regional negative sampling and random singular value decomposition are performed to construct Baye The personalized ranking loss function and the contrastive learning loss function are used to jointly train the recommendation network model.
It improves the quality and correlation of sampled negative instances, alleviates the problem of data sparseness, retains the inherent semantic structure of interactive data, reduces noise sensitivity, and improves the performance and personalization level of the recommendation network model.
Smart Images

Figure CN118568358B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of computer technology, and more specifically, to a recommendation method integrating region negative sampling and image contrast learning. Background Art
[0002] Contrastive Learning is a machine learning method that aims to learn data representation by comparing the similarities or differences between different samples. The core idea is to learn the representation of data by comparing positive samples (similar samples) and negative samples (dissimilar samples), so that similar samples are closer in the representation space and dissimilar samples are farther away. Contrastive Learning has been widely used in computer vision, natural language processing, and recommendation systems.
[0003] In the recommendation system, contrastive learning can help the model learn the similarities or associations between users and items. By converting user behavior data into contrastive learning tasks, the recommendation system can better understand user preferences and behavior patterns, thereby improving the accuracy and personalization of recommendations.
[0004] Graph Neural Networks (GNNs) are a type of neural network model specifically designed to process graph data. Graph neural networks learn the representation of nodes by leveraging the information of nodes and edges in the graph structure, thereby effectively capturing the relationship and local structure between nodes.
[0005] In the graph neural network recommendation system, contrastive learning can be combined with graph neural networks to improve the recommendation effect. By combining contrastive learning tasks with node representation learning of graph neural networks, the model can better understand the relationship between users and items and make recommendations more accurately. For example, user behavior data can be converted into a graph structure, and contrastive learning can be used to learn node representations, and then combined with the recommendation network model of the graph neural network to predict the user's preference for items. This method of integrating contrastive learning and graph neural networks can effectively solve the problems of cold start, sparsity, and scalability faced by traditional recommendation systems, thereby improving the performance of the recommendation system and user satisfaction.
[0006] In the graph neural network recommendation system, contrastive learning can be combined with graph neural networks to improve the recommendation effect. By combining contrastive learning tasks with node representation learning of graph neural networks, the model can better understand the relationship between users and items and make recommendations more accurately. For example, user behavior data can be converted into a graph structure, and contrastive learning can be used to learn node representations, and then combined with the recommendation network model of the graph neural network to predict the user's preference for items. This method of integrating contrastive learning and graph neural networks can effectively solve the problems of cold start, sparsity, and scalability faced by traditional recommendation systems, thereby improving the performance of the recommendation system and user satisfaction.
[0007] Negative sampling is a key technology in the training of GNN-based recommendation network models, and is particularly suitable for processing implicit feedback data. Implicit feedback refers to feedback inferred from user behaviors (such as clicks, views, and purchases) rather than feedback explicitly provided by users. With the popularity of implicit feedback in online platforms, it is widely used in the training process of recommendation systems. These behaviors usually only represent positive feedback from users, so negative sampling needs to be introduced to provide negative feedback information. In the training of collaborative filtering-based models, it is necessary to distinguish between positive and negative samples to enhance the model's ability to recommend items of interest to users. The negative sampling method has a significant impact on the final performance of the recommendation network model.
[0008] However, current sampling methods mainly focus on point-by-point or line-by-line sampling, which have certain limitations when processing graph-structured data. This limitation manifests itself in two aspects: first, the lack of flexibility and the inability to fully consider the global information in the graph structure, resulting in the sampling process possibly not effectively covering all important areas in the graph; second, a large number of hard-sampled areas are left unexplored. Hard-sampled areas refer to some key areas in the graph or nodes or edges with important information, but due to the limitations of the sampling method, these areas have not been fully explored. Therefore, existing sampling methods have certain limitations when processing graph-structured data, and more flexible and efficient sampling strategies are needed to improve the performance and efficiency of graph recommendation network models. Summary of the invention
[0009] In order to solve the above technical problems, the present invention provides a recommendation system integrating region negative sampling and image contrast learning.
[0010] A recommendation method integrating region negative sampling and image contrast learning includes the following steps:
[0011] Step S1: constructing a data set, the data set includes interaction data, the interaction data includes user data and project data, constructing a bipartite graph according to the interaction data, converting the bipartite graph into a two-dimensional vector structure and performing normalization processing to obtain a normalized adjacency matrix;
[0012] Step S2: Build a recommendation network model, import the normalized adjacency matrix in step S1 into the multi-layer graph convolutional network of the recommendation network model to aggregate neighborhood information, obtain the node embedding of the main view and perform regional negative sampling on the node embedding of the main view, and build a Bayesian personalized ranking loss function to calculate the regional negative sampling process;
[0013] Step S3: Perform a random singular value decomposition operation on the normalized adjacency matrix obtained in step S1 to obtain an enhanced view, obtain the node embedding of the enhanced view through a graph convolutional network, and construct a contrastive learning loss function using the node embedding of the enhanced view and the node embedding of the main view in step S2;
[0014] Step S4: construct a total loss function to jointly train the pairwise loss function of step S2 and the contrastive learning loss function of step S3, and minimize the loss of the total loss function to optimize the parameters of the recommendation network model;
[0015] Import the user data for testing into the trained recommendation network model. The recommendation network model calculates the prediction score and outputs the corresponding item data as the prediction recommendation based on the highest prediction score.
[0016] Furthermore, the normalized adjacency matrix in step S1 is imported into the multi-layer graph convolutional network of the recommendation network model to aggregate neighborhood information, obtain the node embedding of the main view, and perform regional negative sampling on the node embedding of the main view, and construct a paired loss function to calculate the regional negative sampling process, specifically:
[0017] The normalized adjacency matrix is put into a multi-layer graph convolutional network for neighborhood information aggregation to obtain the embedding of the nodes in the main view. The layer aggregation process is shown below:
[0018] ;
[0019] ;
[0020] in, and Represent the embedding vectors of user data and item data respectively, represents the activation function, represents the normalized adjacency matrix, represents a random edge dropping operation, Represents user data, Represents project data, Aggregate node embedding representing user data, Aggregate node embeddings representing project data;
[0021] The node embedding of the main view is the sum of the embedding vectors of all layers of the multi-layer graph convolutional network. The node embedding of the main view includes the node embedding of user data and the node embedding of item data. The inner product of the transpose of the node embedding of user data and the node embedding of item data represents the predicted score of user data for item data, as shown in the following formula:
[0022] ;
[0023] ;
[0024] ;
[0025] in, Node embeddings representing user data, Node embeddings representing item data, represents the predicted score of user data on item data, represents the transpose of the node embeddings of the user data, Represents the parameters used to traverse the accumulation.
[0026] Furthermore, in step S2, the node embedding of the main view is obtained and regional negative sampling is performed on the node embedding of the main view, specifically:
[0027] Step S21: define the sampling boundary, pre-sample the negative item candidate set of the project data to reduce the computational workload, for each set of interaction data, define the negative sampling area by sampling the boundary items to maintain the optimal size of the negative sampling area, calculate the dot product score of the embedding vector of the user data and the embedding vector of the project data, and select the highest dot product score as the boundary item to define the sampling boundary. The calculation process is as follows:
[0028] ;
[0029] ;
[0030] in, represents the negative item candidate set, which includes several item data that have not interacted with user data. Respectively represent the samples of the negative candidate set, represents the number of samples in the negative candidate set, represents the boundary term, which defines the hard negative region and the corresponding positive term in the user and item embedding space , The transposed matrix representing the embedding vector of the user data, Embedding vectors representing item data that has not interacted with user data, represents the maximum value index function;
[0031] Step S22: Perform regional sampling. The recommended network model performs dimension-independent mixing between boundary terms and positive terms to explore the non-diagonal space in the hard negative region, and extends line sampling to regional sampling. By generating negative terms in continuous space, the negative sampling region in step S21 is sampled. A mixture of dimensions, expressed as:
[0032] ;
[0033] in, Indicates that the negative item in the project data is Embedding vector of dimension, Indicates that the project data is in Embedding vector of dimension, The boundary items representing the project data are in Embedding vector of dimension, Indicates Dimension-specific interpolation weights are computed to independently blend the two item dimensions and increase the exploration space from a line to the entire hard negative region. represents a negative term;
[0034] Interpolation Weight The calculation of is as follows:
[0035] ;
[0036] in, Indicates that user data is in Embedding vector of dimension, , represents the hyperparameter used to adjust the relative weights, Represents a pooling function, which is used to pool multiple tensors into a single tensor;
[0037] A concatenation function is used to concatenate the dimensions together to obtain the negative embedding, as shown below;
[0038] ;
[0039] in, represents the negative term embedding, represents the concatenation function;
[0040] Step S23: Construct a Bayesian personalized ranking loss function as follows:
[0041] ;
[0042] in, represents the Bayesian personalized ranking loss function, represents the predicted score of the user data on the positive item data, represents the predicted score of the user data on the negative item data, represents a dataset;
[0043] By comparing the predicted scores of the user data for the negative and positive item data in each interaction data pair, Higher than .
[0044] Furthermore, step S3 is specifically as follows:
[0045] Step S31: construct an enhanced view, use a low-rank orthogonal matrix to approximate the range of the input normalized adjacency matrix, and then perform random singular value decomposition on the obtained matrix. The specific operation is as follows:
[0046] ;
[0047] ;
[0048] in, express The product of three matrices, Denotes the rank required for the decomposition matrix, represents an orthogonal matrix, represents a diagonal matrix, represents an orthogonal matrix, represents dot product, Indicates the approximate singular value decomposition using the randomized singular value decomposition algorithm;
[0049] Will Input into multi-layer graph convolution for message propagation aggregation, and output the embedding vectors of reconstructed user data and reconstructed project data, as shown below:
[0050] ;
[0051] ;
[0052] in, represents the embedding vector of the reconstructed user data, The embedding vector representing the reconstructed item data, express The transposed matrix of the product of three matrices;
[0053] Step S32: Construct a contrastive learning loss function as follows:
[0054] ;
[0055] ;
[0056] in, represents the contrast loss function of user data, represents the contrast loss function of the project data, and Represent the cosine similarity and temperature coefficient respectively, represents the parent set of user data, Represents the parent set of project data.
[0057] Furthermore, the total loss function constructed in step S4 is used to jointly train the pairwise loss function of step S2 and the contrastive learning loss function of step S3, specifically:
[0058] Construct the total loss function, expressed as:
[0059] ;
[0060] in, represents the total loss function, represents the Bayesian personalized ranking loss function, and They represent the contrastive learning loss function of user data and the contrastive learning loss function of item data, respectively. Represents a regularization project, which is used to control the complexity of the recommendation network model to avoid overfitting. and Indicates different tuning parameters.
[0061] Technical effects and advantages of the present invention:
[0062] (1) This invention combines contrastive learning with graph neural networks, making full use of the advantages of both. Contrastive learning can learn data representation by comparing the similarities or differences between samples, while graph neural networks can effectively capture the information of nodes and edges in the graph structure. Combining these two technologies enables the recommendation system to better understand the relationship between users and items, thereby improving the accuracy and personalization of recommendations.
[0063] (2) The present invention introduces regional negative sampling technology, which can select reliable, effective and diverse hard negative samples for training, thereby improving the quality and relevance of the sampled negative examples. The regional negative sampling algorithm is integrated to expand the sampling area, thereby improving the quality and information richness of negative samples.
[0064] (3) The present invention alleviates data sparsity through contrastive learning, solves the problems of lack of semantic structure and easy loss of key information in enhanced views based on contrastive learning, and retains the intrinsic semantic structure of the interactive data of the recommendation network model through random singular value decomposition, reduces the sensitivity to noise, and thus improves the performance and personalization level of the recommendation network model. BRIEF DESCRIPTION OF THE DRAWINGS
[0065] Figure 1 This is a flowchart of the recommendation method based on region negative sampling and image contrast learning of the present invention. DETAILED DESCRIPTION
[0066] 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.
[0067] Reference Figure 1 , a recommendation method integrating region negative sampling and image contrast learning, in one example, includes the following steps:
[0068] Step S1: constructing a data set, the data set includes interaction data, the interaction data includes user data and project data, constructing a bipartite graph according to the interaction data, converting the bipartite graph into a two-dimensional vector structure and performing normalization processing to obtain a normalized adjacency matrix;
[0069] Step S2: Build a recommendation network model, import the normalized adjacency matrix in step S1 into the multi-layer graph convolutional network of the recommendation network model to aggregate neighborhood information, obtain the node embedding of the main view and perform regional negative sampling on the node embedding of the main view, and build a Bayesian personalized ranking loss function to calculate the regional negative sampling process;
[0070] Step S3: Perform a random singular value decomposition operation on the normalized adjacency matrix obtained in step S1 to obtain an enhanced view, obtain the node embedding of the enhanced view through a graph convolutional network, and construct a contrastive learning loss function using the node embedding of the enhanced view and the node embedding of the main view in step S2;
[0071] Step S4: construct a total loss function to jointly train the pairwise loss function of step S2 and the contrastive learning loss function of step S3, and minimize the loss of the total loss function to optimize the parameters of the recommendation network model;
[0072] Import the user data for testing into the trained recommendation network model. The recommendation network model calculates the prediction score and outputs the corresponding item data as the prediction recommendation based on the highest prediction score.
[0073] Furthermore, in one example, the normalized adjacency matrix in step S1 is imported into the multi-layer graph convolutional network of the recommendation network model to aggregate neighborhood information, obtain the node embedding of the main view, and perform regional negative sampling on the node embedding of the main view, and construct a paired loss function to calculate the regional negative sampling process, specifically:
[0074] The normalized adjacency matrix is put into a multi-layer graph convolutional network for neighborhood information aggregation to obtain the embedding of the nodes in the main view. The layer aggregation process is shown below:
[0075] ;
[0076] ;
[0077] in, and Represent the embedding vectors of user data and item data respectively, represents the activation function, represents the normalized adjacency matrix, represents a random edge dropping operation, Represents user data, Represents project data, Aggregate node embedding representing user data, Aggregate node embeddings representing project data;
[0078] The node embedding of the main view is the sum of the embedding vectors of all layers of the multi-layer graph convolutional network. The node embedding of the main view includes the node embedding of user data and the node embedding of item data. The inner product of the transpose of the node embedding of user data and the node embedding of item data represents the predicted score of user data for item data, as shown in the following formula:
[0079] ;
[0080] ;
[0081] ;
[0082] in, Node embeddings representing user data, Node embeddings representing item data, represents the predicted score of user data on item data, represents the transpose of the node embeddings of the user data, Represents the parameters used to traverse the accumulation.
[0083] Further, in one example, the node embedding of the main view is obtained in step S2 and regional negative sampling is performed on the node embedding of the main view, specifically:
[0084] Step S21: define the sampling boundary, pre-sample the negative item candidate set of the project data to reduce the computational workload, for each set of interaction data, define the negative sampling area by sampling the boundary items to maintain the optimal size of the negative sampling area, calculate the dot product score of the embedding vector of the user data and the embedding vector of the project data, and select the highest dot product score as the boundary item to define the sampling boundary. The calculation process is as follows:
[0085] ;
[0086] ;
[0087] in, represents the negative item candidate set, which includes several item data that have not interacted with user data. Respectively represent the samples of the negative candidate set, represents the number of samples in the negative candidate set, represents the boundary term, which defines the hard negative region and the corresponding positive term in the user and item embedding space , The transposed matrix representing the embedding vector of the user data, Embedding vectors representing item data that has not interacted with user data, represents the maximum value index function;
[0088] Step S22: Perform regional sampling. The recommended network model performs dimension-independent mixing between boundary terms and positive terms to explore the non-diagonal space in the hard negative region, and extends line sampling to regional sampling. By generating negative terms in continuous space, the negative sampling region in step S21 is sampled. A mixture of dimensions, expressed as:
[0089] ;
[0090] in, Indicates that the negative item in the project data is Embedding vector of dimension, Indicates that the project data is in Embedding vector of dimension, The boundary items representing the project data are in Embedding vector of dimension, Indicates Dimension-specific interpolation weights are computed to independently blend the two item dimensions and increase the exploration space from a line to the entire hard negative region. represents a negative term;
[0091] Interpolation Weight The calculation of is as follows:
[0092] ;
[0093] in, Indicates that user data is in Embedding vector of dimension, , represents the hyperparameter used to adjust the relative weights, Represents a pooling function, which is used to pool multiple tensors into a single tensor;
[0094] A concatenation function is used to concatenate the dimensions together to obtain the negative embedding, as shown below;
[0095] ;
[0096] in, represents the negative term embedding, represents the concatenation function;
[0097] Step S23: Construct a Bayesian personalized ranking loss function as follows:
[0098] ;
[0099] in, represents the Bayesian personalized ranking loss function, represents the predicted score of the user data on the positive item data, represents the predicted score of the user data on the negative item data, represents a dataset;
[0100] By comparing the predicted scores of the user data for the negative and positive item data in each interaction data pair, Higher than .
[0101] Furthermore, in one example, step S3 is specifically:
[0102] Step S31: construct an enhanced view, use a low-rank orthogonal matrix to approximate the range of the input normalized adjacency matrix, and then perform random singular value decomposition on the obtained matrix. The specific operation is as follows:
[0103] ;
[0104] ;
[0105] in, express The product of three matrices, Denotes the rank required for the decomposition matrix, represents an orthogonal matrix, represents a diagonal matrix, represents an orthogonal matrix, represents dot product, Indicates the approximate singular value decomposition using the randomized singular value decomposition algorithm;
[0106] Will Input into multi-layer graph convolution for message propagation aggregation, and output the embedding vectors of reconstructed user data and reconstructed project data, as shown below:
[0107] ;
[0108] ;
[0109] in, represents the embedding vector of the reconstructed user data, The embedding vector representing the reconstructed item data, express The transposed matrix of the product of three matrices;
[0110] Step S32: Construct a contrastive learning loss function as follows:
[0111] ;
[0112] ;
[0113] in, represents the contrast loss function of user data, represents the contrast loss function of the project data, and Represent the cosine similarity and temperature coefficient respectively, represents the parent set of user data, Represents the parent set of project data.
[0114] Further, in one example, the total loss function constructed in step S4 is used to jointly train the pairwise loss function of step S2 and the contrastive learning loss function of step S3, specifically:
[0115] Construct the total loss function, expressed as:
[0116] ;
[0117] in, represents the total loss function, represents the Bayesian personalized ranking loss function, and They represent the contrastive learning loss function of user data and the contrastive learning loss function of item data, respectively. Represents a regularization project, which is used to control the complexity of the recommendation network model to avoid overfitting. and Indicates different tuning parameters.
[0118] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art who is familiar with the present technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.
Claims
1. A recommendation method integrating region negative sampling and image contrast learning, characterized in that: The steps include: Step S1: constructing a data set, the data set includes interaction data, the interaction data includes user data and project data, constructing a bipartite graph according to the interaction data, converting the bipartite graph into a two-dimensional vector structure and performing normalization processing to obtain a normalized adjacency matrix; Step S2: Build a recommendation network model, import the normalized adjacency matrix in step S1 into the multi-layer graph convolutional network of the recommendation network model to aggregate neighborhood information, obtain the node embedding of the main view and perform regional negative sampling on the node embedding of the main view, and build a Bayesian personalized ranking loss function to calculate the regional negative sampling process; Step S3: Perform a random singular value decomposition operation on the normalized adjacency matrix obtained in step S1 to obtain an enhanced view, obtain the node embedding of the enhanced view through a graph convolutional network, and construct a contrastive learning loss function using the node embedding of the enhanced view and the node embedding of the main view in step S2; Step S4: construct a total loss function to jointly train the pairwise loss function of step S2 and the contrastive learning loss function of step S3, and minimize the loss of the total loss function to optimize the parameters of the recommendation network model; Import the user data for testing into the trained recommendation network model. The recommendation network model calculates the prediction score and outputs the corresponding item data as the prediction recommendation according to the highest prediction score. The normalized adjacency matrix in step S1 is imported into the multi-layer graph convolutional network of the recommendation network model to aggregate neighborhood information, obtain the node embedding of the main view and perform regional negative sampling on the node embedding of the main view, and construct a paired loss function to calculate the regional negative sampling process, specifically: The normalized adjacency matrix is put into a multi-layer graph convolutional network for neighborhood information aggregation to obtain the embedding of the nodes in the main view. The layer aggregation process is shown below: ; ; in, and Represent the embedding vectors of user data and item data respectively, represents the activation function, represents the normalized adjacency matrix, represents a random edge dropping operation, Represents user data, Represents project data, Aggregate node embedding representing user data, Aggregate node embeddings representing project data; The node embedding of the main view is the sum of the embedding vectors of all layers of the multi-layer graph convolutional network. The node embedding of the main view includes the node embedding of user data and the node embedding of item data. The inner product of the transpose of the node embedding of user data and the node embedding of item data represents the predicted score of user data for item data, as shown in the following formula: ; ; ; in, Node embeddings representing user data, Node embeddings representing item data, represents the predicted score of user data on item data, represents the transpose of the node embeddings of the user data, Indicates the parameters used for traversal and accumulation; The node embedding of the main view is obtained in step S2, and regional negative sampling is performed on the node embedding of the main view, specifically: Step S21: define the sampling boundary, pre-sample the negative item candidate set of the project data to reduce the computational workload, for each set of interaction data, define the negative sampling area by sampling the boundary items to maintain the optimal size of the negative sampling area, calculate the dot product score of the embedding vector of the user data and the embedding vector of the project data, and select the highest dot product score as the boundary item to define the sampling boundary. The calculation process is as follows: ; ; in, represents the negative item candidate set, which includes several item data that have not interacted with user data. Respectively represent the samples of the negative candidate set, represents the number of samples in the negative candidate set, represents the boundary term, which defines the hard negative region and the corresponding positive term in the user and item embedding space , The transposed matrix representing the embedding vector of the user data, Embedding vectors representing item data that has not interacted with user data, represents the maximum value index function; Step S22: Perform regional sampling. The recommended network model performs dimension-independent mixing between boundary terms and positive terms to explore the non-diagonal space in the hard negative region, and extends line sampling to regional sampling. By generating negative terms in continuous space, the negative sampling region in step S21 is sampled. A mixture of dimensions, expressed as: ; in, Indicates that the negative item in the project data is Embedding vector of dimension, Indicates that the project data is in Embedding vector of dimension, The boundary items representing the project data are in Embedding vector of dimension, Indicates Dimension-specific interpolation weights are computed to independently blend the two item dimensions and increase the exploration space from a line to the entire hard negative region. represents a negative term; Interpolation Weight The calculation of is as follows: ; in, Indicates that user data is in Embedding vector of dimension, , represents the hyperparameter used to adjust the relative weights, Represents a pooling function, which is used to pool multiple tensors into a single tensor; A concatenation function is used to concatenate the dimensions together to obtain the negative embedding, as shown below; ; in, represents the negative term embedding, represents the concatenation function; Step S23: Construct a Bayesian personalized ranking loss function as follows: ; in, represents the Bayesian personalized ranking loss function, represents the predicted score of the user data on the positive item data, represents the predicted score of the user data on the negative item data, represents a dataset; By comparing the predicted scores of the user data for the negative and positive item data in each interaction data pair, Higher than ; Step S3 is specifically as follows: Step S31: construct an enhanced view, use a low-rank orthogonal matrix to approximate the range of the input normalized adjacency matrix, and then perform random singular value decomposition on the obtained matrix. The specific operation is as follows: ; ; in, express The product of three matrices, Denotes the rank required for the decomposition matrix, represents an orthogonal matrix, represents a diagonal matrix, represents an orthogonal matrix, represents dot product, Indicates the approximate singular value decomposition using the randomized singular value decomposition algorithm; Will Input into multi-layer graph convolution for message propagation aggregation, and output the embedding vectors of reconstructed user data and reconstructed project data, as shown below: ; ; in, represents the embedding vector of the reconstructed user data, The embedding vector representing the reconstructed item data, express The transposed matrix of the product of three matrices; Step S32: Construct a contrastive learning loss function as follows: ; ; in, represents the contrast loss function of user data, represents the contrast loss function of the project data, and Represent the cosine similarity and temperature coefficient respectively, represents the parent set of user data, Represents the parent set of project data.
2. The recommendation method integrating region negative sampling and image contrast learning according to claim 1, characterized in that: The total loss function constructed in step S4 is used to jointly train the pairwise loss function in step S2 and the contrastive learning loss function in step S3, specifically: Construct the total loss function, expressed as: ; in, represents the total loss function, represents the Bayesian personalized ranking loss function, and They represent the contrastive learning loss function of user data and the contrastive learning loss function of item data, respectively. Represents a regularization project, which is used to control the complexity of the recommendation network model to avoid overfitting. and Indicates different tuning parameters.
Citation Information
Patent Citations
Personalized recommendation method based on graph contrast learning and negative interest propagation
CN116561426A
Multi-view comparative learning recommendation method and system of fusion layer attention mechanism
CN117131282A
