arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2501.10132cs.CL
收藏

ComplexFuncBench:探索长上下文场景下的多步约束函数调用

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

Zhipu AI(智谱AI);Tsinghua University(清华大学)

Lucen Zhong, Zhengxiao Du, Xiaohan Zhang, Haiyi Hu, Jie Tang

AI总结:

本研究推出面向长上下文场景的复杂函数调用基准ComplexFuncBench及自动评估框架ComplexEval,覆盖多步约束任务,实验揭示顶尖大语言模型的函数调用缺陷并指明优化方向。

摘要:

为大语言模型(LLM)配备实时API可助力生成更准确、更具时效性的回答。但受限于数据收集与评估的复杂性,针对真实场景下大语言模型函数调用能力的评估仍有待深入。本研究推出ComplexFuncBench——一个覆盖五类真实场景的复杂函数调用基准。与现有基准相比,ComplexFuncBench包含多步约束函数调用任务,要求长参数填写、参数值推理,且需支持128k长上下文。此外,我们提出了自动评估框架ComplexEval,用于定量评估复杂函数调用任务。通过全面实验,我们揭示了当前顶尖大语言模型在函数调用上的不足,并指出了优化该能力的未来方向。数据与代码可在https://github.com/THUDM/ComplexFuncBench获取。

英文摘要:

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-explored due to the complexity of data collection and evaluation. In this work, we introduce ComplexFuncBench, a benchmark for complex function calling across five real-world scenarios. Compared to existing benchmarks, ComplexFuncBench encompasses multi-step and constrained function calling, which requires long-parameter filing, parameter value reasoning, and 128k long context. Additionally, we propose an automatic framework, ComplexEval, for quantitatively evaluating complex function calling tasks. Through comprehensive experiments, we demonstrate the deficiencies of state-of-the-art LLMs in function calling and suggest future directions for optimizing these capabilities. The data and code are available at \url{https://github.com/THUDM/ComplexFuncBench}.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