A Model-Based Reinforcement Learning with Adversarial Training for Online Recommendation

Xueying Bai, Jian Guan, Hongning Wang

TL;DR

IRecGAN is a model-based reinforcement learning framework that uses adversarial training to build better recommender systems from offline data. By using a discriminator to "score" how realistic simulated user-system interactions are, the authors significantly reduce the bias inherent in traditional simulators. This leads to more robust and effective recommendation policies without the need for expensive, real-world trial and error.

The Catch-22 of RL in Recommendation

Reinforcement Learning (RL) is a natural fit for recommendation systems because it treats the system as an agent trying to maximize long-term user satisfaction. However, standard model-free RL is data-hungry and requires millions of real-time interactions. In the real world, showing a user bad recommendations just to "explore" the state space leads to churn and lost revenue.

To avoid this, researchers often use offline RL, learning from logged historical data. But this introduces its own challenges:

  1. Importance Sampling (a common offline technique) suffers from massive variance when the number of possible items (the action space) is large.
  2. Model-based RL (building a simulator of the user) is more efficient, but if the simulator is even slightly inaccurate, the RL agent will learn to exploit the simulator's flaws rather than the user's actual preferences. This is known as model bias.

The authors aim to bridge this gap by creating a model-based RL system that can learn effectively from offline logs while self-correcting its own simulation biases.

Methods: The IRecGAN Framework

The authors introduce IRecGAN (Interactive Recommender GAN). The system consists of three main components interacting in a minimax game:

  1. The User Behavior Model ($\mathcal{U}$): An RNN-based "environment" that predicts how a user will react (e.g., click or purchase) to a list of recommendations.
  2. The Agent ($\mathcal{A}$): The recommender policy that decides which items to show based on the user's history.
  3. The Discriminator ($\mathcal{D}$): A classifier trained to distinguish between real interaction sequences from the logs and synthetic sequences generated by the interaction between $\mathcal{A}$ and $\mathcal{U}$.
Architecture of the IRecGAN framework

The Secret Sauce: Adversarial Reward Rescaling

Standard model-based RL trusts the simulator's rewards blindly. IRecGAN, however, uses the Discriminator's score to scale the rewards. If the Discriminator thinks a generated sequence looks "fake" (unlike the historical data), the reward for that sequence is down-weighted. This forces the User Model to be more realistic and prevents the Agent from over-optimizing for "fake" high-reward scenarios.

To handle the discrete nature of recommendation sequences, the framework utilizes Monte Carlo Tree Search (MCTS) to provide a reward signal at each step of the sequence generation, similar to the SeqGAN architecture.

Key Insights and Ideas

  • Coupled Training: The Agent and User Model are not trained in isolation. Because the Discriminator evaluates the interaction between them, the Agent is incentivized to provide recommendations that make the User Model behave "authentically."
  • Bias as a Signal: Instead of trying to eliminate model bias through pure architecture, they treat the bias as something the Discriminator can detect. By mathematically proving the relationship between the optimal discriminator and the data distribution, they show that this adversarial setup naturally minimizes value estimation error.
  • Sample Efficiency: Because the model can "hallucinate" realistic interactions, it can learn from much smaller amounts of logged data than model-free approaches.

Experimental Results

The authors evaluated IRecGAN using both a simulated Markov Decision Process (MDP) environment and a real-world dataset (CIKM Cup 2016) containing over 65,000 training sessions for offline reranking.

  • Superior Accuracy: On the CIKM dataset, IRecGAN achieved a Precision@10 of 35.06%, outperforming standard Policy Gradient (33.28%) and Actor-Critic methods (31.93%).
  • Robustness to Bias: In simulations, when the offline data was collected by a noisy "random" policy, IRecGAN maintained much higher performance than baselines, proving its ability to "denoise" the environment.
  • Online Learning Stability: When tested in an "online" loop (alternating between interacting with the simulator and updating from logs), IRecGAN showed faster and more stable convergence compared to methods that don't reuse generated data.
Coverage@10 performance over training iterations

Limitations and Future Work

While IRecGAN presents a strong step forward for offline RL in recommendation, the authors note a few limitations:

  • The Exploration-Exploitation Trap: As the model identifies high-reward items, it tends to recommend them more often, which can lead to a lack of exploration for new or niche items.
  • Complexity of User Behavior: The current model focuses primarily on clicks and purchases. Real-world behavior includes dwell time, scrolling, and "negative" signals (like hiding an ad), which would require a more complex User Model.
  • Computational Overhead: Training a GAN alongside an RL agent is computationally more expensive than simple supervised learning. The trade-off is between training time and the cost of real-world data collection.

Summary updated

BibTeX
@inproceedings{bai2019model,
  author = {Xueying Bai and Jian Guan and Hongning Wang},
  title = {{A Model-Based Reinforcement Learning with Adversarial Training for Online Recommendation}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2019},
}
Figure