MLREF: Efficient Module Reuse for Reward Design in Reinforcement Learning via Large Language Models
Organizations: Institute for Interdisciplinary Information Sciences, Tsinghua University
Abstract
Reward function design remains a bottleneck in reinforcement learning. While large language models (LLMs) have enabled automated reward generation, existing methods generate and revise reward functions as monolithic programs, making it difficult to reliably preserve and reuse effective components discovered in earlier iterations, leading to unstable performance across iterations. To address this, we propose Module Level Reward Evolution Framework (MLREF). At the core of MLREF is a module pool, a persistent repository of reusable reward components. MLREF treats the module pool as the primary optimization object: the pool evolves across iterations by accumulating successful modules, refining underperforming ones, and reusing proven components; while reward functions are constructed as linear combinations of modules drawn from this pool. To drive this evolution, MLREF integrates three mechanisms: reflection-based refinement, hybrid credit assignment, and a merge strategy with rollback, which together improve the effectiveness and robustness of reward optimization. Experiments on 17 tasks show that MLREF outperforms strong baselines by 25.2% in locomotion and 6.6% in manipulation, with more stable optimization dynamics.
Figures & tables
| Property | EUREKA | RF-Agent | MLREF (Ours) |
|---|---|---|---|
| Optimization Unit | Function | Function | Module Pool |
| Module Identity | – | Anonymous | Named + Spec. |
| Cross-iter. Persistence | – | Partial | Persistent Pool |
| Credit Assignment | Holistic | Holistic | Per-Module Hybrid |
| Failure Recovery | – | Implicit | Explicit Rollback |
| Semantic Guidance | – | – | Task + Feedback Refl. |
| Task | EUREKA | RF-Agent | MLREF (Ours) |
|---|---|---|---|
| Locomotion | |||
| Allegro Hand | 25.48 1.27 | 27.41 1.90 | 28.89 1.36 |
| Ant | 12.35 1.29 | 12.34 0.70 | 12.47 0.30 |
| Anymal | -0.0057 0.0021 | -0.0064 0.0010 | -0.0073 0.0019 |
| Franka Cabinet | 0.397 0.202 | 0.701 0.200 | 0.997 0.006 |
| Humanoid | 7.95 0.87 | 5.56 1.63 | 7.40 1.12 |
| Method | Ant | Block Stack | Bottle Cap | Avg. % of Full |
|---|---|---|---|---|
| Full MLREF | 12.47 0.30 | 0.313 0.244 | 0.987 0.012 | 100.0% |
| GPT-4o | 10.77 1.95 | 0.101 0.042 | 0.041 0.027 | 40.9% |
| No Pool | 11.51 0.64 | 0.085 0.040 | 0.988 0.010 | 73.2% |
| No Reflection | 9.58 0.55 | 0.057 0.032 | 0.639 0.401 | 53.3% |
| No Weight Opt. | 11.68 1.14 | 0.044 0.025 | 0.829 0.338 | 63.9% |
Appendix figures & tables4 assets
Supplementary material from the paper’s appendix.
Appendix
| Parameter | Value |
|---|---|
| MLREF — Optimization | |
| Max iterations | 9 |
| Parallel samples per iteration | 3 |
| Pipeline runs | 3 |
| RL evaluation seeds | 5 |
| MLREF — Pool Merge | |
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 252 papers