← Papers
Transformers

Galerkin Transformer

Choose a Transformer: Fourier or Galerkin

Paper title Choose a Transformer: Fourier or Galerkin

Cao (Washington University in St. Louis) · General PDEs · Public: code

Paper arXiv 2105.14995PDF

An operator learner whose encoder uses attention without softmax. The Fourier-type attention computes (QKᵀ)V/n and the Galerkin-type computes Q(KᵀV)/n, where n is the number of grid points and layer normalisation is applied to Q and K, or to K and V, before the product. The Galerkin form multiplies KᵀV first, so its cost per layer is O(nd²), linear in n. Grid coordinates are concatenated to the latent features in every attention head. In 2D an interpolation-based CNN downsamples before the attention and upsamples after it.

Published
NeurIPS

Share on LinkedIn, X or Bluesky, or or .

Know related work that belongs here?

Something wrong on this page?

More papers

All papers
  1. TransformersISLA — A coordinate-free, measure-weighted transformer for boundary-driven PDEs
  2. TransformersMNC — Retrofitting foundation models to unstructured meshes
  3. TransformersDA-CA and SVMoE — Wall-distance conditioning of cross-attention and expert routing in transformer surrogates for 3D car flow