Amsterdam's MSPT Runs 20-Million-Point CFD Simulations on a Single GPU
MSPT uses ball-tree patching and dual-scale attention to run million-point physics simulations on a single GPU, beating Transolver by up to 30% on key benchmarks.
ProTakeaways
- MSPT introduces Parallelized Multi-Scale Attention (PMSA), combining local patch attention with global supernode communication in a single operation, enabling near-linear scaling.
- Ball-tree partitioning groups spatially coherent points into patches on irregular meshes, computed once and reused across all transformer blocks.
- MSPT achieves state-of-the-art on 4 of 6 standard PDE benchmarks, with a 30% error reduction on Navier-Stokes and 8.7% volume field improvement on ShapeNet-Car vs. Transolver.
- Memory usage at 500k points is 22.49 GB vs. Transolver's 34.94 GB; MSPT can process 1 million points in 84 ms under 50 GB on a single A100 GPU.
- The architecture handles the 20-million-point AhmedML automotive CFD dataset on a single GPU, a scale previously requiring specialized multi-branch models.
- Code is publicly available and integrates with the Neural Solver Library benchmark framework.
Running a high-fidelity physics simulation of a car's aerodynamics in a wind tunnel can take hours on a supercomputer cluster. Neural surrogates promise to replace those runs with millisecond inference, but they hit a wall fast: the moment you scale to the millions of mesh points that industrial CFD actually requires, the memory and compute costs explode. A new architecture from the University of Amsterdam, the Multi-Scale Patch Transformer (MSPT), directly attacks this bottleneck with a surprisingly clean idea: split the point cloud into local patches, pool each patch into a tiny set of "supernodes," and then let every point attend both to its neighbors and to all supernodes in a single, parallelized operation.
The wall every neural PDE solver hits
Physics simulations are governed by partial differential equations (PDEs), and the gold standard for solving them numerically is to discretize space into a mesh of millions of points, then compute how each point interacts with every other. Neural operators try to learn this mapping from inputs (geometry, boundary conditions) to outputs (pressure, velocity, stress) directly from data, bypassing the expensive numerical solver at inference time.
The catch is that attention, the mechanism that makes transformers so powerful at capturing long-range dependencies, scales quadratically with the number of points. A key obstacle in scaling these methods lies in capturing spatial dependencies appropriate to different physical regimes. In solid mechanics, stress localizes around applied loads. In incompressible fluids, a global pressure coupling arises from the divergence-free constraint. Both effects need to be modeled simultaneously, at different spatial scales.
Prior approaches each solve part of this puzzle but leave gaps:
- Fourier Neural Operators (FNO): Fast and mesh-independent, but require structured grids or periodic boundary conditions and often struggle to accurately represent sharp, localized features.
- Transolver: Projects the mesh into a fixed set of global "slices" to achieve sub-linear complexity, but the fixed bottleneck limits fidelity and scales poorly when you need more slices for accuracy.
- Erwin: Achieves linear complexity by restricting attention to ball-tree partitions, preserving local fidelity, but suffers from limited long-range information propagation since distant patches never directly communicate.
- UPT / AB-UPT: Uses a centralized latent space via cross-attention, which provides global context but requires specialized surface/volume branching for CFD and is harder to generalize.
Patches, supernodes, and one unified attention pass
MSPT's core insight is to handle both scales inside a single attention operation rather than alternating between separate local and global passes. Here is how it works, step by step:
- Ball-tree partitioning. To partition the input domain into spatially-coherent patches, MSPT employs ball trees, which handle irregular geometries efficiently. A ball tree is a hierarchical spatial data structure that recursively splits a point set into nested metric balls. A depth-first traversal of the tree's leaves produces a permutation of the points such that nearby indices correspond to spatially close points. The tree is built once per sample and reused across all transformer blocks.
- Supernode pooling. Within each patch of
Lpoints, MSPT compresses the features down toQ"supernode" tokens using mean pooling (or optionally max-pooling or a learned linear projection). AllKpatches produce their supernodes, which are then concatenated into a global context matrix of sizeKQ × F. - Augmented dual-scale attention. Each patch's local tokens are concatenated with the full global context matrix, and standard multi-head self-attention is run on this augmented sequence. The attention matrix naturally decomposes into four blocks: local-to-local, local-to-global, global-to-local, and global-to-global. Only the updated local tokens are kept; the supernodes are discarded after each block and recomputed fresh in the next.
- Stacking blocks. Multiple MSPT blocks are stacked. Each block refines both the point features and the supernodes, with the final block's feed-forward network replaced by a task-specific head that maps hidden features to the target physical field at each point.

