Large Language Models as Optimizers

Prompt tuning, Regression

LLMs can be used as an optimizer. For instance, for a linear regression, we can prompt an LLM with (parameters, error) tuples and then ask it to find parameters that lower the error. The results from this can then be fed again with the same metaprompt.

This procedure can be applied to the prompts. Given a set of (prompt, score), ask LLMs to find a better prompt to improve the score.