Prefix-tuning
Method · 2021
Definition
“Fine-tuning is the de facto way to leverage large pretrained language models to perform downstream tasks.”
From the defining paper: Prefix-Tuning: Optimizing Continuous Prompts for Generation (Xiang Lisa Li, Percy Liang, ACL 2021).
Lineage
Parent: Adapters
Children: Prompt tuning
Incoming edges (2)
improves · memory efficiency
From Full fine-tuning · confidence 0.8 (Tradeoff quote is null; confidence 0.8.)
- Bottleneck
- “it modifies all the language model parameters and therefore necessitates storing a full copy for each task” Source: Prefix-Tuning: Optimizing Continuous Prompts for Generation
- Mechanism
- “which keeps language model parameters frozen, but optimizes a small continuous task-specific vector” Source: Prefix-Tuning: Optimizing Continuous Prompts for Generation
- Trade-off
- No trade-off quoted.
compares · memory efficiency
From Adapters · confidence 0.8 (Tradeoff quote is null; confidence 0.8.)
- Bottleneck
- “it modifies all the language model parameters and therefore necessitates storing a full copy for each task” Source: Prefix-Tuning: Optimizing Continuous Prompts for Generation
- Mechanism
- “which keeps language model parameters frozen, but optimizes a small continuous task-specific vector” Source: Prefix-Tuning: Optimizing Continuous Prompts for Generation
- Trade-off
- No trade-off quoted.
Outgoing edges (3)
adapts · simplicity
To Prompt tuning · confidence 0.8 (Tradeoff quote is null; confidence 0.8.)
- Bottleneck
- “Our method can be seen as a simplification of the recently proposed” Source: The Power of Scale for Parameter-Efficient Prompt Tuning
- Mechanism
- “soft prompts are learned through backpropagation and can be tuned to incorporate signal from any number of labeled examples” Source: The Power of Scale for Parameter-Efficient Prompt Tuning
- Trade-off
- No trade-off quoted.
improves · generalization
To P-Tuning v2 · confidence 0.8 (Tradeoff quote is null; confidence 0.8.)
- Bottleneck
- “We also find that existing methods of prompt tuning cannot handle hard sequence labeling tasks, indicating a lack of universality” Source: P-Tuning v2: Prompt Tuning Can Be Comparable to Fine-tuning Universally Across Scales and Tasks
- Mechanism
- “Our method P-Tuning v2 is an implementation of Deep Prompt Tuning” Source: P-Tuning v2: Prompt Tuning Can Be Comparable to Fine-tuning Universally Across Scales and Tasks
- Trade-off
- No trade-off quoted.
compares · memory efficiency
To LoRA · confidence 0.8 (Tradeoff quote is null; confidence 0.8.)
- Bottleneck
- “As we pre-train larger models, full fine-tuning, which retrains all model parameters, becomes less feasible” Source: LoRA: Low-Rank Adaptation of Large Language Models
- Mechanism
- “which freezes the pre-trained model weights and injects trainable rank decomposition matrices into each layer” Source: LoRA: Low-Rank Adaptation of Large Language Models
- Trade-off
- No trade-off quoted.