TL;DR
Imagine trying to teach a student to edit an essay solely by slapping a pass/fail grade on the final draft—they might stumble onto a good edit by luck, or they might learn nothing at all. Current Automatic Prompt Optimization (APO) methods treat language models this exact way, focusing blindly on the final prompt rather than how it was derived. This paper introduces ProPO, a reinforcement learning framework that shifts the goal from finding a good prompt to explicitly learning the scientific method of prompt editing—achieving massive leaps in complex math and text classification along the way.
What Problem Does This Paper Address?
Large Language Models (LLMs) are famously finicky: tweak a few words in your instructions, and performance can swing wildly. Automatic Prompt Optimization (APO) tries to automate away human trial-and-error, usually falling into two camps:
- Training-free search: An LLM iteratively mutates prompts based on text feedback. While lightweight, this easily gets trapped in local optima when tasks get tough.
- Training-based Reinforcement Learning (RL): Training a dedicated "optimizer" model to rewrite prompts based on downstream task accuracy.
Both paradigms share a blind spot: they are purely result-oriented. In RL-based approaches, relying solely on final task accuracy creates severe reward sparsity—the model rarely gets useful feedback until it accidentally stumbles upon a winning prompt, leaving it vulnerable to reward hacking without ever internalizing why an edit worked.
Methods
The authors propose ProPO (Process learning for Prompt Optimization), built on top of standard Supervised Fine-Tuning (SFT) and Group Relative Policy Optimization (GRPO—a memory-efficient RL algorithm). While the SFT-then-GRPO pipeline is standard, ProPO introduces two major innovations to supervise the thinking process behind prompt edits:
- Historical Trajectory Reflection: Instead of asking the policy model (e.g., Qwen3-8B-Instruct) to rewrite a prompt in a vacuum, ProPO tests the prompt in a surrogate environment to gather concrete examples of execution successes ($e^+$) and failures ($e^-$). Looking at both side-by-side, the model must output a structured Chain-of-Thought (CoT) before writing the new prompt: Failure Diagnosis ($d$) $\rightarrow$ Rule Summarization ($r$) $\rightarrow$ Optimization Action ($a$).
- Multi-Dimensional Composite Rewards: During RL, each optimization trajectory is scored by summing three distinct signals:
- Outcome Validation Reward: Standard downstream accuracy on a validation mini-batch.
- Adaptive Rubric Reward: Using an offline teacher model (GPT-4.1), the authors pre-generate custom, instance-level grading rubrics (covering core logic, steps, and error boundaries) for every training sample. A judge LLM (Qwen3-32B) scores how well the new prompt aligns with these dense semantic guardrails.
- Process Logic Reward: A binary, all-or-nothing reward evaluated by the judge LLM. It checks three causal links: Did $d$ accurately diagnose the failure? Does $a$ actually address $d$? And did the final prompt genuinely execute $a$? Break any link in the logical chain, and the process reward drops to zero.
Datasets
ProPO is evaluated across six existing public benchmarks spanning three domains (no new benchmarks are introduced):
- Classification: SST-5, Subj (Subjectivity Classification), and TREC.
- Mathematical Reasoning: AIME-2026 and LiveBench-Math.
- Instruction Following: IFBench (testing complex, multi-constraint adherence).
Key Insights and Ideas
- Ungrounded self-reflection makes things worse: When an LLM reflects on a prompt without seeing successful and failed execution traces, it hallucinates verbose, generic definitions—dropping Subj accuracy from 68.35% to 66.55%. Feeding it contrastive trajectories immediately grounds its edits in actionable heuristics, jumping accuracy to 74.95%.
- Generic rubrics are noise; instance-level rubrics are gold: Static, human-written rubrics actually degraded average performance (-0.81%), and dataset-wide rubrics barely budged the needle (+0.07%). Because individual problems fail in unique ways, sample-specific rubrics were essential, driving a +3.70% average boost (+8.89% on AIME).
- Misdiagnosis is the deadliest logical flaw: Ablating individual checks inside the Process Logic Reward revealed that removing the diagnosis check caused the steepest accuracy drop. If a model misattributes why a prompt failed, every downstream rule it invents will actively poison performance.
Key Results
- Across-the-board SOTA: Using a Qwen3-8B policy, ProPO achieves an average accuracy of 70.24% across all six benchmarks, beating standard outcome-only GRPO (63.77%) and recent RL-based optimizers like PromptR1 (62.22%).
- Crushing complex reasoning & boundaries: On the notoriously difficult AIME-2026 math benchmark, ProPO hits 71.11% (vs. 57.78% zero-shot and 63.30% for PromptR1). On Subj classification, it leaps +25.70 percentage points over the zero-shot baseline to reach 93.87%.
- Backbone agnostic & efficient: ProPO consistently lifts diverse policy models—including Qwen3-4B (+15.13%), Llama3.1-8B (+14.57%), and Llama3.2-3B (+16.24%). Moreover, on 8×A100 GPUs, ProPO surpasses PromptR1's final accuracy in just 2.6 hours (20 steps) and finishes full training in 12 hours vs. PromptR1's 29 hours.
Limitations and Future Work
ProPO leans heavily on external heavyweights: using GPT-4.1 offline to build rubrics caps the policy model's exploratory ceiling at the teacher's comprehension level, and querying a 32B judge model twice per RL rollout (for rubrics and logic) adds notable compute overhead. For future work, the authors suggest exploring self-evolving mechanisms where the policy model iteratively critiques and refines its own optimization strategies without external judges, alongside expanding into open-ended creative and multimodal tasks.
Summary updated