RLAR: An Agentic Reward System for Multi-task Reinforcement Learning on Large Language Models
Organizations: Tsinghua Univeristy · Peking University
Abstract
Large language model alignment via reinforcement learning depends critically on reward function quality. However, static, domain-specific reward models are often costly to train and exhibit poor generalization in out-of-distribution scenarios encountered during RL iterations. We present RLAR (Reinforcement Learning from Agent Rewards), an agent-driven framework that dynamically assigns tailored reward functions to individual queries. Specifically, RLAR transforms reward acquisition into a dynamic tool synthesis and invocation task. It leverages LLM agents to autonomously retrieve optimal reward models from the Internet and synthesize programmatic verifiers through code generation. This allows the reward system to self-evolve with the shifting data distributions during training. Experimental results demonstrate that RLAR yields consistent performance gains ranging from 10 to 60 across mathematics, coding, translation, and dialogue tasks. On RewardBench-V2, RLAR significantly outperforms static baselines and approaches the performance upper bound, demonstrating superior generalization through dynamic reward orchestration. The data and code are available on this link: https://github.com/ZhuoerFeng/RLAR.
Figures & tables
| Domain | Dataset | Train Size | Test Size | OOD | Evaluation Metric |
| Math | GSM8k | 1,500 | 1,319 | ✗ | Numeric Match |
| Hendrycks-Math | 1,500 | 500 | ✗ | ||
| AIME-24/25 | 0 | 60 | ✓ | ||
| Code | LeetCode-Dataset | 2,585 | 223 | ✗ | Unit Test Execution |
| MBPP | 0 | 974 | ✓ | ||
| Translation | Flores-200 | 3,000 | 300 | ✗ | Hybrid (LLM-Judge + BLEU) |
| Domain | Avg. | Math | Code | Translation | General | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Dataset | Score | GSM8k | HEND | AIME24 | AIME25 | LCode | MBPP | Flore | WMT24 | UChat | Avg Len | ||
| Metric | - | NEM | Pass@k | NEM | NEM | Pass@k | Pass@k | BLEU-2 | LLM-J | BLEU-2 | LLM-J | LLM-J | # |
| Llama-3.1-8B | |||||||||||||
| Base | 37.81 | 60.50 | 49.80 | 6.67 | 0.00 | 11.21 | 41.17 | 21.04 | 77.27 | 26.39 | 79.24 | 68.97 | 152.84 |
| SkyLlama | 23.47 | 11.30 49.20 | 47.60 2.20 | 3.33 3.34 | 0.00 - | 8.97 2.24 | 7.80 33.37 | 21.16 0.12 | 45.32 31.95 | 23.23 3.16 | 54.68 24.56 | 60.03 8.94 | 147.39 |
| SeedX | 17.29 | 1.21 59.29 | 42.20 7.60 | 6.67 - | 0.00 - | 0.00 11.21 | 13.76 27.41 | 0.00 21.04 | 23.24 54.03 | 0.00 26.39 | 42.76 36.48 | 58.73 10.24 | 89.95 |
| Method | Avg | Precision IF | Math | Safety | Factuality | Focus |
|---|---|---|---|---|---|---|
| SOTA | 87.19 | 57.14 | 60.00 | 97.12 | 85.29 | 99.13 |
| Agentic Selection within RLAR framework | ||||||
| Random | 78.39 | 40.48 | 60.00 | 89.42 | 75.49 | 90.43 |
| GPT-4o | 88.19 | 57.14 | 68.57 | 96.15 | 87.25 | 99.13 |
| GLM-4.6 | 88.69 | 57.14 | 68.57 | 96.15 | 88.24 | 100.0 |
| GPT-5.1 | 90.44 | 66.67 | 71.42 | 96.15 | 90.19 | 100.0 |
Appendix figures & tables11 assets
Supplementary material from the paper’s appendix.
Appendix
| Category / Parameter | Value |
|---|---|
| Training & Data | |
| Total Epochs | 5 |
| Global Train Batch Size | 256 |
| Max Prompt Length | 10,000 |
| Max Response Length | 5,000 |
| Truncation Strategy | ’error’ |
| Category / Parameter | Value |
|---|---|
| Training & Data | |
| Total Epochs | 5 |
| Global Train Batch Size | 256 |
| Max Prompt Length | 10,000 |
| Max Response Length | 5,000 |
| Truncation Strategy | ’error’ |
| Type | Metric | Type | Metric |
|---|---|---|---|
| rule_based | Forbidden_Words | rule_based | Stepwise_Completeness |
| rule_based | Prompt_Adherence | rule_based | Length |
| rule_based | Numeric_Accuracy | rule_based | Exact_Template_Match |
| rule_based | Novelty_Penalty | rule_based | Contradiction_Detection |
| rule_based | Disallowed_Phrase_Penalty | rule_based | Exact_Output_Match |
| rule_based | No_Unsupported_Claims | rule_based | Reference_Match |
| Source | Repo Name |
|---|---|
| ( Liu et al., 2024 ) | Skywork/Skywork-Reward-V2-Llama-3.1-8B |
| ( Liu et al., 2024 ) | Skywork/Skywork-Reward-V2-Qwen3-8B |
| ( Liu et al., 2024 ) | Skywork/Skywork-Reward-V2-Llama-3.2-3B |
| ( Liu et al., 2024 ) | Skywork/Skywork-Reward-V2-Qwen3-4B |
| ( Cheng et al., 2025 ) | ByteDance-Seed/Seed-X-RM-7B |
| OpenAssistant/reward-model-deberta-v3-base |
| Task Type | Unmatched(%) |
|---|---|
| Infilling | |
| Essay Generation | |
| Multi-Turn |
| Category | Avg Pos |
|---|---|
| Summ | |
| Translation | |
| RLHF | |
| Multi-Turn | |
| Infill/Gen | |
| Math |
| Category | Count |
|---|---|
| Code-agent scripts (total) | 118 |
| Executable | 112 (94.9%) |
| Rule-based | 102 (86.4%) |
| Metric-based | 12 (10.2%) |
| Learned-model–based | 4 (3.4%) |
| Web-agent repos (retrieved) | 21 |
RL for Language Models
Reinforcement learning for language models uses feedback-driven policy updates to improve reasoning, alignment, and interactive behavior.
See all 410 papers