Papers
Topics
Authors
Recent
Search
2000 character limit reached

Batch-Constrained Distributional RL

Updated 21 April 2026
  • The paper integrates a batch constraint via behavior cloning and IQN-based full return distribution estimation to robustly learn policies from fixed, offline datasets.
  • It formalizes session-based recommendation as an MDP with sequential user interactions, mitigating extrapolation error through hard support constraints.
  • Experimental evaluations show that BCD-RL achieves competitive performance in CTR/BR metrics while improving diversity and reducing popularity bias compared to baselines.

Batch-constrained distributional reinforcement learning (BCD-RL) is a class of algorithms designed for learning policies from fixed, offline datasets where no online user interaction is permitted, and where the intrinsically stochastic nature of returns is explicitly modeled. The BCD4Rec framework exemplifies this paradigm in the context of session-based recommendation, combining batch-constrained action selection with full return distribution estimation to address the challenges of large discrete action spaces, biased logs, and user preference heterogeneity (Garg et al., 2020).

1. Formalization in Session-Based Recommendation

The session-based recommendation problem is modeled as a Markov Decision Process (MDP) with the following components:

  • State space S\mathcal{S}: At each time tt, state sts_t is the sequence of the user’s most recent LL positive interactions (e.g., clicked/bought items), each embedded as a dd-dimensional vector. The complete sequence is encoded by a Bi-GRU followed by a linear layer to yield a real-valued state embedding s∈Rd\mathbf{s} \in \mathbb{R}^d.
  • Action space A\mathcal{A}: The agent selects an item at∈I∖{already clicked}a_t \in \mathcal{I} \setminus \{\text{already clicked}\} from the catalog. Each candidate is represented by its embedding a∈Rd\mathbf{a} \in \mathbb{R}^d.
  • Transition dynamics P(s′∣s,a)P(s'|s,a): After an action, the user's response yields a positive (clicked/bought) or negative (skip) outcome. Positive feedback updates tt0 by appending tt1 and removing the oldest entry; otherwise, the state is unchanged or absorbing.
  • Reward tt2: Scalar immediate feedback, e.g., skip tt3, click tt4, buy tt5 in the Diginetica environment.
  • Discount factor tt6.

The objective is to learn a policy tt7 maximizing the expected discounted return: tt8

2. Batch-Constrained Policy Learning

In the batch (offline) RL setting, only a fixed dataset tt9 collected by an unknown policy sts_t0 is available. Standard off-policy Q-learning is susceptible to overestimating for actions rarely or never taken by sts_t1 ("out-of-distribution" actions), resulting in extrapolation error.

2.1 Action Support Constraint

A state-conditioned generative model sts_t2 is trained via behavior cloning: sts_t3 Typically,

sts_t4

During learning, Q-value maximization is conducted only over actions sts_t5 with sts_t6, for some threshold sts_t7. This hard support constraint prevents the policy from excessively bootstrapping on unsupported actions.

2.2 Absence of Penalty Terms

BCD4Rec applies a hard cutoff via sts_t8 for batch constraints, without introducing KL-divergence or sts_t9 penalties in Bellman backups.

3. Distributional RL via Implicit Quantile Networks

Instead of only predicting LL0, BCD4Rec estimates the full distribution of returns LL1 with Implicit Quantile Networks (IQN):

  • Distributional Bellman operator:

LL2

This operator is applied in the distributional (not mean) sense.

  • IQN parameterization:
    • Sample LL3 quantile fractions LL4.
    • For each LL5, compute a quantile-conditional state embedding LL6, where LL7 is a learned transformation (e.g., cosine embedding + ReLU).
    • Quantile estimate: LL8.
  • Learning objective: The quantile Huber loss is computed as

LL9

with dd0 the standard Huber loss. The total loss is

dd1

where dd2, and dd3 is the maximizing action under the batch constraint.

4. Implementation Protocols

Algorithmic workflow consists of the following:

  1. Pre-train item embeddings dd4 (e.g., using SRGNN next-item prediction) or random initialization.
  2. Initialize the IQN network dd5, a corresponding target network dd6 (with dd7), and the behavior model dd8.
  3. Iterate over training epochs by:
    • Sampling minibatches from dd9.
    • Fitting s∈Rd\mathbf{s} \in \mathbb{R}^d0 by supervised learning.
    • For each sample, drawing s∈Rd\mathbf{s} \in \mathbb{R}^d1 quantiles and computing s∈Rd\mathbf{s} \in \mathbb{R}^d2.
    • For each quantile in s∈Rd\mathbf{s} \in \mathbb{R}^d3, searching over s∈Rd\mathbf{s} \in \mathbb{R}^d4 with s∈Rd\mathbf{s} \in \mathbb{R}^d5 to maximize mean s∈Rd\mathbf{s} \in \mathbb{R}^d6.
    • Computing quantile-Huber losses and updating s∈Rd\mathbf{s} \in \mathbb{R}^d7.
    • Periodically synchronizing target network parameters.

Main architectural elements include a learned item table, Bi-GRU session encoder, MLP/cosine quantile embedding, and dot-product final quantile scoring.

5. Theoretical Properties

  • Convergence and optimization: IQN with expressive function classes converges to fixed points of the distributional Bellman operator in the 1-Wasserstein metric, subject to standard contraction arguments.
  • Stochasticity and robustness: Modeling s∈Rd\mathbf{s} \in \mathbb{R}^d8 (the full return distribution) allows improved handling of reward stochasticity from latent user interests, mitigating overestimation for actions with high-variance but low means.
  • Error reduction: The batch support constraint (hard cutoff) combined with quantile regression reduces extrapolation error endemic to learning from purely offline datasets.

6. Experimental Evaluation

BCD4Rec was evaluated in both real and simulated environments:

  • Datasets:
    • Diginetica (DN): CIKM-2016 click/buy logs (~6,700 items). Training utilizes user interaction logs and a GRU-based simulator.
    • RecSim: Google’s RecSim, simulating interest evolution with 200 items and click/skip responses; behavior data is drawn from random and various checkpointed policies.
  • Baselines: Heuristic (MostPop, SKNN, STAN), supervised (GRU, SRGNN), off-policy RL (DQN, BCQ), and distributional RL (QR-DQN, QR-BCQ, IQN without batch constraint).
  • Metrics:
    • Online: Buy Rate (BR) and Click-Through Rate (CTR).
    • Diversity: Coverage@3, the fraction of unique items recommended in the top-3 across sessions.
    • Offline proxies: Recall@3 and average Q-value s∈Rd\mathbf{s} \in \mathbb{R}^d9 on held-out A\mathcal{A}0.

6.1 Performance Summary

Task Behavior DQN BCQ IQN BCD4Rec Online-oracle
DN (BR) 4.1% 4.8% 13.3% 23.5% 24.1% 26.6%
RecSim-1 (CTR) 63.1% 50.7% 65.9% 73.5% 76.4% 85.9%
RecSim-2 (CTR) 68.3% 52.1% 72.3% 75.9% 79.3% 85.9%
RecSim-3 (CTR) 79.9% 54.0% 76.3% 81.5% 83.2% 85.9%

BCD4Rec achieves the highest performance among offline methods in both environments, closely matching the online-oracle.

6.2 Analysis of Diversity and Bias

  • Latent category coverage: BCD4Rec stays within users’ latent preferred categories, mitigating overestimation on out-of-category items.
  • Popularity bias: The frequency of item recommendations under BCD4Rec approaches the oracle distribution, contrasting with the skew towards popular items typical of DQN, BCQ, and QR-DQN.

6.3 Ablation Findings

  • Pre-training item embeddings (via SRGNN) yields a 3–5 point improvement in BR/CTR, especially in larger catalogs.
  • For hyperparameter selection, Recall@3 poorly correlates with online reward; the average A\mathcal{A}1-value on a validation set shows strong correlation with CTR/BR and should be preferred as an offline proxy.

7. Synthesis and Implications

BCD4Rec integrates a strict batch constraint via a learned behavior model, full distributional value estimation using IQN, and scalable session/action encoding. It exhibits substantial improvement over both conventional offline RL and non-RL baselines in realistic recommendation environments. Its design effectively controls extrapolation from batch data, captures user response stochasticity, increases category diversity, and reduces popularity bias in recommendation outputs (Garg et al., 2020).

Definition Search Book Streamline Icon: https://streamlinehq.com
References (1)

Topic to Video (Beta)

No one has generated a video about this topic yet.

Whiteboard

No one has generated a whiteboard explanation for this topic yet.

Follow Topic

Get notified by email when new papers are published related to Batch-Constrained Distributional RL.