MemVault: A Three-Layer Hierarchical Memory Management System for Cost-Optimized LLM Applications

MemVault: A Three-Layer Memory Management Architecture for Cost-Optimized LLM Applications Large Language Models (LLMs) deployed in production environments face two compounding challenges: statelessness across conversation sessions and escalating inference costs at scale. This paper presents MemVault, a full-stack system implementing a three-layer persistent memory architecture designed to address both limitations. The system organizes conversational context into Working Memory (Redis, session-scoped), Episodic Memory (PostgreSQL, LLM-summarized), and Long-Term Persona Memory (ChromaDB, vector-embedded). A background MemScheduler autonomously promotes memory segments across layers based on recency and importance scoring. Additionally, a query complexity classifier dynamically routes inference requests to appropriately sized language models, reducing overall inference costs. Empirical evaluation demonstrates significant reductions in token overhead and improved retrieval efficiency compared to naive full-context approaches. MemVault provides a scalable, cost-efficient, and production-ready architecture for long-term conversational AI systems.

Authors

Institutions

Publication Details

Journal
Zenodo (CERN European Organization for Nuclear Research)
Published
2026-02-21
DOI
https://doi.org/10.5281/zenodo.18725217
Primary Topic
Natural Language Processing Techniques
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

MemVault: A Three-Layer Hierarchical Memory Management System for Cost-Optimized LLM Applications

R Suriya Anand
Zenodo (CERN European Organization for Nuclear Research)
Natural Language Processing Techniques
article

MemVault: A Three-Layer Hierarchical Memory Management System for Cost-Optimized LLM Applications

R Suriya Anand
article en

Abstract

MemVault: A Three-Layer Memory Management Architecture for Cost-Optimized LLM Applications Large Language Models (LLMs) deployed in production environments face two compounding challenges: statelessness across conversation sessions and escalating inference costs at scale. This paper presents MemVault, a full-stack system implementing a three-layer persistent memory architecture designed to address both limitations. The system organizes conversational context into Working Memory (Redis, session-scoped), Episodic Memory (PostgreSQL, LLM-summarized), and Long-Term Persona Memory (ChromaDB, vector-embedded). A background MemScheduler autonomously promotes memory segments across layers based on recency and importance scoring. Additionally, a query complexity classifier dynamically routes inference requests to appropriately sized language models, reducing overall inference costs. Empirical evaluation demonstrates significant reductions in token overhead and improved retrieval efficiency compared to naive full-context approaches. MemVault provides a scalable, cost-efficient, and production-ready architecture for long-term conversational AI systems.

Zenodo (CERN European Organization for Nuclear Research)
Ramakrishna Mission Vidyamandira (IN)
Openalex Percentile: Top 50%
Natural Language Processing Techniques
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.