NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Beyond Outcome: Trajectory-Driven Prompt Optimization via Multi-Dimensional Rewards

Zhixiang Liang, Yixiang Huang, Chenjing Cai, Hao Wu, Peihang Liu, Qi Liu, Qiqi Zhong, Jiuchong Gao, Jinghua Hao, Renqing HeNeurIPS 2026

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:

  1. 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.
  2. 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.

Figure 1: Result-Oriented vs. Process-Oriented APO. Existing APO paradigms face limitations: (Left) Training-free approaches can encounter local optima and scalability limitations during prompt search; (Middle) training-based RL methods can suffer from sparse rewards and insufficient super- vision of the optimization process. (Right) ProPO aims to learn the prompt optimization process through three stages: (1) offline rubric construction establishes instance-level criteria for semantic supervision; (2) SFT provides a cold start from successful and failed execution trajectories; and (3) RL combines trajectory reflection with multi-dimensional rewards (Outcome + Rubric + Process), alleviating reward sparsity and providing explicit supervision over the prompt optimization process.

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:

Figure 2: Overview of our trajectory-driven prompt optimization framework. The pipeline operates through three stages: (1) Offline data preparation utilizes a teacher model to generate SFT data and distill instance-level evaluation criteria; (2) Supervised fine-tuning endows the policy model with foundational rewriting capabilities;(3) Reinforcement learning optimizes the policy via GRPO with multi-dimensional rewards, providing richer supervision over the prompt optimization process.
  • 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%.
Figure 4: Qualitative comparison of prompt refinement strategies. Trajectory-driven reflection leverages successful and failed execution examples to produce more targeted prompt revisions.
  • 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

BibTeX
@inproceedings{liang2026beyond,
  author = {Zhixiang Liang and Yixiang Huang and Chenjing Cai and Hao Wu and Peihang Liu and Qi Liu and Qiqi Zhong and Jiuchong Gao and Jinghua Hao and Renqing He},
  title = {{Beyond Outcome: Trajectory-Driven Prompt Optimization via Multi-Dimensional Rewards}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=jJXfMK7Ifb},
}
Figure