Sim2Rec: A Simulator-based Decision-making Approach to Optimize Real-World Long-term User Engagement in Sequential Recommender Systems

Xiong-Hui Chen, Bowei He, Yang Yu, Qingyang Li, Zhiwei Tony Qin, Wenjie Shang, Jieping Ye, Chen Ma

Abstract

Reinforcement Learning (RL) offers a promising path for optimizing long-term user engagement (LTE) in recommender systems by accounting for the sequential nature of user interactions. However, the "reality gap"—the discrepancy between training simulators and real-world environments—often leads to sub-optimal performance or catastrophic failure when policies are deployed. We present Sim2Rec, a framework that bridges this gap by training policies across a diverse ensemble of simulated environments. By utilizing a hierarchical environment-parameter extractor and a context-aware policy, Sim2Rec enables zero-shot adaptation to real-world user behaviors. Evaluations on synthetic benchmarks and large-scale real-world datasets from DidiChuxing demonstrate that Sim2Rec significantly outperforms traditional RL and supervised learning baselines, achieving a 6.9% improvement in daily rewards in live A/B testing.

Introduction

In modern recommender systems, the goal has shifted from maximizing immediate clicks to fostering long-term user engagement (LTE). While Reinforcement Learning (RL) is theoretically well-suited for this sequential decision-making task, its practical application is hindered by extreme sample inefficiency. Training an RL agent directly on live users is often prohibitively expensive and risky.

To mitigate this, researchers typically rely on simulators built from historical data. However, these simulators are inevitably imperfect representations of reality. A policy that overfits to the specific biases or "unphysical" behaviors of a simulator often fails to generalize to actual users—a phenomenon known as the reality gap. Sim2Rec addresses this challenge by drawing inspiration from "Sim-to-Real" techniques in robotics, creating a robust framework for transferring simulated policies to real-world recommendation tasks.

The Sim2Rec Framework

Sim2Rec is designed to handle the uncertainty inherent in user behavior modeling through three core technical innovations:

1. Hierarchical Environment-Parameter Extractor

Identifying a user's specific behavior pattern quickly is difficult because individual interaction data is often sparse. Sim2Rec introduces a State-Action Distributional Variational AutoEncoder (SADAE) to capture group-level dynamics (e.g., regional trends or demographic clusters). This group-level context is combined with individual user trajectories via an RNN (LSTM) to produce a latent representation of the current "environment." This hierarchical approach allows the system to infer the underlying user model much faster than looking at individual actions alone.

2. Context-Aware Policy and Zero-Shot Adaptation

Rather than training a single static policy, Sim2Rec trains a policy conditioned on the inferred environment parameters. During deployment, the agent does not need to continue learning through trial-and-error on the live user. Instead, it performs "zero-shot" adaptation: as the extractor identifies which simulated behavior pattern the real user most closely resembles, the policy automatically switches to the strategy optimized for that specific context.

3. Feasible Parameter Space Construction

Neural-network-based simulators can produce nonsensical "counterfactual" predictions—such as suggesting that increasing task difficulty will increase user completion rates. Sim2Rec addresses this by:

  • Ensemble Diversity: Using an ensemble of simulators to represent a broad range of plausible user reactions.
  • Post-Processing Filters: Implementing "trend filters" based on domain knowledge to ensure simulators obey basic logical rules.
  • Uncertainty Penalization: Penalizing the agent for entering state-action regions where the ensemble of simulators shows high disagreement, preventing the policy from exploiting simulator artifacts.

Experimental Results

Synthetic Benchmarks (Google RecSim)

In the RecSim environment, which simulates the "Choc/Kale" problem (balancing short-term clickbait with long-term satisfaction), Sim2Rec achieved near-optimal performance. It significantly outperformed standard Domain Randomization (DR-UNI) and direct simulator-based RL (DIRECT), proving its ability to navigate complex long-term trade-offs.

Real-World Application: DidiChuxing

The framework was applied to the Driver Program Recommendation (DPR) task at DidiChuxing, where the goal is to recommend incentive tasks to drivers to maximize long-term platform engagement.

  • Offline Evaluation: Sim2Rec achieved a 2.0% increase in total orders compared to established supervised learning baselines like DeepFM and WideDeep, while maintaining a lower cost-per-order.
  • Online A/B Test: In a 7-day live deployment, Sim2Rec delivered a 6.9% improvement in daily rewards over the human-designed heuristic baseline. Notably, a standard RL approach without the Sim2Rec reality-gap fixes achieved only a marginal 0.1% improvement, highlighting the necessity of the framework’s robustness components.

Discussion and Conclusion

Sim2Rec demonstrates that the reality gap in recommender systems can be bridged by treating the simulator not as a single source of truth, but as a distribution of possible worlds. By learning to identify and adapt to these worlds, RL agents can be safely and effectively deployed in high-stakes production environments.

While the current implementation relies on empirical filters to maintain simulator sanity, future work will explore more theoretical frameworks for uncertainty quantification. Additionally, streamlining the hierarchical extractor for even larger-scale deployments remains a priority. Sim2Rec represents a significant step toward making RL-based recommendation a practical reality for industry-scale long-term engagement optimization.

Summary updated

BibTeX
@inproceedings{chen2023sim,
  author = {Xiong-Hui Chen and Bowei He and Yang Yu and Qingyang Li and Zhiwei Tony Qin and Wenjie Shang and Jieping Ye and Chen Ma},
  title = {{Sim2Rec: A Simulator-based Decision-making Approach to Optimize Real-World Long-term User Engagement in Sequential Recommender Systems}},
  booktitle = {ICDE},
  year = {2023},
  url = {https://openreview.net/forum?id=oQwQZ6rJjs},
}
Figure