arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2502.14276cs.LGcs.AIcs.CL
收藏

STeCa:面向LLM智能体学习的步骤级轨迹校准

STeCa: Step-level Trajectory Calibration for LLM Agent Learning

The Hong Kong Polytechnic University(香港理工大学)

Hanlin Wang, Jian Wang, Chak Tou Leong, Wenjie Li

AI总结:

针对LLM智能体在长程任务中因次优动作累积而偏离轨迹的问题,提出步骤级轨迹校准框架STeCa,通过奖励比较识别次优动作并利用反思构建校准轨迹进行强化训练,显著提升了性能与鲁棒性。

摘要:

基于大语言模型(LLM)的智能体通过与环境动态交互,在处理复杂任务方面展现出了潜力。现有工作主要集中于从专家演示中进行行为克隆,或通过探索性轨迹采样进行偏好学习。然而,这些方法通常难以应对长程任务,在这些任务中,次优动作逐步累积,导致智能体偏离正确的任务轨迹。为了解决这一问题,我们强调了及时校准的重要性,以及自动构建校准轨迹以训练智能体的必要性。我们提出了步骤级轨迹校准(STeCa),一种用于LLM智能体学习的新颖框架。具体而言,STeCa在探索过程中通过步骤级奖励比较来识别次优动作。它利用LLM驱动的反思构建校准轨迹,使智能体能够从改进的决策过程中学习。最后,我们利用这些校准轨迹与成功轨迹一起进行强化训练。大量实验表明,STeCa显著优于现有方法。进一步的分析强调,及时校准使智能体能够以更强的鲁棒性完成任务。我们的代码和数据可在 https://github.com/WangHanLinHenry/STeCa 获取。

英文摘要:

Large language model (LLM)-based agents have shown promise in tackling complex tasks by interacting dynamically with the environment. Existing work primarily focuses on behavior cloning from expert demonstrations or preference learning through exploratory trajectory sampling. However, these methods often struggle to address long-horizon tasks, where suboptimal actions accumulate step by step, causing agents to deviate from correct task trajectories. To address this, we highlight the importance of timely calibration and the need to automatically construct calibration trajectories for training agents. We propose Step-Level Trajectory Calibration (STeCa), a novel framework for LLM agent learning. Specifically, STeCa identifies suboptimal actions through a step-level reward comparison during exploration. It constructs calibrated trajectories using LLM-driven reflection, enabling agents to learn from improved decision-making processes. We finally leverage these calibrated trajectories with successful trajectories for reinforced training. Extensive experiments demonstrate that STeCa significantly outperforms existing methods. Further analysis highlights that timely calibration enables agents to complete tasks with greater robustness. Our code and data are available at https://github.com/WangHanLinHenry/STeCa.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