Causal meta-learning multi-view graph learning method and device for cold start scenarios
Through the multi-view graph learning method of causal meta-learning, the project relationship graph and the social relationship graph are constructed, and the graph convolutional neural network and the causally enhanced dual-level adaptive meta-learner are used to solve the difference in user preference distribution and project relationships in cold start recommendation. Solve the problems and improve the accuracy and stability of the recommendation model.
Patent Information
- Application Number
- CN202410732772.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-07
- Publication Date
- 2024-08-27
- Estimated Expiration
- 2044-06-07
AI Technical Summary
In cold-start recommendation scenarios, existing technologies are difficult to effectively handle differences in user preference distributions and ignore dependencies between items, resulting in deviations in the recommendation model.
The multi-view graph learning method of causal meta-learning is adopted, by constructing the project relationship graph and the social relationship graph, using the graph convolutional neural network to learn the project representation, and designing a causally enhanced dual-level adaptive meta-learner to eliminate the influence of confounding factors and fuse Different levels of user preference and rating knowledge.
It effectively eliminates the difference in user preference distribution in the meta-training and meta-testing stages, captures the diverse relationships between items, and improves the accuracy and generalization ability of the recommendation model.
Smart Images

Figure CN118313446B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of Internet technology, and in particular to a causal meta-learning multi-view graph learning method and device for cold start scenarios. Background Art
[0002] In recent years, with the rapid popularization of Internet technology, the amount of network information has surged. As the main technology to overcome information overload, the recommendation system screens candidate recommendation items based on the interaction history between users and items. However, in actual application scenarios, new users and new items are frequently added to the system, and their small amount of interaction records cannot support the recommendation system to accurately model user preferences. This is called the cold start recommendation problem.
[0003] Traditional recommendation methods usually add auxiliary information of users or items to better learn the representation of cold-start users or items and further solve the cold-start recommendation problem. Auxiliary information generally includes the demographic characteristics of users (such as occupation, gender, age, etc.) and the attribute characteristics of items (such as the publication year, actors and directors of the movie, etc.). Although some progress has been made, these methods rely heavily on the quality and availability of auxiliary information. In addition, the models trained in this way often make recommendations based only on auxiliary information, which may ignore items that users have already rated or the personalized preferences of users. Recently, some studies have begun to abstract the cold-start recommendation problem into a small sample learning task and try to modify traditional recommendation algorithms to incorporate them into the meta-learning training framework.
[0004] In the cold-start recommendation based on the meta-learning framework, the preference prediction of each user is regarded as a task, and the items that the user has interacted with are divided into a support set and a query set. It can learn general knowledge with strong generalization ability on the meta-training set, and then fine-tune it on the meta-test set to quickly adapt it to new tasks with sparse interactions (cold-start users). However, MELU ignores the rich semantic context information in the meta-learning environment. Therefore, some studies have introduced heterogeneous information networks (HINs) in the cold-start recommendation task to enhance the user's preference representation by using the semantic context information (related items) formed by different meta-paths. However, these studies only use manually designed meta-paths to explore the relationship between the target user and all related items, ignoring the dependency between items and the possible correlation or similarity between items, which can provide potential information for the characterization of related items and the representation learning of target users. Therefore, (Question 1) How to learn project relationships from multiple perspectives in the cold-start model is a key issue.
[0005] In addition, different users have different susceptibility to external factors. For example, Figure 1 shows two users in the Movielens 1M dataset, where user 10 gave high scores of 5 to movies directed by Ron Howard, such as Far and Away, Cocoon, Willow, Splash, and Apollo, indicating that user 10 is a fan of this director and will like all of his works. User 18 gave completely different scores to the works of director Ridley Scott. Therefore, different users are susceptible to external factors to different degrees. In the cold start scenario, if there is a significant difference in the distribution of user preferences in the meta-training and meta-testing phases, it will be difficult to apply the prior knowledge learned in the meta-training phase to the new task in the meta-testing phase, and ignoring this difference will introduce bias into the recommendation system.
[0006] To further verify whether the user preferences in the meta-training set and the meta-testing set have the same distribution, a discrete two-sample Kolmogorov-Smirnov (KS) test was performed on the Movielens 1M dataset. First, a null hypothesis was made that there is no significant difference in the preferences of users for items of different orders in the two distributions. Then, a test was performed at the 5% rejection level, and the corresponding p-values are shown in Table 1. Obviously, the p-value of the KS test on user preferences is lower than the 5% rejection level. This result rejects the null hypothesis that the distribution of user preferences in the meta-training and meta-testing phases is different in the cold start scenario. Therefore, another key question (Q2) is how to eliminate the difference in preference distribution between the meta-training and meta-testing phases.
[0007] Table 1
[0008] Preference distribution on first-order items Preference distribution on second-order items Movielens 1M 7.27e-12 3.89e-45
[0009] Recently, causal reasoning has been widely used in recommender systems to eliminate bias. Structural causal model (SCM) is a very representative causal framework, and causal graph is an important component of SCM. Existing causal debiasing studies extract causal graphs by carefully examining the causal relationships in the data generation process, and then use backdoor adjustments to estimate causal effects. Based on these studies, the causal relationship of recommendation models in cold-start scenarios is carefully studied, and a multi-view causal meta-learning (CausalMMG) method for cold-start recommendation is further developed. To solve Q1, an attribute relationship project graph and a social relationship project graph are constructed, and a fusion function is designed to potentially aggregate information from the two graphs. Specifically, a graph convolutional neural network (GCN) is used to capture different propagation patterns between different project relationships and learn meaningful hierarchical embeddings of items, and then a fusion function is designed to aggregate item representations with different information. To solve Q2, each user's historical interactions (i.e., items in the multi-view project graph) are regarded as confounding factors, and the confounding factors are hierarchical through backdoor adjustments to eliminate the influence of confounding effects. Specifically, a causal enhanced two-level adaptive meta-learner is proposed, which includes hierarchical adaptation and task-level adaptation. Summary of the invention
[0010] The present invention proposes a causal meta-learning multi-view graph learning method, device and storage medium for cold start scenarios, which can solve at least one of the technical problems in the background technology.
[0011] To achieve the above object, the present invention adopts the following technical solutions:
[0012] A causal meta-learning multi-view graph learning method for cold start scenarios includes the following steps:
[0013] The following steps are included:
[0014] S1. We deeply examine the data generation process in the cold start recommendation system and abstract it into a causal graph. Then, we use the backdoor adjustment strategy in causal theory to guide the implementation of subsequent plans to eliminate the influence of confounding factors.
[0015] S2, select a batch of tasks, and construct a project-project graph with specific project relationships and a project-project graph with specific social relationships for each task;
[0016] S3. Using graph convolutional neural networks (GCNs) on the constructed project graph to learn multi-view project representations, aiming to obtain the embedding representation of user-related projects on the L layer;
[0017] S4, sending the layer 0 embedding of all relevant items of the user in the support set and the user's feature embedding to the user preference characterizer to generate the user's preference representation in the layer 0 space;
[0018] S5, the obtained current layer user preference and the learned item representation are sent to the rating predictor, and the user preference representation is updated by calculating the loss in the query set to achieve layer-level update;
[0019] S6, using the updated user preference characterizer to reacquire the user preference representation, and mapping the rating predictor parameters to the corresponding layer space according to the user preference representation of the current layer;
[0020] S7, using the updated user preference representation and rating predictor to recalculate the query set loss, and update the rating predictor accordingly to achieve task-level update;
[0021] S8, repeat steps S4 to S7 for a total of L times, using the embedding of user-related items at different layers in each repetition to obtain the user's preference representation and rating knowledge at the L layers;
[0022] S9, integrating different user preference representations and rating knowledge learned on layer L to obtain the final user preference representation and rating knowledge;
[0023] S10. Calculate the query set loss based on the final user preference representation and rating knowledge, and comprehensively update all parameters in the model.
[0024] Furthermore, the specific steps of step S1 are as follows:
[0025] Data generation process from a causal perspective:
[0026] Based on the data generation process in the cold-start recommendation system, the causal relationship is abstracted into a causal graph;
[0027] Among them, U represents the user preference at the user feature level. For user u, [o1,o2,...,o k ] is the embedding of k demographic features of the user, o k is a feature embedding; D represents the set of neighboring items of different orders, i.e., the items that users interact with and their attributes and social related items; L represents the user's hierarchical preference and his preference for each order of neighboring items. Different users have different preferences for different neighboring items;
[0028] With the help of causal reasoning, we modeled the preferences of different users for neighboring items of different orders. That is, we took the user-level preferences as a priori, adaptively learned them through the items in the user interaction history in the meta-training phase, and then fine-tuned them in the meta-testing phase. The user preferences in the model are and Learning is performed in ; Y represents the rating based on user preferences;
[0029] The connection edge between two nodes in the causal graph represents the causal relationship between the variables, which is:
[0030] D->U: The feature-level user preference representation is optimized based on the items of the user's historical interactions;
[0031] (D, U)->L: D and U jointly determine the hierarchical representation of the user; because the hierarchical representation of user u is learned from the items that user u interacts with and the items related to their attributes;
[0032] (U, L)->Y: This edge indicates that variable Y is determined by X through two paths:
[0033] 1) Direct path U->Y; 2) Indirect path U->L->Y; This is because the user's rating is determined by the user's preference from the feature aspect and the user-level preference;
[0034] According to causal theory, D is a confounding factor that affects U and Y. Ignoring the confounding factor D will lead to a false correlation between U and Y. Considering that the confounding factor D is observable, the backdoor adjustment strategy in step S1 is specifically implemented by stratifying the confounding factor, that is, D = {d}, where each d is the adjacent item of each order;
[0035] Therefore, the true causal relationship between U and Y uses the causal intervention replace To make an estimate, (1)
[0036] In order to stratify confounding factors and achieve causal intervention, for each task or user, the meta-learner adaptively learns the user's preference knowledge in each layer of space, and then fuses the knowledge learned in each layer to make predictions together.
[0037] Furthermore, the step of S3 includes:
[0038] For Projects First, by setting To initialize the attribute relationship and social relationships ; After L layers of propagation, its attribute relationship and social relationship are specifically expressed as and Next, for the project , if its attribute-related neighbors are given in Embeddings in layers , then it is in The item embedding of the layer is obtained according to the following formula,
[0039] (2)
[0040] in represents the activation function, ReLU is used in this work, Display items The set of attribute-related neighbors, Indicated in The learnable weight matrix in ; In addition, Display items In the The output of the layer convolution; the total depth of GCNs is set to ;exist After layer propagation, we get a specific representation of the attribute relationship of each item on multiple layers; similarly, the specific project representation of the social relationship on multiple layers Also use the above formula (2) to obtain;
[0041] Since the specific item representations of attributes and social relations provide item information from different perspectives, in order to more effectively fuse the item representations from different perspectives, a fusion function is designed to aggregate item representations with different information; specifically, for item i, the representations of social relations and attribute relations are mapped to the same semantic space through the fusion function, and then the weights between the information flows between these two types of relations are adjusted through weights;
[0042] The fusion function is as follows:
[0043] For Projects , given its attribute relations and social relations on multiple layers, the following formula is defined to aggregate information:
[0044] (3)
[0045] in and They represent the specific representations of attribute relations and social relations respectively; represents a specific mapping function, which maps the specific representation of social relations to the semantic space where the specific representation of attribute relations is located; is a trainable parameter in the mapping function, parameter is an adjustable parameter weight used to adjust the information flow between these two relationship types.
[0046] (4)
[0047] in represents the parameter matrix to be learned; in addition, in order to make the following description more concise, this work uses to represent all parameters in the multi-view project characterizer.
[0048] Furthermore, the specific steps of S4 include:
[0049] In order to estimate the predicted rating, we first designed a user preference characterizer to learn the user’s preference representation. , given his / her interaction item representation and its latent feature embedding ,user The feature preference representation of is defined as formula (5),
[0050] )5
[0051] in is the set of related items for user u, express All parameters of the function;
[0052] For Users , the method to learn its preferences is as follows:
[0053] Input: User Latent feature embedding ;
[0054] A collection of related items { };
[0055] Output: User u’s preference representation ;
[0056] ;
[0057] ;
[0058] ;
[0059] Next, based on the learned user and item representations, we combine them to generate recommendation predictions and concatenate user and Projects and feed them into a three-layer multi-layer perceptron.
[0060] (6)
[0061] in Indicates that The parameterized prediction function, is the predicted score value, represents the concatenation operation; then, the user’s preference is obtained by minimizing the mean square error (MSE) loss,
[0062] (7)
[0063] in represents the observed user-item interactions, Indicates user About Project The true rating value of
[0064] For the convenience of description, all trainable parameters contained in the user preference characterizer and rating predictor are represented as .
[0065] Furthermore, the specific steps of S4 also include:
[0066] To capture users’ preferences for neighboring items of different orders, layer-level adaptation is used to learn layer-level preference knowledge in each task; specifically, for a task or user , support set By User Next, given a user’s latent feature representation and the neighbor project in Representation on the layer , the user's preference in this layer of space is obtained through the user preference characterizer, which is the preference representation in each layer of space mentioned in S4. The specific implementation formula is:
[0067] (8)
[0068] Furthermore, after obtaining the user preference representation on the current layer, the support set loss can be further calculated to implement layer-level updates. The specific implementation of step S5 is:
[0069] In the current layer space, the task Support set of medium-rated items The loss on is calculated as follows:
[0070] (9)
[0071] Next, update the layer-level priors based on the support set loss , to obtain a unique prior in the current layer space; therefore, the meta-learner will learn the user’s preference prior in each layer space;
[0072] (10)
[0073] in represents the layer-level learning rate, Indicated in Adaptive prior knowledge in layer space; after layer-level adaptive updating, the user can be obtained based on the support set items. In the The preference representation in the layer space is .
[0074] Furthermore, the implementation of S6 is based on the user’s In the The preference representation in the layer can further map the global prior to the corresponding layer space. The mapping method is as follows:
[0075] (11)
[0076] in represents the element-wise product, express Activation function, is a linear map; therefore, the global prior Mapped to layer space and perform local updates via one or several gradient descents ,
[0077] (12)
[0078] in Indicates suitability for the task or user The new parameters of represents the task-level learning rate; therefore, through one or several gradient descents for local update, the global prior encoding the learned user rating knowledge is updated to complete the task-level adaptation mentioned in S7.
[0079] Furthermore, the specific steps of S9 are as follows: it integrates the user preference knowledge learned at each layer with the knowledge of encoding scores; Support set In this paper, a two-level adaptive meta-learner is used to learn the prior knowledge of users in each layer; then, this prior knowledge is used to estimate the user In the query set The ratings on the query set are used to calculate the loss on the query set. In addition, the query set loss is used as an indicator to effectively integrate the user's preferences on neighboring items of different orders. Specifically, the user preferences in different layers of space are integrated to obtain the final user preference representation. At the same time, the prior of user ratings in different layers of space is also integrated and encoded. The specific integration method is as follows:
[0080] (13)
[0081] (14)
[0082] (15)
[0083] in and represent the parameters of the final user representation and prediction function respectively; intuitively, in a given layer space, a larger loss value indicates that the user has a smaller preference for the items in the current layer space.
[0084] Furthermore, the specific implementation method of S10 is:
[0085] For a task, the two-level adaptive meta-learner first learns a personalized prior from the support set, which is then used to calculate the loss on the query set. Then, the final user representation and the parameters of the prediction function are obtained by fusing the information of different layers. Finally, the query set is optimized. The global parameters are updated based on the performance.
[0086] (16)
[0087] in are the parameters of the two-level adaptive meta-learner; the Adam optimizer is used for model optimization throughout the meta-training task; therefore, the parameters of the model are updated as follows:
[0088] (17)
[0089] in is the global learning rate; in order to quickly adapt to each task and generalize in each layer space within the task, the optimization process captures common knowledge across tasks from all tasks or users in the meta-training set.
[0090] On the other hand, the present invention further discloses a computer-readable storage medium storing a computer program, wherein when the computer program is executed by a processor, the processor executes the steps of the above method.
[0091] On the other hand, the present invention further discloses a computer device, including a memory and a processor, wherein the memory stores a computer program, and when the computer program is executed by the processor, the processor executes the steps of the above method.
[0092] It can be seen from the above technical scheme that the causal meta-learning multi-view graph learning method and device for cold start scenarios of the present invention explores the similarity between projects from the two perspectives of project attribute relevance and social relevance through a multi-view project characterizer, and establishes a project graph based on each user (task), and then captures the influence of different relevance between projects on the established project graph through GCNs, and then aggregates the project representations containing different project relationships through an attention aggregation function to obtain a meaningful hierarchical project representation. Then, the causally enhanced two-level adaptive meta-learner is used to eliminate the influence of different user preference distributions on preference modeling. Specifically, it combines the meta-learning recommendation algorithm under the guidance of causal knowledge, and learns the user's preference for each layer of neighbor projects through a layer-level adaptive learning, and the task-level adaptive encoding learns the unique knowledge of score prediction. Therefore, this algorithm can not only learn the project and user representations containing project attribute relationships, but also capture the user's preference for different order project relationships.
[0093] Specifically, compared with the prior art, the advantages of the present invention are as follows:
[0094] 1) This method starts from a causal perspective and finds that in the cold start recommendation scenario, ignoring the difference in user preference distribution between meta-training and meta-testing will introduce confounding into the system. In order to eliminate the influence of confounding, we resort to the backdoor adjustment strategy in causal reasoning technology and design a causally enhanced two-level adaptive meta-learner to eliminate the bias caused by the difference in user preference distribution for neighbors of different orders during meta-training and meta-testing.
[0095] 2) This method explores the correlation and similarity between items from multiple perspectives. Specifically, it constructs an attribute-specific item-item graph and a social-relationship-specific item-item graph based on each user (task), models diverse item relationships, and further uses GCNs to capture different information propagation patterns in different item graph structures to obtain meaningful hierarchical item embeddings. BRIEF DESCRIPTION OF THE DRAWINGS
[0096] Figure 1 This is an example diagram that illustrates the differences in user preference distribution.
[0097] Figure 2 is an overall block diagram of an embodiment of the present invention;
[0098] Figure 3 A cause-and-effect diagram of an embodiment of the present invention;
[0099] Figure 4 A project diagram showing a specific project attribute relationship of an embodiment of the present invention;
[0100] Figure 5This is a specific project diagram of the project social relationship in an embodiment of the present invention. DETAILED DESCRIPTION
[0101] In order to make the purpose, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings 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.
[0102] The causal meta-learning multi-view graph learning method for cold start scenarios described in this embodiment specifically includes the following steps:
[0103] S1. We deeply examine the data generation process in the cold start recommendation system and abstract it into a causal graph. Then, we use the backdoor adjustment strategy in causal theory to guide the implementation of subsequent plans to eliminate the influence of confounding factors.
[0104] S2. Select a batch of tasks, and build a project-project graph with specific project relationships and a project-project graph with specific social relationships for each task (user).
[0105] S3. Graph convolutional neural networks (GCNs) are used on the constructed project graph to learn multi-view project representations, aiming to obtain the embedded representation of user-related projects on the L layer.
[0106] S4. The layer 0 embeddings of all relevant items of the user in the support set and the user's feature embeddings are jointly fed into the user preference characterizer to generate the user's preference representation in the layer 0 space.
[0107] S5. The obtained current layer user preferences and the learned item representations are sent to the rating predictor together, and the user preference characterizer is updated by calculating the loss in the query set to achieve layer-level updates.
[0108] S6. Use the updated user preference characterizer to reacquire the user preference representation, and map the rating predictor parameters to the corresponding layer space according to the user preference representation of the current layer.
[0109] S7. Utilize the updated user preference representation and rating predictor to recalculate the query set loss, and update the rating predictor accordingly to achieve task-level update.
[0110] S8. Repeat steps S4 to S7 for a total of L times, and use the embedding of user-related items at different layers in each repetition to obtain the user's preference representation and rating knowledge at the L layer.
[0111] S9: Fuse the different user preference representations and rating knowledge learned on layer L to obtain the final user preference representation and rating knowledge.
[0112] S10. Calculate the query set loss based on the final user preference representation and rating knowledge, and comprehensively update all parameters in the model.
[0113] This embodiment first explains in detail the cold start recommendation data generation process from a causal perspective, and then proposes a specific CausalMMG implementation solution under the guidance of causal technology. Figure 2 The schematic diagram of the overall framework is shown. The framework is based on causal graph and meta-learning recommendation algorithm, and contains two key modules: multi-view item graph characterizer (a) and causally enhanced two-level adaptive meta-learner (b). Among them, the multi-view item characterizer explores the similarity between items from the perspectives of attribute relevance and social relevance of items, and builds an item graph based on each user (task). Then, GCNs are used to capture the influence of different relevance between items on the established item graph, and then an attention aggregation function is used to aggregate the item representations containing different item relations to obtain meaningful hierarchical item representations. Then, the causally enhanced two-level adaptive meta-learner is used to eliminate the influence of different user preference distributions on preference modeling. Specifically, it combines the meta-learning recommendation algorithm under the guidance of causal knowledge, and learns the user's preference for each layer of neighbor items through a layer-level adaptive learning, and the task-level adaptive encoding learns the unique knowledge of rating prediction. Therefore, this algorithm can not only learn the item and user representations containing item attribute relations, but also capture the user's preference for item relations of different orders.
[0114] The following are specific instructions:
[0115] Data generation process from a causal perspective:
[0116] Inspired by Simpson's paradox, this paper studies the data generation process in cold-start recommendation systems and abstracts the causal relationship into Figure 3 The causal diagram in (a).
[0117] Among them, U represents the user preference at the user feature level. For user u, [o1,o2,...,o k ] is the embedding of k demographic features of the user (e.g. occupation, gender, age), o kis a feature embedding; D represents the set of neighboring items of different orders, i.e., the items that users interact with and their attributes and social related items; L represents the user's hierarchical preference and his (her) preference for each order of neighboring items. Different users have different preferences for different neighboring items. The present invention uses causal reasoning to model the preference of different users for different order neighboring items, that is, taking the user's hierarchical preference as a priori, adaptively learning it through the items in the user's interaction history in the meta-training phase, and then fine-tuning it in the meta-testing phase. The user preferences in the model are and Y represents the rating based on user preferences.
[0118] The connection edge between two nodes in the graph represents the causal relationship between variables, so:
[0119] D->U: The feature-level user preference representation is optimized based on the items of user historical interactions.
[0120] (D, U)->L: D and U jointly determine the hierarchical representation of the user, because the hierarchical representation of user u is learned from the items that user u interacts with and the items related to their attributes.
[0121] (U, L)->Y: This edge indicates that variable Y is determined by X through two paths:
[0122] 1) Direct path U->Y; 2) Indirect path U->L->Y; This is because the user's rating is determined by the user's preference from the feature aspect and the user-level preference;
[0123] According to causal theory, D is a confounding factor that affects U and Y. Ignoring the confounding factor D will lead to a false correlation between U and Y. Considering that the confounding factor D is observable, the backdoor adjustment strategy in step S1 is specifically implemented by stratifying the confounding factors, that is, D = {d}, where each d is the adjacent item of each order, so we can get Figure 3 The causal diagram in (b) can eliminate the influence of confounding effects. Therefore, the true causal relationship between U and Y can be determined using the causal intervention Replace the likelihood To make an estimate, (1)
[0124] Based on the above causal analysis, this work introduces a causally enhanced two-level adaptive meta-learner to eliminate confounding effects. Specifically, in order to stratify confounding factors and achieve causal intervention, for each task (user), the meta-learner adaptively learns the user's preference knowledge in each layer of space, and then integrates the knowledge learned in each layer to make predictions together. Based on this, the present invention can model the true causal relationship between users and ratings and eliminate the impact of false correlations.
[0125] Multi-view item characterizer:
[0126] Generally speaking, projects are not independent from each other, but have various correlations and similarities. Specifically, projects directed by the same director or starring the same actor are correlated with each other, and projects clicked by similar users are also similar. The present invention uses two types of project relationships to search for similar projects as neighboring projects to construct a dual-perspective project-project graph (e.g., Figure 4 and Figure 5 In addition, in order to capture the structural information of the item graph, GCNs are introduced to model the propagation of different item relations on each layer of neighbors respectively, and learn the item embedding on each layer in both modes.
[0127] The specific implementation steps of S2 are to establish the following multi-view project diagram:
[0128] Since users have similar preferences for items with the same attributes, recommendation tasks often use item attribute information to enrich item representations. For example, users may watch movies with the same actor or directed by the same director. Therefore, the attribute relationship between items is explored, and this relationship is regarded as a perspective. In order to learn the entry representation of this view, taking movies as an example, a specific item graph of attribute relationships is constructed by connecting movies with the same attributes, as shown in Figure 4. Specifically, edges are set between movies directed by the same director (D1), and connections are set between movies directed by the same actor (A1 or A2).
[0129] Based on the social influence theory, users in social networks will influence each other to generate the same preferences. The social relationships of users are utilized in the recommendation system based on social relationships. It assumes that users with the same click behavior are friends, and the items interacted between users are similar. Based on this assumption, the correlation between items is explored based on social relationships, and this relationship is regarded as another perspective. As shown in Figure 5, taking movies as an example, in order to learn the item representation from this perspective, a social relationship-specific item graph is constructed by connecting the items that have been interacted by users and friends. Specifically, users who have watched the same movie v d Bill and Anna are friends and then make connections between the movies they have watched.
[0130] Multi-view item representation learning:
[0131] In order to learn multi-view item representations, this algorithm uses GCNs to aggregate neighbor representations with different importance. The specific steps of S3 are as follows: First, by setting To initialize the specific representation of the attribute relationship Specific expressions of social relationships After L layers of propagation, its attributes and social relationships are specifically expressed as and Next, for the project , if its attribute-related neighbors are given in Embeddings in layers , then it is in The item embedding of the layer can be obtained as follows,
[0132] (2)
[0133] in represents the activation function (ReLU is used in this work), Display items The set of attribute-related neighbors, Indicated in The learnable weight matrix in . In addition, Display items In the The output of the layer convolution. This paper sets the total depth of GCNs to .exist After layer propagation, we can get a specific representation of the attribute relationship of each item on multiple layers. Similarly, the specific item representation of the social relationship on multiple layers The same can be obtained using the above formula.
[0134] Since the specific item representations of attributes and social relations provide item information from different perspectives, in order to more effectively fuse the item representations from different perspectives, a fusion function is designed to aggregate item representations with different information. Specifically, for item i, the representations of social relations and attribute relations are mapped to the same semantic space through this function, and then the weight between the information flows between these two types of relations is adjusted through the weight.
[0135] The fusion function is as follows:
[0136] For Projects ,Given its attribute relation specific and social relation specific item representation on multiple layers, the following formula is defined to aggregate the information,
[0137] (3)
[0138] in and They represent the specific representations of attributes and social relationships respectively; Represents a specific mapping function, which maps the specific representation of social relations to the semantic space where the specific representation of attribute relations is located. is a trainable parameter in the mapping function, parameter is an adjustable parameter weight used to adjust the information flow between these two relationship types.
[0139] (4)
[0140] in represents the parameter matrix to be learned. In addition, in order to make the following description more concise, this work uses to represent all parameters in the multi-view project characterizer.
[0141] Causally Enhanced Two-Level Adaptive Meta-Learner:
[0142] Based on causal analysis, a new causally enhanced two-level adaptive meta-learner is introduced in this section to eliminate the influence of confounding factors. Specifically, in order to stratify confounding factors and achieve causal intervention, for each task (user), the meta-learner aggregates the embeddings of the user's neighbor items in each layer to represent the user's preferences in the corresponding layer. Subsequently, the layer-level adaptation learns the user's preference knowledge in each layer space, and further, the task-level adaptation encodes the user ratings based on the hierarchical preference knowledge. Finally, the knowledge learned in each layer is fused to predict the query set. Therefore, this method models the true causal relationship between users and eliminates false correlations.
[0143] Basic recommendation framework:
[0144] In order to estimate the predicted rating, a user preference characterizer is first designed to learn the user's preference representation. This is the user preference characterizer used in steps S4, S6, S7, and S10. It enhances the user preference representation by integrating the user's interactive items. It also considers the user's feature-level preferences, which are composed of the user's own characteristics and express the user's intrinsic interests. In addition, the project embedding obtained by the multi-view project relationship representation module includes the influence of attribute preferences and social preferences, so the user embedding obtained by aggregating project embeddings also includes the influence of two aspects of preferences. For each user (task) , given his / her interaction item representation and its latent feature embedding ,user The feature preference representation of can be defined as formula (5),
[0145] (5)
[0146] in is the set of related items for user u, express All parameters of the function. For users ,The basic idea of learning its preferences can be described as Algorithm 1, as shown in Table 2;
[0147] Table 2
[0148]
[0149] Next, based on the learned user and item representations, they are combined to generate recommendation predictions. and Projects and feed them into a three-layer multi-layer perceptron.
[0150] (6)
[0151] in Indicates that The parameterized prediction function, is the predicted score value, represents the concatenation operation. Then, the user's preference can be obtained by minimizing the mean square error (MSE) loss.
[0152] (7);
[0153] in represents the observed user-item interactions, Indicates user About Project For the convenience of description, the present invention represents all the trainable parameters contained in the user preference characterizer and the rating predictor as .
[0154] Bidirectional Adaptive Meta-Learner:
[0155] The two-layer adaptive meta-learner aims to better model users' preferences for items in different sequences. It includes layer-level adaptation and task-level adaptation. Layer-level adaptation is used to learn users' preference priors in each layer space, which can capture the common knowledge of different layers under the regulation of global priors. Task-level adaptation learns users' rating priors based on layer-level preference knowledge.
[0156] In order to capture the user’s preferences for neighboring items of different orders, layer-level adaptation is used to learn the layer-level preference knowledge in each task. Specifically, for a task (user) , support set By User Next, given a user’s latent feature representation and the neighbor project in Representation on the layer , the user's preference in this layer of space can be obtained through the user preference characterizer, which is the preference representation in each layer of space mentioned in S4. The specific implementation formula is:
[0157] (8);
[0158] After obtaining the user preference representation on the current layer, the support set loss can be further calculated to implement layer-level updates. The specific implementation of step S5 is:
[0159] In the current layer space, the task Support set of medium-rated items The loss on can be calculated:
[0160] (9);
[0161] Next, update the layer-level priors based on the support set loss , to obtain a unique prior in the current layer space. Therefore, the meta-learner will learn the user’s preference prior in each layer space.
[0162] (10)
[0163] in represents the layer-level learning rate, Indicated in Adaptive prior knowledge in layer space. After layer-level adaptive updating, the user can be obtained based on the support set items. In the The preference representation in the layer space is .
[0164] The implementation of S6 is to obtain the layer-level preference knowledge of each task based on the user In the The preference representation in the layer can further map the global prior to the corresponding layer space. The mapping method is as follows:
[0165] (11)
[0166] in represents the element-wise product, express Activation function, is a linear map. Therefore, the global prior can be mapped to layer space and perform local updates via one (or several) gradient descents ,
[0167] (12);
[0168] in Indicates suitability for the task (user) The new parameters of Represents the learning rate at the task level. Therefore, through one (or several) gradient descents, local updates are performed to update the global prior that encodes the knowledge of learning user ratings, completing the task-level adaptation mentioned in S7.
[0169] Then, S8 is implemented by repeating steps S4 to S7 L times in total, and layer-level adaptation and task-level adaptation are performed in each layer space to obtain the user's preference representation and scoring knowledge on the L layer.
[0170] The specific steps of S9 are as follows: it integrates the user preference knowledge learned at each layer with the knowledge of encoding scores. Support set In this paper, a two-level adaptive meta-learner is used to learn the prior knowledge of users in each layer. Then, this prior knowledge is used to estimate the user In the query set The loss on the query set is calculated by merging the ratings on the query set. In addition, the query set loss can be used as an indicator to effectively fuse the user's preferences on neighboring items of different orders. Specifically, the final user preference representation is obtained by fusing the user preferences in different layers of space. At the same time, this method also fuses and encodes the priors of user ratings in different layers of space. The specific fusion method is as follows:
[0171] (13)
[0172] (14)
[0173] (15)
[0174] in and Denote the parameters of the final user representation and prediction function respectively. Intuitively, in a given layer space, a larger loss value indicates that the user has less preference for the items in the current layer space.
[0175] Model optimization:
[0176] The specific implementation method of S10 is that for a task, the two-level adaptive meta-learner first learns a personalized prior from the support set, and then the prior is used to calculate the loss on the query set. Then, the final user representation and the parameters of the prediction function are obtained by fusing the information of different layers of space. Finally, by optimizing the query set The global parameters are updated based on the performance.
[0177] (16)
[0178] in are the parameters of the two-level adaptive meta-learner. The Adam optimizer is used for model optimization throughout the meta-training task. Therefore, the parameters of the model are updated as follows:
[0179] (17)
[0180] in is the global learning rate. In order to quickly adapt to each task and generalize in each layer space within the task, the optimization process needs to capture common knowledge across tasks from all tasks (users) in the meta-training set.
[0181] In summary, by performing adaptive updates on each layer, this method can learn the different preferences of each user on different layers and make accurate predictions.
[0182] Specifically, the specific effects of the embodiments of the present invention are as follows:
[0183] 1) From a causal perspective, this method finds that the difference in user preference distribution between meta-training and meta-testing in cold start scenarios will introduce confounding into the recommendation system. In order to eliminate the influence of confounding, we resort to the backdoor adjustment strategy in causal reasoning technology and design a causal enhanced meta-learner to eliminate the bias caused by the difference in user preference distribution for neighbors of different orders between meta-training and meta-testing.
[0184] 2) This method explores the correlation and similarity between items from multiple perspectives. Specifically, it constructs an attribute-specific item-item graph and a social-relationship-specific item-item graph based on each user (task), models diverse item relationships, and further uses GCNs to capture different information propagation patterns in different item graph structures to obtain meaningful hierarchical item embeddings.
[0185] 3) This method has been preliminarily experimentally verified on the Movielens1M, DBook and Yelp datasets. As shown in Table 3, the preliminary model proposed in this application is superior to the comparison algorithms MetaHIN and MELU in terms of evaluation indicators such as MAE, RMSE and NDCG. Combined with the research results based on a large number of literature, it can be proved that the causal multi-graph learning algorithm proposed in this paper to solve the cold start recommendation problem is feasible in theory and technology;
[0186] Table 3
[0187] .
[0188] On the other hand, the present invention further discloses a computer-readable storage medium storing a computer program, wherein when the computer program is executed by a processor, the processor executes the steps of the above method.
[0189] On the other hand, the present invention further discloses a computer device, including a memory and a processor, wherein the memory stores a computer program, and when the computer program is executed by the processor, the processor executes the steps of the above method.
[0190] In another embodiment provided in the present application, a computer program product comprising instructions is also provided, which, when executed on a computer, enables the computer to execute any of the causal meta-learning multi-view graph learning methods for cold start scenarios in the above embodiments.
[0191] It is understandable that the system provided by the embodiment of the present invention corresponds to the method provided by the embodiment of the present invention, and the explanation, examples and beneficial effects of the relevant contents can refer to the corresponding parts in the above method.
[0192] The embodiment of the present application also provides an electronic device, including a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory communicate with each other through the communication bus.
[0193] Memory, used to store computer programs;
[0194] The processor is used to implement the above-mentioned causal meta-learning multi-view graph learning method for cold start scenarios when executing the program stored in the memory.
[0195] The communication bus mentioned in the above electronic device may be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus, etc. The communication bus may be divided into an address bus, a data bus, a control bus, etc.
[0196] The communication interface is used for communication between the above electronic device and other devices.
[0197] The memory may include a random access memory (RAM) or a non-volatile memory (NVM), such as at least one disk memory. Optionally, the memory may also be at least one storage device located away from the aforementioned processor.
[0198] The above-mentioned processor can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it can also be a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, and discrete hardware components.
[0199] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented using software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the process or function described in the embodiment of the present application is generated in whole or in part. The computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions may be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions may be transmitted from a website site, a computer, a server or a data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) mode to another website site, computer, server or data center. The computer-readable storage medium may be any available medium that a computer can access or a data storage device such as a server or a data center that includes one or more available media integrated. The available medium may be a magnetic medium (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid-state drive Solid State Disk (SSD)), etc.
[0200] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.
[0201] Each embodiment in this specification is described in a related manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the system embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.
[0202] The above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit the same. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features may be replaced by equivalents. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.
Claims
1. A causal meta-learning multi-view graph learning method for cold start scenarios, characterized in that: The following steps are included: S1. We deeply examine the data generation process in the cold start recommendation system and abstract it into a causal graph. Then, we use the backdoor adjustment strategy in causal theory to guide the implementation of subsequent plans to eliminate the influence of confounding factors. S2, select a batch of tasks, and construct a project-project graph with specific project relationships and a project-project graph with specific social relationships for each task; S3. Using graph convolutional neural networks (GCNs) on the constructed project graph to learn multi-view project representations, aiming to obtain the embedding representation of user-related projects on the L-layer. S4, sending the layer 0 embedding of all relevant items of the user in the support set and the user's feature embedding to the user preference characterizer to generate the user's preference representation in the layer 0 space; S5, the obtained current layer user preference and the learned item representation are sent to the rating predictor, and the user preference representation is updated by calculating the loss in the query set to achieve layer-level update; S6, using the updated user preference characterizer to reacquire the user preference representation, and mapping the rating predictor parameters to the corresponding layer space according to the user preference representation of the current layer; S7, using the updated user preference representation and rating predictor to recalculate the query set loss, and update the rating predictor accordingly to achieve task-level update; S8, repeat steps S4 to S7 for a total of L times, using the embedding of user-related items at different layers in each repetition to obtain the user's preference representation and rating knowledge at the L layers; S9, integrating different user preference representations and rating knowledge learned on layer L to obtain the final user preference representation and rating knowledge; S10, calculate the query set loss based on the final user preference representation and rating knowledge, and comprehensively update all parameters in the model; The specific steps of step S1 are as follows: Data generation process from a causal perspective: Based on the data generation process in the cold-start recommendation system, the causal relationship is abstracted into a causal graph; Among them, U represents the user preference at the user feature level. For user u, [o1,o2,...,o k ] is the embedding of k demographic features of the user, o k is a feature embedding; D represents the set of neighboring items of different orders, i.e., the items that users interact with, as well as the attributes and social related items of the interacting items; L represents the user's hierarchical preference and the current user's preference for neighboring items of each order. Different users have different preferences for different neighboring items. With the help of causal reasoning, the preference of different users for neighboring items of different orders is modeled. That is, the preference at the user level is used as a priori. In the meta-training stage, the preference prior is adaptively learned through the items in the user interaction history, and then the prior is fine-tuned in the meta-testing stage. The user preferences in the model are and Learning is performed in ; Y represents the rating based on user preferences; The connection edge between two nodes in the causal graph represents the causal relationship between the variables, which is: D->U: The feature-level user preference representation is optimized based on the items of the user's historical interactions; (D, U)->L: D and U jointly determine the hierarchical representation of the user; because the hierarchical representation of user u is learned from user u and its interacted items as well as items related to the attributes of the interacted items; (U, L)->Y: This edge indicates that variable Y is determined by X through two paths: 1) Direct path U->Y; 2) Indirect path U->L->Y; This is because the user's rating is determined by the user's preference from the feature aspect and the user-level preference; According to causal theory, D is a confounding factor that affects U and Y. Ignoring the confounding factor D will lead to a false correlation between U and Y. Considering that the confounding factor D is observable, the backdoor adjustment strategy in step S1 is specifically implemented by stratifying the confounding factor, that is, D = {d}, where each d is the adjacent item of each order; Therefore, the true causal relationship between U and Y uses the causal intervention replace To make an estimate, (1) In order to stratify confounding factors and achieve causal intervention, for each task or user, the meta-learner adaptively learns the user's preference knowledge in each layer of space, and then fuses the knowledge learned in each layer to make predictions together; The steps of S3 include: For Projects First, by setting To initialize the attribute relationship and social relationships ; After L layers of propagation, its attribute relationship and social relationship are specifically expressed as and Next, for the project , if its attribute-related neighbors are given in Embeddings in layers , then item i is in the The item embedding of the layer is obtained according to the following formula, (2) in represents the activation function, ReLU is used in this work, Display items The set of attribute-related neighbors, Indicated in The learnable weight matrix in ; In addition, Display items In the The output of the layer convolution; the total depth of GCNs is set to ;exist After layer propagation, we get a specific representation of the attribute relationship of each item on multiple layers; similarly, the specific project representation of the social relationship on multiple layers Also use the above formula (2) to obtain; Since the specific item representations of attributes and social relations provide item information from different perspectives, in order to more effectively fuse the item representations from different perspectives, a fusion function is designed to aggregate item representations with different information; specifically, for item i, the representations of social relations and attribute relations are mapped to the same semantic space through the fusion function, and then the weights between the information flows between these two types of relations are adjusted through weights; The fusion function is as follows: For Projects , given its attribute relations and social relations on multiple layers, the following formula is defined to aggregate information: (3) in and They represent the specific representations of attribute relations and social relations respectively; represents a specific mapping function, which maps the specific representation of social relations to the semantic space where the specific representation of attribute relations is located; is a trainable parameter in the mapping function, parameter is an adjustable parameter weight used to adjust the information flow between these two relationship types. (4) in represents the parameter matrix to be learned; in addition, in order to make the following description more concise, this work uses to represent all parameters in the multi-view project characterizer; The specific steps of S4 include: In order to estimate the predicted rating, we first designed a user preference characterizer to learn the user’s preference representation. , given a user's interaction item representation Embedded with latent features ,user The feature preference representation of is defined as formula (5), (5) in is the set of related items for user u, express All parameters of the function; For Users , the method to learn its preferences is as follows: Input: User Latent feature embedding ; A collection of related items { }; Output: User u’s preference representation ; ; ; ; Next, we combine the learned user and item representations to generate recommendation predictions and concatenate user and Projects The representation is sent to a three-layer multi-layer perceptron. (6) in Indicates that The parameterized prediction function, is the predicted score value, represents the concatenation operation; then, the user’s preference is obtained by minimizing the mean square error (MSE) loss, (7) in represents the observed user-item interactions, Indicates user About Project The true rating value of For the convenience of description, all trainable parameters contained in the user preference characterizer and rating predictor are represented as ; The specific steps of S4 also include: To capture users’ preferences for neighboring items of different orders, layer-level adaptation is used to learn layer-level preference knowledge in each task; specifically, for a task or user , support set By User Next, given a user’s latent feature representation and the neighbor project in Representation on the layer , the user's preference in this layer of space is obtained through the user preference characterizer, which is the preference representation in each layer of space mentioned in S4. The specific implementation formula is: (8)。 2. The causal meta-learning multi-view graph learning method for cold start scenarios according to claim 1, characterized in that: After obtaining the user preference representation on the current layer, the support set loss can be further calculated to implement layer-level updates. The specific implementation of step S5 is: In the current layer space, the task Support set of medium-rated items The loss on is calculated as follows: (9) Next, update the layer-level priors based on the support set loss , to obtain a unique prior in the current layer space; Therefore, the meta-learner will learn the user’s preference priors in each layer space; (10) in represents the layer-level learning rate, Indicated in Adaptive prior knowledge in layer space; After layer-level adaptive updates, users can be obtained based on the support set items. In the The preference representation in the layer space is .
3. The causal meta-learning multi-view graph learning method for cold start scenarios according to claim 2, characterized in that: The implementation of S6 is to obtain the layer-level preference knowledge of each task based on the user In the The preference representation in the layer can further map the global prior to the corresponding layer space. The mapping method is as follows: (11) in represents the element-wise product, express Activation function, is a linear map; therefore, the global prior Mapped to layer space and perform local updates via one or several gradient descents , (12) in Indicates suitability for the task or user The new parameters of represents the task-level learning rate; therefore, through one or several gradient descents for local update, the global prior encoding the learned user rating knowledge is updated to complete the task-level adaptation mentioned in S7.
4. The causal meta-learning multi-view graph learning method for cold start scenarios according to claim 3, characterized in that: The specific steps of S9 are as follows: the user preference knowledge learned at each layer is integrated with the knowledge of encoding scores; Support set In this paper, a two-level adaptive meta-learner is used to learn the prior knowledge of users in each layer; then, this prior knowledge is used to estimate the user In the query set The ratings on the query set are used to calculate the loss on the query set. In addition, the query set loss is used as an indicator to effectively integrate the user's preferences on neighboring items of different orders. Specifically, the user preferences in different layers of space are integrated to obtain the final user preference representation. At the same time, the prior of user ratings in different layers of space is also integrated and encoded. The specific integration method is as follows: (13) (14) (15) in and represent the parameters of the final user representation and prediction function respectively; intuitively, in a given layer space, a larger loss value indicates that the user has a smaller preference for the items in the current layer space.
5. The causal meta-learning multi-view graph learning method for cold start scenarios according to claim 4, characterized in that: The specific implementation method of S10 is: For a task, the two-level adaptive meta-learner first learns a personalized prior from the support set, which is then used to calculate the loss on the query set. Then, the final user representation and the parameters of the prediction function are obtained by fusing the information of different layers. Finally, the query set is optimized. The global parameters are updated based on the performance. (16) in are the parameters of the two-level adaptive meta-learner; the Adam optimizer is used for model optimization throughout the meta-training task; therefore, the parameters of the model are updated as follows: (17) in is the global learning rate; in order to quickly adapt to each task and generalize in each layer space within the task, the optimization process captures common knowledge across tasks from all tasks or users in the meta-training set.
6. A computer device comprising a memory and a processor, wherein the memory stores a computer program, and when the computer program is executed by the processor, the processor executes the steps of the method according to any one of claims 1 to 5.
