pith. sign in

arxiv: 2605.30719 · v2 · pith:GFENIXXPnew · submitted 2026-05-29 · 💻 cs.LG · cs.AI

When are LLMs Sufficient Policy Optimizers for Sequential RL Tasks?

Pith reviewed 2026-06-29 05:40 UTC · model grok-4.3

classification 💻 cs.LG cs.AI
keywords LLM policy optimizationreinforcement learningPromptPOblack-box optimizationsequential decision makingpolicy generationenvironment interactions
0
0 comments X

The pith

Large language models can act as sufficient policy optimizers for many sequential reinforcement learning tasks by iteratively generating and refining executable policies from environment descriptions.

A machine-rendered reading of the paper's core claim, the machinery that carries it, and where it could break.

The paper investigates when LLMs can replace classical RL algorithms as black-box policy optimizers. It introduces PromptPO, which prompts an LLM with Python code describing the state space, action space, and reward function, then iteratively refines policies based on rollout feedback. In several environments like hard exploration tasks and robotics, this approach matches or beats standard RL methods while requiring fewer interactions. The key insight is that LLMs succeed when they can draw on prior knowledge of the environment or optimization strategies. However, it falls short in domains needing precise continuous control.

Core claim

LLM-based policy optimization is sufficient when the LLM can leverage prior knowledge about the environment or optimization strategy, as demonstrated by PromptPO matching or exceeding standard RL baselines with substantially fewer environment interactions across various tasks, though it underperforms in MuJoCo domains requiring fine-grained continuous control.

What carries the argument

Prompted Policy Optimization (PromptPO), an iterative method that prompts an LLM with Python descriptions of state, action, and reward spaces to generate and refine executable policies using rollout feedback.

If this is right

  • PromptPO outputs policies that can range from tuned controllers to full planning algorithms like value iteration without explicit prompting.
  • LLM-based methods require substantially fewer environment interactions than classical RL in suitable domains.
  • Performance is sufficient in hard exploration, Meta-World robotics, and real-world control problems.
  • Limitations appear in settings requiring fine-grained continuous control.

Where Pith is reading between the lines

These are editorial extensions of the paper, not claims the author makes directly.

  • PromptPO could be extended to hybrid systems where LLMs handle high-level planning and traditional RL fine-tunes low-level actions.
  • Domains with structured knowledge or discrete actions are likely better suited for this approach than continuous control tasks.
  • Future work might test if providing the LLM with optimization strategy hints further improves efficiency.

Load-bearing premise

The LLM receives accurate Python descriptions of the state space, action space, and reward function and can produce executable policies whose rollouts provide reliable feedback for iterative refinement.

What would settle it

Running PromptPO on a new MuJoCo-like continuous control task and observing whether it consistently underperforms standard RL baselines by a significant margin would support the limitation claim; success in a knowledge-rich discrete task would support sufficiency.

Figures

Figures reproduced from arXiv: 2605.30719 by Emma Brunskill, Stephane Hatgis-Kessell.

