arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2405.14700cs.CV
收藏

稀疏微调:通过高效微调和推理适应视觉变换器

Sparse-Tuning: Adapting Vision Transformers with Efficient Fine-tuning and Inference

College of Systems Engineering and State Key Laboratory of Digital Intelligent Modeling and Simulation, National University of Defense Technology(系统工程学院和数字智能建模与仿真国家重点实验室,国防科技大学);College of Electronics and Information Engineering, Sichuan University(电子信息工程学院,四川大学);Key Laboratory of Knowledge Engineering with Big Data, Hefei University of Technology(大数据知识工程重点实验室,合肥工业大学);College of Computer Science and Technology, Zhejiang University(计算机科学与技术学院,浙江大学);School of Engineering, Westlake University(工程学院,西湖大学);Tsinghua University(清华大学);State Key Laboratory for Novel Software Technology, Nanjing University(新型软件技术国家重点实验室,南京大学);Key Laboratory of Education Blockchain and Intelligent Technology, Ministry of Education, Guangxi Normal University(教育区块链与智能技术重点实验室,教育部,广西师范大学)

Ting Liu, Xuyang Liu, Liangtao Shi, Zunnan Xu, Yue Hu, Siteng Huang, Yi Xin, Bineng Zhong, Donglin Wang

AI总结:

稀疏微调通过结合标记稀疏化和密集适配器技术,在保持性能的同时显著提升计算和内存效率。

摘要:

参数高效的微调(PEFT)已成为一种流行的解决方案,用于通过仅更新一小部分参数来适应预训练的视觉变换器(ViT)模型以适应下游应用。尽管当前的PEFT方法已经实现了微调的效率,但它们忽略了推理过程中计算和GPU内存效率,未能满足实际需求。为了解决这一限制,我们提出了稀疏微调,一种高效且有效的框架,利用流行的标记稀疏化(TS)技术来减少图像和视频中的信息冗余,从而显著提高计算和内存效率。然而,TS往往由于不可避免的信息损失而影响性能。为了解决这一限制,我们进一步引入了密集适配器(DA),以补偿由标记稀疏化造成的的信息损失。DA将来自浅层的全面标记信息整合到保留的深层标记中,确保最小的性能下降。通过整合TS技术和DA,稀疏微调在保持性能的同时显著减少了计算和内存开销。在VTAB-1K、三个图像数据集和两个视频数据集上的实验证明,稀疏微调将GFLOPs减少到原始ViT-B的66%,同时在与全微调和其他PEFT基线相比时实现了最先进的性能。

英文摘要:

Parameter-efficient fine-tuning (PEFT) has emerged as a popular solution for adapting pre-trained Vision Transformer (ViT) models to downstream applications by updating only a small subset of parameters. While current PEFT methods have achieved fine-tuning efficiency, they overlook the efficiency of computation and GPU memory during inference, falling short of practical requirements. To address this limitation, we propose Sparse-Tuning, an efficient and effective framework that leverages popular token sparsification (TS) techniques to reduce information redundancy in images and videos, thereby significantly improving computational and memory efficiency. However, TS often compromises performance due to inevitable information loss. To address this limitation, we further introduce Dense Adapters (DA) to compensate for the information losses incurred by token sparsification. DA integrates comprehensive token information from shallow layers into the retained tokens of deeper layers, ensuring minimal performance degradation. Through the integration of TS techniques and DA, Sparse-Tuning achieves a significant reduction in computation and memory overhead while maintaining performance. Empirical results on VTAB-1K, three image datasets, and two video datasets show that Sparse-Tuning reduces GFLOPs to 66\% of the original ViT-B while achieving state-of-the-art performance compared to full fine-tuning and other PEFT baselines.

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

↑