Profile

Settings

Loading…

← Papers

Help

FAQ

Which features require signing in?

You can read the commentary, paper info, Model Structure and related papers of public papers without signing in. Sign in to manage your account or contact us about your inquiries.

Can I upload a PDF file?

Upload papers with an arXiv or DOI link; the commentary is public to everyone. Papers whose source and terms of use can't be verified, so the commentary can't be made public, can't be uploaded. Uploading PDF files and keeping papers private are for subscribers only, and a paper uploaded as a file is saved as private only. Searching for official info by title runs only when you press the button.

Are the figures and AI commentary accurate?

Figures come only from the original paper, and only those whose terms of use are verified are shown. The commentary is written by AI and may be wrong. Check important claims, numbers and figure context against the evidence in the original paper.

I want to report a copyright issue.

Terms of use and the source of the original paper are on the Paper info tab. If there's a problem, choose "Paper content, figures and copyright" under Contact us and send the paper link, the part in question, and evidence that you hold the rights. Receiving your report doesn't confirm any rights or remove anything right away. You can see the result of the review under My inquiries.

I forgot my password.

If you signed up with email, use Forgot password in the sign-in window to reset it with your verified email. If you signed up with Google, Naver or Kakao, change your password with that service.

What should I include in an inquiry?

Tell us which screen you were on and what you were doing when the problem happened, along with the paper link. Don't include personal information such as passwords, API keys, verification codes or phone numbers. Inquiries and replies are stored in Refivu and you can see them under My inquiries.

How do I delete my account?

In Settings, under My account, press Delete account. Review what will be deleted and complete identity verification to delete your account. For other requests, choose "Account" under Contact us.

Paper commentary

The Power of Scale for Parameter-Efficient Prompt Tuning

  • Problem Adapting a large frozen language model to many tasks usually means keeping a full tuned copy per task, while prompt design depends on hand-written text and remains well behind tuned models on SuperGLUE.
  • Method Freeze a T5 model and learn a short sequence of soft prompt embeddings per task, prepended to the embedded input and trained by backpropagating the output likelihood, with a language-model-adapted T5 as the frozen base.
  • Results Prompt tuning of T5-XXL matches the multi-task model tuning baseline on SuperGLUE with over 20,000 times fewer task-specific parameters, and a five-prompt ensemble on T5-XXL reaches 91.3 SuperGLUE dev score.

Why adapt a frozen model at all

Large pre-trained models are expensive to share and serve, so being able to reuse one frozen model for several downstream tasks reduces that cost. The dominant alternative, model tuning, updates every parameter for each task, so each task ends up with its own full copy of the model. Prompt design avoids those copies by conditioning a frozen GPT-3 on text, but writing the prompt is error-prone, needs human effort, and is capped by how much text fits in the input.

The gap is large: GPT-3 175B few-shot performance on SuperGLUE is 17.5 points below fine-tuned T5-XXL, 71.8 against 89.3, even though it uses 16 times more parameters.

Automatic search over discrete words narrows the gap to manual prompts but does not close it, and prefix tuning and a masked-language-model variant reduce the trainable parameters further. Figure 2 illustrates the serving consequence: with a T5 XXL model, each tuned copy has 11 billion parameters, while the tuned prompts in the same setting need 20,480 parameters per task at a prompt length of 5 tokens.

How the soft prompt is trained and used

All tasks are cast as text generation, so a classification decision is modeled as generating the sequence Y that represents the class label. Prompt tuning gives the prompt its own parameters \( \theta_P \), and the conditional generation becomes \( Pr_{\theta;\theta_P}(Y|[P;X]) \), trained by maximizing the likelihood of Y while only \( \theta_P \) receives gradient updates.

The input tokens are embedded as \( X_e \in \mathbb{R}^{n\times e} \), the soft prompt is a parameter \( P_e \in \mathbb{R}^{p\times e} \), and the two are concatenated into \( [P_e;X_e] \in \mathbb{R}^{(p+n)\times e} \) before flowing through the encoder-decoder as usual.

