DistRS: Disaggregated Reward Service for RLVR with Batch-Level Constraint
Ruidong Zhu (School of Computer Science, Peking University), Mingcong Han (ByteDance Seed), Yinmin Zhong (School of Computer Science, Peking University), Wencong Xiao (ByteDance Seed), Xuanzhe Liu (School of Computer Science, Peking University), Xin Jin (School of Computer Science, Peking University)
23rd USENIX Symposium on Networked Systems Design and Implementation (NSDI '26) · Day 2 · Clouds, Carefully Engineered
Overview
Reinforcement learning with verifiable rewards (RLVR) has emerged as a critical post-training paradigm for developing advanced AI agents capable of complex reasoning, effective tool use, and safe behavior in domains like mathematics, programming, and search. Unlike traditional Reinforcement Learning from Human Feedback (RLHF), where rewards are generated via a homogeneous forward pass through a reward model, RLVR relies on external verification procedures—such as code compilation, test case execution, and remote storage retrieval—that are computationally heterogeneous, resource-intensive, and unpredictable. In this talk presented at USENIX NSDI, the speakers introduce DistRS (Disaggregated Reward Service), a novel systems architecture designed to decouple reward computation from training workers, treating it as an elastic, multi-tenant microservice governed by batch-level constraints and request-level flexibility.

Key moments
- 0:00 Introduction and background of RLVR
- 2:04 Comparing RLHF with RLVR reward workloads
- 4:00 Workload characteristics of reward services
- 6:24 Key insight: batch-level constraint and request-level flexibility
- 8:20 DistRS system design and scaling policy
- 9:36 Handling long-running requests with proactive time modeling
- 12:00 Evaluation and performance results of DistRS
DistRS: Disaggregated Reward Service for RLVR with Batch-Level Constraint
Speakers: Ruidong Zhu (School of Computer Science, Peking University); Mingcong Han (ByteDance Seed); Yinmin Zhong (School of Computer Science, Peking University); Wencong Xiao (ByteDance Seed); Xuanzhe Liu (School of Computer Science, Peking University); Xin Jin (School of Computer Science, Peking University)
Conference: USENIX NSDI
YouTube: https://www.youtube.com/watch?v=6G-RLV8Kdm4
Overview
Reinforcement learning with verifiable rewards (RLVR) has emerged as a critical post-training paradigm for developing advanced AI agents capable of complex reasoning, effective tool use, and safe behavior in domains like mathematics, programming, and search. Unlike traditional Reinforcement Learning from Human Feedback (RLHF), where rewards are generated via a homogeneous forward pass through a reward model, RLVR relies on external verification procedures—such as code compilation, test case execution, and remote storage retrieval—that are computationally heterogeneous, resource-intensive, and unpredictable. In this talk presented at USENIX NSDI, the speakers introduce DistRS (Disaggregated Reward Service), a novel systems architecture designed to decouple reward computation from training workers, treating it as an elastic, multi-tenant microservice governed by batch-level constraints and request-level flexibility.
The core motivation behind DistRS is addressing the severe inefficiencies and blocking behavior that occur when heterogeneous verification workloads are naively collocated with LLM rollouts and training loops. Because verification tasks consume vastly different mixes of CPU, GPU, network, and storage resources—and exhibit high temporal bursting and long-tail execution profiles—static allocation strategies inevitably lead to severe resource wastage or stalled training progress. DistRS resolves this tension by recognizing that while the internal verification service operates at the granularity of individual requests, the training loop consumes data at the batch level. By introducing batch-level constraints paired with request-level flexibility, DistRS achieves dramatic reductions in resource utilization while maintaining non-blocking training execution.
This systems innovation is vital for ML infrastructure teams and model builders scaling agentic post-training pipelines. As open-ended reasoning models and code generation agents become more pervasive, the verification bottleneck will only intensify. DistRS demonstrates that treating external verification as an independent, elastic microservice guided by simulation-based scaling and deadline-aware scheduling can unlock massive infrastructure savings, cutting GPU and CPU consumption significantly without destabilizing the training convergence loop.
Background
▶ Watch: Introduction and background of RLVR (0:00)
To understand the systems challenges addressed by DistRS, it is necessary to examine the evolution of reinforcement learning paradigms for Large Language Models (LLMs). In standard RLHF, the reward function is typically parameterized by a learned reward model—itself a neural network—that scores generated trajectories via a standard forward pass. Because reward model inference is homogeneous across requests, systems easily batch inputs and collocate the reward computation directly with rollout generation and policy optimization (such as PPO or Group Relative Policy Optimization / GRPO). Prior systems have explored fusing rollout and reward generation or disaggregating rollout from training, but these approaches universally assume that reward computation shares the uniform, predictable performance profile of model inference.
RLVR shatters this assumption. In agentic domains like CUDA code generation or online judge programming tasks, verifying a model's output requires executing complex pipelines: compiling source code, spinning up secure execution sandboxes, querying remote storage for test cases, and evaluating outputs against predefined or dynamic criteria. These tasks place vastly divergent demands on underlying hardware, consuming erratic amounts of CPU cycles, GPU memory, network bandwidth, and I/O operations.
Collocating such heterogeneous, bursty verification tasks with tightly synchronized training workers creates severe performance pathologies. When rollouts finish generating, batches of verification requests flood the system simultaneously, creating massive resource contention. Furthermore, the workload exhibits a long-tail distribution: while most generated outputs are concise and quickly verified, a fraction of generations contain infinite loops or invalid structures that run until hitting hard timeout thresholds. Under static allocation models, infrastructure teams must either over-provision hardware to handle peak burst and long-tail latency (wasting expensive GPU/CPU resources during idle training phases) or under-provision, causing severe queuing delays that stall the training loop. DistRS was built to eliminate this false dichotomy through disaggregation, elasticity, and multi-tenancy.
Key Findings
▶ Watch: Workload characteristics of reward services (4:00)
The primary finding presented in the talk is that decoupling reward verification from training workers via a disaggregated, elastic microservice architecture radically improves cluster resource utilization while preserving training throughput. Specifically, the authors evaluate DistRS on complex CUDA code generation tasks and report headline efficiency gains:
- GPU Time Reduction: DistRS reduces total GPU time by 3.79x compared to collocated baselines.
- CPU Time Reduction: Total CPU time is reduced by 1.98x.
- Minimal Training Latency Overhead: Despite aggressive resource scaling and multi-tenant sharing, the average extra delay imposed on each training batch is held to just 0.62 seconds.
- Scaling Policy Efficacy: Compared to a naive zero-queuing scaling policy (which over-allocates resources to prevent any wait time), DistRS significantly reduces resource consumption. Compared to a pure history-based scaling policy, it successfully avoids deadline violations caused by unexpected long-running requests.
- Scheduling Efficiency: Utilizing the Earliest Batch First (EBF) scheduling algorithm rather than standard First-Come-First-Served (FCFS) requires 1.5x fewer GPU nodes to achieve the same minimal batch delay under multi-task workloads.
These findings validate the central hypothesis of the work: treating reward computation as a disaggregated service governed by batch-level deadlines unlocks massive optimization opportunities that are entirely inaccessible to traditional collocated, homogeneous reward pipelines.
Technical Deep Dive
▶ Watch: Key insight: batch-level constraint and request-level flexibility (6:24)
DistRS introduces a comprehensive microservice architecture and algorithmic framework tailored to the unique dynamics of RLVR workloads. The system design centers around two foundational observations regarding RLVR workloads: bursty request arrivals and shifting resource consumption profiles.
During an RL training iteration, requests arrive in sharp bursts. Early in the rollout phase, zero reward requests are generated. In the middle and later stages, hundreds of requests flood the verification pipeline concurrently. Moreover, the characteristics of these requests shift dynamically as training progresses: as the LLM learns to generate valid CUDA code, compilation and execution success rates climb, altering execution duration profiles. Additionally, aberrant generations (e.g., infinite loops) trigger hard execution timeouts, creating dangerous long-tail latency spikes.
To govern this environment, DistRS rejects per-request Service Level Objectives (SLOs) in favor of batch-level constraints and request-level flexibility. Because the downstream training loop consumes verification results at the batch (or mini-batch) level, individual requests do not need to execute instantaneously upon arrival. A request can be delayed in a queue as long as its completion does not breach the deadline of the slowest, critical request determining the overall batch completion time. This flexibility allows DistRS to smooth resource utilization across time.
The DistRS control plane comprises two core operational pillars:
- Elastic Scaling Policy: DistRS scales worker pools at batch granularity, triggering decision points when the first request of a new batch arrives. Rather than relying solely on historical workload traces—which fail when long-running requests experience unexpected queuing delays—DistRS employs a time model-aware proactive adjustment mechanism. It estimates maximum latency bounds dynamically if a request continues waiting in the queue, detecting potential deadline violations before execution finishes and proactively reallocating workers.
- Earliest Batch First (EBF) Scheduling: In multi-tenant environments where multiple training tasks interleave, standard schedulers like FCFS cause severe head-of-line blocking. DistRS implements EBF via priority queues at each stage worker pool, prioritizing requests belonging to the batch with the earliest absolute deadline. This aligns execution scheduling directly with the batch-level constraint, ensuring critical paths complete on time.
Experimental Setup & Results
▶ Watch: Handling long-running requests with proactive time modeling (9:36)
The evaluation of DistRS was conducted on a dedicated reward service testbed comprising heterogeneous worker nodes. The system architecture utilizes CPU cores (specifically, 4 CPU cores allocated per compiler worker) for code compilation and parsing tasks, and Nvidia GPUs (1 GPU per runner worker) for executing compiled code and test suite validations.
The benchmark workload was constructed using six RL training tasks for CUDA code generation, driven by real execution traces that capture the bursty arrivals, long-tail timeouts, and evolving success rates characteristic of agentic code generation. Metrics evaluated include total resource consumption (measured in aggregate CPU and GPU core-hours/time) and extra delay (latency overhead imposed on each training batch relative to an unconstrained baseline).
The headline results demonstrate the dominance of the DistRS approach across multiple dimensions:
- End-to-End Performance: In full-system evaluations against collocated RL training setups, DistRS achieved a 3.79x reduction in GPU time and a 1.98x reduction in CPU time, while keeping average batch delay to 0.62 seconds.
- Ablation of Scaling Policies: A comparison between DistRS's time-model aware scaling and a zero-queuing baseline proved that allowing controlled queueing under batch-level constraints drastically slashes resource overhead. Simultaneously, compared to a static history-based scaler, DistRS eliminated catastrophic deadline violations caused by outlier long-running tasks.
- Multi-Task Scheduling Validation: When evaluating multi-tenant batch interactions (where Batch 1 initiates prior to Batch 2), the EBF scheduler achieved identical low batch completion delays while requiring 1.5x fewer GPU nodes than an FCFS baseline. This confirms that prioritizing earliest-deadline batches maximizes pipeline efficiency under heavy contention.
Practical Implications
▶ Watch: Evaluation and performance results of DistRS (12:00)
For infrastructure engineers, platform teams, and ML systems builders, DistRS offers a blueprint for scaling the next generation of agentic AI training infrastructure. As reasoning models (such as OpenAI's o1/o3 architectures, DeepSeek-R1, and custom open-source agents) become standard, post-training will increasingly rely on verifiable verification loops—running code interpreters, math verifiers, and multi-turn tool simulators. Collocating these workloads with training loops on monolithic clusters is no longer viable.
The primary practical takeaway is that disaggregation is mandatory for heterogeneous agent training. By treating reward computation as an elastic microservice, organizations can decouple expensive GPU training clusters from the unpredictable, CPU-and-I/O-heavy verification machinery. Furthermore, adopting batch-level SLOs rather than rigid per-request deadlines provides the necessary slack for cluster schedulers to bin-pack workloads efficiently, preventing over-provisioning.
However, practitioners must also account for the inherent limitations of this design. Implementing DistRS requires building sophisticated telemetry and time-modeling estimators capable of predicting long-tail execution drift and timeout risks dynamically. In environments with highly unpredictable code execution profiles where timeouts cannot be tightly bounded, aggressive queueing risks cascading delays that could breach batch-level constraints, requiring careful tuning of safety margins and fallback heuristics.
Key Takeaways
- The Verification Bottleneck: RLVR verification pipelines are inherently heterogeneous, bursty, and long-tailed, making traditional collocated training and inference architectures highly inefficient.
- Service-Oriented Disaggregation: DistRS separates reward computation from training workers, treating verification as an elastic, multi-tenant microservice.
- Batch-Level Constraints: By shifting SLO enforcement from individual requests to batch completion times, the system unlocks request-level scheduling flexibility without impacting training convergence.
- Proactive Time-Model Scaling: DistRS combines historical workload patterns with runtime queue latency estimation to prevent deadline violations caused by unexpected long-running verification tasks.
- Earliest Batch First (EBF) Scheduling: Prioritizing requests via EBF eliminates head-of-line blocking in multi-tenant environments, reducing required GPU resources by 1.5x compared to FCFS.
- Dramatic Resource Savings: End-to-end evaluations on CUDA code generation tasks demonstrate a 3.79x reduction in GPU time and a 1.98x reduction in CPU time with a negligible batch delay of 0.62 seconds.
About the Speaker(s)
Ruidong Zhu is a researcher in the School of Computer Science at Peking University, focusing on systems for machine learning and reinforcement learning infrastructure. The work presented was conducted as a collaborative research effort between Peking University and ByteDance Seed, co-authored by Mingcong Han, Yinmin Zhong, Wencong Xiao, Xuanzhe Liu, and Xin Jin, reflecting a strong synergy between academic systems research and large-scale industrial deployment in modern AI training platforms.
Reviews
→ Top-rated talks at 23rd USENIX Symposium on Networked Systems Design and Implementation (NSDI '26)
All talks from 23rd USENIX Symposium on Networked Systems Design and Implementation (NSDI '26)