arXiv cs.AI· Xu Zheng, Wei Cheng, Zhuomin Chen, Dongkuan Xu, Mo Sha, Jingchao Ni, Dongsheng Luo·· 4 小时前AI 评分34
基于 NPU 的 LoRA 一阶训练系统让手机在端侧微调 LLM
First-Order LoRA Training with Phone NPUs
AI 导读
一项 arXiv 研究提出让手机 NPU 参与 LLM LoRA 微调的系统:NPU 承载前向传播、激活重计算和输入梯度三部分冻结权重乘法,训练图、适配器与优化器留在 CPU,输入梯度 kernel 复用驻留权重分块和前向反量化器。
正文 · 原文
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.
| Subjects: | Machine Learning (cs.LG); Artificial Intelligence (cs.AI) |
| Cite as: | arXiv:2610.24816 [cs.LG] |
| (or arXiv:2610.24816v2 [cs.LG] for this version) | |
| https://doi.org/10.48550/arXiv.2610.24816 arXiv-issued DOI via DataCite |
Submission history
From: Xu Zheng [view email]
[v1]
Sat, 17 Oct 2026 18:49:37 UTC (700 KB)
[v2]
Mon, 26 Oct 2026 18:57:12 UTC (697 KB)
来源:arXiv cs.AI · arxiv.org