Skip to content

Menu

WorksComputer Science

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

Download PDFView on arXiv

Ask your agent about this work

Your agent reads this work through Valency, with its citations and similar works. Paste this at the start of a chat.

Use the Valency MCP. Work: W_cj4af22w. Fetch it with get_paper_by_id, then find its nearest works with find_similar_papers and tell me what it adds.

Works with any MCP client. Not connected yet? Connect your agent

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. 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.

LoongSage

Introduction

Reinforcement Learning (RL) has emerged as a pivotal post-training mechanism driving recent capability gains in Large Language Models (LLMs). Historically, the GPT series leveraged Reinforcement Learning from Human Feedback (RLHF) to translate human preferences into optimizable objectives, establishing the viability of instruction-following assistants [25]. More recently, models like DeepSeek-R1 have demonstrated that, given verifiable rewards, complex behaviors such as extended chain-of-thought reasoning, self-correction, and backtracking can emerge through RL optimization [10, 40]. As the focus transitions from instruction-following to complex reasoning, RL has shifted from a secondary fine-tuning step to a central phase for instilling core model capabilities.

Despite these reasoning advancements, text generation alone is insufficient for executing complex, real-world projects. This limitation has catalyzed exploration into tool-calling capabilities [45, 30], driving the paradigm shift towards agentic RL. In this context, reward signals are no longer confined to the correctness of single-turn responses. Instead, they evaluate an agent’s holistic ability to complete tasks by invoking tools, manipulating files, executing tests, and refining actions iteratively based on environmental feedback. Consequently, coding, research, and computer-use agents have established end-to-end task completion as a new capability frontier [43, 50, 41]. Compared to single-turn tasks, agentic RL unfolds over extended horizons with persistent multi-turn states, necessitates sandboxed execution for external side effects, and produces heavy-tailed episode distributions [8, 20]. This fundamental shift redefines the role of an RL framework from merely generating and scoring text to continuously driving and recording a system operating within dynamic environments.

However, many existing RL frameworks are rooted in assumptions inherited from single-turn RLHF or verifiable-reward workloads [13], rendering them suboptimal for agentic training. While some systems introduce controller-centered abstractions [36] or deliberately narrow the pairing of backend engines [51], few treat the complexities of agentic training as first-class design concerns, and these complexities translate directly into production overheads. For instance, memory constraints typically bottleneck the number of teachers in multi-teacher distillation, and synchronous train–inference loops suffer severe utilization drops due to long-tailed trajectory rollouts. Furthermore, several systemic discrepancies manifest as implicit off-policy drift: mismatches in tokenization, numerical precision, and Mixture-of-Experts (MoE) routing between the training and inference engines. These are compounded by loose trajectory reconstruction—a subtle but accumulating divergence between the inference-generated sequences and the training-consumed data. Because algorithmic hyperparameters cannot tune away these systemic issues, a modern framework must elevate resource management, train–inference decoupling, numerical consistency, and trajectory fidelity to first-class design primitives.

To address these critical gaps, we present LoongSage, a lightweight agentic RL training framework engineered for production-grade workloads. It is built on Megatron [37] for distributed training and SGLang [49] for high-throughput inference. Notably, we open-source not only the framework but also the validated training recipes, enabling researchers to initialize runs from configurations proven on frontier models rather than starting from scratch. Its key features include:

  • Seamless Integration of Any Agent: LoongSage accommodates any white-box or black-box agent via standard LLM serving APIs (e.g., Chat Completions) with zero intrusion into agent logic. Its AgentFlow paradigm maintains strict token-level alignment (Token-In, Token-Out; TITO), feeding the training engine the exact token streams generated during inference.

  • Staleness-Controlled Fully Asynchronous Training: By decoupling the sampling and optimization phases via a train–rollout buffer, the fully asynchronous pipeline overlaps rollout with training and shortens the step time. To control the resulting trajectory staleness, it employs sliding-window strategies, keeping off-policy drift explicit and observable.

  • Topology-Aware Weight Synchronization: Through TransferMesh, LoongSage transfers weights from training to inference as a continuous named tensor stream. The system selects the transport by device topology—a CUDA IPC handle for colocated GPUs or an NCCL broadcast for other receivers—keeping the synchronization process transparent to both backend engines.

  • Full-Vocabulary Multi-Teacher On-Policy Distillation: An independent Teacher Manager treats teacher models as dynamically managed compute resources, decoupling the permissible number of teachers from the student model’s GPU memory constraints to enable scalable multi-teacher distillation. Furthermore, it natively supports a composable, multi-paradigm objective function—spanning PG-style, GKD-style, and hybrid distillation modes—equipped with built-in estimators including sampled-token, Top-KK, full-vocabulary, and Jensen–Shannon Divergence (JSD) KL strategies.

  • Systemic Train–Inference Consistency: LoongSage combines Deterministic Source Alignment (e.g., MoE routing replay), selective precision pinning for critical layers, and algorithmic residual corrections (including TIS, M2PO, and OPSM) to keep the optimization plane tracking the sampling distribution.

  • Lightweight, Usable, and Highly Extensible: By building on pinned upstream versions of its backend engines rather than forks, the lightweight core inherits upstream optimizations and newly supported models with minimal adaptation. Additionally, a highly extensible plugin system exposes ten core extension points—spanning agents, reward models, and scheduling strategies—so that new algorithms can be plugged in through configuration without modifying the framework’s main trunk.

Related Work

The Evolution of LLM Post-Training

Compositional Paradigms. Modern LLM post-training is converging toward a compositional pipeline rather than a single optimization objective. Supervised fine-tuning establishes base capabilities and response formats, after which Reinforcement Learning optimizes the policy against a reward signal. Building on knowledge distillation [12], on-policy distillation then adds a denser supervision channel, transferring the output distributions of one or more teachers onto the student’s own rollouts [9, 1]. These stages differ in where supervision originates and in whether generation happens inside the training loop, yet they increasingly share the same training and inference infrastructure. Frameworks therefore need to compose objectives and data flows without forcing every new method into a separate execution stack.

From RLHF to RLVR. Reinforcement Learning entered LLM post-training as RLHF, which fits a reward model to preference comparisons and optimizes the policy with PPO [33, 25]. Later work then moved in two directions, one of which removes online RL altogether by reparameterizing the preference objective, as DPO does [27]. The other retains online RL but replaces the learned reward model with a programmatic checker, which in turn simplifies the algorithms themselves. GRPO drops the value network in favor of group-relative advantages [34], and DAPO combines decoupled clipping, dynamic sampling, and token-level loss aggregation for large-scale RLVR [46]. The transition also moves the systems cost from reward-model and reference-policy management toward rollout generation, program execution, sample filtering, and reliable aggregation of completed outcomes.

Agentic RL. As models are deployed in more complex settings, RL is shifting toward agentic tasks with multi-turn interaction and external environments, building on early evidence that LLMs can be taught to invoke tools and APIs, whether by in-context prompting or by fine-tuning [45, 30, 26]. An agentic reward evaluates whether a task was completed rather than whether a single response was correct, so producing it depends on tool use and sandboxed execution against a live environment [43, 17, 41]. Unlike single-turn generation, the resulting trajectory contains intermediate observations, actions, and tool results whose contribution to the final outcome may be delayed. A practical training system must therefore preserve the generated sequence and its metadata across multiple turns, tolerate heavy-tailed episode lengths and external-environment failures, and manage the sandbox lifecycle [20].

Distributed Training and Inference Systems

Parallelism and Distributed Training. Large-model training combines data, tensor, pipeline, and expert parallelism to overcome single-GPU limits, and Megatron-LM provides optimized implementations of these strategies [37]. DeepSpeed and ZeRO instead reduce memory use by partitioning optimizer states, gradients, and parameters [29, 28]. On top of these placement decisions, RL post-training adds a further requirement, because the inference side must generate rollouts concurrently or alternately with the distributed training side. Resource placement and the synchronization relation between the two sides therefore become part of the framework design.

Orchestration and Inference Engines. Ray manages heterogeneous pipeline components across a cluster [23], while rollout generation relies on dedicated serving engines. vLLM improves throughput through continuous batching and PagedAttention [18], and SGLang targets multi-turn and structured LLM programs [49]. Because rollout requests have variable lengths and may invoke tools whereas training requires tightly synchronized collective computation, orchestration must coordinate two distinct lifecycles and resource layouts rather than treating inference as a simple preprocessing step.

RL Frameworks

Foundational RL Frameworks. OpenRLHF [13] established an accessible combination of distributed training and high-throughput inference. NeMo-Aligner [35] targets Megatron-based scale, TRL [38] emphasizes Hugging Face usability, verl [36] uses a controller-centered HybridFlow model, and slime [51] narrows the dependency surface by pairing Megatron-LM with SGLang. Together these systems span accessibility, ecosystem integration, large-scale backend support, expressive control flow, and a deliberately small dependency surface. Agentic workloads, however, further require explicit support for trajectory structure, resource sharing, and the boundary between rollout and optimization.

Asynchronous Execution and Rollout Management. AReaL [8] makes asynchronous generation and training the default and mitigates long-tail latency by buffering unfinished trajectories for later continuation, which improves utilization at the cost of trajectory staleness. Agent-Lightning [20] instead disaggregates the agent from the trainer, while agent frameworks and benchmarks such as SWE-agent [43], OpenHands [39], WebArena [50], and OSWorld [41] motivate support for long-horizon interaction and persistent state. These directions expose a central trade-off in which decoupling improves utilization and accommodates long-running interactions while also increasing coordination complexity and the possibility that training consumes data produced by older policy versions. A framework should therefore expose this trade-off as a configurable policy rather than a fixed behavior, and keep one interface for trajectories, weight transfer, and training regardless of the execution mode.

