arXiv(opens in a new tab)cs.DCOct 2026Cited by 1 paper on PaperVantage

Manuscript Offprint

arXiv:2610.06325

Fine-Tuning a 3B-Parameter LLM on a Smartphone: Characterizing Sustained Training

Andrew Geyko, Marius Mosbach, André Brinkmann

Abstract

Multi-billion-parameter LLMs now run on phones for inference, and training them on the device would personalize them without user data leaving the phone. Prior work has measured individual training steps of such models on phones, but not complete training runs, and not whether adapters trained on the device improve personalization. We present the first systematic characterization of a multi-billion-parameter LLM fine-tuned on a mobile device, covering memory, per-step time, thermal behavior, and energy. An iPhone 17 Pro can fine-tune a 3B-parameter LLM to a typical user within one battery charge, and the resulting adapters improve personalization as much as adapters trained on a server. Sustained training throttles the phone to about half its initial throughput, and none of the pausing or burst schedules we tested recovers it. Nearly all of each training step is spent in the frozen base model, most of it in the backward pass, which nine of the ten other runtimes we audited do not accelerate. Apple's MLX had a kernel for it that was never dispatched and was incorrect, and our repair, now merged upstream, trains an adapter 1.47×1.47\times faster on a third less energy. On-device fine-tuning is feasible on current phones, and making it efficient requires runtimes and operating systems to treat training as a first-class workload.

CCS Concepts: • Computing methodologies → Machine learning; • Computer systems organization → Embedded systems.

Keywords: on-device training, LoRA, quantization, mobile GPU, thermal throttling, energy, measurement study

1 Introduction

LLMs are now a standard component of mobile operating systems, and both iOS and Android ship an on-device model [19, 35]. The same phones hold their users' messages and emails, from which a model could learn, for example, to draft replies in the user's own style [73]. However, the models deployed on phones today do not learn from this data. They are trained once on public data and ship with identical weights to every user, so any personalization is limited to the user data that prompt retrieval can place in context at the time of a request [53, 54]. Fine-tuning on the history instead encodes

Figure

Figure 1. One complete per-user adapter run on an iPhone 17 Pro under each backward kernel.

the user’s patterns in the model’s weights without lengthening the prompt, with a benefit that grows with the length of the history and adds to that of prompt retrieval [55, 59]. Training has traditionally run on servers, but user history is sensitive, and even the gradients and activations that federated and split learning send off the device can be used to reconstruct it [31, 47, 76]. In contrast, training on the device keeps the history, and everything computed from it, on the phone. We present the first systematic characterization of a multi-billion-parameter LLM fine-tuned on a mobile device.

Fine-tuning a model on one user’s history is small by server standards, a few thousand training steps over a few hundred records. Full fine-tuning keeps a gradient and two optimizer values for every parameter and needs several times the memory of inference, but three techniques from server-side training bring this training within a phone’s memory: low-rank adaptation (LoRA) [32] trains a small adapter while the base model stays frozen, quantization [16] stores weights in a lower precision, and gradient checkpointing [14] recomputes activations instead of storing them. However, sustained training of models with billions of parameters has not yet been studied on a phone. Prior work has measured only individual training steps of such models on a phone [45, 56, 58], and has fine-tuned models of only about 1B parameters [21, 64, 68], split larger models across several mobile devices [15], or trained without backpropagation [18, 48]. A history of a few hundred records takes hours to train, and over that time the phone throttles as it heats and drains its battery. Furthermore, models are trained in runtimes and operating systems designed for inference, where each generated token takes milliseconds and each weight matrix is read in a single direction.

We measure per-user training of a 3B-parameter model at 4-bit precision on an iPhone 17 Pro, whose GPU cores include matrix units [2]. The measurements run from the GPU kernels of one training step to the battery drain of a complete run and cover memory, the time decomposition of a step, sustained thermal behavior, and energy. We complement these measurements with an audit of the quantized backward pass in ten other runtimes and an evaluation of the resulting adapters on a personalization benchmark.

Figure 1 shows two complete runs of the same adapter, one before and one after a kernel repair described below. In both, throughput falls within minutes as the phone throttles and stays low for the hours the run takes. None of the pausing or burst schedules we tested recovers the lost throughput. Over complete runs, training time and energy are linear in the number of training tokens, about 0.01 seconds and 0.04 joules per token, so the cost of an adapter can be predicted before a run starts. An adapter over a 405-record history costs about half a battery charge, and a 987-record history exhausts a full charge before training completes. Adapters trained on the phone improve personalization scores on top of prompt retrieval and match adapters trained on server GPUs.

Although adapters are small, every training step still runs the input through the frozen model and propagates gradients back through it [11, 57, 61]. On the phone, the frozen model takes nearly all of each step, most of it in the backward pass, which reads the quantized weights in the opposite direction from inference. MLX [29], the runtime we use, contained a matrix-unit kernel for this direction that had never been dispatched and was incorrect. The repaired kernel trains an adapter 1.47×1.47\times faster, on a third less energy, with an unchanged loss trajectory, and every other end-to-end measurement in this paper uses it. Because runtimes are designed for inference, only one of the ten other runtimes we audited, ExecuTorch [43, 49], provides an accelerated kernel for this direction, added concurrently with this work.

This paper makes the following contributions.

  • The first measurements of complete multi-billion-parameter training runs on a phone, covering training time, sustained throttling, adapter configuration, and energy (Section 6), and the memory and per-step breakdowns they rest on (Section 4, Section 5).

  • A diagnosis of the quantized backward pass that exposed an incorrect, never-dispatched kernel in MLX, and an audit showing that only one of ten other run-times provides an accelerated kernel for this path (Section 5).

• An evaluation showing that adapters trained on the phone improve personalization benchmark scores on top of prompt retrieval and match adapters trained on server GPUs (Section 7).

• Recommendations for runtimes and operating systems that support on-device training (Section 9).

Our code and measurement data are available at https://github.com/gordofreemo/mobile_LoRA_ft.

Section 2 introduces personalization by fine-tuning, the techniques that fit training on a phone, and the iOS execution environment, and Section 3 describes the experimental setup. Section 4 measures memory, Section 5 the time within a training step and the kernel repair, and Section 6 complete adapter runs. Section 7 evaluates the adapters, Section 8 discusses related work, Section 9 discusses implications and limitations, and Section 10 concludes.

References (30)