Differential privacy-based causal inference matrix decomposition recommendation method

Using differential privacy technology and Bayesian personalized ranking algorithm to decompose user and item latent factor matrices, the problem of privacy leakage and model performance balance in causal matrix decomposition is solved, and the privacy protection and performance of the recommendation system are both balanced.

CN118656543AActive Publication Date: 2024-09-17CHONGQING UNIV OF POSTS & TELECOMM

Patent Information

Application Number
CN202410798059.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-20
Publication Date
2024-09-17
Estimated Expiration
2044-06-20

AI Technical Summary

Technical Problem

Matrix decomposition technology based on causality has the risk of privacy leakage in the recommendation system, and different reasons have different impacts on user privacy, making it difficult to find a balance between model performance and privacy protection.

Method used

The causal inference matrix decomposition method based on differential privacy is used to construct a loss function through random initialization of the matrix and gradient perturbation and use the Bayesian personalized ranking algorithm to decompose the user and item latent factor matrices to ensure privacy protection and model availability.

Benefits of technology

It effectively reduces the impact of noise on the recommendation model, retains the accuracy of the model to the maximum extent, while ensuring the security of user privacy data, achieving a balance between privacy protection and performance of the recommendation system.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118656543A
    Figure CN118656543A
Patent Text Reader

Abstract

The invention relates to a causal inference matrix decomposition recommendation method based on differential privacy, and belongs to the field of computer recommendation systems and the field of information security. The method specifically comprises the following steps: converting implicit feedback data of a user into an implicit feedback matrix with a numerical value of 0 or 1; constructing an objective function L, solving the matrixes Pint and Pcon and the matrixes Qint and Qcon based on a recommendation algorithm under causal inference, and storing user implicit factor matrixes Pint and Pcon; the obtained user implicit factor matrixes Qint and Qcon are randomly initialized again and then substituted into the target function L, the target function is rewritten into L (QintD) and L (QconD), the target function related to project implicit factor matrixes Qint and Qcon is obtained, the gradient descent method is used for solving the implicit factor matrixes Qint and Qcon, and the target function related to project implicit factor matrixes Qint and Qcon is obtained. The implicit factor gradients # imgabs0 # and # imgabs1 # of each project are considered, and a small amount of Laplace noise is used to disturb the gradients according to different privacy budgets; and performing gradient descent on the target functions L (QintD) and L (QconD) to obtain a matrix # imgabs2. The method disclosed by the invention has good privacy protection and model accuracy.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the field of computer recommendation systems and information security, and relates to a causal inference matrix decomposition recommendation method based on differential privacy. Background Art

[0002] Using causal matrix decomposition technology to recommend target users in recommendation systems is a common and effective technology. By modeling the implicit feedback data of users, better personalized recommendations can be made for customers, thereby improving the customer experience. Implicit feedback data contains various types of user behaviors, such as purchase records, browsing records, and web page click-through rates. However, from the perspective of protecting user privacy, the causal matrix decomposition technology is learned by relying on a large amount of user implicit feedback data. Publishing these filtering recommendation models learned from a large amount of user privacy data will inevitably involve the risk of leaking user privacy. At the same time, the matrix decomposition technology based on causal inference will decompose the user implicit feedback matrix into multiple user matrices and project matrices according to different reasons. Different project matrices have different impacts on user privacy. Therefore, in order not to damage the model performance, the project matrices generated for different reasons should also be protected differently.

[0003] Differential privacy is a privacy protection framework that can quantify the level of privacy protection. Under this framework, the change of a single data has a minimal impact on the processing results of the data set, and the attacker cannot infer the privacy information of a data sample through the publicly released data set. At the same time, differential privacy assumes that the attacker has the maximum background knowledge, that is, the attacker has all the data information except the target data. Under the maximum background knowledge assumption, differential privacy does not need to consider any information that the attacker may have, and can also protect the privacy of a single data. In addition, differential privacy based on mathematical statistical knowledge has a strict definition of privacy protection and proposed a quantitative evaluation method for the level of privacy protection, so that the privacy protection level of the data set under different parameter processing is comparable. Summary of the invention

[0004] In view of this, the purpose of the present invention is to provide a causal inference matrix decomposition recommendation method based on differential privacy, so as to achieve a good balance between security and usability of the collaborative filtering recommendation model.

