UniZero: Generalized and Efficient Planning with Scalable Latent World Models

Yuan Pu, Yazhe Niu, Zhenjie Yang, Jiyuan Ren, Hongsheng Li +1 more
6/15/2024
cs.LG

Official code: opendilab/LightZero (1,627 stars, Apache-2.0, PyTorch, last commit 2026-05-02).

Abstract

Learning predictive world models is crucial for enhancing the planning capabilities of reinforcement learning (RL) agents. Recently, MuZero-style algorithms, leveraging the value equivalence principle and Monte Carlo Tree Search (MCTS), have achieved superhuman performance in various domains. However, these methods struggle to scale in heterogeneous scenarios with diverse dependencies and task variability. To overcome these limitations, we introduce UniZero, a novel approach that employs a modular transformer-based world model to effectively learn a shared latent space. By concurrently predicting latent dynamics and decision-oriented quantities conditioned on the learned latent history, UniZero enables joint optimization of the long-horizon world model and policy, facilitating broader and more efficient planning in the latent space. We show that UniZero significantly outperforms existing baselines in benchmarks that require long-term memory. Additionally, UniZero demonstrates superior scalability in multitask learning experiments conducted on Atari benchmarks. In standard single-task RL settings, such as Atari and DMControl, UniZero matches or even surpasses the performance of current state-of-the-art methods. Finally, extensive ablation studies and visual analyses validate the effectiveness and scalability of UniZero's design choices. Our code is available at \textcolor{magenta}{https://github.com/opendilab/LightZero}.

View on arXivView PDF

Code Implementations(1)

PyTorchApache-2.0

[NeurIPS 2023 Spotlight] LightZero: A Unified Benchmark for Monte Carlo Tree Search in General Sequential Decision Scenarios (awesome MCTS)

1,627196C++, CMakeOct 8, 20225 months agoApache-2.0
alpha-beta-pruningalphazeroatariboard-gameboard-games+15 more

Similar Papers

Cite this paper

@article{pu2024unizero,
  title  = {UniZero: Generalized and Efficient Planning with Scalable Latent World Models},
  author = {Yuan Pu and Yazhe Niu and Zhenjie Yang and Jiyuan Ren and Hongsheng Li and Yu Liu},
  year   = {2024},
  eprint = {2406.10667},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2406.10667v2}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2406.10667.svg)](https://codeofpaper.com/paper/2406.10667)

Discussion