← Back to Paper Radar

X-Tree: Tokenizing Reusable Experience for Efficient Agent Generalization

Sitao Cheng, Xunjian Yin, Zhiyuan Sun, Yuxuan Li, Ruiwen Zhou, Xiangru Jian, Victor Zhong
2026

Reading guide · Based on sections of the original paper

The authors propose X-Tree, a deterministic, BPE-like miner that needs no LLM calls. It merges canonicalized agent actions into a hierarchy of recurring, success-bearing skills, and the authors use that hierarchy as training data (offline RL), as a reward bonus (online RLVR), and as teacher context (on-policy self-distillation).

Why read this

Practitioners training multi-step web or text-environment agents on scarce trajectories can use it to get more out of a fixed pool without paying for LLM-written skill libraries.

What the authors found

  • On WebArena with Qwen2.5-7B (694 deterministic tasks, normalized SR, three passes), node-level offline RL with X-Tree reached 22.9 SR versus 18.4 for Go-Browse full-data SFT. Four-epoch SFT, used to match compute, reached 18.8, and a random tree fell to 17.9. Under the official evaluator the scores were 21.5 versus 17.2. The gain shrank to +1.6 on Qwen2.5-14B and +2.0 on GLM-4-9B. 5.1 Offline RL on WebArena
  • Adding the adaptive X-Tree bonus to outcome-only GRPO at 1.5B, 3B and 7B (mean of three seeds) improved ScienceWorld SR by up to 4.9 on seen folds and up to 3.9 on held-out tasks. On WebShop it improved success by up to 3.6. In the authors' rollout-count sweep, the margin narrowed at n=16, and one of the 12 cells favored the baseline. 5.2 Online RLVR on ScienceWorld and WebShop
  • In self-distillation, the authors report that a rendered X-Tree bank performs on par with skill banks written by gpt-oss-120b or GPT-o3, leading by up to +3.7 on ScienceWorld and +1.7 on WebShop. 5.3 OPSD on ScienceWorld and WebShop

Main limitation

On ScienceWorld's held-out fold at 1.5B, a random tree did as well as the mined X-Tree (+3.9 versus +2.8 over outcome-only). The structural attribution therefore holds mainly for seen tasks, not for generalization to unseen tasks. F.4 Ablation of X-Tree structure

Where to start

Appendix H Stability and scope: the spread behind each mean · Check the per-seed spreads. Outcome-only GRPO varies by up to ±8.4 at 7B, and the authors call held-out G2 the noisiest column, so this shows which gains are robust.

Abstract

Multi-step agents are trained on flat action streams: SFT and RLVR weight every token uniformly and ignore the sub-procedures that recur across tasks, the hierarchy that lets humans plan top-down from reusable routines. This structure sits unused, and flat training uses each scarce trajectory less fully than its content allows. Recent agents do use that structure, but only as LLM-written skills in context, never in the weights, so their gains do not generalize beyond retrieval. We instead recover this hierarchy from the data itself and train on it, with no LLM calls. Following text tokenizers, which build a vocabulary by counting alone, we score action spans by reusability and merge canonicalized actions into a reusable eXperience tree (X-Tree). Each X-Tree node captures how a frequent and success-bearing skill is composed from sub-skills, guiding efficient generalization. We integrate X-Tree into three training settings: offline RL, with each node as a training instance; online RLVR, with an adaptive skill bonus; and on-policy self-distillation, with X-Tree as the self-teacher's privileged context. Across WebArena, ScienceWorld, and WebShop at three model scales, X-Tree improves over standard recipes at matched data and budget by up to 4.5% SR on WebArena, 5.8% SR on ScienceWorld and 4.1% success on WebShop. Matched analyses attribute the gains to the X-Tree structure and the three integrations.

Generated automatically from paper sections on 2026-11-28.