SUPRA: Subspace Parameterized Attention for Neural Operator on General Domains

Zherui Yang, Zhengyang Xue, Ligang LiuarXiv 2025 · OpenReview

Abstract

Neural operators are efficient surrogate models for solving partial differential equations (PDEs), but their key components face challenges: (1) in order to improve accuracy, attention mechanisms suffer from computational inefficiency on large-scale meshes, and (2) spectral convolutions rely on the Fast Fourier Transform (FFT) on regular grids and assume a flat geometry, which causes accuracy degradation on irregular domains. To tackle these problems, we regard the matrix-vector operations in the standard attention mechanism on vectors in Euclidean space as bilinear forms and linear operators in vector spaces and generalize the attention mechanism to function spaces. This new attention mechanism is fully equivalent to the standard attention but impossible to compute due to the infinite dimensionality of function spaces. To address this, inspired by model reduction techniques, we propose a Subspace Parameterized Attention (SUPRA) neural operator, which approximates the attention mechanism within a finite-dimensional subspace. To construct a subspace on irregular domains for SUPRA, we propose using the Laplacian eigenfunctions, which naturally adapt to domains' geometry and guarantee the optimal approximation for smooth functions. Experiments show that the SUPRA neural operator reduces error rates by up to 33% on various PDE datasets while maintaining state-of-the-art computational efficiency.

Introduction: The Challenge of Irregular Domains

Partial Differential Equations (PDEs) are fundamental to describing physical phenomena, from fluid dynamics to structural mechanics. While traditional numerical solvers like Finite Element Methods are highly accurate, they are often computationally prohibitive for real-time applications. Neural operators have emerged as a fast surrogate alternative, yet they face two significant hurdles:

  1. The Attention Bottleneck: Standard attention mechanisms scale quadratically with the number of tokens. In PDE simulations where every mesh point acts as a token, large-scale modeling becomes computationally infeasible.
  2. The Geometry Gap: State-of-the-art models like Fourier Neural Operators (FNOs) rely on the Fast Fourier Transform (FFT), which necessitates a regular grid. Handling irregular geometries, such as an airfoil, typically requires mapping the domain to a square, a process that can introduce artificial discontinuities and degrade accuracy.

SUPRA (Subspace Parameterized Attention) addresses these issues by generalizing attention to function spaces and utilizing geometry-aware subspaces.

Methodology: Subspace Parameterized Attention

The core innovation of SUPRA is the treatment of the attention mechanism as a bilinear form acting on continuous functions rather than a discrete matrix-vector operation. Because function spaces are infinite-dimensional, SUPRA employs a model reduction strategy to make computation feasible.

The SUPRA block architecture generalizes attention to function spaces by projecting inputs onto a finite-dimensional subspace basis, performing attention on coordinates, and then reconstructing the output function.

As shown in the architecture above, the model projects input functions onto a finite-dimensional subspace spanned by $N$ basis functions. Instead of performing attention on $M$ mesh points, the operation is conducted on the $N$ coordinates of the chosen basis. Since $N$ is typically much smaller than $M$, the computational complexity remains linear ($O(M)$) relative to the mesh resolution.

Key Insights: Geometry-Aware Basis Functions

To handle irregular domains effectively, SUPRA utilizes the eigenfunctions of the Laplace operator as its basis. These functions serve as a natural extension of the Fourier basis to general shapes; they are smooth, orthonormal, and inherently respect the topology of the physical domain.

Laplacian eigenfunctions (top) provide a smooth, geometry-aware basis for irregular domains like airfoils, avoiding the discontinuities introduced by standard trigonometric functions (bottom) when mapped to irregular shapes.

By using these eigenfunctions, the model avoids the "discontinuity" problem common in mapping-based methods. Because the basis functions are defined directly on the irregular mesh, the physical continuity of the solution is preserved without requiring geometric warping.

Key Results and Performance

SUPRA was evaluated across five benchmark datasets, including Darcy Flow, Navier-Stokes, and transonic flow over a NACA airfoil. Key findings include:

  • Superior Accuracy: SUPRA reduced error rates by up to 33% compared to recent state-of-the-art models like Transolver and LNO.
  • Robustness on Irregular Domains: On Airfoil and Pipe tasks, the geometry-aware basis provided a significant advantage over traditional mapping methods.
  • Scalability: The model maintained high performance and linear complexity even as mesh resolution increased, proving its efficiency for large-scale simulations.
  • Visual Fidelity: Qualitative results demonstrate that SUPRA excels at capturing sharp physical features, such as shock waves and complex vortices.

Conclusion and Future Work

SUPRA represents a significant advancement in applying high-powered attention mechanisms to complex physical domains. While the current implementation requires precomputing Laplacian eigenfunctions for each domain, future research may explore machine learning approaches to automatically learn optimal subspaces or scaling the architecture to massive 3D meshes.

Summary updated

BibTeX
@misc{yang2025supra,
  author = {Zherui Yang and Zhengyang Xue and Ligang Liu},
  title = {{SUPRA: Subspace Parameterized Attention for Neural Operator on General Domains}},
  year = {2025},
  eprint = {2504.15897},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2504.15897},
}
Figure