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

Manuscript Offprint

arXiv:2609.02265

CAPTURE: Disentangling Preference Drift from Memory Poisoning in Personalized LLM Agents

S M Asif Hossain, Ruksat Khan Shayoni, Md Kishor Morol

Abstract

Personalized language agents keep a persistent memory so they can adapt to a user over weeks rather than turns, and that memory is also the attack surface. When an agent reads a statement that contradicts what it already believes, it has no principled way to separate a genuine change of mind from a temporary context switch, a sarcastic aside, or an instruction smuggled in through a retrieved document. Personalization methods treat every update as authentic, memory defenses reject untrusted content without modeling how real preferences evolve, and the two failure modes therefore trade against one another. We formulate the problem as a continuous-time partially observable decision process over a latent user state, and we prove that the error of any rule reading only recency and provenance is bounded below by how closely a feasible adversary can imitate the statistics of a legitimate revision, that conditioning on the interaction history is never worse and is strictly better under a stated condition, and that a bounded-cost clarifying question enlarges the achievable error region under a stated condition. CAPTURE tracks the latent state with a neural differential equation, writes hypotheses into a ledger stratified by timescale, queries the user when its belief is too uncertain to act on, and audits the causal influence of its own citations by counterfactual removal. On 480 held-out episodes from 96 users, CAPTURE reaches a 71.5% win rate against 69.3% for a baseline given identical supervision and 66.1% for the strongest heuristic, holds fixed-policy poisoning to 11.5%, and adheres to 83.5% of genuine updates. An adaptive attacker with the released weights raises that to 24.7%, at which point a provenance filter is marginally more secure and considerably less adaptive, so we report both numbers rather than the favorable one. Because a system trained against our own generator could be learning that generator, we also evaluate the frozen system zero-shot on an independently built benchmark and replay the interaction histories of 40 users collected over two to three weeks.

1 Introduction

A language agent that remembers its user is more useful than one that does not. Persistent memory lets an assistant learn that a reviewer wants terse feedback, that an engineer writes Rust and not Go, and that a clinician wants citations attached to every claim (Park et al., 2023; Packer et al., 2023; Zhong et al., 2024). Benchmarks now measure how well assistants hold such facts across hundreds of turns (Maharana et al., 2024; Wu et al., 2025), and personalization has become a research program in its own right (Salemi et al., 2024; Zhang et al., 2025). The same channel that carries this learning also carries attacks. Retrieved web pages, shared documents, and tool outputs all enter the memory of a deployed agent, and an adversary who controls any of them can write into the user model directly (Greshake et al., 2023; Chen et al., 2024; Dong et al., 2025).

The difficulty is that the two are observationally similar at the point of decision. Consider an agent that has recorded a preference for detailed technical explanations. In week six a sentence appears in the working context saying the user now wants short summaries with no code. That might be the user, who has moved to a management role. It might be the user in one setting, wanting brevity in standups and depth in design reviews. It might be sarcasm after a long answer. Or it might be a payload in the third paragraph of a retrieved README, aimed at collapsing the agent into a mode where it pastes unreviewed code. All four produce the same evidence inside a single turn.

We call this the preference-authenticity ambiguity, and current systems resolve it by assumption in one of two directions. Personalization pipelines optimize for adaptation speed and treat the history as ground truth, which makes them steerable by whoever writes into it (Gao et al., 2024; Zollo et al., 2025). Injection defenses refuse content whose provenance is not trusted (Chen et al., 2025; Hines et al., 2024; Debenedetti et al., 2025), which is sound when the threat is external but blind to the case that matters here, where a legitimate user revises a legitimate belief through a legitimate channel. Neither position is stable. An agent that accepts contradictions is a liability, and one that rejects them ceases to personalize after the first month.

We treat authenticity as a latent variable to be inferred rather than a property to be asserted. Section 2 formalizes the memory update as a continuous-time partially observable decision problem and bounds the error of any rule reading only recency and provenance. An adversary choosing the surface form of an injected claim can match the recency profile of a genuine revision, and a user revising through a summarized document can match the provenance profile of an attack, so each family of heuristic fails on the case the other handles.

CAPTURE implements this view. It carries a continuous-time belief over the user state, integrated with a neural differential equation (Chen et al., 2018; Rubanova et al., 2019), so evidence arriving at irregular intervals is discounted by a learned function of elapsed time rather than a fixed per-turn schedule. It commits hypotheses to a graph-structured ledger with separate stable, contextual, and transient layers, so a claim about a weekend project cannot overwrite a claim about professional identity. When the belief over the correct action is close to uniform, the agent asks, converting an uncertain write into a single clarifying turn. A safety selector sits outside the personalization loop and cannot be moved by the ledger. Every cited memory is verified by removal and re-decoding, so explanations report causal influence rather than retrieval rank (Jain and Wallace, 2019; Turpin et al., 2023).

To measure any of this we needed data separating the four cases, and no existing benchmark does. D-PREFGUARD contains 2,400 longitudinal episodes across five tracks isolating stationary behavior, four shapes of genuine drift, benign noise, three families of contamination, and conflicts between personal utility and safety, of which 480 are held out for test. On those, CAPTURE holds fixed-policy poisoning to 11.5% against 20.0% for Provenance-only while adhering to 83.5% of genuine updates against that baseline's 74.1%, and admits 8.9% of benign non-updates against its 19.6%. A baseline trained on identical supervision closes most of the gap to the heuristics, leaving 2.2 points of win rate and 4.4 of poisoning attributable to the architecture rather than the labels.

A result of this form invites the objection that a gate trained against our own episode generator may have learned the generator rather than the problem. We address it twice. We evaluate the frozen system zero-shot on HorizonBench (Li et al., 2026), an independently built benchmark of evolving preferences over simulated six-month histories, and we run a multi-session study where 40 participants use an assistant over two to three weeks and label their own extracted preferences. We also report what the method costs, roughly 630 ms per turn, and what it fails to withstand, since an adaptive attacker doubles poisoning success and a provenance filter is then marginally the more secure of the two.

References (86)