Manuscript Offprint

arXiv:2610.32389

KnitTrans: Coordinated Trajectory Transfer for Effective and Efficient LLM Reinforcement Learning

Bangjun Xiao, Chiheng Lou, Xiaodong Ji, Xiangwei Deng, Yikai Zhao, Gang Huang, Hailin Zhang

ABSTRACT

Trajectory transfer from rollout to training affects both learning quality and system efficiency in large language model reinforcement learning (RL). Enforcing batch-wide training requirements can delay the admission of completed trajectories, resulting in higher architectural staleness—the additional parameter-version gap from disaggregated pipelining relative to colocated execution. Beyond admission, misalignment between data access and training consumption causes redundant movement and unnecessary waiting when transferring large trajectory payloads.

We present KnitTrans, a system that coordinates the rollout-to-training path through three designs. First, constraint-preserving mini-batch admission allows flexibility in early mini-batch composition, while checking that enough capacity remains to satisfy the remaining quotas. Second, on-demand trajectory data access matches storage units to consumer assignments and overlaps micro-batch data preparation with computation. Third, multimodal encoding deduplication supports reuse across a mini-batch while preserving gradient contributions from all backbone micro-batches. Experiments show up to 93% lower architectural staleness than with train-batch admission, narrowing the learning-quality gap between disaggregated execution and colocated execution. On multimodal workloads, KnitTrans reduces transfer latency by two orders of magnitude and achieves a speedup of up to 5.8×5.8\times in transfer plus training over the baseline.

1 INTRODUCTION

Reinforcement learning (RL) has become a pivotal component in the post-training of large language models (LLMs), used to align model behavior with human preferences [31] and to elicit advanced capabilities such as reasoning [12, 30], tool use [7, 19], and multimodal reasoning [16, 21]. Despite the numerous RL algorithm variants [33, 34, 47], the workflow remains invariant: rollout generates trajectories; after rewards are computed, training consumes them to update the policy, which in turn generates subsequent trajectories. As RL applications advance [5, 11, 22, 43] and training scales to larger batch sizes, larger clusters, and more complex workloads, effective and efficient execution depends not only on rollout and training individually, but also on trajectory transfer from rollout to training. This handoff determines which trajectories enter training, when they become available, how their data are stored, and how those data are transferred to training workers. Along this path, we focus on two aspects to improve learning quality and execution efficiency, respectively: enabling early admission under batch-wide training requirements, and aligning trajectory data access with the spatial and temporal needs of distributed training.

RL training can impose batch-wide requirements: mixed RL enforces target data-source ratios [11, 43], while partial-rollout completion quotas require sufficient progress from earlier rollout steps to mitigate long-tail starvation. Fine-grained streaming [13, 53] makes completed trajectories incrementally available, but admitting too many from faster sources can leave insufficient capacity to satisfy slower sources' quotas. Enforcing these requirements through whole-train-batch admission creates a train-batch admission barrier: training waits until all admission conditions hold, even when some trajectories are already ready (Figure 1). In off-policy disaggregated execution, this delays training and parameter feedback to rollout, resulting in higher architectural staleness—the additional parameter-version gap introduced by pipelining relative to colocated execution, even under identical staleness-control settings. This additional staleness degrades learning quality. The challenge is therefore to overcome the train-batch admission barrier while preserving batch-wide requirements (§2.2).

Large trajectory payloads can also prolong training steps with inefficient trajectory transfer. Long trajectories carry not only token IDs but also per-token auxiliary data such as routing decisions [26] and top-p sampling masks [38], alongside multimodal inputs such as images and videos [8, 21]. Unlike pre-training on static datasets, RL consumes trajectories generated online by rollout, in both colocated and disaggregated execution, placing their preparation and transfer on the dependency path to policy updates. Spatially, storage

*Work done during internship at Xiaomi Corporation.

⋄^{\diamond}Corresponding author.

Figure

Figure 1: Timeline of trajectory admission, data delivery, and training computation under KnitTrans.

organization determines which data can be accessed independently, while the training topology determines which data each worker needs. Tensor-parallel (TP) ranks share inputs, context-parallel (CP) ranks consume sequence slices, and multimodal encoders can have assignments distinct from the backbone's. Existing sample-level storage layouts [13, 27] organize data around sample boundaries rather than these consumer-specific requirements, causing redundant reads or transfer of unneeded data. Temporally, training consumes an admitted mini-batch through a sequence of micro-batches. Existing RL systems [35, 39] serialize payload retrieval and input packing with computation on the critical path, so these preparation costs prolong training time even without redundant data movement. The challenge is therefore to match both consumer-specific data requirements and micro-batch consumption order, avoiding redundant movement and unnecessary waiting (§3.2).

We present KnitTrans, which coordinates trajectory admission, data access, and multimodal encoding along the rollout-to-training path through three designs.

Constraint-Preserving Mini-Batch Admission. KnitTrans designs progressive readiness targets that accommodate uneven rollout progress, rather than require early admissions to mirror the final train-batch composition. In Figure 1, linear source-readiness targets delay the first mini-batch until the slower source makes sufficient progress, whereas relaxed early targets permit earlier admission. To keep this flexibility from making the final train batch infeasible, feasibility guards check that each admission leaves enough batch capacity to satisfy the remaining batch-composition quotas.

On-Demand Trajectory Data Access. KnitTrans aligns storage and data access with training consumption in space and time. It stores trajectory data as independently addressable atomic units and reorganizes the required units according to the training topology, reducing redundant data movement. After admission, data preparation and delivery proceed incrementally in micro-batch consumption order and overlap with training computation, as illustrated in Figure 1.

Multimodal Encoding Deduplication. GRPO-style RL [34] produces multiple trajectories sharing the same multimodal inputs. Sharing storage does not itself remove repeated encoding of these inputs during training. KnitTrans encodes each unique multimodal input once per mini-batch, reuses its encoding across the consuming trajectories, and accumulates their gradients for the encoder update.

We evaluate KnitTrans on a 256-GPU cluster using models with 235B–671B total parameters, covering agentic and multimodal RL workloads under both disaggregated and colocated architectures. In disaggregated training, KnitTrans reduces architectural staleness by up to 93% relative to train-batch admission, narrowing the learning-quality gap with colocated training. In a separate evaluation of constraint preservation, KnitTrans satisfies all data-source quotas and reduces architectural staleness by 39.2% compared with linear-target admission. On multimodal workloads, it reduces exposed transfer latency by two orders of magnitude and speeds up transfer plus training by 5.8× over TransferQueue.

We list the contributions of this paper as follows.

• We analyze how train-batch admission barriers under batch-wide requirements delay consumption and increase architectural staleness, and how mismatches between data access and training consumption cause redundant movement and unnecessary waiting.

• We develop constraint-preserving mini-batch admission using progressive readiness targets and feasibility guards, and on-demand trajectory data access through atomic-unit storage, topology-aware reorganization, and consumption-driven delivery. Mini-batch-wide multimodal encoding reuse further reduces repeated computation and accelerates training.

• We build KnitTrans, an RL system that realizes these designs across disaggregated and colocated architectures. Large-scale evaluation demonstrates substantial gains in both learning quality and training efficiency through improvements to the rollout-to-training path.

References (44)