Skip to content
Sıfırıncı Dakika
Latest

Alibaba Qwen introduces QwenGyre, an elastic reinforcement learning framework for long-horizon agents

AINew2 min read

In brief

Alibaba's Qwen team unveiled QwenGyre, an elastic reinforcement learning framework for training agents on tasks that run for hours and process close to 1 million tokens. The system shifts idle GPUs between rollout and training and turns branching agent histories into bounded training samples. Tested on Qwen 3.6 122B and Qwen 3.8 2.4T models, it delivers 1.21x to 1.85x speedups over comparable meth

  • Elastic RL framework for agent tasks lasting hours and ~1M tokens
  • Dynamically shifts idle GPUs between rollout and training
  • Turns branching agent histories into bounded training samples
  • Tested on Qwen 3.6 122B and Qwen 3.8 2.4T models
  • 1.38x-1.78x faster than Async, 1.21x-1.85x faster than Colocate
  • No public code release linked

What is QwenGyre?

Alibaba's Qwen team introduced QwenGyre, an elastic reinforcement learning (RL) framework built for extreme-long-horizon agent training. It is not a model but a training system: it trains coding agents through unmodified, black-box harnesses. The target is rollouts that run for hours and process close to 1 million tokens.

What problem does it solve?

Two issues dominate at this scale. First, rollouts have long tails: some executions finish very slowly while GPUs sit idle. Second, harnesses like Claude Code compact context and spawn sub-agents, so one execution becomes a branching tree, and expanding every path inflates training cost.

How does the elastic scheduler work?

QwenGyre splits GPUs into cells. Each cell either serves rollouts or hosts a full training replica. A core cell owns the authoritative weights and optimizer state, while satellite cells join training later. As executions finish, cells switch to training. Model calls are rerouted through a proxy so the harness keeps running. Average role switches took 8.52 seconds (rollout to training) and 3.46 seconds (training to rollout).

How are training samples built?

A proxy records exact token IDs and behavior log-probabilities. Timed-out executions are still scored on their preserved workspace, and evaluator failures are excluded rather than treated as zero reward. At most 5 trajectories per execution are kept, and only policy-generated tokens are trained. This cap matched uncapped training scores while cutting forward-backward time by 25.2%.

How fast is it?

All runs used Claude Code 2.1.220 as the harness with equal GPU budgets. Results show 1.38x-1.78x speedups over Async and 1.21x-1.85x over Colocate. The best result was 1.85x over Colocate on TerminalBench; the weakest was 1.21x on the 2.4T model. NL2RepoBench rose from 52.5% to 58.5% in 48 steps. The paper links no public code release.

Why it matters

Training AI agents that run for hours is an expensive and slow bottleneck; QwenGyre offers a concrete engineering fix to cut that cost. It could guide infrastructure choices for teams building agent-based products.

Sources

Related stories