HiMeS: Hippocampus-inspired Memory System for Personalized AI Assistants
Hailong Li, Feifei Li, Wenhui Que, Xingyu Fan
TL;DR
HiMeS addresses memory limitations in retrieval-augmented generation for personalized AI assistants in industrial settings. It fuses a short-term memory extractor trained with reinforcement learning to compress dialogue and proactively retrieve documents with a partitioned long-term memory that stores user histories and re-ranks content via an attention-inspired mechanism. Across a real-world industrial dataset, HiMeS improves QA and contextual alignment, with ablations showing both memory modules are essential and the HSER RL reward yields strong performance. The framework demonstrates adaptability across different LLM backends, offering a practical, plug-and-play memory layer for reliable, personalized knowledge services.
Abstract
Large language models (LLMs) power many interactive systems such as chatbots, customer-service agents, and personal assistants. In knowledge-intensive scenarios requiring user-specific personalization, conventional retrieval-augmented generation (RAG) pipelines exhibit limited memory capacity and insufficient coordination between retrieval mechanisms and user-specific conversational history, leading to redundant clarification, irrelevant documents, and degraded user experience. Inspired by the hippocampus-neocortex memory mechanism, we propose HiMeS, an AI-assistant architecture that fuses short-term and long-term memory. Our contributions are fourfold: (1) A short-term memory extractor is trained end-to-end with reinforcement learning to compress recent dialogue and proactively pre-retrieve documents from the knowledge base, emulating the cooperative interaction between the hippocampus and prefrontal cortex. (2) A partitioned long-term memory network stores user-specific information and re-ranks retrieved documents, simulating distributed cortical storage and memory reactivation. (3) On a real-world industrial dataset, HiMeS significantly outperforms a cascaded RAG baseline on question-answering quality. (4) Ablation studies confirm the necessity of both memory modules and suggest a practical path toward more reliable, context-aware, user-customized LLM-based assistants.
