Paper Reading AI Learner

Exploiting Layer Normalization Fine-tuning in Visual Transformer Foundation Models for Classification

2025-08-11 03:18:47
Zhaorui Tan, Tan Pan, Kaizhu Huang, Weimiao Yu, Kai Yao, Chen Jiang, Qiufeng Wang, Anh Nguyen, Xin Guo, Yuan Cheng, Xi Yang

Abstract

LayerNorm is pivotal in Vision Transformers (ViTs), yet its fine-tuning dynamics under data scarcity and domain shifts remain underexplored. This paper shows that shifts in LayerNorm parameters after fine-tuning (LayerNorm shifts) are indicative of the transitions between source and target domains; its efficacy is contingent upon the degree to which the target training samples accurately represent the target domain, as quantified by our proposed Fine-tuning Shift Ratio ($FSR$). Building on this, we propose a simple yet effective rescaling mechanism using a scalar $\lambda$ that is negatively correlated to $FSR$ to align learned LayerNorm shifts with those ideal shifts achieved under fully representative data, combined with a cyclic framework that further enhances the LayerNorm fine-tuning. Extensive experiments across natural and pathological images, in both in-distribution (ID) and out-of-distribution (OOD) settings, and various target training sample regimes validate our framework. Notably, OOD tasks tend to yield lower $FSR$ and higher $\lambda$ in comparison to ID cases, especially with scarce data, indicating under-represented target training samples. Moreover, ViTFs fine-tuned on pathological data behave more like ID settings, favoring conservative LayerNorm updates. Our findings illuminate the underexplored dynamics of LayerNorm in transfer learning and provide practical strategies for LayerNorm fine-tuning.

Abstract (translated)

层归一化(LayerNorm)在视觉变换器(ViT)中起着至关重要的作用,但其在数据稀缺和领域变化情况下的微调动态特性尚未得到充分研究。本文表明,在微调后出现的层归一化参数的变化(即“层归一化偏移”)可以指示源域与目标域之间的转换;它的有效性取决于目标训练样本多大程度上准确代表了目标域,这可以通过我们提出的微调偏移比率($FSR$)来量化。基于此发现,本文提出了一种简单而有效的重缩放机制,该机制使用一个标量$\lambda$(与$FSR$负相关)来对齐学习到的层归一化偏移和完全代表性的数据下理想化的层归一化偏移,并结合了一个循环框架以进一步增强层归一化的微调过程。在自然和病理图像上进行广泛的跨分布(ID)和非分布(OOD)设置以及各种目标训练样本制度下的实验验证了我们的框架的有效性。 值得注意的是,与ID情况相比,特别是在数据稀缺的情况下,OOD任务往往导致较低的$FSR$值和较高的$\lambda$值,这表明了目标训练样本代表性不足。此外,在病理数据上微调后的ViT表现出更接近于ID设置的行为,并倾向于保守地更新层归一化参数。我们的研究揭示了层归一化在迁移学习中被忽视的动力学特性,并为层归一化的微调提供了实用策略。

URL

https://arxiv.org/abs/2508.07577

PDF

https://arxiv.org/pdf/2508.07577.pdf


Tags
3D Action Action_Localization Action_Recognition Activity Adversarial Agent Attention Autonomous Bert Boundary_Detection Caption Chat Classification CNN Compressive_Sensing Contour Contrastive_Learning Deep_Learning Denoising Detection Dialog Diffusion Drone Dynamic_Memory_Network Edge_Detection Embedding Embodied Emotion Enhancement Face Face_Detection Face_Recognition Facial_Landmark Few-Shot Gait_Recognition GAN Gaze_Estimation Gesture Gradient_Descent Handwriting Human_Parsing Image_Caption Image_Classification Image_Compression Image_Enhancement Image_Generation Image_Matting Image_Retrieval Inference Inpainting Intelligent_Chip Knowledge Knowledge_Graph Language_Model LLM Matching Medical Memory_Networks Multi_Modal Multi_Task NAS NMT Object_Detection Object_Tracking OCR Ontology Optical_Character Optical_Flow Optimization Person_Re-identification Point_Cloud Portrait_Generation Pose Pose_Estimation Prediction QA Quantitative Quantitative_Finance Quantization Re-identification Recognition Recommendation Reconstruction Regularization Reinforcement_Learning Relation Relation_Extraction Represenation Represenation_Learning Restoration Review RNN Robot Salient Scene_Classification Scene_Generation Scene_Parsing Scene_Text Segmentation Self-Supervised Semantic_Instance_Segmentation Semantic_Segmentation Semi_Global Semi_Supervised Sence_graph Sentiment Sentiment_Classification Sketch SLAM Sparse Speech Speech_Recognition Style_Transfer Summarization Super_Resolution Surveillance Survey Text_Classification Text_Generation Time_Series Tracking Transfer_Learning Transformer Unsupervised Video_Caption Video_Classification Video_Indexing Video_Prediction Video_Retrieval Visual_Relation VQA Weakly_Supervised Zero-Shot