[0005] In order to achieve the above object, the present invention provides the following technical solutions:

[0006] A causal inference matrix decomposition recommendation method based on differential privacy includes the following steps:

[0007] S1: An implicit feedback matrix with a value of 0 or 1 is used to represent the implicit feedback data of the user on the project. 0 represents the user's negative feedback on the project, and 1 represents the user's positive feedback on the project.

[0008] S2: Randomly initialize the matrix P int , P con , Q int , Q con ;P int is the user interest latent factor matrix, Represents the matrix P int The u-th row of represents the interest latent factor vector of the u-th user; int is the user's latent factor matrix, Represents the matrix P con The u-th row of Q represents the herd latent factor vector of the u-th user; int is the item interest latent factor matrix, Denotes the matrix Q int The i-th row of Q represents the latent factor vector of interest for the i-th item; con is the latent factor matrix of project conformity, Denotes the matrix Q con The i-th row of represents the herd latent factor vector of the i-th item; is the noisy item interest latent factor matrix, Representation Matrix The i-th row of represents the latent factor vector of the i-th item interest plus noise; d represents the dimension of the latent factor vector; is the noisy item interest latent factor matrix, Representation Matrix The i-th row of represents the latent factor vector of the i-th item with herd noise; d represents the dimension of the latent factor vector;

[0009] S3: Divide the items clicked by users into two cases. Case 1: The user clicks on an item with a low popularity. In this case, it can be inferred that the user has a greater interest in the item. The loss function can be constructed for the user's interest and the reason for following the crowd. and Use Bayesian personalized ranking to maximize the score difference between the two. Case 2: The user clicks on a popular item. At this time, it is impossible to infer the user's true interest, so we can only construct a loss function for the herd reason. Use Bayesian feasible sorting to maximize the score difference between the two. Finally, construct the loss function of the click based on the actual situation of the click Therefore, according to as well as Construct the model's loss function L to solve P int , P con, Q int and Q con , P int and P con Splice to get the user matrix P, Q int and Q con The project matrix Q is obtained by concatenation;

[0010] S4: The matrices P and P obtained in S3 are int and P con Fixed, randomly initialized matrix Q int and Q con , substitute into the loss function L and recalculate the matrix Q int and Q con , through the loss function L to obtain the matrix Q int and Q con Gradient and And calculate the sensitivity of data sets D and D', and calculate the value assigned to Q int and Q con According to the privacy budget, noise is sampled from the Laplace distribution and the gradient and Do gradient perturbation to get noisy gradient and

[0011] S5: Through the gradient obtained after perturbation, the loss function L is gradient descended to obtain the final matrix and Will and Concatenate to get the differential privacy-protected project matrix

[0012] S6: According to the formula Make predictions, sort the prediction results of the non-positive feedback items in the implicit feedback matrix described in S1, and recommend the TOP-N items to the user.

[0013] Randomly initialize the matrix P int , P con , Q int , Q con ;P int is the user interest latent factor matrix, Represents the matrix P int The u-th row of represents the interest latent factor vector of the u-th user; int is the user's latent factor matrix, Represents the matrix P con The u-th row of Q represents the herd latent factor vector of the u-th user; int is the item interest latent factor matrix, Denotes the matrix Q int The i-th row of Q represents the latent factor vector of interest for the i-th item; con is the latent factor matrix of project conformity, Denotes the matrix Q con The i-th row of represents the herd latent factor vector of the i-th item; is the noisy item interest latent factor matrix, Representation Matrix The i-th row of represents the latent factor vector of the i-th item interest plus noise; d represents the dimension of the latent factor vector; is the noisy item interest latent factor matrix, Representation Matrix The i-th row of represents the latent factor vector of the i-th item with herd noise; d represents the dimension of the latent factor vector;

[0014] Further, in step S3, the objective function L is constructed, and the matrix P is solved using the recommendation algorithm based on Bayesian personalized ranking. int , P con , Q int and Q con And save the matrix P int , P con The specific steps include:

[0015] S31: Decompose the implicit feedback matrix into four low-dimensional matrices P int , P con , Q int and Q con , for case 1, construct the matrix P int With Q int The objective function is:

[0016]

[0017] Construct about the matrix P con With Q con The objective function is:

