OpenCity:一个可扩展的大规模大语言模型智能体城市活动模拟平台
OpenCity: A Scalable Platform to Simulate Urban Activities with Massive LLM Agents
AI总结:
针对大语言模型智能体城市模拟计算成本高、难以扩展的问题,提出可扩展平台OpenCity,通过IO多路复用调度器和分组蒸馏提示策略实现600倍加速,支持万级智能体模拟并构建首个相关基准。
摘要:
基于智能体的模型(Agent-based Models, ABMs)长期以来被用于探索个体行为如何在城市空间中聚合为复杂的社会现象。与黑箱预测模型不同,ABMs擅长解释驱动这类涌现行为的微观-宏观关联。近年来大语言模型(Large Language Models, LLMs)的兴起推动了LLM智能体的发展,这类智能体能够以前所未有的真实度模拟城市活动。然而,LLM极高的计算成本为扩大LLM智能体模拟规模带来了重大挑战。\n为解决这一问题,我们提出OpenCity——一个同时针对系统效率和提示效率优化的可扩展模拟平台。具体而言,我们提出了一种LLM请求调度器,通过IO多路复用并行化请求以降低通信开销。此外,我们设计了一种“分组-蒸馏”提示优化策略,通过对具有相似静态属性的智能体进行聚类来最小化冗余。\n在全球六座城市开展的实验表明,OpenCity实现了单智能体模拟时间600倍的加速,LLM请求量减少70%,token使用量减少50%。这些提升使得在普通硬件上1小时内模拟10000个智能体的日常活动成为可能。此外,OpenCity的大幅提速让我们首次建立了面向LLM智能体的城市模拟基准,将模拟的城市活动与全球6座主要城市的真实世界数据进行对比。我们认为OpenCity平台为利用LLM的力量开展城市空间跨学科研究提供了关键基础设施,能够促进更广泛研究社区的共同努力。代码仓库位于https://anonymous.4open.science/r/Anonymous-OpenCity-42BD。
英文摘要:
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 redundancy by clustering agents with similar static attributes. Through experiments on six global cities, OpenCity achieves a 600-fold acceleration in simulation time per agent, a 70% reduction in LLM requests, and a 50% reduction in token usage. These improvements enable the simulation of 10,000 agents' daily activities in 1 hour on commodity hardware. Besides, the substantial speedup of OpenCity allows us to establish a urban simulation benchmark for LLM agents for the first time, comparing simulated urban activities with real-world data in 6 major cities around the globe. We believe our OpenCity platform provides a critical infrastructure to harness the power of LLMs for interdisciplinary studies in urban space, fostering the collective efforts of broader research communities. Code repo is available at https://anonymous.4open.science/r/Anonymous-OpenCity-42BD.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。