HyperAIHyperAI

Command Palette

Search for a command to run...

MACO-RL : Mise à l’échelle des capacités d’agent par apprentissage par renforcement multitâche

Jiacheng Zhang Qixing Zhou Haiyang Wang Qipeng Gu Shuzhe Wu Feiyang Pan Lue Fan Dandan Tu Zhaoxiang Zhang

Résumé

L’apprentissage par renforcement multitâche (MixRL) entraîne directement une politique unifiée à travers plusieurs domaines afin d’étendre continuellement les capacités d’un agent, sans former de spécialistes séparés ni recourir à une étape de distillation supplémentaire. Malgré son attrait, le passage à l’échelle de MixRL soulève des difficultés importantes pour obtenir un apprentissage multitâche stable et efficace, répartir judicieusement le calcul consacré aux déploiements et soutenir l’expansion continue des domaines. Pour répondre à ces défis, nous proposons Maco-RL, une approche qui met efficacement MixRL à l’échelle. Plus précisément, Maco-RL utilise un ordonnanceur à quotas pour des déploiements asynchrones sur plusieurs domaines de tâches, stabilisant ainsi l’entraînement en équilibrant les contributions des gradients et en atténuant les effets hors politique. Sur un axe orthogonal, Maco-RL introduit en outre l’échantillonnage à triple tampon (TBS) afin de répartir le calcul entre des échantillons présentant différents niveaux de maîtrise, favorisant une exploration soutenue de la frontière tout en préservant les capacités acquises. Des expériences sur cinq bancs d’essai montrent que Maco-RL fait passer le score global de Qwen3.5-27B de 43,6 à 54,2, puis à 60,1 avec une expansion continue, atteignant la frontière détenue par Qwen3.8-27B, qui est ensuite repoussée de +5,7. Maco-RL surpasse également l’apprentissage par renforcement monotâche tout en nécessitant moins de calcul pour les mises à jour de politique. Ces résultats confortent MixRL comme une approche de post-entraînement pratique et économe en calcul, dotée d’un potentiel substantiel pour renforcer les capacités générales des agents.

One-sentence Summary

Researchers from the Institute of Automation, Chinese Academy of Sciences, and Huawei Technologies Co., Ltd. propose Maco-RL, a mixed-task reinforcement learning approach that scales agent capabilities via a quota-based asynchronous rollout scheduler and Tri-Buffer Sampling, stabilizing multi-domain training and allocating compute by mastery; on five benchmarks it raises Qwen3.5-27B from 43.6 to 54.2 and then to 60.1, outperforming single-task RL with less compute.

Key Contributions

  • Maco-RL is a quota-based asynchronous training framework that combines per-environment rollout concurrency with mixed-task policy updates, stabilizing training by balancing gradient contributions and mitigating off-policy effects across heterogeneous task domains.
  • Tri-Buffer Sampling (TBS) reserves quotas for unsolved, previously solved, and earlier-stage task instances and favors occasional successes within the Reinforcement Buffer, sustaining frontier exploration while preserving acquired capabilities during incremental expansion.
  • 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 and pushing it outward by +5.7. Maco-RL also outperforms single-task RL with less compute for policy updates.

Introduction

Large language model agents have advanced in software engineering, terminal operations, and office automation, with reinforcement learning serving as a key post-training mechanism. Prior work either trains domain specialists independently and then consolidates them, or applies direct mixed-task RL; the latter is promising but difficult to scale because heterogeneous tasks can have conflicting reward distributions, training requires close coordination across environments, and sampling must balance unsolved tasks, occasional successes, and older skills during incremental expansion. The authors introduce Maco-RL, an asynchronous direct mixed-task RL framework that mixes gradients across tasks and uses Tri-Buffer Sampling to allocate rollout capacity across frontier, reinforcement, and history buffers. This enables RL-only post-training and incremental task expansion, with results showing performance comparable to or better than larger models while using fewer policy updates.

Method

The authors design Maco-RL to support direct mixed-task reinforcement learning across diverse tasks, accommodating incremental additions of task instances and new task types. The framework trains a shared policy on four task types: code repair, terminal operations, office automation, and feature development. To simulate real-world agentic reinforcement learning training that spans weeks or months, the authors adopt a two-stage incremental training schedule.

As shown in the figure above, Stage 1 jointly trains on the first three task types. Stage 2 continues from the checkpoint, expanding the instance pools for these existing tasks and introducing the new feature development task. This progressive scaling allows the model to continuously incorporate new data and task types.

To support joint training across heterogeneous tasks, Maco-RL decouples rollout generation from policy optimization.

As illustrated in the framework diagram, rollout workers independently sample instances from their respective task pools and collect completed trajectories in a shared rollout buffer. The learner assembles mixed-task batches from this buffer using fixed per-task instance quotas, ensuring all task types are included in every update. To limit data staleness, the system periodically synchronizes the rollout policy with the learner and discards trajectories whose policy-version lag exceeds a predefined threshold.

Because each batch must satisfy all task quotas, tasks with longer rollout durations can delay policy updates. The authors address this by allocating more concurrent rollout slots to slower tasks, aligning trajectory supply with batch requirements and reducing learner idle time.

Regarding batch composition, mixed-task reinforcement learning can either alternate single-task batches or combine trajectories from all task types within each batch. The authors adopt the latter approach, arguing that controlling policy drift is more critical under asynchronous execution than mitigating conflicts between task objectives. Delayed weight synchronization causes the rollout policy to lag behind the current training policy, and task alternation may further widen this shift.

