Drama:基于Mamba的基于模型的强化学习具备样本与参数效率
Drama: Mamba-Enabled Model-Based Reinforcement Learning Is Sample and Parameter Efficient
AI总结:
针对现有基于模型的强化学习世界模型的架构缺陷,提出基于Mamba的SSM世界模型Drama及新型采样方法,以低参数量和计算成本实现了Atari100k基准上的SOTA级性能,且可在普通硬件训练。
摘要:
基于模型的强化学习(RL)为困扰大多数无模型RL算法的数据效率低下问题提供了解决方案。然而,学习一个鲁棒的世界模型通常需要复杂的深度架构,这类架构计算成本高昂且训练难度大。在世界模型中,序列模型对准确预测起着关键作用,目前已有多种架构被探索,每种都存在各自的挑战。当前,基于循环神经网络(RNN)的世界模型存在梯度消失和难以捕捉长期依赖的问题;而Transformer则受限于自注意力机制的二次内存与计算复杂度,复杂度为$O(n^2)$,其中$n$为序列长度。\n 为应对这些挑战,我们提出了一种基于状态空间模型(SSM)的世界模型Drama,该模型专门利用Mamba架构,实现了$O(n)$的内存与计算复杂度,同时能有效捕捉长期依赖,支持长序列的高效训练。我们还提出了一种新颖的采样方法,以缓解训练早期阶段因世界模型不准确导致的次优性问题。结合这些技术,Drama仅使用700万参数的世界模型,就在Atari100k基准测试上取得了与其他最先进(SOTA)基于模型的RL算法相当的归一化分数。Drama易于获取,且可在现成硬件(如标准笔记本电脑)上训练。我们的代码可在https://github.com/realwenlongwang/Drama.git 获取。
英文摘要:
Model-based reinforcement learning (RL) offers a solution to the data inefficiency that plagues most model-free RL algorithms. However, learning a robust world model often requires complex and deep architectures, which are computationally expensive and challenging to train. Within the world model, sequence models play a critical role in accurate predictions, and various architectures have been explored, each with its own challenges. Currently, recurrent neural network (RNN)-based world models struggle with vanishing gradients and capturing long-term dependencies. Transformers, on the other hand, suffer from the quadratic memory and computational complexity of self-attention mechanisms, scaling as $O(n^2)$, where $n$ is the sequence length. To address these challenges, we propose a state space model (SSM)-based world model, Drama, specifically leveraging Mamba, that achieves $O(n)$ memory and computational complexity while effectively capturing long-term dependencies and enabling efficient training with longer sequences. We also introduce a novel sampling method to mitigate the suboptimality caused by an incorrect world model in the early training stages. Combining these techniques, Drama achieves a normalised score on the Atari100k benchmark that is competitive with other state-of-the-art (SOTA) model-based RL algorithms, using only a 7 million-parameter world model. Drama is accessible and trainable on off-the-shelf hardware, such as a standard laptop. Our code is available at https://github.com/realwenlongwang/Drama.git.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。