[0018]

[0019] Among them, u represents the u-th user, i represents the i-th item, is the loss function, represents the regularization coefficient of the user vector, represents the regularization coefficient of the positive feedback item vector, represents the regularization coefficient of the non-positive feedback item vector, and ||·||2 represents the l2 norm of the matrix. For case 2, construct int With Q int The objective function is:

[0020]

[0021] According to the actual item clicks of end users, construct the objective function about the matrices P and Q:

[0022]

[0023] Among them, p u Depend on and Composition, q i Depend on and Composition, q j Depend on and Composition. According to all the loss functions, the final loss function is obtained:

[0024]

[0025] S32: Perform gradient descent on the loss function L, calculate the user interest and crowd latent factor vector for each user, calculate the project interest and crowd latent factor vector for each project, calculate the gradient of the objective function based on all user latent factor vectors and all project latent factor vectors, and update the matrix P int , P con , Q int and Q con The u-th user interest and herd latent factor vector and The gradient and the i-th interest and crowd latent factor vector items and The calculation formula is as follows:

[0026]

[0027] where η1 represents the learning rate, and

[0028]

[0029] in, and represents the gradient of user u for positive feedback item i, and Represents the gradient of user u for non-positive feedback item j. According to the calculated gradient to update.

[0030] Repeat step S32 for P int , P con , Q int and Q con Iterate, P int, P con , Q int and Q con When the stopping condition is met, the iteration ends and the matrix P is saved int , P con .

[0031] Further, in step S4, the Q obtained in S3 is int and Q con Perform random initialization and save the matrix P int , P con Fix, substitute into L, and get about Q int and Q con The loss function L is used, and the sensitivity of adjacent data sets D and D' is calculated for Q int and Q con Allocate a privacy budget, sample noise from the Laplace distribution according to the privacy budget, and int and Q con Do gradient perturbation to get noisy gradient and The specific steps include:

[0032] S41: Substitute P obtained in S3 into L to obtain a new loss function about Q, thereby rewriting the objective function L to obtain a new objective function L(Q int |D) and L(Q con |D):

[0033]

[0034] in, It indicates the set of user u for positive feedback items i, represents the set of non-positive feedback items j from user u. represents the regularization coefficient of the positive feedback item vector, represents the regularization coefficient of the non-positive feedback item vector, ||·||2 represents the l2 norm of the vector;

[0035] S42: The formula for finding the gradient of the objective function L(H|D) is as follows:

[0036]

[0037] in, represents the gradient of user u for positive feedback item i, Represents the gradient of user u for non-positive feedback item j. According to the calculated gradient and to update.

[0038] S43: Calculate the sensitivity Δ of the dataset D and the dataset D' in the objective function L(H|D) respectively + ,Δ - ,Δ; the calculation formula is as follows:

[0039]

[0040]

[0041] in, and represents the upper bound of the l1 norm of the user vector and item vector, represents the regularization coefficient of the positive feedback item vector, Represents the regularization coefficient of the non-positive feedback item vector.

[0042] S44: Calculate the similarity between the project interest latent factor vector and the project conformity latent factor vector to determine the size of the privacy budget allocated to the project interest matrix and the project conformity matrix. The calculation method is as follows:

[0043]

[0044] After determining the privacy budget, we can distribute and Sampling noise Gradients of the project interest matrix and project conformity matrix and Perturb, ∈ is the overall privacy budget. The gradient after Laplace noise perturbation and as follows:

[0045]

[0046] According to all the noisy gradient vectors and Update Matrix and Where η2 is the learning rate, and then the update is completed. and Splice to get the final project matrix

[0047] Further, in step S6, the prediction vector of the uth user is calculated Sort the prediction results of non-positive feedback items in the implicit feedback matrix R, and recommend the TOP-N items to the u-th user.

[0048] The beneficial effects of the present invention are as follows: the present invention aims at the privacy leakage problem in the matrix decomposition based on causal inference, proposes a causal inference matrix decomposition recommendation method based on differential privacy, and decomposes the implicit feedback data matrix of the user to the project into two low-dimensional matrices, which represent the user latent factor matrix and the project latent factor matrix respectively. Since the direct use of Laplace noise to perturb the objective function will make the added noise too large, it will seriously affect the availability of the recommendation model. Therefore, the objective function is solved by using the gradient descent solution method to reduce the sensitivity of the objective function, reduce the impact of noise on the objective function, and maximize the accuracy of the model. This algorithm can ensure the security of user privacy data while ensuring the availability of the recommendation model.

