Decoupled Inference and Reward Computation via Reward Queue
Feature request
Motivation
In the fully asynchronous training pipeline of VERL (verl.experimental.fully_async_policy), inference (generation) and reward computation are traditionally tightly coupled in a sequential pipeline:
Generation → Wait for Completion → Reward Computation → Training
┌─────────────────────────────────────────────────┐
│ For each Batch: │
│ Generation + Reward Computation │
│ ↓ (Wait for batch completion) │
│ Training │
└─────────────────────────────────────────────────┘
This coupling creates a critical performance bottleneck: when reward computation is slow (e.g., due to external LLM-based judges, complex scoring functions, or network latency), the GPU sits idle waiting for scores to be ready, wasting expensive compute resources.
The Reward Queue feature decouples inference from reward computation by introducing an intermediate queue between the two stages, enabling concurrent execution:
┌─────────────────┐ ┌──────────────┐ ┌─────────────────┐
│ Generation ─▶│ RewardQueue │─▶│ Reward Compute │
│ (async) │ │ │ │ (concurrent) │
└─────────────────┘ └──────────────┘ └─────────────────┘
This allows generation and scoring to overlap in time, maximizing GPU utilization and throughput.
Your contribution
detail in MD File.
xxx