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

Manuscript Offprint

arXiv:2610.24816

First-Order LoRA Training with Phone NPUs

Xu Zheng, Wei Cheng, Zhuomin Chen, Dongkuan Xu, Mo Sha, Jingchao Ni, Dongsheng Luo

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

ABSTRACT

On-device fine-tuning lets a large language model (LLM) learn from its user's private data without uploading it. Low-rank adaptation (LoRA) reduces the trainable parameters, but each first-order training step still multiplies by the frozen base-model weights during the forward pass, activation recomputation, and input-gradient computation. A phone's neural processing unit (NPU) already holds these weights for inference; using it for training also requires computing input gradients, which its inference interface does not support. We present a system that runs all three frozen-weight products on the NPU while keeping the training graph, adapters, and optimizer on the CPU. Its input-gradient kernels reuse the resident weight tiles and the forward dequantizer, avoiding a transposed weight copy and ensuring forward and backward use the same effective weights. To preserve usable gradients, the system selects precision by gradient sensitivity and applies a per-row range guard for half-precision (FP16) outputs. Its runtime fuses the remaining CPU operators and overlaps NPU execution with adapter computation, while resumable execution and thermal pacing let training proceed as a background job. We evaluate it on two Qualcomm Snapdragon platforms using four LLMs from the Qwen and Llama families. Our workloads cover nightly personalization with labels supplied on the phone and the public LaMP-2 benchmark; comparisons include an optimized CPU trainer, a phone-GPU trainer, forward-only training, and GPU-trained references.

1 Introduction

Phones now run large language models (LLMs) locally, and deployed assistants specialize a shared base model with low-rank adaptation (LoRA) (Gunter et al., 2024). Such a model serves its user better once it learns from that user's private examples, which accumulate on the phone. Training where the data lives avoids uploading it and leaves room for federated aggregation (McMahan et al., 2017). Making on-device adaptation practical requires training to fit within the phone's compute, memory, and thermal limits.

LoRA reduces training memory by freezing the base model and updating only small adapters (Hu et al., 2022). However, the frozen layers still do much of the computation. Each frozen projection uses its weights W three times per training step: once in the forward pass, once to recompute activations during checkpointing (Chen et al., 2016), and once to compute the input gradient dYW during backpropagation. We call these three matrix multiplications the frozen path; all three read the same weights (Figure 1b). Even with LoRA, each training step still requires all three frozen-path multiplications (Section 2.1).

The phone’s neural processing unit (NPU) is built for these matrix products and already serves on-device LLM inference (Xu et al., 2025). Its inference engine computes the first two products from resident weight tiles, and the third is the same product with the operand roles exchanged. The software stack, however, exposes only inference: forward products with resident, quantized weights and half-precision (FP16) outputs. Existing routes give up backpropagation, the NPU, or model scale. Forward-only methods run on inference engines because they estimate gradients from perturbed

1^{1}Florida International University, Miami, FL, USA 2^{2}NEC Laboratories America, Princeton, NJ, USA 3^{3}North Carolina State University, Raleigh, NC, USA 4^{4}University of Houston, Houston, TX, USA 5^{5}Singapore Management University, Singapore. Correspondence to: Dongsheng Luo luodongsheng01@gmail.com.

Preprint.

First-Order LoRA Training with Phone NPUs

(a) On-phone learning

(b) One LoRA layer: forward and backward

Figure

(c) CPU trainer + resident NPU service

Figure 1. Our system fine-tunes the on-device LLM on the user's private data. (a) A nightly update trains its LoRA adapter; (b) the same frozen W serves forward, recomputation, and backward, and the CPU adds dYW to the adapter input gradient; (c) the CPU trainer and the NPU service run as separate processes on the phone: the CPU owns the graph and optimizer, the NPU holds one weight copy, messages over a local Unix-domain socket carry projection requests, and shared memory carries their input and output tensors.

forward passes (Xu et al., 2024; Gao et al., 2025; Lu et al., 2026; Malladi et al., 2023). First-order LLM fine-tuning has run on an embedded GPU (Zhu et al., 2023) and phone GPUs (Tether Data, 2026a), leaving the NPU idle. Mandheling (Xu et al., 2022) and HexaTrain (yuubinnkyoku, 2026) train on mobile digital signal processors (DSPs) and NPUs, but only networks far smaller than billion-parameter LLMs. If the NPU also computes dYW from its resident tiles, the frozen path can run there, while the small adapter and its optimizer state stay on the CPU (Figure 1c).

Building a trainer around this idea presents three challenges. Direction: inference kernels and weight layouts serve XW⊤XW^{\top}, whereas backward traverses the other dimension; a separately quantized transpose would add resident storage and change the effective weights the gradient sees. Precision and range: in the engine's FP16 results, small gradients underflow and partial sums can overflow, and inference weight formats target outputs, not gradients. In models that interleave recurrent Gated DeltaNet (GDN) layers with attention, such as Qwen3.5 (Qwen Team, 2026; Yang et al., 2025b), quantization error in a recurrent projection enters a state that every later token reuses. System cost: once the NPU runs the frozen path, the remaining CPU operators and the CPU-NPU boundary limit each step, and an update runs for hours on a phone whose memory is shared, whose temperature rises, and which its user continues to use.

We present a system that trains an on-device LLM with first-order LoRA and runs the frozen path on the NPU's inference engine. Its input-gradient kernels read resident FP16 tiles and 8-bit block-quantized (Q8) tiles, which store each block of 32 weights as 8-bit integers with one FP16 scale; for Q8, they exchange the matrix engine's operand roles so the forward dequantizer yields W⊤W^{\top}. To keep gradients usable, a gradient-sensitive policy keeps recurrent projections in FP16 and activations in floating point, and a range guard scales each gradient row by a power of two, with overflow flags and bounded retries. On the CPU side, fused operators shrink residual work, asynchronous requests overlap NPU products with adapter gradients, and the job commits at optimizer-step boundaries to yield to the user, pause under thermal limits, and resume. Our contributions are:

• A split of first-order LoRA training between a CPU training graph and a resident NPU service that runs the frozen path from the inference weight tiles (Sections 3 and 6).

• Frozen-path backpropagation on an inference NPU: input-gradient kernels that reuse the resident weights and the forward dequantizer, a gradient-sensitive precision policy, and a per-row range guard (Section 4).

• A CPU-NPU training runtime for hours-long background jobs: fused residual operators, asynchronous NPU requests, a checkpoint budget, and step-boundary commit, yield, and thermal pacing (Section 5).

• An evaluation on two Qualcomm Snapdragon platforms (8 Elite and 8 Elite Gen 5, with Hexagon V79 and V81 NPUs) with four LLMs from two model families, on a nightly personalization update

First-Order LoRA Training with Phone NPUs

Figure

(a) Self CPU time (s)

(b) Q3.5-4B gradient error (%)

Figure 2. The frozen path dominates CPU training, and inference precision is not gradient precision. (a) Self CPU time of a training example on P2 with and without the frozen path (replaced by zeros), and the remaining time by operator; (b) LoRA-gradient error against FP32 by frozen-weight format, where + keeps the gate or the recurrent (GDN) projections of Q8 in FP16 (dark blue: our system's format; dashed: the error with BF16 weights).

with on-phone labels and on LaMP-2 (Salemi et al., 2024), against an optimized CPU trainer, a phone-GPU trainer, forward-only training, and GPU-trained references (Section 7).

References (39)