arXiv:2611.23151cs.SENov 2026

Manuscript Offprint

arXiv:2611.23151

stable-envs-v1: Fast and Reproducible Environments with Controllable Variations

Sami BuGhanem, Francesco Capuano, Ahitagni Das, Richard Gao, Randall Balestriero

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

Training World Models (WMs) relies on processing large amounts of high-dimensional data, which typically needs to be stored, read into memory, and moved from memory to compute units. In principle, GPU-native rendering avoids this movement of large image tensors from memory to compute cores, allowing for better GPU utilization, and training speed-ups. Rendering on-demand also allows to control perceptual appearance through the application of visual variations on-the-fly, allowing for higher diversity in training. To this end, we introduce stable-envs, an open-source library for fast, GPU-native rendering allowing to apply controllable variations on multiple simulation environments. By rendering image observations directly on GPU, stable-envs allows end-to-end training speed-ups of up to 1.33×1.33\times, with no loss of performance. Besides faster training runs, stable-envs also enables reproducible, large-scale evaluations through batched physics while maintaining full determinism. stable-envs currently supports 80 simulation environments across multiple CPU- and GPU-backends, and is openly available at: https://github.com/galilai-group/stable-envs.

Figure

Figure 1: stable-envs is an open-source library for batched, on-GPU rendering of simulation environments. It supports a growing number of environments, enables up to 8.5x speedups in rendering, and allows controlled visual variations given the same underlying physical state.

1 Introduction

Pixel-based World Models (WMs) learn environmental dynamics solely from visual observations. In practice, training WMs from image frames requires efficiently processing large amounts of high-dimensional image data, collected (1) online, interacting with an environment (Ha and Schmidhuber, 2018; Hafner et al., 2019; Hafner et al., 2025), (2) offline, via a behavior policy used to collect trajectories (Zhou et al., 2024; Sobal et al., 2026; Maes et al., 2026b), or (3) both. Regardless of its source, image data can be challenging to process: even compact WMs trained on medium-sized, task-specific datasets such as Maes et al. (2026b, LeWM), can require processing ∼\sim200GB of image data.. Storing and processing such volumes for simple environments (e.g., maze navigation) can be challenging in practice, and potentially prohibitive for complex environments, e.g. high-fidelity robotics simulators, e.g. Mittal et al. (2025).

To mitigate these storage requirements, open-source libraries built for training models from pixel-space trajectories often store visual observations as compressed videos, which are then decoded into individual frames before or during training, e.g., Cadene et al. (2026). While effective for storage, video decoding introduces additional overhead: loading, decoding, and storing individual frames ahead of training can take several hours for large datasets. Streaming decoded frames concurrently with model updates can avoid this time-consuming pre-processing step, but requires carefully balancing frame production and consumption to prevent GPU under-utilization. Crucially, both approaches typically still require transferring decoded frames from CPU to GPU, introducing additional data-movement overhead.

For WMs trained in simulation, rendering observations (1) on-the-fly and (2) directly on the GPU avoids storing large image datasets and transferring image tensors between CPU and GPU. However, rendering can itself become a training bottleneck, making frame throughput critical for efficient training. Existing libraries typically achieve high throughput through CPU-based environment vectorization and parallelization (Raffin et al., 2021; Towers et al., 2026; Weng et al., 2022). While effective at scaling environment execution, these approaches do not necessarily accelerate individual environments and can incur substantial overhead when generating and transferring large image tensors to the GPU. Other frameworks, such as Isaac Lab (Mittal et al., 2025), ManiSkill3 (Tao et al., 2025), and MuJoCo Playground (Zakka et al., 2025), leverage GPU-accelerated simulation and rendering to achieve high throughput across many environments on the GPU. However, these frameworks often rely on specialized simulation backends and hardware requirements, limiting portability across research workflows—e.g., Isaac Lab’s GPU renderer is not supported by Hopper-class NVIDIA GPUs (e.g., H100) nor macOS.

To mitigate these scalability and accessibility issues, we introduce stable-envs, a lightweight, research-friendly library, designed for fast and reproducible GPU-native rendering across multiple simulation environments. For each supported environment, we port or re-implement the original physics simulation and expose its complete internal state, enabling (1) fast rendering (2) exact state saving and restoration for reproducibility and (3) controllable visual variations behind a single, shared API. In summary, our contributions are:

  • Fast, reproducible, and controllable environment rendering. Through optimizations such as batched rendering and custom GPU kernels, stable-envs achieves up to 8.5x higher environment throughput than CPU-native baselines. By exposing the full simulator state, stable-envs also enables exact state restoration and independent sampling of visual factors of variation, allowing fully-reproducible experiments under controlled visual changes.
  • A comprehensive, GPU-native simulation library. stable-envs currently supporting 80 simulation environments used for world-model research. All environments support batched physics stepping and rendering on the GPU, allowing for efficient training and evaluation of pixel-based WMs.
  • Accelerated end-to-end world-model training. Thanks to on-the-fly and on-GPU rendering, stable-envs enables up to 1.33x faster training of WMs through stable-worldmodel (Maes et al., 2026a), with no degradation in downstream planning performance.

Listing 1: Step multiple batched environments.

⬇

import stable_envs as snv

env = snv.PushT(num_envs=256, device="cuda")

env.reset(seed=0)