Procedure-Aware Reinforcement Learning for Tool-Augmented Large Language Models

Qinglong Zheng, Jiajun Fan, Chaoran Cheng, Ge LiuCOLM 2026

TL;DR

Researchers have developed a Procedure-Aware Reinforcement Learning framework that teaches Large Language Models (LLMs) not just which tools to use, but the correct sequence in which to use them. By rewarding procedural fidelity, a compact 3B-parameter model (Qwen2.5) was able to outperform correctness-only baselines and achieve parity with proprietary giants like GPT-5-mini and Gemini-2.5-Flash-Lite on complex tool-calling benchmarks.

What Problem Does This Paper Address?

As LLMs transition from chatbots to autonomous agents, their ability to use external tools (APIs, code sandboxes, search engines) becomes critical. Current training methods, like Supervised Fine-Tuning (SFT) or Reinforcement Learning with Verifiable Rewards (RLVR), typically treat tool calls as a "bag-of-actions." They reward the model if it picks the right tool and parameters, but they often ignore the execution order.

In real-world scenarios, order is everything. You cannot write to a file before you’ve navigated to the correct directory; you cannot calculate a flight's total cost before you've retrieved the individual leg prices. When models ignore this sequential logic, they suffer from "disordered execution," leading to cascading failures in multi-turn tasks. The authors argue that mastering tool use requires a shift from declarative learning (what a correct call looks like) to procedural learning (how to achieve a goal step-by-step).

Methods

The authors introduce the Procedure-Aware Agentic RL Framework, which fine-tunes models using Group Relative Policy Optimization (GRPO). The core innovation lies in the reward function, which is decomposed into four parts:

  1. Format Reward ($R_{format}$): Ensures the model adheres to structured XML/JSON tags.
  2. Correctness Reward ($R_{correct}$): A hierarchical check for tool names, parameter keys, and values.
  3. Procedural Reward ($R_{proc}$): This is the "secret sauce." It uses Normalized Discounted Cumulative Gain (NDCG) to reward the model for calling tools in the correct order relative to a ground-truth sequence. It also includes a State Reward that gives credit if the model eventually reaches the correct final system state, even if it took a slightly different path.
  4. Error-aware Penalty ($R_{error}$): Explicitly penalizes common structural failures like hallucinating non-existent tools or providing the wrong data type (e.g., a float instead of a string).
Figure 1: Overview of the Procedure-Aware Agentic RL Framework. In the figure, w1–w4 correspond to (w f , wc, wp, we) in Eq. 4, and the reward ranges are abbreviated: Rcorrect and Rproc take continuous values in [−1, 1] and [0, 1], respectively (Sec. 3.2).

By combining these, the model is incentivized to be precise, orderly, and resilient to errors.

Datasets

The models were trained on a 4k-sample multi-turn tool-calling dataset and evaluated on three major benchmarks:

  • BFCL V3 (Berkeley Function Calling Leaderboard): The primary benchmark covering synthetic, live, and multi-turn sequential interactions.
  • API-Bank: Used to test hierarchical difficulty and complex sequential coordination.
  • Bamboogle: A multi-hop reasoning benchmark that requires search tools, serving as an out-of-distribution test to check for generalization.

Key Insights and Ideas

  • The "How" vs. The "What": Rewarding the procedure yields disproportionate gains in multi-turn tasks. While correctness-only models might get the tools right, they often fail the sequence. The procedural reward acts as a "process supervisor" without requiring expensive human labels.
  • Emergent Error Recovery: One of the most striking findings was that procedure-aware models became better at recovering from failures. Instead of giving up when an API returned an error, the models learned to diagnose the issue (e.g., "I need a zipcode first") and pivot to a prerequisite tool.
  • NDCG as a Training Signal: The authors found that NDCG is superior to other metrics like Kendall’s $\tau$ or edit distance for tool ordering because it is position-sensitive—getting the first few steps right is more important for state-dependent tasks.
  • Efficiency of Small Models: The results suggest that for specialized agentic tasks, a well-trained 3B model can be more reliable than a 100B+ model that hasn't been optimized for procedural fidelity.

Key Results

The authors' 3B model (based on Qwen2.5) showed significant improvements across the board:

  • BFCL V3: Achieved an average accuracy of 65.67%, outperforming the ToolRL baseline (63.07%) and beating proprietary models like GPT-5-mini (57.11%) and Claude-Haiku-4.5 (47.26%).
  • Multi-Turn Mastery: On the most difficult multi-turn tasks in BFCL, the model saw an 87% relative improvement over the baseline (7.25% vs 3.88%).
  • API-Bank: Showed substantial gains in "Level-3" tasks, which specifically require coordinating multiple tools in sequence.
Comparison of BFCL V3 Benchmark Results

Limitations and Future Work

Despite the success, the authors note several hurdles:

  • Ground Truth Dependency: The current framework requires ground-truth tool sequences for training, which can be hard to obtain for very complex, open-ended tasks.
  • Context Pressure: Small models (3B) still suffer from "attention dilution" in very long dialogues. When the context window gets crowded with tool schemas and history, the model's stability can degrade.
  • Scaling Dynamics: While the benefits persisted at the 7B scale, the authors haven't yet explored how these procedural rewards interact with massive models (70B+).

Future work will likely focus on Automated Procedural Reward Discovery, where the model learns to infer the "correct" procedure from sparse success/failure signals rather than relying on strict ground-truth sequences.

Summary updated

BibTeX
@inproceedings{zheng2026procedure,
  author = {Qinglong Zheng and Jiajun Fan and Chaoran Cheng and Ge Liu},
  title = {{Procedure-Aware Reinforcement Learning for Tool-Augmented Large Language Models}},
  booktitle = {COLM},
  year = {2026},
  url = {https://openreview.net/forum?id=d4wrBuJ4xo},
}
Figure