Agentsosociety is a cutting -edge and open source frame designed to simulate large populations of agents, each fueled by large language models (LLM), to realistically model the complex interactions found in human societies. Take advantage of powerful distributed treatment technologies – in particular Ray – this project performs simulations involving tens of thousands of simultaneously active agents, each integrated in detailed and realistic environments which capture social, economic and mobility behavior.


Key capacities
Massive scale and fast performance
- Take care of large populations: The framework has demonstrated simulations with up to 30,000 agents, surpassing wall time-that is to say the management of virtual society faster than real time1.
- Parallelization with Ray: Agentsosociety uses the framework of the rays to manage the parallel execution of the agents, criticism to manage massive and non -deterministic interactions.
- Effective use of resources: By bringing together agents and sharing network customers within groups, the framework considerably reduces memory and the connection of general costs, overcoming the bottlenecks of the port and the common memory in the simulations distributed on a scale.
Realistic societal environments
Agentsociety is differentiated by integrating very realistic comments and constraints, allowing agents to behave in a way that reflects real societal systems.
- Urban space: Incorporate the data from real cards (for example, OpenStreetMap), road networks, points of interest and mobility models (walking, driving, public transport) have updated every second simulated1.
- Social space: The agents form evolving social networks, engaging in online and offline social interactions. Messaging (including content moderation and user blocking) is modeled to simulate social media and real world communication models.
- Economic area: Implement employment, consumption, bank, government (taxes) and macroeconomic reports, all motivated by agent decisions. Agents must balance income and expenses, simulating realistic economic behavior.


Architecture and technology
Parallelized interaction engine
- Group distributed execution: The agents are partitioned in groups managed by the “actors” Ray, optimizing the use of resources while maintaining high parallelism, with asynchronous network requests using connection reuse.
- High performance messaging: Using Redis advertising / sub-section capacities, agents communicate effectively, supporting agent-agent and user interactions (external program).
- Time alignment mechanism: The framework synchronizes the progression of the agent and the environment, ensuring coherent and reproducible simulations despite variable processing deadlines from API LLM calls.
- Complete utilities: Simulation journalization (via PostgreSql and local file storage), metric recording (MLFlow) and a graphical interface for the creation / management of experience and the viewing of the results.
Quantitative results
Scalability and speed
- Faster than in real time: During a deployment with 24 GPU NVIDIA A800, simulations of 30,000 agents obtained faster operation than locking (for example, an iteration lap for all agents executed faster than real equivalent time).
- Linear scale: Performances evolve linearly with IT resources; The increase in GPUs which serve LLM allows a higher simulation flow, up to the service limits of the backend of the language model.
- Example of measures: In the greatest experience (30,000 agents, 8 groups), an average agent tour ended in 252 seconds, remaining in real time and with a 100% LLM success rate. Simulation of the environment and the passing times of messages remain well below the LLM inference time, affirming the effectiveness of calculation of the system.
Impact of realistic environments
- Authenticity of agents' behavior: The incorporation of realistic environment simulators has considerably improved the authenticity and human awareness of agent behaviors compared to “text simulators” based on LLM pure and various basic lines generating trajectory.
- Empirical benchmarks: On measures such as the radius of giration, the daily locations visited and the behavioral intention distributions, LLM agents with environmental support have considerably surpassed the basic lines of the model only and classic, corresponding closely to the data of the real world.
Use cases and applications
The open design and configurable environments make agents a powerful tool for:
- Social science research: Study societal models, emerging phenomena, mobility and dissemination of information.
- Urban planning and policies analysis: Evaluation of interventions in simulated environments before the deployment of the real world.
- Management science: Modeling of organizational dynamics, labor changes and economic behavior.
Conclusion
AgentsSociety stands out as the first open source framework to simulate effectively and realistic of societal interactions on an unprecedented scale. Its integration of agents supplied by LLM with parallelized environments based on data positions it as a critical tool for computer research and support for practical decision to understand the complex societal dynamics.
Discover the Paper And Project. All the merit of this research goes to researchers in this project. Also, don't hesitate to follow us Twitter And don't forget to join our Subseubdredit 100k + ml and subscribe to Our newsletter.
Asif Razzaq is the CEO of Marktechpost Media Inc .. as a visionary entrepreneur and engineer, AIF undertakes to exploit the potential of artificial intelligence for social good. His most recent company is the launch of an artificial intelligence media platform, Marktechpost, which stands out from its in-depth coverage of automatic learning and in-depth learning news which are both technically solid and easily understandable by a large audience. The platform has more than 2 million monthly views, illustrating its popularity with the public.
