arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2307.16867cs.CV
收藏

从精度冗余的视角重新审视适配器的参数效率

Revisiting the Parameter Efficiency of Adapters from the Perspective of Precision Redundancy

Peking University(北京大学)

Shibo Jie, Haoqing Wang, Zhi-Hong Deng

AI总结:

本文从精度冗余视角发现适配器对低数值精度具有抗性,提出计算高效的量化方法训练低精度适配器,1-bit适配器在VTAB-1K和少样本FGVC任务上达到最优且存储最小,首次展示了量化技术在参数高效微调中的潜力。

摘要:

目前计算机视觉领域的最先进结果在一定程度上依赖于对大型预训练视觉模型进行微调。然而,随着模型规模的指数级增长,传统的全量微调需要为每个任务存储一个单独的网络副本,导致存储和传输开销日益庞大。基于适配器的参数高效微调(PET)方法通过调整插入到冻结的预训练模型中的轻量级适配器来应对这一挑战。在本文中,我们研究如何使适配器更加高效,达到存储特定任务微调网络所需的最小尺寸。受适配器参数收敛于平坦局部最小值的观察启发,我们发现适配器对参数空间中的噪声具有抗性,这意味着它们对低数值精度也具有抗性。为了训练低精度适配器,我们提出了一种最小化量化误差的计算高效量化方法。通过大量实验,我们发现低精度适配器表现出极小的性能下降,甚至1-bit精度对适配器已足够。实验结果表明,1-bit适配器在VTAB-1K基准和少样本FGVC任务上均优于所有其他PET方法,同时所需存储空间最小。我们的发现首次展示了量化技术在PET中的巨大潜力,提供了一种增强基于适配器的PET方法参数效率的通用解决方案。代码:https://github.com/JieShibo/PETL-ViT

英文摘要:

Current state-of-the-art results in computer vision depend in part on fine-tuning large pre-trained vision models. However, with the exponential growth of model sizes, the conventional full fine-tuning, which needs to store a individual network copy for each tasks, leads to increasingly huge storage and transmission overhead. Adapter-based Parameter-Efficient Tuning (PET) methods address this challenge by tuning lightweight adapters inserted into the frozen pre-trained models. In this paper, we investigate how to make adapters even more efficient, reaching a new minimum size required to store a task-specific fine-tuned network. Inspired by the observation that the parameters of adapters converge at flat local minima, we find that adapters are resistant to noise in parameter space, which means they are also resistant to low numerical precision. To train low-precision adapters, we propose a computational-efficient quantization method which minimizes the quantization error. Through extensive experiments, we find that low-precision adapters exhibit minimal performance degradation, and even 1-bit precision is sufficient for adapters. The experimental results demonstrate that 1-bit adapters outperform all other PET methods on both the VTAB-1K benchmark and few-shot FGVC tasks, while requiring the smallest storage size. Our findings show, for the first time, the significant potential of quantization techniques in PET, providing a general solution to enhance the parameter efficiency of adapter-based PET methods. Code: https://github.com/JieShibo/PETL-ViT

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

↑