Reinforcement learning (RL) post-training has proven effective at unlocking reasoning, self-reflection, and tool-use capabilities in large language models. As models extend to omni-modal inputs and agentic multi-turn workflows, RL training systems face three interdependent challenges: heterogeneous data flows, operational robustness at scale, and the staleness -- throughput tradeoff. We present Relax (Reinforcement Engine Leveraging Agentic X-modality), an open-source RL training engine that addresses these challenges through three co-designed architectural layers. First, an omni-native architecture builds multimodal support into the full stack -- from data preprocessing and modality-aware parallelism to inference generation -- rather than retrofitting it onto a text-centric pipeline. Second, each RL role runs as an independent, fault-isolated service that can be scaled, recovered, and upgraded without global coordination. Third, service-level decoupling enables asynchronous training via the TransferQueue data bus, where a single staleness parameter smoothly interpolates among on-policy, near-on-policy, and fully asynchronous execution. Relax achieves a 1.20× end-to-end speedup over veRL on Qwen3-4B on-policy training. Its fully async mode delivers a 1.76× speedup over colocate on Qwen3-4B and a 2.00× speedup on Qwen3-Omni-30B, while all modes converge to the same reward level. Relax supports R3 (Rollout Routing Replay)~\cite{ma2025r3} for MoE models with only 1.9% overhead, compared to 32% degradation in veRL under the same configuration. It further demonstrates stable omni-modal RL convergence on Qwen3-Omni across image, text, and audio, sustaining over 2{,}000 steps on video without degradation. Relax is available at https://github.com/rednote-ai/Relax.
Figures & tables
Figure 1: Relax system architecture. The Controller (control plane) orchestrates RL roles that execute on independent backends (computation plane) and exchange data exclusively through TransferQueue (data plane).
Figure 2: Service-oriented infrastructure components. (a) DCS coordinates topology discovery and weight metadata; clients abstract transport details; role nodes perform low-latency weight synchronization. (b) The health subsystem classifies role failures by severity and triggers either in-place or global restart accordingly.
Figure 3: Timeline comparison of three training modes. (a) Colocate: rollout and training alternate on shared GPUs. (b) Separated on-policy: independent GPU groups with inter-batch synchronization. (c) Fully async off-policy: all groups run continuously with no blocking.
Figure 4: Omni-modal reward convergence (Qwen3-Omni-30B). (a) Image+text+audio training on Echo Ink. (b) Video training on NextQA.
Figure 5: End-to-end performance: Relax vs. veRL on Qwen3-4B. (a) Per-step time comparison. (b) Gantt-chart view of pipeline overlap.
Metric
Relax
veRL
Step Time
125.6 s
150.5 s
Steps/Hour
28.7
23.9
Rollout Wall-Clock Cost
0 s (fully masked)
38.2 s (on critical path)
Ref LogP Extra Cost
0 s (resource separation)
27.3 s (sequential stage)
Table 1: End-to-end comparison: Relax vs. veRL on Qwen3-4B.
Figure 6: Training-mode comparison on Qwen3-4B / DAPO-MATH-17k. (a) Reward by step. (b) Reward by wall-clock time. (c) Per-step time distribution. (d) Gantt-chart view of pipeline structure.
Metric
Colocate
Async On-Policy
Async Off-Policy
Step Time
225.9 s
201.0 s
128.6 s
Steps/Hour
15.9
17.9
28.0
vs Colocate Speedup
1.00 ×
1.12 ×
1.76 ×
Sleep/Wakeup
10 s/step
0 s
0 s
Table 2: Training-mode comparison on Qwen3-4B / DAPO-MATH-17k.
Figure 7: Colocate vs. fully async on Qwen3-Omni-30B / Echo Ink. (a) Reward by step. (b) Reward by wall-clock time.
Figure 8: R3 ablation on Qwen3-30B-A3B: Relax vs. veRL. (a) Normalized routing mismatch. (b) Reward convergence. (c) Step time overhead (w/ R3 / w/o R3).
Appendix figures & tables3 assets
Supplementary material from the paper’s appendix.
Appendix
Figure 9: Text-only RL on DAPO-MATH (Qwen3-30B-A3B). (a) Training reward, pass@k, and response length. (b) AIME-24 evaluation pass@k over training steps.
Reinforcement learning studies how agents learn sequential decisions from rewards and interaction, balancing exploration, performance, safety, and adaptation.
Reinforcement learning (RL) has become a pivotal technology in the post-training phase of large language models (LLMs). Traditional task-collocated RL frameworks suffer from significant scalability bottlenecks, while task-separated RL frameworks face challenges in managing complex dataflows and resolving resource idling. Furthermore, most existing frameworks are tightly coupled with LLM training or inference engines, making them difficult to support custom-designed engines. To address these challenges, we propose AsyncFlow, an asynchronous streaming RL framework tailored for efficient post-training. Specifically, we introduce a distributed data storage and transfer module that provides panoramic data management and fine-grained scheduling capabilities in a fully streamed manner. This architecture inherently enables automated pipeline overlapping among RL tasks and dynamic load-balancing. Moreover, we propose an asynchronous producer-consumer workflow, which is engineered to minimize computational idleness by strategically deferring the parameter update process within staleness thresholds. Finally, the core capabilities of AsyncFlow are architecturally decoupled from underlying training and inference engines and encapsulated by service-oriented user interfaces, offering a modular and customizable user experience. Extensive experiments demonstrate an average throughput of 1.59x compared to the state-of-the-art baseline. The architecture presented in this work provides actionable insights for designing next-generation RL training systems.
Reinforcement learning (RL) has become a critical paradigm for LLM post-training, yet the rollout phase -- accounting for 50--80% of total step time -- is bottlenecked by skewed generation: long-tailed trajectories indispensable for model performance block the entire training pipeline. Asynchronous training offers a natural remedy by overlapping generation with training, but introduces a fundamental tension between efficiency and algorithmic correctness. We identify three constraints in asynchronous training to preserve convergence: intra-trajectory policy consistency, data integrity, and bounded staleness. Existing approaches fail to intrinsically address the long-tailed trajectory problem, which is further exacerbated by the imbalance characteristic of Mix-of-Experts models, or deviate from the standard RL training formulation, thereby hindering model convergence. Therefore, we propose DORA (Dynamic ORchestration for Asynchronous Rollout), which addresses this challenge through algorithm-system co-design. DORA introduces multi-version streaming rollout, a novel asynchronous paradigm that maintains multiple policy versions concurrently -- simultaneously achieving full bubble elimination without compromising algorithmic constraints. Experimental results demonstrate that our DORA system achieves substantial improvements in throughput -- up to 2--3 times higher than state-of-the-art systems on open-source benchmarks -- without compromising convergence. Furthermore, in large-scale industrial applications with tens of thousands of accelerators, DORA accelerates RL training by 2--4 times compared to synchronous training across various scenarios. The resultant open-source models, LongCat-Flash-Thinking, exhibit competitive performance on complex reasoning benchmarks, matching the capability of most advanced LLMs.
Large language model (LLM) reinforcement learning (RL) pipelines are often bottlenecked by rollout generation, making end-to-end training slow. Recent work mitigates this by running rollouts with quantization to accelerate decoding, which is the most expensive stage of the RL loop. However, these setups destabilize optimization by amplifying the training-inference gap: rollouts are operated at low precision, while learning updates are computed at full precision. To address this challenge, we propose QaRL (Rollout Alignment Quantization-Aware RL), which aligns training-side forward with the quantized rollout to minimize mismatch. We further identify a failure mode in quantized rollouts: long-form responses tend to produce repetitive, garbled tokens (error tokens). To mitigate these problems, we introduce TBPO (Trust-Band Policy Optimization), a sequence-level objective with dual clipping for negative samples, aimed at keeping updates within the trust region. On Qwen3-30B-A3B MoE for math problems, QaRL outperforms quantized-rollout training by +5.5 while improving stability and preserving low-bit throughput benefits.
Hao Gu, Hao Wang, Jiacheng Liu +9
The Hong Kong University of Science and Technology · City University of Hong Kong · Zhejiang University