Robust LLM-based User Simulation With Trained Latent-State Dynamics

Martin Mladenov, Jihwan Jeong, Hubert Pham, Anushya Subbiah, Craig BoutilierarXiv 2026

TL;DR

To train and test conversational AI agents safely, we need user simulators that act like real humans—even when facing brand-new, unseen agents. RUSTLeD (Robust User Simulation using Trained Latent-state Dynamics) is a principled probabilistic framework that teaches an LLM simulator to model a user's hidden internal state (like satisfaction or frustration) at every turn. By blending an external LLM "labeler" with real conversational data via a novel importance-sampling algorithm, RUSTLeD produces simulators that generalize much better to unseen agents than standard fine-tuning or prompting.

What Problem Does This Paper Address?

Testing half-baked conversational agents on real people is slow, expensive, and risky. Instead, researchers use LLM-based user simulators for offline evaluation and reinforcement learning. The catch is off-policy (counterfactual) robustness: a simulator trained on dialogues with existing agents must still behave realistically when dropped into a conversation with a new, unseen agent.

Recent work suggests that having a simulator explicitly generate a user's latent state (e.g., “I'm getting frustrated because the agent ignored my budget”) before generating its next utterance improves robustness, because it models the causal mechanism behind human behavior.

The problem? Real-world conversation logs don't come with ground-truth latent states. Treating latent state as a genuine latent variable in an LLM is:

  1. Intractable: You can't easily marginalize over all possible natural-language token sequences.
  2. Unidentifiable: Without constraints, the latent space can collapse into encoding trivial signals (like sentence length) rather than meaningful user psychology.

Because of this, current practice is purely heuristic: prompt a strong external LLM to label conversations with latent states, and fine-tune the simulator on those labels as if they were ground truth. That ignores whether those labels actually explain the observed human utterances.

Methods

RUSTLeD formalizes latent-state simulation as a Hidden Markov LLM (HMLLM)—an autoregressive model $P_\theta$ that, at each turn $t$, generates a natural-language latent state $z_t$ and then a user utterance $u_t$ conditioned on the conversation history.

To train it without heuristic shortcuts, the authors introduce two key ideas:

  • The $\alpha$-Regularized Likelihood: Instead of blindly distilling an external "anchor labeler" $Q_{\text{lab}}$, RUSTLeD maximizes a variational objective indexed by a single parameter $\alpha \in (0, 1]$. When $\alpha \to 0$, the objective reduces to standard supervised distillation of the labeler. When $\alpha = 1$, it becomes exact marginal likelihood estimation of the observed human data. Small values of $\alpha$ act as a tunable nudge—keeping the labeler's semantic grounding while correcting it toward what actually explains human behavior.
  • SNIS-EM (Self-Normalized Importance Sampling EM): Rather than training a separate inference network, RUSTLeD uses $Q_{\text{lab}}$ as a proposal distribution. Offline, it samples $M$ latent-state trajectories (including the labeler's "thinking traces") per conversation. During online training, it computes importance weights $\tilde{w} \propto (P_\theta / Q_{\text{lab}})^\alpha$ and updates the simulator via weighted supervised fine-tuning.
  • Posterior Smoothing vs. Causal Filtering: Prior work often forces the labeler to only look at past turns (filtering) so it doesn't "cheat." The authors show this is probabilistically unsound: just like the Baum–Welch algorithm in HMMs, the labeler should use the full conversation (smoothing) to infer what the user was thinking at turn $t$ (e.g., a refusal at turn $t+2$ reveals earlier frustration). The simulator $P_\theta$ itself still only conditions on past turns at inference time.

Datasets

The authors evaluate on CONVAPPAREL-V2, a corpus of multi-turn dialogues between human raters and AI footwear shopping assistants across 11 distinct agent personas.

  • The $5 \to 6$ Counterfactual Split: Simulators are trained on 1,595 dialogues with 5 seen assistants (a baseline recommender plus terse, empathetic, hesitant, and trend-driven variants) and evaluated in closed-loop rollouts on 256 conversations against 6 unseen assistants (such as a technical domain expert and an upselling salesperson).
  • Models: All simulators and the automated LLM judge use Gemini 2.5 Flash, while the anchor labeler $Q_{\text{lab}}$ uses Gemini 2.5 Pro.

Key Insights and Ideas

  • Matching surface stats isn't enough: A standard fine-tuned simulator without latent state (SFT (No LS)) looks great on surface metrics like conversation length. Yet under the hood, it overfits to the seen agents, repeats itself $8\times$ more often than humans, and satisfies its goal $2.6\times$ as often as real users.
  • Hindsight shapes the target, not the input: Allowing the labeler to see the future of a conversation (smoothing) dramatically improves behavioral fidelity compared to prefix-only filtering, because intentions (like a hidden budget) often only become obvious later in the dialogue.
  • $\alpha$ is a two-way street: A small $\alpha$ isn't just good because the labeler is strong; it's mathematically necessary. Because log-likelihood ratios accumulate over turns, weight variance grows with conversation length $T$, requiring $\alpha = O(1/\sqrt{T})$ to keep importance sampling stable.

Key Results

Deeper-turn dialogue-act L1 and goal satisfaction rate on unseen agents
  • Prompted baselines struggle off-policy: Zero-shot prompted simulators converse too long (up to $5.11$ turns vs. $3.50$ for humans) and rarely satisfy their goals ($2.0\text{–}2.3\%$ vs. $10.5\%$ for humans).
  • RUSTLeD leads across behavioral metrics: With $M=15$ proposals and $\alpha=0.008$, RUSTLeD achieves the closest turn-count distribution ($W_1 = 0.188$), the lowest all-turn dialogue-act divergence ($L_1^{\text{act}} = 0.270$), and human-level repetition ($0.03$ vs. $0.02$). At $\alpha=0.012$, it closely matches human goal satisfaction ($11.3\%$ vs. $10.5\%$, $|\Delta\text{Sat}| = 0.8$ pp).
  • Better generalization: Increasing $\alpha$ from $0$ to $0.020$ monotonically shrinks the train-to-eval likelihood gap from $-0.437$ to $-0.309$ nats/token (compared to $-2.058$ for SFT (No LS)).
  • Smoothing beats filtering: At $\alpha=0$, prefix-only filtering quadruples goal-satisfaction bias ($8.2$ vs. $2.0$ pp) and repeats turns $4\times$ as often ($0.17$ vs. $0.04$) compared to posterior smoothing.

Limitations and Future Work

  • Metric trade-offs: No single $\alpha$ wins every metric simultaneously—for instance, $\alpha=0.008$ yields the best dialogue-act fidelity, while $\alpha=0.012$ best calibrates goal satisfaction.
  • Length constraints: Because importance-weight variance scales with conversation length, $\alpha$ must remain small for long dialogues.
  • Dual-use and representation: The authors note that simulators inherit biases from training data (underrepresenting rare user behaviors) and could potentially be used to optimize manipulative agent behaviors (like aggressive upselling). They emphasize that simulators should complement, not replace, live user testing.

Summary updated

BibTeX
@misc{mladenov2026robust,
  author = {Martin Mladenov and Jihwan Jeong and Hubert Pham and Anushya Subbiah and Craig Boutilier},
  title = {{Robust LLM-based User Simulation With Trained Latent-State Dynamics}},
  year = {2026},
  eprint = {2612.02238},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2612.02238},
}
Figure