PhysiX: A Foundation Model for Physics Simulations

Tung Nguyen, Arsh Koneru, Shufan Li, Aditya Grover · Submission to ICLR 2026 · Rejected

TL;DR

PhysiX is a family of autoregressive foundation models (scaling up to 4B parameters) designed for general-purpose 2D partial differential equation (PDE) simulations. By leveraging discrete video tokenization, next-token transformer prediction initialized from video generation models, and a post-processing refinement module, PhysiX demonstrates that multi-task pretraining and video priors dramatically improve stability and accuracy over long simulation horizons.

What Problem Does This Paper Address?

Traditional numerical PDE solvers (e.g., finite-element or finite-volume methods) are computationally expensive. While deep learning surrogates—like Fourier Neural Operators (FNOs) and U-Nets—can speed up simulations by orders of magnitude, they suffer from three core limitations:

  1. Task Specialization: Most ML surrogates are trained from scratch on single systems, failing to generalize across varying geometries, physical parameters, or dynamical equations.
  2. Error Accumulation: Autoregressive rollout predictions often destabilize rapidly over long time horizons due to compounding step-by-step errors.
  3. Data Scarcity & Heterogeneity: Physics datasets are tiny (tens of thousands of samples) compared to web-scale text/video corpora, causing large models trained from scratch to overfit. Furthermore, channel semantics and resolutions vary widely across domains (e.g., velocity and pressure in fluid flow vs. chemical concentrations in reaction-diffusion).

Methods

PhysiX reformulates continuous physical simulation as an autoregressive token-generation task via three main components:

[Simulation Frames] 
       │
       ▼
[Universal Physics Tokenizer] ──> Causal 3D U-Net + FSQ (8× spatial, 4× temporal compression)
       │
       ▼
[Autoregressive Transformer]  ──> Decoder-only Transformer with 3D RoPE (Next-token prediction)
       │
       ▼
[De-Tokenizer & Refinement]   ──> ConvNeXt-U-Net (Pixel-space artifact suppression)
       │
       ▼
[Clean Predicted Frames]
  • Universal Discrete Physics Tokenizer: A causal 3D convolutional encoder-decoder that compresses input fields by $8\times$ spatially and $4\times$ temporally. Continuous features are discretized using Finite-Scalar Quantization (FSQ) into a 64,000-token codebook. To handle variable channels, inputs are mapped to a unified 46-channel tensor using dedicated learnable padding tensors for missing fields.
  • Autoregressive Transformer Backbone: A decoder-only transformer (models ranging from 250M to 4B parameters) trained via next-token prediction. It uses 3D Rotary Position Embeddings (RoPE), dynamically truncated along spatial axes to natively support mixed-resolution inputs. Crucially, the 4B model is initialized from pretrained natural video foundation models (Cosmos).
  • Pixel-Space Refinement Module: Discretization induces quantization noise, which is visually minor in natural videos but catastrophic for precision physics. A separate ConvNeXt-U-Net operates in pixel space to map raw detokenized outputs to artifact-free, ground-truth-level predictions.

Datasets

  • Training & Evaluation: Evaluated on 8 distinct 2D datasets from The Well benchmark (1.67 TB total), spanning diverse physical domains: shear_flow, rayleigh_benard, acoustic_scattering (maze), active_matter, turbulent_radiative_layer_2D, viscoelastic_instability, gray_scott_reaction_diffusion, and helmholtz_staircase.
  • Out-of-Distribution Adaptation: Evaluated on two held-out simulation tasks with novel boundary conditions and channel physics: euler_multi_quadrants and acoustic_scattering (discontinuous).

Key Insights and Ideas

  • Transferring Natural Video Priors to Physics: Training a 4B parameter model directly from scratch on scientific simulations led to severe overfitting. Initializing the transformer from a pretrained video generative model enabled positive scaling up to 4B parameters, showing that spatiotemporal dynamics learned from real-world video transfer effectively to scientific PDEs.
  • Multi-Task Synergy: Training across diverse physical systems did not degrade specialist performance; instead, joint multi-task training outperformed single-task models across most datasets, confirming that disparate physical equations share underlying spatiotemporal structure.
  • Quantization Error Mitigation: While FSQ enables a unified discrete sequence representation, quantization noise severely degrades physical consistency. The lightweight ConvNeXt refinement network successfully suppresses these "blocky" artifacts, lowering errors by up to an order of magnitude on sensitive tasks like reaction-diffusion.

Key Results

  • Next-Frame Prediction: The largest model, PhysiX-H (4B), achieved an average rank of 1.88 across all 8 benchmark tasks, outperforming existing foundation models (MPP rank 5.50, DPOT rank 4.88) and standard baselines (C-U-Net rank 3.38). Even the smallest variant, PhysiX-S (250M), outperformed both MPP (400M) and DPOT (500M).
  • Long-Horizon Stability: In multi-step rollouts, PhysiX-H achieved state-of-the-art results on 18 of 21 evaluation horizons. On shear_flow and rayleigh_benard, it slashed VRMSE by >90% compared to baseline neural operators, remaining stable out to 100 rollout steps.
  • Adaptation to Unseen Tasks: When adapting to unseen simulations with distinct channels, finetuning the pretrained PhysiX ($\text{PhysiX}_f$) yielded lower rollout errors across all time horizons compared to training from scratch ($\text{PhysiX}_s$).

Limitations and Future Work

  • No Zero-Shot Generalization: Adapting to new physical systems with novel channels or vastly different equations still requires fine-tuning both the tokenizer and transformer.
  • 2D Architecture Constraint: Because the tokenizer relies on video-based (2D + time) architectures, PhysiX cannot natively process 3D spatial simulations without architectural modifications.
  • Discretization Sensitivity: Systems with very low spatiotemporal variance remain sensitive to residual quantization errors from the discrete token bottleneck.

Summary updated

BibTeX
@inproceedings{nguyen2025physix,
  author = {Tung Nguyen and Arsh Koneru and Shufan Li and Aditya Grover},
  title = {{PhysiX: A Foundation Model for Physics Simulations}},
  booktitle = {AI4Science @ NeurIPS},
  year = {2025},
  url = {https://openreview.net/forum?id=xRiPK04T8t},
}
Figure