Video Prediction of Dynamic Physical Simulations With Pixel-Space Spatiotemporal Transformers

Dean L. Slack, G. Thomas Hudson, Thomas Winterbottom, Noura Al Moubayed

Introduction

Predicting the future state of a dynamic system from visual observations is a fundamental challenge in artificial intelligence, with applications ranging from autonomous driving to robotic manipulation. While modern generative video models like Sora or VideoGPT have achieved remarkable visual realism, they often struggle with "physical hallucinations"—scenarios where objects might pass through solid boundaries, disappear, or violate the laws of gravity.

This paper introduces PSViT (Pixel-Space Spatiotemporal Video Transformer), an end-to-end transformer model designed to prioritize physical fidelity. By bypassing the latent-space compression common in current state-of-the-art models, PSViT demonstrates that operating directly in pixel space can extend the time horizon for physically accurate predictions by up to 50%.

The Bottleneck of Latent-Space Modeling

Most contemporary video generation models follow an "encoder-predictor-decoder" architecture. These models compress high-dimensional video frames into a lower-dimensional latent space, perform temporal reasoning within that space, and then decode the results back into pixels. While computationally efficient, this compression acts as a lossy bottleneck.

In tasks requiring high physical precision, small errors in the latent space accumulate rapidly over time. This leads to a divergence from the ground-truth physical trajectory, even if the resulting video looks visually "sharp." For scientific simulations or safety-critical applications, this trade-off is often unacceptable. PSViT addresses this by treating video prediction as a pure autoregressive task directly on continuous pixel values, ensuring that no physical information is lost to a compression algorithm.

Architecture and Methodology

PSViT utilizes a pure transformer architecture optimized for spatiotemporal reasoning. Its design is characterized by three key technical innovations:

1. U-Net Style Transformer

To manage the computational demands of pixel-space processing while capturing features at multiple scales, the model employs a U-Net inspired structure. It uses "patch merging" to progressively reduce the number of patches and capture global context, followed by "unmerging" to reconstruct the full-resolution frame. This allows the model to maintain spatial detail while understanding the broader scene dynamics.

2. Separated Spatiotemporal Attention (GS+T)

Through extensive ablation studies, the authors identified that isolating spatial and temporal reasoning is more effective than joint processing. PSViT utilizes a GS+T (Global Space + Self-Time) scheme, where spatial attention layers and temporal attention layers are interleaved. This separation allows the model to better distinguish between the static geometry of a scene and the dynamic movement of objects within it.

3. Register Tokens for Global State

The model incorporates learnable "register tokens"—memory slots that are not part of the image patches. These tokens are designed to aggregate and store global information, such as the underlying physical constants (e.g., gravity or friction) governing the simulation. Probing experiments reveal that these tokens act as a dedicated internal state for the scene's physical rules.

Experimental Results

The authors evaluated PSViT across a diverse set of benchmarks, including PDE-governed simulations (Moon, Pendulum, Roller, 3D Balls), complex multi-object collisions (CLEVRER), and standard video datasets (Moving MNIST, BAIR).

Physical Accuracy and Divergence

The most significant finding is the improvement in the "physical horizon." When measured by object centroid tracking, PSViT extended the duration of physically accurate predictions by up to 50% compared to latent-space baselines like MAGVIT. On simulation datasets, PSViT achieved a Divergence score of 2.90, outperforming SimVP (3.16) and MAGVIT (3.24).

Implicit Physics Learning

Beyond mere pixel movement, PSViT appears to learn an internal representation of physics. By applying a simple linear probe to the model's internal layers, the researchers could accurately estimate physical parameters like gravity or mass. Remarkably, the model showed strong zero-shot generalization, correctly predicting trajectories for physical constants it had never encountered during training.

Standard Metrics

Despite prioritizing physical trajectory over visual "texture," PSViT remains competitive on standard image quality metrics. It achieved an SSIM of 0.9943 and a PSNR of 54.56 on simulation benchmarks, proving that pixel-space modeling does not necessarily come at the cost of image clarity.

Limitations and Future Directions

While PSViT excels at physical consistency, it faces challenges in real-world, highly stochastic environments. On the BAIR robot pushing dataset, the model can produce "blurry" results over long sequences, as it prioritizes the correct position of an object over the sharpness of its texture. Additionally, the quadratic complexity of the transformer's attention mechanism makes scaling to 1080p resolution a significant computational hurdle.

Future work will focus on scaling pixel-space transformers to higher resolutions and developing more sophisticated metrics that can capture physical accuracy beyond simple pixel-wise distance. By demonstrating the power of pixel-space reasoning, PSViT provides a new path forward for building AI models that truly understand the physical world.

Summary updated

BibTeX
@article{slack2025video,
  author = {Dean L. Slack and G. Thomas Hudson and Thomas Winterbottom and Noura Al Moubayed},
  title = {{Video Prediction of Dynamic Physical Simulations With Pixel-Space Spatiotemporal Transformers}},
  journal = {IEEE Trans. Neural Networks Learn. Syst.},
  year = {2025},
  doi = {10.1109/tnnls.2025.3585949},
}
Figure