Abstract
We introduce SeamlessFlow, a server-based reinforcement learning (RL) framework that addresses two core challenges in industrial-scale RL: (1) decoupling RL training from the complex execution flow of agents; (2) maximizing GPU utilization with minimal idle time while preserving the stability and scalability required for large-scale deployments. First, SeamlessFlow introduces a data plane that decouples the RL trainer from diverse, complex agent implementations while sustaining high throughput. A central trajectory manager maintains complete interaction histories and supports partial rollout, allowing rollout to pause for weight updates and resume seamlessly, keeping agents unaware of service interruptions. Second, we propose a tag-driven scheduling paradigm that abstracts hardware into capability-tagged resources, unifying colocated and disaggregated architectures. Based on this, SeamlessFlow introduces a spatiotemporal multiplexing pipeline that dynamically reassigns idle training nodes to rollout in a train-rollout separated setup, eliminating pipeline bubbles and fully exploiting heterogeneous cluster resources. By combining these innovations, SeamlessFlow delivers both stability and high performance, making it well-suited for multi-agent, long-horizon, and other complex RL tasks.
Introduction
In industrial-scale reinforcement learning (RL), training Large Language Models (LLMs) to act as agents—capable of tool use, web searching, or code generation—presents significant engineering hurdles. Current frameworks often suffer from two primary bottlenecks: Coupling Complexity, where trainers are tightly bound to specific agent implementations, and the "Pipeline Bubble", where compute resources sit idle during transitions between rollout and training phases. We introduce SeamlessFlow, a framework designed to decouple these processes and maximize GPU utilization through a novel tag-driven scheduling paradigm.
System Architecture
SeamlessFlow employs a seven-layer architecture that abstracts hardware into a fluid pool of resources. This structure allows for high throughput while maintaining the stability required for large-scale deployments.
Trainer-Agent Isolation via the Data Plane
A core innovation is the Data Plane, featuring a "Trajectory Manager" service. This service acts as a proxy between the LLM inference engine and the agents, using Longest-Prefix Matching (LPM) to reconstruct interaction histories. This ensures the trainer receives data identical to the model's generation. Crucially, it supports partial rollouts, allowing the system to pause an agent's generation mid-sentence for weight updates and resume seamlessly, keeping agents unaware of service interruptions.
Spatiotemporal Multiplexing and Tag Scheduling
To eliminate "pipeline bubbles," SeamlessFlow moves away from hard-coding machines as fixed "trainers" or "actors." Instead, it utilizes Tag-Driven Scheduling, assigning "capability tags" (e.g., rollout, train, critic) to resources.
As shown in the figure above, Spatiotemporal Multiplexing allows the scheduler to dynamically reassign idle training nodes to rollout tasks while waiting for data batches. Once sufficient data is collected, these nodes switch back to training. This approach ensures that GPUs are almost never idle, fully exploiting heterogeneous cluster resources.
Evaluation and Results
The framework was benchmarked against the mainstream VERL framework on H800 GPU clusters using standard math tasks and the rigorous SWE-Bench Verified software engineering benchmark.
- Throughput and Efficiency: SeamlessFlow achieved a 100% improvement in token throughput for single-turn tasks and a 62% reduction in overall training time by eliminating idle gaps.
- Agentic Performance: On coding tasks, a Qwen3-32B model trained with SeamlessFlow saw its success rate jump from 23.0% to 45.8%.
- Scalability: Performance gains became more pronounced as cluster size increased, demonstrating superior horizontal scalability.
Conclusion
SeamlessFlow provides a robust solution for scaling LLM-based agents by isolating trainer logic from agent complexity and optimizing resource allocation. While tag placement in heterogeneous clusters requires careful tuning (e.g., using train_priority tags), the framework's ability to eliminate pipeline bubbles significantly enhances training efficiency for multi-agent and long-horizon RL tasks.
Summary updated