An Empirical Study on Normalization in Mamba

Peilin Feng, Yuanshuai Wang, Yunhao Ni, Zekun Li, Wenjun Wu, Lei HuangOpenReview 2025 · Submission to ICLR 2025 · Rejected

Abstract

Normalization layers are crucial for improving the training efficiency and stability of deep neural network architectures. The recently proposed Mamba network has demonstrated significant potential in competing with Transformers. However, as with many deep architectures, the training stability of Mamba remains a significant challenge, and normalization techniques are key to addressing this issue. In this paper, we systematically investigate the effects of normalization type, position and combinations on the Mamba Block. On the one hand, we conducted extensive experiments to evaluate the impact of applying various normalization layers before or after the SSM module(the core module of Mamba Block). On the other hand, we performed thorough experiments to assess the effects of combining diverse normalization techniques before and after the SSM module. Our analysis encompasses both long sequence modeling and image classification tasks. The results show that applying normalization layers after the SSM module (if used only once) and combining different normalization layers before and after the SSM module can enhance training stability and improve Mamba performance. Furthermore, we provide practical recommendations for selecting appropriate normalization techniques in designing Mamba architectures and validated them on other datasets. We hope that our insights will help mitigate training instabilities in deep learning and foster the development of more robust architectures. All codes and models used in this study will be open-sourced on GitHub.
BibTeX
@misc{feng2025empirical,
  author = {Peilin Feng and Yuanshuai Wang and Yunhao Ni and Zekun Li and Wenjun Wu and Lei Huang},
  title = {{An Empirical Study on Normalization in Mamba}},
  year = {2025},
  url = {https://openreview.net/forum?id=YK8eO7BEkJ},
  howpublished = {OpenReview},
  note = {Submitted to ICLR 2025},
}

Loading related content...

Figure