prefix-tuning-vs-prompt-tuning-difference
IN premise — entries/2026/06/21/wiki-Prompt_engineering-chunk-2.md
Created 2026-06-21T09:50:10+00:00
Prefix tuning prepends learned continuous vectors to all transformer layers (Li & Liang 2021), while prompt tuning prepends them only to the input layer (Lester et al. 2021)
Summary
Prefix tuning and prompt tuning are two different strategies for steering a frozen language model: prefix tuning inserts learned vectors at every layer of the transformer, giving the added parameters a say in the model's reasoning at every stage, while prompt tuning places them only at the input, so they merely set the initial context. This architectural distinction matters because it determines how deeply the small set of learned parameters can influence the model's internal computations versus just framing its starting point.