arXiv:2610.23812cs.LGOct 2026

Manuscript Offprint

arXiv:2610.23812

Learning Personalized Memory Gating from Delayed One-Sided Feedback

Kaixuan Ji, Zixiang Chen, Wenting Zhao, Cheng Qian, Heng Wang, Weizhi Zhang, Jielin Qiu, Liangwei Yang, Quanquan Gu, Silvio Savarese, Shelby Heinecke, Huan Wang

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

Long-term memory enables language-model agents to personalize future interactions, but a finite memory bank cannot preserve every extracted fact. Existing memory gating policies are typically shared across users and therefore fail to account for user-specific patterns of future reuse. In this paper, we study memory gating at the fact level. We first propose a retrieval-based labeling strategy that labels each fact by whether it is later retrieved and incorporated into responses. We then formulate online memory gating as contextual apple tasting with delayed one-sided feedback, and propose Warm-Start UCB, which combines offline learning from existing data with online adaptation to the current user. Our theoretical analysis establishes a high-probability regret upper bound of O~(Tϵ∧dT)\widetilde{O}(T\epsilon \wedge d\sqrt{T}) when the delay window is at most O(T)O(\sqrt{T}), where TT is the total number of rounds, ϵ\epsilon is the initialization error, dd is the dimension of the feature map, and O~(⋅)\widetilde{O}(\cdot) hides constant and poly-logarithmic factors. The results of our experiment demonstrate that our method outperforms all baselines under different memory budgets and history lengths, establishing it as a promising personalized memory gating policy.

1 Introduction

Memory systems, which extract and store important information during human-AI interaction, have been widely deployed in large language model (LLM)-based agents (Packer et al., 2023; Zhong et al., 2024; Chhikara et al., 2025). Typically, a memory system extracts candidate facts from each dialogue, stores a subset in a memory bank, and retrieves relevant entries for later queries. Because storage and context budgets are finite, the system must decide which facts are sufficiently valuable to preserve.

Existing systems generally make this decision using criteria shared across users, such as heuristics like whether a fact expresses a stable preference, profile attribute, or ongoing goal (Park et al., 2023; Zhong et al., 2024), or using policies learned from long-context training data (Yan et al., 2026; Yu et al., 2026; Sun et al., 2026). Nevertheless, such universal criteria overlook the heterogeneity across different users. In et al. (2026) formalized this issue at the session level and introduced PerMem-Bench, together with several LLM-based storage-gating baselines. Their results show substantial headroom between perfect personalized gating and existing causal baselines, motivating methods that learn directly from user-specific interaction outcomes.

To learn directly from user-specific interaction outcomes, we first need to identify a feedback signal grounded in the interaction that reflects the utility of each fact. While a deployed system does not observe whether a discarded fact would have been useful, for a stored fact, later retrieval provides a natural signal of future utility: a fact is utilized if it is hit by the retrieval and incorporated into the response in some later conversation. This implies that whether a fact gets retrieved and confirmed by the LLM agent can serve as a flag of utility, and therefore provides natural and reliable guidance for learning a memory gating policy.

The retrieval-based feedback has two outstanding features: the feedback is only available on those added facts, and it becomes meaningful only after some unknown delay. To capture this nature, we formally frame the personalized memory gating problem as an apple tasting with one-sided delayed feedback problem (Helmbold et al., 1992; Vernade et al., 2020). We further propose a two-stage learning strategy, Warm-Start UCB. The first stage learns the utility pattern from data of existing users. The second stage adapts to user-specific patterns during online interaction via an upper confidence bound (UCB) algorithm. Our theoretical analysis and empirical results verify the effectiveness of Warm-Start UCB as a gating policy. Our contributions are summarized as follows:

• We propose a labeling pipeline for learning personalized memory gating, which derives utility labels from downstream retrieval outcomes, refined through LLM-judge verification. This labeling strategy provides a direct feedback for memory gating learning, without relying on heuristic or downstream reward signals.

• We frame personalized memory gating as an apple tasting with one-sided delayed feedback problem. To solve this problem, we propose a two-stage learning strategy, Warm-Start UCB. Our theoretical analysis implies that Warm-Start UCB effectively leverages the offline data while evolving towards user-specific patterns through online interaction.

• We empirically evaluate Warm-Start UCB on our benchmark across a range of memory budgets and interaction lengths. Experiment results show that Warm-Start UCB consistently outperforms previous LLM-based methods and the naive admit-all baseline, suggesting that Warm-Start UCB serves as an effective gating policy for personalized memory.

Notation. We use [n][n] to denote the set {1,…,n}\{1, \ldots, n\}. In this work, we use lowercase letters to represent scalars, and denote vectors and matrices by lower and uppercase boldface letters respectively. Given a vector x∈Rd\mathbf{x} \in \mathbb{R}^d, we denote the vector's L2L_2-norm by ∥x∥2\|\mathbf{x}\|_2. We further define ∥x∥Σ=x⊤Σx\|\mathbf{x}\|_{\Sigma} = \sqrt{\mathbf{x}^\top \Sigma \mathbf{x}} given a positive semidefinite matrix Σ∈Rd×d\Sigma \in \mathbb{R}^{d \times d}. For two semidefinite matrices Σ,Λ∈Rd×d\Sigma, \Lambda \in \mathbb{R}^{d \times d}, we use Σ⪰Λ\Sigma \succeq \Lambda if x⊤(Σ−Λ)x≥0\mathbf{x}^\top (\Sigma - \Lambda) \mathbf{x} \geq 0 for any x∈Rd\mathbf{x} \in \mathbb{R}^d. We reserve I\mathbf{I} for the identity matrix. For nonnegative sequences {xn}\{x_n\} and {yn}\{y_n\}, we write xn=O(yn)x_n = O(y_n) interchangeably with xn≲ynx_n \lesssim y_n if lim sup⁡n→∞xn/yn<∞\limsup_{n \to \infty} x_n / y_n < \infty, yn=Ω(xn)y_n = \Omega(x_n) or xn≳ynx_n \gtrsim y_n if xn=O(yn)x_n = O(y_n), and yn=Θ(xn)y_n = \Theta(x_n), or alternatively, yn∼xny_n \sim x_n, if xn=O(yn)x_n = O(y_n) and xn=Ω(yn)x_n = \Omega(y_n). We further employ O~(⋅),Ω~(⋅)\widetilde{O}(\cdot), \widetilde{\Omega}(\cdot), and Θ~(⋅)\widetilde{\Theta}(\cdot) to hide polylog factors. We use 1{⋅}\mathbb{1}\{\cdot\} to denote the indicator function. For any x,y∈Rx, y \in \mathbb{R}, we denote x∧y=min⁡{x,y}x \wedge y = \min\{x, y\} and x∨y=max⁡{x,y}x \vee y = \max\{x, y\}.

References (92)