Agent4Rec

Agent4Rec implements research on generative agents for recommendation systems.

github.com/LehengTHU/Agent4Rec
Agent4Rec homepage screenshot

About Agent4Rec

Agent4Rec is an open-source Python repository implementing the SIGIR 2024 perspective paper "On Generative Agents in Recommendation". It acts as a recommender system simulator using 1,000 LLM-empowered generative agents initialized from the MovieLens-1M dataset, each with distinct social traits and preferences. Agents interact with personalized movie recommendations page-by-page, performing actions including watching, rating, evaluating, exiting, and interviewing to simulate genuine human behavior in recommendation environments. The repository is tested on Python 3.9.12 with PyTorch 1.13.1+cu117; Python versions above 3.10 may cause bugs with the included reckit package. Simulations require an OpenAI API key and use ChatGPT-3.5, with a full 1,000-user simulation costing approximately $16 total.

Key features

  • Simulates 1,000 LLM-powered generative agents for recommendation testing
  • Agents initialized from MovieLens-1M dataset with varied social traits
  • Supports Random, Pop, MF, MultVAE, and LightGCN recommender models
  • Configurable simulation parameters for agent count, pages, and items per page
  • Parallel execution mode to reduce simulation run time
  • Saves full agent interaction logs and results to local storage
Best for: Researchers and developers building or evaluating recommendation systems who need to simulate LLM-empowered agent user behavior.
Good for
  • Open-source MIT-licensed implementation of peer-reviewed SIGIR 2024 research
  • Includes pre-trained versions of multiple standard recommender models for testing
  • Supports parallel execution to speed up simulation runs
Watch out for
  • Requires an OpenAI API key, with associated ChatGPT-3.5 usage costs for simulations
  • Python versions above 3.10 may cause bugs with the included reckit package
  • Limited to movie recommendation simulations using the MovieLens-1M dataset

Agent4Rec at a glance

Type
Open-source project
Pricing
Not confirmed. Check the site
Open source
Yes · Source code
Language
English
Last checked
Oct 5, 2026 · Online when checked
Listed
Oct 5, 2026

Agent4Rec alternatives

Tools and sites you could use instead, ranked by how closely they match.

All 24 alternatives

Popular in AI Agents & Automation

Well-known listings from the same topic.

All 313

Agent4Rec FAQ

What LLM powers agent interactions in Agent4Rec simulations?
All simulations are powered by ChatGPT-3.5.
What recommender models are supported for simulation?
Supported models include Random, Pop, Matrix Factorization (MF), MultVAE, and LightGCN.
What software is required to run Agent4Rec?
It is tested on Python 3.9.12 with PyTorch 1.13.1+cu117; Python over 3.10 may cause reckit package bugs.
Is something wrong or out of date?

Tell us and an editor will check it.

Own this website?

Claim the listing and suggest updates yourself. An editor checks every claim first.

Claim this listing