The LoongSage Framework

This section describes the system architecture of LoongSage and the orchestration of its principal components within an agentic RL training pipeline. By establishing strict boundaries across orchestration, data representation, and backend integration, the framework accommodates both synchronous and fully asynchronous execution within a unified architecture. Figure 1 situates LoongSage against the most closely related systems across four structural axes: training and inference backends, agent integration methodology, support for multi-teacher distillation, and execution asynchrony. Rather than pursuing broad backend agnosticism or unrestricted scheduling, LoongSage commits to an optimized pairing of specific engines and staleness-controlled asynchronous execution. This focus lets the framework address the central challenges of agentic workloads: ensuring the fidelity of trajectories fed to the optimizer, orchestrating multi-teacher distillation at scale, and maintaining observability over the train–inference gap.

Design Trade-offs

The architectural design of LoongSage is guided by three core principles.

One controller, many workers. All system orchestration is centralized within a single controller process, where the Trainer acts as the sole state machine dictating every phase transition. GPU-resident components operate as Ray actors, exposing coarse-grained control methods that return ObjectRefs. Keeping calls coarse amortizes the overhead of Ray serialization and remote procedure calls (RPCs). Crucially, the controller executes no forward passes and holds no model parameters, guaranteeing that the global state of a long-running distributed job can be fully inspected from this single process.

Token-level internal boundaries. The internal interface between the sampling and optimization planes operates strictly at the token level—exchanging token sequences coupled with their respective log-probabilities, loss masks, and weight versions. Human-readable text exists only at the outermost protocol edge where the agent interacts. This abstraction eliminates re-tokenization discrepancies, a major source of implicit train–inference divergence (§ 4.1).

Thin trunk with named seams. LoongSage builds natively upon Megatron-Core, Megatron-Bridge, and SGLang without introducing cumbersome abstraction layers for alternative backends. To maximize extensibility, algorithmic components—such as agents, reward models, policy losses, and asynchronous scheduling strategies—are exposed via named registry entries (seams) rather than through rigid subclassing of a monolithic framework class.

System Organization

LoongSage structurally decomposes the RL pipeline into seven interacting planes: control, sampling, training, algorithm, data, transfer, and resource. These planes communicate exclusively via well-defined data objects and control interfaces.

The control plane is anchored by the Trainer, which orchestrates the state transitions for each algorithmic step. Dedicated lifecycle managers—TrainManager, RolloutManager, and TeacherManager—oversee the training, inference, and teacher worker pools, respectively. The RolloutSampler maps step-level data requirements into batched sampling tasks. To prevent tangled dependencies, these managers never invoke one another directly. Instead, the Trainer sequences them according to the current training phase.

As illustrated in Figure 2, the sampling plane is governed by AgentFlow, which translates unstructured multi-turn agent interactions into trainable trajectories. By operating the agent externally, LoongSage embraces the disaggregated design philosophy advocated by Agent-Lightning. AgentFlow’s token-level alignment and multi-agent support are detailed in § 4.1. The training plane wraps the Megatron-based worker pool that executes the forward, backward, and optimizer passes over admitted trajectories. The algorithm plane exposes registries for advantage estimation (e.g., GRPO ([34]) and GAE ([32]), which requires a value model trained on a separate Megatron critic worker colocated with the actor), policy losses (e.g., the PPO clipped surrogate ([33]) and GSPO ([47])), and KL divergence constraints, and additionally provides configurable importance-sampling corrections ([14]; [44]) and off-policy sequence masking ([5]).

Overall system architecture of LoongSage

Figure 2. Overall system architecture of LoongSage.

The data plane governs Multi-Data-Source Mixed Training, managing stateful data loading, admission filtering, and data-parallel partitioning. It enables the independent configuration of agents, rewards, and sampling parameters per source, while strictly maintaining global data mixture proportions invariant across all ranks and mini-batches. The transfer plane, instantiated as TransferMesh (§ 4.3), manages topology-aware weight synchronization. Finally, the resource plane orchestrates cluster allocations via Ray placement groups and GPU bundles.

Training Flow and Placement

Under the default synchronous execution mode, a training step proceeds through four distinct stages. During the sampling stage, the RolloutSampler fetches prompt groups from various data sources and dispatches sampling tasks. In the admission stage, completed trajectories are grouped and evaluated by a data filter. Because rejections occur post-generation, the sampler proactively over-samples a configurable buffer per data source, refilling rejected slots within a bounded budget and enforcing step-level timeouts for stalled requests. During the aggregation stage, the controller aligns admitted trajectories with the active policy version and data-parallel layout, while teacher workers compute necessary distillation signals. Finally, in the update stage, training workers execute the forward, backward, and optimizer passes, concluding with the transfer of updated parameters back to the inference engine for the subsequent rollout.

The fully asynchronous mode eliminates this strict synchronization barrier, enabling the sampling and optimization engines to make concurrent progress via a decoupled train–rollout buffer. The buffering, freshness constraints, and recovery mechanics of this mode are detailed in § 4.2.

Execution coupling and resource placement are treated as orthogonal architectural axes (Figure 3). Colocated placement time-multiplexes device memory so that both engines and the weight-update phase fit on the same GPUs, whereas disaggregated placement dedicates disjoint hardware pools to each engine. Both placement strategies share an identical underlying scheduler, controller, Agent-Flow paradigm, and weight-transfer interface. Among the four possible combinations of these two axes, three are structurally supported. LoongSage does not support the fully asynchronous + colocated combination, since overlapping rollout and training requires both engines resident in device memory at once. That said, the colocated asynchronous mode of Agent-Lightning v1.0 ([11]) listed in Figure 1 is a different notion: rollout and training still alternate on a shared GPU pool, and the asynchrony comes from the gateway draining in-flight LLM requests at each update and resuming unfinished rollouts under the new weights afterward. This is closer to LoongSage’s colocated mode with partial rollout than to concurrent overlap.

Figure 3. The two orthogonal configuration axes behind LoongSage’s operational modes, their trade-offs, and the combination that the framework does not support.

Key Features

Seamless Integration of Any Agent

LoongSage integrates arbitrary agents with zero intrusion into their internal logic. Agents interact with the framework exclusively via a per-trajectory router URL exposing standard LLM serving APIs, remaining entirely agnostic to the underlying tokenization, trajectory storage, and sandbox lifecycles. The router serves OpenAI Chat Completions by default, and protocol adapters bridge OpenAI Responses and Anthropic Messages. AgentFlow operates as the sampling plane enabling this abstraction—mediating among agents, the inference engine, and the training data pipeline to convert multi-turn interactions into replayable RL trajectories, as illustrated in Figure 4.

Figure 4. The AgentFlow request path. The Router intercepts each Chat Completions request, tokenizes the turn, dispatches it to SGLang’s /generate, and records the returned tokens per turn in the TrajectoryStore. Other protocols are shown in Figure 7.

Supported agents fall into two structurally distinct categories. A white-box agent implements its interaction loop internally within LoongSage, directly controlling tool invocations and LLM requests. Consequently, its trajectory forms a linear, append-only sequence of prompts, responses, tool execution results, and termination signals. Conversely, a black-box agent executes as an opaque binary or script within an isolated sandbox. Here, the framework manages the entry point and intercepts outgoing requests, yielding complex, non-linear trajectories that require a tree-structured storage backend. The current repository natively supports white-box GSM8K ([3]), BrowseComp-Plus ([2]), and Mini-SWE agents, alongside black-box OpenCode [24], Codex, and Claude Code agents.

As depicted in Figure 5, AgentFlow represents each trajectory as a flattened, contiguous token array, tightly coupled with position-aligned response-space arrays for loss masks, rollout log-probabilities, weight versions, and token-level rewards. When Rollout Routing Replay (R3; § 4.5) is enabled, a routed-expert map additionally records the inference engine’s routing for every token position, with tool tokens included. To minimize memory overhead, a Segment struct tracks token and response spans, while a Triplet struct records individual model interactions using index ranges rather than duplicating token data. Tool observations are injected into the response space with a zeroed loss mask, placeholder log-probabilities, and an invalid (−1) weight version. Generated tokens carry the weight version of the policy that produced them, so a trajectory that spans an asynchronous model update records the version change explicitly. Finally, only the terminal position encodes the scalar task reward RR, ensuring all sampling statistics for generated tokens remain intact throughout the pipeline.

Figure 5. Data representation under TITO: a single flattened token array with its position-aligned response-space arrays, referenced by Segment and Triplet indices rather than copied. For readability, the routed-expert row is drawn over the response span only; in the code it is indexed over the full token sequence.

Token-In, Token-Out (TITO). A core mechanism of AgentFlow is storing the exact tokens consumed and generated by the inference engine, deliberately avoiding the practice of re-tokenizing textual messages prior to training. Such re-tokenization often introduces compounding discrepancies between the sampled and trained sequences due to whitespace handling, special tokens, reasoning markers, or tool-call serialization. Under TITO, high-level textual requests and responses are mapped transparently to their internal token representations at the framework’s outermost boundary, ensuring the sampled and trained sequences remain identical.

