TSBPO: Tree-Structured Branching for Policy Optimization in Interactive Language Agents

Rui Yu, Chong Mu, Jinchuan Zhang

Training interactive language agents—LLMs that can reason and act within an environment—is notoriously difficult. Most of the time, these agents only receive a "terminal" signal: a simple success or failure at the very end of a long sequence of actions.

If an agent fails to buy a toaster on a simulated shopping site after 15 turns, was the mistake the initial search query, a click on the wrong product page, or a failure to select the right color at checkout? A new paper from researchers at the University of Electronic Science and Technology of China introduces TSBPO (Tree-Structured Branching for Policy Optimization) to solve this "credit assignment" puzzle.

TL;DR

TSBPO is a training framework that uses tree-structured rollouts and a smart "Root/Branch" allocator to identify exactly which decisions lead to success or failure. By replaying environment states to explore alternative actions and aggregating rewards at the turn level rather than the token level, it enables small models (like Qwen2.5-1.5B) to outperform much larger agents on complex interactive benchmarks.

What Problem Does This Paper Address?

Training agents with Reinforcement Learning (RL) from terminal feedback faces three main hurdles:

  1. Sampling Efficiency: With a limited "rollout budget," which tasks or specific conversation turns should you explore more deeply to learn the most?
  2. Credit Assignment: How do you map a final "Success" label back to a specific action taken ten steps ago?
  3. Token-Action Mismatch: LLMs generate actions token-by-token, but the environment only reacts to the full command. Standard RL methods that average loss per token can inadvertently penalize long, thoughtful reasoning or reward short, impulsive actions.

Methods

TSBPO addresses these by moving away from linear trajectories and toward a physical rollout tree structure.

1. The Root/Branch Allocator

Instead of picking tasks at random, TSBPO uses a likelihood-fitted model to predict which tasks (Root) or specific states (Branch) are likely to produce "contrasting" outcomes (i.e., where the agent is currently coin-flipping between success and failure). It allocates more rollouts to these "uncertain" zones to maximize learning.

2. Sibling Comparison (Credit Assignment)

As shown in Figure 2, when the agent reaches a specific state $h$, the system "branches" out, trying multiple different continuations from that exact same environment snapshot. Figure 2. Physical rollout tree and local trajectory credit. By comparing these "siblings," the agent gets a very clear signal: "When I said Action A, I won; when I said Action B, I lost." This reduces the noise inherent in comparing actions across completely different episodes.

Figure 2. Physical rollout tree and local trajectory credit. Terminal leaves back up as descendant-leaf means; immediate sibling scores are centered at each split. At h, the child scores 4 against four zero- score siblings, yielding +3.2 and -0.8. Optional weighting changes actor coefficients only.

3. Complete-Turn Aggregation

To bridge the gap between tokens and actions, TSBPO treats the entire multi-token response as the unit of optimization. It sums the "surrogate" losses for all tokens in a turn and normalizes them across the active turns in a batch. This prevents the model from becoming biased toward shorter responses just because they have fewer tokens to "average" over.

The overall training flow, moving from initial imitation (SFT) to this tree-structured online RL, is summarized in Figure 1. Figure 1. TSBPO training paradigm.

Figure 1. TSBPO training paradigm. Successful teacher interactions initialize executable behavior; online RL connects Root/Branch allocation, physical-tree credit, and complete-turn actor updates. Rollout icons are schematic.

Datasets

The authors evaluated TSBPO on two primary interactive benchmarks:

  • ALFWorld: A synthetic environment where agents must perform household tasks (e.g., "find a clean sponge and put it in the cabinet") using text-based interactions.
  • WebShop: A simulated e-commerce platform with 1.18 million real-world products. Agents must navigate search results and product pages to find items meeting specific, often complex, user requirements.

Key Insights and Ideas

  • Contrast is the Best Teacher: The most valuable data isn't just "success" or "failure," but the boundary between them. The Branch allocator specifically hunts for these transition points.
  • Replayability is a Superpower: By replaying physical environment occurrences, the agent can perform "what-if" analysis. This is much more stable than standard RL, where every episode starts from scratch.
  • Turn-Level Weighting Improves Quality: The authors found that weighting by complete turns rather than tokens led to higher "command validity"—the agent was less likely to hallucinate gibberish or invalid syntax because the loss function respected the integrity of the full action.

Key Results

Using a modest Qwen2.5-1.5B model, TSBPO achieved impressive results:

  • ALFWorld: Reached 97.79% success on seen tasks and 96.64% on unseen tasks.
  • WebShop: Achieved an 81.07% success rate, significantly outperforming previous RL methods like PPO (51.5%) and even specialized agentic methods like GiGPO (65.0%).
  • Ablation Study: Removing the "step-advantage" (which compares outcomes at matched observation states) dropped WebShop success from 81.07% to 75.93%, proving that local state-based credit is a critical component of the system's performance.

Limitations and Future Work

While powerful, TSBPO has a few constraints:

  • Environment Snapshots: The method relies on the ability to "replay" or "snapshot" an environment state to branch from it. This is easy in simulators but difficult in real-world robotics or live web environments.
  • Computational Cost: Branching naturally requires more environment steps per "update" than simple linear paths, though the authors argue this is offset by higher sample efficiency.
  • Scale: The study focused on a 1.5B parameter model. While this shows the method's efficiency, it remains to be seen how these tree-structured advantages scale to 70B+ parameter models.

Future work could involve extending this to "non-replayable" environments using world models to simulate the branches, or applying the turn-based aggregation to even more complex reasoning tasks like coding.

Summary updated

Abstract

Training interactive language agents from terminal outcomes poses three coupled problems: which task and state continuations to sample, how to assign delayed feedback to decisions, and how to aggregate token losses for multi-token actions. We present TSBPO, a tree-structured sampling-to-update paradigm that addresses these problems within one training loop. A likelihood-fitted Root/Branch allocator uses retained task and state evidence to target continuations likely to produce contrasting terminal outcomes under fixed rollout budgets. On the resulting replayed physical trees, trajectory advantages compare immediate sibling segments, while observation-group step advantages compare outcomes at matched task/observation states. The actor then sums clipped token surrogates over each complete response and normalizes across active turns, avoiding response-length averaging in the policy-gradient term. With a Qwen2.5-1.5B actor, fixed checkpoints obtain 97.79% seen and 96.64% unseen stochastic success on ALFWorld and an 81.07% per-episode success rate over six stochastic episodes for each of the 500 WebShop test goals. A WebShop step-term ablation yields 75.93% at the same update-100 evaluation; an ALFWorld aggregation comparison shows higher observed command validity with complete-turn weighting. These results support the evaluated training configuration on two interactive benchmarks.
BibTeX
@misc{yu2026tsbpo,
  author = {Rui Yu and Chong Mu and Jinchuan Zhang},
  title = {{TSBPO: Tree-Structured Branching for Policy Optimization in Interactive Language Agents}},
  year = {2026},
  eprint = {2610.41697},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2610.41697},
}
Figure