arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2611.41000cs.LG
收藏

用于在JAX中扩展强化学习的抽象机制

Abstractions for Scaling Reinforcement Learning in JAX

Technical University of Darmstadt(达姆施塔特工业大学)

Noah Farr

AI总结:

本文推出基于JAX的分布式RL库boonta,通过抽象机制统一多场景,支持多GPU训练等特性,算法无需修改即可适配不同任务,且在基准测试中达到Stoix吞吐量,大批次下速度更快。

摘要:

强化学习(RL)不再局限于游戏和模拟控制,现已成为大语言模型及视觉-语言-动作模型后训练的核心。我们推出boonta,一款基于JAX的分布式强化学习库,它通过一套抽象机制将上述场景统一起来,这些抽象机制将扩展技术与算法、环境解耦。其训练循环、网络及数据源支持多GPU训练、异步数据收集、低精度计算和自定义内核,使得同一算法实现可适用于从CartPole到语言模型后训练的各类场景。在Craftax-Classic上使用PPO可在单个节点的多个GPU间扩展,循环行为克隆实现可对GPT-2进行预训练,循环GRPO可通过工具调用对Qwen3进行后训练以完成猜数字游戏,且全程无需修改算法。在相同设置下,boonta在多数基准测试中达到了Stoix的吞吐量,其扩展技术使其在大批次场景下速度更快。代码以Apache 2.0许可证发布,链接为this https URL。

英文摘要:

Reinforcement learning (RL) is no longer confined to games and simulated control but has become central to the post-training of large language and vision-language-action models. We present boonta, a distributed RL library in JAX that unifies these settings under one set of abstractions, which keep the techniques for scaling out of algorithms and environments. Its training loops, networks and data sources provide multi-GPU training, asynchronous collection, reduced precision and custom kernels, so the same algorithm implementation runs from CartPole to the post-training of a language model. PPO on Craftax-Classic scales across the GPUs of a node, the recurrent behavior cloning implementation pretrains GPT-2, and recurrent GRPO post-trains Qwen3 to play a number-guessing game through tool calls, all without changing the algorithms. With the same settings, boonta matches the throughput of Stoix on most benchmarks, and its scaling techniques make it faster with large batches. The code is released under the Apache 2.0 license at https://github.com/noahfarr/boonta.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