Hard Prompts Made Easy: Gradient-Based Discrete Optimization for Prompt Tuning and Discovery
–Neural Information Processing Systems
The strength of modern generative models lies in their ability to be controlled through prompts. Hard prompts comprise interpretable words and tokens, and are typically hand-crafted by humans. Soft prompts, on the other hand, consist of continuous feature vectors. These can be discovered using powerful optimization methods, but they cannot be easily edited, re-used across models, or plugged into a text-based interface. We describe an easy-to-use approach to automatically optimize hard text prompts through efficient gradient-based optimization.
Neural Information Processing Systems
Jan-19-2025, 17:15:26 GMT
- Technology: