ReViT: Rotational-equivariant Vision Transformers for Neural PDE Solvers

Hao Wei (TUM), Björn List, Nils Thuerey (Professor)

International Conference on Machine Learning 2026 · Oral

Overview

Foundation models for physical systems and partial differential equations (PDEs) often fail a fundamental physical constraint: they violate rotational symmetry. When input fields, such as turbulent channel flows, are rotated, existing PDE foundation models frequently produce outputs that collapse entirely or fail to match reference solutions. While classical numerical solvers enforce equivariance by construction, modern deep learning architectures—specifically standard Vision Transformers (ViTs)—lack this inductive bias. Physical laws are independent of coordinate rotations, meaning that any neural network claiming to replace or augment numerical solvers must respect this exact symmetry to serve as a trustworthy AI pillar for engineering applications.

Watch on SlidesLive

Visual summary for ReViT: Rotational-equivariant Vision Transformers for Neural PDE Solvers by Hao Wei, Björn List, Nils Thuerey
Visual summary for ReViT: Rotational-equivariant Vision Transformers for Neural PDE Solvers by Hao Wei, Björn List, Nils Thuerey

Key moments

  1. 0:00 Introduction and motivation for rotational equivariance in PDE solvers
  2. 2:05 Challenges of standard ViTs: tokenization, positional encoding, and representation mismatch
  3. 3:25 Core idea of ReViT: global rotation with local learning
  4. 4:04 Key components of ReViT architecture and reference basis pyramid
  5. 7:25 Ablation study on equivariance and performance components
  6. 7:56 Benchmark results on Rot-MNIST, advection datasets, and Kolmogorov flow
  7. 9:59 Scaling ReViT to 3D magnetohydrodynamics and turbulent channel flows
  8. 12:06 Audience Q&A on symmetry assumptions and SO(3) equivariance

ReViT: Rotational-equivariant Vision Transformers for Neural PDE Solvers

Speakers: Hao Wei (TUM); Björn List; Nils Thuerey (Professor)

Conference: ICML

YouTube: https://slideslive.com/39083572

Overview

Foundation models for physical systems and partial differential equations (PDEs) often fail a fundamental physical constraint: they violate rotational symmetry. When input fields, such as turbulent channel flows, are rotated, existing PDE foundation models frequently produce outputs that collapse entirely or fail to match reference solutions. While classical numerical solvers enforce equivariance by construction, modern deep learning architectures—specifically standard Vision Transformers (ViTs)—lack this inductive bias. Physical laws are independent of coordinate rotations, meaning that any neural network claiming to replace or augment numerical solvers must respect this exact symmetry to serve as a trustworthy AI pillar for engineering applications.

This talk introduces ReViT (Rotational-equivariant Vision Transformer), a novel architecture designed to guarantee rotational equivariance for both scalar and vector fields on grid-based domains. Developed by Hao Wei (TUM), Björn List and Nils Thuerey, ReViT decouples global rotations from local learning. By constructing local canonical bases for image patches and leveraging invariant representations, ReViT achieves rotational equivariance across diverse physical systems, from 2D advection and Kolmogorov flows to complex 3D magnetohydrodynamics and turbulent channel flows.

The significance of ReViT lies in its ability to bridge the gap between heavy, unconstrained transformer backbones and rigorous physical constraints. By rotating systems globally while processing information locally, ReViT avoids the memory bottlenecks of prior equivariant graph models while outperforming standard transformers by orders of magnitude in mean squared error (MSE) and physical stability.

Background

▶ Watch: Introduction and motivation for rotational equivariance in PDE solvers (0:00)

In the machine learning and scientific computing ecosystems, neural operators and transformer-based architectures have emerged as promising surrogates for traditional computational fluid dynamics (CFD) solvers. However, applying standard architectures like standard ViTs or Swin Transformers to physical simulations exposes deep architectural incompatibilities with continuum mechanics.