The difference from prompt design is where the prompt parameters live: in GPT-3 the prompt tokens are rows of a frozen embedding table, whereas here the prompt is a separate trainable matrix, so the model's own weights stay untouched. The parameter cost of the prompt is \( E \times P \), with E the token embedding dimension and P the prompt length, so shorter prompts need fewer tuned parameters.

Three initialization options are compared: random values, embeddings of tokens sampled from the model vocabulary, and embeddings of the output class labels, which is the default.

Choosing the frozen base: span corruption or LM adaptation

T5 is pre-trained by reconstructing masked spans of text, which are marked with unique sentinel tokens, and the target output lists the masked content separated by sentinels. Raffel et al. find this objective more effective than standard language modeling, but the authors suspect it fits poorly with a frozen model steered by prompts. The authors' reasoning is that T5 never sees natural input without sentinels and never predicts natural targets, and that every pre-training target begins with a sentinel, which the authors expect to be hard to override with a prompt alone because the decoder priors cannot be adjusted.

Three settings are tested: span corruption used as is, span corruption with a sentinel prepended to downstream targets, and LM adaptation, in which T5 continues training for a few steps on a language modeling objective over natural text. LM adaptation is done once, producing a single frozen model that many tasks can reuse, and experiments vary the adaptation length up to 100K steps.

The default configuration uses LM-adapted T5 trained for an additional 100K steps.

SuperGLUE results across model sizes

Each prompt is trained on a single SuperGLUE task, without multi-task mixing, and the eight tasks are reported on the development sets. The baselines are model tuning on each task separately and a multi-task model tuning setup in which one model is trained on all tasks with a task-name prefix.

As model size grows, prompt tuning becomes more competitive with model tuning, as shown in Figure 1.

Running GPT-3's manual text prompts directly on the LM-adapted T5 checkpoints gave results far below GPT-3 at comparable sizes, which the authors attribute partly to differences in pre-training data and architecture.

Prompt length, initialization and pre-training objective

Prompt lengths of 1, 5, 20, 100 and 150 tokens were each tried at every model size, with the other settings held at the default configuration. For most sizes, going beyond a single token is critical, while the XXL model still gives strong results with one token, so the larger the model, the less conditioning it seems to need. Beyond 20 tokens the gains are marginal, and going past 100 tokens appears mildly detrimental for the larger models.

Class-label initialization averages the token embeddings of multi-token labels and falls back to sampled vocabulary when there are more prompt tokens than labels. Class-based initialization performs best at smaller sizes, where the gaps between initializations are large, and the differences disappear at XXL size.

LM adaptation outperforms span corruption at every size, including when a sentinel is added to downstream targets, although the XXL model works well with any of the objectives. Adding a sentinel to the downstream targets gives little benefit, which fits the view that models trained to read and write sentinels are awkward for tasks without them.

Longer adaptation keeps giving gains up to 100K steps, and that 100K-step switch uses about 10% of the steps of the original T5 pre-training.

With span corruption, the mid-sized models were unstable: the Small model beats the larger Base, Large and XL models because those models often never output a legal class label and score 0% on many tasks. Only 2 of the 5 span-corruption models work well, whereas the LM-adapted versions work reliably at every size.

Parameter cost next to prefix tuning and adapters

Figure 4 compares the task-specific parameter counts of model tuning, prefix tuning, WARP, prompt tuning and prompt design across model sizes, with prompt tuning using under 0.01% of parameters for models over a billion parameters. Prompt design needs a sequence of 500 to 2000 prompt IDs, which the paper counts as parameters to match the GPT-3 setting, and it comes at a cost in task quality.

Prefix tuning learns prefixes prepended at every transformer layer, which fixes the activations across examples at each layer, whereas prompt tuning prepends one representation to the embedded input and lets the transformer update intermediate representations for each example. Prefix tuning also depends on a reparameterization that adds many parameters during training, while the prompt tuning configuration here does not need one.

WARP prepends prompt parameters to the input layer but needs a [MASK] token and a learnable output layer, which limits it to a single classification output; prompt tuning needs neither change to the input nor a task-specific head. P-tuning interleaves learnable prompts through the input using hand-designed patterns and needs model tuning to reach strong SuperGLUE results, whereas prompt tuning keeps the language model frozen.