Figure 1
Figure 1. Figure 1: PromptPO input: a description of the state space, action space, and reward function in Python code. We avoid inputting context about the environment’s transition dynamics to evaluate PromptPO in model free settings. PromptPO gen￾erates a set of policies and an evaluation function, both implemented in Python code. The policies are rolled out in the environment, evaluated with respect to the evaluation funct… view at source ↗
Figure 2
Figure 2. Figure 2: Comparison of PromptPO to best performing RL algorithm in terms of final perfor￾mance (color) and sample efficiency (y position). Green points are environments where PromptPO attains a higher mean return than RL. Blue points are environments where PromptPO attains the same mean return as RL, and red points are those where it attains a lower mean return. All points above the gray dotted line are environment… view at source ↗
Figure 3
Figure 3. Figure 3: Comparison of PromptPO to best performing RL at the step when PromptPO achieves its best performance. Returns are normalized such that a uniformly random policy has value 0 and the best-performing RL policy has value 1; values greater than 1 indicate that PromptPO outperforms RL’s best policy. Points below the line y = x correspond to environments where PromptPO attains higher performance than RL at the ti… view at source ↗
Figure 4
Figure 4. Figure 4: Training curves across NoiseWorld boards for PromptPO and the best performing RL [PITH_FULL_IMAGE:figures/full_fig_p012_4.png] view at source ↗
Figure 5
Figure 5. Figure 5: PromptPO’s training performance in Point Maze versus SAC, which is the best performing RL algorithm out of the set of methods we consider. Mean return is reported over 3 seeds. The dotted lines show best achieved final performance. Unlike in NoiseWorld1, NoiseWorld2, and Noise￾World3, for NoiseWorld4 and NoiseWorld5, PromptPO and the best performing RL algorithm fail to find a policy that behaves near-opti… view at source ↗
Figure 6
Figure 6. Figure 6: Training curves across Meta-World tasks for PromptPO and the best performing RL [PITH_FULL_IMAGE:figures/full_fig_p013_6.png] view at source ↗
Figure 7
Figure 7. Figure 7: Training curves across MuJoCo continuous control tasks for PromptPO and the best [PITH_FULL_IMAGE:figures/full_fig_p013_7.png] view at source ↗
Figure 8
Figure 8. Figure 8: Training curves across real-world control environments for PromptPO and PPO. Mean [PITH_FULL_IMAGE:figures/full_fig_p014_8.png] view at source ↗
Figure 9
Figure 9. Figure 9: Prompt used to generate trajectory-level feedback summaries for improving policies. [PITH_FULL_IMAGE:figures/full_fig_p014_9.png] view at source ↗
Figure 10
Figure 10. Figure 10: Prompt used to instruct the language model to generate a policy implementation from [PITH_FULL_IMAGE:figures/full_fig_p015_10.png] view at source ↗
Figure 11
Figure 11. Figure 11: Prompt used to elicit concise natural language evaluations of generated policies, comparing [PITH_FULL_IMAGE:figures/full_fig_p015_11.png] view at source ↗
Figure 12
Figure 12. Figure 12: PromptPO performance summary for different numbers of sampled candidate policies [PITH_FULL_IMAGE:figures/full_fig_p016_12.png] view at source ↗
Figure 13
Figure 13. Figure 13: PromptPO performance summary for different numbers of sampled candidate policies [PITH_FULL_IMAGE:figures/full_fig_p016_13.png] view at source ↗
Figure 14
Figure 14. Figure 14: Additional observation-context text describing the two trailing progress flags appended [PITH_FULL_IMAGE:figures/full_fig_p017_14.png] view at source ↗
Figure 15
Figure 15. Figure 15: PromptPO’s training performance in NoiseWorld5 versus PPO, which is the best perform [PITH_FULL_IMAGE:figures/full_fig_p017_15.png] view at source ↗
read the original abstract

We study when large language models (LLMs) can serve as effective black-box policy optimizers for reinforcement learning (RL) tasks, i.e., when can we replace classical RL algorithms with an LLM? We explore this question by introducing Prompted Policy Optimization (PromptPO), an iterative method that prompts an LLM with Python descriptions of the state space, action space, and reward function, then has it generate and refine executable policies based on rollout feedback. Across hard exploration environments, Meta-World robotics tasks, and several real-world control problems, PromptPO often matches or exceeds the performance of standard RL baselines while using substantially fewer environment interactions. To maximize expected return, and without further explicit prompting, the policies PromptPO outputs range from tuned proportional controllers or rule-based plans to policies that run planning algorithms like value iteration. Our results demonstrate that LLM-based policy optimization is sufficient when the LLM can leverage prior knowledge about the environment or optimization strategy. PromptPO underperforms standard RL baselines in MuJoCo domains. This demonstrates possible limitations of LLM-based policy optimization to settings that requiring fine-grained continuous control.

Editorial analysis

A structured set of objections, weighed in public.

Desk editor's note, referee report, simulated authors' rebuttal, and a circularity audit. Tearing a paper down is the easy half of reading it; the pith above is the substance, this is the friction.

Referee Report

2 major / 0 minor

Summary. The paper introduces Prompted Policy Optimization (PromptPO), an iterative method that prompts an LLM with Python descriptions of the state space, action space, and reward function, then refines executable policies based on rollout feedback. It reports that PromptPO matches or exceeds standard RL baselines in hard exploration environments, Meta-World robotics tasks, and real-world control problems while using substantially fewer environment interactions, with policies ranging from tuned controllers to planning algorithms; it explicitly underperforms in MuJoCo continuous-control domains. The central claim is that LLM-based policy optimization is sufficient when the LLM can leverage prior knowledge about the environment or optimization strategy.

Significance. If the empirical results hold under rigorous evaluation, the work provides concrete evidence that LLMs can function as black-box policy optimizers in structured RL settings where explicit MDP descriptions encode prior knowledge, achieving comparable returns with reduced sample complexity. It also identifies a clear failure mode in fine-grained continuous control, helping delineate the applicability boundaries of LLM-driven RL methods.

