arXiv(opens in a new tab)cs.CLAug 2026Cited by 1 paper on PaperVantage

Manuscript Offprint

arXiv:2608.29605

Hindsight Memory-PRM: Supervising Memory Management with Auditable Hindsight Credit

Haoxuan Jia, Yang Liu, Yingguang Yang, Yancheng Chen, Chongyang Zhang, Hao Zheng, Qian Li, Yulin Huang, Jianshen Zhang, Yongzhi Qi, Shang Luo, Kefu Xu, Hao Peng, Junyu Lu, Du Cheng, Philip S. Yu, Bin Chong

ABSTRACT

Memory operations of long-horizon LLM agents are difficult to supervise because their downstream utility becomes observable only after later retrieval and answering. Memory trajectories nevertheless provide machine-readable evidence: which entries are retrieved, cited, and necessary for an answer under a controlled deletion test. Hindsight Memory-PRM uses this evidence offline to train an operation-conditioned memory-utility critic and online to assign intervention-calibrated, entry-level presence credit. The credit is propagated along version chains as an action-level proxy reward, without per-operation human labels or full-continuation replay for every action. On held-out LoCoMo, a local 8B policy reaches 77.5% under a fixed shared reader, compared with 65.1% for its API teacher and 74.7% for the strongest reproduced external configuration, while using one eighth as many context tokens as that configuration. The method reaches 79.0% on LongMemEval. Controlled comparisons separate the effect of observational feedback from that of intervention-calibrated credit, and the learned policy organizes memories into multi-version entries; open-loop controls with similar structure do not recover the full improvement.

1 INTRODUCTION

LLM agents operating over long horizons must actively manage an external memory (Packer et al., 2023; Chhikara et al., 2025), deciding turn by turn what to write, merge, or skip. These operations strongly affect downstream success, but their value is not observable when they are taken. A write may become the sole basis of an answer thousands of tokens later, while a skip may discard a fact that will later be queried. With a single episode-level outcome and dozens of decisions, every operation receives the same coarse signal. In our setting, nearly half of the rollout groups receive identical exam scores, leaving no within-group gradient for those steps.

Existing work addresses this problem in two main ways. Prompt-driven managers (Mem0 (Chhikara et al., 2025), A-Mem (Xu et al., 2025), MemBuilder (Shen et al., 2026)) select operations from the current content, but their standard objectives do not directly use subsequent retrieval or answer support. RL-trained managers (Memory-R1 (Yan et al., 2025), Mem- α\alpha (Wang et al., 2025)) optimize an outcome-level scalar, which does not identify the contribution of each operation. Process reward models alleviate an analogous problem in mathematical reasoning through human step labels (Lightman et al., 2024; Uesato et al., 2022) or Monte-Carlo resampling with a checkable final result (Wang et al., 2024; Setlur et al., 2025; Choudhury, 2025). Memory operations lack a direct step-level correctness signal, and naively resampling them would require replaying the remaining stream at a cost that grows with the horizon.

Our starting point is that memory operations leave machine-readable evidence of delayed utility inside the trajectory. A written entry may later be retrieved, and a retrieved entry may be cited in a correctly answered question. These logs provide partial attribution evidence without per-operation human labels or replaying every continuation. We increase the density of this evidence with auto-generated, source-anchored probe questions and controlled deletion tests ( §3.2§3.2); we refer to this setting as interventional self-supervision. The approach extends hindsight relabeling (Andrychowicz et al., 2017) and return redistribution (Arjona-Medina et al., 2019; Harutyunyan et al., 2019), but uses logged retrieval, citation, and intervention outcomes rather than a learned contribution analysis.

Hindsight Memory-PRM uses the audit trail at two levels. Offline, retrieval, citation, and counterfactual evidence define ordinal targets for an operation-conditioned memory-utility critic; counterfactual examples supply supervision for otherwise missing cases such as skipped writes and incorrect merges. Online, each probe exam assigns entry-level credit from retrievals, citations, and one controlled deletion-and-reanswer. This measured credit is combined with a coverage penalty and an annealed critic-shaping term in the GRPO advantage (Shao et al., 2024). The measured terms do not depend on the critic, the shaping perturbation has a uniform bound that tightens with annealing (Singh & Yee, 1994), and suffix-min shaping is insensitive to isolated increases in non-minimal scores.

On LoCoMo (Maharana et al., 2024) (5 held-out dialogues, 975 questions), a local 8B policy reaches 77.5%, compared with 65.1% for its API teacher, 69.7% for budget-matched Mem0 (Chhikara et al., 2025), and 74.7% for Mem0's official k=200k=200 configuration using 8×8\times as many context tokens. The controlled reward-design ladder ( 63.4→70.2→77.563.4 \rightarrow 70.2 \rightarrow 77.5) shows that intervention-calibrated branches add substantial gains beyond denser observational feedback. The policy develops a multi-version organization; open-loop and rule-based controls that use the same interface do not recover the full benefit. The result also holds on LongMemEval (Wu et al., 2024) (79.0%), while transfer experiments show that the storage schema remains domain-dependent ( §4.6§4.6).

Contributions. (i) We formulate hindsight relabeling for memory operations, including zero detection under a stated retrieval invariant and controlled deletion tests for source-anchored probes. (ii) We combine an operation-conditioned memory-utility critic with intervention-calibrated presence credit in GRPO, and characterize the shaping bound and suffix-min rule. (iii) On two long-term memory benchmarks, the resulting local 8B manager outperforms its teacher and the reproduced baselines under a shared reader; controlled comparisons isolate the contributions of observational and intervention-based feedback. (iv) We analyze the learned multi-version organization, its sensitivity to chain-credit normalization, and the effect of the storage schema on cross-benchmark transfer.

References (3)

  • what is it now
  • speaker → attribute
  • purpose — steps — applicable context