Agent-Kernel: A MicroKernel Multi-Agent System Framework for Adaptive Social Simulation Powered by LLMs

Yuren Mao, Peigen Liu, Xinjian Wang, Rui Ding, Jing Miao, Hui Zou, Mingjie Qi, Wanxiang Luo, Longbin Lai, Kai Wang, Zhengping Qian, Peilun Yang, Yunjun Gao, Ying ZhangarXiv 2025 · DOI

Abstract

Agent-Kernel is a novel "society-centric" Multi-Agent System (MAS) framework designed specifically for large-scale social simulations. By adopting a modular microkernel architecture that decouples cognitive Large Language Model (LLM) processes from physical environments and actions, it enables simulations with dynamic populations (birth/death) and scales to over 10,000 heterogeneous agents. This approach addresses the structural rigidity and reliability issues inherent in traditional agent-centric frameworks.

Introduction

While Large Language Models (LLMs) excel at role-playing, current frameworks for building multi-agent systems (such as AutoGen or AgentScope) often struggle with realistic social simulations. Most existing architectures are agent-centric, treating agents as self-contained units that "own" their action capabilities and environmental data. This creates a "structural rigidity" problem: adding a new individual to a simulated town might require manual updates to the social relationship lists of every other agent. Furthermore, these frameworks often lack a global "gatekeeper" to prevent LLM hallucinations from breaking simulation laws, such as an agent attempting to communicate during a silent exam.

To address these challenges, Agent-Kernel identifies four essential pillars for social simulation: Adaptability (handling dynamic populations), Configurability (runtime adjustments), Reliability (behavioral verification), and Reusability (modular code components).

Methodology: The Society-Centric Architecture

Agent-Kernel shifts the paradigm to a society-centric microkernel architecture. The core innovation is the separation of the "brain" (cognitive faculties) from the "body" and "world" (non-cognitive elements).

Comparison of Pipeline, Layered, and Modular MicroKernel Architectures. Agent-Kernel adopts the modular approach (c) to decouple agents from the environment and actions.

Key Architectural Features

  • Agent-Environment-Action Decoupling: The environment (maps, social networks) and actions (communication, tools) are managed by centralized modules. Agents perceive the environment and invoke actions through standardized interfaces rather than owning the logic themselves.
  • Modular Microkernel: A stable core system interacts with an extensible suite of plugins. This allows researchers to swap a rule-based planning plugin for an LLM-based one without rewriting the entire simulation.
  • The Controller: Acting as a centralized, stateless hub, the Controller validates every action request against predefined rules before execution, ensuring the simulation remains deterministic and reliable.
  • Distributed Execution: Using the Ray framework, the system organizes agents into "MasPods" (Multi-agent System Pods), allowing the simulation to scale across multiple GPUs and machines effectively.

Experimental Evaluation

The framework was evaluated using two complex simulation scenarios:

  1. Universe 25 (Mouse Utopia): A recreation of John Calhoun’s 1960s experiment. It tracked a population of mice from 8 individuals to over 300, simulating the entire biological lifecycle. The simulation successfully replicated the "behavioral sink"—a social collapse caused by high density rather than resource depletion.
  2. ZJU Campus Life: A "digital twin" of Zhejiang University’s campus, featuring a 2D replica map and a social network for 10,000 agents (students and faculty).

Key Results

  • Scalability: The ZJU Campus simulation successfully coordinated 10,000 agents, completing 7 simulated days in under 30 hours.
  • High Throughput: The system processed 1.26 billion tokens, averaging 3.75 million tokens per tick.
  • Efficiency: In the Universe 25 test, execution time per tick scaled linearly with the population. Memory usage was remarkably uniform across pods (1.36 GB average with a 4.86% coefficient of variation), proving effective load balancing.

Discussion and Conclusion

Agent-Kernel demonstrates that LLMs can serve as pure cognitive engines within a structured environment that handles the "physics" and consequences of actions. By centralizing the simulation logic in a microkernel, the framework avoids common bugs like "causal inversion" in asynchronous systems.

Despite its success, the system faces I/O bottlenecks; agent execution accounts for 93% of runtime due to LLM inference delays. Future work focuses on expanding the SocietyHub community platform to encourage the development of reusable simulation plugins and more sophisticated real-time societal steering tools.

Summary updated

BibTeX
@misc{mao2025agent,
  author = {Yuren Mao and Peigen Liu and Xinjian Wang and Rui Ding and Jing Miao and Hui Zou and Mingjie Qi and Wanxiang Luo and Longbin Lai and Kai Wang and Zhengping Qian and Peilun Yang and Yunjun Gao and Ying Zhang},
  title = {{Agent-Kernel: A MicroKernel Multi-Agent System Framework for Adaptive Social Simulation Powered by LLMs}},
  year = {2025},
  eprint = {2512.01610},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2512.01610},
}
Figure