Maco-RL: Scaling Agent Capabilities with Mixed-Task Reinforcement Learning
Organizations: Institute of Automation, Chinese Academy of Sciences · Huawei Technologies Co., Ltd
Abstract
Mixed-task reinforcement learning (MixRL) directly trains a unified policy across domains to continually expand agent capabilities without training separate specialists or requiring an extra distillation stage. Despite its appeal, scaling MixRL poses significant challenges in achieving stable and efficient mixed-task learning, effectively allocating rollout compute, and supporting continual domain expansion. To address these challenges, we propose Maco-RL, an approach that effectively scales MixRL. Specifically, Maco-RL employs a quota-based scheduler for asynchronous rollouts across multiple task domains, thereby stabilizing training by balancing gradient contributions and mitigating off-policy effects. Along an orthogonal axis, Maco-RL further introduces Tri-Buffer Sampling (TBS) to allocate compute among samples with varying levels of mastery, promoting sustained frontier exploration while preserving acquired capabilities. Experiments on five benchmarks show Maco-RL raises Qwen3.5-27B's overall score from 43.6 to 54.2 and then to 60.1 with continual expansion, reaching the frontier held by Qwen3.8-27B, which is further pushed outward by +5.7. Maco-RL also outperforms single-task RL with less compute for policy updates. These results support MixRL as a practical and compute-efficient post-training approach with substantial potential to strengthen general agent capabilities.
Figures & tables
| Model | Claw- Eval | Claw- Anything | Terminal- Bench 2.1 | SWE-bench Verified | FeatureBench 1.1 (fast split) | ||
|---|---|---|---|---|---|---|---|
| Pass@1 | Pass@1 | Pass@1 | Resolved | Tests Passed | Overall | ||
| Frontier Models | |||||||
| Claude-Opus-5 (high) | 73.9 | 34.7 | 87.6 † | 97.0 ‡ | 40.0 | 67.2 | 72.1 |
| DeepSeek-V4-Pro (high) | 67.7 | 43.3 | 78.7 † | 96.4 ‡ | 11.0 | 38.9 | 65.0 |
| GLM-5.3 (max) | 66.5 | 30.0 | 83.9 † | 95.4 ‡ | 12.0 | 46.3 | 64.4 |
| GPT-5.6-Sol (medium) | 60.3 | 21.3 | 86.1 † | 96.2 ‡ | 12.0 | 49.8 | 62.8 |
| Qwen3.5-27B (S1) | Qwen3.5-27B (S2) | Qwen3.8-27B | ||||
|---|---|---|---|---|---|---|
| Environment | Instances | Rollout share (%) | Instances | Rollout share (%) | Instances | Rollout share (%) |
| Claw-Anything | 3,800 | 17.5 | 1,546 | 5.0 | 5,346 | 4.8 |
| SWE | 4,772 | 50.0 | 3,013 | 32.5 | 4,773 | 32.1 |
| TMax | 2,514 | 32.5 | 2,789 | 27.5 | 6,412 | 26.2 |
| CodeWorld | – | – | 3,104 | 35.0 | 4,344 | 36.9 |
| Total | 11,086 | 100.0 | 10,452 | 100.0 | 20,875 | 100.0 |
Appendix figures & tables26 assets
Supplementary material from the paper’s appendix.
Appendix
| Environment | Stage | New instances | Unsolved 0/8 | Partial 1–7/8 | Solved 8/8 | Invalid | Retained | Cumulative pool |
| Claw-Anything | S1 | 3,800 | – | – | – | – | 3,800 | 3,800 |
| S2 | 1,546 | – | – | – | – | 1,546 | 5,346 | |
| SWE | S1 | 4,886 | 3,157 | 1,266 | 349 | 114 | 4,772 | 4,772 |
| S2 | 3,020 | 1,551 | 428 | 1,034 | 7 | 3,013 | 7,785 | |
| TMax | S1 | 5,370 | 1,081 | 1,433 | 2,856 | 0 | 2,514 | 2,514 |
| S2 | 6,032 | 1,229 | 1,560 | 3,243 | 0 | 2,789 | 5,303 |
| Environment | Screening model | Agent | P/R (K) | Max steps | Timeout (s) | |
|---|---|---|---|---|---|---|
| TMax | Qwen3.5-27B | Terminus-2 | 16/64 | 100 | 5,400 | 1.0/1.0/0 |
| SWE | Qwen3.6-35B-A3B | SWE-Agent | 9/128 | 150 | 5,400 | 1.0/0.95/20 |
| CodeWorld | Qwen3.6-35B-A3B | SWE-Agent | 16/128 | 150 | 5,400 | 1.0/0.95/20 |
| Run segment | Training devices | Inference devices | Slots | Total groups |
|---|---|---|---|---|
| S1 (initial) | 64 | 32 | 4 / 16 / 12 / – | 32 |
| S1 (resumed) | 64 | 40 | 7 / 20 / 13 / – | 40 |
| S1 (late) | 64 | 40 | 4 / 19 / 17 / – | 40 |
| S2 | 64 | 32 | 2 / 13 / 11 / 14 | 40 |
| Parameter | S1 | S2 |
|---|---|---|
| Optimizer | Adam | |
| Learning rate | ||
| Learning-rate schedule / warmup | Constant / None | |
| Adam | 0.9, 0.999 | |
| Weight decay | 0.01 | |
| Gradient norm clipping | 1.0 | |
| Stage | Environment | Agent | P/R (K) | Turn (K) | Max steps | Trajectory timeout (s) | Tool / verifier timeout (s) | |
| S1 | Claw | ClawAgent | – | 3,600 | 300 / 300 | 1.0/1.0/0 | ||
| SWE | SWE-Agent | 16/128 | 8 | 150 | 3,600 | 300 / 600 | 1.0/1.0/0 | |
| TMax | Terminus-2 | 16/128 | 8 | 150 | 3,600 | 300 / 600 | 1.0/1.0/0 | |
| S2 | Claw | ClawAgent | 16/64 | – | 50 | 3,600 | 300 / 300 | 1.0/1.0/0 |
| SWE | SWE-Agent | 16/96 | 8 | 150 | 3,600 | 300 / 600 | 1.0/1.0/0 | |
| TMax | Terminus-2 | 16/96 | 8 | 150 | 3,600 | 300 / 600 | 1.0/1.0/0 |
| Setting | S1 | S2 |
|---|---|---|
| Groups consumed per update | 32 | 32 |
| Queue consumption order | FIFO | Newest version first; newest arrival within version |
| Generation slack | 0.75 | 0.75 |
| Per-environment backpressure threshold | 168 | 28 |
| Total completed-queue capacity | 504 | 112 |
| Partial-trajectory admission | Disabled | Disabled |
| 1 | Initialize or restore state; publish to . |
|---|---|
| 2 | Run concurrently: copies of Producer for each , and Learner . |
| 3 | procedure Producer |
| 4 | while do |
| 5 | await dispatch enabled and environment budget available |
| 6 | ; ; reserve one group budget |
| 7 | ; attach and validity masks |
| Termination | Environment | Training reward | RLOO / gradient |
|---|---|---|---|
| Normal completion | All | Included / Included | |
| Budget exceeded | Claw | Included / Included | |
| Budget exceeded | SWE, TMax, CodeWorld | Included / Included | |
| Infrastructure failure | All | Excluded / Excluded |
| Environment | Instances | Rollout slots | P/R (K) | Turn (K) |
|---|---|---|---|---|
| Claw | 5,346 | 4 | 16/64 | – |
| SWE | 4,773 | 27 | 16/96 | 32 |
| TMax | 6,412 | 22 | 16/96 | 32 |
| CodeWorld | 4,344 | 31 | 16/96 | 32 |
| Total | 20,875 | 84 | – | – |
| Setting | Value |
|---|---|
| Training devices | 64 |
| Inference devices | 96 |
| Training TP / PP / CP | 8 / 8 / 1 |
| Inference TP / PP | 4 / 1 |
| Learning rate | (constant) |
| Instances per update (Claw / SWE / TMax / CodeWorld) | 8 / 8 / 8 / 8 |
| Benchmark | Instances | Harness | Budget (K) | Turn (K) | Max steps | Timeout (s) | Trials | |
|---|---|---|---|---|---|---|---|---|
| Claw-Anything | 288 | ClawAgent | 16/128 | – | 150 | 7,200 | 0/1.0/0 | 1 |
| Claw-Eval | 161 | Official sandbox | 256 total | 16 | 8–40 | 120–900 | 0/–/– | 3 |
| Terminal-Bench 2.1 | 89 | Harbor / Terminus-2 | 256 total | 32 | – | 10,800 | 0.6/0.95/20 | 3 |
| FeatureBench 1.1 | 100 | SWE-Agent | 32/224 | – | 300 | 3,600 | 0.6/0.95/20 | 1 |
| SWE-bench Verified | 500 | SWE-Agent | 16/240 | – | 300 | 7,200 | 0.6/0.95/20 | 1 |
| Qwen3.5 Maco-RL-3.5 S2 | Qwen3.8 Maco-RL-3.8 | |||
|---|---|---|---|---|
| Metric | Base trained | 95% CI for gain | Base trained | 95% CI for gain |
| Claw-Eval | ||||
| Claw-Anything Pass@1 | ||||
| Terminal-Bench 2.1 Pass@1 | ||||
| SWE-bench Verified Pass@1 | ||||
| FeatureBench Tests Passed | ||||
| Training approach | Consumed tokens | GPU hours | Best-so-far mean Pass@1 (%) |
|---|---|---|---|
| Three specialists, combined | 1.821B | 13,090.6 | 64.28 |
| Maco-RL | 1.852B | 12,572.4 | 68.41 |
| FeatureBench Tests Passed (%) | Newly solved instances | ||||
| Step | Vanilla | TBS | Gain (pp) | Vanilla | TBS |
| 5 | 32.62 | 39.89 | 8 | 1 | |
| 10 | 35.43 | 39.01 | 15 | 2 | |
| 15 | 36.77 | 41.85 | 20 | 6 | |
| 20 | 37.88 | 39.57 | 26 | 11 | |
| 25 | 39.78 | 42.87 | 33 | 15 | |
| Response (k) | Agent steps | Tokens / step | ||||
|---|---|---|---|---|---|---|
| Environment | Early | Late | Early | Late | Early | Late |
| Claw | 32.6 | 36.2 | 6.7 | 8.4 | 1125.6 | 1037.0 |
| SWE | 54.8 | 74.9 | 46.6 | 62.3 | 534.7 | 660.6 |
| TMax | 28.4 | 36.5 | 14.9 | 16.1 | 1052.9 | 1364.1 |
| CodeWorld | 84.9 | 80.6 | 77.4 | 110.7 | 514.2 | 333.1 |
RL Post-Training
Reinforcement learning post-training adapts pretrained models with reward or feedback signals to improve reasoning, alignment, and interactive behavior.
See all 475 papers