How do you build RL environments for agents that improve performance and efficiency?
@ben_burtenshaw1.1万 位关注者
12,584 次观看
20 条评论
评论来自 X (Twitter) 上的原帖

@ben_burtenshaw
2/n search and filter. Start from public sources with clear licences and no bench overlap: merged GitHub PRs, SWE-smith, SWE-Gym, MAUD, CUAD, FinQA, Spreadsheet-RL. Anything that overlaps the benchmarks you plan to test on stays out.
3 个赞

@ben_burtenshaw
3/n generate envs Each source row becomes a Harbor task with four parts: - an instruction - an environment - hidden tests - a reference answer The agent gets the instruction and env, and a separate verifier does the rest.
1 个赞

@ben_burtenshaw
4/n validate and clean. The reference answer must score 1. Doing nothing must score 0. Known-wrong answers must fail. Of 1,162 knowledge-work candidates, 97 failed the bar. 33 of them accepted a wrong answer.
2 个赞

@ben_burtenshaw
5/n roll out the base model. Qwen3.8-27B attempts every task 8 times. Tasks it always solves or never solves give GRPO nothing to learn from. The signal is in the mixed tasks: 675 of 975 for knowledge work, 177 of 463 scored for coding.
2 个赞

@ben_burtenshaw
6/n canary training A 75-step LoRA GRPO run, to see if the data teaches anything before committing to a full run. On 147 held-out tasks: +5.9 points over base.
3 个赞

@ben_burtenshaw
Both task sets are open on the Hugging Face Hub, with verifiers, reference answers, and more details on how we built it. Coding: Knowledge work:
7 个赞

@YossiEliaz
data curation will always improve efficacy
2 个赞

@ben_burtenshaw
amen

@vasusen
When you were removing tasks from those 2k environments, what was the main reason they failed validation? Ambiguous success criteria or the environment itself breaking halfway through the trajectory?
2 个赞

@ben_burtenshaw
usually verifiers that were easily gamed or solved by doing nothing
1 个赞

@aplomb2
Data point: we ran harness-hub's pi adapter for Qwen3.8-27B in Claude Code (not its training harness) on 30 SWE-rebench tasks. - Base: 10/30, median 86.5 turns - Adapter: 11/30, median 33 turns The step count transferred; solve rate barely moved. One run each. (We serve both.)
2 个赞

@ben_burtenshaw
sorry. I can't read this. what do you mean?

@aplomb2
Sorry, too compressed. harness-hub trained the pi adapter for the pi agent; we ran it in Claude Code on 30 SWE-rebench tasks. It solved about as many as the base model (11 vs 10) in far fewer steps (median 33 vs 86.5 turns), so the efficiency carried over to another agent.

@huggingface
🔥🔥🔥
2 个赞

@saavoji
did you filter the environments by pass rate spread? all-pass and all-fail tasks give zero advantage under GRPO, so i'm curious how many of the ~2k survived that.
2 个赞

@ben_burtenshaw
yeah. check out the datasets for stats.

@shreshthrajan
one thing to add: check the grader too. 1 in 14 "solved" SWE-smith trajectories are wrong fixes the tests still pass. we built a tool that finds and fixes these:
2 个赞

@communicating
Great tips and examples to learn from. Pre-built environments (and datasets, etc) can be a game changer but only if they pass a very high quality bar. So many I’ve seen break, have ultra-weak verifiers or suffer some other defect that adversely affects your run. All the artifacts the team has shared around the Qwen adapter has been great. 👍
2 个赞

@nimrod_e
"Most of the work was checking" is the most honest line in RL right now. Curious what failed most often across the ~2k: answers leaking into the task, graders passing trivial outputs, or environments that couldn't reset cleanly?

@MerkleAnders
wrong answers passing is the scary one. in cad its parts that look right and cant be cut