arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2507.23536cs.LGcs.AI
收藏

从大语言模型到边缘:边缘设备上的参数高效微调

From LLMs to Edge: Parameter-Efficient Fine-Tuning on Edge Devices

Graz University of Technology(格拉茨技术大学);CSH Vienna(维也纳CSH)

Georg Slamanig, Francesco Corti, Olga Saukh

AI总结:

该研究针对边缘设备的卷积架构测试主流PEFT方法,发现其在深度可分离卷积上内存效率仅为LLM中的一半,而适配边缘优化卷积的适配器类PEFT可降95%更新FLOPs,为边缘场景的PEFT选型提供指导。

摘要:

参数高效微调(PEFT)方法通过最小化用于使模型适配下游任务的新增参数量,降低了更新深度学习模型的计算成本。尽管这类方法在大语言模型(LLM)中已得到广泛研究,但它们在边缘设备所用的小型模型(如卷积神经网络)上的应用仍未得到充分探索。本文针对通常部署在资源受限边缘环境中的卷积架构,对主流PEFT方法进行了基准测试与分析。我们评估了LoRA、DoRA和GaLore在更新标准卷积架构和深度可分离卷积架构以应对分布偏移、适配未见过的类别时的表现。我们利用最新提出的PyTorch分析工具,对比了这些PEFT方法与传统微调方法更新后的模型性能和计算成本。出于资源效率的考量,我们研究了它们在不同秩维度下的更新表现。我们发现,与在LLM中的效率相比,被评估的PEFT方法应用于深度可分离卷积架构时,内存效率仅为前者的一半。反过来,当针对为边缘部署优化的卷积架构时,基于适配器的PEFT方法可将模型更新期间的浮点运算量(FLOPs)降低多达95%。这些发现为根据硬件约束、性能要求和应用需求选择PEFT方法提供了有价值的指导。我们的代码已上线。

英文摘要:

Parameter-efficient fine-tuning (PEFT) methods reduce the computational costs of updating deep learning models by minimizing the number of additional parameters used to adapt a model to a down- stream task. While extensively researched in large language models (LLMs), their application to smaller models used on edge devices, such as convolutional neural networks, remains underexplored. This paper benchmarks and analyzes popular PEFT methods on convolutional architectures typically deployed in resource-constrained edge environments. We evaluate LoRA, DoRA, and GaLore for updating standard and depthwise convolutional architectures to handle distribution shifts and accommodate unseen classes. We utilize recently proposed PyTorch profilers to compare the updated model performance and computational costs of these PEFT methods with traditional fine-tuning approaches. With resource efficiency in mind, we investigate their update behavior across different rank dimensions. We find that the evaluated PEFT methods are only half as memory-efficient when applied to depthwise-separable convolution architectures, compared to their efficiency with LLMs. Conversely, when targeting convolu- tional architectures optimized for edge deployment, adapter-based PEFT methods can reduce floating point operations (FLOPs) during model updates by up to 95%. These insights offer valuable guidance for selecting PEFT methods based on hardware constraints, performance requirements, and application needs. Our code is online.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