mlsanityData to 7 Oct 2026

GReaTer: Gradients over Reasoning Makes Smaller Language Models Strong Prompt Optimizers

arXiv 2412.09722 ↗First posted 12 Dec 2024cs.CLcited by 12

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

  1. 2022Challenging BIG-Bench Tasks and Whether Chain-of-Thought Can Solve Them17 Oct
  2. 2022Text and Patterns: For Effective Chain of Thought, It Takes Two to Tango16 Sep
  3. 2022Large Language Models are Zero-Shot Reasoners24 May
  4. 2022Chain-of-Thought Prompting Elicits Reasoning in Large Language Models28 Jan

Other references · 35

  1. 2020Language Models are Few-Shot Learnerscited by 32,199
  2. 2023GPT-4 Technical Reportcited by 18,132
  3. 2021Training Verifiers to Solve Math Word Problemscited by 9,743
  4. 2023Reflexion: Language Agents with Verbal Reinforcement Learningcited by 4,064
  5. 2021Prefix-Tuning: Optimizing Continuous Prompts for Generationcited by 3,878
  6. 2021The Power of Scale for Parameter-Efficient Prompt Tuningcited by 3,769
  7. 2024Gemini 1.5: Unlocking multimodal understanding across millions of tokens of contextcited by 3,175
  8. 2023Universal and Transferable Adversarial Attacks on Aligned Language Modelscited by 2,914
  9. 2024Gemma 2: Improving Open Language Models at a Practical Sizecited by 1,928
  10. 2021Calibrate Before Use: Improving Few-Shot Performance of Language Modelscited by 1,371
  11. 2020Making Pre-trained Language Models Better Few-shot Learnerscited by 1,255
  12. 2021Fantastically Ordered Prompts and Where to Find Them: Overcoming Few-Shot Prompt Order Sensitivitycited by 1,122
23 more
  1. 2022Large Language Models Are Human-Level Prompt Engineerscited by 1,020
  2. 2023Large Language Models as Optimizerscited by 830
  3. 2023DSPy: Compiling Declarative Language Model Calls into Self-Improving Pipelinescited by 803
  4. 2023AutoDAN: Generating Stealthy Jailbreak Prompts on Aligned Large Language Modelscited by 738
  5. 2023Automatic Prompt Optimization with "Gradient Descent" and Beam Searchcited by 628
  6. 2021Prompt Programming for Large Language Models: Beyond the Few-Shot Paradigmcited by 599
  7. 2023Detecting Language Model Attacks with Perplexitycited by 411
  8. 2021Learning How to Ask: Querying LMs with Mixtures of Soft Promptscited by 376
  9. 2022RLPrompt: Optimizing Discrete Text Prompts with Reinforcement Learningcited by 361
  10. 2023Hard Prompts Made Easy: Gradient-Based Discrete Optimization for Prompt Tuning and Discoverycited by 329
  11. 2024TextGrad: Automatic "Differentiation" via Textcited by 250
  12. 2021Gradient-based Adversarial Attacks against Text Transformerscited by 233
  13. 2022FOLIO: Natural Language Reasoning with First-Order Logiccited by 233
  14. 2023PromptAgent: Strategic Planning with Language Models Enables Expert-level Prompt Optimizationcited by 226
  15. 2023EvoPrompt: Connecting LLMs with Evolutionary Algorithms Yields Powerful Prompt Optimizerscited by 189
  16. 2024COLD-Attack: Jailbreaking LLMs with Stealthiness and Controllabilitycited by 162
  17. 2022GrIPS: Gradient-free, Edit-based Instruction Search for Prompting Large Language Modelscited by 127
  18. 2023Large Language Models as Evolutionary Optimizerscited by 122
  19. 2023Black-Box Prompt Optimization: Aligning Large Language Models without Model Trainingcited by 122
  20. 2023Prompt Engineering a Prompt Engineercited by 53
  21. 2022Toward Human Readable Prompt Tuning: Kubrick's The Shining is a good movie, and a good prompt too?cited by 49
  22. 2024Localized Zeroth-Order Prompt Optimizationcited by 23
  23. 2024Revisiting OPRO: The Limitations of Small-Scale LLMs as Optimizerscited by 14

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2025: 6; 2026: 6.

12 papers.

Similar, not cited

Close in wording, no citation either way

  1. 2025Self-Supervised Prompt Optimization
  2. 2026Prompt Minimization: Reducing Input Redundancy Without Sacrificing Output Fidelity
  3. 2026Modular Prompt Optimization: Optimizing Structured Prompts with Section-Local Textual Gradients
  4. 2024Towards Generalist Prompting for Large Language Models by Mental Models
  5. 2025Rethinking Prompt Optimizers: From Prompt Merits to Optimization
  6. 2026Reflective Prompt Tuning through Language Model Function-Calling
  7. 2025PromptCoT 2.0: Scaling Prompt Synthesis for Large Language Model Reasoning
  8. 2025TRPrompt: Bootstrapping Query-Aware Prompt Optimization from Textual Rewards