English

Dynamic Long Short-Term Memory Based Memory Storage For Long Horizon LLM Interaction

Computation and Language 2025-07-08 v1 Artificial Intelligence

Abstract

Memory storage for Large Language models (LLMs) is becoming an increasingly active area of research, particularly for enabling personalization across long conversations. We propose Pref-LSTM, a dynamic and lightweight framework that combines a BERT-based classifier with a LSTM memory module that generates memory embedding which then is soft-prompt injected into a frozen LLM. We synthetically curate a dataset of preference and non-preference conversation turns to train our BERT-based classifier. Although our LSTM-based memory encoder did not yield strong results, we find that the BERT-based classifier performs reliably in identifying explicit and implicit user preferences. Our research demonstrates the viability of using preference filtering with LSTM gating principals as an efficient path towards scalable user preference modeling, without extensive overhead and fine-tuning.

Keywords

Cite

@article{arxiv.2507.03042,
  title  = {Dynamic Long Short-Term Memory Based Memory Storage For Long Horizon LLM Interaction},
  author = {Yuyang Lou and Charles Li},
  journal= {arXiv preprint arXiv:2507.03042},
  year   = {2025}
}

Comments

7 pages, 4 figures, 2 tables

R2 v1 2026-07-01T03:45:45.001Z