Abstract
Training large language model (LLM) agents for multi-turn, long-horizon tasks is computationally intensive and often inefficient due to idle GPU time during CPU-bound environment interactions. We present SkyRL-Agent, a modular framework designed to scale reinforcement learning (RL) for agents. By implementing a fine-grained asynchronous pipeline that overlaps tool execution with model generation, SkyRL-Agent achieves a 1.55x speedup in training throughput. We demonstrate the framework's efficacy by developing SA-SWE-32B, a software engineering agent that matches state-of-the-art performance on SWE-Bench Verified while reducing training costs by over 50%.
Introduction
As LLM agents move beyond single-turn chat to complex, stateful interactions—such as coding, web browsing, and OS navigation—the limitations of current RL training frameworks become apparent. Existing systems like VeRL or SkyRL-train focus on distributed training but lack an optimized rollout orchestration layer. This leads to two primary bottlenecks: system inefficiency, where GPUs remain idle during environment steps (e.g., running code or loading web pages), and algorithmic fragility, where sparse rewards in complex environments cause training to stall.
SkyRL-Agent addresses these challenges by providing a backend-agnostic layer that manages tools, schedules rollouts efficiently, and simplifies the integration of diverse agentic tasks.
Methods
Modular Architecture
The framework is built around three core architectural innovations designed for flexibility and performance:
- Fine-Grained Asynchronous Dispatcher: Instead of treating a rollout as a monolithic job, SkyRL-Agent decomposes it into stages: Initialization, Agent Run, and Reward Calculation. The "Async Pipeline" strategy allows these stages to overlap across different trajectories, effectively "filling the bubbles" of GPU inactivity.
- Tool-Centric Agent Loop: Agents interact exclusively through OpenAI-style function calls. This unified management approach treats even internal state modifications (like history summarization) as tool calls, making the system highly extensible across different domains.
- Transition-Based Data Design: Unlike traditional mask-based concatenation, which can be brittle for long-horizon tasks, SkyRL-Agent records individual (observation, action, reward) tuples. This enables off-policy corrections and more flexible reward assignment.
Tool-Enhanced Training
For the software engineering domain, we introduced an AST-based search tool. This tool provides contextual hints that help the agent navigate large codebases more effectively than standard search utilities, bootstrapping the RL process in environments where successful trajectories are rare.
Key Results
Training Efficiency
The implementation of the Async Pipeline significantly improves hardware utilization. By hiding CPU latency behind model generation, SkyRL-Agent maintains GPU utilization near 90% throughout the training process. This results in a 1.55x speedup compared to standard asynchronous batching methods.
Model Performance and Cost
Our flagship model, SA-SWE-32B (based on Qwen3-32B), achieved 39.4% Pass@1 on the SWE-Bench Verified benchmark. Notably, this performance was achieved with a 2x reduction in training costs compared to previous state-of-the-art models like DeepSWE (requiring 4,601 H100 hours versus 9,180).
Generalization
Despite being trained primarily on software engineering tasks, the model demonstrated strong generalization to out-of-domain benchmarks. It outperformed the base Qwen3-32B model on Terminal-Bench (CLI tasks), BrowseComp-Plus, and WebArena. This suggests that the "tool-use competence" acquired during software engineering training transfers effectively to other stateful environments.
Conclusion
SkyRL-Agent demonstrates that optimizing the rollout orchestration layer is as critical as scaling the training backend for multi-turn LLM agents. By maximizing GPU utilization and providing a modular tool-centric framework, we enable the development of high-performance agents at a fraction of the traditional computational cost. Future work will focus on addressing the remaining challenges in GUI-based tasks and exploring multi-agent recursive loops.
Summary updated