paper-with-me

홈 › Papers

FunReason: Enhancing Large Language Models' Function Calling via Self-Refinement Multiscale Loss and Automated Data Refinement

2025-05-26 · Bingguang Hao, Maolin Wang, Zengzhuang Xu, Cunyin Peng, Yicheng Chen, Xiangyu Zhao, Jinjie Gu, Chenyi Zhuang

The integration of large language models (LLMs) with function calling has emerged as a crucial capability for enhancing their practical utility in real-world applications. However, effectively combining reasoning processes with accurate function execution remains a significant challenge. Traditional training approaches often struggle to balance the detailed reasoning steps with the precision of function calls, leading to suboptimal performance. To address these limitations, we introduce FunReason, a novel framework that enhances LLMs' function calling capabilities through an automated data refinement strategy and a Self-Refinement Multiscale Loss (SRML) approach. FunReason leverages LLMs' natural reasoning abilities to generate high-quality training examples, focusing on query parseability, reasoning coherence, and function call precision. The SRML approach dynamically balances the contribution of reasoning processes and function call accuracy during training, addressing the inherent trade-off between these two critical aspects. FunReason achieves performance comparable to GPT-4o while effectively mitigating catastrophic forgetting during fine-tuning. FunReason provides a comprehensive solution for enhancing LLMs' function calling capabilities by introducing a balanced training methodology and a data refinement pipeline. For code and dataset, please refer to our repository at GitHub https://github.com/BingguangHao/FunReason

📄 PDF Abstract BibTeX arXiv:2505.20192

Code (2)

bingguanghao/funreason 공식 구현
inclusionai/aworld

Similar Papers 제목 키워드 기반

FunReason-MT Technical Report: Advanced Data Synthesis Solution for Real-world Multi-Turn Tool-use

2025-10-28 · Zengzhuang Xu, Bingguang Hao, Zechuan Wang, Yuntao Wen 외 arxiv

Function calling (FC) empowers large language models (LLMs) and autonomous agents to interface with external tools, a critical capability for solving complex, real-world problems. As this ability becomes increasingly cen…

Enhancing Function-Calling Capabilities in LLMs: Strategies for Prompt Formats, Data Integration, and Multilingual Translation

2024-12-02 · Yi-Chang Chen, Po-chun Hsu, Chan-Jan Hsu, Da-Shan Shiu

Large language models (LLMs) have significantly advanced autonomous agents, particularly in zero-shot tool usage, also known as function calling. This research delves into enhancing the function-calling capabilities of L…

Data IntegrationInstruction FollowingRelevance DetectionTranslation

ComplexFuncBench: Exploring Multi-Step and Constrained Function Calling under Long-Context Scenario

2025-01-17 · Lucen Zhong, Zhengxiao Du, Xiaohan Zhang, Haiyi Hu 외

Enhancing large language models (LLMs) with real-time APIs can help generate more accurate and up-to-date responses. However, evaluating the function calling abilities of LLMs in real-world scenarios remains under-explor…

R2IF: Aligning Reasoning with Decisions via Composite Rewards for Interpretable LLM Function Calling

2026-04-22 · Aijia Cheng, Kailong Wang, Ling Shi, Yongxin Zhao arxiv

Function calling empowers large language models (LLMs) to interface with external tools, yet existing RL-based approaches suffer from misalignment between reasoning processes and tool-call decisions. We propose R2IF, a r…

You Have Thirteen Hours in Which to Solve the Labyrinth: Enhancing AI Game Masters with Function Calling

2024-09-11 · Jaewoo Song, Andrew Zhu, Chris Callison-Burch

Developing a consistent and reliable AI game master for text-based games is a challenging task due to the limitations of large language models (LLMs) and the complexity of the game master's role. This paper presents a no…

text-based games