TL;DR
GENESISFUNC is an automated pipeline that leverages a coordinated multi-agent framework to synthesize high-quality, diverse training data for Large Language Model (LLM) function-calling. By fine-tuning an 8B parameter model on this dataset, the authors achieve state-of-the-art open-source performance that surpasses much larger models and rivals proprietary APIs like GPT-4o on complex tool-use benchmarks.
What Problem Does This Paper Address?
To act as effective agents, LLMs must master function-calling (FC)—the ability to translate a user's natural language intent into executable API calls with correct parameters. However, training models to do this reliably is bottlenecked by data.
Manually annotating real-world tool use is prohibitively expensive. Meanwhile, existing automated data synthesis pipelines suffer from several fatal flaws:
- Unreliable or unscalable APIs: They often rely on fragile, handcrafted, or hard-to-scale mock environments.
- Lack of scenario diversity: Most synthetic datasets focus on simplistic, single-turn interactions. They fail to capture real-world complexities like ambiguous user intents, multi-task requests, multi-turn clarifications, and error handling.
- Weak quality control: Synthetic data frequently contains formatting errors or hallucinated parameters, which degrades model performance during fine-tuning.
Methods
The authors introduce GENESISFUNC, a three-stage automated pipeline designed to generate robust, scenario-rich function-calling data without relying on live external execution.
1. Tool Pool Curation
Instead of inventing APIs from scratch, the pipeline starts with a curated pool of 1,000 diverse, real-world tool schemas sourced from the Berkeley Function-Calling Leaderboard (BFCL). Redundant tools are removed via semantic clustering.
2. Multi-Agent Dialogue Generation
The core of the pipeline is a model-agnostic framework featuring four specialized LLM agents that collaborate to simulate realistic user-assistant conversations:
- Sample Agent: Selects a mix of relevant target tools and irrelevant "distractor" tools to force the model to learn precise tool selection.
- Memory Agent: Logs previous dialogue contexts and pushes the generator to explore unseen semantic domains, maximizing conversational diversity.
- Function Agent: Extracts parameters and applies a dynamic slot-selection strategy, randomly choosing subsets of optional parameters to instantiate.
- Judge Agent: Evaluates $N$ candidate dialogues per round and selects the highest-quality output based on problem significance and tool appropriateness.
The system generates three distinct types of conversations: single-turn, multi-turn (incorporating user clarifications), and special cases (handling mismatched tools or invalid parameters).
3. Multi-Stage Evaluation
To guarantee data correctness, the generated dialogues pass through a strict validation funnel:
- Rule Checker: A fast, programmatic filter checking for schema compliance, formatting, and structural soundness.
- Model Checker: A post-hoc LLM evaluator (GPT-4o) that scores semantic quality and task completion.
- Human Validation: A targeted human review applied only to the ~5% of samples that fail automated checks or receive low confidence scores.
Post-Training: SFT and Reinforcement Learning
The authors perform Supervised Fine-Tuning (SFT) on Qwen3-8B using LoRA. Crucially, they also experiment with Grouped Relative Policy Optimization (GRPO)—a reinforcement learning technique—to optimize multi-turn dialogue performance using custom rewards for structural compliance and functional correctness.
Datasets
- Synthesized Dataset: Consists of 2,000 single-turn scenarios, 2,000 multi-turn scenarios, and 500 special-case dialogues.
- Evaluation Benchmarks:
- In-Domain: Berkeley Function-Calling Leaderboard (BFCL), spanning both Non-Live and Live splits.
- Out-of-Domain: API-Bank and ACEBench, used to evaluate how well the model generalizes to entirely unseen toolsets.
Key Insights and Ideas
- Data Alignment Beats Model Size: Systematic alignment between the training data distribution and real tool semantics allows an 8B model to narrow the performance gap against proprietary giants and vastly outperform raw models up to 4x its size.
- The Power of Negative Space: Including "special cases" (e.g., queries where no tool fits, or where parameters are malformed) prevents the model from blindly over-calling functions, a common failure mode in agentic LLMs.
- Targeted RL for Long Contexts: While SFT is excellent for teaching basic formatting, applying RL (GRPO) specifically to multi-turn data significantly boosts the model's capacity for multi-step reasoning and handling complex interaction flows without destabilizing its performance on simpler tasks.
Key Results
GENESISFUNC-8B consistently outperforms open-source baselines and achieves highly competitive results against top-tier proprietary models.
- In-Domain Excellence: On the BFCL benchmark, GENESISFUNC-8B achieved an overall accuracy of 93.31% on the Non-Live split and 83.78% on the Live split, outperforming the previous open-source SOTA (ToolACE-8B) by 2.5% and 3.8% relative, respectively. It also beat proprietary models like GPT-4o and Gemini-2.5-Pro on these specific evaluations.
- Out-of-Domain Generalization: On ACEBench, the model achieved a Normal Overall score of 73.60%, performing on par with GPT-4o-mini (75.87%) and Gemini-1.5-Pro (76.76%).
- Scalability: When downstream tools from ACEBench were mixed into the pipeline's tool pool, the model's ACEBench score jumped sharply from 78.64% to 81.87% without causing any performance degradation on the other benchmarks, proving the pipeline's strong scalability.
Limitations and Future Work
Despite its strong function-calling capabilities, GENESISFUNC-8B still falls short of models like GPT-4 in broader, open-ended reasoning and comprehension tasks. Furthermore, the current dataset does not fully capture highly complex, tightly coupled multi-turn tool sequences (e.g., multi-hop dependencies where Tool B strictly depends on the output of Tool A).
The authors note that future work will focus on extending this multi-agent data generation methodology to more advanced agentic workflows and complex multi-hop benchmarks.
Summary updated