NVIDIA(英伟达);University of Wisconsin-Madison(威斯康星大学麦迪逊分校);Princeton University(普林斯顿大学);Together AI;Carnegie Mellon University(卡内基梅隆大学);Cartesia AI
Roger Waleffe, Wonmin Byeon, Duncan Riach, Brandon Norick, Vijay Korthikanti, Tri Dao, Albert Gu, Ali Hatamizadeh, Sudhakar Singh, Deepak Narayanan, Garvit Kuls… 展开作者
Roger Waleffe, Wonmin Byeon, Duncan Riach, Brandon Norick, Vijay Korthikanti, Tri Dao, Albert Gu, Ali Hatamizadeh, Sudhakar Singh, Deepak Narayanan, Garvit Kulshreshtha, Vartika Singh, Jared Casper, Jan Kautz, Mohammad Shoeybi, Bryan Catanzaro
Selective state-space models (SSMs) like Mamba overcome some of the shortcomings of Transformers, such as quadratic computational complexity with sequence length and large inference-time memory requirements from the key-value cache. Moreover, recent studies have shown that SSMs can match or exceed the language modeling capabilities of Transformers, making them an attractive alternative. In a controlled setting (e.g., same data), however, studies so far have only presented small scale experiments comparing SSMs to Transformers. To understand the strengths and weaknesses of these architectures at larger scales, we present a direct comparison between 8B-parameter Mamba, Mamba-2, and Transformer models trained on the same datasets of up to 3.5T tokens. We also compare these models to a hybrid architecture consisting of 43% Mamba-2, 7% attention, and 50% MLP layers (Mamba-2-Hybrid). Using a diverse set of tasks, we answer the question of whether Mamba models can match Transformers at larger training budgets. Our results show that while pure SSMs match or exceed Transformers on many tasks, they lag behind Transformers on tasks which require strong copying or in-context learning abilities (e.g., 5-shot MMLU, Phonebook) or long-context reasoning. In contrast, we find that the 8B Mamba-2-Hybrid exceeds the 8B Transformer on all 12 standard tasks we evaluated (+2.65 points on average) and is predicted to be up to 8x faster when generating tokens at inference time. To validate long-context capabilities, we provide additional experiments evaluating variants of the Mamba-2-Hybrid and Transformer extended to support 16K, 32K, and 128K sequences. On an additional 23 long-context tasks, the hybrid model continues to closely match or exceed the Transformer on average. To enable further study, we release the checkpoints as well as the code used to train our models as part of NVIDIA's Megatron-LM project.
School of Electrical and Computer Engineering, Ben-Gurion University of the Negev(电气与计算机工程学院,内盖夫本· Gurion大学);IAEC;Tel-Aviv University(特拉维夫大学);IBM Research(IBM研究院)
Korea Advanced Institute of Science and Technology / Korea, Republic of(韩国科学技术院);University of Illinois in Urbana-Champaign / United States of America(伊利诺伊大学厄巴纳-香槟分校);Korea University / Korea, Republic of(韩国大学)
Block-Biased Mamba for Long-Range Sequence Processing
Center for Applied Mathematics(应用数学中心);Cornell University(康奈尔大学);Lawrence Berkeley National Laboratory(伯克利国家实验室);International Computer Science Institute(国际计算机科学研究所)
Understanding Input Selectivity in Mamba: Impact on Approximation Power, Memorization, and Associative Recall Capacity
Apple(苹果公司);Work done while at Apple(在苹果公司的工作);Mila Research Institute, Montreal, Canada(蒙特利尔加拿大米尔研究所);Flatiron Institute, New York, USA(纽约美国Flatiron研究所)
Chemical Language Models for Natural Products: A State-Space Model Approach
Spoken Language Systems, Saarland Informatics Campus, Saarland University, Germany(萨尔兰大学语音语言系统,萨尔兰信息学校区);Data Driven Drug Design, Center for Bioinformatics, Saarland University, Germany(数据驱动药物设计,生物信息学中心,萨尔兰大学)
HybriDNA: A Hybrid Transformer-Mamba2 Long-Range DNA Language Model
Microsoft Research(微软研究院);UM-SJTU Joint Institute(上海交通大学密歇根联合学院);Princeton University(普林斯顿大学);Carnegie Mellon University(卡内基梅隆大学);Renmin University of China(中国人民大学)
LightMamba: Efficient Mamba Acceleration on FPGA with Quantization and Hardware Co-design
Institute for Artificial Intelligence(人工智能研究院);School of Integrated Circuits(集成电路学院);Beijing Advanced Innovation Center for Integrated Circuits(北京集成电路先进创新中心);Institute of Electronic Design Automation(电子设计自动化研究院);School of Software and Microelectronics(软件与微电子学院);School of Electronic and Computer Engineering(电子与计算机工程学院)
DART: Decoded Attention over Recurrent States for Efficient Long-Context Sequence Modeling
College of Control Science and Engineering, Zhejiang University(浙江大学控制科学与工程学院);National University of Singapore(新加坡国立大学);Hong Kong Polytechnic University(香港理工大学);School of Science, Huzhou Normal University(湖州师范学院理学院)