arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2410.07071cs.LGcs.AI
收藏

检索增强型决策Transformer:用于上下文强化学习的外部记忆

Retrieval-Augmented Decision Transformer: External Memory for In-context RL

ELLIS Unit, LIT AI Lab, Institute for Machine Learning, JKU Linz, Austria(ELLIS单位、LIT人工智能实验室、机器学习研究所、JKU林茨、奥地利);Extensity AI;Google DeepMind(谷歌DeepMind);Mila - Québec AI Institute(魁北克人工智能研究所);NXAI

Thomas Schmied, Fabian Paischer, Vihang Patil, Markus Hofmarcher, Razvan Pascanu, Sepp Hochreiter

AI总结:

针对上下文RL方法因需完整长情节而难以应对复杂环境的问题,提出RA-DT,利用无需训练的外部记忆机制检索相关子轨迹,在减少上下文长度的同时显著提升了性能。

摘要:

上下文学习(ICL)是模型通过在其上下文中观察少量示例来学习新任务的能力。尽管这在NLP中很普遍,但最近在强化学习(RL)环境中也观察到了这种能力。然而,现有的上下文RL方法要求智能体上下文中包含完整的情节。鉴于复杂环境通常会导致具有稀疏奖励的长情节,这些方法被限制在具有短情节的简单环境中。为了应对这些挑战,我们引入了Retrieval-Augmented Decision Transformer (RA-DT)。RA-DT采用外部记忆机制来存储过往经验,并仅从中检索与当前情况相关的子轨迹。RA-DT中的检索组件无需训练,并且可以完全与领域无关。我们在网格世界环境、机器人模拟和程序生成的视频游戏中评估了RA-DT的能力。在网格世界中,RA-DT优于基线方法,同时仅使用了其上下文长度的一小部分。此外,我们阐明了当前上下文RL方法在复杂环境上的局限性,并讨论了未来的方向。为了促进未来的研究,我们发布了所考虑的四个环境的数据集。

英文摘要:

In-context learning (ICL) is the ability of a model to learn a new task by observing a few exemplars in its context. While prevalent in NLP, this capability has recently also been observed in Reinforcement Learning (RL) settings. Prior in-context RL methods, however, require entire episodes in the agent's context. Given that complex environments typically lead to long episodes with sparse rewards, these methods are constrained to simple environments with short episodes. To address these challenges, we introduce Retrieval-Augmented Decision Transformer (RA-DT). RA-DT employs an external memory mechanism to store past experiences from which it retrieves only sub-trajectories relevant for the current situation. The retrieval component in RA-DT does not require training and can be entirely domain-agnostic. We evaluate the capabilities of RA-DT on grid-world environments, robotics simulations, and procedurally-generated video games. On grid-worlds, RA-DT outperforms baselines, while using only a fraction of their context length. Furthermore, we illuminate the limitations of current in-context RL methods on complex environments and discuss future directions. To facilitate future research, we release datasets for four of the considered environments.

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

↑