← Back to Autonomy

Physics-ML · CFD Surrogates · Transformers

Transformer Surrogates for Physics: Transolver & GeoTransolver

How a transformer learns to predict flow around a car in one shot — by grouping mesh points that share a physical state, then paying attention among the groups.

Abstract

A neural surrogate replaces a slow computational fluid dynamics (CFD) solve with a single fast forward pass of a network. Transformers are a natural fit, but their all-to-all attention costs too much when a car mesh has millions of points. Transolver fixes this with Physics-Attention: it learns to group mesh points that share a physical state into a small fixed number of "slices," runs attention among the slices, and scatters the result back — turning quadratic cost into linear. GeoTransolver keeps that idea and adds a reusable, geometry-aware context so the model stays accurate when shapes and operating conditions change.

§ 01 — THE JOB

What we are asking the network to do

The goal is a neural surrogate: a network that looks at a car geometry and predicts a physical field over its whole surface and surrounding volume — the pressure pushing on every panel, the velocity of air in every part of the flow — all in one forward pass.

Today those fields come from a CFD solver, which grinds through the fluid equations on a fine grid and can take hours or days per design. A surrogate is trained on many solved cases and then predicts the answer for a new shape in seconds. It does not replace CFD; it lets engineers screen many design variations quickly and reserve the expensive solver for the promising ones.

The geometry arrives as a mesh or point cloud: a collection of N points in space, each carrying coordinates and perhaps a few features (a surface normal, a signed distance, a marker for the inlet or wall). For a detailed vehicle, N can climb into the millions. Whatever architecture we choose has to swallow that many points and produce one prediction per point.

§ 02 — THE BOTTLENECK

Why a plain transformer chokes

Transformers are built around self-attention, where every element looks at every other element to decide what matters. That is exactly the "everything talks to everything" behaviour you want for physics — but it comes at a price.

If there are N points, standard self-attention forms a comparison between every pair of points. That is N × N comparisons — the cost grows like N² (quadratic). The trouble is easy to see with real numbers:

A car mesh sits at the bad end of that scale. So the raw transformer, for all its appeal, is simply unworkable here without a change to how attention is computed. The rest of this article is about that change.

Rule of thumb

Anything that scales as N² dies when N is in the millions. The winning surrogates all find a way to make the cost grow roughly linearly in the number of points instead.

§ 03 — THE KEY IDEA

Physics-Attention and "slices"

Transolver (Wu, Luo, Wang & Long, Tsinghua University, ICML 2024) starts from a physical observation: points in similar physical states behave alike. Two mesh points sitting in the same calm wake, or in the same high-pressure stagnation region, will respond to their surroundings in nearly the same way.

So instead of treating all N points as separate individuals, the model groups points that share a physical state and treats them together. It learns to softly assign each mesh point to one of a small, fixed number M of slices — soft clusters of physically-similar points. "Soft" means a point is not forced into exactly one slice; it gets a weight for each slice, and the model learns those weights from data rather than from a hand-drawn rule.

Once the points are gathered into M slice tokens, attention runs among the slices, not among the raw points. Because M is small and fixed (think tens or low hundreds), that attention is cheap. The result for each slice is then scattered back to the points that belong to it.

Figure 1 · Physics-Attention block diagram
mesh points (N) soft assignment M slice tokens slice 1 slice 2 slice … slice M attention AMONG the slices scatter back to points result scattered back onto the original N points
The whole trick in one picture. Mesh points are softly assigned into M slices, the small set of slice tokens attend to each other globally, and the outcome is scattered back to every point. The expensive all-to-all step happens only among the few slices, never among the millions of points.
§ 04 — INSIDE ONE BLOCK

One Physics-Attention block, step by step

A single Physics-Attention block does four things. Stack several of them, the way a normal transformer stacks its layers, and you have Transolver's core.

  1. Soft assignment. Map each point's features to a set of slice weights — how strongly this point belongs to each of the M slices.
  2. Points → slices (aggregate). Use those weights to gather all the points into M slice tokens. This is like a cross-attention where the slices ask the points, "what is your state?"
  3. Self-attention among slices. Let the M slice tokens attend to each other. This is where global physical interactions are modelled — and it is cheap because M is small.
  4. Slices → points (scatter). Send each updated slice token back to the points that belong to it, using the same soft weights, so every point gets an updated feature.
