Introduction
While Large Language Models (LLMs) have demonstrated impressive capabilities in utilizing external tools through function calling, they often operate under a "one-size-fits-all" paradigm. Standard benchmarks typically evaluate whether a model can select a tool that can solve a problem and follow its syntax. However, real-world user intent is frequently implicit and varies significantly between individuals.
This paper introduces the concept of Personalized Tool Invocation, where models must not only select a functional tool but also align that choice with specific user preferences and infer missing parameters from user profiles. To support this, the authors present PTool, a novel data synthesis pipeline, and PTBench, the first dedicated benchmark for personalized tool use.
The Core Challenges: Preference and Implicit Intent
The authors identify two primary gaps in current tool-calling research:
- Tool Preference: When multiple platforms offer similar services (e.g., different food delivery apps), a model should select the one that aligns with the user's historical preferences, such as a priority for "fast delivery" over "low cost."
- Profile-dependent Queries: Real-world queries are often underspecified. A request like "Order a hamburger" lacks essential details like a delivery address. A personalized model should autonomously "fill in the blanks" by referencing the user's stored profile rather than asking clarifying questions for routine tasks.
The PTool Synthesis Pipeline
To address the lack of high-quality personalized data, the researchers developed PTool, an automated pipeline consisting of three stages:
1. Tool Generation
Instead of using a flat list of APIs, PTool constructs an "API Tree." A key innovation is the introduction of Platforms at the second level. This creates multiple functionally similar tools with distinct "personalities"—for instance, one video platform might prioritize long-form educational content while another focuses on short entertainment clips.
2. User Profile Construction
To simulate realistic users, the pipeline employs a "bottom-up" clustering approach to define features (e.g., price sensitivity, occupation) and a "top-down" assignment strategy to ensure diverse personas. LLMs then simulate a "behavioral history"—a log of past actions that implicitly suggests preferences without stating them outright.
3. Query and Solution Generation
A multi-agent framework is used where a "User Agent" generates vague, personalized queries, and an "Assistant Agent" produces the ground-truth tool calls. A two-tier verification system, combining rule-based and LLM-based checkers, ensures the accuracy of the generated data.
PTBench: A New Standard for Personalization
The resulting benchmark, PTBench, contains 1,083 high-quality annotated samples across five domains: shopping, takeout, entertainment, work, and travel. It includes 15 platforms and 360 unique APIs, testing models on both "Trained" users (seen during fine-tuning) and "Untrained" users to evaluate generalization capabilities.
Key Insights and Results
The study reveals several critical findings regarding the nature of personalization in LLMs:
- Scaling Laws for Personalization: Reasoning about user profiles appears to be a "high-level" skill. Models with fewer than 3B parameters showed negligible improvement after fine-tuning. Significant gains were only observed in larger models (3B and 7B), suggesting a baseline capacity is required for these reasoning tasks.
- The Preference Gap: Even advanced models like GPT-4-turbo struggle with implicit tool preference, achieving only 54.8% accuracy in platform selection. This suggests that standard RLHF does not sufficiently emphasize following user history.
- Parameter Complexity: Error analysis indicates that correctly filling parameters (like a home address) from a profile is significantly more difficult for models than simply selecting the correct tool name.
Fine-Tuning Success
By fine-tuning a Qwen2.5-7B-Instruct model using the PTool framework, the researchers achieved a platform selection accuracy of 73.7%, vastly outperforming GPT-4-turbo (54.8%) and the base Qwen model (37.9%). Importantly, the model generalized well to untrained users and maintained its performance on general reasoning benchmarks like MMLU, avoiding "catastrophic forgetting."
Conclusion
The PTool framework and PTBench benchmark represent a significant step toward more helpful and personalized AI assistants. By enabling LLMs to understand implicit user preferences and profiles, we move closer to agents that can handle routine tasks with minimal clarification, though future work is needed to expand these capabilities into more specialized professional domains.
Summary updated