potentialpaper

Lego-RL: Harness-Native Reinforcement Learning for Coding Agents

Keep the title, authors and abstract in paper.json

potentialpaper · 2026-11-23 19:48 UTC · 75179b6b7fcc ·

.potentialpaper/metadata.json modified

+++ b/.potentialpaper/metadata.json
@@ -1,19 +1,5 @@
{
- "layout": 5,
- "identifiers": [
- {
- "scheme": "openreview",
- "value": "55YPUEkyyO"
- }
- ],
- "title": "Lego-RL: Harness-Native Reinforcement Learning for Coding Agents",
- "authors": [],
- "abstract": "Reinforcement learning for coding agents increasingly relies on long-running agent harnesses to manage tool integration, repository contexts, and execution feedback. However, the native execution environments of these harnesses are inherently misaligned with policy-gradient training: environmental crashes and reward hacking corrupt outcome signals, while train–inference discrepancies decouple rollout behavior from policy updates. To address this, we present **Lego-RL**, a framework that bridges native coding-agent harnesses with scalable policy-gradient optimization without modifying their internal control flow.\nLego-RL is built upon three pillars:**(1) faithful optimization** via in-process LLM proxying that captures raw generation streams for token-level alignment and robust trainer-side log-probability recomputation, even under harness-side compaction or re-serialization; **(2) reliable execution** via scalable sandbox orchestration featuring image caching and stage-wise defenses to mitigate reward hacking; and **(3) observable training** through an integrated plugin that automates validation and monitoring, paired with a Live UI for granular trajectory diagnostics. With GSPO, **LEGO-RL** improves Qwen3.5-35B-A3B's SWE-bench Verified resolve rates by $6.4$, $5.8$, and $9.4$ points under OpenHands SDK, Claude Code, and OpenCode, respectively, with rollout--training sampled-token probability\ncorrelations of at least $0.998$. The gains generalize across harnesses; mixed-harness training and alternative RL algorithms further demonstrate the flexibility.",
- "year": 2027,
- "venue": "ICLR 2027 (under review)",
- "source": "openreview",
- "license": {
- "metadata": "CC0-1.0",
- "abstract": "CC0-1.0"
- }
+ "layout": 6,
+ "kind": "paper",
+ "key": "74791858-1cb2-4ee5-b306-d144124113f7"
}

paper.json added

+++ b/paper.json
@@ -0,0 +1,9 @@
+{
+ "title": "Lego-RL: Harness-Native Reinforcement Learning for Coding Agents",
+ "authors": [],
+ "abstract": "Reinforcement learning for coding agents increasingly relies on long-running agent harnesses to manage tool integration, repository contexts, and execution feedback. However, the native execution environments of these harnesses are inherently misaligned with policy-gradient training: environmental crashes and reward hacking corrupt outcome signals, while train–inference discrepancies decouple rollout behavior from policy updates. To address this, we present **Lego-RL**, a framework that bridges native coding-agent harnesses with scalable policy-gradient optimization without modifying their internal control flow.\nLego-RL is built upon three pillars:**(1) faithful optimization** via in-process LLM proxying that captures raw generation streams for token-level alignment and robust trainer-side log-probability recomputation, even under harness-side compaction or re-serialization; **(2) reliable execution** via scalable sandbox orchestration featuring image caching and stage-wise defenses to mitigate reward hacking; and **(3) observable training** through an integrated plugin that automates validation and monitoring, paired with a Live UI for granular trajectory diagnostics. With GSPO, **LEGO-RL** improves Qwen3.5-35B-A3B's SWE-bench Verified resolve rates by $6.4$, $5.8$, and $9.4$ points under OpenHands SDK, Claude Code, and OpenCode, respectively, with rollout--training sampled-token probability\ncorrelations of at least $0.998$. The gains generalize across harnesses; mixed-harness training and alternative RL algorithms further demonstrate the flexibility.",
+ "license": {
+ "metadata": "CC0-1.0",
+ "abstract": "CC0-1.0"
+ }
+}