GO TO A SECTION

↑ ↓ to navigate · Enter to openExplore all sections →
FDEInterviews logo
arXiv preprint

MemOS: A Memory OS for AI System

A memory operating system for LLM apps: text, KV-cache and parameter memories in one governed unit, the MemCube, with scheduling, lifecycle and access control. Strong benchmarks, run by the vendor.

Breakdown by FDE Interviews · 12 min read · Updated

About the original · 2025
AUTHORS
Li, Xi, Li, Chen, et al.
FROM
MemTensor (Shanghai), Institute for Advanced Algorithms Research Shanghai, Renmin University, Zhejiang University, Shanghai Jiao Tong University, et al.
PUBLISHED
Jul 2025 · arXiv preprint
CITED BY
141Semantic Scholar · Oct 2026
IN THIS BREAKDOWN · 10 SECTIONS

You can read 23% of this breakdown.

01

The paper in one minute

A language model "remembers" in three ways. Parameter memory is what training put in the weights. Activation memory is the attention key-value cache built while reading a context. Plaintext memory is text supplied from outside: documents, notes, retrieved passages. In most applications these are handled separately, by training, by the serving engine and by a RAG pipeline, with no common way to track where a memory came from, who may use it, when it should expire, or when it should move from one form to another.

Zhiyu Li, Feiyu Xiong and a large team at MemTensor (Shanghai) and several Chinese universities propose MemOS, a memory operating system that manages all three. Its basic unit is the MemCube: a payload (text, a KV cache, or a parameter module such as a LoRA adapter) plus metadata in three groups. Descriptive identifiers: timestamp, origin (extracted by inference, entered by a user, retrieved, or fine-tuned) and semantic type. Governance attributes: access scope, lifespan, priority, and compliance fields such as sensitivity tags and watermarks. Usage indicators: access frequency and recency, which tell the system whether a memory is hot or cold.

MemOS manages MemCubes through three layers. The interface layer parses requests into structured memory calls (MemReader) and exposes a Memory API. The operation layer organizes and retrieves memories (MemOperator), decides what to load and in which form (MemScheduler), and tracks states over time (MemLifecycle). The infrastructure layer enforces access control, retention and audit (MemGovernance), stores memories in repositories (MemVault), imports and exports them (MemLoader, MemDumper), and shares them between agents and organizations (MemStore). Memories can also change form: frequently used text can become a KV cache for faster decoding, and stable knowledge can be distilled into parameters.

The evaluation compares the MemOS system with six memory products (MIRIX, Mem0, Zep, Memobase, MemU and Supermemory), all on GPT-4o-mini, across LoCoMo, LongMemEval, PrefEval and PersonaMem. MemOS had the best overall score on each, and the lowest latency under load in an API stress test. A separate experiment shows that injecting stored memory as a KV cache cuts time to first token sharply compared with pasting it into the prompt.

THE IDEA, VISUALLY
THREE MEMORY TYPES, ONE UNIT Plaintext text, docs, graphs Activation KV cache of text Parameter LoRA-style modules frequently used text can become KV cache; stable knowledge, parameters MemCube = payload + metadata descriptive: timestamp, origin, semantic type governance: access scope, lifespan, priority, sensitivity tags usage: access frequency and recency (hot or cold) THREE LAYERS Interface MemReader parses requests · Memory API Operation MemOperator · MemScheduler · MemLifecycle Infrastructure MemGovernance · MemVault · Loader/Dumper · MemStore Governance is part of the design: access control, retention, audit logs and masking on shared memory. The paper describes a marketplace (MemStore) for publishing and installing memories. LOCOMO, GPT-4O-MINI, LLM JUDGE (TABLE 3) MemOS-1031 75.8 Memobase 72.01 Mem0 64.57 MIRIX 64.33 Zep 59.22 MemU 56.55 Supermemory 55.34 bars start at 40 · temporal: Memobase 81.20 > MemOS 75.18 overall F1: Memobase 50.18 > MemOS 45.27 KV-CACHE MEMORY, QWEN3-8B (TABLE 8) 6,064-token stored memory, short query pasted into prompt 2.04 s injected as KV cache 0.12 s build the cache (once) 0.93 s Each cached memory holds ~144 KiB per token on this model: a 6,064-token memory is about 0.83 GiB of GPU memory. Evaluations were run by the MemOS team on rival systems.
MemOS wraps three kinds of memory, text, KV cache and parameters, in a governed unit and manages them with OS-style layers. It led the overall scores on four memory benchmarks against six memory products, in an evaluation run by its own developers.
Research notes: the problem, approach and results
75.80

