Reinforcement learning is effective in optimizing policies for recommendersystems. Current solutions mostly focus on model-free approaches, which requirefrequent interactions with a real environment, and thus are expensive in modellearning. Offline evaluation methods, such as importance sampling, canalleviate such limitations, but usually request a large amount of logged dataand do not work well when the action space is large. In this work, we propose amodel-based reinforcement learning solution which models the user-agentinteraction for offline policy learning via a generative adversarial network.To reduce bias in the learnt policy, we use the discriminator to evaluate thequality of generated sequences and rescale the generated rewards. Ourtheoretical analysis and empirical evaluations demonstrate the effectiveness ofour solution in identifying patterns from given offline data and learningpolicies based on the offline and generated data.
Quick Read (beta)
A Model-Based Reinforcement Learning with Adversarial Training for Online Recommendation
Reinforcement learning is effective in optimizing policies for recommender systems. Current solutions mostly focus on model-free approaches, which require frequent interactions with a real environment, and thus are expensive in model learning. Offline evaluation methods, such as importance sampling, can alleviate such limitations, but usually request a large amount of logged data and do not work well when the action space is large. In this work, we propose a model-based reinforcement learning solution which models the user-agent interaction for offline policy learning via a generative adversarial network. To reduce bias in the learnt policy, we use the discriminator to evaluate the quality of generated sequences and rescale the generated rewards. Our theoretical analysis and empirical evaluations demonstrate the effectiveness of our solution in identifying patterns from given offline data and learning policies based on the offline and generated data.
A Model-Based Reinforcement Learning with Adversarial Training for Online Recommendation
Xueying Bai, Jian Guan††thanks: Both authors contributed equally. , Hongning Wang Department of Computer Science, Stony Brook University Department of Computer Science and Technology, Tsinghua University Department of Computer Science, University of Virginia [email protected], [email protected] [email protected]
noticebox[b]33rd Conference on Neural Information Processing Systems (NeurIPS 2019), Vancouver, Canada.\[email protected]
Recommender systems are widely used to recommend items that users would be interested in among the huge amount of content on the internet. However, because of users’ different interests and behaviors, only a small fraction of items are viewed by each user with even less feedback recorded. This gives relatively little information on user-recommender interactions for such a large state and action space chen2019top, and thus brings challenges to serve users with their favored items at the appropriate time based on historical interactions. Therefore, it is important to develop approaches to learn users’ preferences from the sparse user feedback such as clicks and purchases he2016fast, and explore unobserved interactions koren2009matrix to further improve recommenders.
Users’ interests can be short-term or long-term and reflected by different types of feedback wu2017returning. For example, clicks are generally considered as short-term feedback which reflects users’ immediate interests during the interaction, while purchase reveals users’ long-term interests which usually happen after several clicks. Considering both users’ short-term and long-term interests, we frame the recommender system as a reinforcement learning (RL) agent, which aims to maximize users’ overall long-term satisfaction without sacrificing the recommendations’ short-term utility shani2005mdp.
Classical model-free RL methods require collecting large quantities of data by interacting with the environment, e.g., a population of users. Therefore, without interacting with real users, a recommender cannot easily probe for reward in previously unexplored regions in the state and action space. However, it is prohibitively expensive for a recommender to interact with users for reward and model updates, because bad recommendations (e.g., for exploration) hurt user satisfaction and increase the risk of user drop out. In this case, it is preferred for a recommender to learn a policy by fully utilizing the logged data that is acquired from other policies instead of direct interactions with users. For this purpose, in this work we take a model-based learning approach, in which we simultaneously estimate a model of user behavior from the offline data and use it to interact with our learning agent to obtain an improved policy.
Model-based RL has a strong advantage of being sample efficient and helping reduce noise in offline data. However, such an advantage can easily diminish due to the inherent bias in its model approximation of the real environment. Moreover, dramatic changes in subsequent policy updates impose the risk of decreased user satisfaction, i.e., inconsistent recommendations across model updates. To address these issues, we introduce adversarial training into a recommender’s policy learning from offline data. The discriminator is trained to differentiate simulated interaction trajectories from real ones so as to debias the user behavior model and improve policy learning. To the best of our knowledge, this is the first work to explore adversarial training over a model-based RL framework for recommendation. We theoretically and empirically demonstrate the value of our proposed solution in policy evaluation. Together, the main contributions of our work are as follows:
To avoid the high interaction cost, we propose a unified solution to more effectively utilize the logged offline data with model-based RL algorithms, integrated via adversarial training. It enables robust recommendation policy learning.
The proposed model is verified through theoretical analysis and extensive empirical evaluations. Experiment results demonstrate our solution’s better sample efficiency over the state-of-the-art baselines 11 1 Our implementation is available at https://github.com/JianGuanTHU/IRecGAN.
2 Related Work
Deep RL for recommendation There have been studies utilizing deep RL solutions in news, music and video recommendations lu2016partially; liebman2015dj; zheng2018drn. However, most of the existing solutions are model-free methods and thus do not explicitly model the agent-user interactions. In these methods, value-based approaches, such as deep Q-learning mnih2015human, present unique advantages such as seamless off-policy learning, but are prone to instability with function approximation sutton2000policy; mnih2013playing. And the policy’s convergence in these algorithms is not well-studied. In contrast, policy-based methods such as policy gradient learning1998introduction remain stable but suffer from data bias without real-time interactive control due to learning and infrastructure constraints. Oftentimes, importance sampling munos2016safe is adopted to address the bias but instead results in huge variance chen2019top. In this work, we rely on a policy gradient based RL approach, in particular, REINFORCE williams1992simple; but we simultaneously estimate a user behavior model to provide a reliable environment estimate so as to update our agent on policy.
Model-based RL Model-based RL algorithms incorporate a model of the environment to predict rewards for unseen state-action pairs. It is known in general to outperform model-free solutions in terms of sample complexity deisenroth2013survey, and has been applied successfully to control robotic systems both in simulation and real world deisenroth2011pilco; meger2015learning; morimoto2003minimax; deisenroth2011learning. Furthermore, Dyna-Q sutton1990integrated; peng2018deep integrates model-free and model-based RL to generate samples for learning in addition to the real interaction data. gu2016continuous extended these ideas to neural network models, and peng2018deep further apply the method on task-completion dialogue policy learning. However, the most efficient model-based algorithms have used relatively simple function approximations, which actually have difficulties in high-dimensional space with nonlinear dynamics and thus lead to huge approximation bias.
Offline evaluation The problems of off-policy learning munos2016safe; precup2000eligibility; precup2001off and offline policy evaluation are generally pervasive and challenging in RL, and in recommender systems in particular. As a policy evolves, so does the distribution under which the expectation of gradient is computed. Especially in the scenario of recommender systems, where item catalogues and user behavior change rapidly, substantial policy changes are required; and therefore it is not feasible to take the classic approaches schulman2015trust; achiam2017constrained to constrain the policy updates before new data is collected under an updated policy. Multiple off-policy estimators leveraging inverse-propensity scores, capped inverse-propensity scores and various variance control measures have been developed thomas2016data; swaminathan2015self; swaminathan2015batch; gilotte2018offline for this purpose.
RL with adversarial training yu2017seqgan propose SeqGAN to extend GANs with an RL-like generator for the sequence generation problem, where the reward signal is provided by the discriminator at the end of each episode via a Monte Carlo sampling approach. The generator takes sequential actions and learns the policy using estimated cumulative rewards. In our solution, the generator consists of two components, i.e., our recommendation agent and the user behavior model, and we model the interactive process via adversarial training and policy gradient. Different from the sequence generation task which only aims to generate sequences similar to the given observations, we leverage adversarial training to help reduce bias in the user model and further reduce the variance in training our agent. The agent learns from both the interactions with the user behavior model and those stored in the logged offline data. To the best of our knowledge, this is the first work that utilizes adversarial training for improving both model approximation and policy learning on offline data.
3 Problem Statement
The problem is to learn a recommender that recommends items to maximize cumulative rewards of an online recommendation system by efficiently utilizing offline data. We address this problem with a model-based reinforcement learning solution, which also needs to capture users’ behavior patterns.
Problem A recommender is formed as a learning agent to generate actions under a policy, where each action gives a recommendation list with items. Every time through interactions between the agent and the environment (i.e., users of the system), a set of sequences is recorded, where is the -th sequence containing agent actions, user behaviors and rewards: , represents the reward on (e.g., make a purchase), and is the associated user behavior corresponding to agent’s action (e.g., click on a recommended item). For simplicity, in the rest of paper, we drop the superscript to represent a general sequence . Based on the observed sequences, a policy is learnt to maximize the expected cumulative reward , where is the end time of .
Assumption To narrow the scope of our discussion, we study a typical type of user behavior, i.e., clicks, and make following assumptions: 1) at each time a user must click on one item from the recommendation list; 2) items not clicked in the recommendation list will not influence the user’s future behaviors; 3) rewards only relate to clicked items. For example, when taking the user’s purchase as reward, purchases can only happen on the clicked items.
Learning framework In a Markov Decision Process, an environment consists of a state set , an action set , a state transition distribution , and a reward function , which maps a state-action pair to a real-valued scalar. In this paper, the environment is modeled as a user behavior model , and learnt from offline log data. is reflected by the interaction history before time , and captures the transition of user behaviors. In the meanwhile, based on the assumptions mentioned above, at each time , the environment generates user’s click on items recommended by an agent in based on his/her click probabilities under the current state; and the reward function generates reward for the clicked item .
Our recommendation policy is learnt from both offline data and data sampled from the learnt user behavior model, i.e., a model-based RL solution. We incorporate adversarial training in our model-based policy learning to: 1) improve the user model to ensure the sampled data is close to true data distribution; 2) utilize the discriminator to scale rewards from generated sequences to further reduce bias in value estimation. Our proposed solution contains an interactive model constructed by and , and an adversarial policy learning approach. We name the solution as InteractiveRecGAN, or IRecGAN in short. The overview of our proposed solution is shown in Figure 1.
4 Interactive Modeling for Recommendation
We present our interactive model for recommendation, which consists of two components: 1) the user behavior model that generates user clicks over the recommended items with corresponding rewards; and 2) the agent which generates recommendations according to its policy. and interact with each other to generate user behavior sequences for adversarial policy learning.
User behavior model Given users’ click observations , the user behavior model first projects the clicked item into an embedding vector at each time 22 2 As we can use different embeddings on the user side and agent side, we use the superscript and to denote this difference accordingly.. The state can be represented as a summary of click history, i.e., . We use a recurrent neural network to model the state transition on the user side, thus for the state we have,
can be functions in the RNN family like GRU chung2014empirical and LSTM hochreiter1997long cells. Given the action , i.e., the top- recommendations at time , we compute the probability of click among the recommended items via a softmax function,
where is a transformed vector indicating the evaluated quality of each recommended item under state , is the embedding matrix of recommended items, is the click weight matrix, and is the corresponding bias term. Under the assumption that target rewards only relate to clicked items, the reward for (, ) is calculated by:
where is the reward weight matrix, is the corresponding bias term, and is the reward mapping function and can be set according to the reward definition in specific recommender systems. For example, if we make to be the purchase of a clicked item , where if it is purchased and otherwise, can be realized by a Sigmoid function with binary output.
where is a parameter balancing the loss between click prediction and reward prediction, and is the length of the observation sequence . With a learnt user behavior model, user clicks and reward on the recommendation list can be sampled from Eq (1) and (2) accordingly.
Agent The agent should take actions based on the environment’s provided states. However, in practice, users’ states are not observable in a recommender system. Besides, as discussed in oh2017value, the states for the agent to take actions may be different from those for users to generate clicks and rewards. As a result, we build a different state model on the agent side in to learn its states. Similar to that on the user side, given the projected click vectors , we model states on the agent side by , where denotes the state maintained by the agent at time , is the chosen RNN cell. The start state for the first recommendation is drawn from a distribution . We simply denote it as in the rest of our paper. We should note that although the agent also models states based on users’ click history, it might create different state sequences than that on the user side.
Based on the current state , the agent generates a size- recommendation list out of the entire set of items as its action . The probability of item to be included in under the policy is:
where is the -th row of the action weight matrix , is the entire set of recommendation candidates, and is the corresponding bias term. Following chen2019top, we generate by sampling without replacement according to Eq (4). Unlike pmlr-v97-chen19f, we do not consider the combinatorial effect among the items by simply assuming the users will evaluate them independently (as indicated in Eq (1)).
5 Adversarial Policy Learning
We use the policy gradient method REINFORCE williams1992simple for the agent’s policy learning, based on both generated and offline data. When generating for , we obtain by Eq (4), by Eq (2), and by Eq (1). represents clicks in the sequence and is generated by and . The generation of a sequence ends at the time if , where is a stopping symbol. The distributions of generated and offline data are denoted as and respectively. In the following discussions, we do not explicitly differentiate and when the distribution of them is specified. Since we start the training of from offline data, it introduces inherent bias from the observations and our specific modeling choices. The bias affects the sequence generation and thus may cause biased value estimation. To reduce the effect of bias, we apply adversarial training to control the training of both and . The discriminator scores are also used to rescale the generated rewards for policy learning. Therefore, the learning of agent considers both sequence generation and target rewards.
5.1 Adversarial training
We leverage adversarial training to encourage our IRecGAN model to generate high-quality sequences that capture intrinsic patterns in the real data distribution. A discriminator is used to evaluate a given sequence , where represents the probability that is generated from the real recommendation environment. The discriminator can be estimated by minimizing the objective function:
However, only evaluates a completed sequence, while it cannot directly evaluate a partially generated sequence at a particular time step . Inspired by yu2017seqgan, we utilize the Monte-Carlo tree search algorithm with the roll-out policy constructed by and to get sequence generation score at each time. At time , the sequence generation score of is defined as:
where is the set of sequences sampled from the interaction between and .
Given the observations in offline data, should generate clicks and rewards that reflect intrinsic patterns of the real data distribution. Therefore, should maximize the sequence generation objective , which is the expected discriminator score for generating a sequence from the start state. may not generate clicks and rewards exactly the same as those in offline data, but the closeness of its generated data to offline data is still an informative signal to evaluate its sequence generation quality. By setting at any time for offline data, we extend this objective to include offline data (it becomes the data likelihood function on offline data). Following yu2017seqgan, based on Eq (1) and Eq (2), the gradient of ’s objective can be derived as,
where denotes the parameters of and denotes those of . Based on our assumption, even when can already capture users’ true behavior patterns, it still depends on to provide appropriate recommendations to generate clicks and rewards that the discriminator will treat as authentic. Hence, and are coupled in this adversarial training. To encourage to provide needed recommendations, we include as a sequence generation reward for at time as well. As evaluates the overall generation quality of , it ignores sequence generations after . To evaluate the quality of a whole sequence, we require to maximize the cumulative sequence generation reward . Because does not directly generate the observations in the interaction sequence, we approximate as 0 when calculating the gradients. Putting these together, the gradient derived from sequence generations for is estimated as,
Based on our assumption that only the clicked items influence user behaviors, and only generates rewards on clicked items, we use as an estimation of , i.e., should promote in its recommendation at time . In practice, we add a discount factor when calculating the cumulative rewards to reduce estimation variance chen2019top.
5.2 Policy learning
Because our adversarial training encourages IRecGAN to generate clicks and rewards with similar patterns as offline data, and we assume rewards only relate to the clicked items, we use offline data as well as generated data for policy learning and treat the offline rewards as an estimation of the rewards of . Given data , including both offline and generated data, the objective of the agent is to maximize the expected cumulative reward , where . In the generated data, due to the difference in distributions of the generated and offline sequences, the generated reward calculated by Eq (2) might be biased. To reduce such bias, we utilize the sequence generation score in Eq (6) to rescale generated rewards: , and treat it as the reward for generated data. The gradient of the objective is thus estimated by:
is an approximation of with as the discount factor. Overall, the user behavior model is updated only by the sequence generation objective defined in Eq (7) on both offline and generated data; but the agent is updated by both sequence generation and target rewards. Hence, the overall reward for at time is , where is the weight for cumulative target rewards. The overall gradient for is thus:
6 Theoretical Analysis
For one iteration of policy learning in IRecGAN, we first train the discriminator with offline data, which follows and was generated by an unknown logging policy, and the data generated by IRecGAN under with the distribution of . When and are learnt, for a given sequence , by proposition 1 in goodfellow2014generative, the optimal discriminator is .
Sequence generation Both and contribute to the sequence generation in IRecGAN. is updated by the gradient in Eq (7) to maximize the sequence generation objective. At time , the expected sequence generation reward for on the generated data is: The expected value on is: Given the optimal , the sequence generation value can be written as:
Maximizing each term in the summation of Eq (11) is an objective for the generator at time in GAN. According to goodfellow2014generative, the optimal solution for all such terms is . It means can maximize the sequence generation value when it helps to generate sequences with the same distribution as . Besides the global optimal, Eq (11) also encourages to reward each , even if is less likely to be generated from . This prevents IRecGAN to recommend items only considering users’ immediate preferences.
Value estimation The agent should also be updated to maximize the expected value of target rewards . To achieve this, we use discriminator to rescale the estimation of on the generated sequences, and we also combine offline data to evaluate for policy :
where is the generated reward by at time and is the true reward. and represent the ratio of generated data and offline data during model training, and we require . Here we simplify as . As a result, there are three sources of biases in this value estimation:
Based on different sources of biases, the expected value estimation in Eq (12) is:
where . and come from the bias of user behavior model . Because the adversarial training helps to improve to capture real data patterns, it decreases and . Because we can adjust the sampling ratio to reduce , can be small. The sequence generation rewards for agent encourage distribution to be close to . Because , the bias can also be reduced. It shows our method has a bias controlling effect.
In our theoretical analysis, we can find that reducing the model bias improves value estimation, and therefore improves policy learning. In this section, we conduct empirical evaluations on both real-world and synthetic datasets to demonstrate that our solution can effectively model the pattern of data for better recommendations, compared with state-of-the-art baselines.
7.1 Simulated Online Test
Subject to the complexity and difficulty of deploying a recommender system with real users for online evaluation, we use simulation-based studies to first investigate the effectiveness of our approach following zhao2019model; pmlr-v97-chen19f.
Simulated Environment We synthesize an MDP to simulate an online recommendation environment. It has states and items for recommendation, with a randomly initialized transition probability matrix . Under each state , an item ’s reward is uniformly sampled from the range of 0 to 1. During the interaction, given a recommendation list including items selected from the whole item set by an agent, the simulator first samples an item proportional to its ground-truth reward under the current state as the click candidate. Denote the sampled item as , a Bernoulli experiment is performed on this item with as the success probability; then the simulator moves to the next state according to the state transition probability . The special state is used to initialize all the sessions, which do not stop until the Bernoulli experiment fails. The immediate reward is 1 if the session continues to the next step; otherwise 0. In our experiment, and are set to 10, 50 and 10 respectively.
Offline Data Generation We generate offline user logs denoted by with the simulator. We especially control the bias and variance in by changing the logging policy and the size of to compare the performance of different models. We adopt three different logging policies: 1) uniformly random policy , 2) maximum reward policy , and 3) mixed reward policy . Specifically, recommends the top items with the highest ground-truth reward under the current simulator state at each step, while randomly selects items with either the top 20%-50% ground-truth reward or the highest ground-truth reward under a given state. In the meanwhile, we vary the size of from 200 to 10,000.
Baselines We compared our IRecGAN with the following baselines: 1). LSTM: only the user behavior model trained on offline data; 2). PG: only the agent model trained by policy gradient on offline data; 3). LSTMD: the user behavior model in IRecGAN, updated by adversarial training.
Experiment Settings The hyper-parameters in all models are set as follows: the item embedding dimension is set to 50, the discount factor in value calculation is set to 0.9, the scale factors and are set to 3 and 1. We apply 2-layer LSTM units with 512-dimension hidden states. The ratio of generated training samples and offline data for each training epoch is set to 1:10. We use an RNN based discriminator in all experiments with details provided in the appendix.
Online Evaluation After we finish model and baselines training on , we deploy the learnt policy to interact with the simulator for online evaluation. We calculated [email protected] to measure the average proportion of the top relevant items in ground-truth that are actually recommended by an agent (i.e., in its top recommendations) across all the time steps. The results of [email protected] under different configurations of offline data generation are reported in Figure 2. LSTM outperforms policy gradient under , because under this logging policy every item has an equal chance to be observed (i.e., full exploration), LSTM better recognizes each item’s true reward via maximum likelihood estimation. A similar comparison is observed between our user model and agent model: LSTMD can capture the true reward even with much fewer data. Under and , it is easy for all models to recognize items with the highest reward. But the low [email protected] suggests that they fail to capture the overall preference as the items with lower reward are less likely to be clicked. This becomes more serious under that requires a model to differentiate top relevant items from those with moderate reward. By generating more training data via adversarial training, our model performed better than baselines.
After offline training, the average cumulative rewards for all methods are also evaluated and reported in the rightmost bars of Figure 2. The cumulative rewards are calculated by generating 1000 sequences with the environment and take average of their cumulative rewards. IRecGAN has a larger average cumulative reward than other methods under all configurations except with 200 offline sequences. However, on it has less variance than other methods, which indicates the robustness of IRecGAN when the volume of offline data is limited.
Online Learning To evaluate our model’s effectiveness in reducing the bias of value estimation in a more practical setting, we execute online and offline learning alternately. Specifically, we separate the learning into two stages: first, the agents can directly interact with the simulator to update their policies, and we only allow them to generate 200 sequences in this stage; then they turn to the offline stage to reuse their generated data for offline learning. We iterate these two stages and record their recommendation performance during the online learning stage. We compare with the following baselines: 1) PG-online with only online learning, 2) PG-online&offline with online learning and reusing the generated data via policy gradient for offline learning, and 3) LSTM-offline with only offline learning. We train all the models from scratch and report the performance of [email protected] and [email protected] over 20 iterations in Figure 3. We can observe that LSTM-offline performs worse than all RL methods, especially in the later stage, due to its lack of exploration. PG-online improves slowly with a high variance, as it does not reuse the generated data. Compared with PG-online&offline, IRecGAN has better convergence and coverage because of its reduced value estimation bias. We also find that [email protected] is harder to improve. The key reason is that as the model identifies the items with high rewards, it tends to recommend them more often; this gives those less relevant items less chance to be explored, which is in a similar situation to our online evaluation experiments under and . Our model-based RL training alleviates this bias to a certain extend by generating more training sequences, but it cannot totally alleviate it. This reminds us to focus on explore-exploit trade-off in model-based RL in our future work.
7.2 Real-world Offline Test
We also use a large-scale real-world recommendation dataset from CIKM Cup 2016 to evaluate the effectiveness of our proposed solution for offline reranking. We filtered out sessions of length 1 or longer than 40 and items that have never been clicked. We selected the top 40,000 most popular items to construct our recommendation candidate set. We randomly selected 65,284/1,718/1,820 sessions for training/validation/testing purposes, where the average length of sessions is 2.81/2.80/2.77 respectively. The percentage of recorded recommendations that lead to a purchase is 2.31%/2.46%/2.45%. We followed the same setting as in our simulation-based study in this experiment.
Baselines In addition to the baselines we compared in our simulation based study, we also include the following state-of-the-art solutions for recommendation: 1). PGIS: the agent model estimated with importance sampling on offline data to reduce bias; 2). AC: an LSTM model whose setting is the same as our agent model but trained with actor-critic algorithm lillicrap2015continuous to reduce variance; 3). PGU: the agent model trained using offline and generated data, without adversarial training; 4). ACU: AC model trained with both offline and generated data, without adversarial training.
Evaluation Metrics All the models were applied to rerank the given recommendation list at each step of testing sessions in offline data. We used [email protected] ([email protected] and [email protected]) to compare different models’ recommendation performance, where we define the clicked items as relevant. In addition, because the logged recommendation list was not ordered, we cannot assess the original logging policy’s performance in the offline data.
The results of the offline rerank evaluation are reported in Table 1. With the help of adversarial training, IRecGAN achieved encouraging improvement against all baselines. This verifies the effectiveness of our model-based reinforcement learning, especially its adversarial training strategy for utilizing the offline data with reduced bias. Specially, we compare the results of PG, PGIS, PGU, and IRecGAN. PGIS did not perform as well as PG partially because of the high variance introduced by importance sampling. PGU was able to fit the given data more accurately than PG since there are many items for recommendation and the collected data is limited. However, PGU performed worse than IRecGAN because of the biased user behavior model. And with the help of the discriminator, IRecGAN reduces the bias in the user behavior model to improve value estimation and better policy learning. This is also reflected on its improved user behavior model: LSTMD outperformed LSTM, given both of them are for user behavior modeling.
In this work, we developed a practical solution for utilizing offline data to build a model-based reinforcement learning agent for recommendation, with reduced model bias. We introduce adversarial training for joint user behavior model learning and policy update. Our theoretical analysis shows our solution’s promise in reducing bias; our empirical evaluations in both synthetic and real-world recommendation datasets verify the effectiveness of our solution. Several directions left open in our work, including balancing explore-exploit in policy learning with offline data, incorporating richer structures in user behavior modeling, and exploring the applicability of our solution in other off-policy learning scenarios, such as conversational systems.
1 Details of Discriminator Model
We adopt an RNN-based discriminator for our IRecGAN framework, and model its hidden states by , where denotes the hidden states maintained by the discriminator at time and is the embeddings used in the discriminator side. And we add a multi-layer perceptron which takes as input the hidden states to compute a score through a Sigmoid layer indicating whether the trajectory looks like being generated by real users as follows:
where can be seen as the user’s favorite item of the given , and should be as close to as possible for real user. To ensure the gradient backpropagation, we use Softmax with a temperature 0.1 to approximate the argmax function. Other hyper parameters are set the same with the experiment setting depicted in section 7.1. The optimization target of is formulated as in Eq (5).