Saved in:
Bibliographic Details
Main Authors: Park, Jongho, Park, Jaeseung, Xiong, Zheyang, Lee, Nayoung, Cho, Jaewoong, Oymak, Samet, Lee, Kangwook, Papailiopoulos, Dimitris
Format: Preprint
Published: 2024
Subjects:
Online Access:https://arxiv.org/abs/2402.04248
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866911852411224064
author Park, Jongho
Park, Jaeseung
Xiong, Zheyang
Lee, Nayoung
Cho, Jaewoong
Oymak, Samet
Lee, Kangwook
Papailiopoulos, Dimitris
author_facet Park, Jongho
Park, Jaeseung
Xiong, Zheyang
Lee, Nayoung
Cho, Jaewoong
Oymak, Samet
Lee, Kangwook
Papailiopoulos, Dimitris
contents State-space models (SSMs), such as Mamba (Gu & Dao, 2023), have been proposed as alternatives to Transformer networks in language modeling, by incorporating gating, convolutions, and input-dependent token selection to mitigate the quadratic cost of multi-head attention. Although SSMs exhibit competitive performance, their in-context learning (ICL) capabilities, a remarkable emergent property of modern language models that enables task execution without parameter optimization, remain underexplored compared to Transformers. In this study, we evaluate the ICL performance of SSMs, focusing on Mamba, against Transformer models across various tasks. Our results show that SSMs perform comparably to Transformers in standard regression ICL tasks, while outperforming them in tasks like sparse parity learning. However, SSMs fall short in tasks involving non-standard retrieval functionality. To address these limitations, we introduce a hybrid model, MambaFormer, that combines Mamba with attention blocks, surpassing individual models in tasks where they struggle independently. Our findings suggest that hybrid architectures offer promising avenues for enhancing ICL in language models.
format Preprint
id arxiv_https___arxiv_org_abs_2402_04248
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle Can Mamba Learn How to Learn? A Comparative Study on In-Context Learning Tasks
Park, Jongho
Park, Jaeseung
Xiong, Zheyang
Lee, Nayoung
Cho, Jaewoong
Oymak, Samet
Lee, Kangwook
Papailiopoulos, Dimitris
Machine Learning
State-space models (SSMs), such as Mamba (Gu & Dao, 2023), have been proposed as alternatives to Transformer networks in language modeling, by incorporating gating, convolutions, and input-dependent token selection to mitigate the quadratic cost of multi-head attention. Although SSMs exhibit competitive performance, their in-context learning (ICL) capabilities, a remarkable emergent property of modern language models that enables task execution without parameter optimization, remain underexplored compared to Transformers. In this study, we evaluate the ICL performance of SSMs, focusing on Mamba, against Transformer models across various tasks. Our results show that SSMs perform comparably to Transformers in standard regression ICL tasks, while outperforming them in tasks like sparse parity learning. However, SSMs fall short in tasks involving non-standard retrieval functionality. To address these limitations, we introduce a hybrid model, MambaFormer, that combines Mamba with attention blocks, surpassing individual models in tasks where they struggle independently. Our findings suggest that hybrid architectures offer promising avenues for enhancing ICL in language models.
title Can Mamba Learn How to Learn? A Comparative Study on In-Context Learning Tasks
topic Machine Learning
url https://arxiv.org/abs/2402.04248