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.
- 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).
- Joint Optimization: RPEG searches for the best combination of pipeline structure ($G^\circ$) and execution plan ($P$). This includes:
- Structural Choices: Bounded asynchrony (letting generation use slightly older weights to overlap with training) and actor-critic parameter sharing.
- Execution Refinements: Multi-dimensional parallelism (Data, Tensor, Pipeline, etc.), microbatching, and "stage fusion."
- 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).
- 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.
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.
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.
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