Beyond Scripted Search: Sample-Efficient Reward Discovery via Agentic Black-box Optimization
Organizations: Nanyang Technological University · Yunnan University
Abstract
Designing dense reward functions for low-level reinforcement learning (RL) control remains difficult. Recent work uses large language models (LLMs) to iteratively generate and refine reward functions using policy-training feedback within scripted search algorithms. However, evaluating each candidate requires a full RL training run, making sample efficiency a central challenge for reward search on complex control tasks. To address this limitation, we propose an Agentic Reward Black-box Optimization (ARBO) framework, in which an LLM agent builds the search strategy at run time from an evaluation history maintained as its persistent workspace. The evaluation history comprises two components: observations maintained by the evaluation oracle, including candidate scores, per-term training curves, and error tracebacks; and an agent-maintained belief that records diagnoses and intended next steps. The agent queries both with tools and generates the next batch of reward candidates, rather than generating them in a single pass from a fixed prompt. Across four control domains, ARBO achieves gains of 29.9% in manipulation success rate and 192.8% in power-grid score over baseline means under a shared evaluation budget. Ablations examine each component's contribution and sensitivity to backbone choice.
Figures & tables
| Method | Easy | Medium | Hard | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Swing Cup | Lift Underarm | Door Close | Over | Grasp Place | Block Stack | Bottle Cap | Kettle | Catch Underarm | Catch Abreast | Avg | |
| Sparse | 0.01 | 0.00 | 0.06 | 0.00 | 0.00 | 0.02 | 0.03 | 0.02 | 0.00 | 0.00 | 0.014 |
| REvolve | 0.920 | 0.906 | 0.606 | 0.947 | 0.510 | 0.323 | 0.695 | 0.970 | 0.298 | 0.372 | 0.655 |
| Eureka | 0.994 | 0.889 | 0.972 | 0.939 | 0.527 | 0.529 | 0.873 | 0.965 | 0.676 | 0.558 | 0.792 |
| RF-Agent | 0.984 | 0.930 | 0.484 | 0.925 | 0.366 | 0.170 | 0.837 | 0.994 | 0.819 | 0.560 | 0.707 |
| R | 0.999 | 0.918 | 0.580 | 0.970 | 0.339 | 0.352 | 0.434 | 0.958 | 0.850 | 0.000 | 0.640 |
Appendix figures & tables20 assets
Supplementary material from the paper’s appendix.
Appendix
| Algo. | Policy network | Learn. rate | Budget per candidate | Sim. step | |
|---|---|---|---|---|---|
| Bi-DexHands | PPO | MLP | iterations | s | |
| Grid2Op Case14 | PPO | MLP | timesteps | min | |
| Isaac Lab locomotion | PPO | MLP (flat) to (rough) | iterations | s | |
| RESCO | DQN | Conv , MLP | episodes | s |
| Parameter | Value |
|---|---|
| Locomotion samples | |
| Other domains’ samples | |
| Initial explore rounds, | |
| Exploit patience, | |
| Re-exploration burst, |
| Backbone | Serving | Reasoning |
|---|---|---|
| MiniMax-M2.7 | hosted API | yes |
| MiniMax-Text-01 | hosted API | no |
| DeepSeek-V4-Flash | hosted API | yes |
| Qwen3.8-Max | hosted API | yes |
| Qwen3-32B | local -bit quantization | yes |
| Temperature | for every backbone | |
| Environment | Specification |
|---|---|
| GPUs | NVIDIA GeForce RTX 4090, GiB memory each |
| CPU | Intel Xeon Platinum 8173M, threads |
| Memory | GiB |
| OS | Ubuntu 22.04.5 LTS |
| Software | NVIDIA driver , CUDA |
| Task | Mean | Range |
|---|---|---|
| Bi-DexHands | ||
| SwingCup | – | |
| LiftUnderarm | – | |
| DoorCloseOutward | – | |
| Over | – | |
| GraspAndPlace | – | |
| Method | Prefill Tokens | Decode Tokens |
|---|---|---|
| Ours | 176,961 | 21,671 |
| RF-Agent | 10,783 | 9,990 |
| REvolve | 3,940 | 3,488 |
| Eureka | 3,919 | 3,511 |
| R | 3,391 | 6,132 |
| ShinkaEvolve | 19,242 | 7,726 |
| Method | Selection | Expansion |
|---|---|---|
| Eureka ( Ma et al., 2024c ) | Previous batch’s best, one per prompt. | One fixed improvement template. |
| REvolve ( Hazra et al., 2025 ) | Rank-weighted from an elite archive capped at , one or two per prompt. | Mutation or crossover at equal rates. |
| RF-Agent ( Gao et al., 2026 ) | UCT over the tree, at most four nodes per prompt. | Fixed menu of five actions. |
| R ( Li et al., 2025 ) | Global best for reflection, two rank-sampled parents for crossover. | Reflection hint from {improve, remove, add} or module crossover, plus parameter alignment. |
| ShinkaEvolve ( Lange et al., 2026 ) | Score-weighted parent, one archive and one top- inspiration, at most three. | Patch type from {diff, full, cross} at fixed rates. |
| Ours | Chosen by the agent with tools over the full history, failures included. | Free-form edits from its diagnosis, batch size its own. |
| Resources | License | URL |
|---|---|---|
| Eureka ( Ma et al., 2024c ) | MIT | https://github.com/eureka-research/Eureka |
| REvolve ( Hazra et al., 2025 ) | Available online | https://github.com/RishiHazra/Revolve |
| RF-Agent ( Gao et al., 2026 ) | Available online | https://github.com/deng-ai-lab/RF-Agent |
| ShinkaEvolve ( Lange et al., 2026 ) | Apache 2.0 | https://github.com/SakanaAI/ShinkaEvolve |
| Isaac Gym ( Makoviychuk et al., 2021 ) | BSD 3-Clause | https://github.com/isaac-sim/IsaacGymEnvs |
| Bi-DexHands ( Chen et al., 2023 ) | Apache 2.0 | https://github.com/PKU-MARL/DexterousHands |
Reward Design for RL
Reward design for reinforcement learning studies how to specify, learn, and adapt signals that guide agents toward intended behavior.
See all 250 papers