Adapters insert small bottleneck layers between frozen layers and change the function that acts on the representation, whereas prompt tuning leaves that function fixed and adds new input representations.

Zero-shot transfer under domain shift

Keeping the core language model fixed limits how much the model can memorize dataset-specific lexical cues, which suggests why prompt tuning could transfer better across domains.

On SQuAD itself, model tuning reaches 94.9±0.2 and prompt tuning 94.8±0.1, while on TextbookQA model tuning reaches 54.3±3.7 and prompt tuning 66.8±2.9, a 12.5 point F1 gap. Prompt tuning is better on most out-of-domain sets, with larger gains where the domain shift is larger, such as Biomedical in BioASQ and Textbooks in TextbookQA. Model tuning is ahead on DuoRC and DROP, and the authors note that DROP shares its Wikipedia domain with SQuAD.

A second test trains on one paraphrase task and evaluates zero-shot on the other, using QQP and MRPC from GLUE in both directions, with checkpoints selected on in-domain validation. In the other direction the gap is small, with prompt tuning giving a slight accuracy gain (75.4±0.8 against 74.9±1.3) and a slight F1 drop (69.7±0.3 against 70.9±1.2), which the authors read as a sign that model tuning may overfit the training task.

Prompt ensembles on one frozen model

Each full T5-XXL copy takes 42 GiB, and running N distinct models adds inference cost in parallel or in series. With prompt ensembling, N prompts for the same task share the frozen core parameters, and one forward pass with batch size N, replicating the example and varying the prompt, produces the N predictions.

Five prompts are trained for each SuperGLUE task on a single frozen T5-XXL, using the default hyperparameters, and predictions are combined by majority voting. On the SuperGLUE dev set the five-prompt ensemble scores 91.3, against an average of 90.5 for the single prompts and 91.0 for the best single prompt.

Reading learned prompts through their nearest neighbors

For each learned prompt token, the nearest vocabulary embeddings are found by cosine distance, which is the similarity measure used.

With class-label initialization, the label often remains among the nearest neighbors after tuning, and with random or sampled-vocabulary initialization the labels still appear but as neighbors of several prompt tokens. For prompts of length 100, several tokens often share the same nearest neighbors, which the authors read as either spare capacity or the lack of sequential structure in the prompt.

For prompts trained on BoolQ, words such as science, technology and engineering appear frequently among the nearest neighbors, and about 20% of the BoolQ questions fall in the Nature/Science category.

Limitations

The span-corruption setting is unreliable, with only 2 of 5 model sizes working well. Beyond 100 tokens the larger models show mild degradation, and the XXL model's gains from LM adaptation are modest.

The main SuperGLUE results use T5.1.1 checkpoints evaluated on the development sets, and the transfer experiments use SQuAD and two paraphrase pairs, so other tasks and models were not tested. The GPT-3 comparison relies on figures reported by Brown et al., not on a rerun in the same setup. Hyperparameters were set by manual tuning and selected on the SuperGLUE score, with 77 search trials and 195 runs for the main results and ablations.

Paper info

Authors
Brian Lester, Rami Al-Rfou, Noah Constant
Venue
arXiv · Preprint
First published
2021-4-18
Added
2026-10-20
Updated
2021-9-2
Version
v2
arXiv
2104.08691
Category
cs.CL
Original paper terms
arXiv non-exclusive 1.0
What we show
Paper info and commentary

AI commentary is a separate explanation from the original paper and may contain errors. The original paper and figures follow each source's terms of use and any rights noted separately.

Quote from the paper

Brian Lester, Rami Al-Rfou, Noah Constant (2021). The Power of Scale for Parameter-Efficient Prompt Tuning. arXiv:2104.08691v2. https://arxiv.org/abs/2104.08691v2

BibTeX
@misc{lester2021power,
  title = {{The Power of Scale for Parameter-Efficient Prompt Tuning}},
  author = {Brian Lester and Rami Al-Rfou and Noah Constant},
  year = {2021},
  eprint = {2104.08691},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2104.08691v2}
}

See related papersBrowse other papers

Paper preview
Account security

Connect Google account

If you connect a Google account, you can sign in with it too.

Refivu

Delete account

Refivu
Refivu

Sign up