ScaleSim: Serving Large-Scale Multi-Agent Simulation with Invocation Distance-Based Memory Management

Zaifeng Pan, Yipeng Shen, Zhengding Hu, Zhuang Wang, Aninda Manocha, Zheng Wang, Zhongkai Yu, Yue Guan, Yufei Ding
Proceedings of the 43rd International Conference on Machine Learning, PMLR 306:95898-95913, 2026.

Abstract

LLM-based multi-agent simulations are increasingly adopted across application domains, but remain difficult to scale due to GPU memory pressure. Each agent maintains private GPU-resident states, including models, prefix caches, and adapters, which quickly exhaust device memory as the agent count grows. We identify two key properties of these workloads: sparse agent activation and an estimable agent invocation order. Based on an analysis of representative workload classes, we introduce invocation distance, a unified abstraction that estimates the relative order in which agents will issue future LLM requests. Leveraging this abstraction, we present ScaleSim, a memory-efficient LLM serving system for large-scale multi-agent simulations. ScaleSim enables proactive prefetching and priority-based eviction, supports diverse agent-specific memory through a modular interface, and achieves up to 1.74$\times$ speedup over SGLang on simulation benchmarks. ScaleSim’s source code is available at https://github.com/PanZaifeng/KVFlow.

Cite this Paper


BibTeX
@InProceedings{pmlr-v306-pan26k, title = {{S}cale{S}im: Serving Large-Scale Multi-Agent Simulation with Invocation Distance-Based Memory Management}, author = {Pan, Zaifeng and Shen, Yipeng and Hu, Zhengding and Wang, Zhuang and Manocha, Aninda and Wang, Zheng and Yu, Zhongkai and Guan, Yue and Ding, Yufei}, booktitle = {Proceedings of the 43rd International Conference on Machine Learning}, pages = {95898--95913}, year = {2026}, editor = {Zhang, Tong and Dudik, Miroslav and Jaggi, Martin and Agarwal, Alekh and Li, Sharon and Schuurmans, Dale and Zhu, Jerry and Berkenkamp, Felix and Dong, Hanze and Bietti, Alberto}, volume = {306}, series = {Proceedings of Machine Learning Research}, month = {06--11 Jul}, publisher = {PMLR}, pdf = {https://raw.githubusercontent.com/mlresearch/v306/main/assets/pan26k/pan26k.pdf}, url = {https://proceedings.mlr.press/v306/pan26k.html}, abstract = {LLM-based multi-agent simulations are increasingly adopted across application domains, but remain difficult to scale due to GPU memory pressure. Each agent maintains private GPU-resident states, including models, prefix caches, and adapters, which quickly exhaust device memory as the agent count grows. We identify two key properties of these workloads: sparse agent activation and an estimable agent invocation order. Based on an analysis of representative workload classes, we introduce invocation distance, a unified abstraction that estimates the relative order in which agents will issue future LLM requests. Leveraging this abstraction, we present ScaleSim, a memory-efficient LLM serving system for large-scale multi-agent simulations. ScaleSim enables proactive prefetching and priority-based eviction, supports diverse agent-specific memory through a modular interface, and achieves up to 1.74$\times$ speedup over SGLang on simulation benchmarks. ScaleSim’s source code is available at https://github.com/PanZaifeng/KVFlow.} }
Endnote
%0 Conference Paper %T ScaleSim: Serving Large-Scale Multi-Agent Simulation with Invocation Distance-Based Memory Management %A Zaifeng Pan %A Yipeng Shen %A Zhengding Hu %A Zhuang Wang %A Aninda Manocha %A Zheng Wang %A Zhongkai Yu %A Yue Guan %A Yufei Ding %B Proceedings of the 43rd International Conference on Machine Learning %C Proceedings of Machine Learning Research %D 2026 %E Tong Zhang %E Miroslav Dudik %E Martin Jaggi %E Alekh Agarwal %E Sharon Li %E Dale Schuurmans %E Jerry Zhu %E Felix Berkenkamp %E Hanze Dong %E Alberto Bietti %F pmlr-v306-pan26k %I PMLR %P 95898--95913 %U https://proceedings.mlr.press/v306/pan26k.html %V 306 %X LLM-based multi-agent simulations are increasingly adopted across application domains, but remain difficult to scale due to GPU memory pressure. Each agent maintains private GPU-resident states, including models, prefix caches, and adapters, which quickly exhaust device memory as the agent count grows. We identify two key properties of these workloads: sparse agent activation and an estimable agent invocation order. Based on an analysis of representative workload classes, we introduce invocation distance, a unified abstraction that estimates the relative order in which agents will issue future LLM requests. Leveraging this abstraction, we present ScaleSim, a memory-efficient LLM serving system for large-scale multi-agent simulations. ScaleSim enables proactive prefetching and priority-based eviction, supports diverse agent-specific memory through a modular interface, and achieves up to 1.74$\times$ speedup over SGLang on simulation benchmarks. ScaleSim’s source code is available at https://github.com/PanZaifeng/KVFlow.
APA
Pan, Z., Shen, Y., Hu, Z., Wang, Z., Manocha, A., Wang, Z., Yu, Z., Guan, Y. & Ding, Y.. (2026). ScaleSim: Serving Large-Scale Multi-Agent Simulation with Invocation Distance-Based Memory Management. Proceedings of the 43rd International Conference on Machine Learning, in Proceedings of Machine Learning Research 306:95898-95913 Available from https://proceedings.mlr.press/v306/pan26k.html.

Related Material