NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Enhanced tool invocation method through multi-model collaboration

Yudian Zhang, Hao Sun, Mengxi Jia, Haijiang Zhu, Dell Zhang, Shichao ZhangVicinagearth 2025

Abstract

This paper proposes a multi-model collaborative framework to address the format non-compliance and limited generalization observed in tool-invocation tasks when Large Language Models (LLMs) are directly fine-tuned. Our study reveals that the success of tool invocation is highly sensitive to the standardization of output formats. However, conventional fine-tuning methods often cause models to rigidly adhere to specific formats, which in turn increases the risk of parsing failures. To overcome this limitation, we design a division-of-labor approach: the large model focuses on reasoning and tool selection, generating preliminary invocation outputs, while the small model is dedicated to format normalization, converting these outputs into structured, API-compliant requests. Experiments conducted using the Berkeley Function Call Evaluation benchmark demonstrate that format standardization plays a more critical role in invocation success than semantic correctness. Furthermore, perturbation experiments show that even minor deviations significantly degrade performance. In contrast, our collaborative framework mitigates these issues by introducing a post-processing formatting step, ultimately improving accuracy.

Introduction

Large Language Models (LLMs) are increasingly deployed as autonomous agents capable of invoking external tools (APIs) to solve complex tasks. Despite their reasoning capabilities, these models face two significant hurdles: format non-compliance and limited generalization. Even when a model correctly identifies the appropriate tool and parameters, minor syntax errors—such as misplaced brackets or incorrect parameter ordering—can lead to total API parsing failure.

Traditional fine-tuning approaches often exacerbate this by inducing "task locking," where a model becomes overly specialized to a specific format at the expense of its general reasoning abilities. This paper investigates a "division-of-labor" strategy to decouple reasoning from strict formatting requirements.

Methodology: Multi-Model Collaboration

The proposed framework separates the tool-invocation process into two distinct stages handled by different models:

  1. Reasoning and Selection (Large Model): This component interprets user intent, plans the necessary actions, and selects the relevant tools. It produces an "intermediate output" containing the required parameters. This output is not required to meet strict API formatting standards, allowing the model to focus on semantic accuracy.
  2. Format Normalization (Small Model): A specialized "Format Model" receives the intermediate output and transforms it into a standardized, API-compliant request (e.g., strict JSON).
Comparison of the standard tool invocation flow (top) versus the proposed collaborative framework (bottom).

The researchers utilized the ToolACE dataset (1.13k pairs from 26k APIs) and the Berkeley Function Call Leaderboard (BFCL) for evaluation. Fine-tuning for the format model followed specific hyperparameter configurations to ensure stability.

Hyperparameters used for model fine-tuning in the study.

Key Insights and Results

The study's "perturbation experiments" yielded a critical insight: Format compliance is often more vital than semantic precision. Randomly altering content (numbers or strings) in training data had minimal impact, whereas changing structural elements like bracket types or parameter order caused performance to plummet.

Key results from the BFCL benchmark include:

  • Vulnerability of Standard Fine-Tuning: Under heavy input noise (the Random Mix Twice experiment), standard fine-tuned models saw accuracy drop to 3.02%.
  • Robustness of Collaboration: The collaborative framework recovered this performance, achieving 73.42% accuracy by utilizing a dedicated formatter (e.g., Qwen 2.5-7B).
  • Efficiency: This decoupling allows for the use of smaller, cost-effective models for the formatting task without compromising the system's overall intelligence.

Conclusion and Future Work

By separating reasoning from formatting, the multi-model framework significantly enhances the robustness of LLM-based agents. However, the authors note that current evaluations are limited to single-turn, static benchmarks. Future research will focus on multi-turn dialogues, adapting to evolving API schemas through automated validation modules, and exploring in-context learning for dynamic format adaptation.

Summary updated

BibTeX
@inproceedings{zhang2025enhanced,
  author = {Yudian Zhang and Hao Sun and Mengxi Jia and Haijiang Zhu and Dell Zhang and Shichao Zhang},
  title = {{Enhanced tool invocation method through multi-model collaboration}},
  booktitle = {Vicinagearth},
  year = {2025},
  doi = {10.1007/s44336-025-00028-7},
}
Figure