PocketLLM: Enabling On-Device Fine-Tuning for Personalized LLMs

Dan Peng, Zhihui Fu, Jun Wang
7/1/2024
cs.LGcs.CL

No confident code implementation found for this paper.

Abstract

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.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{peng2024pocketllm,
  title  = {PocketLLM: Enabling On-Device Fine-Tuning for Personalized LLMs},
  author = {Dan Peng and Zhihui Fu and Jun Wang},
  year   = {2024},
  eprint = {2407.01031},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2407.01031v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2407.01031.svg)](https://codeofpaper.com/paper/2407.01031)

Discussion