DeferMem: Query-Time Evidence Distillation via Reinforcement Learning for Long-Term Memory QA

· Source: Computation and Language · Field: Technology & Digital — Artificial Intelligence & Machine Learning, Emerging Technologies & Innovation · Depth: Expert, quick

Summary

DeferMem is a novel long-term memory framework designed to enhance large language model (LLM) agents' performance in question answering tasks involving extensive conversational histories. Addressing the challenge of scattered and irrelevant evidence, DeferMem decouples memory processing into high-recall candidate retrieval and query-conditioned evidence distillation. It employs a lightweight segment-link structure to organize raw history and retrieve broad candidates at query time. A key component is its memory distiller, trained using DistillPO, a reinforcement learning algorithm. DistillPO formulates post-retrieval evidence distillation as a structured action involving message selection and evidence rewriting, optimized via a decomposed-and-gated reward pipeline. On benchmarks like LoCoMo and LongMemEval-S, DeferMem significantly surpasses strong baselines, achieving the highest QA accuracy with the fastest runtime and zero commercial-API token cost for memory operations.

Key takeaway

For Machine Learning Engineers developing LLM agents that require robust long-term memory, DeferMem offers a compelling alternative to traditional memory systems. You should consider its decoupled retrieval and RL-driven distillation approach to improve QA accuracy and system efficiency. This framework eliminates commercial-API token costs for memory operations, providing a cost-effective solution for managing extensive conversational histories and reducing downstream denoising efforts.

Key insights

DeferMem improves LLM long-term memory QA by decoupling retrieval from query-conditioned evidence distillation using RL.

Principles

Method

DeferMem organizes history with a segment-link structure for broad candidate retrieval. It then applies a DistillPO-trained memory distiller for message selection and evidence rewriting, optimizing with a decomposed-and-gated reward pipeline.

In practice

Topics

Best for: AI Engineer, Research Scientist, AI Scientist, Machine Learning Engineer, NLP Engineer

Related on AIssential

Open in AIssential →

Editorial summary, takeaway, and curation by AIssential. Original article published by Computation and Language.