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

Reflective Prompted Policy Optimization: Trajectory-Grounded Revision and Salience Bias

Rahaf Abu Hara, Vaibbhav Murarri, Claudio ZitoNeurIPS 2026

TL;DR

Imagine coaching an athlete strictly by reading their final score on a clipboard, without ever watching them play—that is how current LLM-based reinforcement learning optimizers work. This paper introduces Reflective Prompted Policy Optimization (R2PO), a framework that lets LLMs watch actual gameplay trajectories to diagnose and fix compact control policies. Along the way, the authors uncover a fascinating psychological quirk in LLMs called salience bias—where the model obsessively over-corrects for a single dramatic failure even when a policy succeeds 95% of the time—and show how to cure it.

What Problem Does This Paper Address?

Reinforcement Learning (RL) famously requires millions of interactions and delicate hyperparameter tuning. Recently, researchers discovered that Large Language Models (LLMs) can act as black-box optimizers: show an LLM a history of policy parameters (numbers controlling an agent) and their resulting scalar rewards, and it can guess better parameters through in-context learning.

The catch? A single scalar number is diagnostic blindness. Knowing a robot scored 0.45 tells the LLM that something went wrong, not why. Did it get stuck in an infinite loop? Fall into a hole on step three? Or play brilliantly on 19 out of 20 runs and suffer one fluke catastrophe? Without seeing the actual behavior, LLM optimizers are stuck playing blindfolded trial-and-error rather than performing targeted engineering.

Methods

Instead of fine-tuning an LLM or using it as the agent itself, R2PO uses a relatively small 20B open-weight model (gpt-oss:20b) as an external engineer optimizing compact controllers (linear or tabular policies whose weights fit inside a prompt).

R2PO splits optimization into a two-stage loop using two distinct prompts:

  1. Search-LLM (Global Explorer): Looks at the history of previously tested parameter vectors and their average scalar scores, then proposes a promising new candidate policy.
  2. Critic-LLM (Local Reviser): After running the candidate in the environment for $K=20$ rollouts, the Critic-LLM inspects actual behavioral evidence—states, actions, and rewards—to diagnose flaws and propose a targeted parameter edit.
  3. Keep-Best Selection: Both the initial proposal and the Critic's revised version are evaluated; whichever scores higher survives into the replay buffer, acting as a safety net against LLM hallucinations or over-corrections.
The two-stage R2PO framework separating global scalar search from trajectory-grounded local revision.

Crucially, instead of dumping raw execution logs onto the Critic-LLM, R2PO feeds it a carefully calibrated Trajectory Evidence package:

  • The median trajectory (representing typical behavior, avoiding lucky or unlucky extremes).
  • Aggregate statistics across all 20 rollouts (mean/min/max rewards, episode lengths, and success/failure counts).
  • An explicit revision rule instructing the LLM to abstain from major edits if the mean reward exceeds a task threshold $\tau_c$.

Datasets

Because this is an online RL control study rather than static supervised learning, evaluation is conducted across 12 interactive simulation environments rather than static datasets:

  • 7 standard Gymnasium benchmarks: CartPole-v1, FrozenLake-v1, MountainCar-v0, MountainCarContinuous-v0, InvertedPendulum-v5, InvertedDoublePendulum-v5, and Swimmer-v5.
  • 3 custom discrete/game environments: Maze, Nim, and Pong.
  • 2 simulated robotics tasks: Dynamic autonomous surface vehicle (ASV) debris collection (14 parameters) and robotic table tennis (a structured 70-parameter motor policy).

Key Insights and Ideas

  • Salience Bias—LLMs are drama queens: You might assume showing the Critic-LLM the best, median, and worst trajectories would give it a balanced view of policy behavior. In reality, it tanks performance. When shown multiple rollouts, the LLM fixates on the vivid worst-case failure and rewrites weights that were working well everywhere else. On CartPole, this "salience bias" accounted for 76.6% of all performance regressions!
  • Statistics beat raw stories for outliers: Communicating failure rates numerically (e.g., "19/20 succeeded") alongside a single median trajectory lets the LLM distinguish systematic bugs from unlucky flukes without getting distracted by a dramatic crash log.
  • Compulsive tinkering: Left unchecked, LLMs suffer from "compulsive revision"—feeling obligated to tweak near-perfect policies just because they were prompted to critique them. Combining the abstention threshold with keep-best selection drops destructive near-optimal edits by 6× to 17×.

Key Results

Evaluated over 10 runs with a budget of 4,000 episodes (200 LLM calls), R2PO with a 20B open-weight model outperforms deep RL baselines (PPO, SAC, TRPO, DQN, etc.), prior LLM optimizers (ProPS, ProPS+), and classical black-box optimizers (CMA-ES, Bayesian Optimization):

  • Dominant stability and peak scores: R2PO achieves the highest or tied-highest peak reward across all 10 core benchmarks (hitting maximum possible scores of 500 on CartPole and 1000 on InvertedPendulum) and wins on overall mean reward in 9 out of 10 environments (statistically tied with SAC on the 10th).
  • Sample efficiency: R2PO reaches near-optimal CartPole performance in ~500 episodes, whereas ProPS+ and deep RL baselines require ~4,000. On robotic table tennis, it hits the target success criterion in 180 rollouts vs. 980 for ProPS+.
  • Precision edits: Compared to naive trajectory variants, R2PO makes the smallest parameter changes (mean edit distance of 1.6 on CartPole vs. 4.6 for three-trajectory) while achieving an 86–88% revision acceptance rate.
Figure 2: Learning curves (mean ± standard deviation over 10 independent runs) for R2PO, ProPS, ProPS+, and the best SB3 baseline on four representative environments. R2PO reaches strong performance earlier and maintains it more consistently than other baselines. Curves for the remaining six environments are in Appendix G and show the same overall pattern.

Limitations and Future Work

  • Policy size: R2PO currently targets compact controllers (up to 70 parameters in these experiments) that fit cleanly inside an LLM context window. Scaling to high-dimensional neural networks remains untested, though low-dimensional parameter projections or hierarchical controllers are promising next steps.
  • Manual thresholding: The abstention rule relies on a coarse, environment-specific reward threshold ($\tau_c$). While ablations show R2PO is robust to $\pm 50\%$ changes in $\tau_c$, automating this via rollout uncertainty signals is an open goal.
  • Beyond RL: The authors note that salience bias likely haunts other domains where LLMs synthesize conflicting evidence—such as multi-document QA, code review, and multi-turn agents—making it fertile ground for broader study.

Summary updated

BibTeX
@inproceedings{hara2026reflective,
  author = {Rahaf Abu Hara and Vaibbhav Murarri and Claudio Zito},
  title = {{Reflective Prompted Policy Optimization: Trajectory-Grounded Revision and Salience Bias}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=9JvWIy31sK},
}
Figure