TLDR: This research introduces Multi-hop Personalized Reasoning (MPR) tasks for LLM-based agents, requiring multi-step reasoning over user-specific information. It evaluates explicit and implicit memory mechanisms, finding explicit memory generally stronger but proposing HybridMem, a novel combination of both, to improve performance on long-hop tasks by clustering user data and fine-tuning specific model adapters. The study also emphasizes the importance of reasoning structures and provides a new MPR dataset.
Large language models (LLMs) are becoming increasingly vital for creating personalized AI agents. A core component enabling this personalization is memory, which allows these agents to store and utilize specific user information. While previous studies have touched upon memory for personalization, they often focused on simpler tasks like aligning with user preferences or answering basic questions.
However, real-world applications frequently demand more complex capabilities, specifically multi-hop reasoning over a large volume of personalized user data. This presents a significant challenge for existing memory approaches. To address this, a new research paper introduces the concept of “multi-hop personalized reasoning” (MPR) tasks. These tasks are unique because they cannot be solved using general knowledge alone; they strictly require personalized information and necessitate a chain of reasoning across multiple pieces of data, rather than a single fact.
Understanding Memory Mechanisms
The paper categorizes the memory of LLM-based agents into two primary forms: explicit and implicit. Explicit memory involves storing user information in a textual format and retrieving it as needed, often implemented through Retrieval-Augmented Generation (RAG) methods. Think of this as an agent looking up facts in a well-organized personal library.
Implicit memory, on the other hand, involves embedding user information directly into the model’s parameters through supervised fine-tuning (SFT). This is akin to the agent internalizing the information, making it part of its core knowledge.
The researchers conducted extensive experiments to evaluate how these different memory mechanisms perform on MPR tasks. They found that explicit memory generally showed clear advantages across various reasoning structures. However, it can face issues like “retrieval mismatch” during multi-step reasoning, where the correct information might not be retrieved at each intermediate step. Implicit memory, while capable of embedding knowledge, struggled to accurately store and utilize large amounts of detailed factual personalized information on its own.
The Role of Reasoning Structures
A key finding from the study is the significant impact of reasoning structures on task performance. The paper explored several structures: Naive Reasoning (single-step inference), Sequential Reasoning (step-by-step thinking, like Chain-of-Thought), Multi-path Reasoning (exploring multiple reasoning chains), and Decomposition Reasoning (breaking down tasks into sub-tasks). Sequential and Multi-path Reasoning consistently outperformed Naive and Decomposition Reasoning, especially for longer, more complex questions. This highlights that for multi-hop tasks, a structured, iterative approach to thinking is crucial.
Introducing HybridMem
Recognizing the limitations of relying solely on one memory type, the researchers explored hybrid approaches. They propose a novel method called HybridMem. This method addresses the challenges by dividing the entire collection of user statements into multiple clusters. For each cluster, a separate LoRA adapter (a lightweight fine-tuning technique) is trained. During the inference phase, the system identifies the most relevant LoRA adapter based on the current retrieved statements and uses that specific adapter for reasoning.
HybridMem demonstrated superior overall performance on multi-hop reasoning structures, with particularly notable improvements on long-hop questions. This suggests that by combining the strengths of explicit retrieval with localized implicit knowledge embedded in specialized adapters, agents can better navigate complex personalized reasoning tasks. The study also observed that while direct combinations of implicit and explicit memory could sometimes degrade performance (possibly due to a trade-off between general knowledge and reasoning capabilities), HybridMem consistently improved results across various RAG methods and even enhanced the Oracle baseline (which uses perfect information).
Also Read:
- Improving LLM Graph Reasoning with a Human-Inspired Collaborative Framework
- How Neuro-Symbolic AI Boosts Reasoning in Language Models
Dataset and Future Directions
To facilitate this research, the authors formally defined MPR tasks and constructed a new dataset specifically for evaluating memory mechanisms in multi-hop reasoning. This dataset contains 108,000 personalized reasoning tasks, ranging from 2 to 10 hops, and includes explicit reasoning paths with reference evidence. The project resources, including the code, are openly available at https://github.com/nuster1128/MPR.
This research provides valuable insights into building more capable and personalized LLM-based agents. Future work will focus on adaptively integrating implicit and explicit memory, as well as exploring multimodal personalized memory with advanced reasoning strategies.


