arXiv cs.AI· Xu Zheng, Wei Cheng, Zhuomin Chen, Dongkuan Xu, Mo Sha, Jingchao Ni, Dongsheng Luo·· 13 小时前AI 评分41
利用手机 NPU 进行一阶 LoRA 训练
First-Order LoRA Training with Phone NPUs
AI 导读
一套新系统将 LoRA 训练中三次冻结权重乘法全部放到手机 NPU 上执行,训练图、适配器与优化器保留在 CPU,其输入梯度内核复用常驻权重分块与前向反量化器,避免转置权重拷贝。
正文 · 原文
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