The Power of Scale for Parameter-Efficient Prompt Tuning cover

The Power of Scale for Parameter-Efficient Prompt Tuning

Brian Lester$^*$ Rami Al-Rfou Noah Constant
Google Research
{brianlester,rmyeid,nconstant}@google.com

$^*$ Work done as a Google AI Resident.

Abstract

In this work, we explore "prompt tuning," a simple yet effective mechanism for learning "soft prompts" to condition frozen language models to perform specific downstream tasks. Unlike the discrete text prompts used by GPT-3, soft prompts are learned through back-propagation and can be tuned to incorporate signals from any number of labeled examples. Our end-to-end learned approach outperforms GPT-3's few-shot learning by a large margin. More remarkably, through ablations on model size using T5, we show that prompt tuning becomes more competitive with scale: as models exceed billions of parameters, our method "closes the gap" and matches the strong performance of model tuning (where all model weights are tuned). This finding is especially relevant because large models are costly to share and serve and the ability to reuse one frozen model for multiple downstream tasks can ease this burden. Our method can be seen as a simplification of the recently proposed "prefix tuning" of Li and Liang (2021) and we provide a comparison to this and other similar approaches. Finally, we show that conditioning a frozen model with soft prompts confers benefits in robustness to domain transfer and enables efficient "prompt ensembling."

Executive Summary: Prompt tuning is a lightweight way to adapt very large language models to new tasks without changing any of the model’s original weights. Instead of updating billions of parameters, the method learns a small set of continuous “soft prompt” vectors (typically 5–100 tokens) that are prepended to the input. These vectors are optimized end-to-end on labeled data while the underlying model stays frozen. The approach was tested on the T5 family of models ranging from 60 million to 11 billion parameters, using the SuperGLUE benchmark as the primary evaluation.

The central finding is that prompt tuning becomes competitive with full model tuning once models reach several billion parameters. At the 11-billion-parameter scale, a prompt-tuned T5-XXL model matches or slightly exceeds both single-task and multi-task model tuning on SuperGLUE, despite using roughly 20,000 task-specific parameters instead of 11 billion. The same prompt-tuned models also outperform GPT-3’s few-shot prompting by a wide margin: a prompt-tuned T5-Large model surpasses GPT-3 175B even though it is more than 200 times smaller. Ablation studies show that larger models are markedly more robust to prompt length, initialization, and pre-training objective; even a single-token prompt yields strong results at the largest scale.

A second practical advantage is improved robustness under domain shift. When models are trained on SQuAD and evaluated on out-of-domain question-answering sets, prompt tuning outperforms full model tuning on five of seven transfer datasets, with the largest gains (more than 12 F1 points) on the most distant domains. Prompt ensembling—training several prompts on the same task and combining their predictions—further improves accuracy while requiring only a single forward pass through the shared model.

These results matter because storage and serving costs scale linearly with the number of tasks when every task needs its own copy of a multi-billion-parameter model. Prompt tuning reduces that overhead by more than five orders of magnitude while preserving or improving quality and generalization. The main limitations are that experiments focus on English classification and reading-comprehension tasks and that performance still depends on a modest amount of task-specific labeled data. Larger-scale tests on generative tasks and additional languages would increase confidence in broader applicability.

1. Introduction

Section Summary: Recent advances in large language models have relied mainly on model tuning, which adapts a pre-trained model to each new task by updating all its parameters and thus requires storing a separate full copy for every task. An alternative approach called prompt design keeps the model frozen and steers it with text examples, but this method depends on human effort, is limited by input length, and falls short in accuracy compared with full tuning. The paper introduces prompt tuning, a simpler technique that freezes the entire model and instead learns only a small set of task-specific “soft prompt” tokens prepended to the input; at large scales this matches the quality of model tuning while using orders of magnitude fewer parameters per task and enabling easier serving, domain-shift robustness, and prompt ensembling.

With the wide success of pre-trained large language models, a range of techniques has arisen to adapt these general-purpose models to downstream tasks. ELMo [1] proposed freezing the pre-trained model and learning a task-specific weighting of its per-layer representations. However, since GPT [2] and BERT [3], the dominant adaptation technique has been model tuning (or "fine-tuning"), where all model parameters are tuned during adaptation, as proposed by [4].

**Figure 1:** Standard **model tuning** of T5 achieves strong performance, but requires storing separate copies of the model for each end task. Our **prompt tuning** of T5 matches the quality of model tuning as size increases, while enabling the reuse of a single frozen model for all tasks. Our approach significantly outperforms few-shot **prompt design** using GPT-3. We show mean and standard deviation across $3$ runs for tuning methods.{width=70%}

More recently, [5] showed that prompt design (or "priming") is surprisingly effective at modulating a frozen GPT-3 model's behavior through text prompts. Prompts are typically composed of a task description and/or several canonical examples. This return to "freezing" pre-trained models is appealing, especially as model size continues to increase. Rather than requiring a separate copy of the model for each downstream task, a single generalist model can simultaneously serve many different tasks.

**Figure 2:** **Model tuning** requires making a task-specific copy of the entire pre-trained model for each downstream task and inference must be performed in separate batches. **Prompt tuning** only requires storing a small task-specific prompt for each task, and enables mixed-task inference using the original pre-trained model. With a T5 "XXL" model, each copy of the tuned model requires $11$ billion parameters. By contrast, our tuned prompts would only require $20{,}480$ parameters per task—a reduction of *over five orders of magnitude*—assuming a prompt length of $5$ tokens.{width=70%}

Unfortunately, prompt-based adaptation has several key drawbacks. Task description is error-prone and requires human involvement, and the effectiveness of a prompt is limited by how much conditioning text can fit into the model's input. As a result, downstream task quality still lags far behind that of tuned models. For instance, GPT-3 175B few-shot performance on SuperGLUE is $17.5$ points below fine-tuned T5-XXL [6] ($71.8$ vs. $89.3$) despite using $16$ times more parameters.

Several efforts to automate prompt design have been recently proposed. [7] propose a search algorithm over the discrete space of words, guided by the downstream application training data. While this technique outperforms manual prompt design, there is still a gap relative to model tuning.

[8] propose "prefix tuning" and show strong results on generative tasks. This method freezes the model parameters and backpropagates the error during tuning to prefix activations prepended to each layer in the encoder stack, including the input layer. [9] simplify this recipe by restricting the trainable parameters to the input and output sub-networks of a masked language model, and show reasonable results on classifications tasks.

In this paper, we propose prompt tuning as a further simplification for adapting language models. We freeze the entire pre-trained model and only allow an additional $k$ tunable tokens per downstream task to be prepended to the input text. This "soft prompt" is trained end-to-end and can condense the signal from a full labeled dataset, allowing our method to outperform few-shot prompts and close the quality gap with model tuning (Figure 1). At the same time, since a single pre-trained model is recycled for all downstream tasks, we retain the efficient serving benefits of frozen models (Figure 2).

While we developed our method concurrently with [8] and [9], we are the first to show that prompt tuning alone (with no intermediate-layer prefixes or task-specific output layers) is sufficient to be competitive with model tuning. Through detailed experiments in Section 2–Section 3, we demonstrate that language model capacity is a key ingredient for these approaches to succeed. As Figure 1 shows, prompt tuning becomes more competitive with scale.

We compare with similar approaches in Section 4. Explicitly separating task-specific parameters from the "generalist" parameters needed for general language-understanding has a range of additional benefits. We show in Section 5 that by capturing the task definition in the prompt while keeping the generalist parameters fixed, we are able to achieve better resilience to domain shifts. In Section 6, we show that "prompt ensembling", learning multiple prompts for the same task, can boost quality and is more efficient than classic model ensembling. Finally, in Section 7, we investigate the interpretability of our learned soft prompts. In sum, our key contributions are:

  1. Proposing prompt tuning and showing its competitiveness with model tuning in the regime of large language models.
  2. Ablating many design choices, and showing quality and robustness improve with scale.
  3. Showing prompt tuning outperforms model tuning on domain shift problems.
  4. Proposing "prompt ensembling" and showing its effectiveness.

