arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2503.18565cs.LGcs.AIcs.CL
收藏

Distil-xLSTM:通过循环结构学习注意力机制

Distil-xLSTM: Learning Attention Mechanisms through Recurrent Structures

University of Monastir(蒙纳斯蒂尔大学);University of Sfax(斯法克斯大学);Qassim University(卡西姆大学);University of Michigan-Flint(密歇根大学弗林特分校)

Abdoul Majid O. Thiombiano, Brahim Hnich, Ali Ben Mrad, Mohamed Wiem Mkaouer

AI总结:

本研究针对Transformer主导NLP的现状,提出基于xLSTM的小语言模型Distil-xLSTM,通过大模型知识蒸馏训练,用循环序列混合组件逼近Transformer注意力参数化,在低训练成本下实现良好效果且计算与规模效率高。

摘要:

当前自然语言处理(NLP)时代以Transformer模型为主导。然而,依赖循环机制的新型架构(如xLSTM、Mamba)已被提出,作为基于注意力的模型的替代方案。尽管计算方式与注意力机制不同,但这些循环模型表现出色,有时甚至能超越当前最优的基于注意力的模型。在本研究中,我们提出Distil-xLSTM,这是一种基于xLSTM的小语言模型(SLM),通过从大语言模型(LLM)中蒸馏知识训练得到,在计算和规模上具备效率的同时展现出可观的效果。我们的Distil-xLSTM致力于利用其循环序列混合组件逼近基于Transformer的模型的注意力参数化,且仅需极少训练就能取得良好结果。

英文摘要:

The current era of Natural Language Processing (NLP) is dominated by Transformer models. However, novel architectures relying on recurrent mechanisms, such as xLSTM and Mamba, have been proposed as alternatives to attention-based models. Although computation is done differently than with the attention mechanism mechanism, these recurrent models yield good results and sometimes even outperform state-of-the-art attention-based models. In this work, we propose Distil-xLSTM, an xLSTM-based Small Language Model (SLM) trained by distilling knowledge from a Large Language Model (LLM) that shows promising results while being compute and scale efficient. Our Distil-xLSTM focuses on approximating a transformer-based model attention parametrization using its recurrent sequence mixing components and shows good results with minimal training.

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

↑