Whenever a request extends the existing conversation history, AgentFlow reuses the established token prefix and tokenizes only the new messages. When an agent (typically a black-box one) rewrites its context, AgentFlow opens a new segment and re-tokenizes the mutated context while preserving its topological relationship to earlier segments. Should a long-horizon trajectory be interrupted, its sandbox state can also be preserved and reused, preventing the loss of intermediate file edits or process states. The framework’s sandbox interface provides native Kubernetes and Docker backends. Thus, agents requiring shell execution run inside ephemeral pods or containers whose lifecycles are strictly bound to the trajectory.

Compaction and Multi-Agent Control. Recent black-box agents (e.g., OpenCode, Claude Code, and Codex) natively embed automatic context compaction and multi-agent collaboration mechanisms. These behaviors inherently rewrite or fork the conversation history, violating the standard linear Markov Decision Process (MDP) assumption. Consequently, a linear trajectory store fails prefix matching upon context compaction or subtask delegation. To overcome this, AgentFlow records every trajectory as a directed tree of segments (Figure 6). Tree edges are defined by segment_id and parent_segment_id pointers, while an origin tag explicitly categorizes each node as a mainline start (root), a compaction-induced continuation (compact), or a spawned subtask (subagent).

Figure 6. AgentFlow stores a black-box trajectory as a tree of segments: trainable mainline segments (origin=root or compact) own the flat token arrays, while a collab_spawn request forks a non-trainable subagent placeholder (origin=subagent).

Crucially, only mainline segments are designated as trainable, earning the right to populate the flat token, loss-mask, and log-probability arrays depicted in Figure 5. If a prefix mismatch occurs and the request is not explicitly a collab_spawn, the trajectory opens a new mainline branch to re-tokenize the compacted context. Conversely, a collab_spawn request forks a subagent segment one level deeper in the hierarchy. Because multi-agent credit assignment remains an open research problem, LoongSage currently treats subagent segments as non-trainable placeholders that merely track their tree position (token_start = token_end). This avoids committing to a reward decomposition prematurely and leaves an extension point for multi-agent RL. In the current parser, every subagent segment is attached to the active mainline segment and therefore sits at depth 1; the nested fork in Figure 6 illustrates what the tree format can represent, not a path the current parser produces.

Stateful Routing and Protocol Isolation. This abstraction is enforced via a strict protocol boundary. Upstream parser middleware translates incoming JSON messages into raw token IDs, and symmetrically converts generated token IDs back into the agent’s wire format. To maximize inference throughput, the routing layer utilizes session affinity, pinning all requests from a single trajectory to a specific inference worker. This enables KV-cache and prefix reuse across multiple turns, falling back to the least-loaded worker only if the pinned worker has been excluded from service or its in-flight load exceeds a configured threshold.

Black-box agents utilizing proprietary APIs (i.e., those deviating from /v1/chat/completions) are bridged into the unified tree store via protocol adapters (Figure 7). For instance, Codex (/v1/responses) and Claude Code (/v1/messages) each map to a dedicated adapter that normalizes their wire formats into LoongSage’s internal message and tool schemas, keeping the downstream parser, tokenizer, and trajectory storage decoupled from upstream API idiosyncrasies.

Figure 7. The protocol adapter normalizes each agent’s wire format into one internal request: OpenCode over Chat Completions, Codex over OpenAI Responses, and Claude Code over Anthropic Messages. A single parser, tokenizer, and SGLang path then serve all of them.

Staleness-Controlled Fully Asynchronous Training

In fully asynchronous mode, rollout freshness is no longer implicitly guaranteed by a synchronized schedule. Explicit staleness control thus becomes mandatory when overlapping the training and inference engines to eliminate idle time and repeated initialization overhead.

This producer-consumer architecture aligns with contemporary asynchronous RL systems ([8, 36, 51, 22]). The rollout engine generates trajectories, a collector aggregates the completed ones into training groups, and the training engine consumes them from a shared buffer, a priority queue keyed by dataset order so that the training sequence stays as close to synchronous mode as completion times permit. Conceptually, this decoupling introduces only two degrees of freedom for data ingestion: determining how many new rollouts to dispatch, and deciding which completed groups are eligible for training. Everything else, including the agents, the trajectory representation, and weight transfer, reuses the synchronous-mode implementation, and the two engines synchronize only at weight-update boundaries.

Bounding Staleness. In a fully asynchronous pipeline, maximizing hardware utilization inherently trades off data freshness. If the inference engine significantly outpaces the trainer, the buffer accumulates trajectories generated by outdated policy weights, increasing off-policy drift. Conversely, if the framework enforces excessively tight synchronization to prevent this drift, the trainer idles while waiting for new rollouts, negating the throughput benefits of asynchrony. To control this trade-off, LoongSage introduces three sliding-window scheduling policies. These policies act as dynamic constraints on the dispatch and collection gates, trading throughput against the version gap between the generation policy and the optimization policy (Table 1). Furthermore, the partial-rollout ratio and the version span are computed over the data actually consumed during an optimization step, so each policy’s effect on off-policy divergence is directly observable in the training logs.

StrategyDispatchCollectionStalenessTraining order
no-windowF+Q≤WF + Q \le Wunconstrainedunboundedunconstrained
window-gateds<smin⁡+Ws < s_{\min} + W, F+Q≤WF + Q \le Wunconstrained≈S\approx S stepsunconstrained
windowed-fifoF+Q≤WF + Q \le Ws−smin⁡<Bs - s_{\min} < BindirectFIFO within BB

Table 1 (PDF p. 10). The bounds imposed by each sliding-window strategy at the two control points of the asynchronous runtime, and the guarantees they provide.

Sliding-window policies. Because a scheduling strategy is entirely defined by the bounds it places on the two control gates, the dispatch gate and the collection gate, the surrounding controller logic remains invariant. Consequently, scheduling is abstracted as a configuration-driven registry seam rather than deeply nested branching logic. Table 1 formalizes the bounds of the three registered policies, visually mapped onto a shared timeline in Figure 8.

BackendsAgent integrationAsynchronyDistillation
verlMultiple training and inference backendsAgent loop + Uni-Agent OpenAI / Anthropic proxyOne-step-off, fully async recipes, partial rolloutMulti-teacher OPD, log-prob or top-k
slimeMegatron-LM + SGLangUser rollout code + black-box coding agentsFully asyncSingle-teacher OPD, log-prob, on advantage
AReaLMegatron / FSDP + SGLang / vLLMWorkflow API + OpenAI proxyFully async, interruptible rolloutMulti-teacher OPD, log-prob, reverse-KL loss
Agent-Lightningverl-based trainer with vLLMOpenAI-style API gateway, agent stays externalColocated async, staleness via trainer—
LoongSageMegatron-Core + SGLang onlyOpenAI / Anthropic APIs, white- and black-box, TITOFully async, three window policiesMulti-teacher OPD, full-vocabulary

Table 1. Positioning of LoongSage relative to closely related systems. Each entry is compiled from the publicly available documentation of the corresponding project at the time of writing. A dash indicates a capability that is not documented, rather than one that cannot be realized within the system.

Schematic timelines of the no-window, window-gated, and windowed-fifo sliding-window policies

Figure 8. The three registered sliding-window policies (a) no-window, (b) window-gated, and (c) windowed-fifo on a shared timeline of dispatched groups (bounds in Table 1). The panels are schematic and use different illustrative sizes: the capacity in (a) is W=16W = 16 groups, the dispatch window in (b) spans W=6W = 6 groups, the collection window in (c) spans B=6B = 6 groups, and in (a) and (c) the dispatch span is limited only by the capacity bound F+Q≤WF + Q \le W, not by any window.

Throughout this analysis, BB denotes num_prompts_per_step, SS denotes fully_async_stale_steps, and the global window size is W=B(1+S)W = B(1 + S). In the table, FF and QQ represent the number of groups currently in-flight and buffered, respectively. Variables ss and smin⁡s_{\min} denote the monotonically increasing sequence number of the group in question and that of the oldest dispatched group not yet collected. Notably, in the staleness column, some guarantees hold by strict mathematical construction, whereas others materialize implicitly once uncollected groups accumulate at the collection gate.

no-window (Figure 8a) dispatches a new group as soon as capacity frees up. Its only limit is the capacity bound F+Q≤WF + Q \le W, which does not bound off-policy drift. Because any completed group is collected into the buffer immediately, short requests finish and enter the buffer in rapid succession. Meanwhile, a computationally heavy, long-horizon request may be interrupted by multiple asynchronous weight updates without bound. This can introduce a length-biased sampling pathology, skewing the training distribution toward shorter trajectories.

window-gated (Figure 8b) imposes a hard gate, refusing to dispatch any task whose sequence number reaches smin⁡+Ws_{\min} + W, i.e., lies W=B(1+S)W = B(1 + S) or more beyond the oldest uncollected one. The window advances only when the oldest group is collected. While this caps the dispatch spread at WW groups and thereby bounds staleness to roughly SS steps, it risks severe pipeline under-utilization due to head-of-line blocking from long-tail requests. In the worst case, the whole pipeline waits for a single straggler to clear the window.

windowed-fifo (Figure 8c) adopts its nomenclature and collection heuristic from Forge. It retains the aggressive capacity-based dispatch rule without generation bounds but restricts collection: a completed group is only ingested if it falls within one batch of the oldest uncollected sequence number. Groups completing too far ahead are held back in the trajectory queue until the window advances. At a weight-update boundary, held complete groups are returned to their data source rather than dropped. This bounds off-policy drift once uncollected groups accumulate and enforces an ordering constraint designed to mitigate the aforementioned short-trajectory bias. A window smaller than one batch would artificially constrain ordering within a single step, while a significantly larger one would simply degenerate into no-window.