2. Prompt Tuning

Section Summary: Prompt tuning adapts a frozen T5 model for new tasks by learning a small set of dedicated parameters that represent a short sequence of "soft prompt" embeddings. These embeddings are prepended to the input and updated through gradient descent while the rest of the model's weights remain fixed, turning the original text-generation process into a conditional one that maximizes the likelihood of the desired output sequence. The approach also explores different ways to initialize the prompt vectors and briefly continues pretraining with a language-modeling objective to make the frozen model more responsive to such prompts.

Following the "text-to-text" approach of T5 [6], we cast all tasks as text generation. Instead of modeling classification as the probability of an output class given some input, $\Pr(y|X)$, where $X$ is a series of tokens and $y$ is a single class label, we now model it as conditional generation, where $Y$ is a sequence of tokens that represent a class label. T5 models classification as $\Pr_{\theta}(Y | X)$, parameterized by the weights, $\theta$, of the transformers [10] that make up its encoder and decoder.

Prompting is the approach of adding extra information for the model to condition on during its generation of $Y$. Normally, prompting is done by prepending a series of tokens, $P$, to the input $X$, such that the model maximizes the likelihood of the correct $Y$, $\Pr_{\theta}(Y|[P;X])$, while keeping the model parameters, $\theta$, fixed. In GPT-3, the representations of the prompt tokens, $P = {p_1, p_2, \dots, p_n}$, are part of the model's embedding table, parameterized by the frozen $\theta$. Finding an optimal prompt thus requires the selection of prompt tokens, through either manual search or non-differentiable search methods [11, 7]. Prompt tuning removes the restriction that the prompt $P$ be parameterized by $\theta$; instead the prompt has its own dedicated parameters, $\theta_P$, that can be updated. While prompt design involves selecting prompt tokens from a fixed vocabulary of frozen embeddings, prompt tuning can be thought of as using a fixed prompt of special tokens, where only the embeddings of these prompt tokens can be updated. Our new conditional generation is now $\Pr_{\theta;\theta_P}(Y | [P;X])$ and can be trained by maximizing the likelihood of $Y$ via backpropagation, while only applying gradient updates to $\theta_P$.

Given a series of $n$ tokens, ${x_1, x_2, \dots, x_n}$, the first thing T5 does is embed the tokens, forming a matrix $X_e \in \mathbb{R}^{n \times e}$ where $e$ is the dimension of the embedding space. Our soft-prompts are represented as a parameter $P_e \in \mathbb{R}^{p \times e}$, where $p$ is the length of the prompt. Our prompt is then concatenated to the embedded input forming a single matrix $[P_e;X_e] \in \mathbb{R}^{(p+n)\times e}$ which then flows though the encoder-decoder as normal. Our models are trained to maximize the probability of $Y$, but only the prompt parameters $P_e$ are updated.

2.1 Design Decisions

There are many possible ways to initialize the prompt representations. The simplest is to train from scratch, using random initialization. A more sophisticated option is to initialize each prompt token to an embedding drawn from the model's vocabulary. Conceptually, our soft-prompt modulates the frozen network's behavior in the same way as text preceding the input, so it follows that a word-like representation might serve as a good initialization spot. For classification tasks, a third option is to initialize the prompt with embeddings that enumerate the output classes, similar to the "verbalizers" of [12]. Since we want the model to produce these tokens in the output, initializing the prompt with the embeddings of the valid target tokens should prime the model to restrict its output to the legal output classes.

Another design consideration is the length of the prompt. The parameter cost of our method is $EP$, where $E$ is the token embedding dimension and $P$ is the prompt length. The shorter the prompt, the fewer new parameters must be tuned, so we aim to find a minimal length that still performs well.

2.2 Unlearning Span Corruption

Unlike autoregressive language models like GPT-3, the T5 models we experiment with use an encoder-decoder architecture and pre-train on a span corruption objective. Specifically, T5 is tasked with "reconstructing" masked spans in the input text, which are marked with unique sentinel tokens. The target output text consists of all the masked content, separated by sentinels, plus a final sentinel. For instance, from the text "Thank you for inviting me to your party last week" we might construct a pre-training example where the input is "Thank you $\langle$ X $\rangle$ me to your party $\langle$ Y $\rangle$ week" and the target output is " $\langle$ X $\rangle$ for inviting $\langle$ Y $\rangle$ last $\langle$ Z $\rangle$ ".

While [6] find this architecture and pre-training objective more effective than traditional language modeling, we hypothesize that this setup is not a good fit for producing a frozen model that can be readily controlled through prompt tuning. In particular, a T5 model pre-trained exclusively on span corruption, such as T5.1.1, has never seen truly natural input text (free of sentinel tokens), nor has it ever been asked to predict truly natural targets. In fact, due to the details of T5's span corruption preprocessing, every pre-training target will begin with a sentinel. While this "unnatural" tendency to output sentinels is easy to overcome through fine-tuning, we suspect that it would be much harder to override through a prompt alone, as the decoder priors cannot be adjusted.

Given these concerns, we experiment with T5 models in three settings. (1) "Span Corruption": We use pre-trained T5 off-the-shelf as our frozen model, and test its ability to output the expected text for downstream tasks. (2) "Span Corruption + Sentinel": We use the same model, but prepend all downstream targets with a sentinel, so as to more closely resemble the targets seen in pre-training. (3) "LM Adaptation": We continue T5's self-supervised training for a small number of additional steps, but using the "LM" objective discussed by [6]; given a natural text prefix as input, the model must produce the natural text continuation as output. Crucially, this adaptation happens only once, producing a single frozen model that we can reuse for prompt tuning across any number of downstream tasks.

Through LM adaptation, we hope to "quickly" transform T5 into a model more similar to GPT-3, which always outputs realistic text, and is known to respond well to prompts as a "few-shot learner". It is not obvious how successful this late-stage transformation will be compared to pre-training from scratch, and it has not been investigated previously to our knowledge. As such, we experiment with various lengths of adaptation up to 100K steps.

**Figure 3:** Ablations of various hyperparameters on prompt tuning performance (mean and stddev across $3$ runs). In our "default" () configuration, quality improves stably with model size. Across all ablations, *the largest (XXL) model is the most robust to hyperparameter choice*. a **Prompt length**: Increasing to $20$ + tokens generally confers a large boost, but XXL performs well even with single-token prompts. b **Prompt initialization**: Random uniform initialization lags behind more "advanced" initializations using sampled vocabulary or class label embeddings, but the difference vanishes at XXL size. c **Pre-training objective**: LM adaptation outperforms span corruption, even when a sentinel is added to downstream task targets, but XXL works well with any method. d **LM adaptation**: Longer adaptation generally gives larger gains, but XXL is robust to even short adaptation.{width=70%}

3. Results

Section Summary: The experiments apply prompt tuning to frozen T5 models of increasing size on the eight SuperGLUE language-understanding tasks, training only a short sequence of task-specific input tokens for 30,000 steps while leaving the rest of the network unchanged. At the largest scale, this approach matches the accuracy of full model tuning—including a stronger multi-task baseline—while using over 20,000 times fewer trainable parameters per task, and it substantially outperforms GPT-3’s few-shot prompting despite far smaller model sizes. Ablation results further show that longer prompts mainly benefit smaller models, that initializing prompts with class-label embeddings works best, and that very large models can achieve strong performance even with a single prompt token.

Our frozen models are built on top of pre-trained T5 checkpoints of all sizes (Small, Base, Large, XL, XXL). We leverage the public T5.1.1 checkpoints, which include improvements over the original T5.[^1]

[^1]: These improvements are (1) the removal of all supervised data from pre-training, (2) adjustments to hyperparameters $d_{\text{model}}$ and $d_{f!f}$, and (3) the use of GeGLU [13] over ReLU [14] activations.

