Time-Constrained Recommendations: Reinforcement Learning Strategies for E-Commerce

Sayak Chakrabarty, Souradip Pal · DOI

Introduction

Modern recommendation systems primarily optimize for item relevance, aiming to present content with the highest probability of engagement. However, this approach often overlooks a fundamental constraint: user time. Every item presented in a feed carries an "evaluation cost"—the cognitive effort and time required to process a title, thumbnail, or price. If a system prioritizes high-relevance but high-effort items, users may exhaust their mental "time budget" and abandon the session before discovering other valuable content.

The authors frame this challenge as a time-constrained resource allocation problem, analogous to a 0/1 Knapsack Problem. The goal is to select a subset of items (a slate) that maximizes total engagement (e.g., clicks) without exceeding the user's latent time budget.

Methodology

The recommendation process is modeled as a Markov Decision Process (MDP) where the agent learns to optimize slates over time.

  • State ($s_t$): Represents the remaining time budget and the set of items already included in the current slate.
  • Action ($a_t$): The selection of the next item to fill a slot in the $K$-sized slate.
  • Reward ($r_t$): A binary engagement signal (click) based on relevance, contingent on the user having sufficient budget remaining to evaluate the item.

The system employs XGBoost as a function approximator to estimate Q-values. Two primary RL algorithms are compared: SARSA (on-policy) and Q-Learning (off-policy). To generate initial relevance scores, the authors utilize a Personalized Re-ranking Model (PRM) based on a Transformer architecture.

The RL simulation framework illustrating the interaction between the Agent and the Environment.

Experimental Setup

The study utilizes Alibaba’s Personalized Re-ranking (PRM) dataset, comprising 150 users, approximately 143,000 unique items, and 8,000 interactions. Since the original data lacks explicit "time spent" metrics, the authors developed a simulation framework. Evaluation costs were sampled from a uniform distribution, while user budgets followed a log-normal distribution to simulate varying degrees of "time pressure."

Results and Discussion

The experimental results highlight several key advantages of the RL-based approach over traditional myopic ranking:

  1. Optimizing Utility-per-Second: RL agents learn to prioritize items that offer high engagement for low time costs, particularly when budgets are constrained.
  2. Long-term Value: By utilizing a discount factor ($\gamma > 0$), RL models outperform standard Contextual Bandits. The agents recognize that selecting a slightly less relevant but "cheaper" item early on can preserve budget for multiple high-value items later in the sequence.
  3. Performance under Pressure: Q-Learning consistently outperformed SARSA in terms of Play Rate (average clicks per slate). This is especially evident in tight-budget scenarios where SARSA's exploratory moves can prematurely deplete the user's limited time.
Performance comparison of SARSA and Q-Learning under a tight user budget (300.0).

Furthermore, both RL methods significantly increased the "Effective Slate Size"—the number of items a user actually evaluates—and demonstrated a superior ability to reduce session abandonment.

Conclusion and Future Work

This research demonstrates that modeling recommendation as a time-constrained RL problem significantly improves user engagement by balancing relevance with evaluation costs. Future work aims to refine the simulation by learning feature-conditional costs from real-world metadata and treating the user's budget as a Partially Observable MDP (POMDP) to dynamically infer patience based on real-time scrolling behavior.

Summary updated

BibTeX
@inproceedings{chakrabarty2026time,
  author = {Sayak Chakrabarty and Souradip Pal},
  title = {{Time-Constrained Recommendations: Reinforcement Learning Strategies for E-Commerce}},
  booktitle = {ICPRAM},
  year = {2026},
  doi = {10.5220/0014298000004067},
}
Figure