Nature, Published online: 02 April 2025; doi:10.1038/s41586-025-08744-2

A general reinforcement-learning algorithm, called Dreamer, outperforms specialized expert algorithms across diverse tasks by learning a model of the environment and improving its behaviour by imagining future scenarios.