The net benefit of asynchronous execution hinges on the relative durations of the rollout and training phases, and the ratio by which the GPU cluster is partitioned between them. Let x>1x > 1 denote the reciprocal of the cluster fraction dedicated to inference. Here R0R_0 and T0T_0 are the colocated whole-cluster baseline times for rollout and training, E0E_0 is the constant per-step overhead, and ff captures the super-linear efficiency of higher per-replica concurrency in a smaller inference pool. Under this parameterization, training time scales as T0x/(x−1)T_0 x/(x - 1) and rollout time as R0f(x)R_0 f(x). Because the two phases overlap, a step’s latency is bounded by the slower of the two, which suggests the allocation objective min⁡x>1max⁡(R0f(x),T0x/(x−1)+E0)\min_{x>1} \max(R_0 f(x), T_0 x/(x - 1) + E_0). The scaling behavior of ff is highly workload-dependent, so we use this model as a qualitative guide. Section 5.3 measures the throughput of these policies on one workload.

Topology-Aware Weight Synchronization

TransferMesh provides a high-throughput, engine-agnostic communication fabric for propagating updated parameters from the optimization plane to the inference engine. As training and inference pipelines are increasingly decoupled, weight synchronization can account for a substantial share of per-step overhead for large models. TransferMesh mitigates this by dynamically discovering the physical placement of participating actors during channel initialization and routing traffic across the most efficient hardware-level topology. Figure 9 depicts this topology-aware routing architecture.

Figure 9. TransferMesh packs the named tensor stream into contiguous memory buckets, each described by its own metadata frame, then dynamically selects a transport protocol per receiver based on device topology: utilizing a CUDA IPC handle for colocated engines and an NCCL broadcast for receivers on other GPUs.

At its core, TransferMesh abstracts a global weight update as a named tensor stream. When the sender yields parameters, the transfer layer coalesces them into contiguous memory buckets and describes each bucket with its own metadata frame recording the tensor name, shape, data type, and byte offset of every tensor it holds. Receivers use these frames to slice each bucket back into named tensors and reconstruct the tensor stream for the inference engine. This decouples the two engines’ internal memory layouts and amortizes the high latency and kernel-launch overheads of point-to-point transfers of fragmented, fine-grained tensors.

The underlying transport dynamically adapts to the discovered hardware topology. When training and inference processes are colocated on the same physical device, TransferMesh sends a CUDA Inter-Process Communication (IPC) handle pointing to the sender’s memory bucket, together with that bucket’s metadata frame. The receiver maps the bucket directly, so the bulk payload is shared without any PCIe/NVLink traversal. For receivers on other GPUs, whether on the same node or a remote one, the bulk payload is sent with an NCCL broadcast; the metadata frame is broadcast first, letting receivers allocate a device buffer of the right size before the payload arrives. All metadata and IPC handles are transmitted out-of-band via lightweight Gloo channels, and receivers restore each parameter with its original shape and precision from the frame.

TransferMesh builds its own process groups and does not share communicators with the backend engines, so weight transfer cannot interleave with their internal data-parallel or tensor-parallel collectives. While the transfer protocol itself is strictly backend-agnostic at the tensor-stream boundary, the currently shipped adapters natively interface with Megatron’s parameter export and SGLang’s weight-loading routines. Consequently, migrating to an alternative training or inference backend reduces entirely to implementing a localized memory-layout adapter, without modifying the underlying synchronization infrastructure.

Full-Vocabulary Multi-Teacher On-Policy Distillation

On-policy distillation trains a student model on its self-generated rollouts while leveraging one or more teacher models for dense, token-level distributional supervision. LoongSage implements it as an objective inside the main training loop that can run standalone or combined with algorithms like GRPO or GSPO.

The teacher signal provides two distinct supervision pathways: a policy-gradient regularizer (via a KL penalty on the advantage) and a direct supervised loss interpolated with the RL objective:

A^t=At−λpgDKL(πstudent∥πteacher)t,\hat{A}_t = A_t - \lambda_{pg} D_{KL}(\pi_{\mathrm{student}} \mathbin{\|} \pi_{\mathrm{teacher}})_t,
L=(1−λgkd)LRL+λgkdLGKD.L = (1 - \lambda_{gkd})L_{RL} + \lambda_{gkd}L_{GKD}.

By independently modulating these two pathways—the KL penalty (λpg\lambda_{pg}) and the supervised distillation loss (λgkd\lambda_{gkd})—the unified loop natively supports PG-style regularization, GKD-style supervised distillation, and hybrid settings. The KL divergence estimator is equally flexible, accommodating sampled-token signals, Top-KK truncation, full-vocabulary alignments, and Jensen–Shannon variants based on the available teacher metadata.

Teacher Manager and Resource Multiplexing. Within the multi-teacher paradigm, the Teacher Manager treats teacher models as dynamically scheduled compute resources rather than black-box external API services. Under constrained device memory, multiple teachers are multiplexed onto a single worker group, and inactive teacher weights are offloaded to host CPU memory. Consequently, the permissible number of teachers is bounded by abundant host memory rather than scarce GPU VRAM. The scheduler further guarantees that each teacher is swapped into device memory at most once per forward pass, minimizing PCIe bandwidth thrashing.

Building on the per-source data plane (Section 3), each data source additionally binds an assigned teacher. Because that plane holds the global data mixture invariant across ranks and mini-batches, the data-mixing ratio maps directly onto each teacher’s relative gradient contribution. This architectural choice lets operators steer teacher dominance through data-routing configurations rather than hand-tuned loss-weighting heuristics. Figure 10 illustrates this resource pooling arrangement. Finally, teacher forward passes execute on the same Megatron backend as the student; this structural symmetry prevents inference-engine numerical discrepancies from corrupting the reverse-KL objective.

Teacher Manager resource pooling arrangement with routed data sources, multiplexed teacher groups, host-memory offloading, and resource modes

Figure 10. The Teacher Manager schedules teacher groups that share a GPU-memory slot, offloading inactive teacher weights to host memory and swapping them back on demand. BCP denotes BrowseComp-Plus.

Memory-Efficient Full-Vocabulary Distillation. To avoid the activation-memory bottleneck typically associated with massive vocabularies, LoongSage eschews transferring full probability vectors across nodes. Instead, for the full-vocabulary estimators it transmits compact teacher hidden states—an optimization it shares with DeepSeek-V4 [6]—but diverges significantly in its logit materialization strategy. Rather than materializing the full-vocabulary logit tensor for the entire batch, LoongSage shards the teacher’s output head using the student’s tensor-parallel (TP) layout and reconstructs the required distribution strictly at micro-batch granularity. The reconstructed logits are consumed on-the-fly by the loss function and immediately freed before the next micro-batch begins. In the reported single-node, eight-GPU Qwen3-30B-A3B run, full-vocabulary multi-teacher distillation increased peak device memory by only about 17 GB per GPU relative to DAPO training of the same student on the same node with the same parallel layout (TP=4, PP=2, EP=4). Figure 11 illustrates this reconstruction architecture.

Systemic Train–Inference Consistency

On-policy RL fundamentally dictates that the inference and training engines yield nearly identical probability distributions for a given policy state. Any systemic deviation skews the importance-sampling ratio, silently degrading the optimization process into an unstable off-policy regime. Potential sources of divergence span multiple layers: textual re-tokenization mismatches, arithmetic precision truncation, non-equivalent fused kernels [4], mismatched quantization schemes between engines, non-deterministic discrete decisions (e.g., Mixture-of-Experts routing), and minor variances in parallel reduction or padding. To counteract this drift, the framework implements a defense-in-depth strategy categorized into source alignment, precision anchoring, and residual correction (summarized in Figure 12).

Figure 12. Train–inference consistency is handled in three groups: source alignment ensures that training consumes exactly the sampled tokens and expert routes, long-context and precision settings anchor numerical stability, and residual corrections continuously bound the remaining gap.

Figure 11. Full-vocabulary distillation via micro-batch logit reconstruction: within each micro-batch the teacher logits are rebuilt from hidden states, consumed by the loss, and released before the next micro-batch begins.

Deterministic Source Alignment and Routing Replay. As established in § 4.1, TITO removes re-tokenization discrepancies at the input boundary. For Mixture-of-Experts (MoE) architectures [7, 16, 42], LoongSage integrates Rollout Routing Replay (R3) [21]. Because small logit differences can flip expert choices between the two engines, R3 records the exact experts selected by the inference engine for every token across every MoE layer. The framework then deterministically replays this exact routing tensor during the training forward pass. While the router weights continue to receive gradients normally, the computation path is fixed to the sampled trajectory. Replay remains valid under partial rollout, as a trajectory spanning multiple weight versions replays the historical routing context utilized during its original generation.

Context Parallelism and Selective Precision Pinning. To support the long trajectories of agentic tasks without padding artifacts, sequences are tightly packed into THD format and partitioned by Context Parallelism (CP) [19], using a zigzag layout by default or contiguous chunks where the model requires it (the DeepSeek-V4 family); MoE routing replay slices the recorded experts with the same layout and therefore remains valid in both cases. While the bulk of the model’s compute operates in BF16, LoongSage introduces Selective Precision Pinning, allowing developers to anchor highly sensitive parameters to FP32 in both memory storage and layer-wise computation. Because reduced-precision rounding at the output layer distorts softmax log-probabilities, pinning it removes a known source of the gap at a small memory and compute cost. An optional deterministic mode further fixes the training-side reduction order (deterministic Megatron kernels, ring-only NCCL collectives, and deterministic PyTorch/cuDNN algorithms), trading throughput for bitwise-reproducible training passes.

