Skip to content

v0.3.0

Latest

Choose a tag to compare

@puyuan1996 puyuan1996 released this 03 Dec 17:15

UniZero Atari

  • History-aware training. The single-task Atari recipe now uses observation–action history for collection, reward and successor prediction, and TD(5) bootstrapping. Replay distinguishes true termination from storage cuts and time limits. Training uses unclipped rewards scaled by 0.1, and evaluation reports raw scores over six fixed-seed episodes. Training guide
  • Opt-in batched tree search. --mcts-sibling-batch-size prefetches predictions for legal sibling actions and backs up the selected edge before the next selection. --mcts-leaf-batch-size selects several distinct leaves per root using pending-visit counts before one inference batch. Enable one mode at a time. The default widths of 1 use serial search. Search guide and benchmark
  • Checkpoint resume and learner efficiency. --resume-from restores the model, target network, optimizer, and training counters. Training collects fresh replay before resuming updates, and --max-env-step is a cumulative budget. --retain-context-activations uses more GPU memory to reduce learner recomputation. Resume and configuration examples

The Pong search benchmark timed 384 decisions per setting on the same GPU with the same checkpoint and replayed actions. The speedups below measure tree-search time at equal visit budgets. Concurrent leaf selection can change root visit distributions. Benchmark protocol and results

Search mode 25 visits 50 visits
Sibling prefetch, width 3 2.90× 3.24×
Concurrent leaf selection, width 4 5.79× 6.33×

Algorithms, environments, and tools

  • Add Ray-based asynchronous segment training for MuZero and UniZero. Collectors and evaluators run alongside the learner, which owns replay and publishes weight snapshots. Async pipeline guide
  • Add an experimental UniZero + PPO policy for discrete actions, ScaleZero multitask training and task balancing for Atari and DeepMind Control, and PriorZero examples that use language and vision-language priors in world-model search. UniZero + PPO · ScaleZero integration · PriorZero
  • Add a Chinese Chess (Xiangqi) environment and AlphaZero and MuZero examples with checkpoint evaluation and terminal play. Xiangqi guide · Environment Zoo
  • Add batched inference for AlphaZero and a loss landscape tool. Fix AlphaZero tree memory management, Gumbel AlphaZero C++ search, and legal-action handling in Sampled MuZero and Sampled EfficientZero. AlphaZero batching · Loss landscape guide · Sampled search fix

Installation and upgrade

Install the tagged source with Python 3.11 or 3.12, Git, a C++ compiler, and Python development headers. Installation resolves DI-engine from a pinned Git revision. The Linux training CI exercises Gymnasium with NumPy 1.26 and 2.x, including replay sampling, native search, and a CPU MuZero learner update. Compatibility matrix

git clone --branch v0.3.0 --single-branch https://github.com/opendilab/LightZero.git
cd LightZero
python -m pip install -e .

The updated ALE/*-v5 wrapper advances one raw frame per base step with sticky actions disabled. LightZero applies action repeat in its outer wrapper. Rerun baselines collected with compounded frame skipping before comparing Atari scores against this version. Atari environment changes

UniZero Atari changes in PR #510 · Full changelog from v0.2.0