paper-with-me

Papers

Adaptive Layer Selection for Efficient Vision Transformer Fine-Tuning

2024-08-16 · Alessio Devoto, Federico Alvetreti, Jary Pomponi, Paolo Di Lorenzo, Pasquale Minervini, Simone Scardapane

Recently, foundation models based on Vision Transformers (ViTs) have become widely available. However, their fine-tuning process is highly resource-intensive, and it hinders their adoption in several edge or low-energy applications. To this end, in this paper we introduce an efficient fine-tuning method for ViTs called $\textbf{ALaST}$ ($\textit{Adaptive Layer Selection Fine-Tuning for Vision Transformers}$) to speed up the fine-tuning process while reducing computational cost, memory load, and training time. Our approach is based on the observation that not all layers are equally critical during fine-tuning, and their importance varies depending on the current mini-batch. Therefore, at each fine-tuning step, we adaptively estimate the importance of all layers and we assign what we call ``compute budgets'' accordingly. Layers that were allocated lower budgets are either trained with a reduced number of input tokens or kept frozen. Freezing a layer reduces the computational cost and memory usage by preventing updates to its weights, while discarding tokens removes redundant data, speeding up processing and reducing memory requirements. We show that this adaptive compute allocation enables a nearly-optimal schedule for distributing computational resources across layers, resulting in substantial reductions in training time (up to 1.5x), FLOPs (up to 2x), and memory load (up to 2x) compared to traditional full fine-tuning approaches. Additionally, it can be successfully combined with other parameter-efficient fine-tuning methods, such as LoRA.

📄 PDF Abstract BibTeX arXiv:2408.08670

Code (0)

등록된 구현이 없습니다.

Tasks

parameter-efficient fine-tuning

Methods 이 논문이 사용한 방법론

SPEED The monocular depth estimation (MDE) is the task of estimating depth from a single frame. This information is an essential knowledge in many computer vision tasks such as scene…

Similar Papers 제목 키워드 기반

Exploring vision transformer layer choosing for semantic segmentation

2023-05-02 · Fangjian Lin, Yizhe Ma, Shengwei Tian

Extensive work has demonstrated the effectiveness of Vision Transformers. The plain Vision Transformer tends to obtain multi-scale features by selecting fixed layers, or the last layer of features aiming to achieve highe…

Decoderfeature selectionSemantic Segmentation

AutoNorm: Understanding Adaptive Normalization in Transformers through Differentiable Gating

2026-07-12 · Piyush Kaushik Bhattacharyya, Divyanshu Rai, Swastik Singh, Kumar Aakash 외 arxiv

Normalization is a critical component for stabilizing Transformer training, yet the choice between static strategies such as Layer Normalization (LN) and adaptive alternatives remains largely task-dependent. In this pape…

Adaptive-avg-pooling based Attention Vision Transformer for Face Anti-spoofing

2024-01-10 · Jichen Yang, Fangfan Chen, Rohan Kumar Das, Zhengyu Zhu 외

Traditional vision transformer consists of two parts: transformer encoder and multi-layer perception (MLP). The former plays the role of feature learning to obtain better representation, while the latter plays the role o…

AvgFace Anti-Spoofing

FiRST: Finetuning Router-Selective Transformers for Input-Adaptive Latency Reduction

2024-10-16 · Akriti Jain, Saransh Sharma, Koyel Mukherjee, Soumyabrata Pal

Auto-regressive Large Language Models (LLMs) demonstrate remarkable performance across different domains such as vision and language processing. However, due to sequential processing through a stack of transformer layers…

Faster Depth-Adaptive Transformers

2020-04-27 · Yijin Liu, Fandong Meng, Jie zhou, Yufeng Chen 외

Depth-adaptive neural networks can dynamically adjust depths according to the hardness of input words, and thus improve efficiency. The main challenge is how to measure such hardness and decide the required depths (i.e.,…

Sentence Embeddingstext-classificationText Classification