arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2406.10260cs.CLcs.LG
收藏

Flextron:多合一灵活大型语言模型

Flextron: Many-in-One Flexible Large Language Model

NVIDIA(英伟达);The University of Texas at Austin(德克萨斯大学奥斯汀分校)

Ruisi Cai, Saurav Muralidharan, Greg Heinrich, Hongxu Yin, Zhangyang Wang, Jan Kautz, Pavlo Molchanov

AI总结:

本文提出 Flextron,一种基于嵌套弹性结构和输入自适应路由的 LLM 训练后优化框架,无需额外微调即可灵活适应不同部署场景,在 GPT-3 和 LLama-2 上表现优异且大幅降低预训练成本。

摘要:

训练现代 LLMs 极其消耗资源,通过重复训练来针对以有限计算和内存资源为特征的各种部署场景进行定制是不切实际的。在本文中,我们介绍了 Flextron,这是一个支持灵活模型部署的网络架构和训练后模型优化框架。Flextron 架构利用嵌套的弹性结构,在推理过程中能够快速适应特定的用户定义的延迟和准确度目标,且无需额外的微调。它还具有输入自适应性,可以自动通过其子网络路由 token,以提升性能和效率。我们提出了一种样本高效的训练方法及相关路由算法,用于将现有的已训练 LLM 系统性地转换为 Flextron 模型。我们在 GPT-3 和 LLama-2 系列 LLMs 上评估了 Flextron,并展示了其优于多个端到端训练变体和其他最先进弹性网络的性能,所有这些仅需一次预训练运行,且仅消耗原始预训练 7.63% 的 token。

英文摘要:

Training modern LLMs is extremely resource intensive, and customizing them for various deployment scenarios characterized by limited compute and memory resources through repeated training is impractical. In this paper, we introduce Flextron, a network architecture and post-training model optimization framework supporting flexible model deployment. The Flextron architecture utilizes a nested elastic structure to rapidly adapt to specific user-defined latency and accuracy targets during inference with no additional fine-tuning required. It is also input-adaptive, and can automatically route tokens through its sub-networks for improved performance and efficiency. We present a sample-efficient training method and associated routing algorithms for systematically transforming an existing trained LLM into a Flextron model. We evaluate Flextron on the GPT-3 and LLama-2 family of LLMs, and demonstrate superior performance over multiple end-to-end trained variants and other state-of-the-art elastic networks, all with a single pretraining run that consumes a mere 7.63% tokens compared to original pretraining.

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

↑