The two-stage fine-tuning (FT) method, linear probing (LP) then fine-tuning (LP-FT), outperforms linear probing and FT alone. This holds true for both in-distribution (ID) and out-of-distribution (OOD) data. One key reason for its success is the preservation of pre-trained features, achieved by obtaining a near-optimal linear head during LP. However, despite the widespread use of large language models, there has been limited exploration of more complex architectures such as Transformers. In this paper, we analyze the training dynamics of LP-FT for classification tasks on the basis of the neural tangent kernel (NTK) theory. Our analysis decomposes the NTK matrix into two components. This decomposition highlights the importance of the linear head norm alongside the prediction accuracy at the start of the FT stage. We also observe a significant increase in the linear head norm during LP, which stems from training with the cross-entropy (CE) loss. This increase in the linear head norm effectively reduces changes in learned features. Furthermore, we find that this increased norm can adversely affect model calibration, which can be corrected using temperature scaling. Additionally, we extend our analysis with the NTK to the low-rank adaptation (LoRA) method and validate its effectiveness. Our experiments using a Transformer-based model on multiple natural language processing datasets confirm our theoretical analysis. Our study demonstrates the effectiveness of LP-FT for fine-tuning language models. Code is available at https://github.com/tom4649/lp-ft_ntk.
GradPCA: Leveraging NTK Alignment for Reliable Out-of-Distribution Detection
Ludwig-Maximilians-Universität München(慕尼黑莱布尼茨大学);University of Pittsburgh(匹兹堡大学);Harvard University(哈佛大学);University of Tromso(特罗姆斯大学);DLR-German Aerospace Center(德国航空航天中心);Munich Center for Machine Learning(慕尼黑机器学习中心)
Parameter-Efficient Fine-Tuning for Continual Learning: A Neural Tangent Kernel Perspective
School of Electrical and Information Engineering, Tianjin Key Laboratory of Brain-Inspired Intelligence Technology, Tianjin University(电子信息工程学院,天津脑启发智能技术重点实验室,天津大学);Shanghai Artificial Intelligence Laboratory(上海人工智能实验室);College of Information Science and Electronic Engineering, Zhejiang University(信息科学与电子工程学院,浙江大学);Department of Computer Science, the University of Sheffield(计算机科学系,谢菲尔德大学);Institute of Artificial Intelligence (TeleAI) of China Telecom(中国电信人工智能研究院(TeleAI))
The Challenges of the Nonlinear Regime for Physics-Informed Neural Networks
BMW AG, Digital Campus Munich(宝马集团慕尼黑数字园区);Basque Center for Applied Mathematics(巴斯克应用数学中心);University of the Basque Country(巴斯克大学);Technical University of Munich(慕尼黑工业大学);Munich Center for Machine Learning(慕尼黑机器学习中心);Munich Data Science Institute(慕尼黑数据科学研究所)
The University of Hong Kong(香港大学);University of Wisconsin-Madison(威斯康星大学麦迪逊分校);The Simons Institute for the Theory of Computing(西蒙斯理论计算研究所);University of California, Berkeley(加州大学伯克利分校);Sun Yat-sen University(中山大学)