跳到正文
EasyXiv 检索
投稿 关于 登录

按回车检索 · 直接输入编号(如 1706.03762)可跳转到论文

计算机科学 > 机器学习

arXiv:2302.03668 (cs)
[提交于 2023年6月2日]

标题:Hard Prompts Made Easy: Gradient-Based Discrete Optimization for Prompt Tuning and Discovery

作者:Yuxin Wen, Neel Jain, John Kirchenbauer, Micah Goldblum, Jonas Geiping, Tom Goldstein
查看论文《Hard Prompts Made Easy: Gradient-Based Discrete Optimization for Prompt Tuning and Discovery》的 PDF
查看中文 PDF 查看原文 PDF EasyResearch 阅读
摘要:The strength of modern generative models lies in their ability to be controlled through text-based prompts. Typical "hard" prompts are made from interpretable words and tokens, and must be hand-crafted by humans. There are also "soft" prompts, which consist of continuous feature vectors. These can be discovered using powerful optimization methods, but they cannot be easily interpreted, re-used across models, or plugged into a text-based interface. We describe an approach to robustly optimize hard text prompts through efficient gradient-based optimization. Our approach automatically generates hard text-based prompts for both text-to-image and text-to-text applications. In the text-to-image setting, the method creates hard prompts for diffusion models, allowing API users to easily generate, discover, and mix and match image concepts without prior knowledge on how to prompt the model. In the text-to-text setting, we show that hard prompts can be automatically discovered that are effective in tuning LMs for classification.
评论: 15 pages, 12 figures, Code is available at https://github.com/YuxinWenRick/hard-prompts-made-easy
主题: 机器学习 (cs.LG); 计算与语言 (cs.CL)
引用方式: arXiv:2302.03668 [cs.LG]
  (或者 arXiv:2302.03668v1 [cs.LG] 对于此版本)
  https://doi.org/10.48550/arXiv.2302.03668

提交历史

来自:Yuxin Wen
[v1] 2023年6月2日 星期五 00:00:00 UTC
全文链接:

访问论文:

  • 查看中文 PDF
  • 查看原文 PDF
  • EasyResearch 阅读
  • TeX 源文件
  • arXiv 原文页面
查看许可

当前浏览上下文:

cs.LG
< 上一篇   |   下一篇 >
最新 | 近期 | 2023-06
切换浏览方式为:
cs
cs.CL

参考文献与引用

  • Google Scholar
  • Semantic Scholar

BibTeX 格式的引用

EasyXiv 是独立运营的中文预印本站点,与 arXiv 及康奈尔大学无隶属关系。 论文元数据与原文来自 arXiv.org,感谢 arXiv 提供开放获取服务。
关于 · 帮助 · 投稿指南 · 版权 · arXiv 原站