RPEG: Training Reasoning Language Models Scalably and Cost-Effectively

Maciej Besta, Leonard Schmidt, Pierre Pang, Patrik Okanovic, Robert Gerstenberger, Torsten HoeflerarXiv 2026

TL;DR

RPEG is a new optimization framework that treats the complex training pipelines of Reasoning Language Models (RLMs) as a searchable, data-centric graph. By jointly optimizing both the pipeline's structure (like asynchrony and model sharing) and its execution (parallelism and scheduling), RPEG achieves up to 2x performance gains and 30% higher hardware utilization over state-of-the-art systems like ReaL and verl.

What Problem Does This Paper Address?

Training reasoning models—the kind that "think" before they speak, like DeepSeek-R1 or GPT-o1—is a massive systems challenge. Unlike standard LLM training, RLM post-training involves Reinforcement Learning (RL) loops (like PPO or GRPO) that couple multiple large models: a trainable actor, a critic, a frozen reward model, and a reference model.

These stages have wildly different computational profiles. Generation is latency-sensitive and memory-bound, while training is throughput-oriented and compute-heavy. Current systems usually optimize these pieces in isolation—for example, picking a parallelism strategy for one model without considering how it affects the communication overhead of the next stage. As models scale to consume millions of GPU-hours, these inefficiencies become incredibly expensive.

Methods

The authors introduce the RLM Pipeline Execution Graph (RPEG), a framework that moves away from fixed training templates.

  1. RPEG Intermediate Representation (IR): Instead of a simple dependency graph, RPEG uses a "property-rich" graph. Each node carries metadata about its role, the model it uses, and its "staleness" (how old the parameters are allowed to be).
  2. Joint Optimization: RPEG searches for the best combination of pipeline structure ($G^\circ$) and execution plan ($P$). This includes:
  3. Structural Choices: Bounded asynchrony (letting generation use slightly older weights to overlap with training) and actor-critic parameter sharing.
  4. Execution Refinements: Multi-dimensional parallelism (Data, Tensor, Pipeline, etc.), microbatching, and "stage fusion."
  5. Analytical Performance Model: To avoid the cost of running thousands of trial-and-error tests on real GPUs, the authors built a comprehensive analytical model. It captures compute, communication, and memory costs across hierarchical hardware (GPU, node, and rack levels).
  6. Quantile-based Sub-node Splitting: A novel technique that splits generation and assessment into smaller phases based on response lengths. This allows the system to start assessing short responses while longer ones are still being generated, reducing idle time.
Fig. 1: Representative PPO schedules selected by different planners. RPEG exposes stage-level and fine-grained overlap, enabling disaggregated placements and bounded-asynchrony that are not available under fully colocated or coarse-stage baselines. No AI was used to conceive or draw the picture.

Datasets and Models

The paper evaluates RPEG using a variety of frontier-scale model architectures and workloads:

  • Models: LLaMA-2 (7B to 70B parameters), Llama 3.1 (8B), Llama 3.3 (70B), and Qwen2.5 (32B).
  • Hardware: Evaluated on two major HPC platforms: an A100 system (40GB GPUs with NVSwitch) and a GH200 system (120GB HBM3 with Slingshot-11 interconnect).
  • Workloads: Synthetic workloads varying batch sizes (32 to 2048) and sequence lengths to simulate reasoning tasks.

Key Insights and Ideas

  • The "Coupling" Insight: You cannot optimize parallelism, placement, and memory independently. Improving one often increases communication or memory pressure elsewhere. RPEG’s "aha moment" is treating the entire pipeline as a single optimization object.
  • Bounded Asynchrony is a Free Lunch: The authors found that allowing the actor to generate responses using weights that are one step "stale" enables massive overlap between generation and training. Crucially, they empirically proved this has negligible impact on model accuracy (within 0.47% of synchronous baselines).
  • Calibration is King: Standard analytical models often fail because they rely on theoretical "peak" numbers. RPEG uses an automated hardware calibration suite to measure actual system performance, leading to a Mean Absolute Percentage Error (MAPE) of only ~15% for execution time and memory.
Per-device memory classification for 5 allocation and staleness configurations.

Key Results

  • Throughput Gains: RPEG improved end-to-end throughput by 1.4x to 2x over the ReaL system on A100s.
  • Latency Reduction: On GH200 systems, RPEG achieved up to 2.48x lower time-per-step compared to the verl baseline.
  • Hardware Efficiency: The system increased scheduled GPU utilization by up to 30%, effectively getting more work out of the same expensive hardware.
  • Scalability: The optimizer is highly efficient, finding plans within 5% of the theoretical optimum in just 5 minutes, even for configurations with 2,048 GPUs.
Weak scaling results showing RPEG's throughput advantage over concurrent heuristics.

Limitations and Future Work

  • Cost Proxy: The analytical model is a cost proxy, not a packet-level network simulation. While accurate for ranking plans, it might miss very fine-grained network contention.
  • Heuristic Overheads: Some non-GEMM operations (like layer normalization) are modeled using heuristics that may need re-calibration for radically different model architectures.
  • Future Directions: The authors suggest RPEG could be extended to support even more complex "agentic" systems, where models use tools or interact in multi-agent environments, further increasing the complexity of the training graph.

Summary updated

Abstract

Reinforcement learning (RL) is now central to training Reasoning Language Models (RLMs), but RLM pipelines are difficult to scale and costly to run because each RL step couples multiple large models, heterogeneous stages, cross-step state, and complex asynchronous dependencies. Existing systems typically optimize only parts of this design space. We address this complexity by jointly optimizing the pipeline structure as well as its execution using a novel data-centric graph intermediate representation called RLM Pipeline Execution Graph (RPEG). RPEG exposes structural choices such as bounded asynchrony and actor-critic sharing together with execution optimizations such as stage fusion, fine-grained scheduling, and multi-dimensional model parallelism. It is coupled with a comprehensive analytical performance model for RLM training, jointly capturing compute, communication, memory, and hierarchical rack-, node-, and GPU-level effects. Across systems with up to 256 GH200 GPUs, our distributed runtime engine implementing RPEG improves performance by up to 2x over ReaL and reduces step latency by up to 2.48x over verl, while increasing hardware utilization by up to 30%. Overall, RPEG provides a graph-driven foundation for next-generation training pipelines for frontier reasoning LLMs.
BibTeX
@misc{besta2026rpeg,
  author = {Maciej Besta and Leonard Schmidt and Pierre Pang and Patrik Okanovic and Robert Gerstenberger and Torsten Hoefler},
  title = {{RPEG: Training Reasoning Language Models Scalably and Cost-Effectively}},
  year = {2026},
  eprint = {2611.09207},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.09207},
}
Figure