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

APLA:一种面向视觉Transformer的简单适配方法

APLA: A Simple Adaptation Method for Vision Transformers

KTH Royal Institute of Technology(皇家理工学院);Science for Life Laboratory(生命科学实验室)

Moein Sorkhei, Emir Konuk, Kevin Smith, Christos Matsoukas

AI总结:

针对现有视觉Transformer适配方法需改架构、增参数的问题,提出仅更新注意力后投影层(或其随机权重子集)的APLA方法,在多任务多数据集上性能更优且大幅降低训练成本。

摘要:

现有适配技术通常需要修改架构或新增参数,导致计算成本与复杂度较高。我们提出注意力投影层适配(Attention Projection Layer Adaptation,APLA),这是一种无需改动架构、无需新增参数即可适配视觉Transformer(ViTs)的简单方法。通过系统分析,我们发现注意力机制之后的紧邻层对适配至关重要。仅更新该投影层,甚至仅更新该层权重的随机子集,APLA就能达到当前最优性能,同时GPU显存使用量最多降低52.63%,训练时间最多缩短43.0%,且推理阶段无额外开销。在涵盖场景分类、医学成像、卫星成像、细粒度分类等多种任务的46个数据集上,APLA在分类、分割和检测任务中始终优于包括全量微调在内的17种其他主流适配方法。代码可在https://github.com/MoeinSorkhei/APLA获取。

英文摘要:

Existing adaptation techniques typically require architectural modifications or added parameters, leading to high computational costs and complexity. We introduce Attention Projection Layer Adaptation (APLA), a simple approach to adapt vision transformers (ViTs) without altering the architecture or adding parameters. Through a systematic analysis, we find that the layer immediately after the attention mechanism is crucial for adaptation. By updating only this projection layer, or even just a random subset of this layer's weights, APLA achieves state-of-the-art performance while reducing GPU memory usage by up to 52.63% and training time by up to 43.0%, with no extra cost at inference. Across 46 datasets covering a variety of tasks including scene classification, medical imaging, satellite imaging, and fine-grained classification, APLA consistently outperforms 17 other leading adaptation methods, including full fine-tuning, on classification, segmentation, and detection tasks. The code is available at https://github.com/MoeinSorkhei/APLA.

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

↑