NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Late Prompt Tuning: A Late Prompt Could Be Better Than Many Prompts

Xiangyang Liu, Tianxiang Sun, Xuanjing Huang, Xipeng Qiu

TL;DR

Late Prompt Tuning (LPT) significantly improves parameter-efficient language model adaptation by inserting soft prompts into intermediate layers rather than the input layer. By combining this "late" insertion with an instance-dependent prompt generator, LPT matches or exceeds full fine-tuning performance while doubling training speed and cutting memory usage in half.

What Problem Does This Paper Address?

Prompt tuning has emerged as a popular parameter-efficient tuning (PETuning) method because it keeps the underlying pre-trained model frozen and only optimizes a small set of continuous prompt vectors prepended to the input. However, it historically suffers from two major flaws: it underperforms compared to other methods like LoRA or Adapters, and it doesn't actually save much training time because gradients must still backpropagate through the entire depth of the model to reach the input layer.

The authors investigate why traditional prompt tuning performs poorly. They discover a fundamental trade-off: when prompts are placed at the input layer, they have a long distance to travel to interact with the final label signals, causing vital task-related information to degrade during backpropagation. Conversely, if prompts are placed too late, they don't interact enough with the input text to influence the model's output.

Methods

To balance this trade-off, the authors introduce Late Prompt Tuning (LPT). Instead of placing prompts at the input layer, LPT inserts them at an optimal intermediate layer (termed the prompt layer). Crucially, because the model parameters below the prompt layer are frozen and receive no gradients, training speed increases and memory consumption drops significantly.

An illustration of LPT architecture and its prompt generators.

LPT also moves away from static, dataset-wide prompts by introducing Instance-Aware Prompt Generation. It uses a lightweight Prompt Generator (PG) to dynamically create a unique prompt for each input, conditioned on the hidden states of the layer immediately preceding the prompt layer. The authors propose two types of prompt generators:

  1. Naive Prompt Generator (NPG): A simple bottleneck feed-forward network that generates the prompt based solely on the hidden state of the [CLS] token.
  2. Pooling Prompt Generator (PPG): A more advanced variant that applies Average Pooling (APPG) or Max Pooling (MPPG) across the entire sequence length before projecting it. This preserves richer contextual information and scales better when longer prompts are required.

Datasets

The authors evaluated LPT across 10 diverse text classification tasks:

  • GLUE Benchmark: SST-2, MNLI, MRPC, QNLI, QQP, and RTE.
  • Other Popular Benchmarks: MPQA (opinion polarity), MR (sentiment), Subj (subjectivity), and TREC (question classification).

Experiments were conducted in both full-data settings and highly constrained few-shot settings (100 and 500 training samples).

Key Insights and Ideas

  • The "Sweet Spot" for Prompts: Through pilot experiments, the authors found that the middle layers of a network (e.g., layer 13 out of 24 in RoBERTa-large) represent an ideal compromise. It shortens the propagation path for label signals while retaining enough subsequent layers for the prompt to deeply influence the model's final representations.
  • Leveraging Intermediate Context: Generating prompts from intermediate hidden states is highly effective because the lower layers of the pre-trained model have already done the heavy lifting of parsing basic syntax and semantics. The prompt generator simply refines this representation for the downstream task.
  • Instance-Awareness Prevents Performance Collapse: As prompts are moved to later layers, static prompts quickly lose their effectiveness. Dynamically generating the prompt based on the input sequence allows the model to maintain high performance even when inserted deep within the network.

Key Results

  • Few-Shot Superiority: In the extreme few-shot scenario (only 100 training samples), LPT with NPG outperformed traditional prompt tuning by 12.4 points and full model tuning by 5.0 points on average across all 10 tasks.
Figure 1: Overall comparison between LPT and base- lines of only 100 training samples for each task. All methods are evaluated on 10 text classification tasks using RoBERTaLARGE. The radius of every circle in- dicates training speed (tokens per millisecond). LPT w/ NPG and LPT w/o PG represent LPT with naive prompt generator and without prompt generator, respectively. The details can be found in Section 5.
  • Substantial Efficiency Gains: When evaluated on RoBERTa-large, LPT achieved a 2.0× training speedup and reduced memory consumption by 56.6% compared to full model tuning.
  • Cross-Model Versatility: The architecture-agnostic nature of LPT was validated across three distinct pre-trained models—RoBERTa-large, DeBERTa-large, and GPT2-large—showing consistent improvements over standard prompt tuning in every case.

Limitations and Future Work

While LPT demonstrates impressive efficiency and performance gains, the authors note a few limitations:

  • Model Scale: The experiments were bounded to large-scale models up to approximately 774 million parameters (GPT2-large). LPT has not yet been tested on massive, billion-plus parameter Large Language Models (LLMs).
  • Task Variety: The evaluation focused exclusively on Natural Language Understanding (NLU) text classification tasks. The authors leave the exploration of LPT on Natural Language Generation (NLG) tasks for future work.

Summary updated

BibTeX
@inproceedings{liu2022late,
  author = {Xiangyang Liu and Tianxiang Sun and Xuanjing Huang and Xipeng Qiu},
  title = {{Late Prompt Tuning: A Late Prompt Could Be Better Than Many Prompts}},
  booktitle = {Conference on Empirical Methods in Natural Language Processing},
  year = {2022},
  doi = {10.18653/v1/2022.findings-emnlp.95},
}
Figure