PocketLLM: Enabling On-Device Fine-Tuning for Personalized LLMs
Recent advancements in large language models (LLMs) have indeed showcased their impressive capabilities. On mobile devices, the wealth of valuable, non-public data generated daily holds great promise for locally fine-tuning personalized LLMs, while maintaining privacy through on-device processing. However, the constraints of mobile device resources pose challenges to direct on-device LLM fine-tuning, mainly due to the memory-intensive nature of derivative-based optimization required for saving gradients and optimizer states. To tackle this, we propose employing derivative-free optimization techniques to enable on-device fine-tuning of LLM, even on memory-limited mobile devices. Empirical results demonstrate that the RoBERTa-large model and OPT-1.3B can be fine-tuned locally on the OPPO Reno 6 smartphone using around 4GB and 6.5GB of memory respectively, using derivative-free optimization techniques. This highlights the feasibility of on-device LLM fine-tuning on mobile devices, paving the way for personalized LLMs on resource-constrained devices while safeguarding data privacy.
Code (0)
등록된 구현이 없습니다.
Similar Papers 제목 키워드 기반
PocketLLM: Ultimate Compression of Large Language Models via Meta Networks
As Large Language Models (LLMs) continue to grow in size, storing and transmitting them on edge devices becomes increasingly challenging. Traditional methods like quantization and pruning struggle to achieve extreme comp…
Techniques for Peak Memory Reduction for LoRA Fine-tuning of LLMs on Edge Devices
Fine-tuning of Large Language Models (LLMs) using Low-Rank Adaptation (LoRA) on an end-user's data offers personalized experiences while keeping data private, but faces severe memory constraints on consumer hardware. Pea…
Gated Low-rank Adaptation for personalized Code-Switching Automatic Speech Recognition on the low-spec devices
In recent times, there has been a growing interest in utilizing personalized large models on low-spec devices, such as mobile and CPU-only devices. However, utilizing a personalized large model in the on-device is ineffi…
Automatic Speech RecognitionCPUparameter-efficient fine-tuningspeech-recognition+1Tiny-Align: Bridging Automatic Speech Recognition and Large Language Model on the Edge
The combination of Large Language Models (LLM) and Automatic Speech Recognition (ASR), when deployed on edge devices (called edge ASR-LLM), can serve as a powerful personalized assistant to enable audio-based interaction…
Automatic Speech RecognitionAutomatic Speech Recognition (ASR)cross-modal alignmentLanguage Modeling+4Enabling On-Device Large Language Model Personalization with Self-Supervised Data Selection and Synthesis
After a large language model (LLM) is deployed on edge devices, it is desirable for these devices to learn from user-generated conversation data to generate user-specific and personalized responses in real-time. However,…
Language ModelingLanguage ModellingLarge Language Model