Skip to main content
Back

Nanjing University's TAO-RL Fixes the Broken Training Loop Behind Agentic AI

TAO-RL fixes two root causes of unstable tool-use training in LLMs: bad data and timid exploration, beating existing methods across 7 benchmarks

Pro

Paper, Full Access
  • TAO-RL is a new agentic RL framework that stabilizes tool-use training in LLMs by fixing both data quality and exploration simultaneously.
  • It filters out two types of useless training trajectories: ones where all tool calls fail, and ones where all rollouts score identically (zero learning signal).
  • An entropy bonus is applied specifically at post-tool-call tokens, pushing the model to explore diverse reasoning paths at the most critical decision points.
  • Tested on 7 benchmarks including AIME 2024/2025 and AMC 2023 across 3 model scales, TAO-RL outperforms TIR, SimpleTIR, and curriculum baselines.
  • Gradient norm analysis shows TAO-RL training is dramatically more stable than TIR, which spikes and destabilizes between steps 50-80.
  • No code or model weights released yet; the approach is compatible with standard GRPO-based training pipelines.

Training LLMs to use tools reliably is one of the messiest open problems in agentic AI. You give a model a Python interpreter or a search engine, and suddenly the training loop starts misbehaving: the model either leans on the tool for everything, or barely uses it at all. A new paper from researchers at Nanjing University proposes TAO-RL (Tool-Aware Optimization with Entropy Guidance), a framework that attacks this instability at two levels simultaneously -- the data going into training and the optimization algorithm itself.

Why tool-use RL keeps breaking

The broader field of agentic RL -- training LLMs to act as autonomous agents that call external tools -- has exploded in the last year. Systems like Search-R1 and Tool-Star have shown that reinforcement learning can teach models to interleave reasoning with tool calls in powerful ways. But the training process is notoriously fragile.

Agentic RL training remains highly unstable and prone to collapse. This instability arises from the interactive, multi-turn nature of agentic environments, which introduce compounding challenges such as invalid actions, sparse rewards, long-horizon credit assignment, and non-stationary agent-environment dynamics. Two failure modes are especially common:

  • Over-reliance on tools: The model learns to blindly invoke tools even when it shouldn't, causing the input distribution to shift away from what the base model was trained on.
  • Under-exploration: The model plays it safe, rarely trying novel reasoning paths after a tool call, and converges to mediocre but stable behavior.

The central challenge is long-horizon credit assignment -- attributing a final outcome to specific intermediate tool calls remains difficult, even with fine-grained, turn-level rewards. This difficulty leads to training instability and brittle inference-time generalization, manifesting as strategic deficiencies like tool overuse or "cognitive offloading," suboptimal personalization, and poor alignment with user preferences for tool invocation.

Two fixes, one framework

TAO-RL addresses these problems with two complementary components that reinforce each other. The first is a data-level filter; the second is an algorithmic bonus applied during optimization.

Component 1: Tool-aware trajectory filtering. Before any gradient update, TAO-RL screens the rollout trajectories (the sequences of reasoning steps and tool calls the model generated) and discards two types of garbage data:

  • Trajectories where every tool call failed to execute -- these contain no useful signal about how to use tools correctly.
  • Trajectories where every rollout was either all-correct or all-wrong -- these produce what the paper calls "degenerate advantage estimates." In GRPO-style training (Group Relative Policy Optimization, which scores each trajectory relative to others in the same batch), if all outputs are identical in quality, the relative advantage is zero and the model learns nothing.

This filtering step ensures the training distribution stays both tool-capable and informationally rich -- the model only updates on data where it can actually distinguish better from worse behavior.

Gradient norm comparison between TAO-RL and TIR over training steps, showing TAO-RL remains stable while TIR spikes

Component 2: Entropy-guided exploration bonus. Entropy, in this context, measures how "spread out" the model's probability distribution is over possible next tokens -- high entropy means the model is uncertain and exploring; low entropy means it's confident and exploiting. TAO-RL injects an entropy bonus specifically at the tokens that come right after a tool call returns its result. This is the critical decision point: the model has just received new information from the tool and must decide how to reason forward. By rewarding higher entropy at exactly these junctures, TAO-RL pushes the model to explore more diverse reasoning paths precisely when it matters most.

The two components are designed to work together. Clean, filtered data establishes a stable training foundation. The entropy bonus then drives richer exploration on top of that foundation, without the instability that entropy bonuses can cause when applied to noisy data.

# Conceptual sketch of TAO-RL's filtering logic
for batch in rollout_trajectories:
    # Drop trajectories where all tool calls errored out
    if all(call.failed for call in batch.tool_calls):
        continue
    # Drop trajectories with degenerate advantage (all correct or all wrong)
    rewards = [r.score for r in batch.rollouts]
    if len(set(rewards)) == 1:  # all identical
        continue
    # Apply entropy bonus at post-tool-call tokens
    for token in batch.post_tool_tokens:
        token.advantage += entropy_bonus(token)
    training_data.append(batch)

What the numbers say

The authors tested TAO-RL across 7 challenging reasoning benchmarks -- including AIME 2024, AIME 2025, and AMC 2023 -- at three model scales. The comparisons are against TIR (Tool-Integrated Reasoning), SimpleTIR, and curriculum-based baselines.

Key findings from the experiments:

  • TAO-RL consistently outperforms all baselines across all 7 benchmarks and all 3 model scales tested.
  • The gradient norm comparison is striking: TIR shows dramatically spiking gradients between training steps 50-80, a classic sign of training instability. TAO-RL's gradient norms stay flat and low throughout -- a direct consequence of the trajectory filtering removing the noisy data that causes those spikes.
  • At higher sample counts (Pass@K with K up to 64), TAO-RL maintains its lead over SimpleTIR on both AIME 2024 and AIME 2025, suggesting the gains are not just from lucky single samples but from a genuinely better-calibrated policy.
  • The valid code rate (the fraction of generated code that actually executes without error) is higher and more stable for TAO-RL throughout training, confirming that the tool-use quality itself improves.
Pass@K comparison between TAO-RL and SimpleTIR on AIME 2024 across sample counts from 2 to 64

The real insight here

The deeper contribution is conceptual. Most prior work on stabilizing agentic RL has focused on either the reward function or the optimization algorithm in isolation. TAO-RL's insight is that data quality and exploration policy are coupled problems -- you can't fix one without the other. Applying an entropy bonus to a dirty training set just amplifies the noise. Filtering trajectories without encouraging exploration leads to a stable but conservative policy.

The research focus is shifting toward reinforcement learning and environmental feedback to optimize high-level decision-making. As the field transitions from single-tool triggering to multi-tool orchestration, RL encounters formidable challenges: sparse reward signals, difficult credit assignment, and training instability. TAO-RL's joint treatment of both problems is a meaningful step toward making multi-tool agentic training reliable enough to use in practice.

Where it falls short

A few limitations are worth noting. The trajectory filtering discards data, which means you need more rollouts to fill a training batch -- this increases sampling cost. The entropy bonus is applied uniformly at all post-tool-call tokens, but not all tool calls are equally important decision points; a more fine-grained weighting could potentially do better. The paper also evaluates primarily on mathematical reasoning benchmarks (AIME, AMC) and multi-hop QA, so generalization to more open-ended agentic tasks like web navigation or code repository editing remains to be demonstrated.

Availability

The paper is available on arXiv. No code repository or model weights have been released alongside the paper at this time. Given the framework's compatibility with standard GRPO-based training pipelines, implementation should be relatively straightforward for teams already running agentic RL experiments -- the filtering logic and entropy bonus are both lightweight additions to existing training loops.