TRACE: Turn-level Reward Assignment via Credit Estimation for Long-Horizon Agents

Leitian Tao, Baolin Peng, Wenlin Yao, Tao Ge, Hao Cheng +3 more
7/15/2026
cs.LG

No official code found. Best implementation: MSR-Orchard/trace (3 stars, Apache-2.0, last commit 2026-08-21).

Abstract

Multi-turn agents solve complex tasks through extended sequences of tool interactions before producing a final answer, making credit assignment a fundamental challenge during post-training. Outcome rewards provide reliable supervision for short-horizon reasoning, but become sparse and high-variance as trajectories grow to tens or hundreds of tool calls. They can also be misleading: a failed rollout may contain many useful actions that move the agent closer to the goal, yet outcome-only training assigns them the same negative advantage as the eventual mistake. We propose TRACE (Turn-level Reward Assignment via Credit Estimation), a dense credit-assignment method for agentic reinforcement learning. TRACE represents rollouts as state transitions at tool-call boundaries, obtains gold-answer log-probabilities from a frozen reference model, transforms them into log-ratio state values, and derives per-action rewards as Temporal-Difference changes in those values. This requires no additional critic or process-label training, and its one-step log-ratio TD component telescopes across redundant tool calls. On long-horizon complex search, TRACE substantially improves base-model tool-use ability using pure RL, without a cold-start supervised fine-tuning stage, an agentic mid-training stage, or training on live-web data. On the closed-web BrowseComp-Plus benchmark, it raises Qwen3-4B from $7.2$ to $35.6$ and Qwen3-30B-A3B from $8.4$ to $42.6$. The learned search behavior also transfers to open-web benchmarks, and the learning curves show earlier improvement and faster convergence during RL training.

View on arXivView PDF

Code Implementations(1)

MSR-Orchard/traceCommunity25%
Apache-2.0

the official code release of "TRACE: Turn-level Reward Assignment via Credit Estimation for Long-Horizon Agents"

30Shell, PythonAug 21, 20262 months agoApache-2.0

Similar Papers

Cite this paper

@article{tao2026trace,
  title  = {TRACE: Turn-level Reward Assignment via Credit Estimation for Long-Horizon Agents},
  author = {Leitian Tao and Baolin Peng and Wenlin Yao and Tao Ge and Hao Cheng and Mike Hang Wang and Jianfeng Gao and Sharon Li},
  year   = {2026},
  eprint = {2607.13988},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2607.13988v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2607.13988.svg)](https://codeofpaper.com/paper/2607.13988)

Discussion