TL;DR
The paper introduces Agent² RL-Bench, a diagnostic benchmark designed to evaluate whether LLM agents can autonomously design, implement, debug, and execute reinforcement learning (RL) post-training pipelines to improve foundation models. The authors find that while top-tier agent stacks can occasionally engineer successful online RL loops (e.g., massive gains on ALFWorld), stable agent-driven RL engineering remains rare, highly sensitive to the underlying model stack, and frequently prone to falling back on supervised fine-tuning (SFT) shortcuts.
What Problem Does This Paper Address?
Reinforcement learning from human/AI feedback (RLHF/RLAIF) has become the cornerstone of modern LLM alignment and reasoning specialization (as seen in models like DeepSeek-R1). However, setting up a functional RL post-training pipeline—managing reward functions, algorithmic stability, environment rollouts, and online data collection—still demands significant human expert judgment.
While LLM agents have excelled at standard coding and software engineering benchmarks, existing ML automation benchmarks are largely static. They evaluate an agent's ability to generate a training script or perform supervised fine-tuning (SFT), but they do not test an agent's capacity to close an interactive, stateful RL loop. This paper bridges that gap by asking: Can LLM agents autonomously act as machine learning engineers to implement closed-loop RL post-training?
Methods
The authors developed Agent² RL-Bench, which provides a unified, agent-facing environment.
Key components of the method include:
- Isolated Workspaces: Each agent run starts in a sandboxed environment containing a base model, training data, task instructions, and a grading API.
- Fixed Engineering Budget: Agents are given a strict 12-hour time limit to autonomously write code, execute training, diagnose failures, and iteratively submit candidate models.
- Behavioral Diagnostics: The benchmark incorporates runtime instrumentation (tracking every code revision and submission) and a post-hoc analysis module that automatically generates structured case studies to reveal how agents search, fail, and adapt.
Datasets
Agent² RL-Bench evaluates agents across six distinct tasks organized into three progressively difficult structural levels:
- Level 1: Static Rule-Based (GSM8K, HumanEval): Single-turn tasks with deterministic, programmable verifiers.
- Level 2: Static Judge-Based (AlpacaEval 2.0): Single-turn optimization against a non-deterministic LLM judge.
- Level 3: Interactive Rollout (ALFWorld, WebShop, DeepSearchQA): Multi-turn tasks requiring stateful environment interaction, trajectory collection, and handling of sparse/dense rewards.
Key Insights and Ideas
- Score Improvement $\neq$ RL Engineering: A major takeaway is that a higher evaluation score does not prove an agent successfully engineered an RL pipeline. On five out of six tasks, the best-performing agents actually bypassed complex RL loops and converged on SFT-initialized composite pipelines or data augmentation tricks, even when explicitly instructed to use RL.
- Distribution Alignment Dominates: The largest performance breakthroughs often came from agents realizing and fixing formatting mismatches between the training data and the evaluation oracle, rather than optimizing the RL algorithm itself.
- Extreme Stack Sensitivity: Agent performance is highly volatile. Swapping the driver LLM or the agent scaffold can cause massive performance swings. For instance, on ALFWorld, the operating-mode spread exceeded 80 percentage points depending on the constraints placed on the agent.
Key Results
The benchmark evaluated five agent systems (including OpenHands and Claude Code) driven by six frontier LLMs.
- ALFWorld Success: In an RL-oriented run, Claude Code (driven by Claude Opus) successfully engineered a genuine online RL loop using Group Relative Policy Optimization (GRPO) and online rollouts, skyrocketing the base model's performance from 4.85 to 93.28.
- DeepSearchQA Bottleneck: DeepSearchQA proved structurally difficult for all agents, with the best controlled score only reaching 23.00 (a modest +10.75 improvement over baseline), demonstrating that tool-use and search-retrieve-judge loops resist simple post-training optimization.
- Bidirectional Discrimination: While strong agent stacks improved the base models, weak stacks (e.g., Gemini CLI + 2.5-flash) actively degraded them, regressing performance by up to -51.22 percentage points on HumanEval due to unhandled Out-Of-Memory (OOM) errors and training collapses.
Limitations and Future Work
The authors note several limitations in the current iteration of the benchmark:
- Compute Intensity: Due to the massive compute requirements of running 12-hour training loops, the 8B model study relied on single runs, omitting repeated trials that could account for variance.
- Task and Scale Limits: The benchmark currently covers only six tasks and focuses on smaller base models (7B/8B).
- Entangled Variables: The evaluation framework entangles an agent's high-level planning abilities, training stability, and driver LLM quality.
Future Directions: The authors plan to introduce repeated trials, expand the suite to broader online RL tasks, add component-attribution ablations, and implement hidden final evaluation splits with submission caps to prevent adaptive overfitting.
Summary updated