← Latest papers
🤖 AI

QUMem: Personalized Memory for Query-Conditioned User-State Inference in LLM Agents

QUMem is a structured memory framework that enhances LLM agent personalization by segmenting interaction histories into semantic episodes, decomposing them into independently retrievable memory types, and employing a multi-agent retrieval process to infer temporally and contextually valid user states, thereby achieving state-of-the-art performance on personalization benchmarks.

Original authors: Heng Wang, Yifei Li, Lingling Zhang, Pengyu Li, Xinyu Che, Xinyu Zhang, Zesheng Yang

Published 2026-08-18
📖 5 min read🧠 Deep dive

Original authors: Heng Wang, Yifei Li, Lingling Zhang, Pengyu Li, Xinyu Che, Xinyu Zhang, Zesheng Yang

Original paper licensed under CC BY 4.0 (http://creativecommons.org/licenses/by/4.0/). This is an AI-generated explanation of the paper below. It is not written or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer

In the rapidly evolving world of artificial intelligence, a new generation of computer programs has emerged that can do more than just answer questions; they can act as persistent assistants, remembering past conversations and adapting their behavior over time. These systems, known as agents, rely on a form of digital memory to function effectively. Just as a human assistant recalls a client's favorite coffee order or remembers that a project deadline was moved last week, these agents need to store and retrieve information from long histories of interaction. However, human memory is not a simple filing cabinet where every conversation is stored as a single, unchangeable block. Instead, we naturally separate facts from feelings, distinguish between a temporary mood and a lasting preference, and understand that the context of a conversation changes as time passes. For artificial intelligence to truly understand a person, it must be able to do the same: to sift through years of dialogue, separate the relevant details from the noise, and reconstruct a clear picture of who the user is right now.

For a long time, researchers have tried to solve this by building better ways to store and search these digital conversations. The prevailing approach has been to treat memory like a library where a user's query acts as a search term, pulling back the most similar chunks of text. While this works for simple questions, it struggles when the situation is complex. If a user changes their mind about a topic over several weeks, or if a single conversation contains both a fleeting complaint and a permanent rule they want to follow, standard systems often get confused. They might mix unrelated events together or fail to see how a past decision connects to a current request. The result is an assistant that remembers the words but misses the meaning, unable to tell the difference between a temporary preference and a core value.

A team of researchers at Xi'an Jiaotong University has proposed a new way to handle this challenge, introducing a system called QUMem. Rather than simply searching for similar text, this system is designed to understand the structure of a conversation and the specific role of the information within it. The researchers argue that to build a truly personalized assistant, the computer must first organize the raw history of interactions into meaningful stories, or "episodes," based on the natural flow of the conversation. It then breaks these stories down into three distinct types of information: concrete facts about what happened, specific preferences or rules the user has stated, and broader insights or principles that can be applied to new situations. By separating these elements, the system can keep the full context of an event while still allowing the assistant to pick out just the specific detail it needs for the current moment.

The core innovation lies in how the system processes a new request. Instead of asking the computer to guess what to look for, QUMem uses a three-step reasoning process. First, an agent analyzes the user's current question to determine exactly what information is needed to answer it properly. It asks itself whether the task requires a specific fact, a past preference, or a general rule. Next, a second agent plans a search, directing the system to look in the specific "shelves" where that type of information is stored, rather than searching the entire history at once. Finally, a third agent takes the retrieved pieces of evidence and weaves them together into a coherent picture of the user's current state. This final picture is not just a list of old memories; it is a synthesized understanding of who the user is in this specific moment, taking into account how their preferences have evolved and which rules still apply.

To test this approach, the researchers compared their system against several existing methods using two different benchmarks designed to measure how well an AI can remember and adapt to a user. In one test, the system had to answer questions about a user's changing preferences over long conversations. The new method significantly outperformed the others, achieving state-of-the-art performance on the PersonaMem benchmark. With the GPT-4o-mini model, QUMem improved overall accuracy to 61.02%, and with Gemini-3.5-flash, it reached 70.58%, compared to roughly 53% and 63% respectively for the next best systems. The improvement was even more pronounced when the task required the assistant to track how a preference had changed over time or to apply a past lesson to a completely new scenario. In a second test involving a mobile assistant that had to perform tasks based on user habits, the system again achieved the highest success rate, proving that this structured way of thinking about memory helps the computer take better action, not just give better answers.

The researchers also found that the way the system is built makes it more efficient. Older methods often trigger a heavy computational process every time a new message arrives, regardless of whether it is important. The new system waits until a conversation naturally concludes a topic before organizing the memory, and then it uses a fixed, small number of steps to sort the information. This means it uses far less computing power to build its memory, allowing it to handle long histories without slowing down. The study suggests that the key to long-term personalization is not just storing more data, but organizing it in a way that respects the difference between a fact, a preference, and a lesson. By treating the user's history as a collection of structured, evolving stories rather than a flat list of words, the system can infer a much clearer and more accurate understanding of the person it is serving.

Drowning in papers in your field?

Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.

Try Digest →