Transform Once: Efficient Operator Learning in Frequency Domain

Michael Poli, Stefano Massaroli, Federico Berto, Jinkyoo Park, Tri Dao, Christopher Ré, Stefano Ermon

TL;DR

Current frequency-domain neural operators waste significant time "domain hopping" between spatial and frequency representations at every layer. Transform Once (T1) proposes a streamlined architecture that performs a single transform at the start, allowing the model to learn and evolve representations entirely within the frequency domain. This approach results in up to 10x speedups and 20% lower error rates.

What Problem Does This Paper Address?

In the world of scientific machine learning, Frequency Domain Models (FDMs)—most notably Fourier Neural Operators (FNOs)—have become the gold standard for learning the solution operators of partial differential equations (PDEs). They work by transforming data into the frequency domain, where global correlations (like the way a ripple moves across a whole pond) are easier to compute than with standard spatial convolutions.

However, existing FDMs have a major bottleneck: they are "chatty."

Standard FDM Layer

As shown above, every single layer in a standard FDM performs a forward transform to frequency space, applies a learned map, and then performs an inverse transform back to spatial space. This constant switching introduces massive computational overhead. Furthermore, standard neural network tricks (like Xavier initialization) often fail in these models because they don't account for the fact that we often "truncate" or throw away high-frequency noise to save memory.

Methods

The authors introduce Transform Once (T1), a blueprint for frequency-domain learning that eliminates redundant transforms and optimizes the network for pure frequency-domain operation.

Transform Once (T1) Architecture
  1. The T1 Architecture: Instead of transforming at every layer, T1 transforms the input once at the beginning. All subsequent hidden layers operate directly on the frequency coefficients. The loss is also computed in the frequency domain, meaning if a spatial output is needed, a single inverse transform is applied only at the very end.
  2. Discrete Cosine Transform (DCT) over FFT: While most models use the Fast Fourier Transform (FFT), T1 opts for the DCT. The DCT is real-valued (avoiding the overhead of complex numbers) and has superior "energy compaction," meaning it packs more critical information into fewer coefficients for the types of smooth signals found in physics.
  3. Variance-Preserving (vp) Initialization: The authors mathematically derived a new initialization scheme. They discovered that when you truncate frequencies (keeping only $m$ out of $N$ modes), standard initialization causes the signal variance to "collapse" toward zero. Their new vp scheme scales weights based on the ratio of kept-to-discarded modes to keep the signal alive through deep layers.
  4. Top-m Mode Selection: Instead of just keeping the lowest frequencies (a standard low-pass filter), they investigate "top-m" selection—identifying which specific frequencies carry the most signal power, which is crucial for chaotic or turbulent systems.

Datasets

The researchers evaluated T1 on three increasingly difficult benchmarks:

  • 2D Incompressible Navier-Stokes: The standard "hello world" for fluid dynamics.
  • Flow Around Airfoils: A dataset involving fluid-solid interactions with complex geometries and higher resolutions (128x128).
  • ScalarFlow: A high-resolution (600 x 1062) dataset of real-world turbulent smoke plumes captured at 60 fps. This represents a significant jump in scale compared to typical PDE benchmarks.

Key Insights and Results

  • Domain Hopping is Optional: The most surprising insight is that you don't need to return to spatial space to apply non-linearities or learn complex features. Staying in the frequency domain preserves the necessary information while drastically reducing the "tax" paid to the transform algorithms.
  • The Initialization Bottleneck: Many researchers previously thought FDMs were hard to scale because of the architecture. This paper shows that a significant part of the struggle was actually poor variance scaling during initialization.
  • Massive Speedups: T1 iterations are 3x to 10x faster than standard FNOs. This gap widens as the data resolution and model size increase.
  • Improved Accuracy: On the Navier-Stokes task, T1 reduced predictive error by over 20% compared to FNOs. Because T1 is so much faster, researchers can afford to use more sophisticated architectures (like UNet-style structures) within the frequency domain, leading to better accuracy.
  • Large-Scale Training: On the high-resolution ScalarFlow smoke video, T1 reached the same performance level in just 5 hours, whereas the standard FNO took 32 hours.

Limitations and Future Work

While T1 is a major step forward, the authors note some areas for further exploration:

  • A Priori Analysis: The "top-m" frequency selection currently requires looking at the dataset beforehand to decide which frequencies to keep. Automating this "frequency attention" during training would be a powerful next step.
  • Boundary Conditions: The paper primarily focuses on signals that are well-represented by periodic or near-periodic bases. Handling sharp discontinuities or non-periodic boundaries entirely in the frequency domain remains a challenge.
  • Generalization: While tested on fluids and smoke, applying T1 to other domains like climate modeling or structural engineering will be necessary to prove its universal utility.

Summary updated

BibTeX
@inproceedings{poli2022transform,
  author = {Michael Poli and Stefano Massaroli and Federico Berto and Jinkyoo Park and Tri Dao and Christopher Ré and Stefano Ermon},
  title = {{Transform Once: Efficient Operator Learning in Frequency Domain}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2022},
  url = {https://openreview.net/forum?id=W7tdAzK9Rp},
}
Figure