Algorithmic Residual Correction and Monitoring. Because source alignment cannot fully eliminate hardware-level kernel discrepancies or the weight-version staleness inherent to asynchronous execution, the algorithm plane provisions a spectrum of residual defenses spanning both token and sequence granularities. At the fine-grained token level, LoongSage natively supports Truncated Importance Sampling (TIS) [14, 44] and Masked Importance Sampling (MIS). These methods reweight the step-wise loss using the ratio πtrain/πrollout\pi_{\mathrm{train}}/\pi_{\mathrm{rollout}}—the discrepancy between the training engine’s recomputed probabilities and the inference engine’s sampling probabilities—while clipping or bounding out-of-range values.

To mitigate compounded drift over long-horizon tasks, the framework elevates these defenses via explicit sequence-level corrections, which recalibrate the objective based on the cumulative trajectory ratio. Furthermore, it integrates two outlier filters. Second-Moment Trust Policy Optimization (M2PO) [48] masks the tokens with the largest squared log-ratio until the second moment over each data-parallel rank’s rollout shard falls below a threshold. Off-Policy Sequence Masking (OPSM) [5] drops the gradient of negative-advantage tokens once a sequence’s KL exceeds a threshold. Under GRPO, where all tokens share one advantage, the whole sequence then contributes no gradient. Both filters prevent a few highly off-policy tokens or sequences from dominating the gradient. An alternative execution mode treats πrollout\pi_{\mathrm{rollout}} as the definitive behavior policy, implicitly absorbing the gap and bypassing old log-probability recomputation—an optimization that is structurally mutually exclusive with TIS, MIS, and M2PO.

The framework continuously monitors the K3 KL divergence estimate, the token-clipping ratio, and weight-version staleness spans. While algorithmic clipping and OPSM act as safeguards against off-policy drift, LoongSage treats aligning critical kernels, replaying discrete MoE decisions, and pinning precision on critical paths as the primary systemic remedies.

Lightweight, Usable, and Highly Extensible

Compact Core and Zero-Fork Integration. After excluding blank lines, comments, and tests, the framework comprises roughly 16,000 lines of Python. The architectural boundaries within LoongSage are designed by applying strict interface segregation. A prime example is TransferMesh (§ 4.3): the controller builds a single channel descriptor from which both sides derive their endpoints, shielding the training and inference engines from the underlying transport and channel-rebuild complexities. LoongSage enforces a zero-fork dependency model on Megatron-Core, Megatron-Bridge, and SGLang: it pins upstream versions (release tags for SGLang and Megatron-Bridge, a fixed commit for Megatron-LM) instead of maintaining forked repositories. Any transient backend fixes are maintained as isolated patch files applied on top of the pinned versions (plus a small set of runtime monkey-patches for Megatron-Core’s distributed optimizer, Transformer Engine’s FusedAdam, the CSA CuTe launch cache, and FlashAttention-4’s causal-window handling), which can be cleanly deprecated once resolved upstream. By relying on these foundational libraries alongside Ray and Hydra, the framework inherits upstream distributed optimizations and newly supported Megatron-Bridge models with minimal adaptation.

Declarative Execution and Validated Recipes. To maximize usability, LoongSage unifies synchronous, fully asynchronous, multi-teacher distillation, and supervised fine-tuning (SFT) modes behind a single, declarative entry point. Researchers drive complex distributed jobs solely by specifying a configuration recipe. The repository ships with a suite of validated, production-ready recipes—spanning models such as Qwen3-4B, Qwen3-30B-A3B, Qwen3-Coder-30B-A3B, DeepSeek-V4-Flash, and DeepSeek-V4-1-Flash across heterogeneous hardware topologies, including the exact configurations used for the training runs in Section 5.

Configuration-Driven Hot-Plugging. LoongSage exposes a plugin system for algorithmic iteration. Table 2 enumerates the ten explicitly defined core registries. Rather than deeply coupling implementations via rigid subclassing or injecting raw import paths into configuration files, LoongSage utilizes decentralized decorator-based registrations. For instance, applying @register_advantage("grpo") makes the function self-describing as an extension point, registers its configuration alias, and documents the call signature the implementation is expected to follow. Consequently, searching the codebase for a given decorator surfaces the complete registry of available implementations.

RegistryConfiguration fieldScope
agentdata_source.agent.nameAgent loop
rewarddata_source.reward.nameReward computation
sandboxdata_source.sandbox.typeExecution environment
advantagealgorithm.advantage_estimatorAdvantage estimation
policy_lossalgorithm.policy_lossPolicy loss
kl_policyopd.{pg,gkd}_kl_methodKL constraint and estimator
data_filterrollout.filterTrajectory admission
buffer_replay_strategydata_source.dataset.buffer_replay_strategyReplay of unconsumed prompts
data_pre_processordata_source.dataset.data_pre_processorDataset preprocessing
sliding_window_strategyfully_async.sliding_windowAsynchronous scheduling

Table 2. The core registries exposed by LoongSage. Each is invoked via a @register_<name> decorator at the definition site and bound to the corresponding configuration field. Fields lacking a top-level section (agent, reward, sandbox, dataset.*) are resolved relative to the specific data_source. The kl_policy row abbreviates opd.pg_kl_method and opd.gkd_kl_method.

Experiments

Experimental Setup

To comprehensively evaluate LoongSage across diverse agentic RL tasks and training paradigms, we analyze metrics from four complete training runs, summarized in Table 3. The runs span mathematical reasoning (DAPO), long-horizon software engineering (SWE), black-box coding agents (OpenCode), and multi-teacher on-policy distillation (MOPD). The SWE and OpenCode configurations derive tasks from Jain et al. [15], the DAPO run utilizes DAPO-Math-17k (Yu et al. [46]), and the MOPD setup mixes BrowseComp-Plus with DAPO-Math-17k. All runs use the Megatron and SGLang backends described in § 3. Unless explicitly stated otherwise, each reported metric traces a single, continuous full-lifecycle run rather than an average across multiple short-lived trials.

SettingModelHardwareFocus
Training runs, one complete run each
SWEDeepSeek-V4-Flash8 H20 nodesLong-horizon software tasks
DAPODeepSeek-V4-Flash6 H20 nodesVerifiable mathematical reasoning
OpenCodeQwen3-Coder-30B-A3B4 H20 nodesBlack-box coding agent
MOPDQwen3-30B-A3B1 H20 nodeMulti-teacher distillation
Controlled comparisons between configurations
AsyncQwen3-30B-A3B2 H20 nodesAsynchronous throughput (§ 5.3)

Table 3. The runs reported in this paper.

Our evaluation tracks three primary classes of metrics: training dynamics, train–inference consistency, and end-to-end efficiency. Training entropy reflects the concentration of the policy distribution. rollout/reward_mean quantifies task performance on sampled trajectories, and train/is_approx_k3_kl measures the approximate probability divergence between the sampling and training phases using the K3 estimator (Schulman, [31]). timing/step captures the end-to-end latency of a training step. Because agentic trajectories exhibit extreme variance in horizon length and computational complexity, our analysis focuses on macro-level convergence trends and the absence of sustained systemic divergence, rather than localized micro-fluctuations.

Training Results

SWE Tasks. In the SWE run (Figure 13), the metric that moves most is the train–inference gap. The K3 estimate stays at the 10−410^{-4} scale but rises in two phases, from about 5×10−45 \times10^{-4} to about 8.4×10−48.4 \times10^{-4} (with a transient spike near 10−310^{-3} early in the run), and holds near that level over the final steps. Over the same period, mean rollout reward climbs and stabilizes in the 0.75–0.80 range, and entropy decreases overall from about 0.24 to 0.21, with a slight rebound near the end. Step time grows from about 4100 to about 5300 seconds.

Training curves for DeepSeek-V4-Flash on SWE tasks

Figure 13. Training curves for DeepSeek-V4-Flash on SWE tasks.

DAPO Mathematical Reasoning. Entropy in the DAPO run (Figure 14) is not monotonic: it first dips to about 0.22 and then recovers to about 0.30, while reward rises from roughly 0.45 to nearly 0.80. The K3 gap follows its own arc, peaking at 5.3×10−45.3 \times10^{-4}, declining, and rising again to about 4.5×10−44.5 \times10^{-4} at the end of the run. Step time falls from 900 to 550 seconds, with most of the drop within the first ten steps.

Training curves for DeepSeek-V4-Flash on DAPO mathematical reasoning

Figure 14. Training curves for DeepSeek-V4-Flash on DAPO mathematical reasoning.

