Abstract
Learning a model of dynamics from high-dimensional images can be a core ingredient for success in many applications across different domains, especially in sequential decision making. However, currently prevailing methods based on latent-variable models are limited to working with low resolution images only. In this work, we show that some of the issues with using high-dimensional observations arise from the discrepancy between the dimensionality of the latent and observable space, and propose solutions to overcome them.
Introduction
In model-based reinforcement learning, an agent's ability to navigate complex environments depends on its "world model"—a mathematical representation of environmental transitions. State-Space Models (SSMs), often implemented via Variational Autoencoders (VAEs), are standard for this task. However, a significant performance gap emerges when transitioning from low-resolution (e.g., 16x16) to high-resolution (e.g., 128x128) observations. While models excel at low resolutions, they frequently fail to capture underlying dynamics in high-dimensional spaces.
The Challenge of Dimensionality Discrepancy
The primary obstacle in scaling SSMs is the dimensionality discrepancy within the Evidence Lower Bound (ELBO) objective. The ELBO balances two terms:
- Reconstruction Error: The accuracy of image recreation, calculated over thousands of pixels.
- KL Divergence: The alignment between the model's posterior "guess" and its prior "prediction," calculated over a compact latent space (e.g., 32 dimensions).
In high-resolution settings, the pixel-wise reconstruction error numerically overwhelms the KL divergence. Consequently, the model prioritizes visual fidelity over the latent dynamics necessary for control, such as velocity or momentum.
The $\beta$-DVBF Framework
To address this imbalance, we introduce $\beta$-DVBF, an evolution of the Deep Variational Bayes Filter (DVBF) featuring two critical modifications:
1. The $\beta$ Hyperparameter
Inspired by $\beta$-VAEs, we introduce a scaling factor $\beta \ge 1$ for the KL divergence term. This reweighting forces the model to prioritize transition dynamics. A useful heuristic for selecting this value is the ratio of observation dimensions to latent dimensions: $\beta \approx \text{dim}_x / \text{dim}_z$.
2. Structured Posterior Decomposition
Rather than using a black-box neural network for state estimation, we decompose the approximate filtering distribution into an "inverse measurement" (current observation) and a "posterior transition" (previous state). This Bayesian-inspired structure provides a strong inductive bias for learning temporal features like velocity.
3. Annealing and Training Stability
To prevent the KL constraint from collapsing the latent space prematurely, we employ an annealing scheme where $\beta$ is linearly increased from 0 to its target value during the initial stages of training.
Experimental Evaluation
We evaluated $\beta$-DVBF on three non-Markovian systems where state information (like velocity) is not present in a single frame:
- Pendulum (64x64): Visualizing a swinging mass.
- Bouncing Ball (64x64): Modeling complex wall collisions.
- Vizdoom (96x128x3): High-resolution agent-perspective views in a 3D environment.
Key Results
In the challenging Vizdoom environment, standard DVBF ($\beta=1$) failed to learn velocity, showing a correlation of only 0.10. In contrast, $\beta$-DVBF achieved correlations between 0.75 and 0.90, demonstrating successful capture of latent physics. Furthermore, in the Bouncing Ball task, $\beta$-DVBF maintained superior long-term prediction stability (10 steps ahead) compared to baselines.
Finally, we demonstrated the model's utility for control by calculating "Empowerment"—the agent's potential influence over its future states. The $\beta$-DVBF model enabled the agent to learn complex, intrinsic motivation-based behaviors, such as moving to the center of a room to maximize its future options.
Conclusion
$\beta$-DVBF provides a robust pathway for learning dynamics directly from high-dimensional pixels. By addressing the dimensionality discrepancy through $\beta$-scaling and structured posterior decomposition, we enable the learning of accurate world models that support complex downstream control tasks.
Summary updated