TensorX
返回文献探索

Paper · arXiv 2411.09944

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

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

12 upvotesNovember 15, 2024arXiv 预印本
AI 摘要

SlimLM, a series of small language models optimized for document assistance tasks on mobile devices, demonstrates efficient performance and enhanced capabilities within size and time constraints, providing a benchmark for on-device language models.

small language modelsdocument assistance tasksmodel sizecontext lengthinference timeSlimPajama-627BDocAssistsummarizationquestion answeringsuggestion tasks

Abstract

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.

北京市昌平区探索星信息技术及软件开发工作室

京ICP备2026059466号