Beating AI News Flash: Alibaba's Qwen team has proposed QwenGyre, a reinforcement learning framework specifically designed for AI Agents handling ultra-long tasks.
As Agents begin to take on complete software engineering tasks, a single execution can last for hours, involving hundreds of rounds of model calls and tool operations. Models need to learn from the actual outcomes of these tasks, but traditional training systems are prone to prolonged waiting and redundant computation.
The first issue is GPU utilization. Traditional synchronous training must wait for an entire batch of Agents to complete their tasks before updating the model collectively. Since different tasks vary greatly in duration, tasks that finish early leave some GPUs idle for extended periods. Although asynchronous training separates task execution from model training, it fixes the GPU allocation for both, making flexible adjustment difficult.
QwenGyre allows GPUs to dynamically switch their purpose based on task progress. As tasks complete one after another, the system transfers some GPUs to model training while the remaining GPUs continue to support unfinished Agents. The entire process requires no interruption of tasks, and workspace and tool states are preserved. Newly added GPUs can also directly participate in the current batch of training.
Another issue is training data redundancy. When Agents repeatedly retry, compress historical records, or invoke sub-Agents, they leave behind a large number of overlapping execution paths. QwenGyre records the actual inputs and outputs of each model call, organizing different paths into a trajectory tree with shared history. During training, only a limited number of paths are selected, and the same segment of model output is not computed repeatedly. Even if a task times out, completed and verifiable partial results can still be used for training.
The team validated this on Qwen3.8-2.4T, with a single task cumulatively processing approximately 700,000 tokens. Under the same GPU budget, completing 48 steps of reinforcement learning took QwenGyre 75.42 hours, while the traditional asynchronous approach required 134.55 hours, reducing training time by approximately 44%. After training, the model's pass rate on the code repository generation test NL2RepoBench improved from 52.48% to 58.54%. The paper also shows that QwenGyre achieves training scores close to those of traditional training approaches.
