The Retriever Should Remember: Experience-Amortized Reranking for Long-Term Agent Memory
This paper introduces EARM, an experience-amortized reranking framework that learns to reuse previously acquired LLM relevance scores via causal matrix completion to significantly improve long-term agent memory retrieval accuracy while substantially reducing inference overhead.
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
Imagine a conversation that stretches over months or years, where a person asks questions about events that happened long ago, or pieces together facts scattered across dozens of previous exchanges. For a computer program designed to act as a helpful assistant, keeping track of this vast history is a monumental task. These programs, often called agents, store their past interactions in an external library of memories. However, having a library is not the same as knowing how to find the right book. When a new question arrives, the system must quickly sift through thousands of stored memories to find the few that are actually useful. Traditionally, the system uses a quick, broad search based on word similarity, and if it needs to be more precise, it asks a powerful language model to read the question and the candidate memories to judge their relevance. But here lies a frustrating inefficiency: every time a new question is asked, the system starts from scratch. It forgets the lessons it learned from the last time it searched, discarding the scores it calculated and the patterns it noticed, as if it were a student who studies for a test, forgets everything immediately after, and then has to relearn the same material for the next exam.
Researchers at The Chinese University of Hong Kong, Shenzhen, have proposed a way to break this cycle of forgetting. They introduced a new framework called EARM, which stands for Experience-Amortized Reranking for Memory. The core idea is simple yet profound: the system should not just remember the content of past conversations, but also remember how it successfully found information in the past. Instead of treating the judgment of relevance as a one-time cost, the researchers designed a system that treats these judgments as a form of experience that accumulates over the agent's lifetime. By keeping a record of which memories were useful for which types of questions, the system learns a map of its own memory. This map allows it to predict the relevance of new memories without having to ask the powerful language model to read every single one.
In their experiments, the researchers tested this approach on a dataset of long conversations containing complex questions that required the agent to connect information from different times. They compared their new method against two standard approaches: a basic system that relies only on word similarity, and a more powerful system that asks the language model to score every single candidate memory. The results showed that the new method, which uses a mix of direct scoring and learned predictions, significantly outperformed the basic system. It improved the accuracy of the answers by up to 6.62 percent, a substantial gain in a field where small improvements are hard to come by. Perhaps more importantly, the system remained highly effective even when it was only allowed to directly score a tiny fraction of the candidates—specifically, just 17.5 percent. In this sparse setting, the system used its accumulated experience to fill in the gaps, estimating the relevance of the remaining memories based on the patterns it had learned from previous interactions.
The mechanism behind this success relies on the idea that relevance is not random. Certain memories tend to be useful for specific kinds of questions, and certain questions tend to trigger similar patterns of relevance across different memories. The researchers built a system that records these connections in a structured way. When a new question arrives, the system selects a small, strategic sample of memories to have the language model score directly. It then uses the history of past scores to estimate the relevance of the rest. This process is similar to how a seasoned librarian might know that a patron asking about a specific historical event likely needs a particular set of documents, even if the patron hasn't mentioned them yet. The system does not guess blindly; it uses the "experience" of past retrievals to guide its search, effectively learning how to access its own knowledge base.
One of the most striking findings was that the system could recover most of the benefits of a full, exhaustive search while using only a quarter of the computational effort. By the time the system had processed enough questions to build a robust history, it could make highly accurate decisions with very little new input. The researchers found that the memories selected through these learned estimates were not just filler; they added a measurable amount of value, improving the final answer quality by an additional 0.78 to 2.79 percent beyond what the directly scored memories provided on their own. This suggests that the system was successfully identifying useful information that the initial, quick search had missed, simply by recognizing the underlying structure of its own memory.
The study also highlighted a shift in how we might think about artificial intelligence memory. Traditionally, the focus has been on storing more information or representing it better. This work suggests that a truly long-lived agent must also learn how to retrieve that information efficiently. The researchers argue that an agent should not just accumulate content, but also accumulate experience about how that content has proven useful. By treating retrieval scores as a persistent state rather than a disposable byproduct, the system transforms the act of searching from a repetitive expense into a learned capability. This approach allows the agent to become smarter over time, not just by knowing more, but by getting better at finding what it already knows.
The researchers acknowledge that this method relies on certain conditions to work effectively. It assumes that the questions asked over time share some common themes or structures, and that the memories themselves remain stable. If every question were completely unrelated to the last, or if the meaning of the stored memories changed rapidly, the system would struggle to find patterns to learn from. However, in the context of long-term conversations where users often return to similar topics or build on previous ideas, the method proved robust. The system was able to maintain its advantage even as the number of direct scores dropped, showing that the accumulated experience was a reliable guide.
Ultimately, this research offers a new perspective on the efficiency of artificial intelligence. It demonstrates that the cost of making a system smarter does not have to grow linearly with the amount of information it holds. By allowing the system to remember its own search history, the researchers have shown that it is possible to build agents that are both knowledgeable and efficient. The system does not need to re-evaluate everything from scratch every time; it can stand on the shoulders of its past decisions. This approach moves the field closer to creating agents that can truly operate over long periods, adapting and refining their behavior as they interact with the world, much like a human who learns not just from what they experience, but from how they navigate their own history.
Drowning in papers in your field?
Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.