Importance of Directional Feedback for LLM-Based Optimizers

Abstract

We study the potential of using large language models (LLMs) as an interactive optimizer for solving maximization problems on 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.

Cite

Text

Nie et al. "Importance of Directional Feedback for LLM-Based Optimizers." NeurIPS 2023 Workshops: FMDM, 2023.

Markdown

[Nie et al. "Importance of Directional Feedback for LLM-Based Optimizers." NeurIPS 2023 Workshops: FMDM, 2023.](https://mlanthology.org/neuripsw/2023/nie2023neuripsw-importance/)

BibTeX

@inproceedings{nie2023neuripsw-importance,
  title     = {{Importance of Directional Feedback for LLM-Based Optimizers}},
  author    = {Nie, Allen and Cheng, Ching-An and Kolobov, Andrey and Swaminathan, Adith},
  booktitle = {NeurIPS 2023 Workshops: FMDM},
  year      = {2023},
  url       = {https://mlanthology.org/neuripsw/2023/nie2023neuripsw-importance/}
}