arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2408.10746cs.DCcs.AIcs.LGcs.NI
收藏

基于协作边缘计算的资源高效个性化大语言模型微调

Resource-Efficient Personal Large Language Models Fine-Tuning with Collaborative Edge Computing

School of Computer Science and Engineering, Sun Yat-sen University(中山大学计算机科学与工程学院);Department of Information Engineering, The Chinese University of Hong Kong(香港中文大学信息工程系);The Hong Kong University of Science and Technology (Guangzhou)(香港理工大学(广州));Shenzhen Institute of Artificial Intelligence and Robotics for Society(社会人工智能与机器人研究所(深圳))

Shengyuan Ye, Bei Ouyang, Tianyi Qian, Liekang Zeng, Jingyi Li, Jiangsu Du, Xiaowen Chu, Guoliang Xing, Xu Chen

AI总结:

本文提出PAC框架,通过算法与系统协同设计,实现高效资源利用的个性化大语言模型微调,提升边缘计算性能。

摘要:

大语言模型(LLMs)已解锁了大量强大的网络边缘应用,例如智能个人助手。数据隐私和安全问题促使人们转向基于边缘的个性化LLMs微调,而不是依赖云。然而,这带来了计算强度和资源稀缺的问题,阻碍了训练效率和可行性。尽管当前研究调查了参数高效微调(PEFT)技术以缓解资源限制,我们的分析表明,这些技术对于边缘设备来说并不足够高效。为了解决这些挑战,我们提出了Pluto和Charon(PAC),一种时间效率和内存效率的协作边缘AI框架,用于个性化LLMs微调。PAC通过复杂的算法-系统协同设计突破了个性化LLMs微调的资源瓶颈。(1)在算法层面,PAC实现了一种在参数、时间和内存方面都高效的个性化LLMs微调技术。它利用并行适配器来避免对LLM主干进行完整反向传递的需要。此外,激活缓存机制进一步优化了该过程,通过消除在多个周期中多次进行前向传递的必要性。(2)在系统层面,PAC利用靠近的边缘设备,将它们作为集体资源用于原地个性化LLMs微调,利用混合数据和流水线并行来协调分布式训练。激活缓存的使用消除了对LLM主干进行前向传递的需要,使可以使用数据并行性进行并行适配器的专属微调。基于原型实现的广泛评估表明,PAC显著优于最先进的方法,实现了高达8.64倍的端到端加速和高达88.16%的内存足迹减少。

英文摘要:

Large language models (LLMs) have unlocked a plethora of powerful applications at the network edge, such as intelligent personal assistants. Data privacy and security concerns have prompted a shift towards edge-based fine-tuning of personal LLMs, away from cloud reliance. However, this raises issues of computational intensity and resource scarcity, hindering training efficiency and feasibility. While current studies investigate parameter-efficient fine-tuning (PEFT) techniques to mitigate resource constraints, our analysis indicates that these techniques are not sufficiently resource-efficient for edge devices. To tackle these challenges, we propose Pluto and Charon (PAC), a time and memory efficient collaborative edge AI framework for personal LLMs fine-tuning. PAC breaks the resource wall of personal LLMs fine-tuning with a sophisticated algorithm-system co-design. (1) Algorithmically, PAC implements a personal LLMs fine-tuning technique that is efficient in terms of parameters, time, and memory. It utilizes Parallel Adapters to circumvent the need for a full backward pass through the LLM backbone. Additionally, an activation cache mechanism further streamlining the process by negating the necessity for repeated forward passes across multiple epochs. (2) Systematically, PAC leverages edge devices in close proximity, pooling them as a collective resource for in-situ personal LLMs fine-tuning, utilizing a hybrid data and pipeline parallelism to orchestrate distributed training. The use of the activation cache eliminates the need for forward pass through the LLM backbone,enabling exclusive fine-tuning of the Parallel Adapters using data parallelism. Extensive evaluation based on prototype implementation demonstrates that PAC remarkably outperforms state-of-the-art approaches, achieving up to 8.64x end-to-end speedup and up to 88.16% reduction in memory footprint.

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

↑