Scaling Textual Gradients via Sampling-Based Momentum
summary
Finds that naive data scaling for prompt optimization breaks because of context-length limits and long-context degradation, not compute, so textual gradients oscillate or plateau as minibatch size grows. Proposes TSGD-M: momentum over prompt history that reweights updates by bootstrapped validation accuracy and uses Gumbel top-K sampling with prompt-wise and block-wise generations. Integrates with TextGrad, DSPy-COPRO, and AdalFlow, gives consistent accuracy gains across six benchmarks, lower inference cost, and works for GPT and Gemini models.
AI-written summary · about
