Linguistic and Argument Diversity in Synthetic Data for Function-Calling Agents
This paper proposes a novel method for generating synthetic training data that optimizes linguistic and argument diversity without relying on hand-crafted rules, resulting in function-calling agents that achieve superior out-of-distribution performance and a 7.4% accuracy increase on the BFCL benchmark compared to state-of-the-art baselines.
Original paper licensed under CC BY 4.0 (http://creativecommons.org/licenses/by/4.0/). This is an AI-generated explanation of the paper below. It is not written or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer
Imagine you are teaching a very smart robot assistant how to use a giant toolbox filled with thousands of different tools (like weather apps, stock market trackers, or calendar schedulers). To teach the robot, you need to show it examples of people asking for help and the robot correctly picking the right tool.
The problem, according to this paper, is that the "textbooks" (datasets) used to train these robots are often too repetitive. They are like a cooking class where every student is only taught to make a cheese pizza with pepperoni. If a customer asks for a "vegan deep-dish with extra basil," the robot gets confused because it has never seen that specific request before.
Here is how the authors fixed this, using simple analogies:
1. The Problem: The "Echo Chamber" of Data
Previous methods of creating training data were good at making sure the robot knew many different tools existed. However, they failed at two important things:
- Linguistic Diversity: They only taught the robot how to answer when people asked questions in the exact same stiff, formal way. They didn't teach it how to handle slang, casual chat, or weird sentence structures.
- Argument Diversity: They only taught the robot about the most popular options. For example, if the tool is about stocks, the training data only ever mentioned "Apple" (AAPL) and "Microsoft" (MSFT). The robot never learned what to do if someone asked about a tiny, obscure company.
2. The Solution: The "Diversity Chef"
The authors built a new method to generate synthetic training data. Think of this method as a "Diversity Chef" who doesn't just follow a recipe book. Instead, this chef has a special rule: "Every time I make a new dish, it must taste different from the last 100 dishes I made."
- No Rigid Rules: Unlike other methods that rely on a fixed list of "types of people" (e.g., "The Businessman," "The Student"), this chef doesn't need a pre-written list. It automatically figures out how to vary the requests.
- The "Marginal Contribution" Trick: The chef looks at the pile of dishes already made. When considering a new dish, it asks: "If I add this new dish to the pile, does it make the whole collection more interesting?" If the answer is yes, it keeps the dish. If the dish is just a copy of something already there, it throws it away.
3. What They Actually Did
The researchers used this "Diversity Chef" to create a new set of training examples for function-calling agents. They focused on two main ingredients:
- The Request (The Order): They generated user questions that varied wildly in how they were phrased (short, long, formal, slangy, confusing).
- The Arguments (The Ingredients): They ensured the specific values used in the requests were varied. Instead of always using "New York" for a city, they used "Nairobi," "Reykjavik," and "Buenos Aires." Instead of always using "USD" for currency, they used "NOK," "RUB," and "XRP."
4. The Results: A Better Robot
They tested their new "Diversity Chef" data against other top-tier methods (like ToolAce and APIGen).
- The Diversity Score: Their data was significantly more diverse. It wasn't just a little bit different; it was a whole new world of variety.
- The "Out-of-Distribution" Test: This is the most important part. They trained a robot on their data and tested it on new questions it had never seen before (questions from other datasets).
- The Analogy: Imagine you trained a student only on math problems from 2020. Then you gave them a test with problems from 2025.
- The Outcome: The robot trained on the authors' diverse data performed much better on these new, unseen tests. It got about 7.4% more questions right on a major benchmark (BFCL) compared to robots trained on the older, less diverse methods.
Summary
The paper claims that by using a smart, automated process to ensure training data is linguistically varied (different ways of speaking) and argumentatively varied (different specific values), you can build a much more robust AI agent. This agent doesn't just memorize specific examples; it learns to handle the messy, unpredictable reality of how real humans actually talk and what they actually ask for.
What they did NOT claim:
- They did not claim this works for multi-turn conversations (long back-and-forth chats); they focused strictly on single-turn requests.
- They did not claim this works for languages other than English.
- They did not claim this is a "cure-all" for all AI problems, but specifically for the task of teaching agents to call tools correctly.
Drowning in papers in your field?
Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.