MemCalib: Benchmarking and Optimizing Memory Use in LLM Agents

Ruike Cao, Fanyu Zhao, Fugen Yao, Liang Dong, Jian Xu +3 more
9/21/2026
3 citations
cs.LGcs.AI
benchmark-datasetrl

No official code found. Best implementation: Quark-Medical/MemCalib (8 stars, Python, Apache-2.0, last commit 2026-09-23).

Abstract

The effectiveness of agent memory ultimately depends on whether the underlying LLM gives each memory in context an appropriate degree of influence over its response. Yet this capability has remained largely overlooked.

Show full abstract

To assess this capability, we introduce MemCalib, a benchmark grounded in realistic memory-system scenarios for evaluating memory use and advancing optimization algorithms. Results on the MemCalib test set reveal that frontier open- and closed-source models struggle to use memory appropriately. They frequently over-use or under-use memory rather than matching each proposition's actual use to its target level, leading to biased, low-quality responses. Experiments with common post-training algorithms, including group relative policy optimization and on-policy self-distillation, further reveal a clear directional skew: trained models improve in one direction while deteriorating in the other. We therefore propose MemCalib-RL, an ordered bidirectional counterfactual credit-assignment algorithm that separates over- and under-use signals and localizes their credit to response tokens through exact atom ablation. Results across model families and scales (Qwen3-8B, Ministral-3-8B-Instruct, and Qwen3.5-35B-A3B) show that MemCalib-RL achieves the best overall performance while better balancing over-use and under-use, with gains generalizing beyond MemCalib in external benchmark evaluation. Further experiments support its design choices and robustness and provide insight into its training dynamics.

View on arXivView PDF

Code Implementations(1)

Apache-2.0

This repository contains the official implementation code and related datasets for the paper: “MemCalib: Benchmarking and Optimizing Memory Use in LLM Agents”.

80Python, ShellSep 20, 20262 months agoApache-2.0

Similar Papers

Cite this paper

@article{cao2026memcalib,
  title  = {MemCalib: Benchmarking and Optimizing Memory Use in LLM Agents},
  author = {Ruike Cao and Fanyu Zhao and Fugen Yao and Liang Dong and Jian Xu and Yifei Zhao and Han Zhang and Li Xiao},
  year   = {2026},
  eprint = {2609.24259},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2609.24259v3}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2609.24259.svg)](https://codeofpaper.com/paper/2609.24259)

Discussion