The Importance of Directional Feedback for LLM-based Optimizers

Allen Nie, Ching-An Cheng, Andrey Kolobov, Adith Swaminathan
5/26/2024
cs.AIcs.CLcs.NE

No confident code implementation found for this paper. 1 possible match can be shown below.

Abstract

We study the potential of using large language models (LLMs) as an interactive optimizer for solving maximization problems in a text space using natural language and numerical feedback. Inspired by the classical optimization literature, we classify the natural language feedback into directional and non-directional, where the former is a generalization of the first-order feedback to the natural language space. We find that LLMs are especially capable of optimization when they are provided with {directional feedback}. Based on this insight, we design a new LLM-based optimizer that synthesizes directional feedback from the historical optimization trace to achieve reliable improvement over iterations. Empirically, we show our LLM-based optimizer is more stable and efficient in solving optimization problems, from maximizing mathematical functions to optimizing prompts for writing poems, compared with existing techniques.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. 1 weaker match is hidden by default — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Cite this paper

@article{nie2024importance,
  title  = {The Importance of Directional Feedback for LLM-based Optimizers},
  author = {Allen Nie and Ching-An Cheng and Andrey Kolobov and Adith Swaminathan},
  year   = {2024},
  eprint = {2405.16434},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2405.16434v2}
}

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/2405.16434.svg)](https://codeofpaper.com/paper/2405.16434)

Discussion