ZhangYuanhan-AI/NOAH

★ 241⑂ 11

[TPAMI] Searching prompt modules for parameter-efficient transfer learning.

About ZhangYuanhan-AI/NOAH

ZhangYuanhan-AI/NOAH is an open-source project on GitHub, mainly written in Python. [TPAMI] Searching prompt modules for parameter-efficient transfer learning. It currently holds 241 stars and 11 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 ZhangYuanhan-AI/NOAH · default branch - · size 0 KB · watchers 0 · source: GitHub REST API and repository README

README

Neural Prompt Search

Yuanhan ZhangKaiyang ZhouZiwei Liu
S-Lab, Nanyang Technological University

TL;DR

The idea is simple: we view existing parameter-efficient tuning modules, including Adapter, LoRA and VPT, as prompt modules and propose to search the optimal configuration via neural architecture search. Our approach is named NOAH (Neural prOmpt seArcH).

---

[arXiv][project page]

Updatas

[05/2022] arXiv paper has been released.

Environment Setup

conda create -n NOAH python=3.8
conda activate NOAH
pip install -r requirements.txt

Data Preparation

1. Visual Task Adaptation Benchmark (VTAB)

cd data/vtab-source
python get_vtab1k.py

2. Few-Shot and Domain Generation

Please refer to DATASETS.md to download the datasets. Please refer to files under data/XXX/XXX/annotations for the detail information.

Quick Start For NOAH

We use the VTAB experiments as examples.

1. Downloading the Pre-trained Model

| Model | Link | |-------|------| |ViT B/16 | link|

2. Supernet Training

sh configs/NOAH/VTAB/supernet/slurm_train_vtab.sh PATH-TO-YOUR-PRETRAINED-MODEL

3. Subnet Search

sh configs/NOAH/VTAB/search/slurm_search_vtab.sh PARAMETERS-LIMITES

4. Subnet Retraining

sh configs/NOAH/VTAB/subnet/slurm_retrain_vtab.sh PATH-TO-YOUR-PRETRAINED-MODEL
We add the optimal subnet architecture of each dataset in the `experiments/NOAH/subnet/VTAB`.

5. Performance

fig1

Citation

If you use this code in your research, please kindly cite this work.
@misc{zhang2022neural,
      title={Neural Prompt Search}, 
      author={Yuanhan Zhang and Kaiyang Zhou and Ziwei Liu},
      year={2022},
      eprint={2206.04673},
      archivePrefix={arXiv},
      primaryClass={cs.CV}
}

Acknoledgments

Part of the code is borrowed from CoOp, AutoFormer, timm and mmcv.

Thanks to Chong Zhou (https://chongzhou96.github.io/) for the code of downloading the VTAB-1k.

Hits

GitHub Stars & Activity

241Stars
11Forks
0Open issues
PythonLanguage

GitHub Popularity

GitHub stars241
Forks11
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