English

Textual Gradients are a Flawed Metaphor for Automatic Prompt Optimization

Computation and Language 2025-12-16 v1 Machine Learning

Abstract

A well-engineered prompt can increase the performance of large language models; automatic prompt optimization techniques aim to increase performance without requiring human effort to tune the prompts. One leading class of prompt optimization techniques introduces the analogy of textual gradients. We investigate the behavior of these textual gradient methods through a series of experiments and case studies. While such methods often result in a performance improvement, our experiments suggest that the gradient analogy does not accurately explain their behavior. Our insights may inform the selection of prompt optimization strategies, and development of new approaches.

Keywords

Cite

@article{arxiv.2512.13598,
  title  = {Textual Gradients are a Flawed Metaphor for Automatic Prompt Optimization},
  author = {Daniel Melcer and Qi Chen and Wen-Hao Chiang and Shweta Garg and Pranav Garg and Christian Bock},
  journal= {arXiv preprint arXiv:2512.13598},
  year   = {2025}
}
R2 v1 2026-07-01T08:25:43.510Z