May the Memory Be With You: Efficient and Infinitely Updatable State for Large Language Models
Large language models (LLMs) excel at natural language tasks but lack persistent state management for personalized and adaptive interactions. We propose a framework that endows these models with stateful capabilities by combining retrieval-augmented generation (RAG) and low-rank adaptation (LoRA). Our approach recasts the LLM as an editable component that retains hierarchical knowledge, analogous to deferred merge operations in log-structured merge (LSM) trees. The system integrates short-term context with long-term memory by storing accumulated context in a retrieval system while periodically training and combining lightweight LoRA adapters. Preliminary evaluations demonstrate improved state retention and query performance compared to both standard LLMs and RAG-augmented models, supporting our vision for scalable, stateful AI systems.
Authors
- Laurent Bindschaedler (ORCID: https://orcid.org/0000-0003-0559-631X)
- Ε. N. Chukwu (ORCID: https://orcid.org/0009-0006-5043-4247)
Institutions
- Max Planck Institute for Software Systems (DE)
Publication Details
- Published
- 2025-03-30
- DOI
- https://doi.org/10.1145/3721146.3721951
- Primary Topic
- Topic Modeling
- Type
- article
- Field-Weighted Citation Impact
- 0.00