Is Mamba Compatible with Trajectory Optimization in Offline Reinforcement Learning?
<|reference_start|>Is Mamba Compatible with Trajectory Optimization in Offline Reinforcement Learning?: Transformer-based trajectory optimization methods have demonstrated exceptional performance in offline Reinforcement Learning (offline RL), yet it poses challenges due to substantial parameter size and limited scalability, which is particularly critical in sequential decision-making scenarios where resources are constrained such as in robots and drones with limited computational power. Mamba, a promising new linear-time sequence model, offers performance on par with transformers while delivering substantially fewer parameters on long sequences. As it remains unclear whether Mamba is compatible with trajectory optimization, this work aims to conduct comprehensive experiments to explore the potential of Decision Mamba in offline RL (dubbed DeMa) from the aspect of data structures and network architectures with the following insights: (1) Long sequences impose a significant computational burden without contributing to performance improvements due to the fact that DeMa's focus on sequences diminishes approximately exponentially. Consequently, we introduce a Transformer-like DeMa as opposed to an RNN-like DeMa. (2) For the components of DeMa, we identify that the hidden attention mechanism is key to its success, which can also work well with other residual structures and does not require position embedding. Extensive evaluations from eight Atari games demonstrate that our specially designed DeMa is compatible with trajectory optimization and surpasses previous state-of-the-art methods, outdoing Decision Transformer (DT) by 80\% with 30\% fewer parameters, and exceeds DT in MuJoCo with only a quarter of the parameters.<|reference_end|>
@article{dai2024is,
    title={Is Mamba Compatible with Trajectory Optimization in Offline
  Reinforcement Learning?},
    author={Yang Dai, Oubo Ma, Longfei Zhang, Xingxing Liang, Shengchao Hu,
  Mengzhu Wang, Shouling Ji, Jincai Huang, Li Shen},
    journal={arXiv preprint arXiv:2405.12094},
    year={2024},
    archivePrefix={arXiv},
    eprint={2405.12094},
    primaryClass={cs.LG}
}