upcarta
  • Sign In
  • Sign Up
  • Explore
  • Search

Large Language Models as Optimizers

  • Paper
  • Sep 7, 2023
  • #Algorithm #Naturallanguageprocessing
Chengrun Yang
@ChengrunYang
(Author)
Xuezhi Wang
@XuezhiWang
(Author)
Yifeng Lu
@yifenglou
(Author)
arxiv.org
Read on arxiv.org
1 Recommender
1 Mention
Optimization is ubiquitous. While derivative-based algorithms have been powerful tools for various problems, the absence of gradient imposes challenges on many real-world applicatio... Show More

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.

Show Less
Recommend
Post
Save
Complete
Collect
Mentions
See All
Elvis Saravia Omarsar @omarsar0 · Sep 8, 2023
  • Post
  • From Twitter
LLMs as Optimizers This is a really neat idea. This new paper from Google DeepMind proposes an approach where the optimization problem is described in natural language. An LLM is then instructed to iteratively generate new solutions based on the defined problem and previously…
  • upcarta ©2025
  • Home
  • About
  • Terms
  • Privacy
  • Cookies
  • @upcarta