Unleashing the Potential of Large Language Models as Prompt Optimizers: Analogical Analysis with Gradient-based Model Optimizers
Not on the map. Why?
Abstract (arXiv)
Automatic prompt optimization is an important approach to improving the performance of large language models (LLMs). Recent research demonstrates the potential of using LLMs as prompt optimizers, which can generate improved task prompts via iterative refinement. In this paper, we propose a novel perspective to investigate the design of LLM-based prompt optimizers, by drawing an analogy with gradient-based model optimizers. To connect these two approaches, we identify two pivotal factors in model parameter learning: update direction and update method. By systematically analyzing a rich set of improvement strategies on the two aspects, we further develop a capable Gradient-inspired LLM-based Prompt Optimizer called GPO. At each step, it first retrieves relevant prompts from the optimization trajectory as the update direction. Then, it utilizes the generation-based refinement strategy to perform the update, while controlling the edit distance through a cosine-based decay strategy. Extensive experiments demonstrate the effectiveness and efficiency of GPO. In particular, GPO brings an additional improvement of up to 56.8% on Big-Bench Hard and 62.6% on MMLU compared to baseline methods. The code is available at https://github.com/RUCAIBox/GPO.
Key facts. Cited by 33 papers in the map (data through 7 Oct 2026). Builds on 29 of its 46 references that are in the map. First posted on arXiv 27 Feb 2024.
Builds on
29 of 46 references.
References · 29
- 2023Llama 2: Open Foundation and Fine-Tuned Chat Modelscited by 12,865
- 2021Training Verifiers to Solve Math Word Problemscited by 9,743
- 2020Measuring Massive Multitask Language Understandingcited by 7,768
- 2022Large Language Models are Zero-Shot Reasonerscited by 4,323
- 2021Prefix-Tuning: Optimizing Continuous Prompts for Generationcited by 3,878
- 2021The Power of Scale for Parameter-Efficient Prompt Tuningcited by 3,769
- 2021Convex optimizationcited by 2,479
- 2022Beyond the Imitation Game: Quantifying and extrapolating the capabilities of language modelscited by 1,970
- 2022Challenging BIG-Bench Tasks and Whether Chain-of-Thought Can Solve Themcited by 1,767
- 2017Accurate, Large Minibatch SGD: Training ImageNet in 1 Hourcited by 1,479
- 2021Calibrate Before Use: Improving Few-Shot Performance of Language Modelscited by 1,371
- 2018Averaging Weights Leads to Wider Optima and Better Generalizationcited by 1,194
17 more
- 2021Fantastically Ordered Prompts and Where to Find Them: Overcoming Few-Shot Prompt Order Sensitivitycited by 1,122
- 2023Large Language Models Cannot Self-Correct Reasoning Yetcited by 965
- 2022Super-NaturalInstructions: Generalization via Declarative Instructions on 1600+ NLP Taskscited by 858
- 2017Program Induction by Rationale Generation : Learning to Solve and Explain Algebraic Word Problemscited by 642
- 2023Automatic Prompt Optimization with "Gradient Descent" and Beam Searchcited by 628
- 2023Promptbreeder: Self-Referential Self-Improvement Via Prompt Evolutioncited by 521
- 2023Larger language models do in-context learning differentlycited by 386
- 2022RLPrompt: Optimizing Discrete Text Prompts with Reinforcement Learningcited by 361
- 2016Solving General Arithmetic Word Problemscited by 353
- 2023EvoPrompt: Connecting LLMs with Evolutionary Algorithms Yields Powerful Prompt Optimizerscited by 189
- 2022GrIPS: Gradient-free, Edit-based Instruction Search for Prompting Large Language Modelscited by 127
- 2018A Closer Look at Deep Learning Heuristics: Learning rate restarts, Warmup and Distillationcited by 110
- 2019A Survey of Optimization Methods from a Machine Learning Perspectivecited by 90
- 2024Prompt Design and Engineering: Introduction and Advanced Methodscited by 45
- 2022GPS: Genetic Prompt Search for Efficient Few-shot Learningcited by 37
- 2023Agent Instructs Large Language Models to be General Zero-Shot Reasonerscited by 32
- 2023InstOptima: Evolutionary Multi-objective Instruction Optimization via Large Language Model-based Instruction Operatorscited by 16
Built on by
Citing papers per year: 2024: 9; 2025: 15; 2026: 9.
33 papers.
Sort:
By area:
- 2024FinCon: A Synthesized LLM Multi-Agent System with Conceptual Verbal Reinforcement for Enhanced Financial Decision Makingcited by 112
- 2025X-Teaming: Multi-Turn Jailbreaks and Defenses with Adaptive Multi-Agentscited by 112
- 2024A Systematic Survey on Large Language Models for Algorithm Designcited by 65
- 2024Trace is the Next AutoDiff: Generative Optimization with Rich Feedback, Execution Traces, and LLMscited by 62
- 2024Efficient Prompting Methods for Large Language Models: A Surveycited by 46
- 2024Efficient and Accurate Prompt Optimization: the Benefit of Memory in Exemplar-Guided Reflectioncited by 18
- 2024StraGo: Harnessing Strategic Guidance for Prompt Optimizationcited by 16
- 2024RePrompt: Planning by Automatic Prompt Engineering for Large Language Models Agentscited by 15
- 2025LongReD: Mitigating Short-Text Degradation of Long-Context Large Language Models via Restoration Distillationcited by 14
- 2025DLPO: Towards a Robust, Efficient, and Generalizable Prompt Optimization Framework from a Deep-Learning Perspectivecited by 7
- 2025A Survey of Automatic Prompt Optimization with Instruction-focused Heuristic-based Search Algorithmcited by 6
- 2025Analytical Survey of Learning with Low-Resource Data: From Analysis to Investigationcited by 5
21 more
- 2026Adaptive Prompt Structure Factorization: A Framework for Self-Discovering and Optimizing Compositional Prompt Programscited by 5
- 2025Local Prompt Optimizationcited by 4
- 2025Unveiling Knowledge Utilization Mechanisms in LLM-based Retrieval-Augmented Generationcited by 4
- 2025ACEvo: Adversarial Co-Evolution of Problem Distributions and Solvers for Combinatorial Optimizationcited by 4
- 2026Generalizable Self-Evolving Memory for Automatic Prompt Optimizationcited by 4
- 2025GREATERPROMPT: A Unified, Customizable, and High-Performing Open-Source Toolkit for Prompt Optimizationcited by 3
- 2025Prompt Smart, Pay Less: Cost-Aware APO for Real-World Applicationscited by 2
- 2026Learning How and What to Memorize: Cognition-Inspired Two-Stage Optimization for Evolving Memorycited by 2
- 2025CUFG: Curriculum Unlearning Guided by the Forgetting Gradientcited by 1
- 2026Efficient Multi-objective Prompt Optimization via Pure-exploration Banditscited by 1
- 2026When Gradients Collide: Failure Modes of Multi-Objective Prompt Optimization for LLM Judgescited by 1
- 2024Enhancing AI-Driven Psychological Consultation: Layered Prompts with Large Language Modelscited by 0
- 2024TP-Eval: Tap Multimodal LLMs' Potential in Evaluation by Customizing Promptscited by 0
- 2025OmniReflect: Discovering Transferable Constitutions for LLM agents via Neuro-Symbolic Reflectionscited by 0
- 2025Prompt reinforcing for long-term planning of large language modelscited by 0
- 2025PromptFlow: Training Prompts Like Neural Networkscited by 0
- 2025ELPO: Ensemble Learning Based Prompt Optimization for Large Language Modelscited by 0
- 2026Training-Free Test-Time Contrastive Learning for Large Language Modelscited by 0
- 2026Prompt Segmentation and Annotation Optimisation: Controlling LLM Behaviour via Optimised Segment-Level Annotationscited by 0
- 2026SafeCtrl-RL: Inference-Time Adaptive Behaviour Control for LLM Dialogue via RL-Driven Prompt Optimisationcited by 0
- 2026Efficient Task Adaptation in Large Language Models: A Survey of Weight-Based, Prompt-Based, and Embedding-Based Adaptationscited by 0
- 2026Efficient Task Adaptation in Large Language Models: A Survey of Weight-Based, Prompt-Based, and Embedding-Based Adaptations1 Oct 2026
- 2026When Gradients Collide: Failure Modes of Multi-Objective Prompt Optimization for LLM Judges25 May 2026
- 2026SafeCtrl-RL: Inference-Time Adaptive Behaviour Control for LLM Dialogue via RL-Driven Prompt Optimisation25 May 2026
- 2026Prompt Segmentation and Annotation Optimisation: Controlling LLM Behaviour via Optimised Segment-Level Annotations14 May 2026
- 2026Efficient Multi-objective Prompt Optimization via Pure-exploration Bandits14 May 2026
- 2026Learning How and What to Memorize: Cognition-Inspired Two-Stage Optimization for Evolving Memory1 May 2026
- 2026Training-Free Test-Time Contrastive Learning for Large Language Models15 Apr 2026
- 2026Adaptive Prompt Structure Factorization: A Framework for Self-Discovering and Optimizing Compositional Prompt Programs8 Apr 2026
- 2026Generalizable Self-Evolving Memory for Automatic Prompt Optimization23 Mar 2026
- 2025ELPO: Ensemble Learning Based Prompt Optimization for Large Language Models20 Nov 2025
- 2025PromptFlow: Training Prompts Like Neural Networks14 Oct 2025
- 2025Analytical Survey of Learning with Low-Resource Data: From Analysis to Investigation10 Oct 2025
21 more
- 2025Prompt reinforcing for long-term planning of large language models7 Oct 2025
- 2025CUFG: Curriculum Unlearning Guided by the Forgetting Gradient18 Sep 2025
- 2025Prompt Smart, Pay Less: Cost-Aware APO for Real-World Applications18 Jul 2025
- 2025OmniReflect: Discovering Transferable Constitutions for LLM agents via Neuro-Symbolic Reflections20 Jun 2025
- 2025ACEvo: Adversarial Co-Evolution of Problem Distributions and Solvers for Combinatorial Optimization3 Jun 2025
- 2025Unveiling Knowledge Utilization Mechanisms in LLM-based Retrieval-Augmented Generation17 May 2025
- 2025Local Prompt Optimization29 Apr 2025
- 2025X-Teaming: Multi-Turn Jailbreaks and Defenses with Adaptive Multi-Agents15 Apr 2025
- 2025GREATERPROMPT: A Unified, Customizable, and High-Performing Open-Source Toolkit for Prompt Optimization4 Apr 2025
- 2025DLPO: Towards a Robust, Efficient, and Generalizable Prompt Optimization Framework from a Deep-Learning Perspective17 Mar 2025
- 2025A Survey of Automatic Prompt Optimization with Instruction-focused Heuristic-based Search Algorithm26 Feb 2025
- 2025LongReD: Mitigating Short-Text Degradation of Long-Context Large Language Models via Restoration Distillation11 Feb 2025
- 2024Efficient and Accurate Prompt Optimization: the Benefit of Memory in Exemplar-Guided Reflection12 Nov 2024
- 2024TP-Eval: Tap Multimodal LLMs' Potential in Evaluation by Customizing Prompts23 Oct 2024
- 2024A Systematic Survey on Large Language Models for Algorithm Design11 Oct 2024
- 2024StraGo: Harnessing Strategic Guidance for Prompt Optimization11 Oct 2024
- 2024Enhancing AI-Driven Psychological Consultation: Layered Prompts with Large Language Models29 Aug 2024
- 2024FinCon: A Synthesized LLM Multi-Agent System with Conceptual Verbal Reinforcement for Enhanced Financial Decision Making9 Jul 2024
- 2024Trace is the Next AutoDiff: Generative Optimization with Rich Feedback, Execution Traces, and LLMs23 Jun 2024
- 2024RePrompt: Planning by Automatic Prompt Engineering for Large Language Models Agents17 Jun 2024
- 2024Efficient Prompting Methods for Large Language Models: A Survey1 Apr 2024
- 2024FinCon: A Synthesized LLM Multi-Agent System with Conceptual Verbal Reinforcement for Enhanced Financial Decision Makingcited by 112
- 2025X-Teaming: Multi-Turn Jailbreaks and Defenses with Adaptive Multi-Agentscited by 112
- 2024RePrompt: Planning by Automatic Prompt Engineering for Large Language Models Agentscited by 15
- 2025OmniReflect: Discovering Transferable Constitutions for LLM agents via Neuro-Symbolic Reflectionscited by 0
- 2025OmniReflect: Discovering Transferable Constitutions for LLM agents via Neuro-Symbolic Reflections20 Jun 2025
- 2025X-Teaming: Multi-Turn Jailbreaks and Defenses with Adaptive Multi-Agents15 Apr 2025
- 2024FinCon: A Synthesized LLM Multi-Agent System with Conceptual Verbal Reinforcement for Enhanced Financial Decision Making9 Jul 2024
- 2024RePrompt: Planning by Automatic Prompt Engineering for Large Language Models Agents17 Jun 2024
- 2025DLPO: Towards a Robust, Efficient, and Generalizable Prompt Optimization Framework from a Deep-Learning Perspectivecited by 7
- 2026Adaptive Prompt Structure Factorization: A Framework for Self-Discovering and Optimizing Compositional Prompt Programscited by 5
- 2026Training-Free Test-Time Contrastive Learning for Large Language Modelscited by 0
- 2026Training-Free Test-Time Contrastive Learning for Large Language Models15 Apr 2026
- 2026Adaptive Prompt Structure Factorization: A Framework for Self-Discovering and Optimizing Compositional Prompt Programs8 Apr 2026
- 2025DLPO: Towards a Robust, Efficient, and Generalizable Prompt Optimization Framework from a Deep-Learning Perspective17 Mar 2025
- 2024A Systematic Survey on Large Language Models for Algorithm Designcited by 65
- 2024Trace is the Next AutoDiff: Generative Optimization with Rich Feedback, Execution Traces, and LLMscited by 62
- 2024Efficient Prompting Methods for Large Language Models: A Surveycited by 46
- 2024Efficient and Accurate Prompt Optimization: the Benefit of Memory in Exemplar-Guided Reflectioncited by 18
- 2024StraGo: Harnessing Strategic Guidance for Prompt Optimizationcited by 16
- 2025LongReD: Mitigating Short-Text Degradation of Long-Context Large Language Models via Restoration Distillationcited by 14
- 2025A Survey of Automatic Prompt Optimization with Instruction-focused Heuristic-based Search Algorithmcited by 6
- 2025Analytical Survey of Learning with Low-Resource Data: From Analysis to Investigationcited by 5
- 2025Local Prompt Optimizationcited by 4
- 2025ACEvo: Adversarial Co-Evolution of Problem Distributions and Solvers for Combinatorial Optimizationcited by 4
- 2025GREATERPROMPT: A Unified, Customizable, and High-Performing Open-Source Toolkit for Prompt Optimizationcited by 3
- 2025Prompt Smart, Pay Less: Cost-Aware APO for Real-World Applicationscited by 2
12 most cited of 22 All 22 (JSON)
- 2026Efficient Task Adaptation in Large Language Models: A Survey of Weight-Based, Prompt-Based, and Embedding-Based Adaptations1 Oct 2026
- 2026When Gradients Collide: Failure Modes of Multi-Objective Prompt Optimization for LLM Judges25 May 2026
- 2026SafeCtrl-RL: Inference-Time Adaptive Behaviour Control for LLM Dialogue via RL-Driven Prompt Optimisation25 May 2026
- 2026Prompt Segmentation and Annotation Optimisation: Controlling LLM Behaviour via Optimised Segment-Level Annotations14 May 2026
- 2026Efficient Multi-objective Prompt Optimization via Pure-exploration Bandits14 May 2026
- 2026Learning How and What to Memorize: Cognition-Inspired Two-Stage Optimization for Evolving Memory1 May 2026
- 2025ELPO: Ensemble Learning Based Prompt Optimization for Large Language Models20 Nov 2025
- 2025PromptFlow: Training Prompts Like Neural Networks14 Oct 2025
- 2025Analytical Survey of Learning with Low-Resource Data: From Analysis to Investigation10 Oct 2025
- 2025Prompt reinforcing for long-term planning of large language models7 Oct 2025
- 2025Prompt Smart, Pay Less: Cost-Aware APO for Real-World Applications18 Jul 2025
- 2025ACEvo: Adversarial Co-Evolution of Problem Distributions and Solvers for Combinatorial Optimization3 Jun 2025
12 newest of 22 All 22 (JSON)