arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2507.03042cs.CLcs.AI
收藏

基于动态长短期记忆的存储用于长时程LLM交互

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

University of Washington(华盛顿大学)

Yuyang Lou, Charles Li

AI总结:

本文提出Pref-LSTM框架,将BERT分类器与LSTM记忆模块结合,通过软提示注入冻结LLM,以轻量方式实现长对话中的用户偏好建模。

摘要:

大语言模型(LLMs)的记忆存储正成为一个日益活跃的研究领域,尤其是在实现跨长对话的个性化方面。我们提出了Pref-LSTM,这是一个动态且轻量级的框架,它将基于BERT的分类器与LSTM记忆模块相结合,该模块生成记忆嵌入,然后以软提示注入的方式输入到冻结的LLM中。我们通过合成方式构建了一个包含偏好与非偏好对话轮次的数据集,用于训练基于BERT的分类器。尽管我们基于LSTM的记忆编码器未能取得显著结果,但我们发现基于BERT的分类器在识别显式和隐式用户偏好方面表现可靠。我们的研究证明了使用偏好过滤与LSTM门控机制作为通向可扩展用户偏好建模的高效路径是可行的,且无需大量额外开销和微调。

英文摘要:

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.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