Latency-Conditioned Selection Bias in RLHF
Prakul Hiremath
Abstract
Asynchronous Partial Rollouts (APR) accelerate RLHF by training on the first $k$ of $N$ parallel completions and discarding the rest, but because autoregressive generation time scales roughly linearly with token count, this wall-clock cutoff acts as an implicit length filter that systematically under-represents longer, multi-step reasoning chains whenever reward correlates positively with trajectory length. We formalize this phenomenon as Latency-Conditioned Selection Bias (LCSB) and prove that whenever reward and selection probability are negatively correlated ($\text{Cov}_{p\_\theta}(R, \alpha) < 0$), the APR objective attenuates the on-policy gradient along the length-increasing direction, even inverting the gradient sign in a minimal branching MDP. Standard policy-ratio importance-sampling corrections like V-trace fail to resolve this bias because retained trajectories are generated strictly on-policy, with the filter acting on wall-clock latency rather than policy divergence. Validating this effect in a deployed vLLM environment, we observe monotonic performance degradation with increasing horizon and truncation ratio in PPO experiments across GPT-2 and LLaMA-3-8B, corroborated by synthetic latency interventions and throughput-matched synchronous baselines. To diagnose and correct LCSB, we propose Effective Gradient Information (EGI), a diagnostic metric that detects gradient degradation hundreds of steps before reward curves diverge, alongside Selection-Probability Weighting (SPW), an inverse-probability reweighting scheme with negligible overhead that recovers on-policy performance when sample overlap is sufficient, while highlighting that relaxing truncation remains essential under extreme rollouts cutoff.
Successful Page Load