Full-Vocabulary Multi-Teacher Distillation. The MOPD run uses two teachers trained from Qwen3-30B-A3B with the repository’s RL recipes (a BrowseComp-Plus (BCP) expert and a math expert), one per data source at a 1:1 prompt ratio, with pure GKD (λpg=0\lambda_{pg}=0, λgkd=1\lambda_{gkd}=1) and the full-vocabulary KL estimator. Task reward is thus a diagnostic signal rather than the optimization objective, and the run validates the system path rather than a capability gain: teacher multiplexing, micro-batch full-vocabulary logit reconstruction, a bounded memory overhead (§ 4.4), and stable step time. Unlike the RL runs, whose entropy ends at or below its starting level, distillation raises the student’s entropy. In this run (Figure 15), the student–teacher entropy gap closes almost immediately, and over the same steps the student’s entropy rises from 0.31 to about 0.42, where it stays. Rewards on both data sources rise quickly in the early steps and then decline slightly over the rest of the run; this mild drift coincides with the student matching the teachers’ entropy. Step time settles from 1100 to 700 seconds.

Training curves for full-vocabulary multi-teacher MOPD on Qwen3-30B-A3B

Figure 15. Training curves for full-vocabulary multi-teacher MOPD on Qwen3-30B-A3B.

Black-Box OpenCode Agent. The OpenCode run (Figure 16) trains through an agent whose internals LoongSage does not control. Reward rises from 0.35 to 0.50, and the K3 gap stays near 4×10−44 \times10^{-4}. Step time mostly stays between about 1300 and 2000 seconds, apart from a single step near step 35 that takes about 5600 seconds, a long-tail episode typical of black-box coding agents.

Training curves for Qwen3-Coder-30B-A3B with the OpenCode black-box agent

Figure 16. Training curves for Qwen3-Coder-30B-A3B with the OpenCode black-box agent.

Asynchronous Throughput

While the preceding training runs validate end-to-end algorithmic convergence, they do not isolate the pure system-level throughput gains yielded by asynchronous execution. To quantify this, we execute a controlled ablation on a workload where the long-tail latency is severe enough for pipeline overlap to yield material benefits.

We benchmark Qwen3-30B-A3B in BF16 with TP=4, PP=2, and EP=4 across two H20 nodes (16 GPUs). The algorithm configuration enforces GRPO with importance-sampling correction, M2PO [48], and OPSM [5]. Prompts are drawn from DAPO-Math-17k, with responses hard-capped at 20K tokens. Each step samples B=64B=64 prompts generating 8 trajectories apiece. The benchmark executes for exactly 100 steps. The colocated baseline forces the trainer and rollout engines to time-multiplex all 16 GPUs. Conversely, the fully asynchronous configurations enforce an 8:8 spatial split, dedicating two 4-GPU SGLang replicas exclusively to inference. All asynchronous runs enable partial rollout and mask the resulting off-policy spans. Because the initial step (Step 0) inherently incurs the cold-start overheads of prefix-cache warm-up, KV-cache allocation, and initial buffer population, we report both the aggregate 100-step average and the steady-state average over the subsequent 99 steps.

Table 4 summarizes the throughput gains. The best tested asynchronous configuration reduces the average step time from 580.79s to 428.76s over 100 steps (a 1.35× speedup); excluding the cold-start step, the steady-state average falls to 414.58s, a 1.40× speedup. Globally, the end-to-end latency reduction across asynchronous configurations ranges from 22% to 26%. While partial rollout alone provides a 1.19× boost in colocated mode, the asynchronous windowed-fifo strategy compounds this advantage, accelerating the steady-state step by an additional 13%–15% over the optimized colocated baseline (whereas no-window yields only a 7% marginal gain).

ConfigurationSplitall 100 steps avg (s)all 100 steps speedupexcluding step 0 avg (s)excluding step 0 speedup
Colocated16580.791.00×578.631.00×
Colocated + partial rollout16489.631.19×486.341.19×
Async, no-window, S=1.0S=1.08:8454.501.28×451.741.28×
Async, windowed-fifo, S=1.0S=1.08:8434.761.34×424.301.36×
Async, windowed-fifo, S=2.0S=2.08:8428.761.35×414.581.40×

Table 4. Average step time under colocated and fully asynchronous execution. Speedups are relative to the colocated baseline in the same column.

Beyond aggregate latency reductions, the ablation shows two effects. First, at S=1.0S=1.0 the windowed-fifo strategy achieves a 4.5% higher throughput than no-window over all 100 steps (6.5% excluding step 0), despite a buffer of 13 groups versus 27 at step boundaries. The shallower buffer is consistent with its collection window pacing the consumer against the producer, so that early-finishing groups cannot fill the buffer ahead of older ones. For this workload, the ordering constraint therefore costs no throughput. Second, relaxing the staleness bound SS from 1.0 to 2.0 elevates the steady-state speedup from 1.36× to 1.40×. However, the deeper buffer requires a longer initialization phase. Thus, the 100-step aggregate speedup barely shifts, and the true end-to-end gain only converges to the steady-state asymptote as the total step count scales.

Conclusion

In this paper, we introduced LoongSage, a lightweight, agent-native Reinforcement Learning framework engineered specifically for the systemic complexities of LLM post-training. Under its single-controller orchestration model, LoongSage unifies arbitrary agent interactions, multi-turn trajectory materialization, multi-teacher distillation, and distributed policy optimization into a cohesive, modular architecture.

Built upon this foundation, the framework delivers six architectural contributions: (1) zero-intrusion TITO integration for diverse white- and black-box agent topologies; (2) staleness-controlled, fully asynchronous pipeline execution; (3) topology-aware TransferMesh weight synchronization; (4) memory-multiplexed, full-vocabulary multi-teacher distillation; (5) systemic train–inference consistency maintained by design; and (6) a lightweight, zero-fork core exposing a configuration-driven plugin system. Collectively, these mechanisms address the engineering bottlenecks imposed by long-horizon multi-turn rollouts, severe heavy-tail latency, and large-scale distributed resource coordination. Training runs spanning mathematical reasoning, complex software engineering, black-box coding agents, and multi-teacher distillation show that LoongSage drives agentic training while keeping the train–inference gap of the RL runs at the 10−410^{-4} scale.

Looking ahead, our roadmap focuses on evolving LoongSage into a comprehensive post-training ecosystem. To further optimize memory utilization at scale, we will introduce cross-node distributed storage for multi-teacher weights and native low-precision training primitives. Algorithmically, we intend to broaden the framework’s unified pipeline to encompass Low-Rank Adaptation (LoRA), alongside native support for omni-modal architectures. On the inference side, we plan to complete prefill–decode disaggregation. We hope LoongSage provides the open-source and academic communities with a highly usable, extensible foundation, accelerating future breakthroughs in large-scale agentic AI systems.

Acknowledgments

The birth of LoongSage is inseparable from a thriving open-source community, and we extend our special thanks to the excellent projects that made this possible: Megatron-LM and Megatron-Bridge for large-scale distributed training and weight bridging, SGLang for high-performance inference, and Ray for flexible distributed scheduling.

In terms of architecture design and code implementation, LoongSage draws deep inspiration from and heavily references several outstanding works: slime, whose architecture and logic provided significant inspiration for our minimalist design; verl, which offered an excellent design paradigm for an extensible RL training and inference framework; and Agent-Lightning, which inspired our approach to decoupling Agent frameworks from RL post-training platforms.

Authors

Authors are listed alphabetically by their first name.

Research & Engineering: Bowei Song, Caiwei Zhao, Chuwen Liu, Dechuang Gu, Dong Fang, Feiyu Xie, Huaiyu Li, Hui Zhang, Jian Tian, Jian Wang, Jie Zhao, Liguang Li, Maoyun Wang, Meiyan Yang, Minghan Zhu, Pai Liu, Pandeng Yao, Renbao Tian, Ru Yang, Shuai Jia, Shuai Tan, Shuailong Li, Shuliang Li, Teng Jin, Tianze Yang, Wenbo Cui, Wenjing Bai, Wenkang Wu, Xiaowei Jiang, Xiaoyi Dong, Yanpeng Wang, Yanwen Wang, Yaohui Ma, Yawen Wang, Yihang Zhang, Yingjie Yan, Zhanbiao Lian, Zhenyu Lu, Zhida Hu, Zhihui Hao, Zhihui Hu, Zhiwen Xiao, Zhiyi Gao, Zhongwei Qi, Zhuangzhuang Wu, Ziqian Liu, Ziyue Zheng.

Operational Notes and Limitations

Stabilizing the DeepSeek-V4-Flash SWE training recipe surfaced a range of systemic failures that are invisible at the algorithmic level, yet determine whether a large-scale distributed job can reach completion. We categorize these observations to aid future infrastructure developers:

Hard Systemic Failures. These faults abruptly halt execution, manifesting through explicit crash signals or out-of-memory (OOM) triggers. Examples encountered during scale-up include: numerical instability (NaNs) in early Megatron-Core versions when shared-expert overlap was enabled; SGLang exhausting device VRAM specifically during topology weight updates; a cuDNN DSA kernel triggering illegal memory corruption; and a CuTe launch cache silently leaking after several hundred steps. Furthermore, an FP32 output-layer pinning unexpectedly broke Megatron’s checkpoint saver, while the CPU optimizer exhausted host memory and crashed. At the framework orchestration level, repeated JIT operator recompilation under dynamic batching induced steady host RAM bloating, and a memory-saver hook conflict between SGLang and Megatron-Core deterministically crashed the inference engine upon CUDA-graph capture.

