1 of 14

Prompt Learning via Meta-Regularization

Jinyoung Park, Juyeon Ko, Hyunwoo J. Kim

​

Department of Computer Science and Engineering , Korea University

​

Korea University

MLV Lab

2 of 14

Korea University

​

​

​

​

​

​

​

​

​

​

​

​

MLV Lab

Introduction

> CLIP

CLIP (ICML 2021)

Generalizability

Full finetuning

Contrastive loss

3 of 14

Korea University

​

​

​

​

​

​

​

​

​

​

​

​

MLV Lab

Introduction

> Existing prompt learning methods

CoOp (IJCV 2022)

VPT (ECCV 2022)

CoCoOp (CVPR 2022)

MaPLe (CVPR 2023)

4 of 14

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

5 of 14

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.

6 of 14

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.

7 of 14

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):

8 of 14

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):

9 of 14

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):

10 of 14

Korea University

​

​

​

​

​

​

​

​

​

​

​

​

MLV Lab

Experiments

> Base-to-base/Base-to-new generalization

11 of 14

Korea University

​

​

​

​

​

​

​

​

​

​

​

​

MLV Lab

Experiments

> Domain generalization

12 of 14

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.

​

13 of 14

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.

14 of 14

Korea University

​

​

​

​

​

​

​

​

​

​

​

​

MLV Lab

Conclusion

  • We propose ProMetaR, a prompt learning framework for improving the generalizability of the prompt learning methods.

​

  • ProMetaR meta-learns both the regularizer and learnable prompts, incorporating task augmentation for more effective meta-learning.

​

  • The extensive experiments demonstrate the effectiveness and robustness of ProMetaR under base-to-base/base-to-new and domain generalization.