arXiv:2601.18282cs.AIcs.CL2026-01被引 3

让大模型生成参数时像人一样思考,提升准确性和可解释性。

Think-Augmented Function Calling: Improving LLM Parameter Accuracy Through Embedded Reasoning

  • 引入'思考'参数增强,让模型显式说明参数选择理由。
  • 复杂参数自动触发细粒度推理,准确率显著提升。
  • 无需修改模型结构,适合需高可靠性的智能体系统。

大型语言模型在自主代理的函数调用中表现卓越,但现有机制在参数生成过程中缺乏明确的推理透明性,尤其对具有相互依赖关系的复杂参数。现有方法如思维链提示主要在代理层面操作,无法为单个参数提供细粒度推理指导。为此,我们提出思辨增强型函数调用(TAFC),通过在函数与参数层面引入显式推理,提升参数生成准确性。该方法采用通用的“思考”参数增强,使模型能阐述决策过程,并对参数描述进行动态优化以提高推理质量。对于复杂参数,TAFC根据复杂度评分自动触发细粒度推理,确保关键决策有充分依据。此外,我们提出推理引导优化,使生成的推理更符合人类预期。TAFC无需修改现有LLM架构,保持全API兼容性。在ToolBench上的评估表明,其在多参数函数的参数生成准确率和推理一致性方面均有显著提升,同时增强了对智能体行为的可解释性与调试能力。

原文摘要 · Abstract (English)

Large language models (LLMs) have demonstrated remarkable capabilities in function calling for autonomous agents, yet current mechanisms lack explicit reasoning transparency during parameter generation, particularly for complex functions with interdependent parameters. While existing approaches like chain-of-thought prompting operate at the agent level, they fail to provide fine-grained reasoning guidance for individual function parameters. To address these limitations, we propose Think-Augmented Function Calling (TAFC), a novel framework that enhances function calling accuracy through explicit reasoning at both function and parameter levels. Our method introduces a universal "think" parameter augmentation that enables models to articulate their decision-making process, with dynamic optimization for parameter descriptions to improve reasoning quality. For complex parameters, TAFC automatically triggers granular reasoning based on complexity scoring, ensuring appropriate justification for critical decisions. Additionally, we propose reasoning-guided optimization to align generated reasoning with human expectations. TAFC requires no architectural modifications to existing LLMs while maintaining full API compatibility. Evaluation on ToolBench across proprietary and open-source models demonstrates significant improvements in parameter generation accuracy and reasoning coherence for multi-parameter functions, while providing enhanced interpretability for debugging AI agent behaviors.

函数调用推理增强可解释性LLM应用

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。