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

ToolPRM:用于函数调用的结构化输出细粒度推理扩展

ToolPRM: Fine-Grained Inference Scaling of Structured Outputs for Function Calling

Shanghai Jiao Tong University(上海交通大学);Longshine AI Research(长 Shine 人工智能研究院);Shanghai Innovation Institute(上海创新研究院)

Jianghao Lin, Yuanyuan Shi, Xin Peng, Renjie Ding, Hairui Wang, Yuxuan Peng, Bizhe Bai, Weixi Song, Fengshuo Bai, Huacan Chai, Weinan Zhang, Fei Huang, Ying Wen

AI总结:

本文提出ToolPRM框架,结合细粒度束搜索与过程奖励模型,提升结构化输出的推理扩展能力,并通过细粒度监督数据集改进函数调用性能。

摘要:

大型语言模型(LLMs)在函数调用方面表现优异,但推理扩展主要针对无结构生成。本文提出一种结构化输出的推理扩展框架,结合细粒度束搜索与ToolPRM,后者对每个调用决策(函数名和参数填充)进行评分。通过函数遮蔽、回放收集和步骤级标注构建首个细粒度内调用监督数据集。ToolPRM在预测准确性上优于结果和粗粒度奖励模型,并在多个函数调用基准测试中产生一致的测试时间收益。进一步表明,结构化生成遵循“探索更多但保留更少”的原则,因为早期JSON错误不可恢复。

英文摘要:

Large language models (LLMs) excel at function calling, but inference scaling has been explored mainly for unstructured generation. We propose an inference-scaling framework for structured outputs that combines fine-grained beam search with \textbf{ToolPRM}, a process reward model scoring each intra-call decision (function name and argument filling). We build the first fine-grained intra-call supervision dataset via function masking, rollout collection, and step-level annotation. ToolPRM outperforms outcome and coarse-grained reward models in predictive accuracy and yields consistent test-time gains on multiple function-calling benchmarks. We further show that structured generation follows ``\textbf{explore more but retain less}'', since early JSON errors are unrecoverable.

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

↑