[0049] Other advantages, objectives and features of the present invention will be described in the following description to some extent, and to some extent, will be obvious to those skilled in the art based on the following examination and study, or can be taught from the practice of the present invention. The objectives and other advantages of the present invention can be realized and obtained through the following description. BRIEF DESCRIPTION OF THE DRAWINGS

[0050] In order to make the purpose, technical solutions and advantages of the present invention more clear, the present invention will be described in detail below in conjunction with the accompanying drawings, wherein:

[0051] Figure 1 A schematic diagram of solving the matrix W and the matrix H for the recommendation algorithm based on Bayesian personalized ranking;

[0052] Figure 2 Schematic diagram of solving H by gradient descent (SGD) to add noise to the gradient;

[0053] Figure 3 Schematic diagram for recommending items to user u;

[0054] Figure 4 The comparison results of the present invention and other methods on HR indicators under different privacy budgets are shown;

[0055] Figure 5 The comparison results of the NDCG indicator between the present invention and other methods under different privacy budgets. DETAILED DESCRIPTION

[0056] The following describes the embodiments of the present invention by specific examples, and those skilled in the art can easily understand other advantages and effects of the present invention from the contents disclosed in this specification. The present invention can also be implemented or applied through other different specific embodiments, and the details in this specification can also be modified or changed in various ways based on different viewpoints and applications without departing from the spirit of the present invention. It should be noted that the illustrations provided in the following embodiments only illustrate the basic concept of the present invention in a schematic manner, and the following embodiments and features in the embodiments can be combined with each other without conflict.

[0057] Among them, the drawings are only used for illustrative explanations, and they only represent schematic diagrams rather than actual pictures, and should not be understood as limitations on the present invention. In order to better illustrate the embodiments of the present invention, some parts of the drawings may be omitted, enlarged or reduced, and do not represent the size of actual products. For those skilled in the art, it is understandable that some well-known structures and their descriptions in the drawings may be omitted.

[0058] The same or similar numbers in the drawings of the embodiments of the present invention correspond to the same or similar parts; in the description of the present invention, it should be understood that if the terms "upper", "lower", "left", "right", "front", "rear", etc. indicate the orientation or position relationship, they are based on the orientation or position relationship shown in the drawings, which is only for the convenience of describing the present invention and simplifying the description, rather than indicating or implying that the device or element referred to must have a specific orientation, be constructed and operate in a specific orientation. Therefore, the terms describing the position relationship in the drawings are only used for illustrative purposes and cannot be understood as limiting the present invention. For ordinary technicians in this field, the specific meanings of the above terms can be understood according to specific circumstances.

[0059] See also Figure 1 to Figure 3 , specifically including the following steps:

[0060] Step 1: The recommendation system converts the collected user implicit feedback data into an implicit feedback matrix with a value of 0 or 1. The value 0 indicates that the user has a negative feedback on the project, and the value 1 indicates that the user has a positive feedback on the project. U is the set of all users, I is the set of all projects, |U| indicates the number of users in U, and |I| indicates the number of projects in I.

[0061] Step 2: Recommendation system based on implicit feedback matrix and the dimension d of the latent factor vector generates the matrix P int , P con , Q int , Q con And initialize.

[0062] Step 3: Construct the loss function L:

[0063]

[0064] Among them, u represents the u-th user, i represents the i-th item, and λ P represents the regularization coefficient of the user vector, and represents the regularization coefficient of the positive feedback item vector, and represents the regularization coefficient of the non-positive feedback item vector, and ||·||2 represents the l2 norm of the matrix.

[0065] Step 4: Perform gradient descent on the objective function, calculate the user latent factor vector for each user, calculate the project latent factor vector for each project, calculate the gradient of the objective function based on all user latent factor vectors and all project latent factor vectors, and update the matrix P and matrix Q. The u-th user latent factor vector w u The gradient of and the i-th latent factor vector item h i The calculation formula is as follows:

[0066]

[0067]

[0068] where η1 represents the learning rate, and

[0069]

