Matching Whole Conversations, Not Single Replies: On-Policy Adversarial Imitation for User Simulators

Language agents that handle customer requests, such as rebooking a flight or returning an order, are tested and trained against simulated users: language models prompted to play the customer. These simulated users are too easy. On τ-bench, a benchmark where an agent must use tools and follow store or airline policy while talking with a customer, the agent succeeds with real people 63.6% of the time, but up to 77.8% of the time with general-purpose LLM simulators (Mind the Sim2Real Gap in User Simulation for Agentic Tasks). The same study traces the gap to behavior that only shows up across a whole conversation. Simulated users state every constraint in their first message. They rarely push back. When the agent fails, they quietly switch to some other request instead of showing frustration.

Our proposal is to train the user simulator by adversarial imitation learning. This is a method in which a classifier (the "discriminator") learns to tell real behavior from generated behavior, and the generator is rewarded for fooling it. The important choice is what the discriminator gets to see. In our version it sees complete conversations that the simulator produced while talking to a live agent, compared against real human–agent conversations. It does not see single replies written as continuations of a real human's history. The claim is that realism within a single turn and realism across a whole conversation are different targets. When a simulator talks to an agent, its own earlier turns shape what the agent does next, so it ends up in situations that no human transcript contains. Only a judge that scores the simulator's own complete conversations can penalize those situations. The test of success is whether the simulator reproduces the outcomes humans produce, including with agents it never trained against. Fooling a judge is not enough.

Core Claim and What Is New

The closest existing work is Learning User Simulators with Turing Rewards (Turing-RL). It rewards a simulator with an LLM judge's score for how indistinguishable each generated reply is from what the real user would say given that user's real history. This is the right move away from copying one reference reply. However, every judgment happens on a human-written prefix, in open-domain chat and Reddit. In imitation-learning terms this is a teacher-forced objective. It is the dialogue version of the gap between behavior cloning and GAIL (Generative Adversarial Imitation Learning), which matches the whole distribution of visited situations rather than actions taken from expert states.

We claim that, on tool-using tasks, a discriminator that sees the simulator's own complete rollouts against an agent will close the human/simulator success-rate gap. Specifically, the gap left by a per-turn discriminator should shrink when the discriminator model and the human data are held fixed. The improvement should be concentrated in the behaviors Zhou et al. identify as conversation-level: when information is disclosed, how users react to agent errors, and when they give up.

The second seed paper, Beyond Cooperative Simulators (PPol), attacks the same "easy mode" problem on τ²-bench. It uses evolutionary search over Python programs that generate personas, scored by a fixed fitness function that combines human-likeness and coverage. Our method differs in two ways. The training signal comes from real human traces through a discriminator that keeps learning as the simulator improves. And we evaluate against human outcomes, not human-likeness ratings.

Earlier adversarial dialogue work trained the agent, not the simulator:

  • Adversarial A2C shapes the agent's reward with a discriminator, while the simulated user is a fixed set of hand-written rules.
  • DiaAdv drops the simulator altogether.

Both are better read as motivation for this work. DiaAdv's own human study found that people preferred an agent trained with a simulator, because the simulator let it explore and learn to recover from mistakes. That finding argues for better simulators, not for doing without them.

Research Program

The simulator is an open-weights LLM that receives the task's hidden user goal, as τ-bench provides, and a short free-text persona slot. The discriminator is a separate LLM classifier. It reads a dialogue prefix that includes the agent's turns and tool outcomes, and outputs the probability that the user side is human.

Training runs in rounds:

  1. The simulator converses with a fixed agent (for example, a gpt-4o tool-calling agent) on training tasks.
  2. The discriminator is updated on those rollouts versus human–agent traces collected with the same agent.
  3. The simulator is updated by group-relative policy optimization, which needs no learned value function, on the reward described below.

To give credit to individual turns without the high variance of rewarding only at the end, we use the change in the discriminator's log-odds after each user turn:

$$r_t = \ell(h_{t}) - \ell(h_{t-1}), \qquad \ell(h) = \log\frac{D(h)}{1 - D(h)},$$

Here $h_t$ is the dialogue prefix ending after user turn $t$, and $D(h)$ is the discriminator's probability that the user in $h$ is human. The rewards telescope, so their sum equals the final log-odds. That makes the objective a whole-conversation one, while each turn is still credited for what it changed.

Two constraints keep the simulator honest:

  • Goal preservation. A verifier checks the simulator's turns against the hidden goal. This stops the simulator from "winning" by abandoning or rewriting the task, the failure that PPol's task-preserving design and the intent-drift analysis in Intent Speaks Louder both warn about.
  • No identifying shortcuts. Task identifiers and surface artifacts such as message timestamps are removed so the discriminator cannot use them.

