paper-with-me

홈 › Papers

Large Language Models as Optimizers

2023-09-07 · Chengrun Yang, Xuezhi Wang, Yifeng Lu, Hanxiao Liu, Quoc V. Le, Denny Zhou, Xinyun Chen

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 our main application in 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. Code at https://github.com/google-deepmind/opro.

📄 PDF Abstract BibTeX arXiv:2309.03409

Code (4)

google-deepmind/opro 공식 구현
finitearth/promptolution
thunderous77/glape pytorch
yaolu/random-prompt pytorch

Tasks

GSM8K

Methods 이 논문이 사용한 방법론

Linear Regression Linear Regression is a method for modelling a relationship between a dependent variable and independent variables. These models can be fit with numerous approaches. The most…

Similar Papers 제목 키워드 기반

metaTextGrad: Automatically optimizing language model optimizers

2025-05-24 · Guowei Xu, Mert Yuksekgonul, Carlos Guestrin, James Zou

Large language models (LLMs) are increasingly used in learning algorithms, evaluations, and optimization tasks. Recent studies have shown that using LLM-based optimizers to automatically optimize model prompts, demonstra…

Language ModelingLanguage Modellingmodel

Navigating LLM Valley: From AdamW to Memory-Efficient and Matrix-Based Optimizers

2026-05-09 · Aditya Ranganath arxiv

Training large language models requires optimization algorithms that are not only statistically effective, but also computationally and memory efficient at extreme scale. Although Adam remains the dominant optimizer for …

MARS-M: When Variance Reduction Meets Matrices

2025-10-20 · Yifeng Liu, Angela Yuan, Quanquan Gu arxiv

Matrix-based preconditioned optimizers, such as Muon, have recently been shown to be more efficient than scalar-based optimizers for training large-scale neural networks, including large language models (LLMs). Recent be…

Unleashing the Potential of Large Language Models as Prompt Optimizers: Analogical Analysis with Gradient-based Model Optimizers

2024-02-27 · Xinyu Tang, Xiaolei Wang, Wayne Xin Zhao, Siyuan Lu 외

Automatic prompt optimization is an important approach to improving the performance of large language models (LLMs). Recent research demonstrates the potential of using LLMs as prompt optimizers, which can generate impro…

MMLU

HUB: Guiding Learned Optimizers with Continuous Prompt Tuning

2023-05-26 · Gaole Dai, Wei Wu, Ziyu Wang, Jie Fu 외

Learned optimizers are a crucial component of meta-learning. Recent advancements in scalable learned optimizers have demonstrated their superior performance over hand-designed optimizers in various tasks. However, certai…

Meta-Learning