arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2402.03170cs.LG
收藏

Mamba具备上下文学习能力吗?

Is Mamba Capable of In-Context Learning?

Istituto Italiano di Tecnologia(意大利技术研究院);University of Freiburg(弗赖堡大学)

Riccardo Grazzi, Julien Siems, Simon Schrodi, Thomas Brox, Frank Hutter

AI总结:

该研究实证表明新提出的状态空间模型Mamba在上下文学习(ICL)任务中表现与transformer相当,且在处理长输入序列时更具效率,可作为高效替代方案。

摘要:

诸如GPT-4等最先进的基础模型在上下文学习(ICL)方面表现出色。ICL是元学习的一种变体,涉及在神经网络前向传播过程中解决任务的习得能力,利用作为模型输入提供的上下文信息。这种有用的能力作为基础模型大规模预训练的副产品而涌现。虽然transformer模型目前在ICL方面处于最先进水平,但这项工作提供了实证证据,表明Mamba——一种新提出的状态空间模型,在输入序列长度方面比transformer具有更好的扩展性——具有类似的ICL能力。我们在涉及简单函数逼近以及更复杂的自然语言处理问题的任务上评估了Mamba。我们的结果表明,在这两类任务中,Mamba在ICL方面与transformer模型的性能高度匹配。进一步的分析揭示,与transformer一样,Mamba似乎通过逐步优化其内部表示来解决ICL问题。总体而言,我们的工作表明,对于涉及长输入序列的ICL任务,Mamba可以成为transformer的高效替代方案。这是元学习中的一项令人兴奋的发现,可能使上下文学习的AutoML算法(如TabPFN或Optformer)能够泛化到长输入序列。

英文摘要:

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.

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

↑