Stabilizing Transformers for Reinforcement Learning
DeepMind;Carnegie Mellon University(卡内基梅隆大学)
Emilio Parisotto, H. Francis Song, Jack W. Rae, Razvan Pascanu, Caglar Gulcehre, Siddhant M. Jayakumar, Max Jaderberg, Raphael Lopez Kaufman, Aidan Clark, Seb N… 展开作者
Emilio Parisotto, H. Francis Song, Jack W. Rae, Razvan Pascanu, Caglar Gulcehre, Siddhant M. Jayakumar, Max Jaderberg, Raphael Lopez Kaufman, Aidan Clark, Seb Noury, Matthew M. Botvinick, Nicolas Heess, Raia Hadsell
Owing to their ability to both effectively integrate information over long time horizons and scale to massive amounts of data, self-attention architectures have recently shown breakthrough success in natural language processing (NLP), achieving state-of-the-art results in domains such as language modeling and machine translation. Harnessing the transformer's ability to process long time horizons of information could provide a similar performance boost in partially observable reinforcement learning (RL) domains, but the large-scale transformers used in NLP have yet to be successfully applied to the RL setting. In this work we demonstrate that the standard transformer architecture is difficult to optimize, which was previously observed in the supervised learning setting but becomes especially pronounced with RL objectives. We propose architectural modifications that substantially improve the stability and learning speed of the original Transformer and XL variant. The proposed architecture, the Gated Transformer-XL (GTrXL), surpasses LSTMs on challenging memory environments and achieves state-of-the-art results on the multi-task DMLab-30 benchmark suite, exceeding the performance of an external memory architecture. We show that the GTrXL, trained using the same losses, has stability and performance that consistently matches or exceeds a competitive LSTM baseline, including on more reactive tasks where memory is less critical. GTrXL offers an easy-to-train, simple-to-implement but substantially more expressive architectural alternative to the standard multi-layer LSTM ubiquitously used for RL agents in partially observable environments.
Stabilizing MoE Reinforcement Learning by Aligning Training and Inference Routers
State Key Laboratory of Multimedia Information Processing, School of Computer Science, Peking University(多媒体信息处理国家重点实验室,计算机学院,北京大学);LLM-Core Xiaomi(小米LLM-Core)
Stabilizing Transformer-Based Action Sequence Generation For Q-Learning
ITMO University(ITMO大学)
自最初的Transformer架构(Vaswani et al. 2017)发布以来,Transformers彻底改变了自然语言处理领域。这主要是因为它们比竞争对手基于RNN的架构更好地理解及时依赖关系的能力。令人惊讶的是,这种架构变化并没有影响强化学习(RL)领域,尽管RNN在RL中非常流行,并且时间依赖性在RL中非常常见。最近,Parisotto等人(2019)进行了RL中Transformers的第一项有希望的研究。为了支持这项工作的结果,本文试图提供一个基于transformer的强化学习方法的额外例子。具体来说,我们的目标是一个简单的基于transformer的深度Q学习方法,它在多种环境下都是稳定的。由于Transformers和RL的不稳定性,进行了广泛的方法搜索,以达到最终的方法,利用围绕Transformers以及Q学习的发展。所提出的方法可以匹配经典的Q-学习控制环境的性能,同时显示出一些选定的Atari基准的潜力。此外,它是批判性的评估,以提供更多的见解之间的关系Transformers和RL。
Clustering-Based Weight Orthogonalization for Stabilizing Deep Reinforcement Learning
Institute of Automation, Chinese Academy of Sciences(中国科学院自动化研究所);School of Future Technology, University of Chinese Academy of Sciences(中国科学院大学未来技术学院);School of Artificial Intelligence, University of Chinese Academy of Sciences(中国科学院大学人工智能学院);Key Laboratory of Brain Cognition and Brain-inspired Intelligence Technology, Chinese Academy of Sciences(中国科学院脑认知与脑智技术关键实验室)
Stabilizing Voltage in Power Distribution Networks via Multi-Agent Reinforcement Learning with Transformer
University of Science and Technology of China(中国科学技术大学);Institute of Artificial Intelligence, Hefei Comprehensive National Science Center(合肥综合性国家科学中心人工智能研究院)
Stabilizing Deep Q-Learning with ConvNets and Vision Transformers under Data Augmentation
University of California, San Diego(加利福尼亚大学圣迭戈分校)
虽然通过强化学习(RL)训练的智能体可以直接从视觉观察中解决越来越具有挑战性的任务,但将学习到的技能推广到新的环境仍然非常具有挑战性。广泛使用数据增强是一种很有前途的提高RL泛化能力的技术,但它通常会降低样本效率,甚至会导致发散。在本文中,我们调查的不稳定性的原因时,使用数据增强在常见的非政策RL算法。我们确定了两个问题,都植根于高方差Q目标。基于我们的研究结果,我们提出了一个简单而有效的技术,稳定这类算法下增强。我们使用ConvNets和视觉Transformer(ViT)对基于DeepMind Control Suite的一系列基准以及机器人操作任务进行了广泛的基于图像的RL的实证评估。我们的方法大大提高了增强条件下ConvNets的稳定性和样本效率,并在具有不可见视觉效果的环境中实现了与基于图像的RL的最先进方法竞争的泛化结果。我们进一步表明,我们的方法可扩展到基于ViT的架构的RL,并且数据增强在这种情况下可能特别重要。
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(北京大学)