Silent Structural and Arithmetic Corruptions. More subtly, these anomalies yield no explicit crash signals, allowing training to proceed while corrupting the RL objective. For instance, a PDL dependency anomaly within a FlashInfer CuTe-DSL rmsnorm kernel introduced an asynchronous timing hazard, silently perturbing normalization statistics and inflating the measured train–inference gap. In another instance, a parameter had identical tensor shapes across both engines but used different memory layouts, causing weight updates to complete without error yet populate the tensor with corrupted data. Similarly, an incorrectly implemented clamp in the shared-expert activation quietly widened the distribution gap. Because such defects fail silently, the policy can degrade for extended periods while conventional metrics appear normal—underscoring the necessity of continuously monitoring the sampling–training gap rather than verifying it only at bring-up.

These real-world challenges highlight a key realization for the agentic RL era: Reinforcement Learning acts as a strong amplifier for software and hardware coupling. Minute variances in operator implementations, non-deterministic CUDA rounding, reduction-order variance in collectives, and dynamic batch-size adjustments are fed back into the policy via the reward signal. Consequently, hyperparameters alone are insufficient to fully describe a reproducible RL recipe. The configurations shipped with LoongSage encode the resolutions to these systemic hazards, making them production-validated deployment blueprints rather than mere algorithmic settings.

Current Architectural Boundaries and Roadmap. First, for certain black-box agents, the framework’s parser cannot yet deterministically classify whether a new branch stems from context compaction or a spawned subtask, necessitating that subtask segments temporarily remain non-trainable placeholders. Second, cross-node memory pooling for teacher weights—designed to utilize idle host RAM on training and rollout nodes as a global distributed weight cache—currently exists as a defined interface awaiting backend implementation. Third, the fully asynchronous mode does not yet match the synchronous path’s generality regarding heterogeneous multi-data-source routing and multi-agent topologies, and its asynchronous metric aggregation requires finer precision tuning.

Taken together, these boundaries feed directly into the broader roadmap outlined in § 6, which additionally targets prefill–decode disaggregation for inference to relieve the operational bottlenecks discussed above. Each limitation is scoped against a stable interface, so closing it does not require changes to the orchestration core.

