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.
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:
- Interface Layer: Employs a MemReader to translate natural language prompts into structured "MemoryCalls," identifying intent and required memory types.
- Operation Layer: Acts as the system's core. The MemScheduler prioritizes memory activation, while the MemLifecycle module manages state transitions.
- 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.
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