X-Tree:为高效智能体泛化标记可复用经验

·

研究论文 · 2026/10/03

多步智能体通常在扁平动作流上训练:SFT和RLVR对每个token均匀加权,忽略了跨任务重复出现的子过程以及人类自上而下规划所依赖的层次结构。这种结构未被利用,扁平训练对稀缺轨迹的利用不够充分。近期智能体虽在上下文中使用LLM编写的技能,但从未将其融入权重,因此收益无法泛化到检索之外。我们转而从数据本身恢复这种层次结构并基于其训练,无需LLM调用。借鉴文本分词器仅通过计数构建词汇表的方法,我们根据可重用性对动作片段评分,并将规范化动作合并为可重用的经验树(X-Tree)。每个X-Tree节点捕捉一个频繁且成功的技能如何由子技能组成,从而引导高效泛化。我们将X-Tree集成到三种训练设置中:离线RL,每个节点作为训练实例;在线RLVR,使用自适应技能奖励;以及同策略自蒸馏,将X-Tree作为自教师的特权上下文。在WebArena、ScienceWorld和WebShop上,三种模型规模下,X-Tree在匹配数据和预算下优于标准方法,WebArena成功率提升高达4.5%,ScienceWorld提升5.8%,WebShop提升4.1%。匹配分析将增益归因于X-Tree结构及三种集成方式。

该工作通过从数据中自动构建可重用经验树,提升了智能体在多个任务上的泛化能力,且无需LLM调用,方法高效且易于集成到现有训练流程中。

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.

阅读原文

参与讨论