化腐朽为神奇:事后重新标记大语言模型智能体轨迹以实现成功示范
Spinning Straw into Gold: Relabeling LLM Agent Trajectories in Hindsight for Successful Demonstrations
AI总结:
针对大语言模型智能体监督瓶颈,利用智能体展开中隐含的成功目标,引入事后监督学习(HSL),通过辅助大语言模型重新标记轨迹及目标并微调,提出两种技术减轻数据次优性,实验证明其优势。
摘要:
大语言模型智能体在部分可观测的长时环境中运行,获取监督仍是主要瓶颈。我们利用现有训练后方法中被忽视的监督来源——智能体展开中隐含的成功目标来解决此问题。具体而言,我们引入事后监督学习(HSL),其中一个辅助大语言模型审查每个完整轨迹并用智能体实际实现的所有自然语言目标重新标记它。然后,HSL将轨迹与其重新标记的目标配对,并使用这些对进行额外的微调。为了减轻重新标记数据中的次优性,我们为HSL提出了两种学习技术,即无关动作屏蔽和样本重新加权。我们的实验表明,HSL具有灵活性且与现有的训练后管道兼容。它改进了SFT和DPO,在目标空间更多样化的长时任务上有更大的提升。此外,HSL具有样本效率:在ALFWorld上,它仅使用四分之一的真实示范就超过了在完整数据集上训练的基线。
英文摘要:
Large language model agents operate in partially observable, long-horizon settings where obtaining supervision remains a major bottleneck. We address this by utilizing a source of supervision overlooked in existing post-training methods: unintended yet successful goals embedded within agent rollouts. Specifically, we introduce Hindsight Supervised Learning (HSL), where an auxiliary LLM reviews each completed trajectory and relabels it with all of the natural-language goals the agent actually achieved. HSL then pairs the trajectory with its relabeled goals and uses these pairs for additional fine-tuning. To mitigate suboptimality in the relabeled data, we propose two learning techniques for HSL, irrelevant-action masking and sample reweighting. Our experiments show that HSL is flexible and compatible with existing post-training pipelines. It improves both SFT and DPO, with larger gains on long-horizon tasks with more diverse goal spaces. Moreover, HSL is sample-efficient: on ALFWorld, it surpasses baselines trained on the full dataset while using only one quarter of the ground-truth demonstrations.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。