FlashNext-RL: A System Optimization Study for Long-Horizon Agentic RL of Qwen3.8-Flash-Next
On the map: LLM agents and tool use → Reinforcement learning for LLM agents
Abstract (arXiv)
Long-horizon agentic reinforcement learning (RL) requires both efficient rollout generation and training on long sequences. However, the memory requirements and model-specific operators of Qwen3.8-Flash-Next make this difficult with existing open-source implementations. To resolve these limitations, we introduce FlashNext-RL, a model-specific RL training optimization framework based on prime-rl, with vLLM for software engineering (SWE) rollout generation. Our main focus is BF16 training of the full 48-layer model on a single 8xB200 node, with the first two layers, the n-gram table, the sparse-attention indexer and the multi-token prediction head frozen. We optimize host offload, gradient accumulation and the kernels for mixture-of-experts, sparse attention and the gated residual stream. In the full-model development study, non-padding training throughput increases from approximately 395 tokens/s/GPU in the initial 32K-token configuration to 4,438 tokens/s/GPU in the optimized 131K-token configuration, with hardware matmul throughput (aka without considering the cost of attention components) increasing from approximately 20 to 213 TFLOPs/GPU. A controlled cumulative study on an 8-layer model further quantifies the contributions of individual optimizations. Together with three inference nodes, the system supports a live SWE RL run with a target batch of 1,024 trainable rollouts and a 131,072-token context limit. Over steps 5-15, an iteration takes 22.4 minutes on average, with bounded entropy and trainer-sampler mismatch KL. These results highlight the importance of tailoring RL training to the model's architecture, memory layout and kernel requirements, rather than relying only on general-purpose RL infrastructure.
Key facts. No citing papers in the map yet (data through 24 Nov 2026). Placed in Reinforcement learning for LLM agents, one of 16 directions in LLM agents and tool use. Builds on 36 of its 51 references that are in the map. Submitted 20 Oct 2026.
Builds on
36 of 51 references.
References · 36
- 2024DeepSeekMath: Pushing the Limits of Mathematical Reasoning in Open Language Modelscited by 10,542
- 2025Qwen3 Technical Reportcited by 9,994
- 2023Efficient Memory Management for Large Language Model Serving with PagedAttentioncited by 6,685
- 2022FlashAttention: Fast and Memory-Efficient Exact Attention with IO-Awarenesscited by 3,893
- 2023SWE-bench: Can Language Models Resolve Real-World GitHub Issues?cited by 3,871
- 2017Outrageously Large Neural Networks: The Sparsely-Gated Mixture-of-Experts Layercited by 3,767
- 2025DAPO: An Open-Source LLM Reinforcement Learning System at Scalecited by 3,138
- 2023FlashAttention-2: Faster Attention with Better Parallelism and Work Partitioningcited by 2,787
- 2024HybridFlow: A Flexible and Efficient RLHF Frameworkcited by 2,255
- 2022Fast Inference from Transformers via Speculative Decodingcited by 1,853
- 2023Accelerating Large Language Model Decoding with Speculative Samplingcited by 1,163
- 2025DeepSeek-V3.2: Pushing the Frontier of Open Large Language Modelscited by 940
24 more
- 2016Training Deep Nets with Sublinear Memory Costcited by 923
- 2023PyTorch FSDP: Experiences on Scaling Fully Sharded Data Parallelcited by 737
- 2024Gated Delta Networks: Improving Mamba2 with Delta Rulecited by 690
- 2024FlashAttention-3: Fast and Accurate Attention with Asynchrony and Low-precisioncited by 611
- 2025Muon is Scalable for LLM Trainingcited by 555
- 2025Native Sparse Attention: Hardware-Aligned and Natively Trainable Sparse Attentioncited by 469
- 2024Better & Faster Large Language Models via Multi-token Predictioncited by 422
- 2024Training Software Engineering Agents and Verifiers with SWE-Gymcited by 414
- 2024SWIFT:A Scalable lightWeight Infrastructure for Fine-Tuningcited by 395
- 2025SWE-smith: Scaling Data for Software Engineering Agentscited by 371
- 2021ZeRO-Offload: Democratizing Billion-Scale Model Trainingcited by 361
- 2025AReaL: A Large-Scale Asynchronous Reinforcement Learning System for Language Reasoningcited by 283
- 2023DeepSpeed Ulysses: System Optimizations for Enabling Training of Extreme Long Sequence Transformer Modelscited by 275
- 2025R2E-Gym: Procedural Environments and Hybrid Verifiers for Scaling Open-Weights SWE Agentscited by 193
- 2025SWE-rebench: An Automated Pipeline for Task Collection and Decontaminated Evaluation of Software Engineering Agentscited by 183
- 2023DeepSpeed-Chat: Easy, Fast and Affordable RLHF Training of ChatGPT-like Models at All Scalescited by 112
- 2025mHC: Manifold-Constrained Hyper-Connectionscited by 112
- 2026Conditional Memory via Scalable Lookup: A New Axis of Sparsity for Large Language Modelscited by 102
- 2024Hyper-Connectionscited by 99
- 2026On the Design of Qwen3.8-Next Architecture: Evaluation, Efficiency, and Training Stabilitycited by 96
- 2025Stabilizing MoE Reinforcement Learning by Aligning Training and Inference Routerscited by 91
- 2024ThunderKittens: Simple, Fast, and Adorable AI Kernelscited by 43
- 2025INTELLECT-3: Technical Reportcited by 6
- 2026Mixture-of-Kittens: MoE Megakernel for NVL72scited by 4
Built on by
Not cited yet.
Similar, not cited
Close in wording, no citation either way
- 2025Part II: ROLL Flash -- Accelerating RLVR and Agentic Training with Asynchrony
- 2026FlashREINFORCE: Critic-Free Single-Rollout Asynchronous RL for Agentic Language Models
- 2026QwenGyre: An Elastic Reinforcement Learning Framework for Training xLong-Horizon Agents
- 2026Libra: Efficient Resource Management for Agentic RL Post-Training
- 2026Single-Rollout Asynchronous Optimization for Agentic Reinforcement Learning
- 2026Molt: A Scalable PyTorch-Native Training Framework for Agentic Reinforcement Learning
- 2025RollArt: Disaggregated Multi-Task Agentic RL Training at Scale
- 2026LiteResearcher: A Scalable Agentic RL Training Framework for Deep Research Agent