SeamlessFlow: A Trainer Agent Isolation RL Framework Achieving Bubble-Free Pipelines via Tag Scheduling

Jinghui Wang, Shaojie Wang, Yinghan Cui, Xuxing Chen, Chao Wang, Xiaojiang Zhang, Minglei Zhang, Jiarong Zhang, Wenhao Zhuang, Yuchen Cao, Wankang Bao, Haimo Li, Zheng Lin, Huiming Wang, Haoyang Huang, Zong-Xian Feng, Zizheng Zhan, Ken Deng, Wen Xiang, Huaixi Tang, Kun Wu, Mengtong Li, Mengfei Xie, Junyi Peng, Haotian Zhang, Bin Chen, Bing Yu

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.

The seven-layer architecture of SeamlessFlow, illustrating the separation between Algoflow, Dataflow, Engine, Resources, Allocation, and Hardware layers.

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.

Comparison of resource utilization strategies: Disaggregated, Colocated, and SeamlessFlow's Spatiotemporal Multiplexing, which dynamically reassigns idle nodes to eliminate pipeline bubbles.

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

BibTeX
@misc{wang2025seamlessflow,
  author = {Jinghui Wang and Shaojie Wang and Yinghan Cui and Xuxing Chen and Chao Wang and Xiaojiang Zhang and Minglei Zhang and Jiarong Zhang and Wenhao Zhuang and Yuchen Cao and Wankang Bao and Haimo Li and Zheng Lin and Huiming Wang and Haoyang Huang and Zong-Xian Feng and Zizheng Zhan and Ken Deng and Wen Xiang and Huaixi Tang and Kun Wu and Mengtong Li and Mengfei Xie and Junyi Peng and Haotian Zhang and Bin Chen and Bing Yu},
  title = {{SeamlessFlow: A Trainer Agent Isolation RL Framework Achieving Bubble-Free Pipelines via Tag Scheduling}},
  year = {2025},
  eprint = {2508.11553},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2508.11553},
}
Figure