[0070] in, and represents the gradient of user u for positive feedback item i, and Represents the gradient of user u for non-positive feedback item j. According to the calculated gradient to update.

[0071] Repeat step S32 for P int , P con , Q int and Q con Iterate, Q int , P con , Q int and Q con When the stopping condition is met, the iteration ends and the matrix P is saved int 、p con .

[0072] Step 5: Substitute P calculated in step 4 into L to obtain a new loss function about Q, thereby rewriting the objective function L to obtain a new objective function L(Q int |D) and L(Q con|D):

[0073]

[0074] in, represents the set of positive and negative feedback from user u to item i, represents the set of non-positive feedback items j from user u. represents the regularization coefficient of the positive feedback item vector, represents the regularization coefficient of the non-positive feedback item vector, ||·||2 represents the l2 norm of the vector;

[0075] The formula for finding the gradient of the objective function L(H|D) is as follows:

[0076] The formula for finding the gradient of the objective function L(H|D) is as follows:

[0077]

[0078] in, represents the gradient of user u for positive feedback item i, Represents the gradient of user u for non-positive feedback item j. According to the calculated gradient and to update.

[0079] Step 6: Calculate the sensitivity Δ of the dataset D and dataset D' in the objective function L(H|D) respectively + ,Δ - ,Δ; the calculation formula is as follows:

[0080]

[0081]

[0082]

[0083] in, and represents the upper bound of the l1 norm of the user vector and item vector, represents the regularization coefficient of the positive feedback item vector, Represents the regularization coefficient of the non-positive feedback item vector.

[0084] Step 7: Calculate the similarity between the project interest latent factor vector and the project conformity latent factor vector to determine the size of the privacy budget allocated to the project interest matrix and the project conformity matrix. The calculation method is as follows:

[0085]

[0086] After determining the privacy budget, we can distribute and Sampling noise Gradients of the project interest matrix and project conformity matrix and Perturb, ∈ is the overall privacy budget. The gradient after Laplace noise perturbation and as follows:

[0087]

[0088] According to all the noisy gradient vectors and Update Matrix and Where η2 is the learning rate, and then the update is completed. and Splice to get the final project matrix

[0089] Step 8: Calculate the prediction vector of the uth user Sort the prediction results of non-positive feedback items in the implicit feedback matrix R, and recommend the TOP-N items to the u-th user.

[0090] Example

[0091] The causal inference matrix decomposition recommendation method based on differential privacy described in the present invention specifically includes the following steps:

[0092] Step 1: Convert the implicit feedback data of users to the project into an implicit feedback matrix with a value of 0 or 1. The value 0 represents the user's negative feedback to the project, and the value 1 represents the user's positive feedback to the project. According to the number of users |U| and the number of projects |I| contained in the implicit inverse matrix, initialize the user latent factor matrix P int , P con And the item latent factor matrix Q int , Q con . Construct the objective function L and solve P using the gradient descent method int , P con ,Q int , Q con And save. The solution process is as follows Figure 1 shown.

[0093] Step 2: P obtained in step 1 int , P con Substitute L and randomly initialize the matrix Q int , get information about Q int , Q con The objective function L(Q int |D) and L(Q con|D), consider the objective function of each project i∈I and calculate and Regarding the gradient of the objective function, the coefficient sensitivity Δ in adjacent data sets D and D' is calculated respectively int and Δ con . From the Laplace distribution and Sampling noise noise Gradient and The specific process is as follows: Figure 2 shown.

[0094] Step 3: Calculate the user's prediction vector according to the formula in S6, sort the prediction results of non-positive feedback items in the implicit feedback matrix R, and recommend the TOP-N items to the u-th user. The recommendation process is as follows: Figure 3 shown.

[0095] Finally, it should be noted that the above embodiments are only used to illustrate the technical solution of the present invention rather than to limit it. Although the present invention has been described in detail with reference to the preferred embodiments, those skilled in the art should understand that the technical solution of the present invention can be modified or replaced by equivalents without departing from the purpose and scope of the technical solution, which should be included in the scope of the claims of the present invention.

Claims

