paper-with-me

홈 › Papers

Automatic Engineering of Long Prompts

2023-11-16 · Cho-Jui Hsieh, Si Si, Felix X. Yu, Inderjit S. Dhillon

Large language models (LLMs) have demonstrated remarkable capabilities in solving complex open-domain tasks, guided by comprehensive instructions and demonstrations provided in the form of prompts. However, these prompts can be lengthy, often comprising hundreds of lines and thousands of tokens, and their design often requires considerable human effort. Recent research has explored automatic prompt engineering for short prompts, typically consisting of one or a few sentences. However, the automatic design of long prompts remains a challenging problem due to its immense search space. In this paper, we investigate the performance of greedy algorithms and genetic algorithms for automatic long prompt engineering. We demonstrate that a simple greedy approach with beam search outperforms other methods in terms of search efficiency. Moreover, we introduce two novel techniques that utilize search history to enhance the effectiveness of LLM-based mutation in our search algorithm. Our results show that the proposed automatic long prompt engineering algorithm achieves an average of 9.2% accuracy gain on eight tasks in Big Bench Hard, highlighting the significance of automating prompt designs to fully harness the capabilities of LLMs.

📄 PDF Abstract BibTeX arXiv:2311.10117

Code (0)

등록된 구현이 없습니다.

Tasks

Prompt Engineering

Similar Papers 제목 키워드 기반

APEER: Automatic Prompt Engineering Enhances Large Language Model Reranking

2024-06-20 · Can Jin, Hongwu Peng, Shiyu Zhao, Zhenting Wang 외

Large Language Models (LLMs) have significantly enhanced Information Retrieval (IR) across various modules, such as reranking. Despite impressive performance, current zero-shot relevance ranking with LLMs heavily relies …

Information RetrievalLanguage ModelingLanguage ModellingLarge Language Model+3

Optimizing Prompts for Text-to-Image Generation

2022-12-19 · NeurIPS 2023 11 · Yaru Hao, Zewen Chi, Li Dong, Furu Wei

Well-designed prompts can guide text-to-image models to generate amazing images. However, the performant prompts are often model-specific and misaligned with user input. Instead of laborious human engineering, we propose…

Language ModelingLanguage ModellingPrompt Engineeringreinforcement-learning+3

SSP: A Simple and Safe automatic Prompt engineering method towards realistic image synthesis on LVM

2024-01-02 · Weijin Cheng, Jianzhi Liu, Jiawen Deng, Fuji Ren

Recently, text-to-image (T2I) synthesis has undergone significant advancements, particularly with the emergence of Large Language Models (LLM) and their enhancement in Large Vision Models (LVM), greatly enhancing the ins…

Image GenerationInstruction FollowingPrompt Engineering

A Simple Zero-shot Prompt Weighting Technique to Improve Prompt Ensembling in Text-Image Models

2023-02-13 · James Urquhart Allingham, Jie Ren, Michael W Dusenberry, Xiuye Gu 외

Contrastively trained text-image models have the remarkable ability to perform zero-shot classification, that is, classifying previously unseen images into categories that the model has never been explicitly trained to i…

Prompt Engineeringzero-shot-classificationZero-Shot Learning

TIPO: Text to Image with Text Presampling for Prompt Optimization

2024-11-12 · Shih-Ying Yeh, Sang-Hyun Park, Giyeong Oh, Min Song 외

TIPO (Text to Image with text pre-sampling for Prompt Optimization) is an innovative framework designed to enhance text-to-image (T2I) generation by language model (LM) for automatic prompt engineering. By refining and e…

Image GenerationLanguage ModelingLanguage ModellingPrompt Engineering+1