The Production Agent RL Stack: GRPO + RULER + Experience Replay
Why This Changes Your Agent Training Loop
The reinforcement fine-tuning stack for LLM agents has crossed a usability threshold. Three developments from independent groups converge into a single actionable pipeline: GRPO (DeepSeek-R1's algorithm) provides outcome-based training using only relative rankings; RULER provides those rankings via LLM-as-judge comparative scoring; and Meta FAIR's experience replay technique slashes the compute cost of generating RL rollouts.
SFT teaches models what to say. GRPO trains them on whether they succeeded. If your agents call tools, reason across steps, or operate in multi-turn settings, SFT-only training is leaving the most impactful optimization on the table.
How GRPO Actually Works
- Generate N completions from current policy for each prompt
- Score each via reward function (or RULER judge)
- Normalize within group — only the ordering drives learning
- Reinforce above-average behaviors, suppress below-average
The critical property: whether completions score 0.3/0.5/0.7 or 30/50/70, only the rank order matters. This makes GRPO robust to noisy judges, poorly calibrated signals, and even binary pass/fail evaluations.
RULER Eliminates Reward Engineering
RULER exploits a psychometric finding: comparative judgment ("which of these 4 is best?") is far more reliable than absolute scoring ("rate 0-10"). It passes N trajectories to a judge LLM which produces relative rankings fed directly as GRPO rewards. No reward function design. No labeled data. No human annotation.
The ART Framework Architecture
The open-source ART framework wraps this into a production-ready system with four components: a client (LangGraph/CrewAI/ADK agent code with trajectory recording), a vLLM inference backend that hot-loads new LoRA checkpoints without downtime, an Unsloth training backend running GRPO, and RULER as the reward signal. The LoRA hot-swap is the key engineering decision — your agent improves while serving production traffic.
Experience Replay Cuts Compute Cost
Meta FAIR and NYU showed that a well-designed replay buffer drastically cuts inference compute during RL training. The dominant cost in RLHF is generating rollouts — replay buffers reuse previous completions across multiple training steps. Critically, they measured and reported maintained output diversity, addressing the primary concern that naive replay collapses policy modes.
Ceiling and Gaps
The fine-tuned model's quality is bounded by the judge LLM's discrimination ability — no ablation exists on when this becomes the binding constraint. No GRPO vs. PPO vs. DPO ablation on equivalent tasks. No production metrics from ART deployments. Run your own benchmarks rather than trusting headline claims.
Connecting the Dots
TSMC's $35.9B Q1 revenue (+40.6% YoY) and Cerebras swinging to profitability ($87.9M net income vs. -$484.8M loss) confirm compute supply is expanding. Combined with experience replay cutting training costs, the economics of agent RL training have improved on both the supply and demand side simultaneously. The constraint has shifted from "can we afford this?" to "do we have the architecture?"
What to do
Spin up ART framework notebook (3B model learning MCP server tool use) to validate the approach on your infrastructure
Replace absolute-score LLM-as-judge evals with comparative ranking (RULER pattern) in existing eval pipelines
Implement experience replay with diversity-preserving buffer design in any existing RL/RLHF pipeline
Benchmark a fine-tuned sub-3B model against your current API calls on your highest-volume narrow task