MemOS: A Memory OS for AI System

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

TL;DR

MemOS introduces a dedicated "Memory Operating System" for Large Language Models (LLMs) that treats memory as a first-class, schedulable system resource rather than a static parameter set or a stateless retrieval hack. By unifying plaintext, activation-based (KV-cache), and parameter-level memories into standardized units called MemCubes, it provides unprecedented controllability, plasticity, and evolvability for long-context reasoning and personalization.

What Problem Does This Paper Address?

Current LLMs are largely stateless during inference or rely on rigid, static parameters. While Retrieval-Augmented Generation (RAG) helps inject external knowledge, it acts as a stateless, on-the-fly workaround lacking lifecycle control, versioning, or deep integration with the model's internal representations.

This structural gap leads to "memory islands," high computational overhead for long contexts, and an inability to handle continuously evolving knowledge or robust cross-platform personalization. The authors argue that AI needs to move away from tool-based memory patches and transition into systematic memory governance.

Evolution of memory systems in LLMs

Methods

The authors propose MemOS, structured around a three-layer architecture mimicking traditional operating systems:

  1. Interface Layer: Contains MemReader (parses natural language into structured memory calls), a unified Memory API, and a Memory Pipeline for chaining operations.
  2. Operation Layer: Contains MemOperator (organizes memory logically and semantically via graphs and tags), MemScheduler (dynamically selects and transforms memory types based on task constraints), and MemLifecycle (manages state transitions: Generated, Activated, Merged, Archived, Expired).
  3. Infrastructure Layer: Enforces security and storage via MemGovernance (access control, privacy, auditing), MemVault (unified storage abstraction), MemLoader/Dumper, and MemStore (open-access publishing/subscription).

The core data abstraction is the MemCube, which encapsulates the memory payload along with rich metadata (timestamps, origin signatures, access control lists, and version chains). MemOS enables cross-type memory transformations, such as converting frequent plaintext memory into fast-access activation (KV-cache) memory, or distilling stable knowledge into parameter patches like LoRA.

Categorization of LLM knowledge and memory hierarchy

Datasets

The system was evaluated across four major memory-intensive and personalization benchmarks:

  • LoCoMo: For long-context, long-range memory and contextual integration.
  • LongMemEval: For testing chat assistants on long-term interactive memory and knowledge updates.
  • PreFEval: For evaluating personalized preference-following and response consistency.
  • PersonaMem: For dynamic user profiling and personalization.

Key Insights and Ideas

  • Memory as a Schedulable Resource: Instead of treating memory as a passive text cache, MemOS treats it like RAM/disk management in a computer OS, allowing dynamic "hot-swapping" and cache eviction as context shifts.
  • The "Mem-training" Paradigm: Moving beyond data-centric pretraining and alignment-centric post-training, the authors advocate for runtime memory evolution where models continuously collect, restructure, and propagate knowledge without expensive full-parameter updates.
  • Cross-Modality Memory Transformation: Knowledge flows through a lifecycle—starting as explicit plaintext, accelerating into activation states (KV-caches) when frequently used, and consolidating into implicit parameters (adapters) for long-term stability.

Key Results

  • MemOS (specifically the MemOS-1031 variant) achieved state-of-the-art performance across all evaluated benchmarks, consistently ranking first or second against strong baselines like Mem0, Zep, and MIRIX.
  • In the PreFEval benchmark, MemOS recorded the highest personalized response rate (77.2% with 0 turns, 71.9% with 10 turns) and the lowest preference-unaware error.
MemOS performance across benchmarks
  • For memory retrieval robustness, MemOS maintained a 100% success rate and low latency even under heavy request pressures up to 100 Queries Per Second (QPS).
  • KV-cache injection yielded massive Time-to-First-Token (TTFT) reductions; for instance, Qwen2.5-72B achieved a 91.4% reduction in TTFT under long-context, short-query conditions compared to direct prompt injection.

Limitations and Future Work

  • Cross-LLM Memory Sharing: Currently, sharing activation or parametric memories across completely different foundation model architectures remains a challenge. The authors plan to develop a Memory Interchange Protocol (MIP) to standardize formats and compatibility rules.
  • Self-Evolving MemBlocks: Future work aims to make memory units fully autonomous in self-optimization and reconstruction based on user feedback loops without manual supervision.
  • Scalable Memory Marketplace: The authors envision a decentralized memory marketplace (MemStore) supporting asset-level transactions and distributed evolution, which will require robust security and verification mechanisms.

Summary updated

BibTeX
@misc{li2025memos,
  author = {Zhiyu Li and Chenyang Xi and Chunyu Li and Ding Chen and Boyu Chen and Shichao Song and Simin Niu and Hanyu Wang and Jiawei Yang and Chen Tang 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 Huayi Lai and Hao Wu and Bo Tang and Zhengren 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 Haofen 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