LoCoMo overall LLM-judge score with GPT-4o-mini, against 72.01 for Memobase and 64.57 for Mem0

2.04 → 0.12 s

time to first token for a 6,064-token memory on Qwen3-8B, pasted into the prompt against injected as KV cache

≈ 144 KiB

KV cache per token for a Qwen3-8B-sized model, so one 6,064-token memory needs about 0.83 GiB of GPU memory

THE PROBLEM

LLM applications keep knowledge in three disconnected places: model weights, the prompt and retrieval indexes. None has lifecycle control, versioning or permissions, so personalization, updates and sharing across users are handled by ad hoc code.

THE IDEA

Treat memory as a system resource. Put text, activation (KV cache) and parameter (adapter) memories in MemCubes with metadata for provenance, access, lifespan and usage, and manage them through interface, operation and infrastructure layers, including moving hot memories between types.

THE RESULT

With GPT-4o-mini, MemOS scored 75.80 on LoCoMo (LLM judge) and 77.8 on LongMemEval, ahead of Memobase, Mem0, Zep and others overall but not in every category. Injecting a stored memory as KV cache cut time to first token by up to 94%, excluding build time.

02

Why it matters to an FDE

Enterprise customers ask the same questions about any memory feature: whose memory is this, who can see it, how long is it kept, can it be deleted, and why did the assistant use it? MemOS is useful mainly as a checklist for those questions.

Metadata is the product. Origin, access scope, lifespan, sensitivity and usage per memory item are what make memory governable. Design them in from the start, whatever system you use.

KV-cache memory is a latency tool, not free storage. Reusing a precomputed cache for a stable context, such as a policy manual or a customer profile, can cut time to first token by an order of magnitude. Each cached token costs GPU memory, about 144 KiB on an 8B-class model, so only a few hot contexts belong there.

Vendor benchmarks need a second look. The authors built MemOS and also configured and ran their competitors. They chose each method's configuration "based on its best validation performance", and stress-tested rivals' hosted APIs. Re-run the comparison on your customer's data before choosing.

Parameter memory is the slow tier. Turning knowledge into adapters is the hardest transition to govern: it cannot be deleted item by item. Keep personal data out of it.

THE FULL BREAKDOWN

Understand the mechanism. Try it on a real problem.

Unlock this breakdown and 99 more papers.

Premium opens every paper in full, plus every answer, concept, course and guide on the site. One payment for six months of access.

6 months · One payment · No auto-renewal

Get Premium · ₹2,000 / $25
  • ◇1 architecture diagram
  • </>1 runnable code experiment
  • ▦2 results tables
  • ?5 interview questions with answers
  1. 03Key takeaways

    The memory taxonomy, MemCube metadata, the modules, the results, and misreadings to avoid

    Free account
  2. 04How it works

    The request path through the three layers, memory transitions, and the evaluation setup

    Premium
  3. 05The numbers that matter

    Overall and per-category results, context sizes, KV timings, and the API stress test

    Premium
  4. 06Try it yourself

    When a KV-cache memory pays for its build time, and how much GPU memory it occupies

    Premium
  5. 07Where it breaks

    The limits of the system and of its evaluation

    Premium
  6. 08Using it on a deployment

    Designing governed memory for an enterprise assistant with MemOS's ideas

    Premium
  7. 09Interview angles

    Five questions this paper prepares you for, with answer hints

    Premium
Back to the paper library →