Journal Article2026

Training-free layer selection for partial fine-tuning of language models

Aldrin Kabya Biswas, Md Fahim, Md Tahmid Hasan Fuad, Akm Moshiur Rahman Mazumder, Amin Ahsan Ali, AKM Mahbubur Rahman

Information Sciences

Elsevier, Vol. 740, pp. 123204, ISBN: 0020-0255

Abstract

The growing scale of pre-trained language models poses a challenge in fine-tuning for downstream tasks, especially in resource-constrained settings. Recent studies highlight that not all layers in Transformer-based language models contribute equally to downstream task performance, giving rise to various partial fine-tuning strategies. We propose a training-free approach for layer-wise partial fine-tuning that leverages the cosine similarity between representative tokens across layers to identify inter-layer relationships. Our method comprises two stages: (i) scoring layers based on their relevance to the task via a single forward pass, and (ii) fine-tuning a subset of layers, either highest-scoring, lowest-scoring, or block-wise, while keeping others frozen. We conduct experiments on 16 diverse NLP datasets, including single-sentence and sentence-pair classification tasks, as well as generation tasks. Our method achieves competitive performance compared to full fine-tuning, with an average training speedup of 1.5 and a reduction of trainable parameters by 75%, and outperforms all comparative baselines in 14 out of 16 evaluated datasets. Additionally, our approach does not cause any notable drop in performance when the domain is changed for the evaluation tasks, demonstrating a robust cross-domain performance. • Efficient training-free layer selection uses token cosine similarity. • Inter-layer token relationships identify optimal layers for fine-tuning. • Reduces trainable parameters by 75% with a 1.5x training speedup. • Our paper yields better accuracy on 16 diverse datasets compared to the SOTA works. • Layer selection strategy preserves robust cross-domain generalization.

Keywords

  • partial fine-tuning
  • domain generalization
  • pre-trained language models
  • text generation
  • layer selection
  • parameter-efficient fine-tuning
  • sentence classification
  • transformer layers

CCDS Authors

MD Fahim
Md Fahim

MD Fahim

  • Research Assistant, CCDS

Published at

ACL, EMNLP, ECAI, WACV, LREC, ICPR, BEA, BLP, Information Sciences, Smart Agricultural Technology

Research Interests

Machine Learning, Natural Language Processing

AKM Moshiur Rahman Mazumder
Akm Moshiur Rahman Mazumder

AKM Moshiur Rahman Mazumder

  • Research Assistant, CCDS

Published at

ACL, EMNLP, BLP, Information Sciences

Research Interests

Machine Learning

Amin Ahsan Ali, PhD
Amin Ahsan Ali, PhD

Amin Ahsan Ali, PhD

  • Director, AI/ML Wing

Professor

Department of Computer Science and Engineering

Independent University, Bangladesh

Published at

ACL, CHI, UbiComp, ECCV, IJCAI, ECAI, WACV, IPSN, PAKDD, LREC, IJCNN, ICPR, ICIP, BEA, BLP, ICMLA, Scientific Reports, Scientific Data, Pattern Recognition, Information Sciences, Ad Hoc Networks, Drug and Alcohol Dependence, PLOS ONE

Research Interests

Artificial Intelligence, Machine Learning

AKM Mahbubur Rahman, PhD
AKM Mahbubur Rhman, PhD

AKM Mahbubur Rahman, PhD

  • Director, DS & IPT Wings

Associate Professor

Department of Computer Science and Engineering

Independent University, Bangladesh

Published at

CHI, ECCV, WACV, PAKDD, LREC, IJCNN, ICPR, ICIP, HCII, BEA, Scientific Reports, Information Sciences

References

  1. 1.Uri Cohen, SueYeon Chung, Daniel D. Lee, Haim Sompolinsky. (2020). Separability and geometry of object manifolds in deep neural networks. Nature Communications, 11(1), 746[10.1038/s41467-020-14578-5]
  2. 2.Fengqian Ding, Chen Xu, Han Liu, Bin Zhou, Hongchao Zhou. (2024). Bridging pre-trained models to continual learning: A hypernetwork based framework with parameter-efficient fine-tuning techniques. Information Sciences, 674, 120710[10.1016/j.ins.2024.120710]