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

MobileLLM:面向端侧用例的优化低于十亿参数语言模型

MobileLLM: Optimizing Sub-billion Parameter Language Models for On-Device Use Cases

Meta
Zechun Liu, Changsheng Zhao, Forrest Iandola, Chen Lai, Yuandong Tian, Igor Fedorov, Yunyang Xiong, Ernie Chang, Yangyang Shi, Raghuraman Krishnamoorthi, Liangz… 展开作者

Zechun Liu, Changsheng Zhao, Forrest Iandola, Chen Lai, Yuandong Tian, Igor Fedorov, Yunyang Xiong, Ernie Chang, Yangyang Shi, Raghuraman Krishnamoorthi, Liangzhen Lai, Vikas Chandra

AI总结:

针对移动设备对高效LLM的需求,本文提出MobileLLM及MobileLLM-LS架构,通过深而薄架构、嵌入共享和块级权重共享,在低于十亿参数下实现准确率显著提升,端侧任务表现接近7B模型。

摘要:

本文探讨了由不断增长的云成本和延迟问题所驱动的移动设备对高效大型语言模型(LLMs)日益增长的需求。我们专注于设计参数量少于十亿的高质量LLMs,这是移动部署的实用选择。与强调数据和参数量在决定模型质量中起关键作用的普遍观点相反,我们的研究强调了模型架构对于低于十亿规模LLMs的重要性。利用深而薄的架构,结合嵌入共享和分组查询注意力机制,我们建立了一个强基线网络,称为MobileLLM,其准确率比之前的125M/350M最先进模型显著提升了2.7%/4.3%。此外,我们提出了一种即时块级权重共享方法,在不增加模型大小且仅有微小延迟开销的情况下,进一步提升了性能。由此产生的模型称为MobileLLM-LS,其准确率比MobileLLM 125M/350M进一步提高了0.7%/0.8%。此外,MobileLLM模型家族在聊天基准上相比之前的低于十亿模型显示出显著改进,并在API调用任务中表现出与LLaMA-v2 7B接近的正确性,突显了小模型在常见端侧用例中的能力。

英文摘要:

This paper addresses the growing need for efficient large language models (LLMs) on mobile devices, driven by increasing cloud costs and latency concerns. We focus on designing top-quality LLMs with fewer than a billion parameters, a practical choice for mobile deployment. Contrary to prevailing belief emphasizing the pivotal role of data and parameter quantity in determining model quality, our investigation underscores the significance of model architecture for sub-billion scale LLMs. Leveraging deep and thin architectures, coupled with embedding sharing and grouped-query attention mechanisms, we establish a strong baseline network denoted as MobileLLM, which attains a remarkable 2.7%/4.3% accuracy boost over preceding 125M/350M state-of-the-art models. Additionally, we propose an immediate block-wise weight-sharing approach with no increase in model size and only marginal latency overhead. The resultant models, denoted as MobileLLM-LS, demonstrate a further accuracy enhancement of 0.7%/0.8% than MobileLLM 125M/350M. Moreover, MobileLLM model family shows significant improvements compared to previous sub-billion models on chat benchmarks, and demonstrates close correctness to LLaMA-v2 7B in API calling tasks, highlighting the capability of small models for common on-device use cases.

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

↑