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

SlimLM:面向端侧文档辅助的高效小型语言模型

SlimLM: An Efficient Small Language Model for On-Device Document Assistance

Auburn University(奥本大学);Georgia Tech(佐治亚理工学院);Adobe Research(奥多比研究院)

Thang M. Pham, Phat T. Nguyen, Seunghyun Yoon, Viet Dac Lai, Franck Dernoncourt, Trung Bui

AI总结:

针对小型语言模型在智能手机端文档辅助应用的不足,提出面向移动设备优化的SlimLM系列模型,通过实验确定模型规模等权衡,在自建数据集上微调,实现高效端侧性能并提供部署基准与应用,降低成本且增强隐私。

摘要:

尽管小型语言模型(SLMs)在移动部署方面展现出潜力,但其在智能手机上的实际性能与应用仍未得到充分探索。我们提出SlimLM,这是一系列针对移动设备文档辅助任务优化的SLMs。通过在三星Galaxy S24上开展大量实验,我们确定了模型规模(参数范围从125M到7B)、上下文长度与推理时间之间的最优权衡,以实现高效的端侧处理。SlimLM在SlimPajama-627B上预训练,并在DocAssist(我们构建的用于摘要、问答和建议任务的数据集)上微调。我们最小的模型在S24上表现出高效性能,而更大的变体则在移动设备约束下提供增强的能力。我们将SlimLM与现有SLMs进行评估,结果显示其性能相当或更优,并为未来端侧语言模型研究提供了基准。我们还提供了一个Android应用程序,为SLM部署提供实用见解。我们的研究结果提供了宝贵的见解,并阐明了在高端智能手机上运行先进语言模型的能力,这可能通过端侧处理降低服务器成本并增强隐私性。

英文摘要:

While small language models (SLMs) show promises for mobile deployment, their real-world performance and applications on smartphones remains underexplored. We present SlimLM, a series of SLMs optimized for document assistance tasks on mobile devices. Through extensive experiments on a Samsung Galaxy S24, we identify the optimal trade-offs between model size (ranging from 125M to 7B parameters), context length, and inference time for efficient on-device processing. SlimLM is pre-trained on SlimPajama-627B and fine-tuned on DocAssist, our constructed dataset for summarization, question answering and suggestion tasks. Our smallest model demonstrates efficient performance on S24, while larger variants offer enhanced capabilities within mobile constraints. We evaluate SlimLM against existing SLMs, showing comparable or superior performance and offering a benchmark for future research in on-device language models. We also provide an Android application, offering practical insights into SLM deployment. Our findings provide valuable insights and illuminate the capabilities of running advanced language models on high-end smartphones, potentially reducing server costs and enhancing privacy through on-device processing.

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

↑