← Back to Paper Radar

Archived This paper is outside Paper Radar's one-year feed. More archived papers

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

Jianghao Lin, Yuanyuan Shi, Xing Peng, Renjie Ding, Hairui Wang, Yuxuan Peng, Bizhe Bai, Wei Song, Fengshuo Bai, Huacan Chai, Weinan Zhang, Fei Huang, Ying Wen
arXiv.org | 2025

Reading guide · Based on sections of the original paper

The authors argue that function calls should be scored step by step, at the function-name and argument level, by a process reward model (ToolPRM) that guides beam search. They also argue that structured outputs favor wide exploration with few retained beams, because early JSON errors cannot be repaired later.

Why read this

Read this if you serve small tool-calling models and want test-time gains beyond Best-of-N or majority voting. The main evidence is in Table 3 and the budget-scaling analysis.

What the authors found

  • Table 3 reports results on BFCL (AST accuracy) and ToolAlpaca (F1). ToolPRM-guided beam search lifted Hammer2.1-1.5B from 82.79 to 85.61 on BFCL average and from 69.30 to 72.93 on ToolAlpaca. Gains shrink at 7B: 88.65 to 89.52 on BFCL, and 73.36 versus Best-of-N's 73.30 on ToolAlpaca. ToolPRM is not best on every split. For example, at 3B on BFCL Simple it scores 80.50, below the base model's 81.42. Token-level beam search, majority voting and Best-of-N sometimes scored below the base models. 4.3 Inference Scaling Performance
  • The budget-scaling tests ran on ToolAlpaca with Hammer2.1-1.5B and 3B, and the results are shown only as a figure. Holding beams at N=4 while widening beam width M generally improved F1 as budget grew. Holding M=4 while increasing N gave smaller gains and sometimes reduced F1. The authors present this as evidence for their 'explore more, retain less' principle. 4.4 In-Depth Analysis
  • On the held-out test split of the authors' own dataset, finer-grained reward models predicted correctness better. ToolPRM reached 99.38% trajectory accuracy, versus 99.06% for the coarse-grained PRM and 98.39% for the outcome reward model. All three scores are near ceiling. 4.2 Predictive Accuracy of Reward Model

Main limitation

Every inference-scaling comparison uses Hammer2.1 policy models. The reward model itself is built on Hammer2.1-3b and trained on Hammer rollouts, so the supplied evidence does not test whether the approach transfers to other policy families. The authors also note that the explore/retain trade-off is not set adaptively. Baselines.

Where to start

4.4 In-Depth Analysis · Check Figure 4 for how large the beam-width versus beam-count effect is, and how ToolPRM compares with Best-of-N at matched generation budgets.

Abstract

Large language models (LLMs) are increasingly demonstrating strong capabilities as autonomous agents, with function calling serving as a core mechanism for interaction with the environment. Meanwhile, inference scaling has become a cutting-edge technique to enhance LLM performance by allocating more computational resources during the inference process. However, current research on inference scaling primarily focuses on unstructured output generation tasks, leaving its application in structured outputs, like function calling, largely underexplored. To bridge this gap, we propose an inference scaling framework that combines fine-grained beam search with a process reward model, ToolPRM, which scores the internal steps of each single function call. To train ToolPRM, we construct the first fine-grained intra-call process supervision dataset, automatically annotated with function-masking techniques to provide step-level rewards for structured tool-use reasoning. Extensive experiments demonstrate that ToolPRM beats the coarse-grained and outcome reward models in terms of predictive accuracy, indicating its stronger capability in supervising the function calling inference process. Inference scaling technique equipped with ToolPRM also significantly improves the backbone model performance across various function calling tasks and benchmarks. More importantly, we reveal a key principle for applying inference scaling techniques to structured outputs:"explore more but retain less"due to the unrecoverability characteristics of structured function calling generation.

Generated automatically from paper sections on 2026-11-28.