1. A causal inference matrix decomposition recommendation method based on differential privacy, characterized by: The method specifically comprises the following steps: S1: The implicit feedback matrix with a value of 0 or 1 represents the user's implicit feedback data on the project. 0 represents the user's negative feedback on the project, and 1 represents the user's positive feedback on the project. S2: Randomly initialize matrix P int 、P con , Q int , Q con ;P int is the user interest latent factor matrix, Represents the matrix P int The u-th row represents the interest latent factor vector of the u-th user; int is the user's latent factor matrix, Represents the matrix P con The u-th row represents the herd latent factor vector of the u-th user; Q int is the item interest latent factor matrix, Denotes the matrix Q int The i-th row represents the latent factor vector of interest for the i-th item; Q con is the item conformity latent factor matrix, Denotes the matrix Q con The i-th row represents the herd latent factor vector of the i-th item; is the noisy item interest latent factor matrix, Representation matrix The i-th row represents the latent factor vector of the i-th item interest plus noise; d represents the dimension of the latent factor vector; is the noisy item interest latent factor matrix, Representation matrix The i-th row represents the latent factor vector of the i-th item following the herd noise; d represents the dimension of the latent factor vector; S3: Divide the user's clicked items into two cases. Case 1: The user clicks on an item with low popularity. In this case, it can be inferred that the user has a greater interest in the item. The loss function can be constructed for the user's interest and the reason for following the crowd. and Use Bayesian personalized ranking to maximize the score difference between the two. Case 2: The user clicks on a more popular item. At this time, it is impossible to infer the user's true interest, so we can only construct a loss function for the herd mentality. Use Bayesian feasible sorting to maximize the score difference between the two. Finally, construct the loss function of the click based on the actual situation of the click Therefore, according to as well as Construct the model's loss function L to solve P int 、P con , Q int and Q con , P int and P con Splicing to get user matrix P, Q int and Q con Splicing to get the project matrix Q; S4: The matrices P and P obtained in S3 are int and P con Fixed, randomly initialized matrix Q int and Q con , substitute into the loss function L and recalculate the matrix Q int and Q con , the loss function L is used to obtain the matrix Q int and Q con Gradient and And calculate the sensitivity of data sets D and D′, and calculate the value assigned to Q int and Q con According to the privacy budget, noise is sampled from the Laplace distribution and the gradient and Do gradient perturbation to get noisy gradient and S5: Through the gradient obtained after perturbation, the loss function L is gradient descended to obtain the final matrix and] Will and Splicing to obtain the differential privacy protected project matrix S6: According to the formula Make predictions, sort the prediction results of the non-positive feedback items in the implicit feedback matrix described in S1, and recommend the TOP-N items to the user.

2. The causal inference matrix decomposition recommendation method based on differential privacy according to claim 1 is characterized by: In step S1, the user's implicit feedback data on the project is converted into an implicit feedback matrix with a value of 0 or 1. The value 0 indicates that the user has given a negative feedback to the project, and the value 1 indicates that the user has given a positive feedback to the project. U is the set of all users, I is the set of all projects, |U| represents the number of users in U, and |I represents the number of projects in I.

3. The causal inference matrix decomposition recommendation method based on differential privacy according to claim 1 is characterized by: In step S2, the matrix P is randomly initialized. int 、P con , Q int and Q con ; Represents the matrix P int The u-th row represents the interest latent factor vector of the u-th user; int is the user's latent factor matrix, Represents the matrix P con The u-th row represents the herd latent factor vector of the u-th user; Q int is the item interest latent factor matrix, Denotes the matrix Q int The i-th row represents the latent factor vector of interest for the i-th item; Q con is the item conformity latent factor matrix, Denotes the matrix Q con The i-th row represents the herd latent factor vector of the i-th item; is the noisy item interest latent factor matrix, Representation matrix The i-th row represents the latent factor vector of the i-th item interest plus noise; d represents the dimension of the latent factor vector; is the noisy item interest latent factor matrix, Representation matrix The i-th row represents the latent factor vector of the i-th item following the herd noise; d represents the dimension of the latent factor vector.

