Towards Stability of Autoregressive Neural Operators

Michael McCabe, Peter Harrington, Shashank Subramanian, Jed Brown

Abstract

Neural operators have emerged as a powerful paradigm for modeling complex spatiotemporal systems in the physical sciences. However, when these models are deployed for long-term forecasting via autoregressive time-stepping, they frequently suffer from uncontrolled error growth and eventual numerical divergence. This paper investigates the sources of this instability, identifying "spectral pile-up" and aliasing as primary drivers of failure. By integrating principles from classical numerical analysis into deep learning architectures, we introduce a suite of "Restructured" (Re) modifications—including aliasing-aware blocks and frequency-domain spectral normalization. Our approach demonstrates significant stability gains across Navier-Stokes fluid flow, rotating shallow water equations, and high-resolution ERA5 global weather forecasting, extending stable forecast horizons by up to 800% without increasing computational overhead.

Introduction

In the pursuit of efficient physical simulations, Neural Operators (NOs) offer a promising alternative to traditional solvers by learning mappings between functional spaces. To manage the immense memory and computational costs associated with high-dimensional spatiotemporal data, these models typically utilize an autoregressive framework: predicting the next state and feeding it back as input for subsequent steps. While effective for short-term predictions, this feedback loop often leads to "explosive" divergence, where small errors compound until the simulation becomes physically nonsensical.

This research bridges the gap between modern deep learning and 50-year-old pseudospectral numerical methods to diagnose and solve these stability issues. We demonstrate that by treating neural operators as learned pseudospectral schemes, we can apply rigorous stability theory to prevent the accumulation of high-frequency noise.

The Source of Instability: Spectral Pile-Up

The core challenge in autoregressive neural forecasting is aliasing. In classical numerical weather prediction, nonlinear operations can generate high-frequency signals that exceed the resolution of the discrete grid. If these frequencies are not properly filtered, they "alias" back into lower frequencies, creating unphysical artifacts.

In neural networks, every activation function (such as ReLU or GeLU) acts as a nonlinearity that expands the bandwidth of the signal. Standard Fourier Neural Operators (FNOs) often contain data paths that skip spectral convolutions, allowing this high-frequency noise to bypass filtering. Over many time steps, this leads to a "spectral pile-up" where energy accumulates at the grid scale, eventually destabilizing the entire system.

Architectural Improvements for Stability

To mitigate these effects, we propose several "Restructured" (Re) architectural modifications designed to enforce stability without inflating parameter counts:

  • Aliasing-Aware Architecture: We restructure the FNO block to ensure that every nonlinear activation is followed by a learnable spectral filter. This ensures the model has the explicit mechanism required to "clean up" the high-frequency noise it generates.
  • Frequency-Domain Spectral Normalization: We adapt spectral normalization to the frequency domain. By constraining the "gain" of the spectral filters, we prevent the exponential growth of errors during the autoregressive loop.
  • Double Fourier Sphere (DFS): Global weather models often struggle with the "pole problem," where standard 2D Fast Fourier Transforms (FFTs) create artificial discontinuities at the Earth's poles. By employing the DFS method to map spherical geometry onto a torus, we eliminate these seams and the resulting unphysical "teleportation" of information.
  • Depthwise-Separable Spectral Convolutions: To maintain efficiency, we utilize depthwise-separable convolutions. This allows for wider, more expressive layers while significantly reducing the parameter footprint (e.g., reducing a 536M parameter model to just 17M).

Experimental Results

We evaluated our stabilized models against three distinct physical systems:

  1. Navier-Stokes (2D): A benchmark for fluid dynamics involving Kolmogorov forcing.
  2. Rotating Shallow Water Equations (SWE): An idealized atmospheric model on a sphere used to test geometric handling. Our ReDFNO (Restructured Double Fourier Neural Operator) significantly outperformed established spherical architectures like S2CNN and DeepSphere in both long-term accuracy and stability.
  3. ERA5 Global Weather: Using the gold-standard reanalysis dataset at 0.25° resolution (720x1440 grid), our stabilized models achieved an 800% improvement in the instability-free forecast horizon. While baseline models diverged after approximately 50 steps, the restructured models produced stable, detailed predictions for over 400 steps (equivalent to 100 days).

Discussion and Future Work

Our findings suggest that deep learning models for physics are essentially learned pseudospectral schemes. Consequently, stability cannot be achieved without explicit filtering after every nonlinear operation. While these modifications represent a major step forward, some challenges remain. We observed the "Gibbs phenomenon"—unphysical ringing near sharp discontinuities like coastlines—and noted that models trained on one-step-ahead objectives sometimes lack sufficient diffusion to prevent energy accumulation over extremely long durations.

By open-sourcing our code and design principles, we aim to provide a foundation for the next generation of stable, high-fidelity neural physical simulations.

Summary updated

Abstract

Neural operators have proven to be a promising approach for modeling spatiotemporal systems in the physical sciences. However, training these models for large systems can be quite challenging as they incur significant computational and memory expense -- these systems are often forced to rely on autoregressive time-stepping of the neural network to predict future temporal states. While this is effective in managing costs, it can lead to uncontrolled error growth over time and eventual instability. We analyze the sources of this autoregressive error growth using prototypical neural operator models for physical systems and explore ways to mitigate it. We introduce architectural and application-specific improvements that allow for careful control of instability-inducing operations within these models without inflating the compute/memory expense. We present results on several scientific systems that include Navier-Stokes fluid flow, rotating shallow water, and a high-resolution global weather forecasting system. We demonstrate that applying our design principles to neural operators leads to significantly lower errors for long-term forecasts as well as longer time horizons without qualitative signs of divergence compared to the original models for these systems. We open-source our \href{https://github.com/mikemccabe210/stabilizing_neural_operators}{code} for reproducibility.
BibTeX
@article{mccabe2023towards,
  author = {Michael McCabe and Peter Harrington and Shashank Subramanian and Jed Brown},
  title = {{Towards Stability of Autoregressive Neural Operators}},
  journal = {Accepted by TMLR},
  year = {2023},
  url = {https://openreview.net/forum?id=RFfUUtKYOG},
}
Figure