Human data is the binding constraint. Zhou et al. collected 495 traces over 165 τ-bench tasks. If those traces are not available to us, we will collect a comparable set with the same protocol. With so few positive examples, the discriminator will overfit unless we control it. We do this in three ways:

  • We split by task, so it never sees training-task human traces at evaluation.
  • We start it from an instruction-tuned model and fine-tune only low-rank adapters.
  • We cap how many steps it trains each round. This addresses the instability the AIL literature documents.

ConvApparel (ConvApparel) provides a second, data-richer setting: 4,146 human–AI shopping conversations collected with both a "good" and a deliberately "bad" recommender. That gives a built-in test of how a simulator behaves when facing an agent it was not trained against.

We do not adopt the disentangled-reward variant of adversarial imitation (AIRL, Learning Robust Rewards with Adversarial Inverse Reinforcement Learning) as the main method. It is a natural follow-up if the plain discriminator fails the held-out-agent test, and we include it as a secondary arm for that reason.

Baselines

Default prompted simulator. This is τ-bench's own LLM user, run with the same agent and the same tasks. It is the reference against which the 77.8% versus 63.6% inflation was measured (Mind the Sim2Real Gap). Any method must narrow that gap substantially to matter.

Supervised fine-tuning on the human traces. The same base model and the same human traces, trained by next-token prediction. It isolates whether the adversarial signal adds anything beyond the data itself, given the "lazy simulator" result in How to Build User Simulators to Train RL-based Dialog Systems.

PPol. Persona programs evolved as described in the seed paper, on the same τ²-bench retail and airline tasks, with roughly equal LLM-call budget for search versus our RL. It is the strongest published method on these domains: annotators judged PPol users human 80.4% of the time, and agents trained with it gained +17% relative success on out-of-distribution users. PPol does not report a human-versus-simulator success gap. Beating it therefore means a smaller gap to human success rates and per-task outcomes, not a higher human-likeness rating.

Turing-RL style per-turn reward. The most important comparison, and also our main ablation. The reward is the discriminator's score of a single generated reply given the real human prefix. The discriminator architecture, human data, RL algorithm, and number of updates are identical to ours. No numbers for Turing-RL on tool-use tasks exist; it reports no figures on τ-bench, and none were found on Lacuna. If our success-gap reduction does not clearly exceed this arm's, the core claim is false.

Frozen judge. A discriminator trained once and never updated. This tests whether a discriminator that keeps learning matters, or whether a fixed reward model is sufficient.

Why not just…?

Why not just prompt a strong model with harsh personas, or use PPol? Zhou et al. found that a model's general capability does not predict how well it simulates users, with weak or negative correlations for some model families. They attribute this to alignment training making models reluctant to play uncooperative users. That limits prompting. PPol is a real threat on human-likeness. But its fitness rewards behaviors that look human, not human frequencies of those behaviors per task. Our head-to-head comparison on success gap and per-task outcome agreement settles which matters. If PPol matches us, the conclusion is that persona coverage, not trajectory matching, is the lever.

Why not just fine-tune on the human traces? With a few hundred conversations, fine-tuning learns the most common path through each conversation and never sees itself drift. Shi et al. report that supervised simulators gave near-100% simulated success yet failed with humans. The supervised baseline tests this directly on τ-bench.

Why not just correct the inflated success rate after the fact? If the only goal were one aggregate number, subtracting a measured offset might work. The offset is unlikely to stay constant across agents and tasks, though. A shifted average also gives no realistic training signal for the agent. We test this alternative explicitly: fit the offset on one agent and check whether it predicts human success for held-out agents. If it does, the simulator is unnecessary for evaluation, and we would say so.

Proposed Experiments

The primary metric is the absolute gap between simulated and human agent success rates on held-out τ-bench retail and airline tasks. Supporting metrics:

  • Agreement between simulated and human success on each task.
  • Distribution distances for the conversation-level behaviors in Zhou et al.'s taxonomy: turn at which each constraint is disclosed, pushback after an agent error, and early quitting.
  • An independent post-hoc classifier and blinded human raters, both never used in training.

The decisive check uses held-out agents. We train against one agent, then run a small new human study (a subset of tasks with two additional agents) and test three things: whether the simulator's success gap stays small, whether it ranks the agents the same way humans do, and whether the offset correction from the previous section transfers. ConvApparel's good-to-bad recommender switch repeats this test with more data, scored by its population-level alignment and counterfactual criteria.

Finally, we train agents against each simulator and evaluate them with real users. This checks whether whole-conversation realism yields agents that hold up with people, rather than ones that learn to exploit the simulator.

Workshop authors to connect with