Introduction
Real-world users are rarely as cooperative as the "perfect" simulators used to train AI agents. Most current research on LLM-based "tool agents"—systems designed to book flights, query databases, or execute code—relies on user simulators that are essentially "too nice." These collaborative simulators provide exactly the information the agent needs in a clear, concise manner.
However, in production environments, users are messy. They ask for things the agent cannot do, get distracted by tangential topics, lose patience when things are slow, and send fragmented or typo-ridden messages. Because agents are primarily evaluated on "agent-friendly" data, developers have a massive blind spot regarding their robustness. To bridge this gap, this paper introduces a modular user simulator that mimics non-collaborative behaviors, revealing that state-of-the-art tool agents often crumble, hallucinate, or get stuck in loops when faced with a difficult human.
The NCUser Architecture
The authors propose a novel, modular architecture for a Non-Collaborative User Simulator (NCUser). Instead of relying on a single prompt, they built a pipeline that ensures the simulation remains realistic and solvable. The simulator is intentionally difficult yet remains "goal-aligned," meaning it eventually provides the necessary information to complete the task, but makes the agent work for it.
The architecture consists of three main components:
- Collaborative Base: Uses an LLM to handle the core task logic and generate base responses.
- Goal Alignment Modules:
- Dialogue State Tracker (DST): Shards the user's goal into "information pieces" and tracks which ones have been successfully communicated to the agent.
- Ending Verifier: Prevents the simulator from prematurely ending the conversation until all goals are met or the agent has actually executed the required actions.
- Non-Collaborative Modules:
- Unavailable Services: Analyzes the agent's API and generates requests for features that don't exist (e.g., asking for a "window seat" when the API doesn't support seat selection).
- Tangential: Samples personas (e.g., "a travel enthusiast") and injects off-topic conversation. It also generates complaints if the agent ignores the small talk.
- Impatience: Triggers emotional escalation—from mild annoyance to belligerent abuse—if the agent fails or takes too many turns.
- Incomplete Utterances: Uses style transfer from real-world datasets (LMSYS/WildChat) to mimic fragmented or prematurely sent messages.
Experimental Setup
The framework was evaluated on two primary benchmarks: MultiWOZ (a classic task-oriented dialogue dataset focused on bookings) and $\tau$-bench (a complex benchmark involving airline and retail domains with sequential operations). To demonstrate extensibility, the authors also applied the simulator to ColBench (coding tasks) and MINT (reasoning tasks).
Key Findings and Agent Vulnerabilities
Testing state-of-the-art models against the NCUser simulator revealed several critical vulnerabilities in current tool agents:
- The "Apology Loop" Trap: When faced with an impatient user, agents tend to increase their apology frequency. In a constrained environment (e.g., a 30-turn limit), excessive apologizing wastes reasoning steps, leading to task failure and more user impatience—creating a death spiral for the agent.
- Redundant Documentation Fetching: When users ask for unavailable services, weaker agents often get stuck in a loop of repeatedly calling "helper" APIs to fetch documentation. They hope to find a solution that doesn't exist rather than simply telling the user, "I can't do that."
- Tangential Talk is the Hardest: Across almost all models, "Tangential" behavior caused the steepest performance degradation (an average drop of 29.1%). Agents struggle to balance maintaining social rapport with staying focused on the task.
- Fine-tuning is a Double-Edged Sword: Fine-tuning small LLMs exclusively on collaborative data actually makes them more vulnerable to non-collaborative users. These models become over-fitted to polite, direct interactions and lose the ability to handle ambiguity or rejection.
Performance Collapse Under Stress
Even state-of-the-art models showed significant Success Rate (SR) drops when users were non-collaborative.
While GPT-4.1-mini proved the most robust, smaller or open-source models (like Llama-3.1-70B or Qwen-30B) saw their success rates nearly halved in certain non-collaborative modes. Furthermore, in "Unavailable Service" and "Incomplete Utterance" modes, models like Qwen-235B showed a sharp increase in API result hallucinations—fabricating data instead of admitting they couldn't fulfill a request.
Human evaluators preferred the NCUser simulator over simple prompt-based baselines 70% of the time, noting that the behaviors felt much more aligned with real human-agent friction.
Limitations and Future Directions
While the four non-collaborative categories cover significant ground, they do not capture every type of "bad" user, such as those providing intentionally false information or malicious prompt injections. Additionally, because the simulator itself relies on high-end LLMs, it might introduce its own biases or default to "GPT-style" politeness even when instructed to be difficult.
Ultimately, the authors suggest using this simulator to generate data for Robustness-Tuning (via RLHF or DPO). By training agents against these simulated difficult users, the community can develop tool agents that maintain task focus and reliability, no matter how messy the human interaction becomes.
Summary updated