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

面向ViT自适应的参数与推理效率动态微调

Dynamic Tuning Towards Parameter and Inference Efficiency for ViT Adaptation

National University of Singapore(新加坡国立大学);DAMO Academy, Alibaba Group(阿里巴巴达摩院);Hupan Laboratory(湖畔实验室);Tsinghua University(清华大学)

Wangbo Zhao, Jiasheng Tang, Yizeng Han, Yibing Song, Kai Wang, Gao Huang, Fan Wang, Yang You

AI总结:

本文提出动态微调(DyT),通过轻量级adapter、token调度器跳过冗余计算及增强型adapter,在提升ViT自适应参数效率的同时优化推理效率,在多任务上以更少FLOPs实现更优性能。

摘要:

现有的参数高效微调(PEFT)方法通过提升参数效率,在视觉Transformer(ViT)自适应方面取得了显著成功。然而,在自适应过程中提升推理效率的探索仍不充分。这限制了预训练ViT模型的更广泛应用,尤其是当模型计算量庞大时。本文提出动态微调(DyT),一种提升ViT自适应参数和推理效率的新方法。具体而言,除了使用轻量级adapter模块,我们提出token调度器以区分信息丰富的token与较不重要的token,允许后者动态跳过原始block,从而减少推理过程中的冗余计算。此外,我们探索多种设计变体以寻找DyT的最佳实践。最后,受混合专家机制启发,我们引入增强型adapter以进一步提升自适应性能。我们在图像/视频识别和语义分割等多种任务上验证DyT。例如,DyT在VTAB-1K基准上仅使用现有PEFT方法71%的FLOPs即实现更优性能。

英文摘要:

Existing parameter-efficient fine-tuning (PEFT) methods have achieved significant success on vision transformers (ViTs) adaptation by improving parameter efficiency. However, the exploration of enhancing inference efficiency during adaptation remains underexplored. This limits the broader application of pre-trained ViT models, especially when the model is computationally extensive. In this paper, we propose Dynamic Tuning (DyT), a novel approach to improve both parameter and inference efficiency for ViT adaptation. Specifically, besides using the lightweight adapter modules, we propose a token dispatcher to distinguish informative tokens from less important ones, allowing the latter to dynamically skip the original block, thereby reducing the redundant computation during inference. Additionally, we explore multiple design variants to find the best practice of DyT. Finally, inspired by the mixture-of-experts (MoE) mechanism, we introduce an enhanced adapter to further boost the adaptation performance. We validate DyT across various tasks, including image/video recognition and semantic segmentation. For instance, DyT achieves superior performance compared to existing PEFT methods while evoking only 71% of their FLOPs on the VTAB-1K benchmark.

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

↑