X-Tree: Tokenizing Reusable Experience for Efficient Agent Generalization

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

University of Waterloo · Duke University · National University of Singapore

Published September 26, 2026 · on the feed October 2, 2026 · ▲ 70 · arXiv 2609.32993

The 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.

The Brief

2:41

A short podcast summary of the paper. Written and voiced by AI.

Transcript

X-Tree. Tokenizing Reusable Experience for Efficient Agent Generalization. By Sitao Cheng and six others, from the University of Waterloo, Duke University, and one other institution. Published on the twenty-sixth of September. Its code repository is a placeholder: a readme, and nothing to run yet.

Agents that act in many steps are trained on flat streams of actions. SFT and RLVR weight every token the same, and they ignore the sub-procedures that keep recurring from one task to the next. That recurring structure is the hierarchy that lets people plan from the top down, out of routines they reuse. Left unused, it means each scarce trajectory is used less fully than its content allows, and trajectories are exactly the thing in short supply. Some recent agents do exploit the structure, but only as skills written by an LLM and placed in context. The skills never reach the weights, and so, the authors argue, their gains do not generalize beyond retrieval. An agent is only as good as the skills it manages to look up.

Here the hierarchy is recovered from the data itself, and the model is trained on it, with no LLM calls at all. The inspiration is the text tokenizer, which builds a vocabulary by counting alone. In the same spirit, action spans are scored by how reusable they are, and canonicalized actions are merged into a reusable eXperience tree, the X-Tree. Each node records how a skill that is both frequent and tied to success is composed out of smaller sub-skills. Like merged tokens in a vocabulary, larger routines are built from smaller ones, and the tree keeps that composition visible. That structure is meant to guide efficient generalization.

One tree, built once from the data, is then plugged into three quite different training settings. In offline RL, each node becomes a training instance of its own. In online RLVR, it supplies an adaptive skill bonus. And in on-policy self-distillation, the X-Tree serves as privileged context for the self-teacher, information the teacher sees that the student does not.

Experiments run on WebArena, ScienceWorld and WebShop, at three model scales, with data and budget matched against standard recipes. X-Tree improves on them by up to four point five percent success rate on WebArena, five point eight percent on ScienceWorld, and four point one percent success on WebShop. Matched analyses attribute those gains to two things together: the structure of the tree, and the three ways of integrating it.

Borrowing from tokenization is the move that makes this cheap. A tokenizer finds its vocabulary by counting, with no model consulted, and X-Tree finds an agent's reusable routines the same way, then writes them into training rather than into a prompt. The bet is that skills held in the weights will travel further than skills fetched from a library.

Paper Quest · 7 chapters · about 40 min

Play this paper

Learn it by doing: make the calls the authors made, guess the result before you see it, and defend it in a viva graded on your own words. Chapter 1 is right here.

Chapter 1 🧩 · The problem

Every quest starts with a wall. Here it is scarce experience, used less fully than it could be.

You train an agent that acts in many steps, like browsing a shop. Its trajectories enter training as flat streams of actions, and every token is weighted the same.

The road ahead

  1. 1 · The problem ~6 min Agents are trained on flat action streams that weight every token the same, wasting scarce trajectories and ignoring routines that recur across tasks.
  2. 2 · What came before ~3 min
  3. 3 · The key idea ~9 min Mine reusable skills from trajectories by counting and merging actions, as a text tokenizer builds words, then train on the resulting skill tree.
  4. 4 · Choose your own research ~3 min
  5. 5 · Build the method ~8 min Canonicalize actions, score spans by reusability, merge them into an experience tree, then train with the tree as instances, a bonus, or context.
  6. 6 · The experiment ~6 min You’ll guess: At matched data and budget, at most how much did X-Tree raise success rate on ScienceWorld over standard recipes?
  7. 7 · The viva ~5 min Three questions from the examiners, answered in your own words. Win it for the paper’s trophy.
Join free to play the whole quest ›

Free, with Google or an email address. Your stars and progress are kept.

KipQuest: the day’s AI research, as podcasts and quests. All papers Android app Privacy Contact Episodes are written and voiced by AI from each paper. Summaries can contain mistakes: the paper is the source.