Recommender system simulator using generative agents
Top 75.2% on sourcepulse
Agent4Rec is a recommender system simulator designed to explore the behavior of LLM-powered generative agents in realistic user interaction scenarios. It allows researchers and developers to simulate up to 1,000 agents, each initialized with traits from the MovieLens-1M dataset, to study how these agents interact with personalized recommendations through actions like watching, rating, and evaluating items.
How It Works
The simulator leverages Large Language Models (LLMs) to create sophisticated, human-like agents. These agents are initialized with diverse social traits and preferences derived from a dataset. They then engage with a sequence of personalized recommendations, making decisions and performing actions within a simulated environment. This approach aims to provide a more nuanced understanding of user behavior in recommendation systems compared to traditional methods.
Quick Start & Requirements
pip install -r requirements.txt
python setup.py build_ext --inplace
in the recommenders/
directory.python main.py
(3-minute toy simulation with 3 agents).Highlighted Details
Maintenance & Community
The project is associated with SIGIR 2024. Further community or maintenance details are not specified in the README.
Licensing & Compatibility
The README does not explicitly state the license. Compatibility for commercial use or closed-source linking is not specified.
Limitations & Caveats
The project is tested on specific older versions of Python and PyTorch, with potential compatibility issues for newer Python versions. The reliance on OpenAI's API means costs are incurred, and availability is dependent on the external service.
1 year ago
Inactive