RecAgent: A Novel Simulation Paradigm for Recommender Systems

Lei Wang, Jingsen Zhang, Xu Chen, Yankai Lin, Ruihua Song, Wayne Xin Zhao, Ji-Rong Wen · OpenReview

Abstract

User behavior analysis is crucial in human-centered AI applications. In this field, the collection of sufficient and high-quality user behavior data has always been a fundamental yet challenging problem. An intuitive idea to address this problem is automatically simulating the user behaviors. However, due to the subjective and complex nature of human cognitive processes, reliably simulating user behavior is difficult. Recently, large language models (LLM) have obtained remarkable successes, showing great potential to achieve human-like intelligence. We argue that these models present significant opportunities for reliable user simulation and have the potential to revolutionize traditional study paradigms in user behavior analysis. In this paper, we take recommender systems as an example to explore the potential of using LLMs for user simulation. Specifically, we regard each user as an LLM-based autonomous agent and let different agents freely communicate, behave, and evolve in a virtual simulator called RecAgent. For comprehensive simulation, we not only consider behaviors within the recommender system (e.g., item browsing and clicking) but also account for external influential factors, such as friend chatting and social advertisement. Our simulator contains at most 1,000 agents, and each agent is composed of a profiling module, a memory module, and an action module, enabling it to behave consistently, reasonably, and reliably. In addition, to more flexibly operate our simulator, we also design two global functions including real-human playing and system intervention. To evaluate the effectiveness of our simulator, we conduct extensive experiments from both agent and system perspectives.

Introduction

Developing human-centered AI, such as recommender systems, requires massive amounts of high-quality user data. However, acquiring real-world data is increasingly difficult due to privacy regulations, commercial confidentiality, and the high cost of user studies. Existing simulators often fall short because they rely on oversimplified mathematical functions to model human decision-making and suffer from "real-data dependence"—they need real data to learn how to simulate, creating a "chicken and egg" problem. Furthermore, most simulators focus on a single environment, failing to capture how social interactions influence consumption habits.

The RecAgent Framework

To address these challenges, we propose RecAgent, an LLM-based agent framework designed with three core modules inspired by cognitive neuroscience: the Profile Module, the Memory Module, and the Action Module.

Overview of the RecAgent framework, including the simulator running process, agent modules, and implementation strategies.

Core Modules

  1. Profile Module: Defines the agent’s identity, including demographics, personality traits (e.g., "optimistic," "cautious"), and specific behavioral roles like "Watcher" (gives feedback) or "Explorer" (actively searches).
  2. Memory Module: Mimics human memory stages. Sensory memory stores raw observations, which are compressed into short-term memory insights. Long-term memory utilizes a forgetting mechanism based on recency and importance, alongside a self-reflection mechanism to generate high-level abstractions from past experiences.
  3. Action Module: Enables agents to perform recommender actions (searching, browsing, clicking) and social actions (one-to-one chatting and one-to-many broadcasting).

Simulation and Social Dynamics

The agents operate in a sandbox environment where activity levels follow a Pareto distribution, reflecting real-world platform behavior where a few users are highly active while most are not. The system allows for "human-in-the-loop" intervention, where researchers can interview or edit agents mid-simulation to test specific hypotheses.

We validated the simulator using several datasets, including MovieLens-1M for interaction ground truths and Amazon-Beauty, Book-Crossing, and Steam to verify the Pareto activity model across diverse domains.

Experimental Evaluation

Our experiments demonstrate that LLMs can act as zero-shot simulators, bypassing the data dependence of traditional models by leveraging the vast human knowledge encoded during their training.

Quantitative evaluation of RecAgent's believability and performance compared to baselines and human behavior.

Key Results

  • High Believability: In recommendation tasks, RecAgent's choices were remarkably close to real human behavior, outperforming traditional baselines like RecSim by 68% and trailing real human performance by only 8%.
  • Reproducing Social Phenomena: RecAgent successfully reproduced "information cocoons" (filter bubbles), where diversity dropped by 8.5% over 50 rounds. It also demonstrated "user conformity," where agents with more social connections were more likely to change their ratings to match their social circle.
  • Social-Consumption Feedback Loops: The study confirmed that social interactions directly influence consumption patterns, which then feed back into social discourse.

Conclusion

RecAgent provides a powerful new tool for testing human-centered AI without the privacy risks of real-world data. While the current simulation is computationally heavy—taking approximately 1.9 hours per round for 100 agents—it offers unprecedented reliability in modeling complex human behaviors. Future work will focus on improving scalability, prompt robustness across different LLMs, and expanding the framework to other human-AI interaction domains.

Summary updated

BibTeX
@article{wang2023recagent,
  author = {Lei Wang and Jingsen Zhang and Xu Chen and Yankai Lin and Ruihua Song and Wayne Xin Zhao and Ji-Rong Wen},
  title = {{RecAgent: A Novel Simulation Paradigm for Recommender Systems}},
  journal = {ACM Trans. Information Systems},
  year = {2023},
  url = {https://openreview.net/forum?id=XeW5IMvjdm},
}
Figure