Minimal Overhead vs. Enhanced Expressiveness
Prompt Tuning is conceptually simpler and generally more parameter-efficient, only adding learnable tokens to the input embeddings. Prefix Tuning, while slightly more complex to implement and potentially using slightly more parameters, provides enhanced expressiveness by modifying attention mechanisms across multiple layers without extending the output sequence length during inference.
The top 3
- Prefix Tuning's Edge: Superior for Complex Generation Tasks: Prefix Tuning often outperforms Prompt Tuning on complex sequence generation tasks like summarization and data-to-text, by directly influencing attention layers for more fine-grained control.
- Prompt Tuning: Unmatched for Minimal Compute Overhead: Prompt Tuning typically requires only a few thousand trainable parameters, significantly less than Prefix Tuning, leading to faster training, lower computational costs, and reduced memory usage.
- Deeper Control: Prefix Tuning Modifies More Layers: Unlike Prompt Tuning, which only adjusts input embeddings, Prefix Tuning achieves enhanced expressiveness by inserting trainable Key and Value vectors into the attention mechanisms of multiple Transformer layers.
Sources
Open the full topic