MemCompile improves evidence retrieval for long-term conversational memory

From Memory Hits to Answerable Evidence: Query-Conditioned Memory Compilation for Long-Term Agent Memory

Artificial Intelligence

Summary

Remembering useful information spread across many conversations is hard for AI agents. The authors designed MemCompile, a method that first finds relevant pieces linked to a question, then carefully compiles and summarizes them into a clear, focused answer context. This approach helps the AI read and understand information better, leading to more accurate and efficient answers over long conversations.

What this means in practice

  • For chatbot developers: Create chatbots that recall relevant past conversation details more accurately by compiling dispersed evidence into concise answer contexts.
  • For customer support teams: Improve long-term automated support agents by enabling better retrieval and summarization of prior interactions to resolve customer issues efficiently.

Authors

Shangze Li, Yanyu Yao, Derong Xu, Zhi Zheng, Tong Xu

Abstract

Long-term agent memory requires recovering answer-relevant evidence dispersed across turns and sessions. Existing systems increasingly use structured memories and adaptive retrieval, yet often pass retrieved or expanded units directly to the reader, coupling memory addressing with evidence presentation and leaving the final context redundant or incomplete. To address this gap, we propose MemCompile, a query-conditioned evidence compilation framework for long-term conversational memory. Given a query, the Address Plane locates relevant support through compact source-linked descriptors and capacity-aware Cells, while a normalization boundary resolves heterogeneous retrieval hits to stable SourcePacket identities. Its Evidence Plane then allocates a bounded evidence budget across complementary packets, admits limited additional support, and renders the retained claims associated with each selected packet into an answer-ready context. MemCompile achieves 80.52% Judge Accuracy on LoCoMo and extends the empirical quality-cost Pareto frontier to a higher-quality regime. Its strong performance on LongMemEval-S further suggests that the benefits of query-conditioned compilation generalize across long-term conversational-memory benchmarks.