In the rapidly evolving landscape of Large Language Models (LLMs), the standard practice for adapting a model to a new task has shifted from full fine-tuning to parameter-efficient tuning (PET). Methods like P-tuning and Prompt Tuning have become popular because they allow researchers to keep massive underlying models frozen while training only a tiny fraction of new parameters.
However, researchers from The Chinese University of Hong Kong and Tencent AI Lab have proposed a provocative alternative: instead of "prompting" a model to change its behavior, we can simply extract and combine the information already residing in its hidden states. This approach, which operates on frozen Pretrained Language Models (PLMs), achieves performance comparable to state-of-the-art prompt tuning while being significantly faster and more memory-efficient.
The Problem: The Overhead of Prompting
Fine-tuning models like RoBERTa or T5 for every specific task is logistically challenging, requiring the storage of multi-gigabyte model copies for every application. Prompt tuning addresses this by prepending trainable vectors to the input, essentially "tricking" the model into a task-specific state.
This paper identifies a gap in this approach: prompt tuning works by exerting non-linear transformations on hidden states. If those raw hidden states already contain the necessary classification information, prompting might be an unnecessarily complex way to solve the problem. The challenge lies in "mining" this information without adding computational overhead or increasing sequence length.
Proposed Method: Three Trainable Vectors
The authors propose a strikingly simple framework that introduces just three trainable vectors ($v_1, v_2, v_3$) to aggregate a frozen PLM's internal knowledge:
- Layer-Level Weighted Addition ($v_1$): Not all layers are equally useful; some capture syntax while others capture high-level semantics. $v_1$ learns a weight for every layer (including the embedding layer), allowing the system to determine which model depth is most relevant for a specific task.
- Subspace Mining ($v_2$): Hidden states are high-dimensional, and not every dimension is useful for every task. $v_2$ acts as a "soft mask," highlighting specific dimensions (subspaces) that contain task-relevant features like sentiment or logical entailment.
- Self-Attention Aggregation ($v_3$): To convert a sequence of word vectors into a single sentence representation for classification, $v_3$ performs a lightweight self-attention operation.
Crucially, because these operations occur outside the frozen PLM, the model does not process extra prompt tokens, and gradients do not need to flow back through the massive transformer blocks during training.
Experimental Results
The researchers evaluated their method across a diverse battery of classification benchmarks, including sentiment analysis (IMDB, SST), paraphrase detection (MRPC, QQP), and Natural Language Inference (QNLI, RTE, SciTail, CB, BoolQ). They tested these across RoBERTa and BERT architectures.
Efficiency and Accuracy
The proposed method is significantly more efficient than existing PET techniques. It is 2.5x faster to train than P-tuning and uses 60% less GPU memory because it avoids the overhead of processing extra prompt tokens and complex gradient calculations within the PLM.
In terms of accuracy, the method remains highly competitive. On RoBERTa-large, it achieved an average score of 87.44, closely trailing P-tuning v2 (89.33) while vastly outperforming simple average baselines. In few-shot scenarios (64 training samples), the method actually outperformed both P-tuning and P-tuning v2 on several tasks, suggesting its simplicity provides better regularization against overfitting in low-data regimes.
Key Insights
- Surface-Level Information: The results demonstrate that raw hidden states are incredibly rich. A simple linear transformation of aggregated states is often enough to achieve high accuracy without complex "heads" like LSTMs.
- The "Sweet Spot": Visualization of layer weights ($v_1$) revealed that for most tasks, the model relies heavily on middle-to-top layers (e.g., layers 15-18 in a 24-layer model), which strike the best balance for general classification.
- Prompting as a Proxy: The findings suggest that P-tuning may succeed primarily because it eventually forces the model to surface the same information that this method extracts directly.
Limitations and Future Work
While highly efficient, the method shows a slight "reasoning gap" on complex tasks like QQP and QNLI. The authors attribute this to the "read-only" nature of the approach, which prevents deep interaction between task-specific parameters and internal layers. Future research may explore more sophisticated aggregation techniques, such as multi-head attention, to bridge this performance gap without sacrificing efficiency.
Summary updated