SUBER: An RL Environment with Simulated Human Behavior for Recommender Systems
Nathan Corecco, Giorgio Piatti, Luca A. Lanzendörfer, Flint Xiaofeng Fan, Roger Wattenhofer
TL;DR
SUBER introduces a versatile RL environment for recommender systems by using Large Language Models (LLMs) to simulate human user behavior within a modular gym-like framework. The environment combines memory, pre-processing, and post-processing modules to generate observations, prompts, and rewards, enabling on-policy RL training without real user data. Through extensive ablations across movie and book domains, the study analyzes prompting strategies, retrieval methods, LLM sizes, and reward perturbation/shaping, demonstrating that similarity-based retrieval and 2-shot prompting with a custom system prompt yield high fidelity to human preferences. The framework provides both synthetic data generation and evaluation capabilities, offering a practical path to train and benchmark RL-based recommenders when real online data are scarce; code is openly available for replication and extension.
Abstract
Reinforcement learning (RL) has gained popularity in the realm of recommender systems due to its ability to optimize long-term rewards and guide users in discovering relevant content. However, the successful implementation of RL in recommender systems is challenging because of several factors, including the limited availability of online data for training on-policy methods. This scarcity requires expensive human interaction for online model training. Furthermore, the development of effective evaluation frameworks that accurately reflect the quality of models remains a fundamental challenge in recommender systems. To address these challenges, we propose a comprehensive framework for synthetic environments that simulate human behavior by harnessing the capabilities of large language models (LLMs). We complement our framework with in-depth ablation studies and demonstrate its effectiveness with experiments on movie and book recommendations. Using LLMs as synthetic users, this work introduces a modular and novel framework to train RL-based recommender systems. The software, including the RL environment, is publicly available on GitHub.
