Towards Optimizing with Large Language Models

Pei-Fu Guo, Ying-Hsuan Chen, Yun-Da Tsai, Shou-De Lin
10/8/2023
cs.LG

Official code: google-deepmind/opro (761 stars, Apache-2.0, last commit 2024-12-04).

Abstract

In this work, we conduct an assessment of the optimization capabilities of LLMs across various tasks and data sizes. Each of these tasks corresponds to unique optimization domains, and LLMs are required to execute these tasks with interactive prompting. That is, in each optimization step, the LLM generates new solutions from the past generated solutions with their values, and then the new solutions are evaluated and considered in the next optimization step. Additionally, we introduce three distinct metrics for a comprehensive assessment of task performance from various perspectives. These metrics offer the advantage of being applicable for evaluating LLM performance across a broad spectrum of optimization tasks and are less sensitive to variations in test samples. By applying these metrics, we observe that LLMs exhibit strong optimization capabilities when dealing with small-sized samples. However, their performance is significantly influenced by factors like data size and values, underscoring the importance of further research in the domain of optimization tasks for LLMs.

View on arXivView PDF

Code Implementations(1)

Apache-2.0

official code for "Large Language Models as Optimizers"

76193PythonOct 2, 20231 years agoApache-2.0

Similar Papers

Cite this paper

@article{guo2023towards,
  title  = {Towards Optimizing with Large Language Models},
  author = {Pei-Fu Guo and Ying-Hsuan Chen and Yun-Da Tsai and Shou-De Lin},
  year   = {2023},
  eprint = {2310.05204},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2310.05204v3}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2310.05204.svg)](https://codeofpaper.com/paper/2310.05204)

Discussion