用Mamba提升世界模型效率,700万参数即可在普通电脑上跑出顶尖性能。
Drama: Mamba-Enabled Model-Based Reinforcement Learning Is Sample and Parameter Efficient
- 采用Mamba架构的序列模型,实现线性复杂度,长序列训练更高效。
- 在Atari100k上达SOTA表现,仅用700万参数,比传统方法节省大量资源。
- 适合资源有限的研究者或部署场景,代码开源可直接复现。
基于模型的强化学习(RL)可缓解多数无模型算法的数据低效问题。然而,构建鲁棒的世界模型通常需要复杂且深层的架构,计算开销大且难以训练。世界模型中的序列模型对准确预测至关重要,但现有架构各有局限:基于RNN的方法存在梯度消失与长期依赖捕捉困难;而Transformer则因自注意力机制导致内存与计算复杂度达$O(n^2)$,随序列长度增长迅速恶化。为此,本文提出基于状态空间模型(SSM)的世界模型Drama,特别引入Mamba,实现$O(n)$的内存与计算复杂度,有效捕捉长期依赖,并支持更长序列的高效训练。同时设计一种新型采样策略,缓解早期训练中因世界模型不准确带来的次优问题。结合上述技术,Drama在Atari100k基准上达到与当前最优模型相当的归一化得分,仅需700万参数的世界模型。系统可在标准笔记本等通用硬件上运行。代码已开源:https://github.com/realwenlongwang/Drama.git。
原文摘要 · Abstract (English)
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.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。