Skip to main content
QUICK REVIEW

[Paper Review] Facing Off World Model Backbones: RNNs, Transformers, and S4

Fei Deng, Junyeong Park|arXiv (Cornell University)|Jul 5, 2023
Reinforcement Learning in RoboticsComputer Science4 citations
TL;DR

This paper introduces S4WM, the first world model framework compatible with parallelizable structured state space models (PSSMs) like S4 and S5, enabling efficient long-context visual sequence modeling. S4WM outperforms RNN- and Transformer-based world models in long-term imagination, context-dependent recall, reward prediction, and memory-based reasoning, while training faster and generating sequences more efficiently.

ABSTRACT

World models are a fundamental component in model-based reinforcement learning (MBRL). To perform temporally extended and consistent simulations of the future in partially observable environments, world models need to possess long-term memory. However, state-of-the-art MBRL agents, such as Dreamer, predominantly employ recurrent neural networks (RNNs) as their world model backbone, which have limited memory capacity. In this paper, we seek to explore alternative world model backbones for improving long-term memory. In particular, we investigate the effectiveness of Transformers and Structured State Space Sequence (S4) models, motivated by their remarkable ability to capture long-range dependencies in low-dimensional sequences and their complementary strengths. We propose S4WM, the first world model compatible with parallelizable SSMs including S4 and its variants. By incorporating latent variable modeling, S4WM can efficiently generate high-dimensional image sequences through latent imagination. Furthermore, we extensively compare RNN-, Transformer-, and S4-based world models across four sets of environments, which we have tailored to assess crucial memory capabilities of world models, including long-term imagination, context-dependent recall, reward prediction, and memory-based reasoning. Our findings demonstrate that S4WM outperforms Transformer-based world models in terms of long-term memory, while exhibiting greater efficiency during training and imagination. These results pave the way for the development of stronger MBRL agents.

Motivation & Objective

  • To develop a general world model framework compatible with parallelizable SSMs (PSSMs) such as S4 and S5 for high-dimensional visual sequences.
  • To investigate the effectiveness of RNNs, Transformers, and S4 as backbones for visual world models in long-term memory-intensive tasks.
  • To evaluate and compare the performance of different backbone architectures across key memory capabilities: long-term imagination, context-dependent recall, reward prediction, and memory-based reasoning.
  • To demonstrate that S4WM achieves superior long-term memory and inference efficiency compared to RNN- and Transformer-based baselines.

Proposed method

  • Proposes S4WM, a probabilistic latent variable model based on variational inference that uses S4 as the backbone for image sequence generation.
  • Employs a structured state space model (SSM) with parameterized state transitions to enable sub-quadratic complexity and parallel training.
  • Introduces a latent space bottleneck to compress high-dimensional observations, enabling efficient generation of image sequences through latent imagination.
  • Designs four specialized environments—Long Horizon, Contextual Recall, Reward Prediction, and Multi Doors Keys—to evaluate memory capabilities.
  • Uses a combination of reconstruction and generation MSE, imagination accuracy, and reward prediction performance as evaluation metrics.
  • Employs offline probing and model-predictive control (MPC) experiments to validate S4WM's potential in downstream policy learning.

Experimental results

Research questions

  • RQ1Can S4-based world models effectively model long-range dependencies in high-dimensional visual sequences?
  • RQ2How does S4WM compare to RNN- and Transformer-based world models in terms of long-term imagination and memory retention?
  • RQ3Does S4WM achieve better training efficiency and inference speed than RNNs and Transformers in visual world modeling?
  • RQ4Can S4WM maintain accurate memory updates during dynamic, context-dependent reasoning tasks?
  • RQ5Does S4WM generalize to complex, memory-intensive reasoning tasks such as multi-step planning in partially observable environments?

Key findings

  • S4WM achieves the highest imagination accuracy in the Long Horizon task, outperforming RNNs and Transformers, which fail to maintain consistent state representations over long sequences.
  • In the Contextual Recall task, S4WM maintains high accuracy across all context lengths, while TSSM-XL and RSSM-TBTT degrade significantly beyond 100 steps.
  • S4WM is the only model to accurately predict rewards within imagination, with TSSM-XL failing on longer sequences and RSSM-TBTT performing close to random guessing.
  • In the Multi Doors Keys environment, S4WM achieves the lowest generation MSE (0.10) on the most complex setting (7 keys, 654 query steps), outperforming TSSM-XL (9.24) and RSSM-TBTT (6.28).
  • S4WM trains faster than both RNN and Transformer baselines and exhibits higher imagination throughput than RNNs, demonstrating superior computational efficiency.
  • Offline probing and MPC experiments show that S4WM leads to higher task success rates than RSSM, confirming its potential for policy learning in MBRL.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.