论文

SAPD:不依赖环境交互、从离线轨迹训练 LLM 智能体

SAPD: Learning from Agent Experience without Environment Interaction

精选理由

训练智能体不用再搭一堆环境了,SAPD 直接从离线轨迹学,比在线蒸馏快 4.7 倍,代码过阵子开源。

SAPD(Step-Advantage Policy Distillation)是一种从离线轨迹学习训练 LLM 智能体的方法,不需要构建或运行可执行环境。它将多轮轨迹拆解为单个决策上下文做 on-policy 蒸馏,并引入相对步级优势信号来稳定训练。在 ALFWorld、WebShop 和 Search-based QA 三个基准上,SAPD 在不同教师配置下均提升了性能。与 SFT 相比,它能缓解灾难性遗忘,且每个训练步比在线 OPD 至少快 4.7 倍。

原文 · arXiv cs.LG

SAPD: Learning from Agent Experience without Environment Interaction

Scaling the training of Large Language Model (LLM) agents typically requires a large collection of executable environments, whose construction, maintenance, and operation constrain the expansion of training experience. Existing offline trajectories offer an opportunity to reuse interaction experience, yet effectively refining the current policy without revisiting these environments remains challenging: supervised fine-tuning (SFT) can lead to catastrophic forgetting, while online reinforcement learning requires real-time interaction with the environment. To address this challenge, we propose Step-Advantage Policy Distillation (SAPD), a method for learning from offline trajectories using relative step advantages. SAPD decomposes multi-turn trajectories into individual decision contexts for on-policy distillation, allowing the student to generate responses conditioned on recorded histories, and introduces relative step advantage signals to stabilize training. The entire process requires neither new environment observations nor additional multi-turn interactions. Experiments on ALFWorld, WebShop, and Search-based QA show that SAPD improves performance across different teacher configurations, mitigates catastrophic forgetting compared with SFT, and runs at least $4.7\times$ faster per training step than online OPD. We will release our code soon.