Batch-Constrained Distributional Reinforcement Learning for Session-based Recommendation

Diksha Garg, Priyanka Gupta, Pankaj Malhotra, Lovekesh Vig, Gautam ShroffarXiv 2020

TL;DR

BCD4Rec is a novel offline reinforcement learning framework for session-based recommendations that combines batch-constrained action selection with distributional RL. By learning solely from historical logs, it effectively navigates the "cold-start" risks of online deployment while significantly outperforming standard RL and supervised baselines in both recommendation accuracy and diversity.

What Problem Does This Paper Address?

Session-based Recommendation (SR) aims to predict a user's next move based on their current session interactions (like clicks or skips). While Deep Reinforcement Learning (DRL) is promising for optimizing long-term user engagement, most DRL approaches require online interaction—letting an untrained agent experiment on real users. This is expensive and risks driving users away with poor initial recommendations.

The alternative is Batch (Offline) RL, where agents learn from static historical logs. However, this introduces two major hurdles:

  1. Overestimation Bias: Standard Q-learning often assigns erroneously high values to actions not present in the training data, leading the agent to make "delusional" recommendations.
  2. Stochastic User Behavior: Users have varied, latent interests. A single sequence of clicks might lead to different outcomes, making the reward signal inherently noisy.
  3. Large Action Spaces: With thousands of items in a catalog, traditional RL struggles to explore and estimate values efficiently.

Methods

The authors propose BCD4Rec (Batch-Constrained Distributional RL for Session-based Recommendation), which integrates three key components:

  • Batch-Constrained Q-Learning (BCQ): To solve overestimation bias, BCD4Rec uses a state-conditioned generative model ($M$) to identify which actions were likely under the original behavior policy. The RL agent is then restricted to choosing from these "known" actions, preventing it from straying into uncertain territory.
  • Distributional RL (Implicit Quantile Networks - IQN): Instead of estimating just the average expected reward (the standard Q-value), BCD4Rec estimates the full probability distribution of returns. This allows the agent to better model the intrinsic stochasticity of user behavior.
  • State and Action Embeddings: The system uses a Bi-directional Gated Recurrent Unit (BiGRU) to encode session history into a state vector. Crucially, item embeddings are pre-trained using a supervised Graph Neural Network (SRGNN) to provide a high-quality starting point for the RL agent, which is vital for handling large item catalogs.

Datasets

The researchers evaluated BCD4Rec on two distinct environments:

  1. Diginetica (DN): A real-world dataset from the CIKM Cup 2016 containing six months of user transaction logs (clicks, buys, and skips).
  2. RecSim: A simulated environment developed by Google for testing RL in recommendation systems. The authors used it to generate synthetic batch data from various sub-optimal behavior policies to test how well BCD4Rec could improve upon them.

Key Insights and Ideas

  • Distributional RL is Critical: The authors found that estimating the return distribution (via IQN) is particularly effective for SR because it accounts for the "noise" of diverse user preferences. It helps the agent learn more robust value estimates even when the action space is huge.
  • The Constraint Matters: Without the batch constraint (BC), standard off-policy agents like DQN often fail to even match the performance of the simple behavior policy that generated the data.
  • Metric Mismatch: A significant finding is that Recall@K—the standard offline evaluation metric—is a poor predictor of how an agent will actually perform online. Instead, the average predicted Q-value ($\bar{Q}$) on a hold-out set correlates much more strongly with online performance (Buy Rate and Click-Through Rate).
  • Diversity over Popularity: BCD4Rec naturally overcomes "popularity bias." While many models simply recommend the most-clicked items, BCD4Rec learns to recommend a diverse set of relevant items, matching the distribution of an optimal online policy more closely than its competitors.
Category accuracy and popularity bias analysis. BCD4Rec (green) shows superior category prediction and a recommendation distribution closest to the online optimal.

Key Results

  • Performance Gains: On the Diginetica dataset, BCD4Rec achieved a Buy Rate (BR) of 24.1%, a massive improvement over the behavior policy (4.1%) and standard DQN (4.8%).
  • Simulated Success: In RecSim environments, BCD4Rec consistently outperformed all baselines, including strong non-RL methods like SKNN and STAN, and supervised models like GRU and SRGNN.
  • Embedding Impact: Pre-training embeddings led to significant performance jumps, especially in the Diginetica dataset where the action space is larger (~6.7k items).
Impact of pre-training and metric correlation. (a-b) show gains from pre-training. (c-d) demonstrate that average Q-value is a more reliable offline metric than Recall.

Limitations and Future Work

  • Model-Based Exploration: The current work is model-free. The authors suggest that exploring model-based batch RL—where the agent learns a simulator of the user—could further improve sample efficiency.
  • Scaling: While tested on thousands of items, real-world catalogs often have millions. Future work needs to address how these constraints scale.
  • Causal RL: The authors identify the intersection of causal inference and batch RL as a promising frontier to better disentangle user intent from historical bias.

Summary updated

BibTeX
@misc{garg2020batch,
  author = {Diksha Garg and Priyanka Gupta and Pankaj Malhotra and Lovekesh Vig and Gautam Shroff},
  title = {{Batch-Constrained Distributional Reinforcement Learning for Session-based Recommendation}},
  year = {2020},
  eprint = {2012.08984},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2012.08984},
}
Figure