major comments (2)
  1. [Abstract] Abstract: the claim that PromptPO 'often matches or exceeds the performance of standard RL baselines' is load-bearing for the central result yet is presented without any quantitative metrics, baseline names, number of runs, variance estimates, or statistical tests; the provided text alone does not allow verification of this comparison.
  2. [Abstract] Abstract: the sufficiency condition rests on the LLM receiving 'accurate Python descriptions' and producing 'executable policies whose rollouts provide reliable feedback,' but no details are given on how these descriptions are authored, validated for correctness, or how execution reliability is ensured; this assumption is load-bearing for the reported success/failure distinction.

Simulated Author's Rebuttal

2 responses · 0 unresolved

We thank the referee for their constructive comments, which highlight important aspects of how the abstract presents our central claims. We address each point below and will revise the abstract accordingly in the next version of the manuscript.

read point-by-point responses
  1. Referee: [Abstract] Abstract: the claim that PromptPO 'often matches or exceeds the performance of standard RL baselines' is load-bearing for the central result yet is presented without any quantitative metrics, baseline names, number of runs, variance estimates, or statistical tests; the provided text alone does not allow verification of this comparison.

    Authors: We agree that the abstract would be strengthened by including more specific quantitative context for the performance claim. In the revised manuscript we will update the abstract to reference key results, such as the number of environment interactions required relative to baselines (e.g., PPO, SAC, DQN) and the number of independent runs, while directing readers to the full tables, variance estimates, and statistical comparisons in Sections 4–5 and the appendix. revision: yes

  2. Referee: [Abstract] Abstract: the sufficiency condition rests on the LLM receiving 'accurate Python descriptions' and producing 'executable policies whose rollouts provide reliable feedback,' but no details are given on how these descriptions are authored, validated for correctness, or how execution reliability is ensured; this assumption is load-bearing for the reported success/failure distinction.

    Authors: The referee correctly notes that the abstract does not detail the authoring and validation process. These procedures are described in Section 3 of the manuscript: descriptions are manually constructed from each environment’s official documentation and source code, then validated by confirming that generated policies execute without runtime errors in the simulator. We will add a concise clause to the abstract summarizing this process and the error-handling mechanism used during rollout feedback. revision: yes

Circularity Check

0 steps flagged

No significant circularity

full rationale

The paper introduces PromptPO as an empirical method and evaluates it through direct comparisons to RL baselines on multiple task suites. No equations, derivations, fitted parameters presented as predictions, or load-bearing self-citations appear in the provided text. All central claims rest on observable experimental outcomes (performance matching, interaction counts, domain-specific limitations) that are externally falsifiable and do not reduce to the method's own inputs by construction.

Axiom & Free-Parameter Ledger

0 free parameters · 0 axioms · 0 invented entities

Abstract-only review; no explicit free parameters, axioms, or invented entities are stated. The method implicitly assumes the LLM possesses relevant prior knowledge about control strategies.

pith-pipeline@v0.9.1-grok · 5720 in / 1054 out tokens · 23084 ms · 2026-06-29T05:40:56.436395+00:00 · methodology

discussion (0)

Sign in with ORCID, Apple, or X to comment. Anyone can read and Pith papers without signing in.

Reference graph

Works this paper leans on

