Papers

JAX 分布式强化学习库 boonta 开源:从 CartPole 到 LLM 后训练一套代码

Abstractions for Scaling Reinforcement Learning in JAX

Why we picked it

一套 JAX 写的 RL 库,同一份代码既能跑 CartPole 也能用 GRPO 后训练 Qwen3,还开源了。如果你的团队在 LLM 后训练里折腾过环境隔离和 GPU 扩缩问题,可以拿它和 Stoix、PureJaxRL 比一比。

论文介绍了 boonta,一个基于 JAX 的分布式强化学习库,目标是把 RL 训练从经典控制任务统一到 LLM 后训练场景。其核心思路是把扩缩容技术从算法和环境实现中剥离出来,训练循环、网络和数据源内置多 GPU 训练、异步采样、低精度计算和自定义 kernel 支持,因此同一份算法代码可以从 CartPole 一路跑到语言模型后训练。

Body

论文给出三个具体验证:PPO 在 Craftax-Classic 上可扩展到单节点多 GPU;循环行为克隆实现能预训练 GPT-2;循环版 GRPO 用工具调用方式后训练 Qwen3 玩猜数字游戏,全程无需改动算法本身。性能方面,在相同设置下 boonta 在多数基准上与 Stoix 持平,大 batch 场景下凭借扩缩容技术速度更快。

对做 LLM 后训练的工程团队来说,RL 基础设施长期分散在 Draccus、openpi 等各自为政的代码库里,boonta 提供了一套 Apache 2.0 开源的统一抽象,值得和 Stoix、PureJaxRL 对比评估。

Original · arXiv cs.LG

Abstractions for Scaling Reinforcement Learning in JAX

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.

Industry Coordinates & Source Verification

This report is categorized under AITOP's "Papers" desk, focusing on US frontier AI labs and Silicon Valley technology leaders. Within our cross-regional analytical framework, it directly maps to AI developer toolchains, coding agents, and engineering workflows and US-China foundation model benchmarks and commercialization comparison. Key entities and technical topics under continuous tracking include boonta, JAX, GRPO, Qwen3.

Source attribution: curated from arXiv cs.LG (@Noah Farr).