GPS: Genetic Prompt Search for Efficient Few-Shot Learning
Hanwei Xu, Yujun Chen, Yulun Du, Nan Shao, Yanggang Wang, Haiyu Li, Zhilin Yang
Abstract
Prompt-based techniques have demostrated great potential for improving the few-shot generalization of pretrained language models. However, their performance heavily relies on the manual design of prompts and thus requires a lot of human efforts. In this paper, we introduce Genetic Prompt Search (GPS) to improve few-shot learning with prompts, which utilizes a genetic algorithm to automatically search for high-performing prompts. GPS is gradient-free and requires no update of model parameters but only a small validation set. Experiments on diverse datasets proved the effectiveness of GPS, which outperforms manual prompts by a large margin of 2.6 points. Our method is also better than other parameter-efficient tuning methods such as prompt tuning.
Ask Lune
Know this paper in minutes, not an afternoon.
Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.
27 top-tier papers have cited it since. Know what they found before your reviewers do.
Lune can draw on
the full paper · the top-tier papers that cite it · related work
Free to start. No credit card required.
Lineage
- Black-Box Tuning for Language-Model-as-a-Service cites True Few-Shot Learning with Language Models
- PromptAgent: Strategic Planning with Language Models Enables Expert-level Prompt Optimization cites LoRA: Low-Rank Adaptation of Large Language Models
- PromptAgent: Strategic Planning with Language Models Enables Expert-level Prompt Optimization cites AutoPrompt: Eliciting Knowledge from Language Models with Automatically Generated Prompts
- PromptAgent: Strategic Planning with Language Models Enables Expert-level Prompt Optimization cites Large Language Models as Optimizers
- PromptAgent: Strategic Planning with Language Models Enables Expert-level Prompt Optimization cites Automatic Prompt Optimization with "Gradient Descent" and Beam Search
- Accelerating Greedy Coordinate Gradient and General Prompt Optimization via Probe Sampling cites AutoPrompt: Eliciting Knowledge from Language Models with Automatically Generated Prompts
- Accelerating Greedy Coordinate Gradient and General Prompt Optimization via Probe Sampling cites Automatic Prompt Optimization with "Gradient Descent" and Beam Search
- Accelerating Greedy Coordinate Gradient and General Prompt Optimization via Probe Sampling cites Training language models to follow instructions with human feedback
- PIVOT: Iterative Visual Prompting Elicits Actionable Knowledge for VLMs cites Large Language Models as Optimizers
- PIVOT: Iterative Visual Prompting Elicits Actionable Knowledge for VLMs cites Automatic Prompt Optimization with "Gradient Descent" and Beam Search
- Large Language Models as Optimizers cites AutoPrompt: Eliciting Knowledge from Language Models with Automatically Generated Prompts
- Large Language Models as Optimizers cites Automatic Prompt Optimization with "Gradient Descent" and Beam Search
- True Few-Shot Learning with Language Models cites AutoPrompt: Eliciting Knowledge from Language Models with Automatically Generated Prompts
Cited by top-tier papers27
- Large Language Models as OptimizersChengrun Yang, Xuezhi Wang, Yifeng Lu, Hanxiao Liu et al.ICLR 2024 · 817 citations
- PromptAgent: Strategic Planning with Language Models Enables Expert-level Prompt OptimizationXinyuan Wang, Chenxi Li, Zhen Wang, Fan Bai et al.ICLR 2024 · 226 citations
- PIVOT: Iterative Visual Prompting Elicits Actionable Knowledge for VLMsSoroush Nasiriany, Fei Xia, Wenhao Yu, Ted Xiao et al.ICML 2024 · 212 citations
- Automatic Prompt Optimization with "Gradient Descent" and Beam SearchReid Pryzant, Dan Iter, Jerry Li, Yin Tat Lee et al.EMNLP 2023 · 137 citations
- Accelerating Greedy Coordinate Gradient and General Prompt Optimization via Probe SamplingYiran Zhao, Wenyue Zheng, Tianle Cai, Do Xuan Long et al.NeurIPS 2024 · 46 citations
Builds on8
- Training language models to follow instructions with human feedbackLong Ouyang, Jeffrey Wu, Xu Jiang, Diogo Almeida et al.NeurIPS 2022 · 24,707 citations
- LoRA: Low-Rank Adaptation of Large Language ModelsEdward J. Hu, Yelong Shen, Phillip Wallis, Zeyuan Allen-Zhu et al.ICLR 2022 · 18,833 citations
- AutoPrompt: Eliciting Knowledge from Language Models with Automatically Generated PromptsTaylor Shin, Yasaman Razeghi, Robert L. Logan IV, Eric Wallace et al.EMNLP 2020 · 1,162 citations
- True Few-Shot Learning with Language ModelsEthan Perez, Douwe Kiela, Kyunghyun ChoNeurIPS 2021 · 547 citations
- Black-Box Tuning for Language-Model-as-a-ServiceTianxiang Sun, Yunfan Shao, Hong Qian, Xuanjing Huang et al.ICML 2022 · 343 citations
Related papers
- PPT: Pre-trained Prompt Tuning for Few-shot LearningYuxian Gu, Xu Han, Zhiyuan Liu, Minlie HuangACL 2022
- InfoPrompt: Information-Theoretic Soft Prompt Tuning for Natural Language UnderstandingJunda Wu, Tong Yu, Rui Wang, Zhao Song et al.NeurIPS 2023 · 48 citations
- Gradient-Regulated Meta-Prompt Learning for Generalizable Vision-Language ModelsJuncheng Li, Minghe Gao, Longhui Wei, Siliang Tang et al.ICCV 2023 · 34 citations
- Parameter-free Automatically Prompting: A Latent Pseudo Label Mapping Model for Prompt-based LearningJirui Qi, Richong Zhang, Junfan Chen, Jaein Kim et al.EMNLP Findings 2022
- Cutting Down on Prompts and Parameters: Simple Few-Shot Learning with Language ModelsRobert L. Logan IV, Ivana Balazevic, Eric Wallace, Fabio Petroni et al.ACL Findings 2022 · 133 citations
