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

Xiangyang Liu, Tianxiang Sun, Xuanjing Huang, Xipeng Qiu
10/20/2022
cs.CL
lora-peft-merging

Official code: xyltt/LPT (12 stars, Python, last commit 2025-12-22).

Abstract

Prompt tuning is a parameter-efficient tuning (PETuning) method for utilizing pre-trained models (PTMs) that simply prepends a soft prompt to the input and only optimizes the prompt to adapt PTMs to downstream tasks. Although it is parameter- and deployment-efficient, its performance still lags behind other state-of-the-art PETuning methods.

Show full abstract

Besides, the training cost of prompt tuning is not significantly reduced due to the back-propagation through the entire model. Through empirical analyses, we shed some light on the lagging performance of prompt tuning and recognize a trade-off between the propagation distance from label signals to the inserted prompt and the influence of the prompt on model outputs. Further, we present Late Prompt Tuning (LPT) that inserts a late prompt into an intermediate layer of the PTM instead of the input layer or all layers. The late prompt is obtained by a neural prompt generator conditioned on the hidden states before the prompt insertion layer and therefore is instance-dependent. Through extensive experimental results across various tasks and PTMs, we show that LPT can achieve competitive performance to full model tuning and other PETuning methods under both full-data and few-shot scenarios while possessing faster training speed and lower memory cost.

View on arXivView PDF

Code Implementations(1)

xyltt/LPTOfficial100%

This repo contains the code for Late Prompt Tuning.

123Python, ShellOct 16, 202211 months ago

Similar Papers

Cite this paper

@article{liu2022late,
  title  = {Late Prompt Tuning: A Late Prompt Could Be Better Than Many Prompts},
  author = {Xiangyang Liu and Tianxiang Sun and Xuanjing Huang and Xipeng Qiu},
  year   = {2022},
  eprint = {2210.11292},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2210.11292}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2210.11292.svg)](https://codeofpaper.com/paper/2210.11292)

Discussion