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

具备 MAD 技能的预训练混合架构

Pretrained Hybrids with MAD Skills

UniversityofWisconsin-Madison(威斯康星大学麦迪逊分校)

Nicholas Roberts, Samuel Guo, Zhiqi Gao, Satya Sai Srinath Namburi GNVV, Sonia Cromp, Chengjun Wu, Chengyu Duan, Frederic Sala

AI总结:

本文提出 Manticore 框架,利用可微 NAS 与跨架构投影器复用 GPT、Mamba 等预训练模型,自动构建并端到端微调混合语言模型,在长程与 NLP 任务上表现优异。

摘要:

尽管 Transformers 构成了现代大型语言模型(LMs)的基础,但具有新能力、前景和权衡的替代架构正不断增多。这使得选择合适的 LM 架构颇具挑战。最近提出的混合架构寻求一种“集各家之长”的方法,以获得所有架构的优势。混合设计之所以困难,原因有二:它需要由专家驱动的手动搜索,而且新的混合架构必须从头训练。我们提出 Manticore 框架,通过自动化混合架构设计并复用预训练模型来创建预训练混合架构,从而应对这些挑战。我们的方法扩展了可微神经架构搜索(NAS)的思想,引入简单投影器,在来自不同架构的预训练块之间转换特征。随后,我们端到端微调那些结合了不同架构家族预训练模型(例如 GPT 系列和 Mamba)的混合架构。借助 Manticore,我们无需训练多个模型即可进行 LM 选择,能够从现有预训练模型构建预训练混合架构,并能够通过编程使预训练混合架构具备某些能力。Manticore 混合架构可与现有的手动设计混合架构相媲美,在 Long Range Arena 上取得强劲性能,并在多种自然语言任务上优于预训练 Transformers 和状态空间模型。

英文摘要:

While Transformers underpin modern large language models (LMs), there is a growing list of alternative architectures with new capabilities, promises, and tradeoffs. This makes choosing the right LM architecture challenging. Recently proposed hybrid architectures seek a best-of-all-worlds approach that reaps the benefits of all architectures. Hybrid design is difficult for two reasons: it requires manual expert-driven search, and new hybrids must be trained from scratch. We propose Manticore, a framework that addresses these challenges by automating the design of hybrid architectures while reusing pretrained models to create pretrained hybrids. Our approach augments ideas from differentiable Neural Architecture Search (NAS) by incorporating simple projectors that translate features between pretrained blocks from different architectures. We then fine-tune hybrids that combine pretrained models from different architecture families -- such as the GPT series and Mamba -- end-to-end. With Manticore, we enable LM selection without training multiple models, the construction of pretrained hybrids from existing pretrained models, and the ability to program pretrained hybrids to have certain capabilities. Manticore hybrids match existing manually designed hybrids, achieve strong performance on Long Range Arena, and improve on pretrained transformers and state space models on various natural language tasks.

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

↑