The computational complexity of the Parallelized Multi-Scale Attention (PMSA) mechanism is O(NL + N²Q/L), where N is the total number of points, L is the patch size, and Q is the number of supernodes per patch. While technically quadratic in N, the coefficient Q/L of the quadratic term is kept very small (typically Q=1 and L=N/K), making the linear term dominant in practice. The patch size L is a tunable knob: larger patches give richer local context but more global communication overhead, smaller patches do the reverse.
A quick sketch of the core attention step in code:
# Pseudocode for one MSPT block
for k in range(K): # K patches, run in parallel
H_k = point_features[patch_k] # shape: [L, F]
S_k = mean_pool(H_k, Q) # shape: [Q, F]
# Concatenate all supernodes into global context
S = concat([S_1, ..., S_K]) # shape: [K*Q, F]
for k in range(K): # again in parallel
Z_k = concat([H_k, S], dim=0) # shape: [L + K*Q, F]
H_k_new = MHA(Z_k)[:L] # keep only local rows
H_new = concat([H_1_new, ..., H_K_new])
What the numbers say
MSPT demonstrates state-of-the-art accuracy on standard PDE benchmarks (elasticity, plasticity, fluid dynamics, porous media flow) and industry-scale 3D aerodynamic datasets (ShapeNet-Car, Ahmed-ML) at significantly lower computational cost, potentially scaling to millions of points on a single GPU.
On the six standard PDE benchmarks (Elasticity, Plasticity, Airfoil, Pipe, Navier-Stokes, Darcy), MSPT achieves state-of-the-art on four of six, with particularly large gains on Navier-Stokes (30% relative error reduction vs. Transolver) and Pipe (6%). On the large-scale aerodynamics benchmarks:
- ShapeNet-Car (32k mesh points, 3D aerodynamics): MSPT is the best single-branch model, improving volume field error by 8.7% and drag coefficient error by 4.9% over Transolver. Spearman rank correlation for drag reaches 99.41%, meaning the model reliably orders car designs by aerodynamic efficiency.
- AhmedML (20 million mesh points, automotive CFD): MSPT again leads single-branch models, with a 6.67% improvement on surface field prediction over Transolver.
The two benchmarks where MSPT does not lead are Elasticity (where Erwin's purely local attention is a better fit for highly localized stress fields) and Darcy (where global spectral methods have an inherent advantage). These are not failures so much as expected tradeoffs: MSPT's supernode communication adds overhead that is unnecessary when physics are almost entirely local.

The memory story is the real headline
Accuracy improvements are nice, but the efficiency gains are what make MSPT practically relevant. At 500k points, Transolver requires 34.94 GB of GPU memory, while MSPT uses only 22.49 GB, a 35% reduction. At the same scale, MSPT's latency is 798 ms vs. Transolver's 547 ms per forward pass, so there is a speed tradeoff at this scale, but MSPT can reach point counts that Transolver simply cannot fit on a standard A100.
With K=128 patches, MSPT can process a million-point batch in 84 ms under 50 GB of memory on an A100. The memory scales nearly linearly with point count, which is the key property needed for industrial-scale deployment. The patch count K is itself a tunable efficiency lever: increasing K reduces runtime (smaller patches parallelize better) but increases memory usage from the larger global context matrix.
Where this is useful, and where it is not
MSPT is a strong fit for any simulation task that involves irregular 3D geometries and requires both fine-grained local accuracy and global consistency. The most natural applications are:
- Automotive aerodynamics: Predicting drag coefficients and surface pressure for design optimization, where you need to rank thousands of shape variants quickly.
- Structural mechanics: Predicting stress and deformation fields in complex parts under load, particularly when the geometry is unstructured.
- Fluid dynamics surrogates: Replacing expensive CFD runs in early-stage design loops for airfoils, pipes, and other flow geometries.
- Any PDE on a point cloud or unstructured mesh: The ball-tree partitioning handles arbitrary geometries without requiring a regular grid.
MSPT is a worse choice when the physics are almost entirely local (Erwin's strictly local attention will be more memory-efficient) or when the domain is a regular periodic grid (spectral methods like FNO will be faster and more accurate). The patch count hyperparameter also requires some tuning per problem: too few patches oversmooth local detail, too many fragment long-range coherence.
The real breakthrough: parallelism without a global bottleneck
The deeper contribution here is architectural. Previous scalable solvers either imposed a fixed global bottleneck (Transolver's slices, UPT's latent tokens) or abandoned global communication entirely (Erwin). MSPT's supernodes are neither: they grow with the number of patches K, so global communication capacity scales with the resolution of the problem rather than being fixed at design time. And because all patches process their augmented sequences in parallel, the architecture maps cleanly onto GPU tensor operations without any sequential message-passing.
This means something that was not possible before: running a single-GPU neural surrogate on a 20-million-point CFD mesh (the AhmedML dataset) with competitive accuracy against specialized multi-branch architectures. The code is publicly available on GitHub, and the model is trained within the Neural Solver Library framework, making it straightforward to benchmark against existing baselines. Future work from the authors targets a dual-branch MSPT variant for specialized surface/volume CFD coupling, which could close the remaining gap with AB-UPT on field-level accuracy.