Accelerating Long-Tail Generation in Synchronous RLHF Training via Adaptive Tensor Parallelism

Fuente: arXiv
Salvato in:
Dettagli Bibliografici
Autori principali: Zhao, Long, Wang, Qinghe, Zhu, Jiaan, Bai, Youhui, Jin, Zewen, Ruan, Chaoyi, Wang, Shengnan, Li, Cheng
Natura: Preprint
Pubblicazione: 2026
Soggetti:
Accesso online:
Tags: Aggiungi Tag
Nessun Tag, puoi essere il primo ad aggiungerne!!
_version_ 1866911710084857856
author Zhao, Long
Wang, Qinghe
Zhu, Jiaan
Bai, Youhui
Jin, Zewen
Ruan, Chaoyi
Wang, Shengnan
Li, Cheng
author_facet Zhao, Long
Wang, Qinghe
Zhu, Jiaan
Bai, Youhui
Jin, Zewen
Ruan, Chaoyi
Wang, Shengnan
Li, Cheng
contents Reinforcement Learning from Human Feedback (RLHF) has become a key post-training paradigm for improving model quality. However, the synchronous three-stage RLHF pipeline is often bottlenecked by the generation stage, where response-length skew causes the effective batch size to shrink rapidly during decoding, leaving GPUs underutilized while a few long responses remain unfinished. Mainstream frameworks employ a static tensor parallelism (TP) configuration that cannot adapt to changing batch characteristics, leaving substantial performance headroom unexplored. We propose PAT, an adaptive TP method that dynamically reconfigures TP during the generation stage of each RLHF iteration. PAT introduces two key techniques. First, a predictor-guided online reconfiguration method decides both the reconfiguration point and the target TP configuration based on offline profiling, triggering reconfiguration only when the predicted latency benefit outweighs the reconfiguration overhead. Second, a lightweight online reconfiguration mechanism updates only the states and layouts affected by TP changes: it adapts unfinished decoding states through a cost-model-based choice between KV-cache migration and recomputation, performs in-place weight resharding, and reuses cached communication groups. We implement PAT on top of SGLang and integrate it with the VeRL framework. Evaluations on LLaMA3.1-8B and Qwen3-14B using DeepScaleR show that PAT reduces generation latency by up to 34.6% and end-to-end RLHF training iteration latency by up to 27.2% compared to the original VeRL setup.
format Preprint
id arxiv_https___arxiv_org_abs_2605_23945
institution arXiv
publishDate 2026
record_format arxiv
spellingShingle Accelerating Long-Tail Generation in Synchronous RLHF Training via Adaptive Tensor Parallelism
Zhao, Long
Wang, Qinghe
Zhu, Jiaan
Bai, Youhui
Jin, Zewen
Ruan, Chaoyi
Wang, Shengnan
Li, Cheng
Artificial Intelligence
Distributed, Parallel, and Cluster Computing
Reinforcement Learning from Human Feedback (RLHF) has become a key post-training paradigm for improving model quality. However, the synchronous three-stage RLHF pipeline is often bottlenecked by the generation stage, where response-length skew causes the effective batch size to shrink rapidly during decoding, leaving GPUs underutilized while a few long responses remain unfinished. Mainstream frameworks employ a static tensor parallelism (TP) configuration that cannot adapt to changing batch characteristics, leaving substantial performance headroom unexplored. We propose PAT, an adaptive TP method that dynamically reconfigures TP during the generation stage of each RLHF iteration. PAT introduces two key techniques. First, a predictor-guided online reconfiguration method decides both the reconfiguration point and the target TP configuration based on offline profiling, triggering reconfiguration only when the predicted latency benefit outweighs the reconfiguration overhead. Second, a lightweight online reconfiguration mechanism updates only the states and layouts affected by TP changes: it adapts unfinished decoding states through a cost-model-based choice between KV-cache migration and recomputation, performs in-place weight resharding, and reuses cached communication groups. We implement PAT on top of SGLang and integrate it with the VeRL framework. Evaluations on LLaMA3.1-8B and Qwen3-14B using DeepScaleR show that PAT reduces generation latency by up to 34.6% and end-to-end RLHF training iteration latency by up to 27.2% compared to the original VeRL setup.
title Accelerating Long-Tail Generation in Synchronous RLHF Training via Adaptive Tensor Parallelism
topic Artificial Intelligence
Distributed, Parallel, and Cluster Computing
url https://arxiv.org/abs/2605.23945