Mahjax: 一种用于在JAX中进行强化学习的GPU加速麻将模拟器
Mahjax: A GPU-Accelerated Mahjong Simulator for Reinforcement Learning in JAX
AI总结:
本文提出Mahjax,一种基于JAX实现的麻将环境,利用GPU加速大规模并行化,以解决麻将游戏中的高维状态空间和随机性问题,为强化学习提供高效的训练平台。
摘要:
Riichi Mahjong是一种多玩家、信息不完全的游戏,具有随机性和高维状态空间的特性。这些属性构成了强化学习中复杂决策问题的独特挑战。尽管先前研究主要依赖于从人类游戏日志中监督学习来预训练策略,但能够从头开始学习(tabula rasa)的算法在通用性上具有更大潜力,如AlphaZero所示。为促进此类研究,我们引入了Mahjax,一个完全向量化实现的Riichi Mahjong环境,用于在图形处理器(GPU)上实现大规模的回放并行化。我们还提供了一个高质量的可视化工具,以简化调试和与训练代理的交互。实验结果表明,Mahjax在八块NVIDIA A100 GPU上分别实现了高达200万和100万步每秒的吞吐量。此外,我们通过展示代理能够有效训练以提高其相对于基线策略的排名,验证了该环境在强化学习中的实用性。
英文摘要:
Riichi Mahjong is a multi-player, imperfect-information game characterized by stochasticity and high-dimensional state spaces. These attributes present a unique combination of challenges that mirror complex real-world decision-making problems in reinforcement learning. While prior research has heavily relied on supervised learning from human play logs to pre-train the policy, algorithms capable of learning \textit{tabula rasa} (from scratch) offer greater potential for general applicability, as evidenced by the AlphaZero lineage. To facilitate such research, we introduce \textbf{Mahjax}, a fully vectorized Riichi Mahjong environment implemented in JAX to enable large-scale rollout parallelization on Graphics Processing Units (GPUs). We also provide a high-quality visualization tool to streamline debugging and interaction with trained agents. Experimental results demonstrate that Mahjax achieves throughputs of up to \textbf{2 million} and \textbf{1 million steps per second} on eight NVIDIA A100 GPUs under the no-red and red rules, respectively. Furthermore, we validate the environment's utility for reinforcement learning by showing that agents can be trained effectively to improve their rank against baseline policies.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。