APLA: A Simple Adaptation Method for Vision Transformers

Moein Sorkhei, Emir Konuk, Kevin Smith, Christos Matsoukas
3/14/2025
cs.CV

Official code: MoeinSorkhei/APLA (16 stars, last commit 2025-04-03).

Abstract

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.

View on arXivView PDF

Code Implementations(1)

MoeinSorkhei/APLAOfficial100%

Code for APLA: A Simple Adaptation Method for Vision Transformers

162Shell, PythonMar 12, 20251 years ago

Similar Papers

Cite this paper

@article{sorkhei2025apla,
  title  = {APLA: A Simple Adaptation Method for Vision Transformers},
  author = {Moein Sorkhei and Emir Konuk and Kevin Smith and Christos Matsoukas},
  year   = {2025},
  eprint = {2503.11335},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2503.11335v2}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2503.11335.svg)](https://codeofpaper.com/paper/2503.11335)

Discussion