Prompt Learning via Meta-Regularization
Jinyoung Park, Juyeon Ko, Hyunwoo J. Kim
Department of Computer Science and Engineering , Korea University
Korea University
MLV Lab
Korea University
MLV Lab
Introduction
> CLIP
CLIP (ICML 2021)
Generalizability
Full finetuning
Contrastive loss
Korea University
MLV Lab
Introduction
> Existing prompt learning methods
CoOp (IJCV 2022)
VPT (ECCV 2022)
CoCoOp (CVPR 2022)
MaPLe (CVPR 2023)
Korea University
MLV Lab
CoOp
IVLP
(base)
Zero-shot CLIP
Zero-shot CLIP
CoCoOp
ProMetaR
(Ours)
CoOp
IVLP
(base)
CoCoOp
ProMetaR
(Ours)
Introduction
> Limitation of prompt learning methods
Base class performance
New class performance
Korea University
MLV Lab
Methods
> Goal
: downstream loss (contrastive loss in CLIP) that focuses on task-specific knowledge
: regularizer loss that captures task-agnostic general knowledge. (e.g., L1 loss between outputs of CLIP and prompt learning methods)
However, the regularizer may not always be helpful.
Korea University
MLV Lab
Methods
> Goal
: downstream loss (contrastive loss in CLIP) that focuses on task-specific knowledge
: regularizer loss that captures task-agnostic general knowledge.
Korea University
MLV Lab
Methods
> Prompt learning via meta-regularization
Inner Loop
Image
Soft prompt
Text
Soft prompt
Update (Eq. (19))
Outer Loop
Image
Text
Update
Forward
Backward
Learnable
Frozen
Soft prompt
Soft prompt
Eq. (20), (21)
Update soft prompts with gradients induced by the contrastive loss and modulated gradients from the regularizer (inner loop):
Korea University
MLV Lab
Methods
> Prompt learning via meta-regularization
Inner Loop
Image
Soft prompt
Text
Soft prompt
Update (Eq. (19))
Outer Loop
Image
Text
Update
Forward
Backward
Learnable
Frozen
Soft prompt
Soft prompt
Eq. (20), (21)
After the update, the soft prompts and gradient modulation function are optimized for the validation set (outer-loop):
Korea University
MLV Lab
Methods
> Task augmentation
Inner Loop
Image
Soft prompt
Text
Soft prompt
Update (Eq. (19))
Outer Loop
Image
Text
Update
Forward
Backward
Learnable
Frozen
Soft prompt
Soft prompt
Eq. (20), (21)
Generates new labels to augment many tasks (data) encouraging the parameters to be optimized for diverse tasks (data):
Korea University
MLV Lab
Experiments
> Base-to-base/Base-to-new generalization
Korea University
MLV Lab
Experiments
> Domain generalization
Korea University
MLV Lab
Experiments
> Ablation studies
MetaLearn : meta-learning
TaskAug: Task augmentation
MetaReg: Meta-regularization
Our proposed task augmentation (TaskAug) and meta-regularization (MetaReg) contributes to the performance improvement of ProMetaR.
Korea University
MLV Lab
Experiments
> Analysis
Task overfitting score
ProMetaR with diverse methods
tos (task-overfitting score)
The gains of ProMetaR are relatively high when the task overfitting is high.
ProMetaR can also be applied to any prompt learning methods such as CoOp and VPT.
Korea University
MLV Lab
Conclusion