PORTool: Importance-Aware Policy Optimization with Rewarded Tree for Multi-Tool-Integrated Reasoning

Feijie Wu, Weiwu Zhu, Yuxiang Zhang, Soumya Chatterjee, Jiarong Zhu, Fan Mo, Rong Luo, Jing GaoNeurIPS 2026

TL;DR

Training AI agents to use external tools usually forces an uncomfortable trade-off: micro-manage every step and get a brittle model, or reward only the final answer and leave the model guessing which intermediate tool call actually worked. PORTool bridges this gap by organizing agent attempts into a branching tree of shared histories, allowing the model to directly compare competing tool choices from the exact same starting point. The result is an agent that solves complex tasks more accurately while taking fewer steps to get there.

What Problem Does This Paper Address?

Teaching Large Language Models (LLMs) to interleave reasoning with real-world tool calls—like checking live weather, querying databases, or converting units—is commonly tackled with Reinforcement Learning (RL). Currently, there are two main ways to reward these agents, and both have blind spots.

First is step-supervised RL, which grades the agent at every single turn against an expected "gold-standard" tool call. This enforces a rigid routine, discourages creative problem-solving, and causes the agent to panic when live tools return unexpected errors.

Second is trajectory-supervised RL (like standard GRPO), which lets the agent figure out its own path and grades only the final answer. While flexible, this creates credit-assignment ambiguity. If a five-step chain of tool calls fails at the end, every step gets penalized equally—even brilliant early steps. Conversely, a sloppy, error-throwing tool call gets rewarded if the agent happens to recover later. How do we assign step-by-step credit using only final-answer supervision?

Methods

Instead of sampling multiple independent attempts (trajectories) from scratch for each user query, PORTool (Policy Optimization with Rewarded Tree for Multi-Tool-Integrated Reasoning) structures exploration into a bounded-branching rollout tree.

Figure 2: Overview of PORTool Workflow
  1. Tree Rollouts: Rollouts share an identical prefix of reasoning and tool responses for several steps before "forking" into distinct candidate actions. This creates clean, controlled experiments: given the exact same history, what happens if I call Tool A versus Tool B?
  2. Step-Wise Importance Scoring: At the end of the tree, a fixed LLM judge scores the final answer ($+1$ for correct, $-1$ for incorrect, $0$ if unanswerable due to tool limits). PORTool propagates these outcomes backward to score intermediate steps, applying a decay factor ($\gamma = 0.95$) to favor shorter paths. It also adds a small, bounded auxiliary reward ($[-0.25, 0.25]$) for valid JSON formatting and error-free execution—large enough to guide syntax, but too small to overpower actual final-answer correctness.
  3. Dual-Granularity Policy Update: Standard RL normalizes rewards across whole trajectories. PORTool combines this coarse trajectory-relative advantage with a fine-grained fork-relative advantage (comparing sibling branches at a split), using a theoretically derived scaling factor so neither signal drowns out the other during token-level updates.

Datasets

  • In-the-Wild Virtual Assistant Dataset: A collection of 3,607 anonymized real user queries (3,072 train / 535 eval) across eight domains (Weather, Sports, Geo, Knowledge, Clock, News, Flight, Stock) paired with an executable environment of 21 production-style tools. Crucially, many queries are time- and location-dependent (e.g., "weather at seven" or "near me"), requiring live context checks.
  • Out-of-Distribution Benchmarks: To test whether the learned skills transfer to unseen tools and prompts, the authors evaluate zero-shot generalization on API-Bank, ToolBench (via StableToolBench), and TravelPlanner.

Key Insights and Ideas

  • Standard RL Can Cause "Collateral Unlearning": The authors prove mathematically (Theorem 3.1) that under standard trajectory-level RL, a step that is 100% necessary for solving a problem can actually have its probability decreased if downstream steps fail frequently enough. Prefix-sharing forks prevent this by isolating step evaluation.
  • Adaptive Aggregation Beats Pure Max or Average: When scoring a branch based on its descendants, always averaging dilutes rare breakthroughs, while always taking the maximum rewards lucky flukes. PORTool uses max when sibling branches have different best-case outcomes, and falls back to average to break ties—rewarding reliability and brevity.
  • Normalized Signals Cannot Be Naively Mixed: Trajectory advantages are averaged over all tokens in a rollout, while fork advantages apply locally at splits. Naively adding them ($1:1$) distorts credit assignment; matching their empirical normalizers is essential for stable learning.

Key Results

Tested on Qwen-2.5-7B-Instruct and Qwen-3-1.7B backbones (warm-started with SFT), PORTool outperforms strong agentic RL baselines including GRPO, DAPO, ARPO, AgentFlow, and SimpleTIR:

Table 1: Performance comparisons among different RL training methods on the evaluation dataset
  • Higher Accuracy, Less Effort: On Qwen-2.5-7B-Instruct, PORTool achieves 51.96% accuracy (beating the best baseline, AgentFlow, by 3.74 percentage points), while cutting average tool-call steps down to 3.07 and dropping the "no-final-answer" timeout rate from over 10% to 7.10%.
  • Consistent Gains at Smaller Scale: On Qwen-3-1.7B, PORTool hits 46.58% accuracy (+3.81 points over formatting-augmented GRPO) while using the fewest steps (2.64).
  • Zero-Shot Transfer: Despite training on a 21-tool mobile assistant setup, PORTool generalizes best to unseen toolsets, achieving top average scores on API-Bank (59.0%), ToolBench (53.4%), and TravelPlanner (92.8% delivery rate).

Limitations and Future Work

The experiments focus on 1.7B and 7B open-weight models from the Qwen family—ideal for efficient, on-device assistant scenarios, which was the target domain. However, the authors note they have not yet verified whether these exact gains hold at massive frontier scales, on proprietary models, or across different model architectures, leaving broader architectural scaling as a clear next step.

Summary updated

Abstract

Multi-tool-integrated reasoning enables LLM-empowered tool-use agents to solve complex tasks by interleaving natural-language reasoning with calls to external tools. However, training such agents using outcome-only rewards suffers from credit-assignment ambiguity, obscuring which intermediate steps (or tool-use decisions) lead to success or failure. In this paper, we propose PORTool, an importance-aware policy-optimization algorithm that reinforces agents' tool-use competence from outcome-level supervision while assigning reward at the step level. Specifically, PORTool generates a rewarded rollout tree in which trajectories share prefixes before branching, enabling direct comparisons among alternative tool-use decisions within the same context. It then estimates each step's importance by a correctness-dominant signal, i.e., whether descendants of that step can ultimately produce a correct final answer, plus an auxiliary term indicating whether the step's tool calls execute successfully. Using these step-wise importance estimates, PORTool updates the policy to generate efficient tool-call steps, guided by both local comparisons within each branching decision and the overall quality of entire trajectories. Experiments show that PORTool improves final-answer accuracy while reducing tool-call steps compared with state-of-the-art baselines, and ablation studies confirm the robustness of the proposed step-wise importance estimates.
BibTeX
@inproceedings{wu2026portool,
  author = {Feijie Wu and Weiwu Zhu and Yuxiang Zhang and Soumya Chatterjee and Jiarong Zhu and Fan Mo and Rong Luo and Jing Gao},
  title = {{PORTool: Importance-Aware Policy Optimization with Rewarded Tree for Multi-Tool-Integrated Reasoning}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=54keqZlySs},
}
Figure