arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2505.09561cs.ROcs.AIcs.LG
收藏

通过过去Token预测学习长上下文扩散策略

Learning Long-Context Diffusion Policies via Past-Token Prediction

Stanford University(斯坦福大学)

Marcel Torne, Andy Tang, Yuejiang Liu, Chelsea Finn

AI总结:

针对机器人长上下文策略训练成本高、性能易下降的问题,提出过去Token预测辅助任务与多阶段训练策略,还构建了测试时自验证机制,显著提升长上下文扩散策略性能并加速训练。

摘要:

对长序列观测值与动作进行推理在众多机器人任务中至关重要。然而,从演示数据中学习有效的长上下文策略仍颇具挑战。随着上下文长度增加,内存需求上升导致训练成本愈发高昂,且策略性能往往会因虚假相关性而下降。现有方法通常通过截断上下文长度来回避这些问题,却丢弃了可能对后续决策至关重要的历史信息。\n本文提出了一种替代方法,可显式正则化过去信息的保留过程。我们首先重新审视模仿学习中的“模仿者问题”,并发现近期扩散策略中存在一种相反的挑战:这类策略并非过度依赖先前动作,反而往往无法捕捉过去与未来动作之间的关键依赖关系。为解决该问题,我们提出了过去Token预测(Past-Token Prediction, PTP)这一辅助任务,策略在预测未来动作Token的同时,还需学习预测过去的动作Token。这种正则化方式显著提升了策略头的时序建模能力,且对视觉表征的依赖极小。\n基于这一发现,我们进一步提出了一种多阶段训练策略:使用短上下文预训练视觉编码器,再利用缓存的长上下文嵌入微调策略头。该策略在保留PTP优势的同时,大幅降低了内存与计算开销。最后,我们将PTP扩展为测试阶段的自验证机制,使策略能够在推理过程中对候选动作进行评分,并选出与过去动作一致的结果。在4项真实世界任务与6项模拟任务上的实验表明,本文提出的方法将长上下文扩散策略的性能提升了3倍,且训练速度加快了10倍以上。

英文摘要:

Reasoning over long sequences of observations and actions is essential for many robotic tasks. Yet, learning effective long-context policies from demonstrations remains challenging. As context length increases, training becomes increasingly expensive due to rising memory demands, and policy performance often degrades as a result of spurious correlations. Recent methods typically sidestep these issues by truncating context length, discarding historical information that may be critical for subsequent decisions. In this paper, we propose an alternative approach that explicitly regularizes the retention of past information. We first revisit the copycat problem in imitation learning and identify an opposite challenge in recent diffusion policies: rather than over-relying on prior actions, they often fail to capture essential dependencies between past and future actions. To address this, we introduce Past-Token Prediction (PTP), an auxiliary task in which the policy learns to predict past action tokens alongside future ones. This regularization significantly improves temporal modeling in the policy head, with minimal reliance on visual representations. Building on this observation, we further introduce a multistage training strategy: pre-train the visual encoder with short contexts, and fine-tune the policy head using cached long-context embeddings. This strategy preserves the benefits of PTP while greatly reducing memory and computational overhead. Finally, we extend PTP into a self-verification mechanism at test time, enabling the policy to score and select candidates consistent with past actions during inference. Experiments across four real-world and six simulated tasks demonstrate that our proposed method improves the performance of long-context diffusion policies by 3x and accelerates policy training by more than 10x.

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

↑