TL;DR
Current LLM agents excel at isolated task completion but struggle to collaborate effectively with humans when instructions are vague or user preferences vary. This paper introduces USERVILLE, an interactive environment with diverse user simulators, and the PPP framework, a multi-objective reinforcement learning approach that trains agents to balance Productivity, Proactivity, and Personalization. The resulting agents significantly outperform frontier models like GPT-5 on collaborative tasks by learning exactly when and how to ask clarifying questions.
What Problem Does This Paper Address?
Most AI agent benchmarks evaluate models using precise, self-contained prompts where the agent works in a vacuum to solve a problem. However, real-world human-AI collaboration is messy: human instructions are often ambiguous or underspecified, and different users have unique interaction styles (e.g., wanting concise answers, specific formats, or multiple-choice options).
Frontier models optimized purely for task success often fail in these collaborative settings—either failing silently by guessing blindly, or annoying users with excessive, low-quality questions. The authors address this gap by shifting the paradigm from isolated task solvers to adaptive, communicative collaborators.
Methods
The authors propose a two-part solution to train and evaluate collaborative agents:
- USERVILLE: An interactive environment that transforms static datasets into dynamic human-agent simulations. As shown in Figure 2, it operates in three stages:
- Prompt Vaguenization: Uses an LLM to strip specific details from precise prompts, creating realistic real-world ambiguity.
- Preference-Aware User Simulation: Simulates users with 20 distinct interaction profiles (e.g., professionals vs. amateurs, preferring JSON format, or only answering multiple-choice questions).
- User-Centric Evaluation: Measures Proactivity (categorizing user effort to answer agent queries into low, medium, or high effort) and Personalization (adherence to user preferences).
- PPP Framework: A multi-objective Reinforcement Learning (RL) framework using Group Relative Policy Optimization (GRPO). Instead of optimizing solely for task completion, the reward function is a composite: $R = R_{Prod} + R_{Proact} + R_{Pers}$.
- $R_{Prod}$: Verifiable task success (Productivity).
- $R_{Proact}$: Rewards low-effort clarifying questions and penalizes wasteful or annoying queries (Proactivity).
- $R_{Pers}$: Rewards adherence to stated user preferences and penalizes violations (Personalization).
Datasets
The framework is evaluated across two complex, real-world domains:
- Software Engineering (SWE): Utilizing SWE-Gym for training and SWE-Bench Verified for testing. The primary training focus is on function localization (SWE-Func-Loc), with evaluations also performed on the full repository editing task (SWE-Full).
- Deep Research: Utilizing BrowseComp-Plus, a benchmark for web-browsing agents, split into 450 training and 100 test instances.
Key Insights and Ideas
- Interaction is a force multiplier for vague tasks: When initial instructions are ambiguous, simply enabling interaction doesn't help untrained models. However, once trained with multi-objective RL, interaction dramatically boosts task success (e.g., F1 score jumping from 44.11 to 64.50 on SWE-Func-Loc).
- Learning to ask better, not just more: During RL training, the agent exhibits an "increase-then-decrease" dynamic for medium-effort questions. It first learns to ask more questions generally, and then refines its strategy to target only easy-to-answer, high-value queries while keeping user disruption minimal.
- The Alignment Trade-off: Optimizing solely for task success causes a severe degradation in proactivity and personalization over time, as shown in Figure 4. Joint optimization (PPP) introduces a minor trade-off in absolute preference adherence compared to single-objective variants, but yields much higher overall productivity because it prevents the agent from spamming low-quality queries.
Key Results
- Outperforming Frontier Models: As illustrated in Figure 1, PPP-trained agents (built on a 36B base model) outperformed strong baselines, including GPT-5, by an average of 16.7 points across all dimensions under vague prompt settings.
- Strategic Proactivity: The trained agent significantly increased its "ask ratio" on vague prompts (50% $\rightarrow$ 100% on SWE-Func-Loc) while maintaining a low ask ratio on precise prompts, proving it can successfully distinguish ambiguity and act minimally disruptively.
- Generalization: The model successfully generalized to 8 unseen user preferences (e.g., responding in Italian, avoiding commas, wrapping answers in JSON) and transferred its skills from function localization to the more complex full SWE-Bench task.
- Real-World Transfer: A user study with 33 human participants confirmed that the PPP-trained agent achieved an overall satisfaction score of 3.75, clearly beating its base model (3.45) and performing on par with GPT-5 (3.79).
Limitations and Future Work
The authors note that despite improvements, the agent still exhibits inconsistent preference adherence at times. It can occasionally fall into loops when required details are unavailable, engage in excessive/generic questioning, or demonstrate weak validation discipline (e.g., claiming verification when tests cannot run).
Future directions include incorporating real human feedback directly into the training loop, exploring additional interaction objectives, and scaling the framework to more diverse tasks beyond software engineering and deep research.
Summary updated