As demonstrated in the figure above, alternating updates lead to reward collapse and tool-use failures, whereas training on mixed batches with gradient mixing maintains stable training. By coordinating asynchronous rollouts with policy updates on mixed batches, Maco-RL maintains high training throughput and stable optimization.

To manage instance sampling effectively during incremental reinforcement learning scaling, the authors propose Tri-Buffer Sampling. In sparse-reward tasks, repeatedly sampling unsolved instances can consume substantial compute without a reward-based policy-gradient signal. Tri-Buffer Sampling allocates target proportions αF\alpha_FαF​, αR\alpha_RαR​, and αH\alpha_HαH​ to Frontier, Reinforcement, and History buffers, with αF+αR+αH=1\alpha_F + \alpha_R + \alpha_H = 1αF​+αR​+αH​=1. These quotas explicitly balance exploration, reinforcement, and task replay.

The authors evaluate each newly introduced instance with an initial group of rollouts. Instances with no successful rollout enter the Frontier Buffer, while those with at least one success enter the Reinforcement Buffer.

The Frontier Buffer reserves sampling capacity for instances with no observed success. To limit unproductive retries, the system temporarily suspends sampling of instances that remain unsuccessful across consecutive rollout groups and restores their eligibility after a predefined cooldown period. After its first successful rollout, an instance moves to the Reinforcement Buffer and does not return to the Frontier Buffer.

The Reinforcement Buffer prioritizes instances that the policy has solved but cannot yet solve reliably. For an instance xxx with success rate p^(x)\widehat{p}(x)p​(x) in its latest rollout group, the authors define its sampling weight and probability as:

w(x)=exp⁡[−(p^(x)−μ)22θ2],PR(x)=w(x)∑y∈Rw(y)w(x) = \exp\left[-\frac{(\widehat{p}(x) - \mu)^2}{2\theta^2}\right], \qquad P_R(x) = \frac{w(x)}{\sum_{y \in \mathcal{R}} w(y)}w(x)=exp[−2θ2(p​(x)−μ)2​],PR​(x)=∑y∈R​w(y)w(x)​

The History Buffer retains instances from earlier training stages to maintain exposure to past tasks. The authors sample these instances uniformly and generate fresh rollouts with the current policy, supporting capability retention during progressive reinforcement learning scaling.

Experiment

The study evaluates RL-only post-training of Qwen3.5-27B and Qwen3.8-27B across two stages on mixed agentic tasks, measuring five benchmarks that span issue resolution, terminal use, claw-style interaction, and feature development. Main results show that expanding task types and instances improves overall performance beyond baselines, and mixed-task training is more data efficient and stable than single-task or alternating updates. Ablations further validate that gradient mixing across tasks prevents reward collapse and that tri-buffer sampling balances exploration with reinforcement on sparse-success tasks. The authors also identify and mitigate reward hacking, where models recovered reference solutions from exposed sources, along with grading issues that had caused training instability.

Maco-RL post-training improves Qwen models across all five benchmarks. Progressive task expansion with Qwen3.5-27B raises overall performance from 43.6 to 60.1, and applying the same recipe to Qwen3.8-27B lifts it from 61.4 to 67.0, making it the best evaluated 27B model and competitive with several larger frontier models. The Qwen3.5 model trained through stage 2 also achieves the highest Claw-Anything success among all compared models. Qwen3.8-27B with Maco-RL achieves the best overall result among evaluated 27B models and improves over its baseline on every benchmark. Maco-RL-3.5 stage 2 reaches the top Claw-Anything score in the comparison, outperforming all other compared models. Expanding task pools and adding feature development in stage 2 raises Qwen3.5-27B overall performance by a further margin beyond stage 1.

The training configurations shift rollout emphasis from a first stage with SWE tasks receiving the largest allocation to a more balanced setup once CodeWorld feature-development tasks are introduced. In the second stage, CodeWorld receives the largest rollout share among new instances while Claw-Anything drops to a small share. The Qwen3.8-27B full pool contains 20,875 instances and again gives CodeWorld the highest rollout share. In the first stage, SWE tasks receive the largest rollout share, followed by TMax and Claw-Anything. The second stage introduces CodeWorld with the largest rollout share among new instances, while SWE and TMax retain substantial shares and Claw-Anything becomes a small allocation. Qwen3.8-27B gives CodeWorld the highest rollout share, with SWE and TMax relatively close and Claw-Anything the smallest. S2 reports only new instances, so its 10,452 instances combine with all 11,086 retained S1 instances for a total of 21,538 training instances.

The experiments evaluate Maco-RL post-training across five benchmarks using a two-stage progressive task-expansion setup, where the first stage emphasizes SWE tasks and the second adds CodeWorld feature-development tasks while retaining prior instances. Maco-RL consistently improves both Qwen3.5-27B and Qwen3.8-27B, with the latter becoming the best evaluated 27B model and improving on every benchmark. The second-stage expansion with CodeWorld yields further gains and enables the Qwen3.5 model to achieve the top Claw-Anything success among all compared models. The Qwen3.8 training pool also assigns CodeWorld the largest rollout share, while the combined stage-2 and retained stage-1 data form the full training set.


Créer de l'IA avec l'IA

De l'idée au lancement — accélérez votre développement IA avec le co-codage IA gratuit, un environnement prêt à l'emploi et le meilleur prix pour les GPU.

Codage assisté par IA
GPU prêts à l’emploi
Tarifs les plus avantageux

HyperAI Newsletters

Abonnez-vous à nos dernières mises à jour
Nous vous enverrons les dernières mises à jour de la semaine dans votre boîte de réception à neuf heures chaque lundi matin
Propulsé par MailChimp