Home Tools Glossary Prefix Tuning
Technique

Prefix Tuning

Model Prefix Tuning

/pree-fiks too-ning/

A parameter-efficient fine-tuning method that prepends trainable continuous vector prefixes to transformer attention layers.

In plain English
Prefix tuning acts like adding a set of specialized trainable prompt instructions directly into the internal memory layers of an AI model without altering its core knowledge.
Real-world example
Adapting a base language model for cross-lingual summarization using lightweight continuous prefixes.
Technical definition
Prefix tuning is a lightweight parameter-efficient fine-tuning technique that prepends a sequence of continuous trainable vector parameters to the keys and values of every transformer attention block. By keeping original model weights frozen and optimizing only the prefix parameters, it adapts models to downstream tasks with minimal VRAM overhead.