Manuscript Offprint

arXiv:2608.26895

When Memory Takes Gradients: Collaborative Vector Memory for Agentic Recommender Systems

Hanchong Chen, Xing Tang, Lingjie Li, Xiongfeng Shan, Xiuqiang He

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

Abstract

Agentic recommender systems ground each decision of a large language model (LLM) in a persistent memory of the user, and in existing agents that memory is text: a narrative written and maintained by further LLM calls. Text limits this memory in two ways. It is updated one rewrite at a time, so exploiting the full interaction history is prohibitively expensive; and collaborative evidence, graded similarity over an entire catalog, does not survive translation into sentences. We propose CoVeMem (Collaborative Vector Memory), which vectorizes the collaborative core of the agent's memory. Frozen LightGCN user and item states form the memory bank; at each decision, the candidate set itself retrieves the most relevant historical states, which enter the LLM's context as soft tokens alongside a light textual profile. Contrastive alignment to item-semantic anchors, followed by listwise co-training with masked candidates, teaches the model to read these states and to rank through them; a pointwise yes/no readout scores each candidate. Across four instruction-grounded recommendation benchmarks, CoVeMem matches or exceeds the strongest collaborative text-memory agent on 19 of 20 metric cells while requiring zero additional LLM calls for memory maintenance beyond the shared static profile, against per-interaction calls for text memory. The memory now takes gradients: the full interaction history, out of reach for text, becomes available as training data for what the agent remembers and for how it reads what it remembers.

1 Introduction

Recommendation has recently seen a growing line of work that hands the decision to an LLM agent (Zhao et al. 2024; Peng et al. 2025; Zhang et al. 2025b). Agentic recommender systems place such an agent between the user and the recommendation platform, where it maintains a persistent memory of the user and adjudicates the platform's candidates on the user's behalf (Xu et al. 2025; Chen et al. 2026). Within this paradigm, memory is what lifts the agent above stateless prompting (Liu et al. 2023). It accumulates what the agent learns about the user across sessions and carries the taste that the current instruction leaves unsaid. How well the agent serves the user therefore depends not only on what its memory retains, but also on how its contents are represented and made available to the LLM.

In recent work, the agent's persistent memory has almost always been represented as text. As illustrated in Figure 1(a), the interaction history is distilled into an evolving user narrative through serial LLM rewrites, and this textual memory is subsequently read back into the agent's prompt at decision time. Existing systems have expanded both what this narrative contains and how it evolves, from static profiles (Xu et al. 2025) and self-reflective updates (Zhang et al. 2024) to collaborative facets (Chen et al. 2026), personalized policy skills (Tao et al. 2026), and memory coupled with tool use (Tang et al. 2025). Yet their common textual form imposes two fundamental limits. First, the memory is maintained serially, one LLM rewrite at a time. Absorbing each new interaction requires another call, making it expensive and slow to exploit the full interaction history. Second, collaborative structure is compressed when translated into sentences. MemRec propagates writes along the interaction graph and distills neighboring-user facets into the narrative (Chen et al. 2026), while AgentCF co-adjusts user and item memories after each interaction to imitate collaborative filtering in text (Zhang et al. 2024). Yet such memories can name only a few neighbors or facets at a time, whereas the underlying collaborative structure consists of graded relations spanning an entire catalog. Much of this geometry is lost during serialization, because text carries only what it names. Existing work therefore leaves open how to build a persistent agent memory that preserves catalog-wide collaborative structure, can be trained from the full interaction history, and remains directly usable by the LLM without recurring textual rewrites.

Existing text memories can be rewritten from feedback, but ranking gradients cannot directly update the stored text. We therefore make the collaborative memory system trainable by recommendation objectives. Interaction data can then shape the stored user and item states, while ranking losses optimize the way the LLM reads them. The central challenge is to make such a memory usable by the LLM. Collaborative states are not LLM tokens, and the full state bank is too large to fit into the prompt. The agent must first retrieve the states most relevant to the current candidate set and then translate them into a form the LLM can interpret. Even after this translation, the model may still rely on candidate titles and ignore the collaborative states.

We address these problems with CoVeMem (Collaborative Vector Memory), illustrated in Figure 1(b). CoVeMem learns the contents of its collaborative memory from the in-

Agentic recommender

Figure

(a) Text memory

(b) CoVeMem (ours)

Figure 1: (a) Existing agents maintain a text narrative through serial LLM rewrites, so the memory keeps only what it names. (b) CoVeMem keeps catalog-wide collaborative states and learns to read them from ranking gradients, so the full interaction history becomes training data.

interaction graph and learns how the LLM reads that memory from the ranking task. LightGCN user and item states form the memory bank (He et al. 2020), while a short textual profile retains explicit user information. For each decision, the candidate set retrieves the historical states most relevant to the current choice. A projector maps the retrieved history, user, and candidate states into soft tokens. The projector and a LoRA adapter together form the trainable read interface of the memory, which we call the parametric memory reader. We train this reader through semantic alignment followed by masked listwise co-training. Candidate masking creates comparisons that cannot be resolved from titles alone, so the model must learn to rank through the collaborative tokens. At inference, the agent reads both forms of memory and scores each candidate with a pointwise yes/no query. Across four instruction-grounded benchmarks from InstructRec (Xu et al. 2025), CoVeMem exceeds the strongest text-memory baseline in nearly all evaluated settings, with especially clear gains in interaction-dense domains. It also avoids recurring LLM calls for memory maintenance beyond the one-time textual profile.

Our contributions are summarized as follows:

• We identify fundamental limitations of text-based memory in agentic recommendation. Serial LLM rewrites make memory costly to maintain, and ranking gradients cannot directly update the stored text. Textual serialization also loses catalog-wide collaborative structure.

• We propose CoVeMem, a collaborative memory built from graph-trained user and item states. It retrieves history relevant to each candidate set and maps these states into the LLM through its parametric memory reader, formed by the projector and LoRA adapter. Masked listwise co-training creates comparisons that titles alone cannot resolve and trains the model to rank through the memory.

• We conduct extensive experiments on four InstructRec benchmarks. CoVeMem exceeds the strongest text-memory baseline in nearly all evaluated settings, with especially clear gains in interaction-dense domains. It also avoids recurring LLM calls for memory maintenance.

References (34)