arXiv:2502.20421cs.LG2025-02被引 14

让手机在不泄露数据的前提下高效微调大模型。

MobiLLM: Enabling LLM Fine-Tuning on the Mobile Device via Server Assisted Side Tuning

  • 手机保留冻结主干模型,将训练参数移至服务器侧
  • 仅传输低精度激活数据,大幅降低内存和计算开销
  • 适合资源受限设备,兼顾隐私与训练效率

大型语言模型在移动设备上的应用前景广阔,但设备端微调面临极高内存需求和缓慢训练速度。即使采用参数高效微调(PEFT)方法,资源受限的移动设备仍难以承受。本文提出MobiLLM,通过服务器辅助的侧边微调,实现移动端内存高效的Transformer类大模型微调。MobiLLM使移动设备仅需保留冻结的主干模型,将可训练侧网络的反向传播计算与内存占用全部卸载至高性能服务器。不同于传统方法将可训练参数保留在主干中,MobiLLM将一组并行适配器从主干分离,构建反向传播绕行路径,前向传播时仅以低带宽量化方式单向传输激活数据至服务器。数据全程不离开手机,且本地前向传播可与服务器端执行并行,有效保护数据隐私,并显著降低内存与计算负担。大量实验表明,即使仅使用CPU的资源受限设备,MobiLLM也能完成大模型微调,显著缩短收敛时间并减少内存占用。

原文摘要 · Abstract (English)

Large Language Model (LLM) at mobile devices and its potential applications never fail to fascinate. However, on-device LLM fine-tuning poses great challenges due to extremely high memory requirements and slow training speeds. Even with parameter-efficient fine-tuning (PEFT) methods that update only a small subset of parameters, resource-constrained mobile devices cannot afford them. In this paper, we propose MobiLLM to enable memory-efficient transformer LLM fine-tuning on a mobile device via server-assisted side-tuning. Particularly, MobiLLM allows the resource-constrained mobile device to retain merely a frozen backbone model, while offloading the memory and computation-intensive backpropagation of a trainable side-network to a high-performance server. Unlike existing fine-tuning methods that keep trainable parameters inside the frozen backbone, MobiLLM separates a set of parallel adapters from the backbone to create a backpropagation bypass, involving only one-way activation transfers from the mobile device to the server with low-width quantization during forward propagation. In this way, the data never leaves the mobile device while the device can remove backpropagation through the local backbone model and its forward propagation can be paralyzed with the server-side execution. Thus, MobiLLM preserves data privacy while significantly reducing the memory and computational burdens for LLM fine-tuning. Through extensive experiments, we demonstrate that MobiLLM can enable a resource-constrained mobile device, even a CPU-only one, to fine-tune LLMs and significantly reduce convergence time and memory usage.

大模型微调移动端推理隐私保护

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。