Papers
Topics
Authors
Recent
Gemini 2.5 Flash
Gemini 2.5 Flash
102 tokens/sec
GPT-4o
59 tokens/sec
Gemini 2.5 Pro Pro
43 tokens/sec
o3 Pro
6 tokens/sec
GPT-4.1 Pro
50 tokens/sec
DeepSeek R1 via Azure Pro
28 tokens/sec
2000 character limit reached

Hidden State Variability of Pretrained Language Models Can Guide Computation Reduction for Transfer Learning (2210.10041v2)

Published 18 Oct 2022 in cs.CL, cs.AI, and cs.LG

Abstract: While transferring a pretrained LLM, 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 LLM.

User Edit Pencil Streamline Icon: https://streamlinehq.com
Authors (6)
  1. Shuo Xie (6 papers)
  2. Jiahao Qiu (24 papers)
  3. Ankita Pasad (14 papers)
  4. Li Du (72 papers)
  5. Qing Qu (67 papers)
  6. Hongyuan Mei (31 papers)
Citations (15)