MobileCity: An Efficient Framework for Large-Scale Urban Behavior Simulation

Xiaotong Ye, Nicolas Bougie, Toshihiko Yamasaki, Narimasa Watanabe · DOI

Introduction

Simulating the complex dynamics of human behavior within urban environments is a cornerstone of modern urban planning and policy-making. However, researchers have long faced a "fidelity vs. scale" trade-off. Traditional rule-based models often lack the spontaneity and realism of human life, while recent generative agent approaches leveraging Large Language Models (LLMs) struggle with scalability. Previous state-of-the-art systems could take nearly an hour to simulate just a handful of agents for a single day. MobileCity addresses these challenges by introducing a lightweight generative-agent framework capable of simulating thousands of residents with high fidelity and computational efficiency.

Methodology

MobileCity optimizes both the cognitive architecture of the agents and the underlying simulation engine to achieve realism at scale.

The Cognitive Brain

Rather than relying solely on reactive LLM prompts, MobileCity agents are driven by a tripartite cognitive module:

  1. Needs-driven Action: Agents track eight internal states (e.g., Fullness, Social Connection) based on Maslow’s hierarchy. These states decay over time, creating internal pressure for agents to seek replenishment.
  2. Habit-driven Action: To replicate human routines, the framework models habits using Gaussian distributions and Ebbinghaus forgetting curves.
  3. Obligation-driven Action: Hard constraints, such as work schedules derived from survey data, act as daily "anchors" that structure an agent's time.

The Efficiency Engine

To overcome the scalability wall, MobileCity employs several technical innovations:

  • Asynchronous Batched Inference: The system decouples agent decisions from a global clock, collecting tasks into buffers and dispatching them to the LLM in parallel batches.
  • Discrete Action Selection: Instead of open-ended text generation, the LLM selects from precomputed feasible candidates, significantly reducing token consumption.
  • Optimized I/O: Agents communicate via memory indices rather than full dialogues, and the system uses event-level logging with frontend interpolation to minimize data overhead.
Dynamics of internal agent attributes (Fullness, Pleasure, Health, Energy, Social) across different employment statuses over a 24-hour period.

Results and Discussion

Human Likeness and Speed

In evaluations using GPT-4o as a judge, MobileCity achieved a behavioral realism score of 4.09/5, significantly outperforming baselines like SmallCity (3.11). More impressively, the framework simulated 4,000 agents for a full weekday in approximately one hour (3,734 seconds), a feat that would take over six hours without the system's asynchronous optimizations.

Macro-Level Accuracy and Insights

The simulation successfully replicated real-world urban occupancy patterns. For instance, it captured the pronounced surge in office occupancy during weekday mornings and the transition toward leisure venues like parks and sports centers during the evening and weekends.

Simulated traffic volume across various urban spaces throughout a typical day, showing characteristic peaks in office and residential occupancy.

Analysis of internal states revealed that modeling decaying needs prevents "robot loops." For example, an employed agent’s social and energy needs naturally drop during work hours, leading to a realistic surge in leisure activities in the evening. Furthermore, agents demonstrated context-aware mobility, such as avoiding personal mobility vehicles during rainy weather or prioritizing different transport modes based on income and time efficiency.

Conclusion

MobileCity represents a significant advancement in urban simulation, proving that high-fidelity generative agents can be scaled to city-wide populations. While current work focuses on typical daily routines, future iterations will explore group dynamics, multi-agent collective activities, and agent responses to rare "black swan" events like infrastructure failures. By bridging the gap between cognitive realism and computational performance, MobileCity provides a powerful tool for the next generation of smart city planning.

Summary updated

BibTeX
@misc{ye2025mobilecity,
  author = {Xiaotong Ye and Nicolas Bougie and Toshihiko Yamasaki and Narimasa Watanabe},
  title = {{MobileCity: An Efficient Framework for Large-Scale Urban Behavior Simulation}},
  year = {2025},
  eprint = {2504.16946},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2504.16946},
}
Figure