Soft prompts and adapters are PEFT routes that freeze the backbone and train only a few extra parameters: 1) Prefix-Tuning prepends learnable key/value vectors before attention in every layer (~0.1%–2% of params); 2) P-Tuning (v2) prepends continuous prompt vectors to input embeddings (or each layer's input), reparameterized by MLP/LSTM for stability; 3) Adapter inserts a bottleneck after Transformer sub-layers: down-project
d→r, up-project
r→d, with nonlinearity and a residual connection. Together with LoRA (frozen
W, low-rank delta
ΔW=BA; rank r=8 cuts parameters by ~100×) they form the four mainstream PEFT methods.