aiming-lab/SimpleMem
SimpleMem: Efficient Lifelong Memory for LLM Agents — Text & Multimodal
What it solves
SimpleMem addresses the inefficiency of long-term memory for LLM agents. Traditional systems either store raw, redundant interaction history—which consumes excessive tokens—or use slow, expensive reasoning loops to filter noise. SimpleMem provides a way to store and retrieve memories with high information density, allowing agents to recall more information while using significantly fewer tokens.
How it works
SimpleMem operates as a unified memory stack consisting of three integrated components:
- SimpleMem (Text Core): Uses a three-stage pipeline (Semantic Structured Compression, Online Semantic Synthesis, and Intent-Aware Retrieval Planning) to distill unstructured dialogues into compact, self-contained facts with resolved coreferences and absolute timestamps.
- Omni-SimpleMem (Multimodal): Extends memory to text, images, audio, and video using entropy-driven selective ingestion, progressive retrieval (hybrid FAISS + BM25), and knowledge graph augmentation for cross-modal reasoning.
- EvolveMem (Self-Evolution): An autonomous research loop (Evaluate $\rightarrow$ Diagnose $\rightarrow$ Propose $\rightarrow$ Guard) that continuously tunes retrieval hyperparameters and discovers new retrieval dimensions (like query decomposition) to improve performance over time.
Who it’s for
It is designed for developers building LLM-based agents that require long-term, cross-session memory across multiple modalities (text, image, audio, video) and those who want to optimize retrieval performance without manual hyperparameter tuning.
Highlights
- Multimodal Support: Handles text, images, audio, and video memory.
- Semantic Lossless Compression: Reduces inference-time token consumption by approximately 30x compared to raw history.
- Self-Evolving Retrieval: Automatically optimizes its own retrieval configuration through an LLM-driven closed-loop process.
- Broad Integration: Works via Python integration or as an MCP (Model Context Protocol) server for clients like Claude Desktop and Cursor.
Related
- Project
- Project
- Project
- Project
- Project