Our "default" configuration, plotted with a green ` $\times$ ' () throughout, uses an LM-adapted version of T5 trained for an additional 100K steps, initializes using class labels (see Section 3.2), and uses a prompt length of $100$ tokens. While this is longer than the default 10-token prefix used by [8], our method still uses fewer task-specific parameters, as we only tune the input layer, as opposed to overwriting activations in all network layers. See Figure 4 for a detailed comparison. We will also see shortly that even much shorter prompts are viable as model size increases.

We measure performance on the SuperGLUE benchmark [15], a collection of eight challenging English language understanding tasks.[^2] We report metrics on the development set associated with each dataset.

[^2]: The tasks are BoolQ [16], CB [17], COPA [18], MultiRC [19], ReCoRD [20], RTE [21, 22, 23, 24], WiC [25], and WSC [26].

Each of our prompts train on a single SuperGLUE task; there was no multi-task setup or mixing of training data across tasks. We translate each SuperGLUE dataset into a text-to-text format following [6], except that we omit the task names prepended to inputs indicating which SuperGLUE task an example belongs to.

We train our prompts for $30{,}000$ steps using T5's standard cross-entropy loss, with a constant learning rate of $0.3$ and a batch size of $32$. Checkpoints are selected via early stopping on the development set, where the stopping metric is the default metric for the dataset, or the average of metrics for datasets evaluated with multiple metrics. All experiments were run in JAX [27] using the Adafactor optimizer [28] with weight decay $1e{-5}$, $\beta_2$ decay $0.8$, and parameter scaling off. The models were implemented in Flax [29]. More details are available in Appendix A.

3.1 Closing the Gap

To compare our method with standard model tuning, we tune the public T5.1.1 checkpoints on SuperGLUE using the default hyperparameters specified in the T5 library (learning rate $0.001$, and Adafactor optimizer with pre-training parameter states restored). We consider two baselines. (1) "Model Tuning": For an apples-to-apples comparison, we tune on each task separately, as in our prompt tuning setup.[^3] (2) "Model Tuning (Multi-task)": We use T5's multi-task tuning setup to achieve a more competitive baseline.[^4] In this case, a single model is tuned on all tasks jointly, with a text prefix indicating the task name.

[^3]: To improve this baseline, we performed a sweep over the batch size hyperparameter and selected $2^{16}$ tokens per batch.

[^4]: The T5 SuperGLUE submission used a more complex setup, first mixing multi-task supervised data into pre-training, and then performing single-task fine-tuning. Since we use T5.1.1 throughout, this setup is unavailable, as the pre-training phase is fully self-supervised. We follow [6] in using $2^{20}$ tokens per batch and including DPR data in the multi-task mixture, which is known to boost WSC task performance [30].

In Figure 1 (p. 1), we see that prompt tuning becomes more competitive with model tuning as scale increases. At the XXL size (11 billion parameters), prompt tuning matches even the stronger multi-task model tuning baseline, despite having over $20{,}000$ times fewer task-specific parameters.

To compare with prompt design, we include GPT-3 few-shot performance on the SuperGLUE dev split, as reported by [5].[^5] Figure 1 shows that prompt tuning beats GPT-3 prompt design by a large margin, with prompt-tuned T5-Small matching GPT-3 XL (over $16$ times larger), and prompt-tuned T5-Large beating GPT-3 175B (over $220$ times larger).

[^5]: We also experimented with using GPT-3's manual text prompts directly with our LM-adapted T5 checkpoints. However performance was far below GPT-3 for comparable model sizes. This may be due to differences in pre-training data and model architecture, as well as T5's shorter sequence length.

3.2 Ablation Study

Prompt Length

We train prompts for each model size while varying the prompt length in ${1, 5, 20, 100, 150}$ and fixing other settings to our default configuration. Figure 3a shows that for most model sizes, increasing prompt length beyond a single token is critical to achieve good performance. Notably, the XXL model still gives strong results with a single-token prompt, suggesting that the larger the model, the less conditioning signal is needed to achieve a target behavior. Across all models, increasing beyond $20$ tokens only yields marginal gains.[^6]

[^6]: Going past $100$ tokens appears mildly detrimental for larger models. A similar pattern of diminishing performance past a certain prefix length is observed by [8].

Prompt Initialization

We ablate the effect of prompt initialization by training models at all sizes while fixing other hyperparameters to their default values. For random initialization, we sample uniformly from the range [$-0.5$, $0.5$]. When initializing from sampled vocabulary, we restrict to the $5{,}000$ most "common" tokens in T5's SentencePiece vocabulary [31], which is ordered by likelihood in the pre-training corpus. For "class label" initialization, we take the embeddings for the string representations of each class in the downstream task and use them to initialize one of the tokens in the prompt. When a class label is multi-token, we average the token embeddings. At longer prompt lengths, we often run out of class labels before we have initialized all of the prompt tokens. In this case we fall back to our sampled vocab strategy to fill in the prompt.[^7]

[^7]: T5's handling of the ReCoRD and WSC tasks requires the model to generate short, free-form text. In these cases, we initialize the prompts with words related to the task: commonsense, reasoning, reading, and comprehension for ReCoRD and commonsense, pronoun, and resolution for WSC.

Figure 3b shows our ablation of initialization strategy across model sizes, where we find that the class based initialization performs best. At smaller model sizes, there are large gaps between the different initializations, but once the model is scaled to XXL size, those differences disappear.

With "class label" initialization, we observe that the class labels typically persist in the learned prompts, such that the nearest token embeddings (in cosine distance) match the tokens used for initialization. Beyond this, we did not find our learned prompts to be interpretable, similar to those of [7]. See Section 7 for details.

Pre-training Objective

In Figure 3c and Figure 3d, we see pre-training objective has a clear effect on prompt tuning quality. As hypothesized in Section 2.2, T5's default "span corruption" objective is not well-suited for training frozen models to be later conditioned by prompts. Intuitively, models pre-trained to read and write sentinel tokens are hard to apply directly to tasks of reading and writing text without sentinels. As seen in Figure 3c, even the "workaround" of adding a sentinel to the downstream targets has little benefit. While LM adaptation adds value across all model sizes, we note our largest XXL model is the most forgiving and gives strong results even with span corruption.

Given the benefit of LM adaptation, we also explore how long of an adaptation is helpful. Figure 3d shows that longer adaptation provides additional gains, up to $100$ K steps. This suggests that the "transition" from span corruption to a language modeling objective is not a trivial change, and making an effective switch takes an investment of training resources ($10$ % of the steps of the original T5 pre-training). At the same time, as in our other ablations, we observe that the XXL model is robust to even non-ideal configurations. At this size, the gains from adaptation are quite modest.

In the non-optimal "span corruption" setting, we observe instability across model sizes, with the Small model outperforming the larger Base, Large, and XL models. On inspection, we find that for many tasks, these mid-sized models never learn to output a legal class label and thus score 0%. The two most common error modes are copying sub-spans from the input and predicting an empty string. Furthermore, this poor performance is not due to random variance in prompt tuning, as we observe low variance across $3$ runs for each size. These results indicate that using models pre-trained with the "span corruption" objective can be unreliable, with only $2$ out of $5$ models working well, whereas the LM adapated versions work reliably across all model sizes.

We have released T5 1.1 checkpoints adapted using the LM objective for $100$ K steps for all model sizes.^8

4. Comparison to Similar Approaches

Section Summary: This section compares prompt tuning to related methods for adapting large language models with few task-specific parameters, such as prefix tuning, WARP, and P-tuning. It emphasizes that prompt tuning is the most efficient of these, using under 0.01% extra parameters for models over a billion parameters by tuning only a short prepended prompt while freezing the rest of the model. Other techniques often require more parameters, extra model modifications like reparameterization or task-specific heads, or even partial updates to the core model itself to reach comparable results.

**Figure 4:** Parameter usage of various adaptation techniques, fixing architecture to T5.1.1 and prompt/prefix length to $1$ – $100$ tokens (bands show mean and stddev). **Model Tuning**: All parameters are task-specific. **Prefix Tuning**: Activations are tuned in the prefix of each layer, requiring $0.1$ – $1$ % task-specific parameters for inference, but more are used for training. **WARP**: Task parameters are reduced to under $0.1$ % by only tuning input and output layers. **Prompt Tuning**: Only prompt embeddings are tuned, reaching under $0.01$ % for most model sizes. **Prompt Design**: Only a sequence of prompt IDs ($500$ – $2000$ tokens) is required.{width=70%}

In this section, we review recent work on learning continuous prompts, and draw comparisons with our method. One important axis of comparison is the number of task-specific parameters each method requires, as shown in Figure 4. Among methods with learnable parameters, prompt tuning is the most parameter efficient, requiring less than $0.01$ % task-specific parameters for models over a billion parameters.[^9]

[^9]: To compare with prompt design, we count each token ID in the prompt as a parameter, and assume a prompt of between $500$ – $2000$ tokens to match the GPT-3 setting. While this technique is by far the most parameter efficient, it comes at the cost of task quality.

[8] propose "prefix tuning": learning a sequence of prefixes that are prepended at every transformer layer. This is akin to learning transformer activations that are fixed across examples at every network layer. In contrast, prompt tuning uses a single prompt representation that is prepended to the embedded input. Beyond requiring fewer parameters, our approach allows the transformer to update the intermediate-layer task representations, as contextualized by an input example. Their work builds on GPT-2 [32] and BART [33], while ours focuses on T5 and examines changes in performance and robustness to design choices as model size increases. When using BART, prefix tuning includes prefixes on both the encoder and decoder network, while prompt tuning only requires prompts on the encoder. [8] also rely on a reparameterization of the prefix to stabilize learning, which adds a large number of parameters during training, whereas our configuration does not require this reparameterization and is robust across SuperGLUE tasks and model sizes.

[9] propose "WARP", where prompt parameters are added to the input layer. This method works with masked language models, relying on a [MASK] token and a learnable output layer to project the mask to class logits. This formulation restricts the model to producing a single output, limiting it to classification. Prompt tuning does not require any changes to the input or a task-specific head. The performance of prompt tuning is also considerably closer to the strong performance of model tuning.

[34] propose "P-tuning" where learnable continuous prompts are interleaved throughout the embedded input, using patterns based on human design. Our approach removes this complication by simply prepending the prompt to the input. To achieve strong SuperGLUE results, P-tuning has to be used in conjunction with model tuning, that is, models jointly update both the prompt and the main model parameters, whereas our approach keeps the original language model frozen.[^10]

[^10]: As another difference, P-tuning requires the addition of "anchor" tokens in the input (e.g. a question mark following the hypothesis in the RTE task) to achieve strong performance, while prompt tuning leaves inputs untouched.

[35] use "soft words" to learn prompts to extract knowledge from pre-trained LMs. Prompts are positioned in relation to the input based on hand-designed prompt prototypes, and a learned $\Delta_i^{\ell}$ parameter is included for each layer, so parameter cost scales with model depth.

[36] use a learnable prepended token to adapt transformer models to various tasks, but focus on small synthetic datasets designed to accommodate a compositional task representation, as opposed to larger real-world datasets. Their base models are small transformers trained from scratch jointly with the task representations, whereas we keep the base model frozen and investigate scaling laws using larger transformers.

More generally, work on task prompts is closely aligned with work on "adapters" [37, 38], small bottleneck layers inserted between frozen pre-trained network layers. Adapters offer another means of reducing task-specific parameters, with [38] achieving GLUE performance close to full model tuning when freezing BERT-Large and only adding $2$ – $4$ % additional parameters. [39] use multiple adapters in a multilingual context to explicitly separate language understanding from task specification, similar to our approach. A core difference between adapters and prompt tuning is how the approaches change model behavior. Adapters modify the actual function that acts on the input representation, parameterized by the neural network, by allowing the rewriting of activations at any given layer. Prompt tuning modifies behavior by leaving the function fixed and adding new input representations that can affect how subsequent input is processed.

5. Resilience to Domain Shift

Section Summary: Prompt tuning keeps the underlying language model frozen, so the model cannot memorize dataset-specific quirks or spurious patterns that would hurt performance when inputs come from a new domain. Experiments show this leads to stronger zero-shot results: models trained on SQuAD via prompt tuning outperform fully tuned models on most out-of-domain QA sets, with especially large gains on distant topics like textbooks or biomedicine. Similar advantages appear when transferring between paraphrase-detection tasks, supporting the idea that lightweight prompt updates generalize better than updating every model parameter.

::: {caption="Table 1: F1 mean and stddev for models trained on SQuAD and evaluated on out-of-domain datasets from the MRQA 2019 shared task. Prompt tuning tends to give stronger zero-shot performance than model tuning, especially on datasets with large domain shifts like TextbookQA."}

{width=60%}

:::

By freezing the core language model parameters, prompt tuning prevents the model from modifying its general understanding of language. Instead, prompt representations indirectly modulate the representation of the input. This reduces the model's ability to overfit to a dataset by memorizing specific lexical cues and spurious correlations. This restriction suggests that prompt tuning may improve robustness to domain shifts, where the distribution of inputs differs between training and evaluation.

We investigate zero-shot domain transfer on two tasks: question answering (QA) and paraphrase detection. For question answering, we use the MRQA 2019 shared task on generalization [40]. This task collects extractive QA datasets in a unified format and tests how models trained on "in-domain" datasets perform when evaluated on "out-of-domain" datasets. For our experiments, we train on SQuAD [41] and evaluate on each of the out-of-domain datasets.[^11]

[^11]: We select checkpoints based on SQuAD validation F1. The out-of-domain datasets are TextbookQA [42], RACE [43], BioASQ (http://bioasq.org/), RE [44], DuoRC [45], and DROP [46].

Table 1 shows that prompt tuning outperforms model tuning on the majority of out-of-domain datasets, with a remarkable $12.5$ point F1 gap between the two approaches on TextbookQA. We observe larger gains from prompt tuning in cases of larger domain shifts (e.g. to Biomedical in BioASQ or to Textbooks in TextbookQA). Of the datasets where model tuning is better, we see that DROP shares a domain (Wikipedia) with SQuAD and is thus one of the smallest domain transfers.

As a second test of robustness to domain shift, we explore transfer between two paraphrase detection tasks from GLUE [47]. The first task is QQP [48], which asks if two questions from the community Q&A site Quora are "duplicates". The second task is MRPC [49], which asks if two sentences drawn from news articles are paraphrases. We test transfer in both directions (QQP $\Leftrightarrow$ MRPC). As before, we train on the "in-domain" task, select checkpoints using in-domain validation, and evaluate zero-shot on the "out-of-domain" task.

::: {caption="Table 2: Mean and stddev of zero-shot domain transfer between two paraphrase detection tasks."} {width=70%}

:::

Table 2 shows that training a lightweight prompt on the QQP data and evaluating on MRPC gives much better performance than tuning the entire model (+ $3.2$ accuracy and + $3.1$ F1). The results are much closer in the other direction, with prompt tuning showing a small improvement in accuracy and a small drop in F1@. These results support the view that model tuning may be over-parameterized and more prone to overfit the training task, to the detriment of similar tasks in different domains.

6. Prompt Ensembling

Section Summary: Prompt tuning offers an efficient alternative to traditional model ensembling for large language models. Instead of storing and running multiple full copies of a model like T5-XXL, which is costly in both memory and computation time, one can train several lightweight prompt adaptations that all share the same frozen core parameters. Experiments on SuperGLUE show that an ensemble of five such prompts, combined by simple majority vote, consistently outperforms the average single prompt and matches or exceeds the best individual one.

Ensembles of neural models trained from different initializations on the same data are widely observed to improve task performance [50] and are useful for estimating model uncertainty [51]. However, as model size increases, ensembling can become impractical. Beyond the space required to store $N$ models (e.g. $42$ GiB for each copy of T5-XXL), there is a substantial inference cost to running $N$ distinct models, whether in parallel or in series.

Prompt tuning provides a more efficient way to ensemble multiple adaptations of a pre-trained language model. By training $N$ prompts on the same task, we create $N$ separate "models" for a task, while still sharing the core language modeling parameters throughout. Beyond drastically reducing storage costs, the prompt ensemble makes inference more efficient. To process one example, rather than computing forward passes of $N$ different models, we can execute a single forward pass with a batch size of $N$, replicating the example across the batch and varying the prompt. These savings mirror those seen for multi-tasking in Figure 2.

::: {caption="Table 3: Performance of a five-prompt ensemble built from a single frozen T5-XXL model exceeds both the average and the best among the five prompts."}

{width=70%}

:::

To demonstrate the viability of prompt ensembling, we train five prompts for each SuperGLUE task, using a single frozen T5-XXL model with our default hyperparameters. We use simple majority voting to compute predictions from the ensemble. Table 3 shows that across all tasks, the ensemble beats the single-prompt average and beats, or matches, the best individual prompt.

7. Interpretability

Section Summary: Prompt tuning operates in a continuous embedding space rather than using readable words, which makes the resulting prompts difficult to interpret directly. By measuring how closely each learned prompt token matches words in the model's vocabulary, researchers found that the tokens tend to cluster around semantically related terms, behaving much like implicit word representations that can store class labels or topic cues to guide the model. Longer prompts often contain redundant tokens with overlapping neighbors, suggesting extra unused capacity without clear positional structure.

An ideally interpretable prompt would consist of natural language that clearly describes the task at hand, explicitly asks the model for some result or action, and makes it easy to understand why the prompt elicited such behavior from the model.

As prompt tuning works in the continuous embedding space rather than the discrete token space, interpreting prompts becomes more difficult. To test the interpretability of our learned soft prompts, we compute the nearest neighbors to each prompt token from the frozen model's vocabulary. We use cosine distance between the vocabulary embedding vector and the prompt token representation as the similarity metric.

We observe that for a given learned prompt token, the top-5 nearest neighbors form tight semantic clusters. For example, we see lexically similar clusters such as Technology / technology / Technologies / technological / technologies, as well as more diverse but still strongly related clusters such as entirely / completely / totally / altogether / 100%. The nature of these clusters suggests that the prompts are in fact learning "word-like" representations. We found that random vectors drawn from the embedding space do not show this sort of semantic clustering.

When initializing the prompts using the "class-label" strategy, we often find that the class labels persist through training. Specifically, if a prompt token is initialized to a given label, that label is often among the learned token's nearest neighbors after tuning. When initializing with the "Random Uniform" or "Sampled Vocab" methods, the class labels can also be found in the nearest neighbors of the prompts; however they tend to appear as neighbors to multiple prompt tokens. This suggests that the model is learning to store the expected output classes in the prompts as reference, and initializing the prompt to outputs classes makes this easier and more centralized.

When examining longer prompts (e.g. size $100$), we often find several prompt tokens with the same nearest neighbors. This suggests there is either excess capacity in the prompt, or that the lack of sequential structure in the prompt representation makes it difficult for the model to localize information to a specific position.

While the learned prompts taken as sequences show little interpretability, we do observe a high frequency of words like science, technology and engineering as the nearest neighbors for prompts trained on the BoolQ dataset and approximately $20$ % of the questions are in the "Nature/Science" category. While more investigation is needed, this suggests that one role of the prompt may be to prime the model to interpret inputs in a specific domain or context (e.g. "scientific").

8. Conclusion

Section Summary: The paper concludes that prompt tuning performs nearly as well as full model tuning on benchmarks like SuperGLUE, closing the gap as models grow larger, while also improving generalization to new domains by keeping the core model frozen and avoiding overfitting. It further notes practical gains in storage and serving efficiency, which support easier multi-task deployment and prompt combinations. This separation of task-specific settings from general language abilities points to promising directions for future work.

In this paper, we showed that prompt tuning is a competitive technique for adapting frozen pre-trained language models to downstream tasks. On the popular SuperGLUE benchmark, its task performance rivals that of traditional model tuning, with the gap vanishing as model size increases. On zero-shot domain transfer, we found that prompt tuning leads to improved generalization. This plausibly indicates that freezing general-purpose language understanding parameters and restricting downstream learning to a lightweight parameter footprint can help to avoid overfitting to a specific domain.

Beyond task quality metrics, we discussed the appeal of moving to frozen pre-trained models in terms of storage and serving costs. This move enables both efficient multi-task serving, as well as efficient high-performing prompt ensembling. Looking forward, we believe that factoring out task-defining parameters as distinct from general language-modeling parameters is an exciting step that opens up many avenues for new research.

Acknowledgements

Section Summary: The authors thank several colleagues for their input on the project. Lucas Dixon, Waleed Ammar, Slav Petrov, and Sebastian Ruder reviewed and commented on an early version of the paper, while Colin Raffel, Adam Roberts, and Noam Shazeer contributed through helpful conversations. Linting Xue provided assistance with the training needed to adapt the language model.

We thank Lucas Dixon, Waleed Ammar, Slav Petrov and Sebastian Ruder for comments on an earlier draft, and the following people for helpful discussion: Colin Raffel, Adam Roberts, and Noam Shazeer. We thank Linting Xue for help with the LM adaptation training.

Appendix

Section Summary: The appendix explains the steps taken to ensure experiments can be reproduced, such as using standard metrics and publicly available T5 evaluation code for all GLUE, SuperGLUE, SQuAD, and MRQA tasks. It notes that models were trained on TPU hardware, provides tables listing the small number of trainable prompt parameters compared with total model size, and reports average runtimes until convergence on the BoolQ dataset across different model sizes and prompt lengths. It also describes the overall hyperparameter search effort, including the total number of trials and runs performed for the main results and ablations.

A. Reproducibility

A.1 Experimental Settings

We evaluate each GLUE and SuperGLUE dataset using the metric specified in the benchmark. We reuse the evaluation code from the publicly available T5 open-source release to compute metrics.^12 For the SQuAD and MRQA datasets, we evaluate using F1, one of the metrics used by the SQuAD benchmark, where partial answer spans are considered. Again, we use the T5 open-source release for metric calculation.^13 All of our models use T5 1.1 as the base frozen model, additional details and pre-trained checkpoints can be found on GitHub.^14

All prompts for T5 Small and Base models were trained on $4$ TPU v2 chips, while prompts for larger models were trained on $16$ TPU v3 chips.

\begin{tabular}{l r |r r r}
  \toprule
  T5 Size & Prompt Length & Trainable Parameters & Total Parameters & Percent Trainable \\
  \midrule
  Small & $1$ & $512$ & $76{,}961{,}664$ & $0.00067$\% \\
   {} & $5$ & $2{,}560$ & $76{,}963{,}712$ & $0.00333$\% \\
   {} & $20$ & $10{,}420$ & $76{,}971{,}572$ & $0.01330$\% \\
   {} & $50$ & $25{,}600$ & $76{,}986{,}752$ & $0.03325$\% \\
   {} & $100$ & $51{,}200$ & $77{,}012{,}352$ & $0.06648$\% \\
   {} & $150$ & $76{,}800$ & $77{,}037{,}952$ & $0.09969$\% \\
  Base & $1$ & $768$ & $247{,}578{,}624$ & $0.00031$\% \\
   {} & $5$ & $3{,}840$ & $247{,}581{,}696$ & $0.00155$\% \\
   {} & $20$ & $15{,}360$ & $247{,}593{,}216$ & $0.00620$\% \\
   {} & $50$ & $38{,}400$ & $247{,}616{,}256$ & $0.01551$\% \\
   {} & $100$ & $76{,}800$ & $247{,}654{,}656$ & $0.03101$\% \\
   {} & $150$ & $115{,}200$ & $247{,}693{,}056$ & $0.04651$\% \\
  Large & $1$ & $1{,}024$ & $783{,}151{,}104$ & $0.00013$\% \\
   {} & $5$ & $5{,}120$ & $783{,}155{,}200$ & $0.00065$\% \\
   {} & $20$ & $20{,}480$ & $783{,}170{,}560$ & $0.00262$\% \\
   {} & $50$ & $51{,}200$ & $783{,}201{,}280$ & $0.00654$\% \\
   {} & $100$ & $102{,}400$ & $783{,}252{,}480$ & $0.01907$\% \\
   {} & $150$ & $153{,}600$ & $783{,}303{,}680$ & $0.01961$\% \\
  XL & $1$ & $2{,}048$ & $2{,}849{,}759{,}232$ & $0.00007$\% \\
   {} & $5$ & $10{,}240$ & $2{,}849{,}767{,}424$ & $0.00036$\% \\
   {} & $20$ & $40{,}960$ & $2{,}849{,}798{,}144$ & $0.00143$\% \\
   {} & $50$ & $102{,}400$ & $2{,}849{,}859{,}584$ & $0.00359$\% \\
   {} & $100$ & $204{,}800$ & $2{,}849{,}961{,}984$ & $0.00718$\% \\
   {} & $150$ & $307{,}200$ & $2{,}850{,}064{,}384$ & $0.01078$\% \\
  XXL & $1$ & $4{,}096$ & $11{,}135{,}336{,}448$ & $0.00004$\% \\
   {} & $5$ & $20{,}480$ & $11{,}135{,}352{,}832$ & $0.00018$\% \\
   {} & $20$ & $81{,}920$ & $11{,}135{,}414{,}272$ & $0.00074$\% \\
   {} & $50$ & $204{,}800$ & $11{,}137{,}380{,}352$ & $0.00184$\% \\
   {} & $100$ & $409{,}600$ & $11{,}135{,}741{,}952$ & $0.00368$\% \\
   {} & $150$ & $614{,}400$ & $11{,}135{,}946{,}752$ & $0.00552$\% \\
  \bottomrule
  \end{tabular}

Parameter counts for each prompt can be found in Table 4. Average runtimes until convergence can be found in Table 5.

: Table 5: Mean and standard deviation of the runtime until convergence for the BoolQ dataset and various prompt lengths and model sizes. Convergence is defined as reaching a performance within $1$ % of the mean value for that model configuration. A few configurations have been omitted because their runtimes were artificially extended due to preemption.

Prompt Length T5 Size Time
1 Large 3:17 $\pm$ 02:10
XL 3:37 $\pm$ 02:11
XXL 21:23 $\pm$ 01:54
20 XL 49:08 $\pm$ 18:53
XXL 53:03 $\pm$ 16:25
50 Small 09:05 $\pm$ 05:07
Base 55:01 $\pm$ 27:48
Large 1:14:16 $\pm$ 13:12
XL 2:30:10 $\pm$ 25:40
XXL 3:13:13 $\pm$ 23:08
100 Small 16:25 $\pm$ 01:15
Base 29:57 $\pm$ 00:18
Large 1:23:36 $\pm$ 10:21
XL 3:35:00 $\pm$ 54:42
XXL 3:51:15 $\pm$ 45:53

A.2 Hyperparameter Search

This work used $77$ hyperparameter search trials ($40$ for prompt tuning and $37$ for single-task model tuning), and $3$ training runs (with validation evaluation) for each baseline configuration and ablation setting, for a total of $195$ runs for our main result and ablations. There were an additional $18$ runs for the domain shift experiments and $24$ extra runs to create the ensemble. Hyperparameter bounds can be found in Table 6. Hyperparameter tuning was done via manual tuning and settings were selected based on the SuperGLUE score. All experiments in this work, outside of the hyperparameter being ablated, use our default configuration of 100K steps of LM Adapation, a prompt length of 100, and "class-label" initialization.

All graphs of our experimental results plot the mean and standard deviation over 3 runs as computed by Seaborn [52]. Some settings have such low variance that the standard deviation is hidden behind the line itself, such as "Model Tuning (Multi-task)" in Figure 1 and the Base, Large, and XL prompts trained on the "Span Corruption" pretraining objective in Figure 3b. Figure 4 also shows mean and standard deviation for the number of parameters each method uses as the prompt length varies from $1$ – $100$. The "Prefix Tuning (Train)" curves appears to have no standard deviation because the parameter count is so strongly dominated by the cost of the reparameterization parameters that the standard deviation bands are occluded. For our experiments on domain transfer, we report mean and standard deviation over 3 runs.

::: {caption="Table 6: Search space for each hyperparameter considered. Parameter Scaling refers to the Adafactor setting where an update is scaled by the norm of the parameter it will be applied to. Warmup Steps is the number of steps before a linearly increasing learning rate reaches the Learning Rate value, starting from zero. Decay Factor is the reduction in Learning Rate size that occurs every 'Steps per Decay' steps."}

{width=60%}

:::

A.3 Datasets

All datasets used are in English. For the GLUE^16$^{*}$^17 and SuperGLUE^18 datasets, we used the training, validation, and test splits that ship with TensorFlow Datasets. We used version 1.0.0 for GLUE and 1.0.2 for SuperGLUE datasets. For SQuAD[^19] we used v1.1:3.0.0 from Tensorflow Datasets and follow the provided training, validation, and test splits. For the out-of-domain datasets we used the development splits distributed as part of the MRQA shared task.^20 Dataset sizes can be found in Table 7. The label distributions for each dataset can be found in Table 8 (BoolQ), Table 9 (CB), Table 10 (COPA), Table 11 (MultiRC), Table 14 (RTE), Table 12 (WiC), Table 13 (WSC), Table 15 (MRPC) and Table 16 (QQP).

[^19]: https://www.tensorflow.org/datasets/catalog/squad##squadv1 $1_d$ efault_config

\begin{tabular}{l| r r r}
  \toprule
  Dataset & Training & Validation & Testing \\
  \midrule
  BoolQ & $9{,}427$ & $3{,}270$ & $3{,}245$ \\
  CB & $250$ & $56$ & $250$ \\
  COPA & $400$ & $100$ & $500$ \\
  MultiRC & $27{,}243$ & $4{,}848$ & $9{,}693$ \\
  ReCoRD & $100{,}730$ & $10{,}000$ & $10{,}000$ \\
  RTE & $2{,}490$ & $277$ & $3{,}000 $ \\
  WiC & $5{,}428$ & $638$ & $1{,}400$ \\
  WSC & $259^*$ & $104$ & $146$ \\
  MRPC & $3{,}668$ & $408$ & $1{,}725$ \\
  QQP & $363{,}849$ & $40{,}430$ & $390{,}965$ \\
  SQuAD & $87{,}599$ & $10{,}570$ & - \\
  TextbookQA & - & $1{,}504$ & - \\
  RACE & - & $1{,}503$ & - \\
  BioASQ & - & $1{,}501$ & - \\
  RE & - & $674$ & - \\
  DuoRC & - & $2{,}948$ & - \\
  DROP & - & $1{,}503$ & - \\
  \bottomrule
  \end{tabular}

: Table 8: Label distribution for the BoolQ dataset.

Split False True
Training $37.7$ $62.3$
Validation $37.8$ $62.2$

: Table 9: Label distribution for the CB dataset.

Split contradiction entailment neutral
Training $47.6$ $46.0$ $6.4$
Validation $50.0$ $41.1$ $8.9$

: Table 10: Label distribution for the COPA dataset.

Split choice1 choice2
Training $48.8$ $51.2$
Validation $55.0$ $45.0$

: Table 11: Label distribution for the MultiRC dataset.

Split False True
Training $55.9$ $44.1$
Validation $57.2$ $42.8$

: Table 12: Label distribution for the WiC dataset.

Split False True
Training $50.0$ $50.0$
Validation $50.0$ $50.0$

: Table 13: Label distribution for the WSC dataset. Following T5, we cast the WSC dataset to a free-form text generation task where the model generates the referent to the highlighted span instead predicting if the supplied entity is the correct referent of the highlighted span. Thus, we only use training data where the supplied referent is correct making our training label distribution focused entirely on True.

Split False True
Training $0.0$ $100.0$
Validation $63.5$ $36.5$

: Table 14: Label distribution for the RTE dataset.

Split entailment not_entailment
Training $51.2$ $49.8$
Validation $52.7$ $47.3$

: Table 15: Label distribution for the MRPC dataset.

Split equivalent not_equivalent
Training $67.4$ $32.6$
Validation $68.4$ $31.6$

: Table 16: Label distribution for the QQP dataset.

Split duplicate not_duplicate
Training $36.9$ $63.1$
Validation $36.8$ $63.2$

The question answering datasets are extractive datasets with a variety of answers, so there isn't a label distribution to report. Similarly, the ReCoRD dataset is a multiple choice dataset where the model must predict the masked out entity from a list of possible entities. Due to this formulation there isn't a meaningful label distribution.

We followed the open-source T5 preprocessing procedurein terfootnotelinepenalty=10000 ^21 for each dataset, except that we omit the dataset prefix denoting which SuperGLUE dataset an example belongs to. For the SQuAD and MRQA datasets we used the T5 SQuAD preprocessing codein terfootnotelinepenalty=10000^22. By following the T5 preprocessing and text-to-text format, we recast the WSC dataset as a text generation task. Instead of predicting whether a supplied referent is correct for a highlighted span, our model predicts the correct referent directly. As such, we can only learn from training examples where the referent is correct, so WSC training data where the supplied referent is incorrect are omitted.

No new data was collected for this work.

References

Section Summary: This section lists academic papers that form the foundation for modern language models and natural language processing techniques. The cited works cover key developments such as contextual word embeddings, transformer architectures, pre-training methods like BERT and GPT, and approaches to prompt tuning and few-shot learning. They also include supporting research on model optimizations, evaluation benchmarks, and related tools from conferences and journals between 2017 and 2021.

[1] Matthew Peters, Mark Neumann, Mohit Iyyer, Matt Gardner, Christopher Clark, Kenton Lee, and Luke Zettlemoyer. 2018. Deep contextualized word representations. In Proceedings of the 2018 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies, Volume 1 (Long Papers), pages 2227–2237, New Orleans, Louisiana. Association for Computational Linguistics.

[2] Alec Radford, Karthik Narasimhan, Tim Salimans, and Ilya Sutskever. 2018. Improving language understanding by generative pre-training.

[3] Jacob Devlin, Ming-Wei Chang, Kenton Lee, and Kristina Toutanova. 2019. BERT: Pre-training of deep bidirectional transformers for language understanding. In Proceedings of the 2019 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies, Volume 1 (Long and Short Papers), pages 4171–4186, Minneapolis, Minnesota. Association for Computational Linguistics.

[4] Jeremy Howard and Sebastian Ruder. 2018. Universal language model fine-tuning for text classification. In Proceedings of the 56th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pages 328–339, Melbourne, Australia. Association for Computational Linguistics.

[5] Tom Brown, Benjamin Mann, Nick Ryder, Melanie Subbiah, Jared D Kaplan, Prafulla Dhariwal, Arvind Neelakantan, Pranav Shyam, Girish Sastry, Amanda Askell, Sandhini Agarwal, Ariel Herbert-Voss, Gretchen Krueger, Tom Henighan, Rewon Child, Aditya Ramesh, Daniel Ziegler, Jeffrey Wu, Clemens Winter, Chris Hesse, Mark Chen, Eric Sigler, Mateusz Litwin, Scott Gray, Benjamin Chess, Jack Clark, Christopher Berner, Sam McCandlish, Alec Radford, Ilya Sutskever, and Dario Amodei. 2020. Language models are few-shot learners. In Advances in Neural Information Processing Systems, volume 33, pages 1877–1901. Curran Associates, Inc.

[6] Colin Raffel, Noam Shazeer, Adam Roberts, Katherine Lee, Sharan Narang, Michael Matena, Yanqi Zhou, Wei Li, and Peter J. Liu. 2020. Exploring the limits of transfer learning with a unified text-to-text transformer. Journal of Machine Learning Research, 21(140):1–67.

[7] Taylor Shin, Yasaman Razeghi, Robert L. Logan IV, Eric Wallace, and Sameer Singh. 2020. AutoPrompt: Eliciting Knowledge from Language Models with Automatically Generated Prompts. In Proceedings of the 2020 Conference on Empirical Methods in Natural Language Processing (EMNLP), pages 4222–4235, Online. Association for Computational Linguistics.

[8] Xiang Lisa Li and Percy Liang. 2021. Prefix-tuning: Optimizing continuous prompts for generation. In Proceedings of the 59th Annual Meeting of the Association for Computational Linguistics and the 11th International Joint Conference on Natural Language Processing (Volume 1: Long Papers), pages 4582–4597, Online. Association for Computational Linguistics.

[9] Karen Hambardzumyan, Hrant Khachatrian, and Jonathan May. 2021. WARP: Word-level Adversarial ReProgramming. In Proceedings of the 59th Annual Meeting of the Association for Computational Linguistics and the 11th International Joint Conference on Natural Language Processing (Volume 1: Long Papers), pages 4921–4933, Online. Association for Computational Linguistics.

[10] Ashish Vaswani, Noam Shazeer, Niki Parmar, Jakob Uszkoreit, Llion Jones, Aidan N Gomez, Łukasz Kaiser, and Illia Polosukhin. 2017. Attention is all you need. In Advances in Neural Information Processing Systems, volume 30, pages 5998–6008.

[11] Zhengbao Jiang, Frank F. Xu, Jun Araki, and Graham Neubig. 2020. How can we know what language models know? Transactions of the Association for Computational Linguistics, 8:423–438.

[12] Timo Schick and Hinrich Schütze. 2021. Exploiting cloze-questions for few-shot text classification and natural language inference. In Proceedings of the 16th Conference of the European Chapter of the Association for Computational Linguistics: Main Volume, pages 255–269, Online. Association for Computational Linguistics.

[13] Noam Shazeer. 2020. GLU variants improve transformer. CoRR, abs/2002.05202.

[14] Vinod Nair and Geoffrey E. Hinton. 2010. Rectified linear units improve restricted Boltzmann machines. In Proceedings of the 27th International Conference on International Conference on Machine Learning, ICML'10, page 807–814, Madison, WI, USA. Omnipress.

[15] Alex Wang, Yada Pruksachatkun, Nikita Nangia, Amanpreet Singh, Julian Michael, Felix Hill, Omer Levy, and Samuel Bowman. 2019a. SuperGLUE: A stickier benchmark for general-purpose language understanding systems. In Advances in Neural Information Processing Systems, volume 32. Curran Associates, Inc.

[16] Christopher Clark, Kenton Lee, Ming-Wei Chang, Tom Kwiatkowski, Michael Collins, and Kristina Toutanova. 2019. BoolQ: Exploring the surprising difficulty of natural yes/no questions. In Proceedings of the 2019 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies, Volume 1 (Long and Short Papers), pages 2924–2936, Minneapolis, Minnesota. Association for Computational Linguistics.

[17] Marie-Catherine De Marneff, Mandy Simons, and Judith Tonhauser. 2019. The CommitmentBank: Investigating projection in naturally occurring discourse. Proceedings of Sinn und Bedeutung 23.

[18] Melissa Roemmele, Cosmin Adrian Bejan, and Andrew S Gordon. 2011. Choice of plausible alternatives: An evaluation of commonsense causal reasoning. In 2011 AAAI Spring Symposium Series.

[19] Daniel Khashabi, Snigdha Chaturvedi, Michael Roth, Shyam Upadhyay, and Dan Roth. 2018. Looking beyond the surface: A challenge set for reading comprehension over multiple sentences. In Proceedings of North American Chapter of the Association for Computational Linguistics (NAACL).

[20] Sheng Zhang, Xiaodong Liu, Jingjing Liu, Jianfeng Gao, Kevin Duh, and Benjamin Van Durme. 2018. ReCoRD: Bridging the gap between human and machine commonsense reading comprehension. CoRR, abs/1810.12885.

[21] Ido Dagan, Oren Glickman, and Bernardo Magnini. 2005. The PASCAL recognising textual entailment challenge. In Machine Learning Challenges Workshop, pages 177–190. Springer.

[22] Roy Bar-Haim, Ido Dagan, Bill Dolan, Lisa Ferro, Danilo Giampiccolo, Bernardo Magnini, and Idan Szpektor. 2006. The second PASCAL recognising textual entailment challenge. In Proceedings of the second PASCAL challenges workshop on recognising textual entailment, volume 6, pages 6–4. Venice.

[23] Danilo Giampiccolo, Bernardo Magnini, Ido Dagan, and Bill Dolan. 2007. The third PASCAL recognizing textual entailment challenge. In Proceedings of the ACL-PASCAL workshop on textual entailment and paraphrasing, pages 1–9. Association for Computational Linguistics.

[24] Luisa Bentivogli, Peter Clark, Ido Dagan, and Danilo Giampiccolo. 2009. The fifth PASCAL recognizing textual entailment challenge. In TAC.

[25] Mohammad Taher Pilehvar and Jose Camacho-Collados. 2018. WiC: 10,000 example pairs for evaluating context-sensitive representations. CoRR, abs/1808.09121.

[26] Hector Levesque, Ernest Davis, and Leora Morgenstern. 2012. The Winograd schema challenge. In Thirteenth International Conference on the Principles of Knowledge Representation and Reasoning.

[27] James Bradbury, Roy Frostig, Peter Hawkins, Matthew James Johnson, Chris Leary, Dougal Maclaurin, George Necula, Adam Paszke, Jake VanderPlas, Skye Wanderman-Milne, and Qiao Zhang. 2018. JAX: composable transformations of Python+NumPy programs.

[28] Noam Shazeer and Mitchell Stern. 2018. Adafactor: Adaptive learning rates with sublinear memory cost. In Proceedings of the 35th International Conference on Machine Learning, volume 80 of Proceedings of Machine Learning Research, pages 4596–4604. PMLR.

[29] Jonathan Heek, Anselm Levskaya, Avital Oliver, Marvin Ritter, Bertrand Rondepierre, Andreas Steiner, and Marc van Zee. 2020. Flax: A neural network library and ecosystem for JAX.

[30] Vid Kocijan, Ana-Maria Cretu, Oana-Maria Camburu, Yordan Yordanov, and Thomas Lukasiewicz. 2019. A surprisingly robust trick for the Winograd schema challenge. In Proceedings of the 57th Annual Meeting of the Association for Computational Linguistics, pages 4837–4842, Florence, Italy. Association for Computational Linguistics.

[31] Taku Kudo and John Richardson. 2018. SentencePiece: A simple and language independent subword tokenizer and detokenizer for neural text processing. In Proceedings of the 2018 Conference on Empirical Methods in Natural Language Processing: System Demonstrations, pages 66–71, Brussels, Belgium. Association for Computational Linguistics.

[32] Alec Radford, Jeff Wu, Rewon Child, David Luan, Dario Amodei, and Ilya Sutskever. 2019. Language models are unsupervised multitask learners. OpenAI Blog.

[33] Mike Lewis, Yinhan Liu, Naman Goyal, Marjan Ghazvininejad, Abdelrahman Mohamed, Omer Levy, Veselin Stoyanov, and Luke Zettlemoyer. 2020. BART: Denoising sequence-to-sequence pre-training for natural language generation, translation, and comprehension. In Proceedings of the 58th Annual Meeting of the Association for Computational Linguistics, pages 7871–7880, Online. Association for Computational Linguistics.

[34] Xiao Liu, Yanan Zheng, Zhengxiao Du, Ming Ding, Yujie Qian, Zhilin Yang, and Jie Tang. 2021. GPT understands, too. CoRR, abs/2103.10385.

[35] Guanghui Qin and Jason Eisner. 2021. Learning how to ask: Querying LMs with mixtures of soft prompts. In Proceedings of the 2021 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies, pages 5203–5212, Online. Association for Computational Linguistics.

[36] Lajanugen Logeswaran, Ann Lee, Myle Ott, Honglak Lee, Marc'Aurelio Ranzato, and Arthur Szlam. 2020. Few-shot sequence learning with transformers. CoRR, abs/2012.09543.

[37] Sylvestre-Alvise Rebuffi, Hakan Bilen, and Andrea Vedaldi. 2017. Learning multiple visual domains with residual adapters. In Advances in Neural Information Processing Systems, volume 30. Curran Associates, Inc.

[38] Neil Houlsby, Andrei Giurgiu, Stanislaw Jastrzebski, Bruna Morrone, Quentin De Laroussilhe, Andrea Gesmundo, Mona Attariyan, and Sylvain Gelly. 2019. Parameter-efficient transfer learning for NLP. In Proceedings of the 36th International Conference on Machine Learning, volume 97 of Proceedings of Machine Learning Research, pages 2790–2799. PMLR.

[39] Jonas Pfeiffer, Ivan Vulić, Iryna Gurevych, and Sebastian Ruder. 2020. MAD-X: An Adapter-Based Framework for Multi-Task Cross-Lingual Transfer. In Proceedings of the 2020 Conference on Empirical Methods in Natural Language Processing (EMNLP), pages 7654–7673, Online. Association for Computational Linguistics.

[40] Adam Fisch, Alon Talmor, Robin Jia, Minjoon Seo, Eunsol Choi, and Danqi Chen. 2019. MRQA 2019 shared task: Evaluating generalization in reading comprehension. In Proceedings of 2nd Machine Reading for Reading Comprehension (MRQA) Workshop at EMNLP.

[41] Pranav Rajpurkar, Jian Zhang, Konstantin Lopyrev, and Percy Liang. 2016. SQuAD: 100,000+ questions for machine comprehension of text. In Proceedings of the 2016 Conference on Empirical Methods in Natural Language Processing, pages 2383–2392, Austin, Texas. Association for Computational Linguistics.

[42] A. Kembhavi, M. Seo, D. Schwenk, J. Choi, A. Farhadi, and H. Hajishirzi. 2017. Are you smarter than a sixth grader? textbook question answering for multimodal machine comprehension. In 2017 IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pages 5376–5384.

[43] Guokun Lai, Qizhe Xie, Hanxiao Liu, Yiming Yang, and Eduard Hovy. 2017. RACE: Large-scale ReAding comprehension dataset from examinations. In Proceedings of the 2017 Conference on Empirical Methods in Natural Language Processing, pages 785–794, Copenhagen, Denmark. Association for Computational Linguistics.

[44] Omer Levy, Minjoon Seo, Eunsol Choi, and Luke Zettlemoyer. 2017. Zero-shot relation extraction via reading comprehension. In Proceedings of the 21st Conference on Computational Natural Language Learning (CoNLL 2017), pages 333–342, Vancouver, Canada. Association for Computational Linguistics.

[45] Amrita Saha, Rahul Aralikatte, Mitesh M. Khapra, and Karthik Sankaranarayanan. 2018. DuoRC: Towards complex language understanding with paraphrased reading comprehension. In Proceedings of the 56th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pages 1683–1693, Melbourne, Australia. Association for Computational Linguistics.

[46] Dheeru Dua, Yizhong Wang, Pradeep Dasigi, Gabriel Stanovsky, Sameer Singh, and Matt Gardner. 2019. DROP: A reading comprehension benchmark requiring discrete reasoning over paragraphs. In Proceedings of the 2019 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies, Volume 1 (Long and Short Papers), pages 2368–2378, Minneapolis, Minnesota. Association for Computational Linguistics.

[47] Alex Wang, Amanpreet Singh, Julian Michael, Felix Hill, Omer Levy, and Samuel R. Bowman. 2019b. GLUE: A multi-task benchmark and analysis platform for natural language understanding. In the Proceedings of ICLR.

[48] Shankar Iyer, Nikhil Dandekar, and Kornel Csernai. 2017. First Quora dataset release: Question pairs.

[49] William B Dolan and Chris Brockett. 2005. Automatically constructing a corpus of sentential paraphrases. In Proceedings of the Third International Workshop on Paraphrasing (IWP2005).

[50] L. K. Hansen and P. Salamon. 1990. Neural network ensembles. IEEE Transactions on Pattern Analysis and Machine Intelligence, 12(10):993–1001.

[51] Balaji Lakshminarayanan, Alexander Pritzel, and Charles Blundell. 2017. Simple and scalable predictive uncertainty estimation using deep ensembles. In Advances in Neural Information Processing Systems, volume 30. Curran Associates, Inc.

[52] Michael L. Waskom. 2021. seaborn: statistical data visualization. Journal of Open Source Software, 6(60):3021.