Extended Data Fig. 5: Prompt optimization details. | Nature

Extended Data Fig. 5: Prompt optimization details.

From: Optimizing generative AI by backpropagating language model feedback

Extended Data Fig. 5

(a) With TextGrad, we optimize a system prompt for gpt-3.5-turbo using gpt-4o as the gradient engine that provides the feedback during backpropagation. Supplementary Table 1 includes ablations with instruction-only and demonstration-only optimization with TextGrad. (b) We show an example of an optimized instruction for GSM8k. (c) We show an example of optimized in-context demonstrations for GSM8k.

Back to article page