An information diversity recommendation method based on deep reinforcement learning
Through the combination of deep reinforcement learning and self-attention mechanism, the problem of static user preferences and insufficient diversity is solved, dynamic preference modeling and diversity improvement are achieved, and more comprehensive recommendation results are provided.
Patent Information
- Application Number
- CN202210190018.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-02-28
- Publication Date
- 2024-10-18
- Estimated Expiration
- 2042-02-28
AI Technical Summary
Existing recommendation systems assume that user preferences are static, making it difficult to capture the dynamic changes of users, and ignore the long-term value and diversity of recommended items. As a result, the recommendation results cannot adapt to the user's recent preferences, and user choices are limited to a small range.
It adopts an information diversity recommendation method based on deep reinforcement learning, combines the actor policy neural network and critic valuation neural network with the self-attention mechanism to model the user's dynamic preferences, and maximizes recommendations through the deep deterministic policy gradient model (DDPG). long-term benefits, while considering the diversity of the recommendation system, and using the overall diversity effect module to improve the diversity of recommendations.
It achieves effective modeling of users' dynamic preferences, captures users' short-term preferences, maximizes long-term benefits of recommendations, improves the diversity of recommendations while ensuring recommendation accuracy, and provides more comprehensive recommendation results.
Smart Images

Figure CN114547466B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of information recommendation, and in particular to an information diversity recommendation method based on deep reinforcement learning. Background Art
[0002] In recent years, with the advent of the big data era, information overload has greatly affected people's lives. It is difficult for people to quickly find the parts of interest in the massive amount of information. How to recommend projects to suitable users has become one of the most concerned issues for users and enterprises. The recommendation system has become a powerful way to solve information overload. The recommendation system captures user preferences by modeling user attributes and behavior data, thereby providing users with personalized information recommendations. Today's commonly used recommendation methods mainly include the following categories:
[0003] 1. Traditional model-based recommendation methods. Specifically, they include content-based recommendation systems, collaborative filtering-based recommendation systems, and hybrid recommendation systems. Content-based recommendation systems recommend similar items based on the user's past interests; collaborative filtering-based recommendation systems are one of the most widely used recommendation systems, and mainly include two methods: one is user-based collaborative filtering, which is to find another user with the same taste as the user and then recommend items that the other user liked in the past to the user; the other is item-based collaborative filtering, which is to calculate the similarity between items and then recommend items similar to items that the user liked in the past; the hybrid recommendation system combines content-based and collaborative filtering-based recommendation methods, taking advantage of each other's strengths to complete the recommendation task.
[0004] 2. The combination of recommendation system and deep learning. With the vigorous development of deep learning technology, the powerful fitting and expression ability of neural networks in deep learning has led more and more people to apply it to the field of recommendation systems.
[0005] 3. The combination of recommendation system and deep reinforcement learning. Deep reinforcement learning has achieved good results in the field of games, and the interaction process between the recommendation system and the user is very similar to the actions and feedback between the agent and the environment in deep reinforcement learning. Deep reinforcement learning is an ideal method that can update the model through strategic rewards, with the goal of maximizing the long-term return, which is consistent with the goal of the recommendation system.
[0006] Although traditional recommendation methods and deep learning-based recommendation methods have achieved good results, there are still many defects.
[0007] 1. Existing traditional recommendation methods and recommendation methods combined with deep learning both assume that user preferences are static. Deep learning methods are data-driven methods. When combined with recommendation systems, they are based on user historical data and assume that users' potential preferences are constant. This method does not consider that user preferences may change in the short term, so it is difficult for deep learning-based recommendation methods to capture users' dynamic changes. The resulting recommendation results are also unable to adapt to users' recent preferences. Therefore, it is more appropriate to model the recommendation process as a continuous serialized decision process.
[0008] Second, most recommendations only consider the user's immediate return, focusing only on whether the recommended items are clicked or consumed, while ignoring the long-term contribution of these items. For example, after watching two news about Kobe and thunderstorm with the same immediate reward, the user may no longer be interested in the news about thunderstorm, but after watching the news about Kobe, he may want to continue to learn about basketball news. Therefore, the long-term value brought by the recommended items is very important to the recommendation system.
[0009] 3. Most recommendation systems only focus on the accuracy of recommendation results, while ignoring some other indicators, such as diversity. This will limit the user's choice to a small range, because the recommendation results are obtained by sorting the user's interests and the candidate set according to the similarity rule. Some items outside the candidate set may be of interest to the user but will not be recommended. Therefore, under the premise of ensuring the accuracy of the recommendation results, the diversity of the recommendation is also a factor that needs to be considered. Summary of the invention
[0010] In view of the above-mentioned deficiencies in the prior art, the present invention provides an information diversity recommendation method based on deep reinforcement learning.
[0011] In order to solve the above technical problems, the technical solution adopted by the present invention is: an information diversity recommendation method based on deep reinforcement learning, comprising the following steps:
[0012] Step 1: Randomly initialize the parameters of the Actor policy neural network and the parameters Q(s,a|θ) of the Critic estimation neural network μ ); Initialize the parameters of the Actor target strategy neural network and the parameters Q′(s,a|θ of the Critic target estimation neural network μ ); Initialize the experience playback library R; Initialize the state representation S 0 ; Input the user's historical behavior data into the self-attention mechanism module;
[0013] Among them, s is the state and a is the action; f is the mapping function from state to action, which means the state s at time t t Mapping to action a at time t t , f′ is the mapping function from the target state to the action; π represents the strategy, μ represents the valuation, and θ π represents the policy parameter, θ μ represents the valuation parameter; Q function represents the state-action value function, and Q′ function represents the target state-action value function;
[0014] Step 2: The self-attention mechanism module processes the user's historical behavior data and generates a state representation s for the user 0 ;
[0015] The self-attention mechanism module represents a single sequence by matching it with its own sequence through the self-attention mechanism, and its hidden state vector consists of query, key, and value, and its output is the weighted sum of value, where the weight is determined by query and key.
[0016] The specific process of step 2 is as follows:
[0017] Step 2.1: Initialize the hidden state vector query, key and value of the self-attention mechanism;
[0018] Step 2.2: Input the user's short-term interaction record, including users, items, and interaction behaviors, where each item is represented by a d-dimensional embedding vector: Let X∈R H×d Represents the embedding representation of the entire project set, H is the number of projects in the entire project set, and the most recent L records are stacked together in sequence to obtain the following matrix
[0019]
[0020] Among them, H represents the number of items in the item set, and the query, key, and value of user u at time step t are all equal to
[0021] Step 2.3: Map the query and key to the same space through a nonlinear transformation with shared parameters. The formula is as follows:
[0022]
[0023]
[0024] Among them, W Q ∈R d×d , W K ∈R d×dis the weight matrix of query and key, Q′ and K′ are the weight matrices of query and key mapped to the same space;
[0025] Step 2.4: ReLU is used as an activation function to introduce nonlinearity into the learned attention mechanism. The association matrix represents the similarity between L items. The normalized calculation formula is as follows:
[0026]
[0027] in, is the normalized correlation matrix, d is the scaling factor used to reduce the gradient effect;
[0028] Step 2.5: Set value to The weighted output of the self-attention module is obtained by multiplying the value matrix and the normalized association matrix. The formula is as follows:
[0029]
[0030] Among them, the weighted output It is considered as a short-term preference representation of users;
[0031] Step 2.6: To learn a single attention representation, the average embedding of the L self-attention mechanism representations is used as the user's recent state representation, as follows:
[0032]
[0033] in, is the short-term preference representation of the user in the first item, Indicates the user's recent status.
[0034] Step 3: Input all the state representations generated in step 2 into the Actor strategy neural network, and the Actor strategy neural network selects the optimal strategy a according to the current strategy t , and screen the candidate set according to the strategy function to select the recommended action vector. The specific process is as follows:
[0035] The generated user state representation is input into the Actor strategy neural network, passes through two ReLU activation function layers and one Tanh activation function layer, and is converted into actions according to the strategy function. The candidate set is screened and the recommended action vector is selected.
[0036] Step 4: Input all the state representations generated in step 2 into the Critic valuation neural network. At the same time, the recommended action vector generated by the Actor strategy neural network is also used as the input of the Critic valuation neural network. The Critic valuation neural network is used to score the recommended behavior, calculate the state value Q, and generate a reward r. t , the specific process is as follows:
[0037] The state representation generated in step 2 is transformed nonlinearly through a ReLU activation function layer. The transformed state vector and the recommended action vector generated in step 3 are simultaneously input into the Critic valuation neural network. The current state value Q is calculated through two ReLU activation function layers, and the reward r is generated. t .
[0038] Step 5: Update the recommendation strategy by gradient descent back propagation. When the state value Q converges, the training process is completed and the action space of candidate recommendation items is obtained. The specific process is as follows:
[0039] Step 5.1: Set the user's state s at time t t and the state s at time t+1 t+1 And the action vectors a generated in steps 3 and 4 respectively t and the corresponding reward r t In four-tuple (s t ,a t ,r t ,s t+1 ) in the form of experience playback library R;
[0040] Step 5.2: Take sample experience from the experience playback library R and set the time difference target value to:
[0041] y i =r i +γQ′(s i+1 ,μ′(s i+1 |θ μ′ )|θ Q′ )
[0042] Among them, y i represents the time difference target value, γ represents the discount rate, and θ μ′ represents the Actor target network parameters, θ Q′ represents the critic target network parameters, Q′ represents the target valuation neural network, s i+1 Indicates the state at time i+1;
[0043] Combine the Actor strategy neural network and the Critic valuation neural network to calculate the loss function
[0044]
[0045] Among them, Q represents the estimated neural network parameters, a i represents the optimal action;
[0046] Step 5.3: Update the policy neural network parameters:
[0047]
[0048] Back propagation updates the Actor target policy neural network θ μ′ and Critic target valuation neural network θ Q′ ;
[0049] in, represents the policy gradient function, N is the number of small batch samples taken from the experience replay library R, and J(θ) represents the parameter θ μ Applying the chain rule, θ Q represents the estimated network parameters, θ μ represents the policy network parameters, μ represents the policy neural network, and Q represents the valuation network parameters;
[0050] Step 5.4: Wait for the state value Q to converge and complete the training process to obtain the candidate recommended item action space.
[0051] Step 6: Input the candidate recommended item action space obtained in step 5 into the total diversity effect TDE (Total Diversity Effect) module, sort it and output the diversity recommendation results. The process is as follows:
[0052] According to the generated action space of recommended items, standard sorting is first performed according to the similarity from large to small, and the top K+M recommendation lists are generated from high to low according to the predicted scores. Then, the overall diversity effect of the top K+M recommendation lists is calculated and sorted to obtain the top K recommendation results;
[0053] Where K is the number of target recommendation items, and M is the number of candidate recommendation items;
[0054] Project C i The overall diversity effect of project C is defined as i The sum of the distances between it and all other possible items in the item list, using the following formula:
[0055]
[0056] Among them, the dist function is a distance function used to measure the dissimilarity function between items, L u is the cardinality of the recommendation list of user u, and c represents the item.
[0057] The beneficial effects of adopting the above technical solution are:
[0058] 1. The method provided by the present invention is based on deep reinforcement learning technology, combined with the deep deterministic policy gradient model (DDPG) to model the user's preference as a dynamically changing process, and take into account the long-term rewards that the recommended items can bring. The model includes an actor policy neural network, a critic valuation neural network, an actor target policy neural network, and a critic target valuation neural network. The actor policy neural network learns the policy function, which generates the optimal recommended action according to the user's state; the critic valuation neural network learns the value function, which measures the current value according to the current action and state; the actor target policy neural network and the critic target valuation neural network calculate the recommended action and the corresponding value corresponding to the next state based on experience. The loss function is calculated by the actor policy neural network and the actor target policy neural network, the critic valuation neural network, and the critic target valuation neural network, respectively, and the recommendation strategy is dynamically updated according to the action recommended to the user and the state of the user's feedback, and the long-term benefit of the recommendation is used as the objective function to ensure that the long-term benefit of the recommendation is maximized.
[0059] 2. The method provided by the present invention combines the self-attention mechanism, takes into account the relationship between items in the user behavior data, without considering the distance between items, and can capture the user's recent preferences. According to the user's behavior data and the query, key, and value weight matrix in the self-attention mechanism, weighted calculations are performed, normalized, and average embedding is taken to obtain the user's recent state representation, and the user's short-term preferences are captured through the relationship between items.
[0060] 3. The method provided by the present invention takes into account both the accuracy and diversity of the recommendation system. After generating the recommended item space according to the deep reinforcement learning model, the sorted list is first amplified by the standard sorting method, and then the list is input into the overall diversity effect sorting to obtain the top K recommendation results. In this way, the diversity of the recommendation system is further improved while ensuring the accuracy of the recommendation system. BRIEF DESCRIPTION OF THE DRAWINGS
[0061] Figure 1 This is a flowchart of an information diversity recommendation method based on deep reinforcement learning in an embodiment of the present invention;
[0062] Figure 2 This is a diagram of a recommended scenario architecture in an embodiment of the present invention;
[0063] Figure 3This is a block diagram of a self-attention module in an embodiment of the present invention;
[0064] Figure 4 This is a block diagram of the overall diversity effect TDE module in an embodiment of the present invention;
[0065] Figure 5 This is a diagram of the training process of the information diversity recommendation method based on deep reinforcement learning in an embodiment of the present invention. DETAILED DESCRIPTION
[0066] The specific implementation of the present invention is further described in detail below in conjunction with the accompanying drawings and examples. The following examples are used to illustrate the present invention, but are not intended to limit the scope of the present invention.
[0067] like Figure 1 As shown, the information diversity recommendation method based on deep reinforcement learning in this embodiment is described as follows.
[0068] Step 1: Randomly initialize the parameters of the Actor policy neural network and the parameters Q(s,a|θ) of the Critic estimation neural network μ ); Initialize the parameters of the Actor target strategy neural network and the parameters Q′(s,a|θ of the Critic target estimation neural network μ ); Initialize the experience playback library R; Initialize the state representation S 0 ; Input the user's historical behavior data into the self-attention mechanism module;
[0069] Among them, s is the state and a is the action; f is the mapping function from state to action, which means the state s at time t t Mapping to action a at time t t , f′ is the mapping function from the target state to the action; π represents the strategy, μ represents the valuation, and θ π represents the policy parameter, θ μ represents the valuation parameter; Q function represents the state-action value function, and Q′ function represents the target state-action value function;
[0070] In this embodiment, the specific recommendation scenario architecture diagram of the information diversity recommendation method based on deep reinforcement learning is as follows: Figure 2 As shown;
[0071] Step 2: The self-attention mechanism module processes the user's historical behavior data and generates a state representation s for the user 0 ;
[0072] The block diagram of the self-attention mechanism module is as follows Figure 3As shown in the figure, a single sequence is represented by matching it with its own sequence through a self-attention mechanism. Its hidden state vector consists of query, key, and value, and its output is the weighted sum of value, where the weight is determined by query and key.
[0073] The specific process of step 2 is as follows:
[0074] Step 2.1: Initialize the hidden state vector query, key and value of the self-attention mechanism;
[0075] Step 2.2: Input the user's short-term interaction record, including users, items, and interaction behaviors, where each item is represented by a d-dimensional embedding vector: Let X∈R H×d Represents the embedding representation of the entire project set, H is the number of projects in the entire project set, and the most recent L records are stacked together in sequence to obtain the following matrix
[0076]
[0077] Among them, H represents the number of items in the item set, and the query, key, and value of user u at time step t are all equal to
[0078] Step 2.3: Map the query and key to the same space through a nonlinear transformation with shared parameters. The formula is as follows:
[0079]
[0080]
[0081] Among them, W Q ∈R d×d , W K ∈R d×d is the weight matrix of query and key, Q′ and K′ are the weight matrices of query and key mapped to the same space;
[0082] Step 2.4: ReLU is used as an activation function to introduce nonlinearity into the learned attention mechanism. The association matrix represents the similarity between L items. The normalized calculation formula is as follows:
[0083]
[0084] in, is the normalized correlation matrix, d is the scaling factor used to reduce the gradient effect;
[0085] In this embodiment, the output is an L×L similarity matrix, and Used to scale the dot product attention mechanism. It will be set to a larger value to reduce the gradient effect and avoid falling into the saturation area of softmax.
[0086] Step 2.5: Set value to The weighted output of the self-attention module is obtained by multiplying the value matrix and the normalized association matrix. The formula is as follows:
[0087]
[0088] Among them, the weighted output It is considered as a short-term preference representation of users;
[0089] Step 2.6: To learn a single attention representation, the average embedding of the L self-attention mechanism representations is used as the user's recent state representation, as follows:
[0090]
[0091] in, is the short-term preference representation of the user in the first item, Indicates the user's recent status.
[0092] Step 3: Input all the state representations generated in step 2 into the Actor strategy neural network, and the Actor strategy neural network selects the optimal strategy a according to the current strategy t , and screen the candidate set according to the strategy function to select the recommended action vector. The specific process is as follows:
[0093] The generated user state representation is input into the Actor strategy neural network, passes through two ReLU activation function layers and one Tanh activation function layer, and is converted into actions according to the strategy function. The candidate set is screened and the recommended action vector is selected.
[0094] Step 4: Input all the state representations generated in step 2 into the Critic valuation neural network. At the same time, the recommended action vector generated by the Actor strategy neural network is also used as the input of the Critic valuation neural network. The Critic valuation neural network is used to score the recommended behavior, calculate the state value Q, and generate a reward r. t , the specific process is as follows:
[0095] The state representation generated in step 2 is transformed nonlinearly through a ReLU activation function layer. The transformed state vector and the recommended action vector generated in step 3 are simultaneously input into the Critic valuation neural network. The current state value Q is calculated through two ReLU activation function layers, and the reward r is generated. t.
[0096] Step 5: Update the recommendation strategy by gradient descent back propagation. The process is as follows: Figure 5 As shown, the training process is completed after the state value Q converges, and the action space of candidate recommended items is obtained. The specific process is as follows:
[0097] Step 5.1: Set the user's state s at time t t and the state s at time t+1 t+1 And the action vectors a generated in steps 3 and 4 respectively t and the corresponding reward r t In four-tuple (s t ,a t ,r t ,s t+1 ) in the form of experience playback library R;
[0098] Step 5.2: Take sample experience from the experience playback library R and set the time difference target value to:
[0099] y i =r i +γQ′(s i+1 ,μ′(s i+1 |θ μ′ )|θ Q′ )
[0100] Among them, y i represents the time difference target value, γ represents the discount rate, and θ μ′ represents the Actor target network parameters, θ Q′ represents the critic target network parameters, Q′ represents the target valuation neural network, s i+1 Indicates the state at time i+1;
[0101] Combine the Actor strategy neural network and the Critic valuation neural network to calculate the loss function
[0102]
[0103] Among them, Q represents the estimated neural network parameters, a i represents the optimal action;
[0104] Step 5.3: Update the policy neural network parameters:
[0105]
[0106] Back propagation updates the Actor target policy neural network θ μ′ and Critic target valuation neural network θ Q′ ;
[0107] in, represents the policy gradient function, N is the number of small batch samples taken from the experience replay library R, and J(θ) represents the parameter θ μ Applying the chain rule, θ Q represents the estimated network parameters, θ μ represents the policy network parameters, μ represents the policy neural network, and Q represents the valuation network parameters;
[0108] Step 5.4: Wait for the state value Q to converge and complete the training process to obtain the candidate recommended item action space.
[0109] Step 6: Input the candidate recommended item action space obtained in step 5 into the overall diversity effect TDE module, such as Figure 4 As shown, after sorting, the diversity recommendation results are output. The process is as follows:
[0110] According to the generated action space of recommended items, standard sorting is first performed according to the similarity from large to small, and the top K+M recommendation lists are generated from high to low according to the predicted scores. Then, the overall diversity effect of the top K+M recommendation lists is calculated and sorted to obtain the top K recommendation results;
[0111] Where K is the number of target recommendation items, and M is the number of candidate recommendation items;
[0112] Project C i The overall diversity effect of project C is defined as i The sum of the distances between it and all other possible items in the item list, using the following formula:
[0113]
[0114] Among them, the dist function is a distance function used to measure the dissimilarity function between items, L u is the cardinality of the recommendation list of user u, and c represents the item.
[0115] For example, for an active user, there are five recommended items in a recommendation list, namely c 1 ,c 2 ,c 3 ,c 4 ,c 5 , c 1 The overall diversity effect is calculated as follows:
[0116] TDE(c 1 ) = dist(c 1 ,c 2 )+dist(c 1 ,c 3 )+dist(c1 ,c 4 )+dist(c 1 ,c 5 )
[0117] The distance function can be calculated using the Euclidean distance. The overall diversity effect method can ensure that the total diversity in the top K recommendation list is the largest, but the accuracy may be lost, while the standard sorting method can ensure the accuracy of the recommendation, so the present invention uses a hybrid recommendation ranking method to ensure both the accuracy of the recommendation and the diversity of the recommendation. Specifically, the present invention inputs the recommended action space into the standard sorting module to generate the top K+M recommendation list, where M is a buffer, and then inputs the top K+M recommendation list into the overall diversity module to generate the top K recommendations.
Claims
1. An information diversity recommendation method based on deep reinforcement learning, It is characterized in that The steps include: Step 1: Randomly initialize the parameters of the Actor policy neural network and the parameters Q(s, a|θ) of the Critic estimation neural network μ ); Initialize the parameters of the Actor target strategy neural network and the parameters Q′(s, a|θ of the Critic target estimation neural network μ ); Initialize the experience playback library R; Initialize the state representation S 0 ; Input the user's historical behavior data into the self-attention mechanism module; Among them, s is the state and a is the action; f is the mapping function from state to action, which means the state s at time t t Mapping to action a at time t t , f′ is the mapping function from the target state to the action; π represents the strategy, μ represents the valuation, and θ π represents the policy parameter, θ μ represents the valuation parameter; Q function represents the state-action value function, and Q′ function represents the target state-action value function; Step 2: The self-attention mechanism module processes the user's historical behavior data and generates a state representation s for the user 0 ; Step 3: Input all the state representations generated in step 2 into the Actor strategy neural network, and the Actor strategy neural network selects the optimal strategy a according to the current strategy t , and screen the candidate set according to the strategy function to select the recommended action vector; Step 4: Input all the state representations generated in step 2 into the Critic valuation neural network. At the same time, the recommended action vector generated by the Actor strategy neural network is also used as the input of the Critic valuation neural network. The Critic valuation neural network is used to score the recommended behavior, calculate the state value Q, and generate a reward r. t ; Step 5: Update the recommendation strategy by gradient descent back propagation, and complete the training process after the state value Q converges to obtain the candidate recommendation item action space; Step 6: Input the candidate recommendation item action space obtained in step 5 into the overall diversity effect TDE module, and output the diversity recommendation results after sorting.
2. The information diversity recommendation method based on deep reinforcement learning according to claim 1, It is characterized in that The self-attention mechanism module represents a single sequence by matching it with its own sequence through the self-attention mechanism, and its hidden state vector consists of query, key, and value, and its output is the weighted sum of value, where the weight is determined by query and key.
3. The information diversity recommendation method based on deep reinforcement learning according to claim 2, It is characterized in that The specific process of step 2 is as follows: Step 2.1: Initialize the hidden state vector query, key and value of the self-attention mechanism; Step 2.2: Input the user's short-term interaction record, including users, items, and interaction behaviors, where each item is represented by a d-dimensional embedding vector: Let X∈R H×d Represents the embedding representation of the entire project set, H is the number of projects in the entire project set, and the most recent L records are stacked together in sequence to obtain the following matrix Among them, H represents the number of items in the item set, and the query, key, and value of user u at time step t are all equal to Step 2.3: Map the query and key to the same space through a nonlinear transformation with shared parameters. The formula is as follows: Among them, W Q ∈R d×d , W K ∈R d×d is the weight matrix of query and key, Q′ and K′ are the weight matrices of query and key mapped to the same space; Step 2.4: ReLU is used as an activation function to introduce nonlinearity into the learned attention mechanism. The association matrix represents the similarity between L items. The normalized calculation formula is as follows: in, is the normalized correlation matrix, d is the scaling factor used to reduce the gradient effect; Step 2.5: Set value to The weighted output of the self-attention module is obtained by multiplying the value matrix and the normalized association matrix. The formula is as follows: Among them, the weighted output It is considered as a short-term preference representation of users; Step 2.6: To learn a single attention representation, the average embedding of the L self-attention mechanism representations is used as the user's recent state representation, as follows: in, is the short-term preference representation of the user in the first item, Indicates the user's recent status.
4. The information diversity recommendation method based on deep reinforcement learning according to claim 1, It is characterized in that The specific process of step 3 is as follows: The generated user state representation is input into the Actor strategy neural network, passes through two ReLU activation function layers and one Tanh activation function layer, and is converted into actions according to the strategy function. The candidate set is screened and the recommended action vector is selected.
5. The information diversity recommendation method based on deep reinforcement learning according to claim 1, It is characterized in that The specific process of step 4 is as follows: The state representation generated in step 2 is transformed nonlinearly through a ReLU activation function layer. The transformed state vector and the recommended action vector generated in step 3 are simultaneously input into the Critic valuation neural network. The current state value Q is calculated through two ReLU activation function layers, and the reward r is generated. t .
6. The information diversity recommendation method based on deep reinforcement learning according to claim 1, It is characterized in that The specific process of step 5 is as follows: Step 5.1: Set the user's state s at time t t and the state s at time t+1 t+1 And the action vectors a generated in steps 3 and 4 respectively t and the corresponding reward r t In four-tuple (s t , a t , r t ,s t+1 ) in the form of experience playback library R; Step 5.2: Take sample experience from the experience playback library R and set the time difference target value to: y i =r i +γQ′(s i+1 ,μ′(s i+1 |θ μ′ )|θ Q′ ) Among them, y i represents the time difference target value, γ represents the discount rate, and θ μ′ represents the Actor target network parameters, θ Q′ represents the critic target network parameters, Q′ represents the target valuation neural network, s i+1 Indicates the state at time i+1; Combine the Actor strategy neural network and the Critic valuation neural network to calculate the loss function Among them, Q represents the estimated neural network parameters, a i represents the optimal action; Step 5.3: Update the policy neural network parameters: Back propagation updates the Actor target policy neural network θ μ′ and Critic target valuation neural network θ Q′ ; in, represents the policy gradient function, N is the number of small batch samples taken from the experience replay library R, and J(θ) represents the parameter θ μ Applying the chain rule, θ Q represents the estimated network parameters, θ μ represents the policy network parameters, μ represents the policy neural network, and Q represents the valuation network parameters; Step 5.4: Wait for the state value Q to converge and complete the training process to obtain the candidate recommended item action space.
7. The information diversity recommendation method based on deep reinforcement learning according to claim 1, It is characterized in that The specific process of step 6 is as follows: According to the generated action space of recommended items, standard sorting is first performed according to the similarity from large to small, and the top K+M recommendation lists are generated from high to low according to the predicted scores. Then, the overall diversity effect of the top K+M recommendation lists is calculated and sorted to obtain the top K recommendation results; Where K is the number of target recommendation items, and M is the number of candidate recommendation items; Project C i The overall diversity effect of project C is defined as i The sum of the distances between it and all other possible items in the item list, using the following formula: Among them, the dist function is a distance function used to measure the dissimilarity function between items, L u is the cardinality of the recommendation list of user u, and c represents the item.
Citation Information
Patent Citations
Text information-based deep reinforcement learning interactive recommendation method and system
CN111104595A
Deep reinforcement learning-based recommendation method and system with negative feedback
CN111523940A
