NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

AIOS: LLM Agent Operating System

Kai Mei, Xi Zhu, Wujiang Xu, Mingyu Jin, Wenyue Hua, Zelong Li, Shuyuan Xu, Ruosong Ye, Yingqiang Ge, Yongfeng Zhang

TL;DR

This paper introduces AIOS, an operating system designed to manage and optimize the deployment of LLM-based agents. By isolating LLM resources and services into a kernel, AIOS significantly improves efficiency and scalability, achieving up to 2.1x faster execution for agents.

What Problem Does This Paper Address?

The rapid rise of LLM-based agents has brought immense potential, but their deployment is hampered by critical challenges in resource management. Current agent frameworks often grant direct, unrestricted access to LLM and tool resources, leading to inefficient utilization, potential vulnerabilities, and a lack of proper scheduling. This absence of a robust operating system layer hinders concurrent processing and limits overall system efficiency, especially when multiple agents compete for limited LLM resources. The paper aims to solve this by providing a dedicated OS for LLM agents.

Methods

AIOS introduces a novel architecture that separates agent applications from LLM-specific services and resources into an "AIOS kernel." This kernel provides fundamental OS-like services including:

  • Scheduling: Orchestrating agent requests and managing their execution.
  • Context Management: Efficiently handling LLM context, including snapshotting and restoration for interrupted tasks.
  • Memory Management: Managing transient agent-specific data and implementing swapping between RAM and disk.
  • Storage Management: Handling persistent data storage for agents, including file operations and vector database integration.
  • Access Control: Regulating cross-agent resource access and implementing user intervention for critical operations.

To facilitate integration, AIOS also provides an AIOS SDK, a comprehensive suite of APIs that abstract the kernel's functionalities, allowing developers to focus on agent logic. The architecture is layered into Application, Kernel, and Hardware layers, promoting modularity and separation of concerns.

Datasets

The paper evaluates AIOS on several standard agent benchmarks:

  • HumanEval: For evaluating code generation models.
  • MINT (Code subset): For evaluating LLMs' ability to solve challenge tasks using multi-turn interactions, including code generation and tool utilization.
  • GAIA: A benchmark for general AI assistants, assessing logical reasoning, multi-modal processing, web navigation, and tool utilization.
  • SWE-Bench-Lite: A software engineering benchmark focused on resolving issues in Python repositories by generating patch files.

Key Insights and Ideas

  • LLMs as "CPU Cores": AIOS treats LLM instances as akin to CPU cores, abstracting them behind a unified interface. This modular approach allows for flexible integration of various LLM providers and deployment options.
  • Context Management for Efficiency: The context manager's ability to snapshot and restore LLM states is crucial for handling long-running LLM calls without blocking the system, significantly improving efficiency.
  • Agent-Centric Resource Management: By providing dedicated memory and storage managers, AIOS ensures that agents have the resources they need without monopolizing them, leading to better overall system performance.
  • SDK as an Abstraction Layer: The AIOS SDK is key to making the system usable, abstracting complex kernel functionalities and allowing developers to build agents more easily.

Key Results

  • Performance Maintenance: AIOS consistently maintains or enhances agent performance across standard benchmarks, with some cases showing improvements due to AIOS's prompt enhancement and tool call validation mechanisms.
  • Significant Efficiency Gains: AIOS achieves up to a 2.1x increase in execution speed for serving agents across different frameworks, demonstrating its effectiveness in optimizing system throughput.
  • Reduced Latency: The average waiting time for agents is substantially reduced, indicating improved responsiveness.
  • Scalability: AIOS demonstrates linear scalability, efficiently handling increasing numbers of concurrent agents without significant performance degradation.

Limitations and Future Work

  • Scheduling Strategies: While FIFO and RR are implemented, future work could explore more advanced algorithms that perform dependency analysis among agent requests and optimize resource allocation.
  • Context Management: Further research can focus on more efficient context management techniques, including context compression and more sophisticated time-efficient methods.
  • Memory and Storage Architecture: The paper suggests exploring shared memory and storage approaches for agent collaboration and communication, as well as hierarchical storage solutions for optimized retrieval.
  • Safety and Privacy: Future work needs to address protective measures against attacks like LLM jailbreaking and unauthorized memory access, and explore advanced encryption and watermarking techniques for data privacy and intellectual property protection.

Summary updated

BibTeX
@inproceedings{mei2025aios,
  author = {Kai Mei and Xi Zhu and Wujiang Xu and Mingyu Jin and Wenyue Hua and Zelong Li and Shuyuan Xu and Ruosong Ye and Yingqiang Ge and Yongfeng Zhang},
  title = {{AIOS: LLM Agent Operating System}},
  booktitle = {COLM},
  year = {2025},
  url = {https://openreview.net/forum?id=L4HHkCDz2x},
}
Figure