arXiv:2610.25161cs.LGOct 2026

Manuscript Offprint

arXiv:2610.25161

Indistinguishable Agents: Training Agent Privacy as Twin-World Indistinguishability

Jiaming He, Guanyu Hou, Yi Yu, Xudong Jiang

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

Abstract

LLM agents search, shop and send messages for their users, and every action is seen by some party. Existing privacy training rewards agents for not mentioning protected items, yet an observer can infer a private fact from what the agent does. Since an observer learns a fact only if its view changes with the fact, we propose Twin-World Indistinguishability training (TWAIN), which trains on twin worlds that differ only in the private fact. A frozen distinguisher scores each observer's view by its log-likelihood ratio for the true world, and paired GRPO trains the agent on task success minus this ratio. We prove that this objective controls the Bayes success of every observer on every channel. On shopping and messaging tasks TWAIN removes the leakage that disclosure judges and query-level rewards miss, while the agent still completes its tasks.

1 Introduction

Large language model (LLM) agents search catalogs, fill shopping carts and send messages through tools and web interfaces (Yao et al., 2023; Schick et al., 2023; Yao et al., 2022; Zhou et al., 2024), while they hold the personal context of their users (Shao et al., 2024a; Zharmagambetov et al., 2025). Every action is received by some party, and stores now run AI shopping assistants (Amazon, 2024) that ask about the customer's circumstances (Gomaa et al., 2025; Das et al., 2025). The private facts of a user can therefore reach third parties through the actions themselves (Roh et al., 2026; Shahriar et al., 2026).

Privacy research on machine learning has long protected training data (Shokri et al., 2017; Carlini et al., 2021; Dwork et al., 2006; Abadi et al., 2016), while what people regard as private depends on context (Brown et al., 2022). Work on agents therefore follows contextual integrity (Nissenbaum, 2004) and trains agents toward its norms. These methods reward the agent when its output does not disclose a protected item, as decided by keyword matching (Lan et al., 2025), an LLM judge (Cheng et al., 2026; Wen et al., 2026; Amber et al., 2026) or annotated attribute lists (Park et al., 2026).

This signal suits a chatbot whose only output is a message, but the observers of an agent see much more than the content that a judge reads. Figure 1 shows a shopping agent that never names the user's collapsed pension and still tells the store's assistant that the customer has financial difficulties. On live shopping sites behavioral oversharing exceeds content oversharing by a factor of five (Roh et al., 2026), and agents that carry a secret reveal it through their actions in 61.1% of sessions (Shahriar et al., 2026). Rewards based on inference exist, but they score one channel or one world. We therefore ask the following question.

How can we train an agent so that no unauthorized observer can infer a private fact from anything the agent does, without enumerating the channels and without a disclosure judge?

We first measure the gap with twin worlds that differ only in the user's task-irrelevant private attributes, where an observer tries to tell the worlds apart from the merchant's view alone. For Qwen3-8B the observer reaches a distinguishing advantage of 0.56, and episodes that a disclosure judge finds clean still give 0.29 because the agent abstracts private facts into general phrases.

An observer learns a private fact only if its view changes when the fact changes, so the training signal should measure how well an observer tells apart twin worlds that differ only in that fact. Based on this principle, we propose Twin-World Indistinguishability training (TWAIN), which builds such twin worlds in a simulator with code-backed state. A frozen distinguisher scores the view of each unauthorized observer by its log-likelihood ratio for the

Figure

Figure 1: Privacy as the difference between two worlds. The twin worlds share the task and differ only in private details of the user. When the store’s assistant asks about the customer, Qwen3-8B answers with abstracted facts that a mention judge passes, while a distinguisher tells the merchant’s views apart. TWAIN trains the agent until it acts the same in both worlds.

true world, and paired GRPO (Shao et al., 2024b) trains the agent on task success minus this ratio. We prove that this reward controls the Bayes success of any observer on every channel.

We evaluate TWAIN with Qwen3-8B against prompting, data minimization, PrivacyChecker and PA-DR. When the task requires the store’s assistant, TWAIN lowers the distinguishing advantage of Qwen3-32B from 80.9 to 3.1 and raises task success from 58.6 to 83.8. PA-DR keeps 86.3 because its reward reads only the queries.

Our contributions are as follows.

• We formulate privacy for acting agents as a twin indistinguishability game and find that agents leak through abstracted wording that a disclosure judge misses.

• We propose TWAIN, whose privacy reward is a calibrated view log-likelihood ratio on twin worlds, and prove that it controls the Bayes success of every observer on every channel.

• We build twin environments for shopping and messaging, where TWAIN outperforms four published defenses.