← Latest papers
🤖 machine learning

Zero-shot generalization of transformer neural operators to larger domains

This paper proposes a novel transformer-based neural operator that achieves zero-shot generalization to significantly larger spatial domains by incorporating a decomposable bias in attention logits and rotary positional embeddings to enforce spatial locality and translation equivariance without altering the underlying architecture.

Original authors: Armand de Villeroché, Sibo Cheng, Vincent Le Guen, Marc Bocquet, Rem-Sophia Mouradi, Patrick Armand, Alban Farchi, Patrick Massin

Published 2026-06-15
📖 4 min read☕ Coffee break read

Original authors: Armand de Villeroché, Sibo Cheng, Vincent Le Guen, Marc Bocquet, Rem-Sophia Mouradi, Patrick Armand, Alban Farchi, Patrick Massin

Original paper licensed under CC BY 4.0 (http://creativecommons.org/licenses/by/4.0/). This is an AI-generated explanation of the paper below. It is not written or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer

Imagine you are teaching a robot to predict how water flows in a small, 10-foot swimming pool. You show it thousands of simulations of waves crashing, ripples spreading, and currents swirling within that specific 10-foot box. The robot learns the rules perfectly for that small pool.

Now, imagine you ask that same robot to predict the flow of a massive river that is 100 miles long, without giving it any new training data. This is what the paper calls "domain extension." It's like asking the robot to extrapolate from a bathtub to an ocean.

The Problem: The "Ghost" Interactions

The researchers found that standard AI models (specifically "transformer neural operators") fail at this task. Here is why:

Think of the AI's attention mechanism like a person trying to listen to a conversation in a crowded room.

  • Standard AI (RoPE): This AI uses a "periodic" way of understanding distance. It's like a clock face. If you move 12 hours forward, you end up back at the start. In the AI's mind, a point 100 miles away might look mathematically identical to a point 1 mile away because the "clock" wrapped around.
  • The Result: When the AI sees a huge domain, it starts connecting points that are far apart as if they were neighbors. It creates "ghost interactions." It thinks a wave on the left bank of a 100-mile river is instantly talking to a wave on the right bank, even though physics says they shouldn't be connected yet. This causes the prediction to collapse into nonsense.

The Solution: A "Local Neighborhood" Rule

The authors, working with partners from EDF R&D and CEREA, proposed a fix. They realized that in the real physical world, things usually only affect their immediate neighbors. A wave here doesn't instantly change the water there unless it takes time to travel.

They introduced a new method called LAAPE (Local Anisotropic Asymmetric Positional Encoding).

Here is the analogy:

  • The Old Way: The AI had a "global map" where every point could talk to every other point, but it got confused about the scale.
  • The New Way (LAAPE): They gave the AI a "local neighborhood rule." They told the AI: "You can only listen to points within a certain radius. If a point is too far away, the signal drops to zero."

But they didn't just draw a hard circle. They made it smart:

  1. Decomposable: They built this rule using math that fits perfectly into existing, super-fast computer chips (like FlashAttention). It's like adding a new filter to a camera lens without having to rebuild the whole camera.
  2. Asymmetric: In the real world, wind might blow from left to right, carrying pollution downstream. The AI needs to know that "downstream" is different from "upstream." The new method allows the "listening radius" to be stretched or squashed in different directions, just like a real wind field.

The Experiments: From Bathtubs to Cities

The team tested this on three different challenges:

  1. Shallow Water (1D): Simulating water height in a long channel.
  2. Gray-Scott (2D): Simulating chemical reactions that create patterns (like spots on a leopard).
  3. Urban Wind (3D): A real-world industrial challenge simulating wind blowing through a city with random buildings. This is the hardest test because the wind interacts with buildings in complex, one-way ways (asymmetry).

The Results:

  • Standard AI (RoPE): When the domain size grew (e.g., from 1x to 5x), the error skyrocketed. The predictions became chaotic and useless.
  • New AI (LAAPE): When the domain size grew, the error stayed low and stable. The AI successfully predicted the flow in the massive city simulation without ever seeing a city that big during training.

The Bottom Line

The paper claims that by forcing the AI to respect spatial locality (only paying attention to nearby things) and allowing that attention to be asymmetric (different in different directions), they can train a model on a small dataset and have it work perfectly on a massive, unseen domain.

They didn't just make the AI "smarter"; they gave it a better understanding of distance. They showed that if you stop the AI from hallucinating connections between distant points, it can generalize to the real world's scale without needing to be retrained.

Note on Limitations: The authors admit that while this works great for scaling up, if the physics of the problem actually does require long-distance connections that are longer than the training data (which is rare but possible), this method might miss them. Also, while the math allows for faster computing, they haven't fully optimized the code to be super-fast yet; they focused on proving the concept works first.

Drowning in papers in your field?

Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.

Try Digest →