Command Palette
Search for a command to run...
Maco-RL: توسيع قدرات الوكيل عبر التعلم المعزز متعدد المهام
Maco-RL: توسيع قدرات الوكيل عبر التعلم المعزز متعدد المهام
Jiacheng Zhang Qixing Zhou Haiyang Wang Qipeng Gu Shuzhe Wu Feiyang Pan Lue Fan Dandan Tu Zhaoxiang Zhang
الملخص
يعمل التعلم المعزز متعدد المهام (MixRL) على تدريب سياسة موحدة مباشرة عبر مجالات متعددة لتوسيع قدرات الوكيل باستمرار دون تدريب متخصصين منفصلين أو الحاجة إلى مرحلة تقطير إضافية. ورغم جاذبيته، يطرح توسيع نطاق MixRL تحديات كبيرة في تحقيق تعلم متعدد المهام مستقر وفعال، وتخصيص موارد التنفيذ بفعالية، ودعم التوسع المستمر في المجالات. ولمعالجة هذه التحديات، نقترح Maco-RL، وهو نهج يوسع نطاق MixRL بفعالية. وعلى وجه التحديد، يستخدم Maco-RL مجدولًا قائمًا على الحصص لعمليات التنفيذ غير المتزامنة عبر مجالات مهام متعددة، مما يعمل على استقرار التدريب من خلال موازنة مساهمات التدرجات وتخفيف آثار الخروج عن السياسة. وعلى محور متعامد، يقدم Maco-RL أيضًا أخذ عينات ثلاثية المخازن (TBS) لتخصيص الحوسبة بين العينات ذات مستويات الإتقان المتفاوتة، مما يعزز الاستكشاف المستدام للحدود مع الحفاظ على القدرات المكتسبة. تُظهر التجارب على خمسة معايير أن Maco-RL يرفع الدرجة الإجمالية لنموذج Qwen3.5-27B من 43.6 إلى 54.2 ثم إلى 60.1 مع التوسع المستمر، ليصل إلى الحدود التي يحتفظ بها Qwen3.8-27B، والتي تُدفع إلى الأمام بمقدار +5.7 إضافية. كما يتفوق Maco-RL على التعلم المعزز أحادي المهمة مع استهلاك حوسبة أقل لتحديثات السياسة. تدعم هذه النتائج اعتبار MixRL نهجًا عمليًا وفعالًا من حيث الحوسبة للتدريب اللاحق مع إمكانات كبيرة لتعزيز قدرات الوكيل العامة.
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, αR, and αH to Frontier, Reinforcement, and History buffers, with α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 x with success rate p(x) in its latest rollout group, the authors define its sampling weight and probability as:
w(x)=exp[−2θ2(p(x)−μ)2],PR(x)=∑y∈Rw(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.