TRACE: Solving the "Credit Assignment" Trap in Long-Horizon Agents

TRACE: Turn-level Reward Assignment via Credit Estimation for Long-Horizon Agents TRACE: TURN-LEVEL REWARD ASSIGNMENT VIA CREDIT ESTIMATION FOR LONG-HORIZON AGENTS

2026-07-15
Leitian Tao, Baolin Peng, Wenlin Yao, Tao Ge, Hao Cheng, Mike Wang, Jianfeng Gao, Sharon Li, -Madison, Microsoft Research
Summary
Problem
Method
Results
Takeaways
Abstract

TRACE (Turn-level Reward Assignment via Credit Estimation) is a dense credit-assignment framework for training long-horizon agents using Reinforcement Learning. It uses a frozen reference model to score tool-call transitions based on gold-answer log-probabilities, achieving SOTA results on benchmarks like BrowseComp-Plus (Qwen3-4B: 7.2 to 35.6; 30B: 8.4 to 42.6).

TL;DR

Current LLM agents often struggle to learn from Reinforcement Learning because rewards are too "sparse"—a single "Correct/Incorrect" at the end of 50 tool calls doesn't tell the model which search query was the winner. TRACE (Turn-level Reward Assignment via Credit Estimation) introduces a breakthrough: using a frozen reference model to calculate dense, turn-by-turn rewards based on how much "closer" each action brings the agent to the gold answer. It transforms base models into deep-research experts without a single line of human-labeled process data.

The Motivation: Why Outcome Rewards Fail Agents

In single-turn tasks like math, outcome-based RL (like DeepSeek's GRPO) works wonders. But for agents, a trajectory is a marathon.

  1. The Dilution Problem: If an agent makes 10 brilliant moves but fails on the 11th, outcome-only RL punishes all 10 brilliant moves.
  2. The Redundancy Problem: If an agent succeeds but wastes 5 turns on redundant searches, RL rewards those wasteful turns, leading to "bloated" and inefficient agents.

The authors realized that the gold answer (available during training) is a lighthouse. If a tool call (like browser.open) makes that gold answer more "predictable" to a language model, that move deserves credit.

Methodology: The Logic of Log-Ratio TD

TRACE segments a rollout at every tool-call boundary. It then asks a frozen version of the model: "Given this new piece of info, how likely is the gold answer now?"

1. State Value via Gold-Answer Probability

The core innovation is the log-ratio state value. Instead of looking at absolute probability increases (which are volatile), TRACE looks at the relative closure of the gap to the answer. TRACE Reward Construction

2. The Telescoping Property

Because of the mathematical formulation (log-ratio), the rewards "telescope." This means the sum of all turn-level rewards is mathematically tied to the final state. If an agent performs a redundant search that adds no new info, the TD change is zero. If it deletes a useful piece of info from its context, the reward is negative.

Experimental Results: SOTA Performance

TRACE was tested on complex, multi-hop search tasks where the agent must chain multiple documents to find an answer.

  • Massive Accuracy Jumps: On BrowseComp-Plus, TRACE boosted a 4B model from 7.2% to 35.6%.
  • Faster Convergence: As shown in the learning curves below, TRACE (blue line) starts learning significantly earlier and plateaus much higher than standard GRPO.
  • Cross-Language Transfer: Techniques learned on English closed-web data transferred to Chinese open-web tasks (xbench-DeepSearch), proving TRACE teaches interaction logic, not just data memorization.

Learning Dynamics

Deep Insight: Turning "Found Info" into Advantage

The qualitative analysis in the paper provides a "smoking gun" for why this works. In successful runs, TRACE assigns massive positive credit (+6.39) to the specific browser.search that surfaces the discriminative fact, while assigning near-zero credit to subsequent redundant checks. Conversely, it heavily penalizes "hallucinated" search results that lead the agent astray, even if the rest of the trajectory was perfect.

Conclusion & Future Outlook

The beauty of TRACE is its simplicity: it requires no additional critic training and no human labels. It purely leverages the inherent knowledge of the base model to supervise its own agentic behavior.

Limitations: Currently, TRACE relies on having a short, verifiable "gold answer." For open-ended tasks like "write a report," we still need to find a way to define a stable "state value." However, for deep-research and fact-finding agents, TRACE provides the blueprint for the next generation of efficient, high-reasoning LLMs.

Find Similar Papers

Try Our Examples

  • Search for recent papers on "verifiable reinforcement learning" for LLM agents that attempt to solve credit assignment without manual step-level annotations.
  • Which original paper introduced the "telescoping reward" concept for RL, and how does TRACE's log-ratio state value differ from traditional potential-based reward shaping?
  • Examine research applying dense TD-based credit assignment to agent tasks with open-ended or long-form outputs, such as autonomous software engineering (SWE-bench).
Contents
TRACE: Solving the "Credit Assignment" Trap in Long-Horizon Agents
1. TL;DR
2. The Motivation: Why Outcome Rewards Fail Agents
3. Methodology: The Logic of Log-Ratio TD
3.1. 1. State Value via Gold-Answer Probability
3.2. 2. The Telescoping Property
4. Experimental Results: SOTA Performance
5. Deep Insight: Turning "Found Info" into Advantage
6. Conclusion & Future Outlook