BeierZhu/Prompt-align

★ 171⑂ 10

[ICCV 2023] Prompt-aligned Gradient for Prompt Tuning

About BeierZhu/Prompt-align

BeierZhu/Prompt-align is an open-source project on GitHub, mainly written in Python. [ICCV 2023] Prompt-aligned Gradient for Prompt Tuning It currently holds 171 stars and 10 forks with 0 open issues, and was last pushed on an unknown date (repository created unknown).

Project Overview

AI Homed tracks it on the AI Prompt Engineering board.

GitHub Repository Details

Repository BeierZhu/Prompt-align · default branch - · size 0 KB · watchers 0 · source: GitHub REST API and repository README

README

[ICCV23] Prompt-aligned Gradient for Prompt Tuning

We present Prompt-aligned Gradient, dubbed ProGrad, to prevent prompt tuning from forgetting the the general knowledge learned from VLMs. In particular, ProGrad only updates the prompt whose gradient is aligned (or non-conflicting) to the “general direction”, which is represented as the gradient of the KL loss of the pre-defined prompt prediction. Extensive experiments demonstrate the stronger few-shot generalization ability of ProGrad over state-of-the-art prompt tuning methods.

image

[[paper link]](https://doi.org/10.48550/arxiv.2205.14865)

The codes are organized into two folders:

1. Dassl.ProGrad.pytorch is the modified toolbox of Dassl.pytorch. 2. ProGrad.public. To get the results in our paper, follow the README.md under ProGrad.public/ to set the environment.

Citation

If you find our paper or this project helps your research, please kindly consider citing our paper in your publication.

@inproceedings{https://doi.org/10.48550/arxiv.2205.14865,
  author = {Zhu, Beier and Niu, Yulei and Han, Yucheng and Wu, Yue and Zhang, Hanwang},
  title = {Prompt-aligned Gradient for Prompt Tuning},
  publisher = {International Conference on Computer Vision},
  year = {2023},
}

Acknowledgement

Our codes are built on top of CoOp and Dassl.

GitHub Stars & Activity

171Stars
10Forks
0Open issues
PythonLanguage

GitHub Popularity

GitHub stars171
Forks10
Open issues0
Primary languagePython
License-
Stars gained today0
Created-
Last pushed-

Trending History

Trending statusnot on today's boards

Related AI Projects

1

microsoft / promptflow

Python★ 11,244⑂ 1,123
2

promptslab / Promptify

Python★ 4,635⑂ 364
3
4

hegelai / prompttools

Python★ 3,055⑂ 256
5

Eladlev / AutoPrompt

Python★ 3,019⑂ 264
6

microsoftarchive / promptbench

Python★ 2,821⑂ 222
7

yaojingang / yao-open-prompts

Python★ 2,817⑂ 461
8

YiVal / YiVal

Python★ 2,134⑂ 328

More AI Rankings