4. The causal inference matrix decomposition recommendation method based on differential privacy according to claim 1, characterized in that: In step S3, the objective function L is constructed and the matrix P is solved using the recommendation algorithm based on Bayesian personalized ranking. int 、P con , Q int and Q con And save the matrix P int 、P con . The specific steps include: S31: Decompose the implicit feedback matrix into four low-dimensional matrices P int 、P con , Q int and Q con , for case 1, construct the matrix P int With Q int The objective function is: Construct about the matrix P con With Q con The objective function is: Among them, u represents the u-th user, i represents the i-th item, is the loss function, represents the regularization coefficient of the user vector, represents the regularization coefficient of the positive feedback item vector, represents the regularization coefficient of the non-positive feedback item vector, and ||·||2 represents the l2 norm of the matrix. For case 2, construct the matrix P int With Q int The objective function is: For the actual item clicks of end users, construct the objective function about matrices P and Q: Among them, p u Depend on and Composition, q i Depend on and Composition, q j Depend on and Composition. According to all the loss functions, the final loss function is obtained: S32: Perform gradient descent on the loss function L, calculate the user interest and crowd latent factor vector for each user, calculate the project interest and crowd latent factor vector for each project, calculate the gradient of the objective function based on all user latent factor vectors and all project latent factor vectors, and update the matrix P int 、P con , Q int and Q con The u-th user interest and herd latent factor vector and The gradient and the i-th interest and herd latent factor vector items and The calculation formula is as follows: where η1 represents the learning rate, and in, and represents the gradient of user u for positive feedback item i, and Represents the gradient of user u for non-positive feedback item j. According to the calculated gradient to update. Repeat step S32 for P int 、P con , Q int and Q con Iterate, P int 、P con , Q int and Q con When the stopping condition is met, the iteration ends and the matrix P is saved int 、P con .

5. The causal inference matrix decomposition recommendation method based on differential privacy according to claim 1, characterized in that: In step S4, the Q obtained in S3 is int and Q con Perform random initialization and save the matrix P int 、P con Fix, substitute L, and get about Q int and Q con The loss function L is used, and the sensitivity of the adjacent data sets D and D′ is calculated. int and Q con Allocate a privacy budget, sample noise from the Laplace distribution according to the privacy budget, and int and Q con Do gradient perturbation to get noisy gradient and The specific steps include: S41: Substitute P obtained in S3 into L to obtain a new loss function about Q, thereby rewriting the objective function L to obtain a new objective function L(Q int |D) and L(Q con |D): in, represents the set of positive and negative feedback items from user u, represents the set of non-positive feedback items j given by user u. represents the regularization coefficient of the positive feedback item vector, represents the regularization coefficient of the non-positive feedback item vector, ||·||2 represents the l2 norm of the vector; S42: The formula for finding the gradient of the objective function L(H|D) is as follows: in, represents the gradient of user u for positive feedback item i, Represents the gradient of user u for non-positive feedback item j. According to the calculated gradient and to update. S43: Calculate the sensitivity Δ of dataset D and dataset D′ in the objective function L(H|D) respectively + , Δ - , Δ; the calculation formula is as follows: in, and represents the upper bound of the l1 norm of user vectors and item vectors, represents the regularization coefficient of the positive feedback item vector, Represents the regularization coefficient of the non-positive feedback item vector. S44: Calculate the similarity between the item interest latent factor vector and the item conformity latent factor vector to determine the size of the privacy budget allocated to the item interest matrix and the item conformity matrix. The calculation method is as follows: After determining the privacy budget, we distribute it from Laplace and Sampling noise Gradients of the project interest matrix and the project conformity matrix and Perturb, ∈ is the overall privacy budget. The gradient after Laplace noise perturbation and as follows: According to all the noisy gradient vectors and Update Matrix and Where η2 is the learning rate, and then the update is completed and Splicing to get the final project matrix 6. The causal inference matrix decomposition recommendation method based on differential privacy according to claim 1, characterized in that: In step S6, the prediction vector of the uth user is calculated Sort the prediction results of non-positive feedback items in the implicit feedback matrix R and recommend the TOP-N items to the u-th user.

Citation Information

Patent Citations

  • Matrix decomposition recommendation method based on localized differential privacy

    CN113849772A

  • Bayesian personalized matrix decomposition recommendation method based on differential privacy

    CN116541606A

  • System and Method for Socially Aware Recommendations Based on Implicit User Feedback

    US20150187024A1

  • Firecommendation method, device, and system for distributed privacy-preserving learning

    US20230161905A1

Cited By

  • E-commerce platform multi-source data security fusion method and system based on federated learning

    CN120930169A