Large Language Models as Optimizers

AI-generated keywords: Optimization Language Models OPRO Prompts Gradient

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.
Also access our AI generated: Comprehensive summary, Lay summary, Blog-like article; or ask questions about this paper to our AI assistant.

Authors: Chengrun Yang, Xuezhi Wang, Yifeng Lu, Hanxiao Liu, Quoc V. Le, Denny Zhou, Xinyun Chen

License: CC ZERO 1.0

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.

Submitted to arXiv on 07 Sep. 2023

Ask questions about this paper to our AI assistant

You can also chat with multiple papers at once here.

AI assistant instructions?

Results of the summarizing process for the arXiv paper: 2309.03409v1

In their paper titled "Large Language Models as Optimizers," Chengrun Yang, Xuezhi Wang, Yifeng Lu, Hanxiao Liu, Quoc V. Le, Denny Zhou, and Xinyun Chen propose a novel approach called Optimization by PROmpting (OPRO) to leverage large language models (LLMs) as optimizers for various real-world applications. The authors highlight the challenges posed by the absence of gradient in derivative-based algorithms and introduce OPRO as a simple and effective solution. The OPRO framework involves using LLMs to generate new solutions from prompts that contain previously generated solutions with their values. These new solutions are then evaluated and added to the prompt for the next optimization step. The authors demonstrate the effectiveness of OPRO on linear regression and traveling salesman problems. Furthermore, they explore prompt optimization where the goal is to find instructions that maximize task accuracy. They compare prompts optimized by OPRO with human-designed prompts and show that OPRO outperforms human-designed prompts by up to 8% on GSM8K and up to 50% on Big-Bench Hard tasks when using a variety of LLMs. The paper provides valuable insights into leveraging LLMs as optimizers and showcases the potential of OPRO in improving optimization tasks across different domains.
Created on 10 Sep. 2023

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 representation

Look 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.