Large Language Models as Optimizers
AI-generated Key Points
- Proposal of Optimization by PROmpting (OPRO) as a novel approach to leverage large language models (LLMs) as optimizers
- Highlighting the challenges posed by the absence of gradient in derivative-based algorithms
- Introduction of OPRO as a simple and effective solution
- OPRO framework involves using LLMs to generate new solutions from prompts containing previously generated solutions with their values
- Evaluation and addition of new solutions to the prompt for the next optimization step
- Demonstration of effectiveness on linear regression and traveling salesman problems
- Exploration of prompt optimization to maximize task accuracy
- Comparison between prompts optimized by OPRO and human-designed prompts, showing superior performance by OPRO (up to 8% on GSM8K and up to 50% on Big-Bench Hard tasks)
- Potential of OPRO in improving optimization tasks across different domains.
Authors: Chengrun Yang, Xuezhi Wang, Yifeng Lu, Hanxiao Liu, Quoc V. Le, Denny Zhou, Xinyun Chen
Abstract: Optimization is ubiquitous. While derivative-based algorithms have been powerful tools for various problems, the absence of gradient imposes challenges on many real-world applications. In this work, we propose Optimization by PROmpting (OPRO), a simple and effective approach to leverage large language models (LLMs) as optimizers, where the optimization task is described in natural language. In each optimization step, the LLM generates new solutions from the prompt that contains previously generated solutions with their values, then the new solutions are evaluated and added to the prompt for the next optimization step. We first showcase OPRO on linear regression and traveling salesman problems, then move on to prompt optimization where the goal is to find instructions that maximize the task accuracy. With a variety of LLMs, we demonstrate that the best prompts optimized by OPRO outperform human-designed prompts by up to 8% on GSM8K, and by up to 50% on Big-Bench Hard tasks.
Ask questions about this paper to our AI assistant
You can also chat with multiple papers at once here.
Assess the quality of the AI-generated content by voting
Score: 0
Why do we need votes?
Votes are used to determine whether we need to re-run our summarizing tools. If the count reaches -10, our tools can be restarted.
The previous summary was created more than a year ago and can be re-run (if necessary) by clicking on the Run button below.
Similar papers summarized with our AI tools
Navigate through even more similar papers through a
tree representationLook for similar papers (in beta version)
By clicking on the button above, our algorithm will scan all papers in our database to find the closest based on the contents of the full papers and not just on metadata. Please note that it only works for papers that we have generated summaries for and you can rerun it from time to time to get a more accurate result while our database grows.
Disclaimer: The AI-based summarization tool and virtual assistant provided on this website may not always provide accurate and complete summaries or responses. We encourage you to carefully review and evaluate the generated content to ensure its quality and relevance to your needs.