verl icon indicating copy to clipboard operation
verl copied to clipboard

Decoupled Inference and Reward Computation via Reward Queue

Open chris668899 opened this issue 6 months ago • 3 comments

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.

chris668899 avatar Jun 02 '26 11:06 chris668899

chris668899 avatar Jun 02 '26 11:06 chris668899

chris668899 avatar Jun 02 '26 11:06 chris668899

xxx

chris668899 avatar Jun 02 '26 12:06 chris668899