MemOS: A Memory OS for AI System

Zhiyu Li, Shichao Song, Chenyang Xi, Hanyu Wang, Chen Tang, Simin Niu, Ding Chen, Jiawei Yang, Chunyu Li, Qingchen Yu, Jihao Zhao, Yezhaohui Wang, Peng Liu, Zehao Lin, Pengyuan Wang, Jiahao Huo, Tianyi Chen, Kai Chen, Kehang Li, Zhen Tao, Junpeng Ren, Huayi Lai, Hao Wu, Bo Tang, Zhenren Wang, Zhaoxin Fan, Ningyu Zhang, Linfeng Zhang, Junchi Yan, Mingchuan Yang, Tong Xu, Wei Xu, Huajun Chen, Haofeng Wang, Hongkang Yang, Wentao Zhang, Zhi-Qin John Xu, Siheng Chen, Feiyu Xiong · DOI

Abstract

MemOS is a dedicated Memory Operating System designed to address the memory management crisis in Large Language Models (LLMs). By treating memory as a first-class, schedulable resource, MemOS enables long-term personalization and knowledge consistency through a unified framework of plaintext, activation, and parameter-level memories. Evaluation across multiple benchmarks demonstrates that MemOS achieves state-of-the-art performance and significant inference speedups.

Introduction

Current Large Language Models (LLMs) face a significant memory management crisis. While they excel at processing immediate context, they remain fundamentally "forgetful" over long durations. Existing systems rely on two extremes: static parameters frozen during training and short-lived context windows. While Retrieval-Augmented Generation (RAG) provides external text access, it lacks lifecycle control, leading to issues with long-range dependencies, knowledge evolution, and personalization.

The conceptual evolution of LLM memory management, culminating in the MemOS framework.

MemOS addresses these bottlenecks by treating memory as a first-class, schedulable system resource. It introduces a unified framework that manages knowledge across different tiers—plaintext, activation, and parameters—allowing AI agents to maintain consistency and learn user preferences over time.

Methodology

The architecture of MemOS mirrors a traditional computer operating system, but is optimized for knowledge management rather than hardware.

The MemCube Unit

The fundamental building block is the MemCube. Unlike simple text chunks, a MemCube encapsulates a payload (plaintext, KV-cache tensors, or LoRA parameter deltas) alongside rich metadata. This metadata tracks provenance, versioning, and lifecycle status, allowing the system to manage the "age" and relevance of information through states like Generated, Activated, Merged, Archived, or Expired.

System Architecture

MemOS is structured into three distinct layers:

  1. Interface Layer: Employs a MemReader to translate natural language prompts into structured "MemoryCalls," identifying intent and required memory types.
  2. Operation Layer: Acts as the system's core. The MemScheduler prioritizes memory activation, while the MemLifecycle module manages state transitions.
  3. Infrastructure Layer: Provides underlying services for storage (MemVault), security (MemGovernance), and sharing (MemStore).

A standout feature is KV-Cache Injection, which allows frequently used text to be pre-transformed into activation tensors and injected directly into the model’s attention layers, bypassing the traditional prefill bottleneck.

Evaluation and Results

The performance of MemOS was evaluated against several state-of-the-art baselines, including MIRIX, Mem0, and Zep, across a suite of memory-intensive benchmarks: LoCoMo, LongMemEval, PersonaMem, and PreFEval.

Performance comparison of MemOS-1031 against various baselines across memory benchmarks.

Key Findings

  • SOTA Performance: MemOS-1031 achieved the highest scores across all tested benchmarks. Notably, it reached a score of 77.2 on PreFEval (0-t) and 75.8 on LoCoMo, significantly outperforming standard RAG approaches.
  • Efficiency Gains: By utilizing KV-cache injection, MemOS achieved a 91.4% reduction in Time to First Token (TTFT) for the Qwen2.5-72B model in long-context scenarios.
  • System Robustness: In stress tests, MemOS maintained a 100% success rate for memory operations under high pressure (100 queries per second), whereas baselines like MemU saw success rates drop below 10%.

Discussion and Future Work

MemOS introduces the "Mem-training" paradigm, where models continuously transform runtime experiences into structured memory units. This shift from passive caching to active scheduling allows for superior personalization and governance.

Future development focuses on the Memory Interchange Protocol (MIP) to enable cross-LLM interoperability, allowing different models to share the same MemCubes. Additionally, the authors envision "Self-Evolving MemBlocks" and a decentralized memory marketplace for expert-curated modules.

Summary updated

BibTeX
@misc{li2025memos,
  author = {Zhiyu Li and Shichao Song and Chenyang Xi and Hanyu Wang and Chen Tang and Simin Niu and Ding Chen and Jiawei Yang and Chunyu Li and Qingchen Yu and Jihao Zhao and Yezhaohui Wang and Peng Liu and Zehao Lin and Pengyuan Wang and Jiahao Huo and Tianyi Chen and Kai Chen and Kehang Li and Zhen Tao and Junpeng Ren and Huayi Lai and Hao Wu and Bo Tang and Zhenren Wang and Zhaoxin Fan and Ningyu Zhang and Linfeng Zhang and Junchi Yan and Mingchuan Yang and Tong Xu and Wei Xu and Huajun Chen and Haofeng Wang and Hongkang Yang and Wentao Zhang and Zhi-Qin John Xu and Siheng Chen and Feiyu Xiong},
  title = {{MemOS: A Memory OS for AI System}},
  year = {2025},
  eprint = {2507.03724},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2507.03724},
}
Figure