← all repositories
opendilab/LightZero

All the AlphaZero offshoots, living under one PyTorch roof

LightZero corrals eight MCTS-based RL algorithms into one PyTorch framework so researchers can actually compare tree-search methods apples-to-apples.

1.6k stars Python AgentsML FrameworksDomain Apps
LightZero
Not currently ranked — collecting fresh signals.
star history

What it does LightZero is a PyTorch toolkit that implements the major Monte Carlo Tree Search + Deep RL algorithms—AlphaZero, MuZero, EfficientZero, Gumbel MuZero, and several descendants—under one lightweight framework. It targets both board games (tic-tac-toe, gomoku, 2048) and continuous-control tasks (CartPole, LunarLander, Atari) so researchers can benchmark the entire algorithm family on equal footing. The project also ships with detailed algorithm diagrams, function-call graphs, and network-structure docs aimed at making the code understandable rather than merely runnable.

The interesting bit The authors treat standardization as a feature, not a side effect: every algorithm shares the same Model, Policy, and MCTS abstractions, and the hottest parts of the tree search are accelerated with a mixed Python/C++ backend. It is a NeurIPS 2023 Spotlight benchmark, and the team continues to publish derivative work (UniZero, ReZero, ScaleZero) that lands at ICLR and TMLR.

Key highlights

  • Implements eight algorithms: AlphaZero, MuZero, Sampled MuZero, Stochastic MuZero, EfficientZero, Gumbel MuZero, ReZero, and UniZero.
  • Uses heterogeneous computing (ptree in Python, ctree in C++) to speed up the most time-consuming MCTS operations.
  • Provides algorithm framework diagrams, function call graphs, and network structure diagrams for every integrated method.
  • NeurIPS 2023 Spotlight (Datasets and Benchmarks Track), with follow-up papers accepted at TMLR 2025, CoRL 2025, and ICLR 2026.
  • Many algorithm-environment pairings remain locked; Chess and Go are not yet supported.

Caveats

  • A large portion of the environment-algorithm matrix is marked with a 🔒, including full support for Chess and Go; many advanced algorithms only run on a subset of tasks.
  • The README truncates the MuJoCo and DeepMind Control coverage table, so exact support there is unclear.

Verdict Researchers who need to compare MCTS-based RL methods head-to-head should keep this on their shortlist. If you just want a single algorithm running on a single game, the unified-abstraction overhead might feel like over-engineering.

Frequently asked

What is opendilab/LightZero?
LightZero corrals eight MCTS-based RL algorithms into one PyTorch framework so researchers can actually compare tree-search methods apples-to-apples.
Is LightZero open source?
Yes — opendilab/LightZero is open source, released under the Apache-2.0 license.
What language is LightZero written in?
opendilab/LightZero is primarily written in Python.
How popular is LightZero?
opendilab/LightZero has 1.6k stars on GitHub.
Where can I find LightZero?
opendilab/LightZero is on GitHub at https://github.com/opendilab/LightZero.

heatdrop uses Google Analytics to see which pages get read — nothing else. Your call. How we handle data.