OpenCity: A Scalable Platform to Simulate Urban Activities with Massive LLM Agents
Yuwei Yan, Qingbin Zeng, Zhiheng Zheng, Jingzhe Yuan, Jie Feng, Jun, Zhang, Fengli Xu, Yong Li

TL;DR
OpenCity is a scalable platform that significantly accelerates urban activity simulations using LLM agents, reducing computational costs and enabling large-scale, realistic urban modeling on standard hardware.
Contribution
We introduce OpenCity, a novel platform with request scheduling and prompt optimization, achieving substantial speedups and cost reductions in LLM-based urban simulations.
Findings
600-fold acceleration in simulation time per agent
70% reduction in LLM requests
50% reduction in token usage
Abstract
Agent-based models (ABMs) have long been employed to explore how individual behaviors aggregate into complex societal phenomena in urban space. Unlike black-box predictive models, ABMs excel at explaining the micro-macro linkages that drive such emergent behaviors. The recent rise of Large Language Models (LLMs) has led to the development of LLM agents capable of simulating urban activities with unprecedented realism. However, the extreme high computational cost of LLMs presents significant challenges for scaling up the simulations of LLM agents. To address this problem, we propose OpenCity, a scalable simulation platform optimized for both system and prompt efficiencies. Specifically, we propose a LLM request scheduler to reduce communication overhead by parallelizing requests through IO multiplexing. Besides, we deisgn a "group-and-distill" prompt optimization strategy minimizes…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Code & Models
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsTraffic Prediction and Management Techniques · Traffic control and management