26 extracted references · 20 canonical work pages · 11 internal anchors

  1. [1]

    GEPA: Reflective Prompt Evolution Can Outperform Reinforcement Learning

    Lakshya A Agrawal, Shangyin Tan, Dilara Soylu, Noah Ziems, Rishi Khare, Krista Opsahl-Ong, Arnav Singhvi, Herumb Shandilya, Michael J Ryan, Meng Jiang, et al. Gepa: Reflective prompt evolution can outperform reinforcement learning.arXiv preprint arXiv:2507.19457,

  2. [2]

    Do As I Can, Not As I Say: Grounding Language in Robotic Affordances

    Michael Ahn, Anthony Brohan, Noah Brown, Yevgen Chebotar, Omar Cortes, Byron David, Chelsea Finn, Chuyuan Fu, Keerthana Gopalakrishnan, Karol Hausman, et al. Do as i can, not as i say: Grounding language in robotic affordances.arXiv preprint arXiv:2204.01691,

  3. [3]

    What matters in on-policy reinforcement learning? a large-scale empirical study.arXiv preprint arXiv:2006.05990,

    7 Marcin Andrychowicz, Anton Raichuk, Piotr Sta´nczyk, Manu Orsini, Sertan Girgin, Raphaël Marinier, Léonard Hussenot, Matthieu Geist, Olivier Pietquin, Marcin Michalski, Sylvain Gelly, and Olivier Bachem. What matters in on-policy reinforcement learning? a large-scale empirical study.arXiv preprint arXiv:2006.05990,

  4. [4]

    RL$^2$: Fast Reinforcement Learning via Slow Reinforcement Learning

    Yan Duan, John Schulman, Xi Chen, Peter L Bartlett, Ilya Sutskever, and Pieter Abbeel. Fast reinforcement learning via slow reinforcement learning.arXiv preprint arXiv:1611.02779,

  5. [5]

    Challenges of Real-World Reinforcement Learning

    Gabriel Dulac-Arnold, Daniel Mankowitz, and Todd Hester. Challenges of real-world reinforcement learning.arXiv preprint arXiv:1904.12901,

  6. [6]

    Hyperparameters in reinforcement learning and how to tune them.arXiv preprint arXiv:2306.01324,

    Theresa Eimer, Marius Lindauer, and Roberta Raileanu. Hyperparameters in reinforcement learning and how to tune them.arXiv preprint arXiv:2306.01324,

  7. [7]

    Farama Foundation

    Accessed: 2026-04-03. Farama Foundation. Point maze environment. https://robotics.farama.org/envs/ maze/point_maze/,

  8. [8]

    Scott Fujimoto, Herke van Hoof, and David Meger

    Accessed: 2026-04-03. Scott Fujimoto, Herke van Hoof, and David Meger. Addressing function approximation error in actor-critic methods. InInternational Conference on Machine Learning (ICML), pp. 1587–1596,

  9. [9]

    Soft Actor-Critic: Off-Policy Maximum Entropy Deep Reinforcement Learning with a Stochastic Actor

    Tuomas Haarnoja, Aurick Zhou, Pieter Abbeel, and Sergey Levine. Soft actor-critic: Off-policy maxi- mum entropy deep reinforcement learning with a stochastic actor.arXiv preprint arXiv:1801.01290,

  10. [10]

    Code-space response oracles: Generating interpretable multi-agent policies with large language models.arXiv preprint arXiv:2603.10098,

    Daniel Hennes, Zun Li, John Schultz, and Marc Lanctot. Code-space response oracles: Generating interpretable multi-agent policies with large language models.arXiv preprint arXiv:2603.10098,

  11. [11]

    Inner Monologue: Embodied Reasoning through Planning with Language Models

    Wenlong Huang, Pieter Abbeel, Deepak Pathak, and Igor Mordatch. Language models as zero-shot planners: Extracting actionable knowledge for embodied agents. InInternational conference on machine learning, pp. 9118–9147. PMLR, 2022a. Wenlong Huang, Fei Xia, Ted Xiao, Harris Chan, Jacky Liang, Pete Florence, Andy Zeng, Jonathan Tompson, Igor Mordatch, Yevgen...

  12. [12]

    Varun Kompella, Roberto Capobianco, Stacy Jong, Jonathan Browne, Spencer Fox, Lauren Meyers, Peter Wurman, and Peter Stone

    GitHub repository. Varun Kompella, Roberto Capobianco, Stacy Jong, Jonathan Browne, Spencer Fox, Lauren Meyers, Peter Wurman, and Peter Stone. Reinforcement learning for optimization of covid-19 mitigation policies.arXiv preprint arXiv:2010.10560,

  13. [13]

    Correlated proxies: A new definition and improved mitigation for reward hacking, 2025.URL https://arxiv

    Cassidy Laidlaw, Shivam Singhal, and Anca Dragan. Correlated proxies: A new definition and improved mitigation for reward hacking, 2025.URL https://arxiv. org/abs/2403.03185. Yoonho Lee, Joseph Boen, and Chelsea Finn. Feedback descent: Open-ended text optimization via pairwise comparison.arXiv preprint arXiv:2511.07919,

  14. [14]

    Reinforcement learning in practice: Opportunities and challenges.arXiv preprint arXiv:2202.11296,

    8 Yuxi Li. Reinforcement learning in practice: Opportunities and challenges.arXiv preprint arXiv:2202.11296,

  15. [15]

    DOI: 10.1038/nature14236. Alexander Novikov, Ngân V˜u, Marvin Eisenberger, Emilien Dupont, Po-Sen Huang, Adam Zsolt Wag- ner, Sergey Shirobokov, Borislav Kozlovskii, Francisco JR Ruiz, Abbas Mehrabian, et al. Alphae- volve: A coding agent for scientific and algorithmic discovery.arXiv preprint arXiv:2506.13131,

  16. [16]

    The Effects of Reward Misspecification: Mapping and Mitigating Misaligned Models

    Alexander Pan, Kush Bhatia, and Jacob Steinhardt. The effects of reward misspecification: Mapping and mitigating misaligned models, 2022.URL https://arxiv. org/abs/2201.03544,

  17. [17]

    Proximal Policy Optimization Algorithms

    John Schulman, Filip Wolski, Prafulla Dhariwal, Alec Radford, and Oleg Klimov. Proximal policy optimization algorithms.arXiv preprint arXiv:1707.06347,

  18. [18]

    Richard S

    Accessed: 2026-04-03. Richard S. Sutton and Andrew G. Barto.Reinforcement Learning: An Introduction. MIT Press, Cambridge, MA, 2 edition,

  19. [19]

    Emanuel Todorov, Tom Erez, and Yuval Tassa

    URLhttps://arxiv.org/abs/2306.07580. Emanuel Todorov, Tom Erez, and Yuval Tassa. Mujoco: A physics engine for model-based control. In 2012 IEEE/RSJ International Conference on Intelligent Robots and Systems (IROS), pp. 5026–5033,

  20. [20]

    Voyager: An Open-Ended Embodied Agent with Large Language Models

    URL https://github.com/Farama-Foundation/Gymnasium. Guanzhi Wang, Yuqi Xie, Yunfan Jiang, Ajay Mandlekar, Chaowei Xiao, Yuke Zhu, Linxi Fan, and Anima Anandkumar. V oyager: An open-ended embodied agent with large language models.arXiv preprint arXiv:2305.16291,

  21. [21]

    Tianhe Yu, Deirdre Quillen, Zhanpeng He, Ryan Julian, Karol Hausman, Chelsea Finn, and Sergey Levine

    DOI: 10.1109/TRO.2021.3087314. Tianhe Yu, Deirdre Quillen, Zhanpeng He, Ryan Julian, Karol Hausman, Chelsea Finn, and Sergey Levine. Meta-world: A benchmark and evaluation for multi-task and meta reinforcement learning. InProceedings of the Conference on Robot Learning (CoRL),

  22. [22]

    TextGrad: Automatic "Differentiation" via Text

    Mert Yuksekgonul, Federico Bianchi, Joseph Boen, Sheng Liu, Zhi Huang, Carlos Guestrin, and James Zou. Textgrad: Automatic" differentiation" via text.arXiv preprint arXiv:2406.07496,

  23. [23]

    Prompted policy search: Reinforcement learning through linguistic and numerical reasoning in llms.arXiv preprint arXiv:2511.21928,

    Yifan Zhou, Sachin Grover, Mohamed El Mistiri, Kamalesh Kalirathnam, Pratyush Kerhalkar, Swaroop Mishra, Neelesh Kumar, Sanket Gaurav, Oya Aran, and Heni Ben Amor. Prompted policy search: Reinforcement learning through linguistic and numerical reasoning in llms.arXiv preprint arXiv:2511.21928,

  24. [24]

    The agent accrues a −1 reward at each timestep, and +1000 reward for reaching the goal state. NosieWorld has additional 6 cell types: • Cell type 0 is a blank; transitions out of cell type 0 are deterministic • Cell type 1 is a wall; no transitions into these cells are successful. • Cell type 2 is such that any transitions out of this cell are successful ...

  25. [25]

    The difference in relative performance between PromptPO and RL in the Mujoco and Metaworld environments provide insight into the type of environments where PromptPO is a sufficient policy optimizer; for Mujoco, the action space consists of torques applied to hinge joints, while for Meta- world it is the end-effector displacement and gripper finger positio...

  26. [26]

    8 Prompts used by PromptPO Trajectory Feedback Prompt Implement a class called Feedback with a method summarize_trajectory(self, traj)

    These results showcase PromptPO’s strength as a policy optimizer in real world settings where it may be capable of leveraging its pretraining data as a strong prior on generating a performant policy. 8 Prompts used by PromptPO Trajectory Feedback Prompt Implement a class called Feedback with a method summarize_trajectory(self, traj). traj is a list of obs...