paper-with-me

홈 › Papers

A Semantic-based Layer Freezing Approach to Efficient Fine-Tuning of Language Models

2024-06-17 · Jian Gu, Aldeida Aleti, Chunyang Chen, Hongyu Zhang

Finetuning language models (LMs) is crucial for adapting the models to downstream data and tasks. However, full finetuning is usually costly. Existing work, such as parameter-efficient finetuning (PEFT), often focuses on \textit{how to finetune} but neglects the issue of \textit{where to finetune}. As a pioneering work on answering where to finetune (at the layer level), we conduct a semantic analysis of the LM inference process. We first propose a virtual transition of the latent representation and then trace its factual transition. Based on the deviation in transitions, we estimate the gain of finetuning each model layer, and further, narrow down the scope for finetuning. We perform extensive experiments across well-known LMs and datasets. The results show that our approach is effective and efficient, and outperforms the existing baselines. Our approach is orthogonal to existing efficient techniques, such as PEFT methods, offering practical values on LM finetuning.

📄 PDF Abstract BibTeX arXiv:2406.11753

Code (0)

등록된 구현이 없습니다.

Similar Papers 제목 키워드 기반

Gradient Sparsification For Masked Fine-Tuning of Transformers

2023-07-19 · James O' Neill, Sourav Dutta

Fine-tuning pretrained self-supervised language models is widely adopted for transfer learning to downstream tasks. Fine-tuning can be achieved by freezing gradients of the pretrained network and only updating gradients …

Transfer Learning

Gradient Sparsification For \emph{Masked Fine-Tuning} of Transformers

2021-11-16 · ACL ARR November 2021 11 · Anonymous

Fine-tuning masked language models is widely adopted for transfer learning to downstream tasks and can be achieved by (1) freezing gradients of the pretrained network or only updating gradients of a newly added classific…

Transfer LearningXLM-R

What Would Elsa Do? Freezing Layers During Transformer Fine-Tuning

2019-11-08 · Jaejun Lee, Raphael Tang, Jimmy Lin

Pretrained transformer-based language models have achieved state of the art across countless tasks in natural language processing. These models are highly expressive, comprising at least a hundred million parameters and …

Linguistic AcceptabilityNatural Language InferenceSemantic SimilaritySemantic Textual Similarity+1

Spectral Insights into Data-Oblivious Critical Layers in Large Language Models

2025-05-31 · Xuyuan Liu, Lei Hsiung, Yaoqing Yang, Yujun Yan

Understanding how feature representations evolve across layers in large language models (LLMs) is key to improving their interpretability and robustness. While recent studies have identified critical layers linked to spe…

backdoor defenseDomain Adaptation

FUN with Fisher: Improving Generalization of Adapter-Based Cross-lingual Transfer with Scheduled Unfreezing

2023-01-13 · Chen Cecilia Liu, Jonas Pfeiffer, Ivan Vulić, Iryna Gurevych

Standard fine-tuning of language models typically performs well on in-distribution data, but suffers with generalization to distribution shifts. In this work, we aim to improve the generalization of adapter-based cross-l…

Cross-Lingual TransferTransfer Learning