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

PLM:面向普适计算的硬件协同设计高效外围语言模型

PLM: Efficient Peripheral Language Models Hardware-Co-Designed for Ubiquitous Computing

The Hong Kong University of Science and Technology (Guangzhou)(香港科技大学(广州));Institution of Automation, Chinese Academy of Sciences(中国科学院自动化研究所);University College London(伦敦大学学院);The Hong Kong University of Science and Technology(香港科技大学);The Hong Kong Polytechnic University(香港理工大学)

Cheng Deng, Luoyang Sun, Jiwen Jiang, Yongcheng Zeng, Xinjian Wu, Wenxin Zhao, Qingfa Xiao, Jiachuan Wang, Haoyang Li, Lei Chen, Lionel M. Ni, Haifeng Zhang, Jun Wang

AI总结:

针对边缘设备资源受限难以承载大语言模型推理的问题,提出架构与边缘系统协同设计的PLM外围语言模型,通过多头潜在注意力、平方ReLU等优化降低内存占用,结合多阶段训练与RLHF提升性能,适配多种边缘设备。

摘要:

尽管大语言模型(LLM)的规模法则随着模型参数的增长不断得到验证,但LLM的推理需求与边缘设备有限资源之间的内在矛盾,给边缘智能的发展带来了关键挑战。近年来,大量小型语言模型涌现,旨在将LLM的能力蒸馏到更小的模型体量中。然而,这些模型往往保留了其大型对应模型的基本架构原则,仍然给边缘设备的存储和带宽容量带来了相当大的压力。\n本文提出了PLM——一种外围语言模型,通过协同设计流程联合优化模型架构与边缘系统约束开发而成。PLM采用多头潜在注意力机制,并使用平方ReLU激活函数以促进稀疏性,从而降低推理过程中的峰值内存占用。在训练阶段,我们收集并重组了开源数据集,实施了多阶段训练策略,并通过实验研究了Warmup-Stable-Decay-Constant(WSDC,预热-稳定-衰减-恒定)学习率调度器。此外,我们通过采用ARIES偏好学习方法引入了基于人类反馈的强化学习(RLHF)。经过两阶段的有监督微调(SFT)流程,该方法在通用任务上实现了2%的性能提升,在GSM8K任务上提升9%,在编程任务上提升11%。\n除了新颖的架构之外,评估结果表明,PLM在保持最少激活参数数量的同时,性能优于现有基于公开数据训练的小型语言模型。此外,PLM在消费级GPU、手机、树莓派等各类边缘设备上的部署,验证了其适用于外围场景应用。PLM系列模型已在https://github.com/plm-team/PLM 公开发布。

英文摘要:

While scaling laws have been continuously validated in large language models (LLMs) with increasing model parameters, the inherent tension between the inference demands of LLMs and the limited resources of edge devices poses a critical challenge to the development of edge intelligence. Recently, numerous small language models have emerged, aiming to distill the capabilities of LLMs into smaller footprints. However, these models often retain the fundamental architectural principles of their larger counterparts, still imposing considerable strain on the storage and bandwidth capacities of edge devices. In this paper, we introduce the PLM, a Peripheral Language Model, developed through a co-design process that jointly optimizes model architecture and edge system constraints. The PLM utilizes a Multi-head Latent Attention mechanism and employs the squared ReLU activation function to encourage sparsity, thereby reducing peak memory footprint during inference. During training, we collect and reorganize open-source datasets, implement a multi-phase training strategy, and empirically investigate the Warmup-Stable-Decay-Constant (WSDC) learning rate scheduler. Additionally, we incorporate Reinforcement Learning from Human Feedback (RLHF) by adopting the ARIES preference learning approach. Following a two-phase SFT process, this method yields performance gains of 2% in general tasks, 9% in the GSM8K task, and 11% in coding tasks. In addition to its novel architecture, evaluation results demonstrate that PLM outperforms existing small language models trained on publicly available data while maintaining the lowest number of activated parameters. Furthermore, deployment across various edge devices, including consumer-grade GPUs, mobile phones, and Raspberry Pis, validates PLM's suitability for peripheral applications. The PLM series models are publicly available at https://github.com/plm-team/PLM.

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

↑