Learning Parsimonious Dynamics for Generalization in Reinforcement Learning

Tankred Saanum, Eric Schulz · DOI

Introduction

Humans possess a remarkable ability to navigate novel environments by inferring underlying structural rules. For instance, understanding that moving "north" consistently shifts one's position upward on a map allows for immediate shortcut discovery and efficient planning. In contrast, standard reinforcement learning (RL) agents often struggle with generalization because their internal representations are tied too closely to specific visual observations or training distributions. This paper introduces a framework for model-based RL that mimics human-like navigation by learning "parsimonious dynamics"—a minimal set of rules governing movement through an abstract latent space.

Architecture and Parsimony

The core of the proposed approach is the assumption that environment dynamics should be explainable by a few simple, locally linear transformations. The model maps observations $s_t$ into a latent space $Z$ using an encoder $\phi$. Transitions within this space are modeled as $T_t z_t \approx z_{t+1}$, where $T_t$ is a transformation matrix (representing rotations or translations).

The proposed architecture features a discrete bottleneck to infer transformation rules ($h_t$) and a comparison showing how the parsimony constraint recovers clean topological structures compared to a standard VAE.

Key technical components include:

  • Discrete Bottleneck: A variational objective infers a discrete latent code $h_t$ for each transition, which is then decoded into the transformation matrix $T_t$.
  • Parsimony Constraint: A KL-divergence term encourages the model to use a minimal number of distinct transformations. By employing a state-invariant prior, the model learns rules that depend on the action taken rather than the agent's specific coordinates.
  • Contrastive Learning: Instead of pixel reconstruction, which can lead to "state collapse" or over-focusing on visual noise, the model uses a contrastive loss to organize the latent space based on the topology of transitions.

Experimental Evaluation

The model was evaluated on environments designed to test topological understanding, including standard 11x11 Gridworlds, a "Four Rooms" bottleneck task, and a Torus environment where edges wrap around. These were compared against deterministic RNNs, standard Variational Autoencoders (VAEs), and stochastic world models (SSM).

Results and Discussion

Empirical results demonstrate that enforcing parsimony leads to significantly faster policy learning and more robust planning. In navigation tasks, agents using the proposed latent space (trained via Soft Actor-Critic) reached optimal reward levels much earlier than baselines.

Learning curves demonstrate that the proposed model (Ours) achieves higher rewards and faster convergence across Gridworld, Gridworld with a hole, and Torus environments compared to VAE and baseline models.

As shown in the performance curves, the "Ours" model (teal) consistently outperforms both the standard VAE (orange) and the baseline (blue). In the Torus environment, for example, the model successfully captures the non-Euclidean wrap-around dynamics, allowing for efficient planning where standard models fail to organize the latent space coherently. Qualitative analysis of the latent spaces (see Figure 2) confirms that while standard VAEs produce disorganized "hairball" representations, the parsimonious model recovers the true underlying grid or torus topology.

Conclusion

By prioritizing the "rules of movement" over visual reconstruction, the proposed framework achieves superior generalization in RL. The model effectively learns the fundamental topological structure of an environment, enabling more efficient planning and faster policy acquisition. Future work will focus on adaptive complexity regulation to automatically determine the optimal number of rules for more irregular 3D environments.

Summary updated

BibTeX
@misc{saanum2022learning,
  author = {Tankred Saanum and Eric Schulz},
  title = {{Learning Parsimonious Dynamics for Generalization in Reinforcement Learning}},
  year = {2022},
  eprint = {2209.14781},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2209.14781},
}
Figure