Rotational equivariance requires that applying a rotation operator to the input of a function commutes identically with applying that same rotation to its output. While scalars (such as density or pressure) only shift spatial positions under rotation, vectors (such as velocity or magnetic fields) undergo simultaneous transformations of both spatial coordinates and internal vector components. Standard vision backbones struggle with this due to three primary barriers:

  1. The Tokenization Barrier: Flattening patches in raster order maps physically adjacent cells that have undergone rotation into disjoint regions of latent space.
  2. The Positional Encoding Barrier: Absolute positional encodings are tied to fixed global coordinates, whereas relative positional encodings (vectors pointing from token $j$ to token $i$) lose all directional information if forced to be isotropic (e.g., pure scalar distances) to maintain invariance.
  3. The Representation Mechanism Mismatch: According to Schur's Lemma, linear weights in equivariant layers must commute with rotations, forcing weight matrices $W$ to be scalar multiples of the identity. Standard query-key-value ($QKV$) projections in self-attention are dense and unconstrained, making it structurally impossible to mix vector components while maintaining equivariance.

Prior attempts to solve these challenges relied heavily on equivariant Graph Neural Networks (GNNs) or data augmentation strategies. Yet, GNNs suffer from severe memory scaling limitations in high-resolution 3D settings, and data augmentation schemes (such as random or fixed-angle rotations) either plateau in accuracy or overfit, failing to provide structural guarantees of physical consistency.

Key Findings

▶ Watch: Core idea of ReViT: global rotation with local learning (3:25)

ReViT addresses these systemic limitations through a series of theoretical and empirical breakthroughs demonstrated across various benchmarks:

  • Exact Rotational Equivariance: Through ablation studies, the authors demonstrated that ReViT maintains rigorous rotational equivariance across all processing layers, whereas removing invariant embedding components leads to immediate representation collapse in the first encoder layer.
  • Superior Classification Accuracy and Efficiency: On the Rot-MNIST benchmark, ReViT achieved state-of-the-art classification accuracy while drastically reducing training time, inference compute, and memory consumption compared to existing rotational ViT variants.
  • Long-Horizon Stability in 2D Advection: On a standard 2D advection benchmark, ReViT remained physically stable and accurate across 20 rollout steps, whereas baseline models exhibited non-physical patterns and drift near domain boundaries, achieving an MSE lower by an order of magnitude.
  • Data Augmentation Superiority: On the 2D Kolmogorov flow dataset, ReViT without any data augmentation outperformed baseline PDE transformers trained with fixed-angle and random-angle augmentations, achieving roughly 50% lower MSE.
  • Successful 3D Scaling: ReViT successfully scaled to complex 3D domains—specifically 64³ resolution compressible magnetohydrodynamics (MHD) and wall-bounded turbulent channel flows—reducing MSE by a factor of over 6 compared to the best competing baselines and preventing the catastrophic loss of physical detail seen in non-equivariant models.

Technical Deep Dive

▶ Watch: Ablation study on equivariance and performance components (7:25)

The core architectural innovation of ReViT is summarized by the principle: rotate globally, but learn everything locally.

Local Canonical Basis Construction

To handle vectors without losing directional context, ReViT constructs a local canonical basis for each image patch:

  • For 2D systems: The system computes the averaged velocity vector within the patch and rotates it by 90 degrees to establish an orthogonal basis. For scalar fields, the gradient of the scalar provides the directional vector.
  • For 3D systems: The basis is constructed using the patch's average velocity vector alongside a second computed vector, the vorticity, yielding a right-handed orthonormal coordinate system.

Invariant Embedding and Aggregation

Once the local basis is established, vector fields are projected into the local frame. These local vectors become invariant to global rotations, while the basis itself co-rotates with the global frame. Instead of standard raster-order flattening, ReViT aggregates patch tokens using a Set Transformer, ensuring permutation invariance by construction.

Positional Encoding and Reference Basis Pyramids

Relative positional encodings—which act as vectors pointing between tokens—are re-projected into the local canonical basis. This preserves directional awareness while maintaining rotational invariance.