Figure 2 · Flowchart of one block, stacked in a loop
point features (N × d) 1 · soft assignment point → slice weights 2 · points → slices aggregate into M slice tokens 3 · self-attention among slices global interactions · M is small 4 · slices → points scatter back to N points stack next block cost per block ≈ N × M linear in N (not N²)
Four steps, then repeat. Each block moves information points → slices → points. The only global mixing happens in step 3, among the M slices. Stack blocks to build depth, exactly like transformer layers.

Why the cost is now linear

The two heavy operations — gathering N points into M slices, and scattering back — each cost about N × M. The attention in the middle costs about M × M, which is tiny. So the total is dominated by N × M, and since M is a small fixed number, the block scales linearly with N instead of quadratically. That is the difference between "runs on a million points" and "runs out of memory." Recent work frames this Physics-Attention as a form of linear attention, connecting it to the broader family of efficient transformers.

§ 05 — TRANSOLVER, WHOLE

Transolver as a complete model

Zoom out from the single block and Transolver looks just like a transformer, with Physics-Attention swapped in for ordinary attention.

Because the whole stack is linear in N, it can be applied to large, real geometries rather than toy grids.

Results, as reported

The Transolver paper reports state-of-the-art accuracy across a suite of standard partial-differential-equation (PDE) benchmarks, with about a 22% average reduction in relative error across six of them versus prior methods. It is shown to work on industrial car and airfoil designs, not just clean academic domains. A follow-up, Transolver++, extends the same slicing idea to million-scale geometries, pushing the approach toward the point counts real vehicles demand.

Read this carefully

These figures are what the authors report on their chosen benchmarks. They are a strong signal, not a guarantee for your data. A surrogate's real test is always how it does on shapes it has never seen — see §07.

§ 06 — GEOTRANSOLVER

Making it geometry-aware

GeoTransolver (NVIDIA, released in PhysicsNeMo, 2025) keeps everything good about Transolver — the physics-aware attention on learned slices — and adds a strong sense of geometry and operating conditions that a plain slice attention can miss.

The core change is GALE (Geometry-Aware Latent Embeddings). Where Transolver's block does plain attention among slices, GeoTransolver adds cross-attention to a shared context. That context is a compact latent representation that encodes:

The context is built once and reused in every block, so the model does not have to re-derive "what shape am I looking at, and under what conditions" at every layer. It is computed from multi-scale ball queries around points — an idea borrowed from DoMINO: for each location you gather neighbours at several radii, so you capture both the fine near-surface detail (small radius) and the far-field effects (large radius) at the same time.

Figure 3 · The shared context feeds every block
geometry global params boundary conditions via multi-scale ball queries shared context built once block 1 · slices + cross-attn block 2 · slices + cross-attn block K · slices + cross-attn same context reused in every block (dashed)
Compute the context once, reuse it everywhere. Geometry, global parameters and boundary conditions are folded into one shared latent context via multi-scale ball queries, then every Physics-Attention block cross-attends to it. This is what makes GeoTransolver geometry-aware.

What GeoTransolver adds over Transolver

AspectTransolverGeoTransolver
Slice attentionPhysics-Attention on learned slicesKept — same physics-aware slices
Geometry signalImplicit, via point featuresExplicit shared context (GALE)
Global params / BCsNot a first-class inputEncoded into the shared context
Neighbourhood scaleMulti-scale ball queries (DoMINO idea)
Context reuseBuilt once, reused in every block
Reported strengthsSOTA on PDE benchmarksBetter accuracy, robustness, data efficiency

The practical benefits are better accuracy, more robustness when the geometry or the operating regime shifts away from the training set, and better data efficiency (good results from less training data). It is benchmarked on DrivAerML and the Luminary SHIFT-SUV / SHIFT-Wing datasets against DoMINO, Transolver, and AB-UPT, comparing both integrated quantities (drag and lift) and Relative L1 field errors.

§ 07 — PRACTICAL NOTES

Using these models in practice

Always validate

A surrogate interpolates from the shapes it was trained on — importance is not physics. On a genuinely new geometry or operating point, it can be confidently wrong. Treat predictions as fast screening and validate the shortlisted designs against a real CFD solve before you trust them.

§ 08 — REFERENCES

References

Wu, Luo, Wang & Long (2024). Transolver: A Fast Transformer Solver for PDEs on General Geometries. ICML 2024. arXiv:2402.02366.

Luo et al. (2025). Transolver++: An Accurate Neural Solver for PDEs on Million-Scale Geometries. arXiv:2502.02414.

GeoTransolver: Learning Physics on Irregular Domains Using Multi-scale Geometry-Aware Physics Attention Transformer. arXiv:2512.20399.

NVIDIA PhysicsNeMo — Transformer Models for External Aerodynamics on Irregular Meshes (documentation).