LoCoJAX:面向TPU上小模型强化学习的主机本地协调机制 LoCoJAX: Host-Local Coordination for Small-Model RL on TPUs 预印本

⚠️ 本文为 预印本(arXiv 公开版本),尚未经过正式同行评审。作者自发公开,结论未经期刊审稿验证,阅读时请知悉。
发布时间:2026-11-12
👁️ 预览文献
💡 AI 中文简介
强化学习越来越多地用于小语言模型,但在多加速器上高效运行这类负载需要良好的协调。研究者在TPU v7x上测试了0.6B到405B参数的模型,发现小模型时主机协调开销占单步时间的36%,而大模型时网络通信开销占主导。为此提出LoCoJAX,让每个TPU主机本地完成采样和奖励处理,同时保持全局同步训练。在Qwen3-0.6B上,其共置模式比优化后的Pathways基线快1.3到3.6倍;在GSM8K任务上,8个芯片的单步速度超过Pathways用64个芯片。分离模式还能在特定条件下进一步提速约15%。
领域机器学习系统与分布式强化学习
适合谁读需要一定分布式系统和强化学习背景的读者
核心贡献1. 量化了TPU上小模型RL负载中主机协调开销的占比,揭示其在小模型场景下不可忽略;2. 提出LoCoJAX,以主机本地rollout与奖励处理替代全局单控制器协调,并给出共置与分离两种执行模式及其适用条件。
关键数据0.6B模型时主机协调占单步时间36%、网络通信占2%;LoCoJAX-CO在Qwen3-0.6B上比Pathways快1.3-3.6倍;GSM8K上8芯片单步快于Pathways的64芯片;NuminaMath-CoT在256芯片上给rollout分配75%主机可再降约15%单步时间。
推荐理由如果你在TPU上跑小模型强化学习,这篇论文用硬数据告诉你瓶颈在哪,并给出一个能立刻提速数倍的协调方案。
关键词["强化学习", "小语言模型", "TPU", "分布式训练", "主机本地协调", "Pathways"]

原文摘要

查看英文原文摘要

Reinforcement learning (RL) increasingly targets small language models, and executing these workloads efficiently across multiple accelerators requires effective coordination. On TPUs, Pathways-based RL uses a single controller to coordinate computation across hosts. This execution model is effective for large models, but its coordination computational costs are harder to amortize when small models repeatedly invoke short computations. To characterize these computational costs, we sweep dense models from 0.6B to 405B parameters on TPU v7x under a decode-heavy workload and measure how host and network computational overhead vary with model size. At 0.6B, host orchestration occupies 36% of step time and network communication 2%, whereas for large models, estimated network computational costs dominate the non-compute time. Motivated by these findings, we present Local Coordination JAX (LoCoJAX), which implements local rollout and reward processing on each TPU host with synchronous global training. In controlled comparisons against a tuned and optimized Pathways baseline on Qwen3-0.6B across three workloads and 8-64 TPU v7x chips, its colocated mode (LoCoJAX-CO) is 1.3-3.6x faster per step; on GSM8K, it completes a step faster on 8 chips than Pathways does on 64. Finally, a Ray-managed disaggregated mode (LoCoJAX-DA) overlaps rollout and training on separate hosts, and placement experiments establish when this overlap compensates for dividing devices and transferring weights: only when rollout dominates the step and receives most of the hosts. On NuminaMath-CoT at 256 chips, giving rollout 75% of hosts cuts step time by about 15% compared with LoCoJAX-CO.