atlas

Research map / Large language models / Language, safety and interpretability

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

ICLR 2025 · Large language models › Language, safety and interpretability · approach: LLM unlearning and benchmarks · 0 citations (OpenAlex)

Read the paperCheck your idea against 108,967 papers

AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Proposes GReaTer, a gradient-over-reasoning prompt optimizer that uses task-loss gradients through generated reasoning to optimize prompts for small open LLMs without large proprietary optimizers.

Problem

Automated prompt optimization for smaller open-source LLMs typically relies on textual feedback from large, expensive closed-source models, and text-space methods ignore finer-grained signals like gradients; reasoning tasks lack fixed verbalizers for standard prompt tuning.

Approach

Compute the cross-entropy loss of answer logits extracted after the model's own generated reasoning (via an extractor prompt), take gradients w.r.t. one-hot indicators over LM-proposed top-k token candidates at each prompt position, pick the top-3 by negative gradient, and keep the candidate with the lowest loss on the training set.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Optimize prompts with GReaTer instead of the strongest listed baselineGemma-2-9B · GSM8Kaccuracy: 88.6 -> 89.4Helped
Optimize prompts with GReaTer instead of TextGradGemma-2-9B · BBHaccuracy: 72.9 -> 76.6Helped
Optimize prompts with GReaTer instead of APEGemma-2-9B · FOLIOaccuracy: 67.5 -> 69.1Helped
Optimize prompts with GReaTer instead of APOLlama-3-8B · GSM8Kaccuracy: 81.1 -> 82.6Helped
Optimize prompts with GReaTer instead of APELlama-3-8B · BBHaccuracy: 63.1 -> 68.7Helped
Optimize prompts with GReaTer instead of PE2Llama-3-8B · FOLIOaccuracy: 62.6 -> 62.6No clear effect
Add reasoning generation to gradient calculation (ablation)GReaTer · BBH movie_recommendation and tracking_shuffled_objects_five_objectsscoreHelped
Use the default prompt initialization instead of a misleading initialization (ablation)GReaTer on Llama-3-8B · BBH movie_recommendationscore: 55 -> 56No clear effect
Optimize the prompt with GReaTer rather than AutoPromptLlama-3-8B · BBH movie_recommendationscore: 51 -> 56Helped
Optimize the prompt with GReaTer rather than AutoPromptLlama-3-8B · BBH tracking_shuffled_objects_five_objectsscore: 38 -> 70Helped
Optimize the prompt with GReaTer rather than AutoPromptGemma-2-9B · BBH movie_recommendationscore: 50 -> 57Helped
Optimize the prompt with GReaTer rather than AutoPromptGemma-2-9B · BBH tracking_shuffled_objects_five_objectsscore: 73 -> 86Helped

Surprising findings

Limitations

Experimental setup

Datasets: GSM8K BBH FOLIO

Benchmarks: GSM8K BBH FOLIO

Metrics: accuracy

Baselines: ZS-CoT APE APO PE2 TextGrad OPRO EvoPrompt AutoPrompt PEZ

Builds on: TextGrad AutoPrompt PEZ APO APE

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy