Mahjax: A GPU-Accelerated Mahjong Simulator for Reinforcement Learning in JAX

· Source: Artificial Intelligence · Field: Technology & Digital — Artificial Intelligence & Machine Learning, Robotics & Autonomous Systems · Depth: Expert, quick

Summary

Mahjax is a new GPU-accelerated Riichi Mahjong simulator implemented in JAX, designed to facilitate reinforcement learning research, particularly for tabula rasa learning. This fully vectorized environment enables large-scale rollout parallelization on Graphics Processing Units, addressing the challenges of multi-player, imperfect-information games characterized by stochasticity and high-dimensional state spaces. Mahjax aims to support algorithms capable of learning from scratch, mirroring the success of the AlphaZero lineage, rather than relying solely on supervised learning from human play logs. The simulator achieves high throughputs, reaching up to 2 million steps per second under no-red rules and 1 million steps per second under red rules, utilizing eight NVIDIA A100 GPUs. It also includes a high-quality visualization tool for debugging and agent interaction, and its utility has been validated by effectively training agents to improve their rank against baseline policies.

Key takeaway

For Machine Learning Engineers developing reinforcement learning agents for complex, imperfect-information games, Mahjax provides a critical tool. You should consider integrating this JAX-based, GPU-accelerated simulator to achieve high-throughput tabula rasa training. This enables faster iteration and exploration of learning algorithms without reliance on human play data, potentially accelerating your research into generalizable AI for challenging stochastic environments.

Key insights

Mahjax provides a GPU-accelerated JAX environment for tabula rasa reinforcement learning in complex imperfect-information games.

Principles

Method

The article describes implementing a fully vectorized Riichi Mahjong environment in JAX for GPU-accelerated, large-scale rollout parallelization. It includes a visualization tool.

In practice

Topics

Best for: Research Scientist, AI Scientist, Machine Learning Engineer

Related on AIssential

Open in AIssential →

Editorial summary, takeaway, and curation by AIssential. Original article published by Artificial Intelligence.