Hidden State Variability of Pretrained Language Models Can Guide Computation Reduction for Transfer Learning
Not on the map. Why?
Abstract (arXiv)
While transferring a pretrained language model, common approaches conventionally attach their task-specific classifiers to the top layer and adapt all the pretrained layers. We investigate whether one could make a task-specific selection on which subset of the layers to adapt and where to place the classifier. The goal is to reduce the computation cost of transfer learning methods (e.g. fine-tuning or adapter-tuning) without sacrificing its performance. We propose to select layers based on the variability of their hidden states given a task-specific corpus. We say a layer is already "well-specialized" in a task if the within-class variability of its hidden states is low relative to the between-class variability. Our variability metric is cheap to compute and doesn't need any training or hyperparameter tuning. It is robust to data imbalance and data scarcity. Extensive experiments on the GLUE benchmark demonstrate that selecting layers based on our metric can yield significantly stronger performance than using the same number of top layers and often match the performance of fine-tuning or adapter-tuning the entire language model.
Key facts. Cited by 13 papers in the map (data through 7 Oct 2026). Builds on 56 of its 68 references that are in the map. First posted on arXiv 18 Oct 2022.
Builds on
56 of 68 references.
References · 56
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
- 2019Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformercited by 14,491
- 2021LoRA: Low-Rank Adaptation of Large Language Modelscited by 14,084
- 2019RoBERTa: A Robustly Optimized BERT Pretraining Approachcited by 13,266
- 2018GLUE: A Multi-Task Benchmark and Analysis Platform for Natural Language Understandingcited by 4,854
- 2019Parameter-Efficient Transfer Learning for NLPcited by 4,195
- 2021Prefix-Tuning: Optimizing Continuous Prompts for Generationcited by 3,878
- 2018Deep contextualized word representationscited by 2,285
- 2019HuggingFace's Transformers: State-of-the-art Natural Language Processingcited by 2,201
- 2020DeBERTa: Decoding-enhanced BERT with Disentangled Attentioncited by 2,157
- 2021BitFit: Simple Parameter-efficient Fine-tuning for Transformer-based Masked Language-modelscited by 1,234
- 2019BERT Rediscovers the Classical NLP Pipelinecited by 1,046
38 more
- 2021Towards a Unified View of Parameter-Efficient Transfer Learningcited by 863
- 2019Analyzing Multi-Head Self-Attention: Specialized Heads Do the Heavy Lifting, the Rest Can Be Prunedcited by 844
- 2021Probing Classifiers: Promises, Shortcomings, and Advancescited by 831
- 2020A Primer in BERTology: What we know about how BERT workscited by 807
- 2020Prevalence of Neural Collapse during the terminal phase of deep learning trainingcited by 713
- 2019Designing and Interpreting Probes with Control Taskscited by 608
- 2019Linguistic Knowledge and Transferability of Contextual Representationscited by 382
- 2021Learning How to Ask: Querying LMs with Mixtures of Soft Promptscited by 376
- 2019KEPLER: A Unified Model for Knowledge Embedding and Pre-trained Language Representationcited by 356
- 2020Parameter-Efficient Transfer Learning with Diff Pruningcited by 351
- 2020DeeBERT: Dynamic Early Exiting for Accelerating BERT Inferencecited by 322
- 2019ERNIE: Enhanced Representation through Knowledge Integrationcited by 301
- 2021Layer-wise Analysis of a Self-supervised Speech Representation Modelcited by 293
- 2020BERT Loses Patience: Fast and Robust Inference with Early Exitcited by 267
- 2020On the Stability of Fine-tuning BERT: Misconceptions, Explanations, and Strong Baselinescited by 254
- 2020Information-Theoretic Probing with Minimum Description Lengthcited by 230
- 2021A Geometric Analysis of Neural Collapse with Unconstrained Featurescited by 226
- 2021WARP: Word-level Adversarial ReProgrammingcited by 220
- 2020Information-Theoretic Probing for Linguistic Structurecited by 204
- 2020Compressing BERT: Studying the Effects of Weight Pruning on Transfer Learningcited by 184
- 2019To Tune or Not to Tune? Adapting Pretrained Representations to Diverse Taskscited by 167
- 2021Exploring Deep Neural Networks via Layer-Peeled Model: Minority Collapse in Imbalanced Trainingcited by 166
- 2016On Deep Multi-View Representation Learning: Objectives and Optimizationcited by 162
- 2021Neural Collapse Under MSE Loss: Proximity to and Dynamics on the Central Pathcited by 156
- 2020Probing the Probing Paradigm: Does Probing Accuracy Entail Task Relevance?cited by 144
- 2020Neural collapse with unconstrained featurescited by 140
- 2019The Bottom-up Evolution of Representations in the Transformer: A Study with Machine Translation and Language Modeling Objectivescited by 139
- 2020On the Effect of Dropping Layers of Pre-trained Transformer Modelscited by 118
- 2020What Happens To BERT Embeddings During Fine-tuning?cited by 113
- 2022Extended Unconstrained Features Model for Exploring Deep Neural Collapsecited by 101
- 2021On the Role of Neural Collapse in Transfer Learningcited by 100
- 2022On the Optimization Landscape of Neural Collapse under MSE Loss: Global Optimality with Unconstrained Featurescited by 97
- 2022Neural Collapse: A Review on Modelling Principles and Generalizationcited by 95
- 2020Traces of Class/Cross-Class Structure Pervade Deep Learning Spectracited by 94
- 2021An Unconstrained Layer-Peeled Perspective on Neural Collapsecited by 87
- 2020Why Do Better Loss Functions Lead to Less Transferable Features?cited by 73
- 2022Limitations of Neural Collapse for Understanding Generalization in Deep Learningcited by 63
- 2022Neural Collapse Inspired Attraction-Repulsion-Balanced Loss for Imbalanced Learningcited by 43
50 most cited of 56 All 56 (JSON)
Built on by
Citing papers per year: 2022: 1; 2023: 9; 2024: 3.
13 papers.
Sort:
- 2022Comparative layer-wise analysis of self-supervised speech modelscited by 155
- 2023Task-Specific Skill Localization in Fine-tuned Language Modelscited by 104
- 2024LLM Internal States Reveal Hallucination Risk Faced With a Querycited by 80
- 2023What Do Self-Supervised Speech Models Know About Words?cited by 62
- 2023Generalized Neural Collapse for a Large Number of Classescited by 39
- 2023A Fast Optimization View: Reformulating Single Layer Attention in LLM Based on Tensor and SVM Trick, and Solving It in Matrix Multiplication Timecited by 30
- 2023GradientCoin: A Peer-to-Peer Decentralized Large Language Modelscited by 23
- 2023The Law of Parsimony in Gradient Descent for Learning Deep Linear Networkscited by 19
- 2023Neural Collapse in Multi-label Learning with Pick-all-label Losscited by 14
- 2023Quantifying the Variability Collapse of Neural Networkscited by 9
- 2023The Expressibility of Polynomial based Attention Schemecited by 7
- 2024Where does In-context Translation Happen in Large Language Modelscited by 1
1 more
- 2024LLM Internal States Reveal Hallucination Risk Faced With a Query3 Jul 2024
- 2024Binary Hypothesis Testing for Softmax Models and Leverage Score Models9 May 2024
- 2024Where does In-context Translation Happen in Large Language Models7 Mar 2024
- 2023The Expressibility of Polynomial based Attention Scheme30 Oct 2023
- 2023Neural Collapse in Multi-label Learning with Pick-all-label Loss24 Oct 2023
- 2023Generalized Neural Collapse for a Large Number of Classes9 Oct 2023
- 2023A Fast Optimization View: Reformulating Single Layer Attention in LLM Based on Tensor and SVM Trick, and Solving It in Matrix Multiplication Time14 Sep 2023
- 2023GradientCoin: A Peer-to-Peer Decentralized Large Language Models21 Aug 2023
- 2023What Do Self-Supervised Speech Models Know About Words?30 Jun 2023
- 2023Quantifying the Variability Collapse of Neural Networks6 Jun 2023
- 2023The Law of Parsimony in Gradient Descent for Learning Deep Linear Networks1 Jun 2023
- 2023Task-Specific Skill Localization in Fine-tuned Language Models13 Feb 2023
1 more
- 2022Comparative layer-wise analysis of self-supervised speech modelscited by 155
- 2023Task-Specific Skill Localization in Fine-tuned Language Modelscited by 104
- 2024LLM Internal States Reveal Hallucination Risk Faced With a Querycited by 80
- 2023What Do Self-Supervised Speech Models Know About Words?cited by 62
- 2023Generalized Neural Collapse for a Large Number of Classescited by 39
- 2023A Fast Optimization View: Reformulating Single Layer Attention in LLM Based on Tensor and SVM Trick, and Solving It in Matrix Multiplication Timecited by 30
- 2023GradientCoin: A Peer-to-Peer Decentralized Large Language Modelscited by 23
- 2023The Law of Parsimony in Gradient Descent for Learning Deep Linear Networkscited by 19
- 2023Neural Collapse in Multi-label Learning with Pick-all-label Losscited by 14
- 2023Quantifying the Variability Collapse of Neural Networkscited by 9
- 2023The Expressibility of Polynomial based Attention Schemecited by 7
- 2024Where does In-context Translation Happen in Large Language Modelscited by 1
12 most cited of 13 All 13 (JSON)
- 2024LLM Internal States Reveal Hallucination Risk Faced With a Query3 Jul 2024
- 2024Binary Hypothesis Testing for Softmax Models and Leverage Score Models9 May 2024
- 2024Where does In-context Translation Happen in Large Language Models7 Mar 2024
- 2023The Expressibility of Polynomial based Attention Scheme30 Oct 2023
- 2023Neural Collapse in Multi-label Learning with Pick-all-label Loss24 Oct 2023
- 2023Generalized Neural Collapse for a Large Number of Classes9 Oct 2023
- 2023A Fast Optimization View: Reformulating Single Layer Attention in LLM Based on Tensor and SVM Trick, and Solving It in Matrix Multiplication Time14 Sep 2023
- 2023GradientCoin: A Peer-to-Peer Decentralized Large Language Models21 Aug 2023
- 2023What Do Self-Supervised Speech Models Know About Words?30 Jun 2023
- 2023Quantifying the Variability Collapse of Neural Networks6 Jun 2023
- 2023The Law of Parsimony in Gradient Descent for Learning Deep Linear Networks1 Jun 2023
- 2023Task-Specific Skill Localization in Fine-tuned Language Models13 Feb 2023
12 newest of 13 All 13 (JSON)