arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2402.04248cs.LG

Mamba 能学会如何学习吗?基于上下文学习任务的比较研究

Can Mamba Learn How to Learn? A Comparative Study on In-Context Learning Tasks

KRAFTON;Seoul National University(首尔大学);University of Wisconsin-Madison(威斯康星大学麦迪逊分校);University of Michigan, Ann Arbor(密歇根大学安娜堡分校)

Jongho Park, Jaeseung Park, Zheyang Xiong, Nayoung Lee, Jaewoong Cho, Samet Oymak, Kangwook Lee, Dimitris Papailiopoulos

AI总结:

本研究评估了 Mamba 等 SSMs 在上下文学习(ICL)任务中相对 Transformers 的表现,发现其各具优劣,并提出混合模型 MambaFormer 以结合两者优势,显著提升了语言模型的 ICL 能力。

摘要:

状态空间模型(SSMs),如 Mamba(Gu & Dao, 2023),已被提出作为语言建模中 Transformer 网络的替代方案,它通过引入门控、卷积和输入相关的 token 选择来缓解多头注意力的二次方开销。尽管 SSMs 表现出极具竞争力的性能,但与 Transformers 相比,其上下文学习(ICL)能力——一种现代语言模型显著的涌现特性,能够在无需参数优化的情况下执行任务——仍未被充分探索。在本研究中,我们评估了 SSMs 的 ICL 性能,重点关注 Mamba,并将其与 Transformer 模型在各种任务上进行了比较。结果表明,在标准回归 ICL 任务中,SSMs 的表现与 Transformers 相当,而在稀疏奇偶性学习等任务中则优于 Transformers。然而,在涉及非标准检索功能的任务中,SSMs 表现不足。为了解决这些局限性,我们引入了一种混合模型 MambaFormer,它将 Mamba 与注意力块相结合,在各个独立模型表现挣扎的任务上超越了单一模型。我们的研究结果表明,混合架构为增强语言模型的 ICL 提供了有前景的途径。

英文摘要:

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.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