Prompted Policy Search: Reinforcement Learning through Linguistic and Numerical Reasoning in LLMs
About
Reinforcement Learning (RL) traditionally relies on scalar reward signals, limiting its ability to leverage the rich semantic knowledge often available in real-world tasks. In contrast, humans learn efficiently by combining numerical feedback with language, prior knowledge, and common sense. We introduce Prompted Policy Search (ProPS), a novel RL method that unifies numerical and linguistic reasoning within a single framework. Unlike prior work that augment existing RL components with language, ProPS places a large language model (LLM) at the center of the policy optimization loop-directly proposing policy updates based on both reward feedback and natural language input. We show that LLMs can perform numerical optimization in-context, and that incorporating semantic signals, such as goals, domain knowledge, and strategy hints can lead to more informed exploration and sample-efficient learning. ProPS is evaluated across fifteen Gymnasium tasks, spanning classic control, Atari games, and MuJoCo environments, and compared to seven widely-adopted RL algorithms (e.g., PPO, SAC, TRPO). It outperforms all baselines on eight out of fifteen tasks and demonstrates substantial gains when provided with domain knowledge. These results highlight the potential of unifying semantics and numerics for transparent, generalizable, and human-aligned RL.
Related benchmarks
| Task | Dataset | Result | Rank | |
|---|---|---|---|---|
| Reinforcement Learning | MountainCarContinuous v0 | Average Agent Reward98.7 | 65 | |
| Reinforcement Learning | cartpole | Average Reward258.1 | 29 | |
| Reinforcement Learning | Swimmer | Average Returns162.1 | 24 | |
| Reinforcement Learning | MountainCar | Avg Episode Reward199.3 | 18 | |
| Reinforcement Learning | Inverted Double Pendulum | Avg Episode Reward128.8 | 18 | |
| Reinforcement Learning | MountainCar | Maximum Return126.1 | 14 | |
| Reinforcement Learning | FrozenLake | Reward0.37 | 12 | |
| Reinforcement Learning | cartpole | Max Return427.7 | 9 | |
| Reinforcement Learning | Maze | Mean Reward1.03 | 8 | |
| Reinforcement Learning | InvertedPendulum | Mean Reward657.9 | 8 |