Humans and animals show remarkable learning efficiency, adapting to new environments with minimal experience. This capability is not well captured by standard reinforcement learning algorithms that rely on incremental value updates. Rapid adaptation likely depends on episodic memory -- the ability to retrieve specific past experiences to guide decisions in novel contexts. Transformers provide a useful setting for studying these questions because of their ability to learn rapidly in-context and because their key-value architecture resembles episodic memory systems in the brain. We train a transformer to in-context reinforcement learn in a distribution of planning tasks inspired by rodent behavior. We then characterize the learning algorithms that emerge in the model. We first find that representation learning is supported by in-context structure learning and cross-context alignment, where representations are aligned across environments with different sensory stimuli. We next demonstrate that the reinforcement learning strategies developed by the model are not interpretable as standard model-free or model-based planning. Instead, we show that in-context reinforcement learning is supported by caching intermediate computations within the model's memory tokens, which are then accessed at decision time. Overall, we find that memory may serve as a computational resource, storing both raw experience and cached computations to support flexible behavior. Furthermore, the representations developed in the model resemble computations associated with the hippocampal-entorhinal system in the brain, suggesting that our findings may be relevant for natural cognition. Taken together, our work offers a mechanistic hypothesis for the rapid adaptation that underlies in-context learning in artificial and natural settings.
Sample Efficiency in Sparse Reinforcement Learning: Or Your Money Back
Northwestern University(西北大学)
稀疏奖励是强化学习中的一个难题,在某些具有复杂动态的领域(如现实世界的机器人)中可能是不可避免的。后见之明经验重放(HER)是最近的重放记忆开发,允许代理通过改变记忆来显示它们是成功的,即使它们可能不是,从而在稀疏设置中学习。虽然,经验上,HER已经显示出一些成功,但它不能保证从代理的重放存储器中提取的样本的组成。这可能导致只包含具有零值奖励的记忆的小批量,或者智能体学习完成HER调整的目标而不是实际目标的不期望的策略。在本文中,我们介绍了Or Your Money Back(OYMB),一个重放内存采样器,旨在与HER.OYMB一起工作,通过提供一个直接的接口到代理的重放内存,允许控制小批量化妆,以及一个优先的查找方案,在HER调整的内存之前优先考虑真实目标内存,从而提高了稀疏设置中的训练效率。我们在三个独特的环境中测试了我们的方法。我们的研究结果表明,使用HER与OYMB相结合优于单独使用HER,并导致代理学习更快地完成真正的目标。
Genetic Programming with Reinforcement Learning Trained Transformer for Real-World Dynamic Scheduling Problems
Digital Port Technologies Lab, School of Computer Science, University of Nottingham Ningbo China(诺丁汉大学宁波校区计算机科学学院数字港口技术实验室);School of Computer Science, University of Nottingham(诺丁汉大学计算机科学学院);Department of Engineering, University of Cambridge(剑桥大学工程学院);School of Engineering, Westlake University(西湖大学工程学院)
Microsoft(微软);Center of Excellence in Artificial Intelligence (Deep Learning Brazil)(人工智能卓越中心(巴西深度学习中心))
近年来,Transformer架构及其变体在许多机器学习任务中取得了显著的成功。这种成功本质上与处理长序列的能力和来自注意力机制的上下文相关权重的存在有关。我们认为,这些功能适合的核心作用的Meta-强化学习算法。事实上,元RL代理需要从一系列轨迹中推断任务。此外,它需要一个快速的适应策略,以适应新的任务-这可以通过使用自我注意机制来实现。在这项工作中,我们提出了TrMRL(Transformers for Meta- Reinforcement Learning),一个元强化学习代理,它使用Transformer架构模仿内存恢复机制。它通过Transformer层将最近的工作记忆联系起来,递归地构建情景记忆。我们表明,自我注意力计算出一个共识表示,使每层的贝叶斯风险最小化,并提供有意义的特征来计算最佳行动。我们进行了实验,在高维连续控制环境中的运动和灵巧的操作。结果表明,在这些环境中,与基线相比,TrMRL具有相当或更好的渐近性能、样本效率和分布外泛化。
StARformer: Transformer with State-Action-Reward Representations for Visual Reinforcement Learning
Stony Brook University(石溪大学)
强化学习(RL)可以被认为是一个序列建模任务:给定一系列过去的状态-动作-奖励经验,智能体预测一系列接下来的动作。在这项工作中,我们提出了视觉RL的状态-动作-奖励Transformer(StARformer),它显式地模拟短期状态-动作-奖励表示(StAR表示),本质上是引入了类似马尔可夫的归纳偏差,以改善长期建模。我们的方法首先提取星表示的自我参加图像状态补丁,动作和奖励令牌在一个很短的时间窗口。然后将这些与纯图像状态表示相结合-提取为卷积特征,以在整个序列上执行自我注意。我们的实验表明,在离线RL和模仿学习设置中,StARformer在基于图像的Atari和DeepMind Control Suite基准测试中的表现优于最先进的基于Transformer的方法。StARformer也更符合较长的输入序列。我们的代码可在https://github.com/elicassion/StARformer上获得。
Transformer in Transformer as Backbone for Deep Reinforcement Learning
Noah’s Ark Lab, Huawei(华为诺亚方舟实验室);The Chinese University of Hong Kong(香港中文大学);University of Chinese Academy of Sciences(中国科学院大学);Tianjin University(天津大学);Institute of Automation, Chinese Academy of Sciences(中国科学院自动化研究所);Peking University(北京大学)
Multiobjective Hydropower Reservoir Operation Optimization with Transformer-Based Deep Reinforcement Learning
College of Computer Science and Technology, Nanjing University of Aeronautics and Astronautics(南京航空航天大学计算机科学与技术学院);Deptartment of Electrical Engineering and Computer Science, Lassonde School of Engineering, York University(约克大学拉桑德工程学院电气与计算机工程系)
Augmented Replay Memory in Reinforcement Learning With Continuous Control
Artificial Intelligence Center(人工智能中心);Faculty of Electrical Engineering(电气工程学院);Czech Technical University in Prague(捷克理工大学);Dipartimento di Elettronica, Informazione e Bioingegneria(电子、信息与生物工程系);Politecnico di Milano(米兰理工大学)
NaviFormer: A Deep Reinforcement Learning Transformer-like Model to Holistically Solve the Navigation Problem
Grupo de Tratamiento de Imágenes, Information Processing and Telecommunications Center, ETSI Telecomunicación, Universidad Politécnica de Madrid(图像处理与电信中心,信息处理与电信中心,电信工程学院,马德里理工大学);Idiap Research Institute(Idiap研究机构)
Contextual Transformer for Offline Meta Reinforcement Learning
University of Chinese Academy of Sciences(中国科学院大学);Peking University(北京大学);University College London(伦敦大学学院);Chinese Academy of Sciences(中国科学院);King’s College London(伦敦国王学院)
ReaLJam: Real-Time Human-AI Music Jamming with Reinforcement Learning-Tuned Transformers
University of Massachusetts Amherst(马萨诸塞大学阿默斯特分校);University of Montreal(蒙特利尔大学);Mila(米拉魁北克人工智能研究所);Google DeepMind(谷歌DeepMind);University of Washington(华盛顿大学)
Enhancing IoT Intelligence: A Transformer-based Reinforcement Learning Methodology
Aqaba University of Technology(阿卡巴理工大学);Concordia University(康考迪亚大学);Khalifa University(哈利法大学);The University of Jordan(约旦大学);Applied Science Private University(应用科学私立大学);King Fahd University of Petroleum & Minerals(法赫德国王石油与矿业大学)
Generative Pre-Trained Transformer for Symbolic Regression Base In-Context Reinforcement Learning
Institute of Semiconductors, Chinese Academy of Sciences(中国科学院半导体研究所);School of Electronic, Electrical and Communication Engineering, University of Chinese Academy of Sciences(中国科学院大学电子电气与通信工程学院)