On Generative Agents in Recommendation

An Zhang, Yuxin Chen, Leheng Sheng, Xiang Wang, Tat-Seng Chua

Abstract

Traditional recommender system evaluation often suffers from a gap between offline metrics and online performance. This paper introduces Agent4Rec, a novel simulator utilizing 1,000 LLM-powered generative agents to model complex human behaviors such as emotional fatigue, social conformity, and diverse tastes. By grounding agents in real-world data and equipping them with memory and reflection modules, Agent4Rec provides a high-fidelity environment for evaluating recommendation algorithms and studying long-term system effects like filter bubbles.

Introduction

Recommender systems (RecSys) are typically evaluated using static datasets and offline metrics like Recall or NDCG. However, these metrics often fail to predict real-world performance because they do not account for the dynamic, autonomous nature of human users. Traditional simulators rely on rigid rules that lack the nuance of human decision-making.

Overview of the Agent4Rec framework, illustrating the simulation pipeline from agent creation to recommender evaluation.

Agent4Rec addresses this by leveraging Large Language Models (LLMs) to create "generative agents." These agents act as virtual users within a simulated environment, exhibiting human-level intelligence and reasoning. This allows researchers to observe how users might react to specific recommendation strategies over time without the risks associated with live deployment.

Methodology: The Agent4Rec Framework

The Agent4Rec framework consists of two primary components: the Generative Agents and the Recommendation Environment.

Agent Architecture

Each agent is powered by gpt-3.5-turbo and comprises three core modules:

  1. Profile Module: This module defines the agent's "Social Traits" (Activity, Conformity, and Diversity) and "Unique Tastes," which are distilled from historical user data.
  2. Memory Module: Unlike standard simulators, Agent4Rec logs both Factual Memories (items interacted with) and Emotional Memories (subjective feelings). A reflection mechanism allows agents to introspect on their satisfaction and fatigue.
  3. Action Module: Agents can perform taste-driven actions (watching or rating) and emotion-driven actions (exiting the system or participating in a post-exit interview).
Detailed architecture of Agent4Rec, showing the flow from real data to profile generation and the internal modules of the generative agent.

Recommendation Environment

The environment simulates a page-by-page interface, similar to modern streaming platforms. It supports various plug-and-play algorithms, such as Matrix Factorization (MF), LightGCN, and MultVAE, enabling comparative benchmarking in a controlled setting.

Experimental Setup and Datasets

To ensure the agents' behaviors are grounded in reality, they are initialized using three prominent datasets:

  • MovieLens-1M: The primary dataset for movie recommendations.
  • Steam: For gaming recommendations.
  • Amazon-Book: For book recommendations.

Key Insights and Results

The simulation revealed several critical findings:

  • Realism through Emotion and Traits: The inclusion of emotional fatigue prevents agents from browsing indefinitely, mimicking real-world behavior. Modeling social traits like conformity resulted in rating distributions that closely match the "long-tail" patterns seen in actual human data.
  • Replicating the Filter Bubble: Agent4Rec successfully demonstrated the "filter bubble" effect, where recommendations become increasingly homogeneous over multiple rounds of interaction.
  • Algorithm Performance: Benchmarking showed that LightGCN consistently achieved the highest agent satisfaction scores ($S_{sat}$), aligning with current industry trends toward graph-based collaborative filtering.
  • User Alignment: Agents achieved ~65% accuracy and ~75% recall in distinguishing between items a real user liked versus those they had not seen, validating their fidelity.

Conclusion and Future Work

Agent4Rec represents a significant step toward bridging the gap between offline evaluation and online deployment. While the system currently faces constraints such as the need for descriptive text data and potential LLM hallucinations, it offers a powerful tool for causal discovery and long-term impact analysis. Future work will focus on fine-tuning LLMs specifically for recommendation tasks and expanding the simulation to include broader social influences.

Summary updated

BibTeX
@inproceedings{zhang2023generative,
  author = {An Zhang and Yuxin Chen and Leheng Sheng and Xiang Wang and Tat-Seng Chua},
  title = {{On Generative Agents in Recommendation}},
  booktitle = {International ACM SIGIR Conference on Research and Development in Information Retrieval},
  year = {2023},
}
Figure