State of the art foundation models such as GPT-4 perform surprisingly well at in-context learning (ICL), a variant of meta-learning concerning the learned ability to solve tasks during a neural network forward pass, exploiting contextual information provided as input to the model. This useful ability emerges as a side product of the foundation model's massive pretraining. While transformer models are currently the state of the art in ICL, this work provides empirical evidence that Mamba, a newly proposed state space model which scales better than transformers w.r.t. the input sequence length, has similar ICL capabilities. We evaluated Mamba on tasks involving simple function approximation as well as more complex natural language processing problems. Our results demonstrate that, across both categories of tasks, Mamba closely matches the performance of transformer models for ICL. Further analysis reveals that, like transformers, Mamba appears to solve ICL problems by incrementally optimizing its internal representations. Overall, our work suggests that Mamba can be an efficient alternative to transformers for ICL tasks involving long input sequences. This is an exciting finding in meta-learning and may enable generalizations of in-context learned AutoML algorithms (like TabPFN or Optformer) to long input sequences.
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(湖州师范学院理学院)
Graph-Mamba: Towards Long-Range Graph Sequence Modeling with Selective State Spaces
University of Toronto(多伦多大学);Vector Institute for Artificial Intelligence(矢量人工智能研究所);University Health Network(大学网络健康中心);Peter Munk Cardiac Centre(彼得·芒克心脏中心);Department of Laboratory Medicine and Pathobiology, University of Toronto(多伦多大学检验医学与病理生物学系);AI Hub, University Health Network(大学网络健康中心人工智能中心)
Decision Mamba: Reinforcement Learning via Hybrid Selective Sequence Modeling
School of Artificial Intelligence, Jilin University(吉林大学人工智能学院);Institute of High Performance Computing, A*STAR(新加坡高性能计算研究院(新加坡科技研究局));Lehigh University(理海大学)
Mamba Can Learn Low-Dimensional Targets In-Context via Test-Time Feature Learning
KAIST AI(韩国科学技术院人工智能研究所);University of Tokyo(东京大学);RIKEN AIP(日本研究机构人工智能计划);The Institute of Statistical Mathematics(统计数学研究所);University of Tokyo/RIKEN AIP(东京大学/日本研究机构人工智能计划)
Hybrid Mamba-Transformer Decoder for Error-Correcting Codes
School of Electrical and Computer Engineering(电气与计算机工程学院);Ben-Gurion University of the Negev(贝内尔-加利利大学内盖夫分校);Blavatnik School of Computer Science(Blavatnik计算机科学学院);Tel Aviv University(特拉维夫大学)
School of Electrical and Computer Engineering, Ben-Gurion University of the Negev(电气与计算机工程学院,内盖夫本· Gurion大学);IAEC;Tel-Aviv University(特拉维夫大学);IBM Research(IBM研究院)