Manuscript Offprint

arXiv:2609.03815

Inferring Hidden User Models from the Behavior of Personalized LLM Agents

Haoyang Li, Yaxin Xiao, Qingqing Ye, Huadi Zheng, Haibo Hu

Haoyang Li*, Yaxin Xiao*, Qingqing Ye*, Huadi Zheng†, and Haibo Hu*

*The Hong Kong Polytechnic University, Hong Kong SAR

{hao-yang9905.li,20034165r}@connect.polyu.hk, {qing.ye,haibo.hu}@polyu.edu.hk

†Huawei

zhenghuadi@huawei.com

Abstract—Recent personalized LLM agents increasingly transform information retained in memory into compressed or structured representations, which we call user models, to guide later decisions. When source wording is removed from the state reachable through the ordinary interface, these models are commonly treated as more privacy-preserving because direct memory-extraction attacks lose the text they target. Yet we argue that user models expose a new attack surface because an attacker can still recover the private information from the personalized choices they shape, even when source records and backend state remain inaccessible. We therefore introduce UMPeek, a black-box attack based on hypothesis-guided adaptive probing to infer such hidden user model. It forms hypotheses from choices left open by a request, switches among ordinary follow-up tasks, and retains only claims supported and not contradicted by visible behavior. We conduct an extensive benchmark evaluation across diverse personalization tasks and user-model backends against existing attacks. We further validate UMPeek in real-world systems using information confirmed to be retained, and we evaluate defenses against its adaptive probing. Overall, UMPeek outperforms existing attacks in both benchmark and real-world comparisons and continues to recover user information under response-level defenses, showing that keeping records and backend state inaccessible does not guarantee semantic privacy when retained information shapes visible behavior.

1. Introduction

LLM-based agents now assist users across diverse tasks by combining conversational interaction with planning and actions through external tools [1], [2], [3]. When the same agent serves a user across tasks and over time, personalization becomes central because appropriate responses and actions depend on the user's goals, preferences, and prior interactions [4], [5], [6]. Memory commonly supports this continuity by retaining records, summaries, or reflections for later use [7], [8], [9], but growing histories become costly to retrieve or place directly in each prompt and can distract the model from information relevant to the current decision [6], [10], [11]. Personalization methods therefore increasingly derive compact profiles [12], [13], [14], learned embeddings [6], [10], [15], [16], or evolving structured

states [17] from earlier interactions. We use user model for the user-specific state derived or assembled from retained information to guide later decisions. In compression-based designs, this state carries forward information useful for personalization in a representation smaller than its source history [10], [15], [16]. Managed memory services likewise separate persistent memory from the content selected or assembled for a request [18], [19], [20], [21], while production personalization pipelines maintain typed profiles or learned user representations [22], [23], [24], [25].

This move away from supplying source history directly is commonly regarded as a privacy benefit. When source wording is omitted from the state reachable through the attack interface, attacks designed to recover that wording lose their direct target. On LongMemEval, for example, key-fact summarization reduced exact extraction of injected high-entropy canaries by 64 to 76% while preserving nearly all personalization recall [26]. Existing extraction attacks reinforce this intuition because they target stored text in models or memory components rather than information retained in a transformed user model [27], [28], [29], [30], [31], [32]. When only these extraction attacks are considered, user models seem to offer a way to reconcile efficient personalization with privacy protection.

However, even when the user model and its source records remain hidden, the information retained for personalization can still be inferred beyond memory extraction. The risk follows directly from how personalization works because retained user information shapes a later response or tool action, and an observer can use the resulting choice as evidence about what the user model retains [15], [16], [33], [34], [35]. As a result, an external party can collect such evidence through ordinary requests without access to source records, the user's account, or the backend [3], [36]. Determining which retained user information caused a particular choice remains difficult because the choice may also reflect the request, local context, or general model behavior, and even a personalized choice may fit several claims about the user [5], [37], [38], [39]. Distinguishing these explanations therefore requires additional tasks in which they predict different behavior [40], [41].

We address this challenge with UMPeek, a black-box attack built around hypothesis-guided adaptive probing. UMPeek grounds each behavioral hypothesis in a visible choice whose value the request left open. It replays the task to test persistence, then uses unresolved hypotheses to select another ordinary task where competing explanations predict different behavior. Each response updates which hypotheses remain supported, contradicted, or unresolved, and that state determines the next probe. The recovery rule accepts only hypotheses with sufficient behavioral support and no contradiction. Because this loop tests semantic hypotheses against visible behavior rather than accessing or decoding backend state, it does not depend on the user model's internal representation.

Our evaluation spans four personalization benchmarks, three user-model backends, seven comparison attacks, three independently implemented managed services and an end-to-end personal agent, and three inference-time defenses. Across the benchmark suite, UMPeek's semantic-recovery score is more than six times that of the strongest comparison attack, and it leads in every benchmark-backend setting. Matched-budget studies further show that this advantage comes from hypothesis-guided request selection rather than query volume alone. The real-world evaluations find the same behavioral exposure in independently implemented systems, with UMPeek attaining the highest recovery among the evaluated attacks on every managed service for retained targets. Under adaptive follow-ups, response-level defenses leave substantial recovery, while stronger stateful control reduces both recovery and personalized task utility. Together, these results show that keeping source records and backend state inaccessible does not prevent semantic inference when retained user information continues to shape visible behavior.

This paper makes four contributions.

  • We formalize black-box recovery of hidden user-model information from personalized behavior, without source-record or backend access.
  • We introduce UMPeek, which uses hypothesis-guided adaptive probing to test claims grounded in visible choices across interactions.
  • We compare UMPeek with seven attacks across four benchmarks and three backends, using ablations to trace its gains to task-aligned follow-ups and claim acceptance.
  • We validate UMPeek on retained targets from three managed services and OpenClaw, then test three defenses adaptively, finding residual recovery after mitigation.

References (89)