MemFit: Efficient Long-Term Agentic Memory
cs.AI
Submitted: 2026-10-01
Updated: 2026-10-01
Code: https://github.com/mitchellpiehl/MemFit
License: http://creativecommons.org/licenses/by/4.0/
The gist: Long-term memory systems for large language models (LLMs) have gained popularity for extending reasoning capabilities across applications.
Abstract
Long-term memory systems for large language models (LLMs) have gained popularity for extending reasoning capabilities across applications. Current memory systems rely on LLM agents to organize and consolidate memory, resulting in costly, inefficient write operations. To address this limitation, we propose MemFit, a long-term memory system for conversational agents that reduces the cost and latency of memory operations. Unlike existing systems that rely on expensive LLM calls for memory construction or discard surface-level details through compression, MemFit stores each turn verbatim in an append-only store with near-instantaneous, LLM-free insertion, indexing turns with segment summaries rather than replacing them. Additionally, MemFit uses an LLM-free, multi-path retrieval strategy that combines lexical and semantic signals with cross-encoder reranking over caption- augmented episodes in both textual and multimodal settings. Empirical results on three widely used benchmarks, LoCoMo, MemGallery, and LongMemEval-S, show that MemFit achieves state-of-the-art performance while reducing memory construction time and cost several-fold, providing a scalable and efficient solution for persistent agentic memory.
Sources
- GPT-4 Technical Report
- Qwen2.5-VL Technical Report
- Mem-Gallery: Benchmarking Multimodal Long-Term Conversational Memory for MLLM Agents
- Walking Down the Memory Maze: Beyond Context Limit through Interactive Reading
- Mem0: Building Production-Ready AI Agents with Scalable Long-Term Memory
- LightMem: Lightweight and Efficient Memory-Augmented Generation
- Retrieval-Augmented Generation for Large Language Models: A Survey
- Gemma 3 Technical Report
- RA-DIT: Retrieval-Augmented Dual Instruction Tuning
- SimpleMem: Efficient Lifelong Memory for LLM Agents
- Evaluating Very Long-Term Conversational Memory of LLM Agents
- Passage Re-ranking with BERT
- MemGPT: Towards LLMs as Operating Systems
- From Isolated Conversations to Hierarchical Schemas: Dynamic Tree Memory Representation for LLMs
- Hierarchical Memory for High-Efficiency Long-Term Reasoning in LLM Agents
- LongMemEval: Benchmarking Chat Assistants on Long-Term Interactive Memory
- Qwen3 Technical Report
- Retrieval-Augmented Multimodal Language Modeling
- UniversalRAG: Retrieval-Augmented Generation over Corpora of Diverse Modalities and Granularities
- Recursive Language Models
Related papers
- MAVEN-T: Reinforced Heterogeneous Distillation for Real-Time Multi-Agent Trajectory Prediction
- Model Discovery Agent: LLM-assisted Bayesian experiment design for data-efficient discovery of mechanistic world models
- Agents' Last Exam
- The Clinician's Veto: Navigating Trust, Liability, and Uncertainty in Autonomous AI Prescribing
- MindHelper: Closed-Loop Embodied Mental-State Reasoning for Precision Intervention
- Incumbent Advantage: Brand Bias and Cognitive Manipulation Dynamics in LLM Recommendation Systems