GReaTer: Gradients over Reasoning Makes Smaller Language Models Strong Prompt Optimizers
On the map: LLM reasoning → Prompting and chain-of-thought reasoning
Abstract (arXiv)
The effectiveness of large language models (LLMs) is closely tied to the design of prompts, making prompt optimization essential for enhancing their performance across a wide range of tasks. Many existing approaches to automating prompt engineering rely exclusively on textual feedback, refining prompts based solely on inference errors identified by large, computationally expensive LLMs. Unfortunately, smaller models struggle to generate high-quality feedback, resulting in complete dependence on large LLM judgment. Moreover, these methods fail to leverage more direct and finer-grained information, such as gradients, due to operating purely in text space. To this end, we introduce GReaTer, a novel prompt optimization technique that directly incorporates gradient information over task-specific reasoning. By utilizing task loss gradients, GReaTer enables self-optimization of prompts for open-source, lightweight language models without the need for costly closed-source LLMs. This allows high-performance prompt optimization without dependence on massive LLMs, closing the gap between smaller models and the sophisticated reasoning often needed for prompt refinement. Extensive evaluations across diverse reasoning tasks including BBH, GSM8k, and FOLIO demonstrate that GReaTer consistently outperforms previous state-of-the-art prompt optimization methods, even those reliant on powerful LLMs. Additionally, GReaTer-optimized prompts frequently exhibit better transferability and, in some cases, boost task performance to levels comparable to or surpassing those achieved by larger language models, highlighting the effectiveness of prompt optimization guided by gradients over reasoning. Code of GReaTer is available at https://github.com/psunlpgroup/GreaTer.
Key facts. Cited by 12 papers in the map (data through 7 Oct 2026). Placed in Prompting and chain-of-thought reasoning, one of 17 directions in LLM reasoning. Builds on 39 of its 41 references that are in the map. First posted on arXiv 12 Dec 2024.
Builds on
39 of 41 references.
Closest ancestors · 4
Same direction, newest first
- 2022Challenging BIG-Bench Tasks and Whether Chain-of-Thought Can Solve Them17 Oct
- 2022Text and Patterns: For Effective Chain of Thought, It Takes Two to Tango16 Sep
- 2022Large Language Models are Zero-Shot Reasoners24 May
- 2022Chain-of-Thought Prompting Elicits Reasoning in Large Language Models28 Jan
Other references · 35
- 2020Language Models are Few-Shot Learnerscited by 32,199
- 2023GPT-4 Technical Reportcited by 18,132
- 2021Training Verifiers to Solve Math Word Problemscited by 9,743
- 2023Reflexion: Language Agents with Verbal Reinforcement Learningcited by 4,064
- 2021Prefix-Tuning: Optimizing Continuous Prompts for Generationcited by 3,878
- 2021The Power of Scale for Parameter-Efficient Prompt Tuningcited by 3,769
- 2024Gemini 1.5: Unlocking multimodal understanding across millions of tokens of contextcited by 3,175
- 2023Universal and Transferable Adversarial Attacks on Aligned Language Modelscited by 2,914
- 2024Gemma 2: Improving Open Language Models at a Practical Sizecited by 1,928
- 2021Calibrate Before Use: Improving Few-Shot Performance of Language Modelscited by 1,371
- 2020Making Pre-trained Language Models Better Few-shot Learnerscited by 1,255
- 2021Fantastically Ordered Prompts and Where to Find Them: Overcoming Few-Shot Prompt Order Sensitivitycited by 1,122
23 more
- 2022Large Language Models Are Human-Level Prompt Engineerscited by 1,020
- 2023Large Language Models as Optimizerscited by 830
- 2023DSPy: Compiling Declarative Language Model Calls into Self-Improving Pipelinescited by 803
- 2023AutoDAN: Generating Stealthy Jailbreak Prompts on Aligned Large Language Modelscited by 738
- 2023Automatic Prompt Optimization with "Gradient Descent" and Beam Searchcited by 628
- 2021Prompt Programming for Large Language Models: Beyond the Few-Shot Paradigmcited by 599
- 2023Detecting Language Model Attacks with Perplexitycited by 411
- 2021Learning How to Ask: Querying LMs with Mixtures of Soft Promptscited by 376
- 2022RLPrompt: Optimizing Discrete Text Prompts with Reinforcement Learningcited by 361
- 2023Hard Prompts Made Easy: Gradient-Based Discrete Optimization for Prompt Tuning and Discoverycited by 329
- 2024TextGrad: Automatic "Differentiation" via Textcited by 250
- 2021Gradient-based Adversarial Attacks against Text Transformerscited by 233
- 2022FOLIO: Natural Language Reasoning with First-Order Logiccited by 233
- 2023PromptAgent: Strategic Planning with Language Models Enables Expert-level Prompt Optimizationcited by 226
- 2023EvoPrompt: Connecting LLMs with Evolutionary Algorithms Yields Powerful Prompt Optimizerscited by 189
- 2024COLD-Attack: Jailbreaking LLMs with Stealthiness and Controllabilitycited by 162
- 2022GrIPS: Gradient-free, Edit-based Instruction Search for Prompting Large Language Modelscited by 127
- 2023Large Language Models as Evolutionary Optimizerscited by 122
- 2023Black-Box Prompt Optimization: Aligning Large Language Models without Model Trainingcited by 122
- 2023Prompt Engineering a Prompt Engineercited by 53
- 2022Toward Human Readable Prompt Tuning: Kubrick's The Shining is a good movie, and a good prompt too?cited by 49
- 2024Localized Zeroth-Order Prompt Optimizationcited by 23
- 2024Revisiting OPRO: The Limitations of Small-Scale LLMs as Optimizerscited by 14
Built on by
Citing papers per year: 2025: 6; 2026: 6.
12 papers.
- 2025ProCut: LLM Prompt Compression via Attribution Estimationcited by 5
- 2025Compound AI Systems Optimization: A Survey of Methods, Challenges, and Future Directionscited 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
- 2025Evaluating the Effectiveness of Black-Box Prompt Optimization as the Scale of LLMs Continues to Growcited by 1
- 2025SI-Agent: An Agentic Framework for Feedback-Driven Generation and Tuning of Human-Readable System Instructions for Large Language Modelscited by 0
- 2026GFlowPO: Generative Flow Network as a Language Model Prompt Optimizercited by 0
- 2026Exploring the Effectiveness of Using LLMs for Automated Assessment of Student Self Explanations in Programming Educationcited by 0
- 2026SafeCtrl-RL: Inference-Time Adaptive Behaviour Control for LLM Dialogue via RL-Driven Prompt Optimisationcited by 0
- 2026Two-Stage Prompt Optimization for Few-Shot Relation Extraction: From Reasoning-Guided Search to Gradient-Guided Refinementcited by 0
- 2026BayesPO: Bayesian Prompt Optimization via Parallel-Tempered Gradient-Guided Discrete MCMCcited 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
- 2026BayesPO: Bayesian Prompt Optimization via Parallel-Tempered Gradient-Guided Discrete MCMC17 Jul 2026
- 2026Two-Stage Prompt Optimization for Few-Shot Relation Extraction: From Reasoning-Guided Search to Gradient-Guided Refinement28 Jun 2026
- 2026SafeCtrl-RL: Inference-Time Adaptive Behaviour Control for LLM Dialogue via RL-Driven Prompt Optimisation25 May 2026
- 2026Exploring the Effectiveness of Using LLMs for Automated Assessment of Student Self Explanations in Programming Education20 May 2026
- 2026GFlowPO: Generative Flow Network as a Language Model Prompt Optimizer3 Feb 2026
- 2025ProCut: LLM Prompt Compression via Attribution Estimation4 Aug 2025
- 2025Prompt Smart, Pay Less: Cost-Aware APO for Real-World Applications18 Jul 2025
- 2025SI-Agent: An Agentic Framework for Feedback-Driven Generation and Tuning of Human-Readable System Instructions for Large Language Models3 Jul 2025
- 2025Compound AI Systems Optimization: A Survey of Methods, Challenges, and Future Directions9 Jun 2025
- 2025Evaluating the Effectiveness of Black-Box Prompt Optimization as the Scale of LLMs Continues to Grow13 May 2025
- 2025GREATERPROMPT: A Unified, Customizable, and High-Performing Open-Source Toolkit for Prompt Optimization4 Apr 2025
Similar, not cited
Close in wording, no citation either way
- 2025Self-Supervised Prompt Optimization
- 2026Prompt Minimization: Reducing Input Redundancy Without Sacrificing Output Fidelity
- 2026Modular Prompt Optimization: Optimizing Structured Prompts with Section-Local Textual Gradients
- 2024Towards Generalist Prompting for Large Language Models by Mental Models
- 2025Rethinking Prompt Optimizers: From Prompt Merits to Optimization
- 2026Reflective Prompt Tuning through Language Model Function-Calling
- 2025PromptCoT 2.0: Scaling Prompt Synthesis for Large Language Model Reasoning
- 2025TRPrompt: Bootstrapping Query-Aware Prompt Optimization from Textual Rewards