← Technology, Science & Infrastructure ▣ Distilled locally

Alibaba Qwen Introduces QwenGyre: Elastic Reinforcement Learning RL for XLong-Horizon Agents

By Asif Razzaq
October 12, 2026  ·  MarkTechPost ↗
Alibaba Qwen Introduces QwenGyre: Elastic Reinforcement Learning RL for XLong-Horizon Agents

Alibaba’s Qwen team has introduced QwenGyre, an elastic reinforcement learning RL framework for extreme-long-horizon agent training. QwenGyre is an online reinforcement learning system from Alibaba that trains coding agents through unmodified, black-box harnesses. It targets rollouts that run for hours and process close to 1M tokens. The QwenGyre elastic RL framework was used on Qwen’s flagship Qwen 3.8 2.4T model. It rests on 2 core ideas. It moves idle GPUs between rollout and training. It also turns branching agent histories into bounded training samples.

TL;DR

What problem does QwenGyre solve?

The research team defines ‘XLong-horizon’ tasks as agent runs spanning hours and hundreds of model and tool interactions. Examples include generating full repositories from specs, as in NL2Repo-Bench.

Two problems appear at this scale:

How does the Elastic Scheduler work?

QwenGyre splits GPUs into cells that share a training layout. Each cell can serve rollouts or host a full training replica. A core cell owns the authoritative weights and optimizer state. Satellite cells join training later.

The scheduler tracks a rollout waterlevel: queued and running executions. As executions finish, cells switch to training once the remaining cells can still serve all live work. Model calls are rerouted through a proxy, so the harness keeps running.

Key mechanics:

How does the Trajectory Processor build training samples?

A proxy records exact token IDs and behavior log-probabilities using token-in, token-out (TITO). Calls are stored as prefix-shared trajectory trees.

A cap of 5 matched uncapped training scores while cutting forward-backward time by 25.2%. Training uses an adapted GSPO with 16 rollouts per group.

How fast is QwenGyre? Benchmark results

All runs used Claude Code 2.1.220 as the harness, with equal GPU budgets and matched staleness.

Workload (model)vs Asyncvs ColocateNL2RepoBench (Qwen 3.6 122B, 48 steps)1.42x to 1.53x1.36x to 1.47xDeepSWE (Qwen 3.6 122B, 24 steps)1.569x to 1.572x1.610x to 1.824xTerminalBench (Qwen 3.6 122B, 24 steps)1.383x to 1.430x1.809x to 1.849xNL2RepoBench (Qwen 3.8 2.4T, 48 steps)1.78x1.21x

On the 2.4T model, QwenGyre finished 48 steps in 75.42 hours. Async took 134.55 hours and Colocate took 91.47 hours. Evaluation pass rate rose from 52.48% to 58.54%.

&&

How does QwenGyre compare with other agentic RL frameworks?

FeatureQwenGyreveRLAReaLAgent LightningDeveloperAlibaba QwenByteDance Seed + communityTsinghua IIIS + Ant GroupMicrosoftLicenseNot disclosedApache-2.0Apache-2.0MITGPU placementElastic cells, switch mid-rolloutFlexible device mapping, HybridEngine reshardingFully asynchronousNot disclosedBlack-box harnessYes, via proxyNot disclosedYes, via base_url swapYes, near-zero code changeTraining / rolloutMegatron / SGLangFSDP, Megatron / vLLM, SGLangMegatron, FSDP, Archon / vLLM, SGLangNot disclosedLargest stated scaleQwen 3.8 2.4T671B modelsNot disclosedNot disclosedHeadline speedupUp to 1.85x vs ColocateNot disclosed2.77x vs synchronous (v0.3)Not disclosedPublic codeNot disclosedYesYesYes

Speedups come from each project’s own setup and are not directly comparable.

Key Takeaways


Check out the full QwenGyre paper on arXiv and Qwen’s announcement post. All credit goes to the researcher of this project. Also, feel free to follow us on Twitter and don’t forget to join our 150k+ML SubReddit and Subscribe to our Newsletter. Wait! are you on telegram? now you can join us on telegram as well.

The post Alibaba Qwen Introduces QwenGyre: Elastic Reinforcement Learning RL for XLong-Horizon Agents appeared first on MarkTechPost.

Originally published by MarkTechPost ↗ · rebuilt here from its own full-text RSS feed · all rights remain with the publisher, please read and support them there.