References

  1. [1]Rishabh Agarwal, Nino Vieillard, Yongchao Zhou, Piotr Stanczyk, Sabela Ramos Garea, Matthieu Geist, and Olivier Bachem. On-policy distillation of language models: Learning from self-generated mistakes. In International Conference on Learning Representations, volume 2024, pp. 21246–21263, 2024.arxiv.org/abs/2306.13649
  2. [2]Zijian Chen, Xueguang Ma, Shengyao Zhuang, Ping Nie, Kai Zou, Andrew Liu, Joshua Green, Kshama Patel, Ruoxi Meng, Mingyi Su, et al. BrowseComp-Plus: A more fair and transparent evaluation benchmark of deep-research agent. arXiv preprint arXiv:2508.06600, 2025.arxiv.org/abs/2508.06600
  3. [3]Karl Cobbe, Vineet Kosaraju, Mohammad Bavarian, Mark Chen, Heewoo Jun, Lukasz Kaiser, Matthias Plappert, Jerry Tworek, Jacob Hilton, Reiichiro Nakano, et al. Training verifiers to solve math word problems. arXiv preprint arXiv:2110.14168, 2021.arxiv.org/abs/2110.14168
  4. [4]Tri Dao, Dan Fu, Stefano Ermon, Atri Rudra, and Christopher Ré. FlashAttention: Fast and memory-efficient exact attention with IO-awareness. In Advances in neural information processing systems, volume 35, pp. 16344–16359, 2022.arxiv.org/abs/2205.14135
  5. [5]DeepSeek-AI. DeepSeek-V3.2: Pushing the frontier of open large language models. arXiv preprint arXiv:2512.02556, 2025.
  6. [6]DeepSeek-AI. DeepSeek-V4: Towards highly efficient million-token context intelligence. arXiv preprint arXiv:2606.19348, 2026.
  7. [7]William Fedus, Barret Zoph, and Noam Shazeer. Switch Transformers: Scaling to trillion parameter models with simple and efficient sparsity. Journal of Machine Learning Research, 23(120):1–39, 2022.arxiv.org/abs/2101.03961
  8. [8]Wei Fu, Jiaxuan Gao, Xujie Shen, Chen Zhu, Zhiyu Mei, Chuyi He, Shusheng Xu, Guo Wei, Jun Mei, Jiashu Wang, et al. AReaL: A large-scale asynchronous reinforcement learning system for language reasoning. In Advances in Neural Information Processing Systems, volume 38, pp. 36256–36282, 2026.arxiv.org/abs/2505.24298
  9. [9]Yuxian Gu, Li Dong, Furu Wei, and Minlie Huang. MiniLLM: Knowledge distillation of large language models. In International Conference on Learning Representations, volume 2024, pp. 32694–32717, 2024.
  10. [10]Daya Guo, Dejian Yang, Haowei Zhang, Junxiao Song, Peiyi Wang, Qihao Zhu, Runxin Xu, Ruoyu Zhang, Shirong Ma, Xiao Bi, et al. DeepSeek-R1 incentivizes reasoning in LLMs through reinforcement learning. Nature, 645(8081):633–638, 2025.DOI
  11. [11]Zhiyuan He, Siwei Zhang, Zhiwen Zhou, Yuqing Yang, Yu Kang, Yuge Zhang, Luna K Qiu, Tin Yan Tsui, Jiahang Xu, and Chong Luo. Agent Lightning v1.0: Towards harnessed agentic RL. arXiv preprint arXiv:2608.17528, 2026.arxiv.org/abs/2608.17528
  12. [12]Geoffrey Hinton, Oriol Vinyals, and Jeff Dean. Distilling the knowledge in a neural network. arXiv preprint arXiv:1503.02531, 2015.arxiv.org/abs/1503.02531
  13. [13]Jian Hu, Xibin Wu, Wei Shen, Jason Klein Liu, Weixun Wang, Songlin Jiang, Haoran Wang, Hao Chen, Bin Chen, Wenkai Fang, et al. OpenRLHF: A Ray-based easy-to-use, scalable and high-performance RLHF framework. In Proceedings of the 2025 Conference on Empirical Methods in Natural Language Processing: System Demonstrations, pp. 656–666, 2025.DOI
  14. [14]Edward L Ionides. Truncated importance sampling. Journal of Computational and Graphical Statistics, 17(2):295–311, 2008.DOI
  15. [15]Naman Jain, Jaskirat Singh, Manish Shetty, Liang Zheng, Koushik Sen, and Ion Stoica. R2E-Gym: Procedural environments and hybrid verifiers for scaling open-weights SWE agents. arXiv preprint arXiv:2504.07164, 2025.arxiv.org/abs/2504.07164
  16. [16]Albert Q Jiang, Alexandre Sablayrolles, Antoine Roux, Arthur Mensch, Blanche Savary, Chris Bamford, Devendra Singh Chaplot, Diego de las Casas, Emma Bou Hanna, Florian Bressand, et al. Mixtral of experts. arXiv preprint arXiv:2401.04088, 2024.arxiv.org/abs/2401.04088
  17. [17]Carlos E Jimenez, John Yang, Alexander Wettig, Shunyu Yao, Kexin Pei, Ofir Press, and Karthik Narasimhan. SWE-bench: Can language models resolve real-world GitHub issues? In International Conference on Learning Representations, volume 2024, pp. 54107–54157, 2024.arxiv.org/abs/2310.06770
  18. [18]Woosuk Kwon, Zhuohan Li, Siyuan Zhuang, Ying Sheng, Lianmin Zheng, Cody Hao Yu, Joseph Gonzalez, Hao Zhang, and Ion Stoica. Efficient memory management for large language model serving with PagedAttention. In Proceedings of the 29th symposium on operating systems principles, pp. 611–626, 2023.arxiv.org/abs/2309.06180
  19. [19]Hao Liu, Matei Zaharia, and Pieter Abbeel. RingAttention with blockwise transformers for near-infinite context. In International Conference on Learning Representations, volume 2024, pp. 3992–4008, 2024.arxiv.org/abs/2310.01889
  20. [20]Xufang Luo, Yuge Zhang, Zhiyuan He, Zilong Wang, Siyun Zhao, Dongsheng Li, Luna K Qiu, and Yuqing Yang. Agent Lightning: Train any AI agents with reinforcement learning. arXiv preprint arXiv:2508.03680, 2025.arxiv.org/abs/2508.03680
  21. [21]Wenhan Ma, Hailin Zhang, Liang Zhao, Yifan Song, Yudong Wang, Zhifang Sui, and Fuli Luo. Stabilizing MoE reinforcement learning by aligning training and inference routers. arXiv preprint arXiv:2510.11370, 2025.arxiv.org/abs/2510.11370
  22. [22]MiniMax. Forge: Scalable agent RL framework and algorithm. https://www.minimax.io/news/forge-scalable-agent-rl-framework-and-algorithm, 2026.
  23. [23]Philipp Moritz, Robert Nishihara, Stephanie Wang, Alexey Tumanov, Richard Liaw, Eric Liang, Melih Elibol, Zhongheng Yang, William Paul, Michael I Jordan, et al. Ray: A distributed framework for emerging AI applications. In 13th USENIX symposium on operating systems design and implementation, pp. 561–577, 2018.arxiv.org/abs/1712.05889
  24. [24]OpenCode Contributors. OpenCode: AI coding agent built for the terminal. https://opencode.ai, 2025.
  25. [25]Long Ouyang, Jeffrey Wu, Xu Jiang, Diogo Almeida, Carroll Wainwright, Pamela Mishkin, Chong Zhang, Sandhini Agarwal, Katarina Slama, Alex Ray, et al. Training language models to follow instructions with human feedback. In Advances in neural information processing systems, volume 35, pp. 27730–27744, 2022.arxiv.org/abs/2203.02155
  26. [26]Yujia Qin, Shiao Liang, Yining Ye, Kunlun Zhu, Lan Yan, Yaxi Lu, Yankai Lin, Xin Cong, Xiangru Tang, Bill Qian, et al. ToolLLM: Facilitating large language models to master 16000+ real-world APIs. In International Conference on Learning Representations, volume 2024, pp. 9695–9717, 2024.arxiv.org/abs/2307.16789
  27. [27]Rafael Rafailov, Archit Sharma, Eric Mitchell, Christopher D Manning, Stefano Ermon, and Chelsea Finn. Direct preference optimization: Your language model is secretly a reward model. In Advances in neural information processing systems, volume 36, pp. 53728–53741, 2023.arxiv.org/abs/2305.18290
  28. [28]Samyam Rajbhandari, Jeff Rasley, Olatunji Ruwase, and Yuxiong He. ZeRO: Memory optimizations toward training trillion parameter models. In SC20: international conference for high performance computing, networking, storage and analysis, pp. 1–16, 2020.arxiv.org/abs/1910.02054
  29. [29]Jeff Rasley, Samyam Rajbhandari, Olatunji Ruwase, and Yuxiong He. DeepSpeed: System optimizations enable training deep learning models with over 100 billion parameters. In Proceedings of the 26th ACM SIGKDD international conference on knowledge discovery & data mining, pp. 3505–3506, 2020.
  30. [30]Timo Schick, Jane Dwivedi-Yu, Roberto Dessi, Roberta Raileanu, Maria Lomeli, Eric Hambro, Luke Zettlemoyer, Nicola Cancedda, and Thomas Scialom. Toolformer: Language models can teach themselves to use tools. Advances in neural information processing systems, 36:68539–68551, 2023.arxiv.org/abs/2302.04761
  31. [31]John Schulman. Approximating KL divergence. http://joschu.net/blog/kl-approx.html, 2020.
  32. [32]John Schulman, Philipp Moritz, Sergey Levine, Michael Jordan, and Pieter Abbeel. High-dimensional continuous control using generalized advantage estimation. arXiv preprint arXiv:1506.02438, 2015.arxiv.org/abs/1506.02438
  33. [33]John Schulman, Filip Wolksi, Prafulla Dhariwal, Alec Radford, and Oleg Klimov. Proximal policy optimization algorithms. arXiv preprint arXiv:1707.06347, 2017.arxiv.org/abs/1707.06347
  34. [34]Zhihong Shao, Peiyi Wang, Qihao Zhu, Runxin Xu, Junxiao Song, Xiao Bi, Haowei Zhang, Mingchuan Zhang, YK Li, Yang Wu, et al. DeepSeekMath: Pushing the limits of mathematical reasoning in open language models. arXiv preprint arXiv:2402.03300, 2024.arxiv.org/abs/2402.03300
  35. [35]Gerald Shen, Zhilin Wang, Olivier Dellaileau, Jiaqi Zeng, Yi Dong, Daniel Egert, Shengyang Sun, Jimmy Zhang, Sahil Jain, Ali Taghibakhshi, et al. NeMo-Aligner: Scalable toolkit for efficient model alignment. arXiv preprint arXiv:2405.01481, 2024.arxiv.org/abs/2405.01481
  36. [36]Guangming Sheng, Chi Zhang, Zilingfeng Ye, Xibin Wu, Wang Zhang, Ru Zhang, Yanghua Peng, Haibin Lin, and Chuan Wu. HybridFlow: A flexible and efficient RLHF framework. In Proceedings of the Twentieth European Conference on Computer Systems, pp. 1279–1297, 2025.DOI
  37. [37]Mohammad Shoeybi, Mostofa Patwary, Raul Puri, Patrick LeGresley, Jared Casper, and Bryan Catanzaro. Megatron-LM: Training multi-billion parameter language models using model parallelism. arXiv preprint arXiv:1909.08053, 2019.arxiv.org/abs/1909.08053
  38. [38]Leandro von Werra, Younes Belkada, Lewis Tunstall, Edward Beeching, Tristan Thrush, Nathan Lambert, Shengyi Huang, Kashif Rasul, and Quentin Gallouédec. TRL: Transformers Reinforcement Learning. https://github.com/huggingface/trl, 2020.
  39. [39]Xingyao Wang, Boxuan Li, Yufan Song, Frank F Xu, Xiangru Tang, Mingchen Zhuge, Jiayi Pan, Yueqi Song, Bowen Li, Jaskirat Singh, et al. OpenHands: An open platform for AI software developers as generalist agents. In International Conference on Learning Representations, volume 2025, pp. 65882–65919, 2025.arxiv.org/abs/2407.16741
  40. [40]Jason Wei, Xuezhi Wang, Dale Schuurmans, Maarten Bosma, Fei Xia, Ed Chi, Quoc V Le, Denny Zhou, et al. Chain-of-thought prompting elicits reasoning in large language models. In Advances in neural information processing systems, volume 35, pp. 24824–24837, 2022.arxiv.org/abs/2201.11903
  41. [41]Tianbao Xie, Danyang Zhang, Jixuan Chen, Xiaochuan Li, Siheng Zhao, Ruisheng Cao, Toh J Hua, Zhoujun Cheng, Dongchan Shin, Fangyu Lei, et al. OSWorld: Benchmarking multimodal agents for open-ended tasks in real computer environments. In Advances in Neural Information Processing Systems, volume 37, pp. 52040–52094, 2024.arxiv.org/abs/2404.07972
  42. [42]An Yang, Anfeng Li, Baosong Yang, Beichen Zhang, Binyuan Hui, Bo Zheng, Bowen Yu, Chang Gao, Cheng'en Huang, Chenxu Lv, et al. Qwen3 technical report. arXiv preprint arXiv:2505.09388, 2025.arxiv.org/abs/2505.09388
  43. [43]John Yang, Carlos Jimenez, Alexander Wettig, Kilian Lieret, Shunyu Yao, Karthik Narasimhan, and Ofir Press. SWE-agent: Agent-computer interfaces enable automated software engineering. In Advances in Neural Information Processing Systems, volume 37, pp. 50528–50562, 2024.arxiv.org/abs/2405.15793
  44. [44]Feng Yao, Liyuan Liu, Dinghuai Zhang, Chengyu Dong, Jingbo Shang, and Jianfeng Gao. Your efficient RL framework secretly brings you off-policy RL training. https://fengyaonation.site/off-policy-rl, 2025.
  45. [45]Shunyu Yao, Jeffrey Zhao, Dian Yu, Nan Du, Izhak Shafran, Karthik Narasimhan, and Yuan Cao. ReAct: Synergizing reasoning and acting in language models. In International Conference on Learning Representations, 2023.arxiv.org/abs/2210.03629
  46. [46]Qiying Yu, Zheng Zhang, Ruofei Zhu, Yufeng Yuan, Xiaochen Zuo, Yu Yue, Weinan Dai, Tiantian Fan, Gaohong Liu, Lingjun Liu, et al. DAPO: An open-source LLM reinforcement learning system at scale. In Advances in Neural Information Processing Systems, volume 38, pp. 113222–113244, 2026.arxiv.org/abs/2503.14476
  47. [47]Chujie Zheng, Shixuan Liu, Mingze Li, Xiong-Hui Chen, Bowen Yu, Chang Gao, Kai Dang, Yuqiong Liu, Rui Men, An Yang, Jingren Zhou, and Junyang Lin. Group sequence policy optimization. arXiv preprint arXiv:2507.18071, 2025.arxiv.org/abs/2507.18071
  48. [48]Haizhong Zheng, Jiawei Zhao, and Beidi Chen. Prosperity before collapse: How far can off-policy RL reach with stale data on LLMs? In International Conference on Learning Representations, volume 2026, pp. 82657–82679, 2026.arxiv.org/abs/2510.01161
  49. [49]Lianmin Zheng, Liangsheng Yin, Zhiqiang Xie, Chuyue Sun, Jeff Huang, Cody H Yu, Shiyi Cao, Christos Korytzanis, Ion Stoica, Joseph E Gonzalez, et al. SGLang: Efficient execution of structured language model programs. In Advances in neural information processing systems, volume 37, pp. 62557–62583, 2024.arxiv.org/abs/2312.07104
  50. [50]Shuyan Zhou, Frank F Xu, Hao Zhu, Xuhui Zhou, Robert Lo, Abishek Sridhar, Xianyi Cheng, Tianyue Ou, Yonatan Bisk, Daniel Fried, et al. WebArena: A realistic web environment for building autonomous agents. In International Conference on Learning Representations, volume 2024, pp. 15585–15606, 2024.arxiv.org/abs/2307.13854
  51. [51]Zilin Zhu, Chengxing Xie, Xin Lv, and slime Contributors. slime: An LLM post-training framework for RL scaling. https://github.com/THUDM/slime, 2025.

AI tools statement

No AI-use declaration is available for this version in Valency.

The available record does not establish whether AI systems or models contributed to this work.

How AI tools are recorded

Paper details

Cite this paper

Publication

Published
Version
Latest

Data & code

Code, data, proofs and workflows the authors linked for testing, review and reproduction. These links are part of this work’s metadata and are released under the same license as the rest of that metadata. Valency doesn’t host the files; each keeps the license set where it’s hosted.

Pick where to look, or just type