[论文解读] Decision S4: Efficient Sequence-Based RL via State Spaces Layers
本文提出 Decision S4,一种基于状态空间层(S$^4$)的序列化强化学习方法,其在样本效率、推理速度和长程依赖建模方面优于 Decision Transformers 及其他基线模型。通过将卷积 S$^4$ 的离策略训练与新型稳定演员-评论家机制的同策略微调相结合,该方法将模型大小、训练时间和延迟降低了数个数量级,同时在 Mujoco 基准测试中保持或提升了性能。
Recently, sequence learning methods have been applied to the problem of off-policy Reinforcement Learning, including the seminal work on Decision Transformers, which employs transformers for this task. Since transformers are parameter-heavy, cannot benefit from history longer than a fixed window size, and are not computed using recurrence, we set out to investigate the suitability of the S4 family of models, which are based on state-space layers and have been shown to outperform transformers, especially in modeling long-range dependencies. In this work we present two main algorithms: (i) an off-policy training procedure that works with trajectories, while still maintaining the training efficiency of the S4 model. (ii) An on-policy training procedure that is trained in a recurrent manner, benefits from long-range dependencies, and is based on a novel stable actor-critic mechanism. Our results indicate that our method outperforms multiple variants of decision transformers, as well as the other baseline methods on most tasks, while reducing the latency, number of parameters, and training time by several orders of magnitude, making our approach more suitable for real-world RL.
研究动机与目标
- 解决 Decision Transformers 的局限性,包括参数量过高、上下文窗口固定以及推理延迟较高。
- 利用 S$^4$ 架构在强化学习中实现有效的长程序列建模,其效率优于 Transformer。
- 为 S$^4$ 模型开发一种稳定的同策略训练流程,克服其循环形式带来的数值不稳定性。
- 结合离策略预训练与同策略微调,以发挥两种范式的优势。
- 在保持或提升连续控制任务中样本效率和性能的同时,降低计算成本并提高训练效率。
提出的方法
- 该方法利用 S$^4$ 模型的卷积视角,对轨迹进行高效的离策略预训练,借助快速傅里叶变换(FFT)进行计算。
- 提出一种新型稳定演员-评论家机制,以实现 S$^4$ 模型的可靠同策略微调,缓解其循环形式带来的不稳定性。
- 模型采用两阶段训练:首先使用卷积 S$^4$ 层在完整轨迹上进行离策略训练,然后通过循环形式进行同策略微调。
- 在同策略微调过程中冻结 S$^4$ 核心参数(Δ 和 A)可提升训练稳定性并加快收敛速度。
- 提出一种迁移学习技术,联合训练 S$^4$ 层的卷积与循环两种视角,以提升泛化能力。
- 理论与实证分析表明,S$^4$ 的循环视角在数值上不稳定,这促使采用卷积视角进行预训练并冻结参数用于微调。
实验结果
研究问题
- RQ1状态空间层(S$^4$)能否在离策略序列化强化学习中有效应用,实现比 Transformer 更优的样本效率和更低延迟?
- RQ2是否能够稳定 S$^4$ 模型的同策略训练,而其循环形式本身具有内在不稳定性?
- RQ3将离策略预训练与同策略微调相结合,是否能相比纯同策略或离策略方法提升性能与稳定性?
- RQ4S$^4$ 循环形式中的数值误差如何影响同策略训练?是否可以被缓解?
- RQ5在同策略强化学习中,冻结 S$^4$ 核心参数(Δ 和 A)在多大程度上能提升训练稳定性与性能?
主要发现
- Decision S4 在大多数 Mujoco 基准测试中优于多个 Decision Transformers 变体及其他基线模型,实现更高回报且样本复杂度更低。
- 与 Decision Transformers 相比,该方法将训练时间、推理延迟和模型参数量降低了数个数量级。
- 在同策略微调中冻结 S$^4$ 核心参数可提升训练稳定性,收敛速度至少加快 2 倍,性能提升约 5%。
- 使用循环视角进行离策略训练会使性能下降 0.2% 至 30%,其中中等回放缓冲环境中的下降幅度最大(15%-60%),表明存在数值不稳定性。
- 实证评估证实,S$^4$ 循环形式的前向数值误差在推理过程中可忽略不计,但在同策略训练中会显著降低性能。
- 特征值分析表明,S$^4$ 参数初始化时接近单位圆盘,支持长程依赖学习,尤其当 |λj| ≈ 1 时。
阅读本论文
在 Nubint 阅读器中打开原文,边读边就任意段落提问。
在 Nubint 中阅读本论文本解读由 AI 根据论文原文生成,引用前请核对原文。