To manage multi-scale physical details and boundary robustness (addressing pixels crossing patch boundaries during continuous rotations), ReViT employs a Reference Basis Pyramid inspired by the Swin Transformer. Because pooling operations cannot be performed directly on tokens locked in local bases, ReViT re-projects tokens into the global frame, executes pooling, and then re-projects them back into local bases for subsequent layers.

Experimental Setup & Results

▶ Watch: Benchmark results on Rot-MNIST, advection datasets, and Kolmogorov flow (7:56)

The evaluation protocol spanned discrete classification, synthetic transport equations, and complex fluid dynamics:

  • Rot-MNIST: Used to benchmark classification accuracy and computational footprint against existing rotational vision transformers. ReViT achieved top accuracy with minimal memory overhead.
  • 2D Advection Dataset: Evaluated long-term rollout stability over 20 steps. ReViT achieved the lowest MSE, outperforming equivariant GNNs by an order of magnitude and avoiding boundary drift.
  • 2D Kolmogorov Flow: Used to test robustness against data augmentation strategies. Baselines included standard PDE Transformers (architecturally similar to ReViT but lacking built-in equivariance) trained with fixed-angle copies and random augmentations. ReViT without augmentation achieved 50% lower MSE than the best augmented baseline.
  • 3D Magnetohydrodynamics (MHD): Evaluated on compressible turbulence at 64³ resolution, coupling scalar density with two vector fields. ReViT reduced MSE by over 6× compared to the strongest baseline, preventing non-physical value spikes.
  • 3D Turbulent Channel Flow: Tested on wall-bounded anisotropic geometry. While baseline models suffered catastrophic loss of continuity and detail, ReViT aligned closely with reference ground-truth rotations.

Practical Implications

▶ Watch: Audience Q&A on symmetry assumptions and SO(3) equivariance (12:06)

For infrastructure teams, model builders, and scientific machine learning practitioners, ReViT offers a blueprint for building physics-aligned foundation models without sacrificing transformer scalability.

  • Memory Efficiency: By avoiding the memory explosions typical of equivariant GNNs, ReViT enables scaling to high-resolution 3D grids previously intractable for rotation-aware architectures.
  • Backbone Agnosticism: The ReViT formulation is not bound to a single transformer design; the authors successfully integrated the mechanism into both standard ViT and Swin Transformer variants.
  • Elimination of Augmentation Dependency: Practitioners no longer need to rely on exhaustive data augmentation sweeps (which often degrade performance or overfit) to instill physical symmetries.
  • Limitations: As discussed in the talk's Q&A session, ensuring correct equivariance requires careful definition of external body forces (such as gravitational vectors in wall-bounded flows); global system rotations must encompass all coupled physical forcing terms to preserve equivariance assumptions.

Key Takeaways

  • ReViT is the first rotational-equivariant Vision Transformer capable of handling both scalar and vector fields on grid-based physical domains.
  • The architecture successfully separates global rotation handling from local feature learning by projecting inputs into local canonical bases.
  • The framework is backbone-agnostic, demonstrating successful integration with both standard ViTs and Swin Transformer variants.
  • ReViT achieves an order-of-magnitude reduction in mean squared error over equivariant GNNs and standard PDE transformers while drastically reducing memory consumption.
  • The model maintains long-horizon stability and physical realism in complex 3D settings like magnetohydrodynamics and turbulent channel flows where unconstrained baselines experience total collapse.

About the Speaker(s)

  • Hao Wei (TUM): Hao Wei is from TUM and presented ReViT, a rotational-equivariant vision transformer for neural PDE solvers, in collaboration with Dr. List and Professor Thuerey.
  • Björn List: Dr. List is a collaborator on the ReViT project for rotational-equivariant vision transformers for neural PDE solvers.
  • Nils Thuerey (Professor): Professor Thuerey is a collaborator on the ReViT project for rotational-equivariant vision transformers for neural PDE solvers.

Reviews

→ Top-rated talks at International Conference on Machine Learning 2026

All talks from International Conference on Machine Learning 2026