Remember What Matters: Utility-Aware Adaptive Memory Management for Long-Term LLM Agents

Long-term conversational agents powered by large language models (LLMs) require effective mechanisms for retrieving relevant evidence from historical interactions. Although lexical retrieval, semantic similarity, and hybrid retrieval provide complementary capabilities, relying on a single ranking signal may fail to place the most informative conversational sessions near the top of the retrieved list. This challenge is particularly important in long-term question answering, where the correct response may depend on information distributed across multiple historical sessions. This paper proposes Remember What Matters (RWM), a conversational memory retrieval framework that combines multi-source candidate generation with cross-encoder-based reranking. RWM constructs a candidate pool using hybrid retrieval, BM25, and semantic similarity, and then refines the ranking by combining cross-encoder relevance scores with a normalized hybrid-retrieval signal. The approach aims to improve evidence retrieval while limiting the computational cost of cross-encoder inference through candidate-pool restriction. RWM is evaluated on the cleaned LongMemEval-S dataset, comprising 500 questions and 23,854 historical sessions. The selected configuration uses a candidate pool of 20 sessions and a fusion parameter of 0.20, determined through validation. On a held-out test set of 200 questions, RWM achieves an EvidenceRecall@5 of 0.9684, a Hit@5 of 1.000, a StrictRecall@5 of 0.930, and a mean reciprocal rank (MRR) of 0.9395. Compared with the Hybrid baseline, EvidenceRecall@5 improves by 1.17 percentage points. Bootstrap analysis yields a 95% confidence interval of [0.0025, 0.0225] for the difference in EvidenceRecall@5, indicating a positive improvement under the reported evaluation protocol. These findings support the potential of combining complementary retrieval sources with cross-encoder reranking for conversational evidence retrieval. They do not, however, establish the effectiveness of a complete persistent-memory lifecycle policy. Further experiments across datasets and resource configurations are required to assess generalization, computational overhead, and the integration of retrieval with memory admission, updating, and retention. Large Language Models, Conversational Memory, Long-Term Question Answering, Information Retrieval, Hybrid Retrieval, Cross-Encoder Reranking, Retrieval-Augmented Generation, Evidence Retrieval.

Authors

Institutions

Publication Details

Journal
Research Square
Published
2026-11-26
DOI
https://doi.org/10.21203/rs.3.rs-11870850/v1
Primary Topic
Information Retrieval and Search Behavior
Type
preprint
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
NOV
preprint

Remember What Matters: Utility-Aware Adaptive Memory Management for Long-Term LLM Agents

Mohamed Hechmi
Research Square
Information Retrieval and Search Behavior
preprint

Remember What Matters: Utility-Aware Adaptive Memory Management for Long-Term LLM Agents

Mohamed Hechmi
preprint en

Abstract

Long-term conversational agents powered by large language models (LLMs) require effective mechanisms for retrieving relevant evidence from historical interactions. Although lexical retrieval, semantic similarity, and hybrid retrieval provide complementary capabilities, relying on a single ranking signal may fail to place the most informative conversational sessions near the top of the retrieved list. This challenge is particularly important in long-term question answering, where the correct response may depend on information distributed across multiple historical sessions. This paper proposes Remember What Matters (RWM), a conversational memory retrieval framework that combines multi-source candidate generation with cross-encoder-based reranking. RWM constructs a candidate pool using hybrid retrieval, BM25, and semantic similarity, and then refines the ranking by combining cross-encoder relevance scores with a normalized hybrid-retrieval signal. The approach aims to improve evidence retrieval while limiting the computational cost of cross-encoder inference through candidate-pool restriction. RWM is evaluated on the cleaned LongMemEval-S dataset, comprising 500 questions and 23,854 historical sessions. The selected configuration uses a candidate pool of 20 sessions and a fusion parameter of 0.20, determined through validation. On a held-out test set of 200 questions, RWM achieves an EvidenceRecall@5 of 0.9684, a Hit@5 of 1.000, a StrictRecall@5 of 0.930, and a mean reciprocal rank (MRR) of 0.9395. Compared with the Hybrid baseline, EvidenceRecall@5 improves by 1.17 percentage points. Bootstrap analysis yields a 95% confidence interval of [0.0025, 0.0225] for the difference in EvidenceRecall@5, indicating a positive improvement under the reported evaluation protocol. These findings support the potential of combining complementary retrieval sources with cross-encoder reranking for conversational evidence retrieval. They do not, however, establish the effectiveness of a complete persistent-memory lifecycle policy. Further experiments across datasets and resource configurations are required to assess generalization, computational overhead, and the integration of retrieval with memory admission, updating, and retention. Large Language Models, Conversational Memory, Long-Term Question Answering, Information Retrieval, Hybrid Retrieval, Cross-Encoder Reranking, Retrieval-Augmented Generation, Evidence Retrieval.

Research Square
University of Carthage (TN)
Information Retrieval and Search Behavior
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.

Laika access coming soon