LoongSage: A Production-Grade, High-Efficiency Agentic RL Framework for Frontier LLMs with Validated Recipes

LoongSage Team, Bowei Song, Caiwei Zhao, Chuwen Liu, Dechuang Gu +43 more
10/12/2026
cs.LGcs.CL
rldistillation

No confident code implementation found for this paper.

Abstract

Reinforcement learning (RL) has emerged as a critical phase in the post-training pipeline of large language models (LLMs). As the frontier of LLM capabilities shifts from static reasoning to agentic tasks--characterized by external tool invocation, multi-turn interactions, and long-horizon decision-making--existing mainstream RL frameworks have grown increasingly unwieldy, raising the overhead of adoption, usage, and debugging.

Show full abstract

To address these challenges, we present LoongSage, an agent-native, fully asynchronous RL framework with a lightweight core of roughly 14K lines of code. Built upon Megatron for distributed training and SGLang for high-throughput inference, LoongSage centralizes orchestration within a single controller process and encapsulates all GPU-resident components as Ray actors. It introduces AgentFlow, a unified execution paradigm that orchestrates both white-box and black-box agents. For asynchronous execution, it integrates sliding-window strategies that bound trajectory staleness, and employs TransferMesh, a topology-aware synchronization mechanism that routes weights after each step over the fastest transport available to each receiver. Beyond agentic RL, LoongSage incorporates a memory-efficient Teacher Manager that decouples the scaling of teacher models from GPU memory constraints, natively supporting Multi-Teacher On-Policy Distillation. Extensive evaluations across four complete training runs, spanning complex reinforcement learning and multi-teacher distillation, demonstrate that task rewards improve steadily while the train-inference gap is kept under continuous control, and the fully asynchronous pipeline removes synchronous idle bubbles, sustaining hardware utilization.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{team2026loongsage,
  title  = {LoongSage: A Production-Grade, High-Efficiency Agentic RL Framework for Frontier LLMs with Validated Recipes},
  author = {LoongSage Team and Bowei Song and Caiwei Zhao and Chuwen Liu and Dechuang Gu and Dong Fang and Feiyu Xie and Huaiyu Li and Hui Zhang and Jian Tian and Jian Wang and Jie Zhao and Liguang Li and Maoyun Wang and Meiyan Yang and Minghan Zhu and Pai Liu and Pandeng Yao and Renbao Tian and Ru Yang and Shuai Jia and Shuai Tan and Shuailong Li and Shuliang Li and Teng Jin and Tianze Yang and Wenbo Cui and Wenjing Bai and Wenkang Wu and Xiaowei Jiang and Xiaoyi Dong and Yanpeng Wang and Yanwen Wang and Yaohui Ma and Yawen Wang and Yihang Zhang and Yingjie Yan and Zhanbiao Lian and Zhenyu Lu and Zhida Hu and Zhihui Hao and Zhihui Hu and Zhiwen Xiao and Zhiyi Gao and Zhongwei Qi and Zhuangzhuang Wu and Ziqian Liu and Ziyue Zheng},
  year   = {2026},
  eprint = {2610.16352},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2610.16352v2}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2610.16352.svg)](https://codeofpaper.com/paper/2610.16352)

Discussion