skip to content

An input-only learned soft prompt on a 350-million-parameter model extracts entities far below a full fine-tune on held-out data: why, and what do you try next?

level: seniorimportance: nice to knowfreq 15%

answer

  1. model size and task shape
  2. limited, indirect reach from the input
  3. labels per token
  4. look at the raw failures first
  5. add depth before giving up

basics

~20 s

Published results show this pattern: input-only vectors have limited capacity and indirect reach, so mid-sized models and token-level tasks suffer most. Check the failures, try a longer prompt, then vectors at every layer, and re-measure against an adapter.

solid answer

~50 s

This is the documented weak spot. The P-tuning v2 paper (Liu et al., 2021) gives two reasons: sequence length limits how many vectors the input can hold, and input embeddings influence predictions only indirectly. Its table for a 335-million-parameter model shows named-entity F1 of 81.9 against 92.8 for fine-tuning, and extractive question-answering F1 of 8.5 against 91.1. First read the raw outputs and compare training with held-out scores, to separate underfitting from overfitting and rule out an unsuitable base model. Then try a longer prompt, near 100 tokens for hard tagging in that paper. Next move to vectors at every layer, which scored 90.2 and 86.0 there, though those runs also used a trained linear head. If that still misses the bar on your held-out set, an adapter is the next candidate. Their setup was token tagging, so a model generating structured text needs its own measurement.

go deeper

for a junior

Recall that input-only soft prompts were competitive mainly on very large models and simple classification. Knowing that token-level tasks are the known weak spot is enough to spot the pattern.

for a middle

Explain the two named limits, capacity at the input and indirect reach, and how vectors at every layer address them. Be able to work the parameter count for each form.

for a senior

Run the diagnosis in order: raw outputs, training against held-out scores, length, depth, then a head. Quote the paper's figures with their scale and task, and state what ends the search.

for a principal

Ask whether the tasks fit this artifact at all. If extraction needs depth plus a head on a mid-sized model, the size and simplicity case has weakened, so a uniform soft-prompt standard may not hold.

## Why this is the expected failure Input-only prompt tuning looks strongest at very large scale. Lester et al. (2021) found it matched model tuning at about 11 billion parameters on the SuperGLUE benchmark, and their own curves show smaller models lagging. The P-tuning v2 paper (Liu et al., 2021) names two limits of the input-only form: - **Capacity.** The number of tunable parameters is bounded by the sequence length the input can spare. - **Reach.** Input embeddings have a relatively indirect effect on predictions, since every later layer's response is computed by frozen weights. It also separates task shapes. Sequence tagging predicts a label for each input token, which the authors find harder for prompt tuning and incompatible with mapping one output word to one class. ## What the numbers look like These come from the v2 paper's tables for a 335-million-parameter bidirectional encoder, in fully supervised runs. The first two rows are token-level F1 and the last is sentence-level accuracy. | Task | Fine-tuning | Input-only | Every layer | Every layer, multi-task | |---|---|---|---|---| | Named entities, one benchmark | 92.8 | 81.9 | 90.2 | 91.0 | | Extractive question answering | 91.1 | 8.5 | 86.0 | 89.6 | | Textual entailment | 70.4 | 53.5 | 78.3 | n/a | The same paper shows the input-only gap narrowing by 10 billion parameters on its SuperGLUE tasks, which matches the scale finding above. ## Work through it in order 1. **Read the raw failures.** Lester et al. saw mid-sized frozen models never learn to output a legal label on many tasks, copying input spans or returning an empty string, and tied it to a pretraining objective that suited the model poorly. They suspected a prompt alone would struggle to override such priors. If your outputs look like that, the base model is the issue. 2. **Compare training and held-out scores.** A low training score points to too little capacity. A high training score with a low held-out score points to overfitting, and more vectors would make it worse. 3. **Try a longer prompt.** The v2 paper reports hard sequence labelling preferring around 100 tokens, against under 20 for simple classification. Watch the held-out score as you lengthen, since Li and Liang (2021) saw longer prefixes begin to overfit past a threshold. 4. **Add depth.** Move to vectors at every layer. The v2 paper also found prompts near the output doing better than the same number near the input on its two tested datasets, so a subset of layers may be enough. 5. **Check the output layer.** The v2 runs put a trained linear classification head on the tokens. That is a task-specific component you must count and store. 6. **Consider sharing across related tasks.** The paper's multi-task column pretrains shared vectors across datasets of one task type, then tunes each. It reports gains on most tasks, less so on question answering. 7. **Decide on the same held-out set.** Compare against the written-prompt baseline and an adapter. Stop when the bar is met or when a heavier artifact is plainly cheaper to run. ## What the fix costs For this team's illustrative model, with width 2,048, 24 layers and 100 virtual tokens: - Input-only stores 100 x 2,048 = 204,800 parameters. - Every layer stores 100 x 24 x 2 x 2,048 = 9,830,400 parameters. Depth brings the artifact close to the size of a modest adapter, so much of the size argument for a soft prompt goes away. What stays is a model whose function is unchanged, and the published case for batching different tasks together. ## How far to trust this evidence - The results are from 2021, on models and benchmarks of that date. Newer models may behave differently. - The extraction evidence is **token tagging with a linear head** on bidirectional encoders. A model that generates extracted fields as structured text is a different setup, and the papers here did not test it. - The v2 paper's own label, comparable, describes its tested tasks at 330 million to 10 billion parameters, in fully supervised runs. It is no promise for a dozen custom tasks. - The 350-million figure in the question is this scenario's, close to the paper's row rather than taken from it. So a sound answer gives the likely cause, the order of attempts, and the measurement that ends the search.

  • If vectors at every layer also fall short, what is the next move?
    Stop adding vectors and treat it as a capacity decision. An adapter trains weights inside the model and changes its function, which a soft prompt never does. Train one on the same data and compare on the same held-out set. If its gain justifies the larger artifact and the ability to swap per task, move that task over.
  • Does the published gap apply if your model generates extracted fields as structured text?
    Not directly. The cited runs tag each token with a trained linear head on bidirectional encoders. A generating model turns extraction into text output, so the failure shape and the fix may differ. Use the published gap as a reason to test early, on your own held-out set, rather than as a prediction of your number.

  • Input-only soft prompts should work equally well at every model size.
  • It must be a bug, because 2021 papers showed soft prompts matching fine-tuning.
  • The fix is always more virtual tokens, however the training score looks.
  • Vectors at every layer keep the same artifact size as input-only vectors.
  • Token tagging results settle how a generating model will extract structured fields.